]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/_gdi_wrap.cpp
reSWIGged
[wxWidgets.git] / wxPython / src / gtk / _gdi_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.29
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_PYTHON_DIRECTOR_NO_VTABLE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30 /* -----------------------------------------------------------------------------
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
33 * ----------------------------------------------------------------------------- */
34
35 /* template workaround for compilers that cannot correctly implement the C++ standard */
36 #ifndef SWIGTEMPLATEDISAMBIGUATOR
37 # if defined(__SUNPRO_CC)
38 # if (__SUNPRO_CC <= 0x560)
39 # define SWIGTEMPLATEDISAMBIGUATOR template
40 # else
41 # define SWIGTEMPLATEDISAMBIGUATOR
42 # endif
43 # else
44 # define SWIGTEMPLATEDISAMBIGUATOR
45 # endif
46 #endif
47
48 /* inline attribute */
49 #ifndef SWIGINLINE
50 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51 # define SWIGINLINE inline
52 # else
53 # define SWIGINLINE
54 # endif
55 #endif
56
57 /* attribute recognised by some compilers to avoid 'unused' warnings */
58 #ifndef SWIGUNUSED
59 # if defined(__GNUC__)
60 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61 # define SWIGUNUSED __attribute__ ((__unused__))
62 # else
63 # define SWIGUNUSED
64 # endif
65 # elif defined(__ICC)
66 # define SWIGUNUSED __attribute__ ((__unused__))
67 # else
68 # define SWIGUNUSED
69 # endif
70 #endif
71
72 #ifndef SWIGUNUSEDPARM
73 # ifdef __cplusplus
74 # define SWIGUNUSEDPARM(p)
75 # else
76 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
77 # endif
78 #endif
79
80 /* internal SWIG method */
81 #ifndef SWIGINTERN
82 # define SWIGINTERN static SWIGUNUSED
83 #endif
84
85 /* internal inline SWIG method */
86 #ifndef SWIGINTERNINLINE
87 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88 #endif
89
90 /* exporting methods */
91 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92 # ifndef GCC_HASCLASSVISIBILITY
93 # define GCC_HASCLASSVISIBILITY
94 # endif
95 #endif
96
97 #ifndef SWIGEXPORT
98 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99 # if defined(STATIC_LINKED)
100 # define SWIGEXPORT
101 # else
102 # define SWIGEXPORT __declspec(dllexport)
103 # endif
104 # else
105 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106 # define SWIGEXPORT __attribute__ ((visibility("default")))
107 # else
108 # define SWIGEXPORT
109 # endif
110 # endif
111 #endif
112
113 /* calling conventions for Windows */
114 #ifndef SWIGSTDCALL
115 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116 # define SWIGSTDCALL __stdcall
117 # else
118 # define SWIGSTDCALL
119 # endif
120 #endif
121
122 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124 # define _CRT_SECURE_NO_DEPRECATE
125 #endif
126
127
128 /* Python.h has to appear first */
129 #include <Python.h>
130
131 /* -----------------------------------------------------------------------------
132 * swigrun.swg
133 *
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
137
138 /* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
140 #define SWIG_RUNTIME_VERSION "2"
141
142 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143 #ifdef SWIG_TYPE_TABLE
144 # define SWIG_QUOTE_STRING(x) #x
145 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
147 #else
148 # define SWIG_TYPE_TABLE_NAME
149 #endif
150
151 /*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158 */
159
160 #ifndef SWIGRUNTIME
161 # define SWIGRUNTIME SWIGINTERN
162 #endif
163
164 #ifndef SWIGRUNTIMEINLINE
165 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
166 #endif
167
168 /* Generic buffer size */
169 #ifndef SWIG_BUFFER_SIZE
170 # define SWIG_BUFFER_SIZE 1024
171 #endif
172
173 /* Flags for pointer conversions */
174 #define SWIG_POINTER_DISOWN 0x1
175
176 /* Flags for new pointer objects */
177 #define SWIG_POINTER_OWN 0x1
178
179
180 /*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260 #define SWIG_OK (0)
261 #define SWIG_ERROR (-1)
262 #define SWIG_IsOK(r) (r >= 0)
263 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265 /* The CastRankLimit says how many bits are used for the cast rank */
266 #define SWIG_CASTRANKLIMIT (1 << 8)
267 /* The NewMask denotes the object was created (using new/malloc) */
268 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269 /* The TmpMask is for in/out typemaps that use temporal objects */
270 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271 /* Simple returning values */
272 #define SWIG_BADOBJ (SWIG_ERROR)
273 #define SWIG_OLDOBJ (SWIG_OK)
274 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276 /* Check, add and del mask methods */
277 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285 /* Cast-Rank Mode */
286 #if defined(SWIG_CASTRANK_MODE)
287 # ifndef SWIG_TypeRank
288 # define SWIG_TypeRank unsigned long
289 # endif
290 # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291 # define SWIG_MAXCASTRANK (2)
292 # endif
293 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295 SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297 }
298 SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300 }
301 #else /* no cast-rank mode */
302 # define SWIG_AddCast
303 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304 #endif
305
306
307
308
309 #include <string.h>
310
311 #ifdef __cplusplus
312 extern "C" {
313 #endif
314
315 typedef void *(*swig_converter_func)(void *);
316 typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
318 /* Structure to store inforomation on one type */
319 typedef struct swig_type_info {
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
325 int owndata; /* flag if the structure owns the clientdata */
326 } swig_type_info;
327
328 /* Structure to store a type and conversion function used for casting */
329 typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334 } swig_cast_info;
335
336 /* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339 typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346 } swig_module_info;
347
348 /*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354 */
355 SWIGRUNTIME int
356 SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
362 }
363 return (l1 - f1) - (l2 - f2);
364 }
365
366 /*
367 Check type equivalence in a name list like <name1>|<name2>|...
368 Return 0 if not equal, 1 if equal
369 */
370 SWIGRUNTIME int
371 SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
380 if (*ne) ++ne;
381 }
382 return equiv;
383 }
384
385 /*
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
388 */
389 SWIGRUNTIME int
390 SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
397 }
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
400 }
401 return equiv;
402 }
403
404
405 /* think of this as a c++ template<> or a scheme macro */
406 #define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
427 /*
428 Check the typename
429 */
430 SWIGRUNTIME swig_cast_info *
431 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433 }
434
435 /* Same as previous function, except strcmp is replaced with a pointer comparison */
436 SWIGRUNTIME swig_cast_info *
437 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
439 }
440
441 /*
442 Cast a pointer up an inheritance hierarchy
443 */
444 SWIGRUNTIMEINLINE void *
445 SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447 }
448
449 /*
450 Dynamic pointer casting. Down an inheritance hierarchy
451 */
452 SWIGRUNTIME swig_type_info *
453 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461 }
462
463 /*
464 Return the name associated with this type
465 */
466 SWIGRUNTIMEINLINE const char *
467 SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469 }
470
471 /*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474 */
475 SWIGRUNTIME const char *
476 SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
481 if (!type) return NULL;
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491 }
492
493 /*
494 Set the clientdata field for a type
495 */
496 SWIGRUNTIME void
497 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
507 }
508 }
509 cast = cast->next;
510 }
511 }
512 SWIGRUNTIME void
513 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516 }
517
518 /*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525 */
526 SWIGRUNTIME swig_type_info *
527 SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
556 }
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560 }
561
562 /*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570 */
571 SWIGRUNTIME swig_type_info *
572 SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
591 }
592
593 /* neither found a match */
594 return 0;
595 }
596
597 /*
598 Pack binary data into a string
599 */
600 SWIGRUNTIME char *
601 SWIG_PackData(char *c, void *ptr, size_t sz) {
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
605 for (; u != eu; ++u) {
606 register unsigned char uu = *u;
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611 }
612
613 /*
614 Unpack binary data from a string
615 */
616 SWIGRUNTIME const char *
617 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
619 register const unsigned char *eu = u + sz;
620 for (; u != eu; ++u) {
621 register char d = *(c++);
622 register unsigned char uu;
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639 }
640
641 /*
642 Pack 'void *' into a string buffer.
643 */
644 SWIGRUNTIME char *
645 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653 }
654
655 SWIGRUNTIME const char *
656 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666 }
667
668 SWIGRUNTIME char *
669 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681 }
682
683 SWIGRUNTIME const char *
684 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694 }
695
696 #ifdef __cplusplus
697 }
698 #endif
699
700 /* Errors in SWIG */
701 #define SWIG_UnknownError -1
702 #define SWIG_IOError -2
703 #define SWIG_RuntimeError -3
704 #define SWIG_IndexError -4
705 #define SWIG_TypeError -5
706 #define SWIG_DivisionByZero -6
707 #define SWIG_OverflowError -7
708 #define SWIG_SyntaxError -8
709 #define SWIG_ValueError -9
710 #define SWIG_SystemError -10
711 #define SWIG_AttributeError -11
712 #define SWIG_MemoryError -12
713 #define SWIG_NullReferenceError -13
714
715
716
717 /* Python.h has to appear first */
718 #include <Python.h>
719
720 /* Add PyOS_snprintf for old Pythons */
721 #if PY_VERSION_HEX < 0x02020000
722 # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723 # define PyOS_snprintf _snprintf
724 # else
725 # define PyOS_snprintf snprintf
726 # endif
727 #endif
728
729 /* A crude PyString_FromFormat implementation for old Pythons */
730 #if PY_VERSION_HEX < 0x02020000
731
732 #ifndef SWIG_PYBUFFER_SIZE
733 # define SWIG_PYBUFFER_SIZE 1024
734 #endif
735
736 static PyObject *
737 PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745 }
746 #endif
747
748 /* Add PyObject_Del for old Pythons */
749 #if PY_VERSION_HEX < 0x01060000
750 # define PyObject_Del(op) PyMem_DEL((op))
751 #endif
752 #ifndef PyObject_DEL
753 # define PyObject_DEL PyObject_Del
754 #endif
755
756 /* A crude PyExc_StopIteration exception for old Pythons */
757 #if PY_VERSION_HEX < 0x02020000
758 # ifndef PyExc_StopIteration
759 # define PyExc_StopIteration PyExc_RuntimeError
760 # endif
761 # ifndef PyObject_GenericGetAttr
762 # define PyObject_GenericGetAttr 0
763 # endif
764 #endif
765 /* Py_NotImplemented is defined in 2.1 and up. */
766 #if PY_VERSION_HEX < 0x02010000
767 # ifndef Py_NotImplemented
768 # define Py_NotImplemented PyExc_RuntimeError
769 # endif
770 #endif
771
772
773 /* A crude PyString_AsStringAndSize implementation for old Pythons */
774 #if PY_VERSION_HEX < 0x02010000
775 # ifndef PyString_AsStringAndSize
776 # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777 # endif
778 #endif
779
780 /* PySequence_Size for old Pythons */
781 #if PY_VERSION_HEX < 0x02000000
782 # ifndef PySequence_Size
783 # define PySequence_Size PySequence_Length
784 # endif
785 #endif
786
787
788 /* PyBool_FromLong for old Pythons */
789 #if PY_VERSION_HEX < 0x02030000
790 static
791 PyObject *PyBool_FromLong(long ok)
792 {
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796 }
797 #endif
798
799
800 /* -----------------------------------------------------------------------------
801 * error manipulation
802 * ----------------------------------------------------------------------------- */
803
804 SWIGRUNTIME PyObject*
805 SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845 }
846
847
848 SWIGRUNTIME void
849 SWIG_Python_AddErrorMsg(const char* mesg)
850 {
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866 }
867
868
869
870 #if defined(SWIG_PYTHON_NO_THREADS)
871 # if defined(SWIG_PYTHON_THREADS)
872 # undef SWIG_PYTHON_THREADS
873 # endif
874 #endif
875 #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876 # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877 # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878 # define SWIG_PYTHON_USE_GIL
879 # endif
880 # endif
881 # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882 # ifndef SWIG_PYTHON_INITIALIZE_THREADS
883 # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884 # endif
885 # ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903 # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905 # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906 # else /* C code */
907 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908 # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910 # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911 # endif
912 # else /* Old thread way, not implemented, user must provide it */
913 # if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914 # define SWIG_PYTHON_INITIALIZE_THREADS
915 # endif
916 # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918 # endif
919 # if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920 # define SWIG_PYTHON_THREAD_END_BLOCK
921 # endif
922 # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924 # endif
925 # if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926 # define SWIG_PYTHON_THREAD_END_ALLOW
927 # endif
928 # endif
929 #else /* No thread support */
930 # define SWIG_PYTHON_INITIALIZE_THREADS
931 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932 # define SWIG_PYTHON_THREAD_END_BLOCK
933 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934 # define SWIG_PYTHON_THREAD_END_ALLOW
935 #endif
936
937 /* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
940
941 #ifdef __cplusplus
942 extern "C" {
943 #if 0
944 } /* cc-mode */
945 #endif
946 #endif
947
948 /* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
951
952 /* Constant Types */
953 #define SWIG_PY_POINTER 4
954 #define SWIG_PY_BINARY 5
955
956 /* Constant information structure */
957 typedef struct swig_const_info {
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
964 } swig_const_info;
965
966 #ifdef __cplusplus
967 #if 0
968 { /* cc-mode */
969 #endif
970 }
971 #endif
972
973
974 /* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
978 * pyrun.swg
979 *
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
983 *
984 * ----------------------------------------------------------------------------- */
985
986 /* Common SWIG API */
987
988 /* for raw pointers */
989 #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
990 #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
991 #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
992 #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
993 #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
994 #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
995 #define swig_owntype int
996
997 /* for raw packed data */
998 #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
999 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1000
1001 /* for class or struct pointers */
1002 #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1003 #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
1004
1005 /* for C or C++ function pointers */
1006 #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1007 #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
1008
1009 /* for C++ member pointers, ie, member methods */
1010 #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1011 #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1012
1013
1014 /* Runtime API */
1015
1016 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1017 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1018 #define SWIG_NewClientData(obj) PySwigClientData_New(obj)
1019
1020 #define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1021 #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1022 #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1023 #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1024 #define SWIG_fail goto fail
1025
1026
1027 /* Runtime API implementation */
1028
1029 /* Error manipulation */
1030
1031 SWIGINTERN void
1032 SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1033 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1034 PyErr_SetObject(errtype, obj);
1035 Py_DECREF(obj);
1036 SWIG_PYTHON_THREAD_END_BLOCK;
1037 }
1038
1039 SWIGINTERN void
1040 SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1041 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1042 PyErr_SetString(errtype, (char *) msg);
1043 SWIG_PYTHON_THREAD_END_BLOCK;
1044 }
1045
1046 #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1047
1048 /* Set a constant value */
1049
1050 SWIGINTERN void
1051 SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1052 PyDict_SetItemString(d, (char*) name, obj);
1053 Py_DECREF(obj);
1054 }
1055
1056 /* Append a value to the result obj */
1057
1058 SWIGINTERN PyObject*
1059 SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1060 #if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1061 if (!result) {
1062 result = obj;
1063 } else if (result == Py_None) {
1064 Py_DECREF(result);
1065 result = obj;
1066 } else {
1067 if (!PyList_Check(result)) {
1068 PyObject *o2 = result;
1069 result = PyList_New(1);
1070 PyList_SetItem(result, 0, o2);
1071 }
1072 PyList_Append(result,obj);
1073 Py_DECREF(obj);
1074 }
1075 return result;
1076 #else
1077 PyObject* o2;
1078 PyObject* o3;
1079 if (!result) {
1080 result = obj;
1081 } else if (result == Py_None) {
1082 Py_DECREF(result);
1083 result = obj;
1084 } else {
1085 if (!PyTuple_Check(result)) {
1086 o2 = result;
1087 result = PyTuple_New(1);
1088 PyTuple_SET_ITEM(result, 0, o2);
1089 }
1090 o3 = PyTuple_New(1);
1091 PyTuple_SET_ITEM(o3, 0, obj);
1092 o2 = result;
1093 result = PySequence_Concat(o2, o3);
1094 Py_DECREF(o2);
1095 Py_DECREF(o3);
1096 }
1097 return result;
1098 #endif
1099 }
1100
1101 /* Unpack the argument tuple */
1102
1103 SWIGINTERN int
1104 SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1105 {
1106 if (!args) {
1107 if (!min && !max) {
1108 return 1;
1109 } else {
1110 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1111 name, (min == max ? "" : "at least "), min);
1112 return 0;
1113 }
1114 }
1115 if (!PyTuple_Check(args)) {
1116 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1117 return 0;
1118 } else {
1119 register int l = PyTuple_GET_SIZE(args);
1120 if (l < min) {
1121 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1122 name, (min == max ? "" : "at least "), min, l);
1123 return 0;
1124 } else if (l > max) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at most "), max, l);
1127 return 0;
1128 } else {
1129 register int i;
1130 for (i = 0; i < l; ++i) {
1131 objs[i] = PyTuple_GET_ITEM(args, i);
1132 }
1133 for (; l < max; ++l) {
1134 objs[l] = 0;
1135 }
1136 return i + 1;
1137 }
1138 }
1139 }
1140
1141 /* A functor is a function object with one single object argument */
1142 #if PY_VERSION_HEX >= 0x02020000
1143 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1144 #else
1145 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1146 #endif
1147
1148 /*
1149 Helper for static pointer initialization for both C and C++ code, for example
1150 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1151 */
1152 #ifdef __cplusplus
1153 #define SWIG_STATIC_POINTER(var) var
1154 #else
1155 #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1156 #endif
1157
1158 /* -----------------------------------------------------------------------------
1159 * Pointer declarations
1160 * ----------------------------------------------------------------------------- */
1161
1162 /* Flags for new pointer objects */
1163 #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1164 #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1165
1166 #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1167
1168 #ifdef __cplusplus
1169 extern "C" {
1170 #if 0
1171 } /* cc-mode */
1172 #endif
1173 #endif
1174
1175 /* How to access Py_None */
1176 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1177 # ifndef SWIG_PYTHON_NO_BUILD_NONE
1178 # ifndef SWIG_PYTHON_BUILD_NONE
1179 # define SWIG_PYTHON_BUILD_NONE
1180 # endif
1181 # endif
1182 #endif
1183
1184 #ifdef SWIG_PYTHON_BUILD_NONE
1185 # ifdef Py_None
1186 # undef Py_None
1187 # define Py_None SWIG_Py_None()
1188 # endif
1189 SWIGRUNTIMEINLINE PyObject *
1190 _SWIG_Py_None(void)
1191 {
1192 PyObject *none = Py_BuildValue("");
1193 Py_DECREF(none);
1194 return none;
1195 }
1196 SWIGRUNTIME PyObject *
1197 SWIG_Py_None(void)
1198 {
1199 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1200 return none;
1201 }
1202 #endif
1203
1204 /* The python void return value */
1205
1206 SWIGRUNTIMEINLINE PyObject *
1207 SWIG_Py_Void(void)
1208 {
1209 PyObject *none = Py_None;
1210 Py_INCREF(none);
1211 return none;
1212 }
1213
1214 /* PySwigClientData */
1215
1216 typedef struct {
1217 PyObject *klass;
1218 PyObject *newraw;
1219 PyObject *newargs;
1220 PyObject *destroy;
1221 int delargs;
1222 int implicitconv;
1223 } PySwigClientData;
1224
1225 SWIGRUNTIMEINLINE int
1226 SWIG_Python_CheckImplicit(swig_type_info *ty)
1227 {
1228 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1229 return data ? data->implicitconv : 0;
1230 }
1231
1232 SWIGRUNTIMEINLINE PyObject *
1233 SWIG_Python_ExceptionType(swig_type_info *desc) {
1234 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1235 PyObject *klass = data ? data->klass : 0;
1236 return (klass ? klass : PyExc_RuntimeError);
1237 }
1238
1239
1240 SWIGRUNTIME PySwigClientData *
1241 PySwigClientData_New(PyObject* obj)
1242 {
1243 if (!obj) {
1244 return 0;
1245 } else {
1246 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1247 /* the klass element */
1248 data->klass = obj;
1249 Py_INCREF(data->klass);
1250 /* the newraw method and newargs arguments used to create a new raw instance */
1251 if (PyClass_Check(obj)) {
1252 data->newraw = 0;
1253 data->newargs = obj;
1254 Py_INCREF(obj);
1255 } else {
1256 #if (PY_VERSION_HEX < 0x02020000)
1257 data->newraw = 0;
1258 #else
1259 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1260 #endif
1261 if (data->newraw) {
1262 Py_INCREF(data->newraw);
1263 data->newargs = PyTuple_New(1);
1264 PyTuple_SetItem(data->newargs, 0, obj);
1265 } else {
1266 data->newargs = obj;
1267 }
1268 Py_INCREF(data->newargs);
1269 }
1270 /* the destroy method, aka as the C++ delete method */
1271 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1272 if (PyErr_Occurred()) {
1273 PyErr_Clear();
1274 data->destroy = 0;
1275 }
1276 if (data->destroy) {
1277 int flags;
1278 Py_INCREF(data->destroy);
1279 flags = PyCFunction_GET_FLAGS(data->destroy);
1280 #ifdef METH_O
1281 data->delargs = !(flags & (METH_O));
1282 #else
1283 data->delargs = 0;
1284 #endif
1285 } else {
1286 data->delargs = 0;
1287 }
1288 data->implicitconv = 0;
1289 return data;
1290 }
1291 }
1292
1293 SWIGRUNTIME void
1294 PySwigClientData_Del(PySwigClientData* data)
1295 {
1296 Py_XDECREF(data->newraw);
1297 Py_XDECREF(data->newargs);
1298 Py_XDECREF(data->destroy);
1299 }
1300
1301 /* =============== PySwigObject =====================*/
1302
1303 typedef struct {
1304 PyObject_HEAD
1305 void *ptr;
1306 swig_type_info *ty;
1307 int own;
1308 PyObject *next;
1309 } PySwigObject;
1310
1311 SWIGRUNTIME PyObject *
1312 PySwigObject_long(PySwigObject *v)
1313 {
1314 return PyLong_FromVoidPtr(v->ptr);
1315 }
1316
1317 SWIGRUNTIME PyObject *
1318 PySwigObject_format(const char* fmt, PySwigObject *v)
1319 {
1320 PyObject *res = NULL;
1321 PyObject *args = PyTuple_New(1);
1322 if (args) {
1323 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1324 PyObject *ofmt = PyString_FromString(fmt);
1325 if (ofmt) {
1326 res = PyString_Format(ofmt,args);
1327 Py_DECREF(ofmt);
1328 }
1329 Py_DECREF(args);
1330 }
1331 }
1332 return res;
1333 }
1334
1335 SWIGRUNTIME PyObject *
1336 PySwigObject_oct(PySwigObject *v)
1337 {
1338 return PySwigObject_format("%o",v);
1339 }
1340
1341 SWIGRUNTIME PyObject *
1342 PySwigObject_hex(PySwigObject *v)
1343 {
1344 return PySwigObject_format("%x",v);
1345 }
1346
1347 SWIGRUNTIME PyObject *
1348 #ifdef METH_NOARGS
1349 PySwigObject_repr(PySwigObject *v)
1350 #else
1351 PySwigObject_repr(PySwigObject *v, PyObject *args)
1352 #endif
1353 {
1354 const char *name = SWIG_TypePrettyName(v->ty);
1355 PyObject *hex = PySwigObject_hex(v);
1356 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1357 Py_DECREF(hex);
1358 if (v->next) {
1359 #ifdef METH_NOARGS
1360 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1361 #else
1362 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1363 #endif
1364 PyString_ConcatAndDel(&repr,nrep);
1365 }
1366 return repr;
1367 }
1368
1369 SWIGRUNTIME int
1370 PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1371 {
1372 #ifdef METH_NOARGS
1373 PyObject *repr = PySwigObject_repr(v);
1374 #else
1375 PyObject *repr = PySwigObject_repr(v, NULL);
1376 #endif
1377 if (repr) {
1378 fputs(PyString_AsString(repr), fp);
1379 Py_DECREF(repr);
1380 return 0;
1381 } else {
1382 return 1;
1383 }
1384 }
1385
1386 SWIGRUNTIME PyObject *
1387 PySwigObject_str(PySwigObject *v)
1388 {
1389 char result[SWIG_BUFFER_SIZE];
1390 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1391 PyString_FromString(result) : 0;
1392 }
1393
1394 SWIGRUNTIME int
1395 PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1396 {
1397 void *i = v->ptr;
1398 void *j = w->ptr;
1399 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1400 }
1401
1402 SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1403
1404 SWIGRUNTIME PyTypeObject*
1405 PySwigObject_type(void) {
1406 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1407 return type;
1408 }
1409
1410 SWIGRUNTIMEINLINE int
1411 PySwigObject_Check(PyObject *op) {
1412 return ((op)->ob_type == PySwigObject_type())
1413 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1414 }
1415
1416 SWIGRUNTIME PyObject *
1417 PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1418
1419 SWIGRUNTIME void
1420 PySwigObject_dealloc(PyObject *v)
1421 {
1422 PySwigObject *sobj = (PySwigObject *) v;
1423 PyObject *next = sobj->next;
1424 if (sobj->own) {
1425 swig_type_info *ty = sobj->ty;
1426 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1427 PyObject *destroy = data ? data->destroy : 0;
1428 if (destroy) {
1429 /* destroy is always a VARARGS method */
1430 PyObject *res;
1431 if (data->delargs) {
1432 /* we need to create a temporal object to carry the destroy operation */
1433 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1434 res = SWIG_Python_CallFunctor(destroy, tmp);
1435 Py_DECREF(tmp);
1436 } else {
1437 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1438 PyObject *mself = PyCFunction_GET_SELF(destroy);
1439 res = ((*meth)(mself, v));
1440 }
1441 Py_XDECREF(res);
1442 } else {
1443 const char *name = SWIG_TypePrettyName(ty);
1444 #if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1445 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1446 #endif
1447 }
1448 }
1449 Py_XDECREF(next);
1450 PyObject_DEL(v);
1451 }
1452
1453 SWIGRUNTIME PyObject*
1454 PySwigObject_append(PyObject* v, PyObject* next)
1455 {
1456 PySwigObject *sobj = (PySwigObject *) v;
1457 #ifndef METH_O
1458 PyObject *tmp = 0;
1459 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1460 next = tmp;
1461 #endif
1462 if (!PySwigObject_Check(next)) {
1463 return NULL;
1464 }
1465 sobj->next = next;
1466 Py_INCREF(next);
1467 return SWIG_Py_Void();
1468 }
1469
1470 SWIGRUNTIME PyObject*
1471 #ifdef METH_NOARGS
1472 PySwigObject_next(PyObject* v)
1473 #else
1474 PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1475 #endif
1476 {
1477 PySwigObject *sobj = (PySwigObject *) v;
1478 if (sobj->next) {
1479 Py_INCREF(sobj->next);
1480 return sobj->next;
1481 } else {
1482 return SWIG_Py_Void();
1483 }
1484 }
1485
1486 SWIGINTERN PyObject*
1487 #ifdef METH_NOARGS
1488 PySwigObject_disown(PyObject *v)
1489 #else
1490 PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1491 #endif
1492 {
1493 PySwigObject *sobj = (PySwigObject *)v;
1494 sobj->own = 0;
1495 return SWIG_Py_Void();
1496 }
1497
1498 SWIGINTERN PyObject*
1499 #ifdef METH_NOARGS
1500 PySwigObject_acquire(PyObject *v)
1501 #else
1502 PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1503 #endif
1504 {
1505 PySwigObject *sobj = (PySwigObject *)v;
1506 sobj->own = SWIG_POINTER_OWN;
1507 return SWIG_Py_Void();
1508 }
1509
1510 SWIGINTERN PyObject*
1511 PySwigObject_own(PyObject *v, PyObject *args)
1512 {
1513 PyObject *val = 0;
1514 #if (PY_VERSION_HEX < 0x02020000)
1515 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1516 #else
1517 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1518 #endif
1519 {
1520 return NULL;
1521 }
1522 else
1523 {
1524 PySwigObject *sobj = (PySwigObject *)v;
1525 PyObject *obj = PyBool_FromLong(sobj->own);
1526 if (val) {
1527 #ifdef METH_NOARGS
1528 if (PyObject_IsTrue(val)) {
1529 PySwigObject_acquire(v);
1530 } else {
1531 PySwigObject_disown(v);
1532 }
1533 #else
1534 if (PyObject_IsTrue(val)) {
1535 PySwigObject_acquire(v,args);
1536 } else {
1537 PySwigObject_disown(v,args);
1538 }
1539 #endif
1540 }
1541 return obj;
1542 }
1543 }
1544
1545 #ifdef METH_O
1546 static PyMethodDef
1547 swigobject_methods[] = {
1548 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1549 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1550 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1551 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1552 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1553 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1554 {0, 0, 0, 0}
1555 };
1556 #else
1557 static PyMethodDef
1558 swigobject_methods[] = {
1559 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1560 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1561 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1562 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1563 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1564 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1565 {0, 0, 0, 0}
1566 };
1567 #endif
1568
1569 #if PY_VERSION_HEX < 0x02020000
1570 SWIGINTERN PyObject *
1571 PySwigObject_getattr(PySwigObject *sobj,char *name)
1572 {
1573 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1574 }
1575 #endif
1576
1577 SWIGRUNTIME PyTypeObject*
1578 _PySwigObject_type(void) {
1579 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1580
1581 static PyNumberMethods PySwigObject_as_number = {
1582 (binaryfunc)0, /*nb_add*/
1583 (binaryfunc)0, /*nb_subtract*/
1584 (binaryfunc)0, /*nb_multiply*/
1585 (binaryfunc)0, /*nb_divide*/
1586 (binaryfunc)0, /*nb_remainder*/
1587 (binaryfunc)0, /*nb_divmod*/
1588 (ternaryfunc)0,/*nb_power*/
1589 (unaryfunc)0, /*nb_negative*/
1590 (unaryfunc)0, /*nb_positive*/
1591 (unaryfunc)0, /*nb_absolute*/
1592 (inquiry)0, /*nb_nonzero*/
1593 0, /*nb_invert*/
1594 0, /*nb_lshift*/
1595 0, /*nb_rshift*/
1596 0, /*nb_and*/
1597 0, /*nb_xor*/
1598 0, /*nb_or*/
1599 (coercion)0, /*nb_coerce*/
1600 (unaryfunc)PySwigObject_long, /*nb_int*/
1601 (unaryfunc)PySwigObject_long, /*nb_long*/
1602 (unaryfunc)0, /*nb_float*/
1603 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1604 (unaryfunc)PySwigObject_hex, /*nb_hex*/
1605 #if PY_VERSION_HEX >= 0x02020000
1606 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
1607 #elif PY_VERSION_HEX >= 0x02000000
1608 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
1609 #endif
1610 };
1611
1612 static PyTypeObject pyswigobject_type;
1613 static int type_init = 0;
1614 if (!type_init) {
1615 const PyTypeObject tmp
1616 = {
1617 PyObject_HEAD_INIT(NULL)
1618 0, /* ob_size */
1619 (char *)"PySwigObject", /* tp_name */
1620 sizeof(PySwigObject), /* tp_basicsize */
1621 0, /* tp_itemsize */
1622 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1623 (printfunc)PySwigObject_print, /* tp_print */
1624 #if PY_VERSION_HEX < 0x02020000
1625 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1626 #else
1627 (getattrfunc)0, /* tp_getattr */
1628 #endif
1629 (setattrfunc)0, /* tp_setattr */
1630 (cmpfunc)PySwigObject_compare, /* tp_compare */
1631 (reprfunc)PySwigObject_repr, /* tp_repr */
1632 &PySwigObject_as_number, /* tp_as_number */
1633 0, /* tp_as_sequence */
1634 0, /* tp_as_mapping */
1635 (hashfunc)0, /* tp_hash */
1636 (ternaryfunc)0, /* tp_call */
1637 (reprfunc)PySwigObject_str, /* tp_str */
1638 PyObject_GenericGetAttr, /* tp_getattro */
1639 0, /* tp_setattro */
1640 0, /* tp_as_buffer */
1641 Py_TPFLAGS_DEFAULT, /* tp_flags */
1642 swigobject_doc, /* tp_doc */
1643 0, /* tp_traverse */
1644 0, /* tp_clear */
1645 0, /* tp_richcompare */
1646 0, /* tp_weaklistoffset */
1647 #if PY_VERSION_HEX >= 0x02020000
1648 0, /* tp_iter */
1649 0, /* tp_iternext */
1650 swigobject_methods, /* tp_methods */
1651 0, /* tp_members */
1652 0, /* tp_getset */
1653 0, /* tp_base */
1654 0, /* tp_dict */
1655 0, /* tp_descr_get */
1656 0, /* tp_descr_set */
1657 0, /* tp_dictoffset */
1658 0, /* tp_init */
1659 0, /* tp_alloc */
1660 0, /* tp_new */
1661 0, /* tp_free */
1662 0, /* tp_is_gc */
1663 0, /* tp_bases */
1664 0, /* tp_mro */
1665 0, /* tp_cache */
1666 0, /* tp_subclasses */
1667 0, /* tp_weaklist */
1668 #endif
1669 #if PY_VERSION_HEX >= 0x02030000
1670 0, /* tp_del */
1671 #endif
1672 #ifdef COUNT_ALLOCS
1673 0,0,0,0 /* tp_alloc -> tp_next */
1674 #endif
1675 };
1676 pyswigobject_type = tmp;
1677 pyswigobject_type.ob_type = &PyType_Type;
1678 type_init = 1;
1679 }
1680 return &pyswigobject_type;
1681 }
1682
1683 SWIGRUNTIME PyObject *
1684 PySwigObject_New(void *ptr, swig_type_info *ty, int own)
1685 {
1686 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1687 if (sobj) {
1688 sobj->ptr = ptr;
1689 sobj->ty = ty;
1690 sobj->own = own;
1691 sobj->next = 0;
1692 }
1693 return (PyObject *)sobj;
1694 }
1695
1696 /* -----------------------------------------------------------------------------
1697 * Implements a simple Swig Packed type, and use it instead of string
1698 * ----------------------------------------------------------------------------- */
1699
1700 typedef struct {
1701 PyObject_HEAD
1702 void *pack;
1703 swig_type_info *ty;
1704 size_t size;
1705 } PySwigPacked;
1706
1707 SWIGRUNTIME int
1708 PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1709 {
1710 char result[SWIG_BUFFER_SIZE];
1711 fputs("<Swig Packed ", fp);
1712 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1713 fputs("at ", fp);
1714 fputs(result, fp);
1715 }
1716 fputs(v->ty->name,fp);
1717 fputs(">", fp);
1718 return 0;
1719 }
1720
1721 SWIGRUNTIME PyObject *
1722 PySwigPacked_repr(PySwigPacked *v)
1723 {
1724 char result[SWIG_BUFFER_SIZE];
1725 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1726 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
1727 } else {
1728 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
1729 }
1730 }
1731
1732 SWIGRUNTIME PyObject *
1733 PySwigPacked_str(PySwigPacked *v)
1734 {
1735 char result[SWIG_BUFFER_SIZE];
1736 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1737 return PyString_FromFormat("%s%s", result, v->ty->name);
1738 } else {
1739 return PyString_FromString(v->ty->name);
1740 }
1741 }
1742
1743 SWIGRUNTIME int
1744 PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
1745 {
1746 size_t i = v->size;
1747 size_t j = w->size;
1748 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1749 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
1750 }
1751
1752 SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
1753
1754 SWIGRUNTIME PyTypeObject*
1755 PySwigPacked_type(void) {
1756 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1757 return type;
1758 }
1759
1760 SWIGRUNTIMEINLINE int
1761 PySwigPacked_Check(PyObject *op) {
1762 return ((op)->ob_type == _PySwigPacked_type())
1763 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1764 }
1765
1766 SWIGRUNTIME void
1767 PySwigPacked_dealloc(PyObject *v)
1768 {
1769 if (PySwigPacked_Check(v)) {
1770 PySwigPacked *sobj = (PySwigPacked *) v;
1771 free(sobj->pack);
1772 }
1773 PyObject_DEL(v);
1774 }
1775
1776 SWIGRUNTIME PyTypeObject*
1777 _PySwigPacked_type(void) {
1778 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1779 static PyTypeObject pyswigpacked_type;
1780 static int type_init = 0;
1781 if (!type_init) {
1782 const PyTypeObject tmp
1783 = {
1784 PyObject_HEAD_INIT(NULL)
1785 0, /* ob_size */
1786 (char *)"PySwigPacked", /* tp_name */
1787 sizeof(PySwigPacked), /* tp_basicsize */
1788 0, /* tp_itemsize */
1789 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1790 (printfunc)PySwigPacked_print, /* tp_print */
1791 (getattrfunc)0, /* tp_getattr */
1792 (setattrfunc)0, /* tp_setattr */
1793 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1794 (reprfunc)PySwigPacked_repr, /* tp_repr */
1795 0, /* tp_as_number */
1796 0, /* tp_as_sequence */
1797 0, /* tp_as_mapping */
1798 (hashfunc)0, /* tp_hash */
1799 (ternaryfunc)0, /* tp_call */
1800 (reprfunc)PySwigPacked_str, /* tp_str */
1801 PyObject_GenericGetAttr, /* tp_getattro */
1802 0, /* tp_setattro */
1803 0, /* tp_as_buffer */
1804 Py_TPFLAGS_DEFAULT, /* tp_flags */
1805 swigpacked_doc, /* tp_doc */
1806 0, /* tp_traverse */
1807 0, /* tp_clear */
1808 0, /* tp_richcompare */
1809 0, /* tp_weaklistoffset */
1810 #if PY_VERSION_HEX >= 0x02020000
1811 0, /* tp_iter */
1812 0, /* tp_iternext */
1813 0, /* tp_methods */
1814 0, /* tp_members */
1815 0, /* tp_getset */
1816 0, /* tp_base */
1817 0, /* tp_dict */
1818 0, /* tp_descr_get */
1819 0, /* tp_descr_set */
1820 0, /* tp_dictoffset */
1821 0, /* tp_init */
1822 0, /* tp_alloc */
1823 0, /* tp_new */
1824 0, /* tp_free */
1825 0, /* tp_is_gc */
1826 0, /* tp_bases */
1827 0, /* tp_mro */
1828 0, /* tp_cache */
1829 0, /* tp_subclasses */
1830 0, /* tp_weaklist */
1831 #endif
1832 #if PY_VERSION_HEX >= 0x02030000
1833 0, /* tp_del */
1834 #endif
1835 #ifdef COUNT_ALLOCS
1836 0,0,0,0 /* tp_alloc -> tp_next */
1837 #endif
1838 };
1839 pyswigpacked_type = tmp;
1840 pyswigpacked_type.ob_type = &PyType_Type;
1841 type_init = 1;
1842 }
1843 return &pyswigpacked_type;
1844 }
1845
1846 SWIGRUNTIME PyObject *
1847 PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
1848 {
1849 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1850 if (sobj) {
1851 void *pack = malloc(size);
1852 if (pack) {
1853 memcpy(pack, ptr, size);
1854 sobj->pack = pack;
1855 sobj->ty = ty;
1856 sobj->size = size;
1857 } else {
1858 PyObject_DEL((PyObject *) sobj);
1859 sobj = 0;
1860 }
1861 }
1862 return (PyObject *) sobj;
1863 }
1864
1865 SWIGRUNTIME swig_type_info *
1866 PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1867 {
1868 if (PySwigPacked_Check(obj)) {
1869 PySwigPacked *sobj = (PySwigPacked *)obj;
1870 if (sobj->size != size) return 0;
1871 memcpy(ptr, sobj->pack, size);
1872 return sobj->ty;
1873 } else {
1874 return 0;
1875 }
1876 }
1877
1878 /* -----------------------------------------------------------------------------
1879 * pointers/data manipulation
1880 * ----------------------------------------------------------------------------- */
1881
1882 SWIGRUNTIMEINLINE PyObject *
1883 _SWIG_This(void)
1884 {
1885 return PyString_FromString("this");
1886 }
1887
1888 SWIGRUNTIME PyObject *
1889 SWIG_This(void)
1890 {
1891 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1892 return swig_this;
1893 }
1894
1895 /* #define SWIG_PYTHON_SLOW_GETSET_THIS */
1896
1897 SWIGRUNTIME PySwigObject *
1898 SWIG_Python_GetSwigThis(PyObject *pyobj)
1899 {
1900 if (PySwigObject_Check(pyobj)) {
1901 return (PySwigObject *) pyobj;
1902 } else {
1903 PyObject *obj = 0;
1904 #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1905 if (PyInstance_Check(pyobj)) {
1906 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1907 } else {
1908 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1909 if (dictptr != NULL) {
1910 PyObject *dict = *dictptr;
1911 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1912 } else {
1913 #ifdef PyWeakref_CheckProxy
1914 if (PyWeakref_CheckProxy(pyobj)) {
1915 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1916 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1917 }
1918 #endif
1919 obj = PyObject_GetAttr(pyobj,SWIG_This());
1920 if (obj) {
1921 Py_DECREF(obj);
1922 } else {
1923 if (PyErr_Occurred()) PyErr_Clear();
1924 return 0;
1925 }
1926 }
1927 }
1928 #else
1929 obj = PyObject_GetAttr(pyobj,SWIG_This());
1930 if (obj) {
1931 Py_DECREF(obj);
1932 } else {
1933 if (PyErr_Occurred()) PyErr_Clear();
1934 return 0;
1935 }
1936 #endif
1937 if (obj && !PySwigObject_Check(obj)) {
1938 /* a PyObject is called 'this', try to get the 'real this'
1939 PySwigObject from it */
1940 return SWIG_Python_GetSwigThis(obj);
1941 }
1942 return (PySwigObject *)obj;
1943 }
1944 }
1945
1946 /* Acquire a pointer value */
1947
1948 SWIGRUNTIME int
1949 SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1950 if (own) {
1951 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1952 if (sobj) {
1953 int oldown = sobj->own;
1954 sobj->own = own;
1955 return oldown;
1956 }
1957 }
1958 return 0;
1959 }
1960
1961 /* Convert a pointer value */
1962
1963 SWIGRUNTIME int
1964 SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1965 if (!obj) return SWIG_ERROR;
1966 if (obj == Py_None) {
1967 if (ptr) *ptr = 0;
1968 return SWIG_OK;
1969 } else {
1970 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1971 while (sobj) {
1972 void *vptr = sobj->ptr;
1973 if (ty) {
1974 swig_type_info *to = sobj->ty;
1975 if (to == ty) {
1976 /* no type cast needed */
1977 if (ptr) *ptr = vptr;
1978 break;
1979 } else {
1980 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1981 if (!tc) {
1982 sobj = (PySwigObject *)sobj->next;
1983 } else {
1984 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1985 break;
1986 }
1987 }
1988 } else {
1989 if (ptr) *ptr = vptr;
1990 break;
1991 }
1992 }
1993 if (sobj) {
1994 if (own) *own = sobj->own;
1995 if (flags & SWIG_POINTER_DISOWN) {
1996 sobj->own = 0;
1997 }
1998 return SWIG_OK;
1999 } else {
2000 int res = SWIG_ERROR;
2001 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2002 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2003 if (data && !data->implicitconv) {
2004 PyObject *klass = data->klass;
2005 if (klass) {
2006 PyObject *impconv;
2007 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2008 impconv = SWIG_Python_CallFunctor(klass, obj);
2009 data->implicitconv = 0;
2010 if (PyErr_Occurred()) {
2011 PyErr_Clear();
2012 impconv = 0;
2013 }
2014 if (impconv) {
2015 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2016 if (iobj) {
2017 void *vptr;
2018 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2019 if (SWIG_IsOK(res)) {
2020 if (ptr) {
2021 *ptr = vptr;
2022 /* transfer the ownership to 'ptr' */
2023 iobj->own = 0;
2024 res = SWIG_AddCast(res);
2025 res = SWIG_AddNewMask(res);
2026 } else {
2027 res = SWIG_AddCast(res);
2028 }
2029 }
2030 }
2031 Py_DECREF(impconv);
2032 }
2033 }
2034 }
2035 }
2036 return res;
2037 }
2038 }
2039 }
2040
2041 /* Convert a function ptr value */
2042
2043 SWIGRUNTIME int
2044 SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2045 if (!PyCFunction_Check(obj)) {
2046 return SWIG_ConvertPtr(obj, ptr, ty, 0);
2047 } else {
2048 void *vptr = 0;
2049
2050 /* here we get the method pointer for callbacks */
2051 char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2052 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2053 if (desc) {
2054 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2055 if (!desc) return SWIG_ERROR;
2056 }
2057 if (ty) {
2058 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2059 if (!tc) return SWIG_ERROR;
2060 *ptr = SWIG_TypeCast(tc,vptr);
2061 } else {
2062 *ptr = vptr;
2063 }
2064 return SWIG_OK;
2065 }
2066 }
2067
2068 /* Convert a packed value value */
2069
2070 SWIGRUNTIME int
2071 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2072 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2073 if (!to) return SWIG_ERROR;
2074 if (ty) {
2075 if (to != ty) {
2076 /* check type cast? */
2077 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2078 if (!tc) return SWIG_ERROR;
2079 }
2080 }
2081 return SWIG_OK;
2082 }
2083
2084 /* -----------------------------------------------------------------------------
2085 * Create a new pointer object
2086 * ----------------------------------------------------------------------------- */
2087
2088 /*
2089 Create a new instance object, whitout calling __init__, and set the
2090 'this' attribute.
2091 */
2092
2093 SWIGRUNTIME PyObject*
2094 SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2095 {
2096 #if (PY_VERSION_HEX >= 0x02020000)
2097 PyObject *inst = 0;
2098 PyObject *newraw = data->newraw;
2099 if (newraw) {
2100 inst = PyObject_Call(newraw, data->newargs, NULL);
2101 if (inst) {
2102 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2103 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2104 if (dictptr != NULL) {
2105 PyObject *dict = *dictptr;
2106 if (dict == NULL) {
2107 dict = PyDict_New();
2108 *dictptr = dict;
2109 PyDict_SetItem(dict, SWIG_This(), swig_this);
2110 }
2111 }
2112 #else
2113 PyObject *key = SWIG_This();
2114 PyObject_SetAttr(inst, key, swig_this);
2115 #endif
2116 }
2117 } else {
2118 PyObject *dict = PyDict_New();
2119 PyDict_SetItem(dict, SWIG_This(), swig_this);
2120 inst = PyInstance_NewRaw(data->newargs, dict);
2121 Py_DECREF(dict);
2122 }
2123 return inst;
2124 #else
2125 #if (PY_VERSION_HEX >= 0x02010000)
2126 PyObject *inst;
2127 PyObject *dict = PyDict_New();
2128 PyDict_SetItem(dict, SWIG_This(), swig_this);
2129 inst = PyInstance_NewRaw(data->newargs, dict);
2130 Py_DECREF(dict);
2131 return (PyObject *) inst;
2132 #else
2133 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2134 if (inst == NULL) {
2135 return NULL;
2136 }
2137 inst->in_class = (PyClassObject *)data->newargs;
2138 Py_INCREF(inst->in_class);
2139 inst->in_dict = PyDict_New();
2140 if (inst->in_dict == NULL) {
2141 Py_DECREF(inst);
2142 return NULL;
2143 }
2144 #ifdef Py_TPFLAGS_HAVE_WEAKREFS
2145 inst->in_weakreflist = NULL;
2146 #endif
2147 #ifdef Py_TPFLAGS_GC
2148 PyObject_GC_Init(inst);
2149 #endif
2150 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2151 return (PyObject *) inst;
2152 #endif
2153 #endif
2154 }
2155
2156 SWIGRUNTIME void
2157 SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2158 {
2159 PyObject *dict;
2160 #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2161 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2162 if (dictptr != NULL) {
2163 dict = *dictptr;
2164 if (dict == NULL) {
2165 dict = PyDict_New();
2166 *dictptr = dict;
2167 }
2168 PyDict_SetItem(dict, SWIG_This(), swig_this);
2169 return;
2170 }
2171 #endif
2172 dict = PyObject_GetAttrString(inst, "__dict__");
2173 PyDict_SetItem(dict, SWIG_This(), swig_this);
2174 Py_DECREF(dict);
2175 }
2176
2177
2178 SWIGINTERN PyObject *
2179 SWIG_Python_InitShadowInstance(PyObject *args) {
2180 PyObject *obj[2];
2181 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2182 return NULL;
2183 } else {
2184 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2185 if (sthis) {
2186 PySwigObject_append((PyObject*) sthis, obj[1]);
2187 } else {
2188 SWIG_Python_SetSwigThis(obj[0], obj[1]);
2189 }
2190 return SWIG_Py_Void();
2191 }
2192 }
2193
2194 /* Create a new pointer object */
2195
2196 SWIGRUNTIME PyObject *
2197 SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
2198 if (!ptr) {
2199 return SWIG_Py_Void();
2200 } else {
2201 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2202 PyObject *robj = PySwigObject_New(ptr, type, own);
2203 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2204 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2205 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2206 if (inst) {
2207 Py_DECREF(robj);
2208 robj = inst;
2209 }
2210 }
2211 return robj;
2212 }
2213 }
2214
2215 /* Create a new packed object */
2216
2217 SWIGRUNTIMEINLINE PyObject *
2218 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
2219 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2220 }
2221
2222 /* -----------------------------------------------------------------------------*
2223 * Get type list
2224 * -----------------------------------------------------------------------------*/
2225
2226 #ifdef SWIG_LINK_RUNTIME
2227 void *SWIG_ReturnGlobalTypeList(void *);
2228 #endif
2229
2230 SWIGRUNTIME swig_module_info *
2231 SWIG_Python_GetModule(void) {
2232 static void *type_pointer = (void *)0;
2233 /* first check if module already created */
2234 if (!type_pointer) {
2235 #ifdef SWIG_LINK_RUNTIME
2236 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2237 #else
2238 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2239 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2240 if (PyErr_Occurred()) {
2241 PyErr_Clear();
2242 type_pointer = (void *)0;
2243 }
2244 #endif
2245 }
2246 return (swig_module_info *) type_pointer;
2247 }
2248
2249 #if PY_MAJOR_VERSION < 2
2250 /* PyModule_AddObject function was introduced in Python 2.0. The following function
2251 is copied out of Python/modsupport.c in python version 2.3.4 */
2252 SWIGINTERN int
2253 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2254 {
2255 PyObject *dict;
2256 if (!PyModule_Check(m)) {
2257 PyErr_SetString(PyExc_TypeError,
2258 "PyModule_AddObject() needs module as first arg");
2259 return SWIG_ERROR;
2260 }
2261 if (!o) {
2262 PyErr_SetString(PyExc_TypeError,
2263 "PyModule_AddObject() needs non-NULL value");
2264 return SWIG_ERROR;
2265 }
2266
2267 dict = PyModule_GetDict(m);
2268 if (dict == NULL) {
2269 /* Internal error -- modules must have a dict! */
2270 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2271 PyModule_GetName(m));
2272 return SWIG_ERROR;
2273 }
2274 if (PyDict_SetItemString(dict, name, o))
2275 return SWIG_ERROR;
2276 Py_DECREF(o);
2277 return SWIG_OK;
2278 }
2279 #endif
2280
2281 SWIGRUNTIME void
2282 SWIG_Python_DestroyModule(void *vptr)
2283 {
2284 swig_module_info *swig_module = (swig_module_info *) vptr;
2285 swig_type_info **types = swig_module->types;
2286 size_t i;
2287 for (i =0; i < swig_module->size; ++i) {
2288 swig_type_info *ty = types[i];
2289 if (ty->owndata) {
2290 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2291 if (data) PySwigClientData_Del(data);
2292 }
2293 }
2294 Py_DECREF(SWIG_This());
2295 }
2296
2297 SWIGRUNTIME void
2298 SWIG_Python_SetModule(swig_module_info *swig_module) {
2299 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2300
2301 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2302 swig_empty_runtime_method_table);
2303 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
2304 if (pointer && module) {
2305 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
2306 } else {
2307 Py_XDECREF(pointer);
2308 }
2309 }
2310
2311 /* The python cached type query */
2312 SWIGRUNTIME PyObject *
2313 SWIG_Python_TypeCache() {
2314 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2315 return cache;
2316 }
2317
2318 SWIGRUNTIME swig_type_info *
2319 SWIG_Python_TypeQuery(const char *type)
2320 {
2321 PyObject *cache = SWIG_Python_TypeCache();
2322 PyObject *key = PyString_FromString(type);
2323 PyObject *obj = PyDict_GetItem(cache, key);
2324 swig_type_info *descriptor;
2325 if (obj) {
2326 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2327 } else {
2328 swig_module_info *swig_module = SWIG_Python_GetModule();
2329 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2330 if (descriptor) {
2331 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2332 PyDict_SetItem(cache, key, obj);
2333 Py_DECREF(obj);
2334 }
2335 }
2336 Py_DECREF(key);
2337 return descriptor;
2338 }
2339
2340 /*
2341 For backward compatibility only
2342 */
2343 #define SWIG_POINTER_EXCEPTION 0
2344 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2345 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2346
2347 SWIGRUNTIME int
2348 SWIG_Python_AddErrMesg(const char* mesg, int infront)
2349 {
2350 if (PyErr_Occurred()) {
2351 PyObject *type = 0;
2352 PyObject *value = 0;
2353 PyObject *traceback = 0;
2354 PyErr_Fetch(&type, &value, &traceback);
2355 if (value) {
2356 PyObject *old_str = PyObject_Str(value);
2357 Py_XINCREF(type);
2358 PyErr_Clear();
2359 if (infront) {
2360 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2361 } else {
2362 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2363 }
2364 Py_DECREF(old_str);
2365 }
2366 return 1;
2367 } else {
2368 return 0;
2369 }
2370 }
2371
2372 SWIGRUNTIME int
2373 SWIG_Python_ArgFail(int argnum)
2374 {
2375 if (PyErr_Occurred()) {
2376 /* add information about failing argument */
2377 char mesg[256];
2378 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2379 return SWIG_Python_AddErrMesg(mesg, 1);
2380 } else {
2381 return 0;
2382 }
2383 }
2384
2385 SWIGRUNTIMEINLINE const char *
2386 PySwigObject_GetDesc(PyObject *self)
2387 {
2388 PySwigObject *v = (PySwigObject *)self;
2389 swig_type_info *ty = v ? v->ty : 0;
2390 return ty ? ty->str : (char*)"";
2391 }
2392
2393 SWIGRUNTIME void
2394 SWIG_Python_TypeError(const char *type, PyObject *obj)
2395 {
2396 if (type) {
2397 #if defined(SWIG_COBJECT_TYPES)
2398 if (obj && PySwigObject_Check(obj)) {
2399 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2400 if (otype) {
2401 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2402 type, otype);
2403 return;
2404 }
2405 } else
2406 #endif
2407 {
2408 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2409 if (otype) {
2410 PyObject *str = PyObject_Str(obj);
2411 const char *cstr = str ? PyString_AsString(str) : 0;
2412 if (cstr) {
2413 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2414 type, otype, cstr);
2415 } else {
2416 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2417 type, otype);
2418 }
2419 Py_XDECREF(str);
2420 return;
2421 }
2422 }
2423 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2424 } else {
2425 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2426 }
2427 }
2428
2429
2430 /* Convert a pointer value, signal an exception on a type mismatch */
2431 SWIGRUNTIME void *
2432 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2433 void *result;
2434 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2435 PyErr_Clear();
2436 if (flags & SWIG_POINTER_EXCEPTION) {
2437 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2438 SWIG_Python_ArgFail(argnum);
2439 }
2440 }
2441 return result;
2442 }
2443
2444
2445 #ifdef __cplusplus
2446 #if 0
2447 { /* cc-mode */
2448 #endif
2449 }
2450 #endif
2451
2452
2453
2454 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2455
2456 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2457
2458
2459
2460 /* -------- TYPES TABLE (BEGIN) -------- */
2461
2462 #define SWIGTYPE_p_char swig_types[0]
2463 #define SWIGTYPE_p_double swig_types[1]
2464 #define SWIGTYPE_p_form_ops_t swig_types[2]
2465 #define SWIGTYPE_p_int swig_types[3]
2466 #define SWIGTYPE_p_unsigned_char swig_types[4]
2467 #define SWIGTYPE_p_unsigned_int swig_types[5]
2468 #define SWIGTYPE_p_unsigned_long swig_types[6]
2469 #define SWIGTYPE_p_wxANIHandler swig_types[7]
2470 #define SWIGTYPE_p_wxAcceleratorTable swig_types[8]
2471 #define SWIGTYPE_p_wxActivateEvent swig_types[9]
2472 #define SWIGTYPE_p_wxBMPHandler swig_types[10]
2473 #define SWIGTYPE_p_wxBitmap swig_types[11]
2474 #define SWIGTYPE_p_wxBoxSizer swig_types[12]
2475 #define SWIGTYPE_p_wxBrush swig_types[13]
2476 #define SWIGTYPE_p_wxBrushList swig_types[14]
2477 #define SWIGTYPE_p_wxBufferedDC swig_types[15]
2478 #define SWIGTYPE_p_wxBufferedPaintDC swig_types[16]
2479 #define SWIGTYPE_p_wxCURHandler swig_types[17]
2480 #define SWIGTYPE_p_wxChildFocusEvent swig_types[18]
2481 #define SWIGTYPE_p_wxClientDC swig_types[19]
2482 #define SWIGTYPE_p_wxClipboardTextEvent swig_types[20]
2483 #define SWIGTYPE_p_wxCloseEvent swig_types[21]
2484 #define SWIGTYPE_p_wxColour swig_types[22]
2485 #define SWIGTYPE_p_wxColourDatabase swig_types[23]
2486 #define SWIGTYPE_p_wxCommandEvent swig_types[24]
2487 #define SWIGTYPE_p_wxContextMenuEvent swig_types[25]
2488 #define SWIGTYPE_p_wxControl swig_types[26]
2489 #define SWIGTYPE_p_wxControlWithItems swig_types[27]
2490 #define SWIGTYPE_p_wxCursor swig_types[28]
2491 #define SWIGTYPE_p_wxDC swig_types[29]
2492 #define SWIGTYPE_p_wxDash swig_types[30]
2493 #define SWIGTYPE_p_wxDateEvent swig_types[31]
2494 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[32]
2495 #define SWIGTYPE_p_wxDropFilesEvent swig_types[33]
2496 #define SWIGTYPE_p_wxDuplexMode swig_types[34]
2497 #define SWIGTYPE_p_wxEffects swig_types[35]
2498 #define SWIGTYPE_p_wxEncodingConverter swig_types[36]
2499 #define SWIGTYPE_p_wxEraseEvent swig_types[37]
2500 #define SWIGTYPE_p_wxEvent swig_types[38]
2501 #define SWIGTYPE_p_wxEvtHandler swig_types[39]
2502 #define SWIGTYPE_p_wxFSFile swig_types[40]
2503 #define SWIGTYPE_p_wxFileSystem swig_types[41]
2504 #define SWIGTYPE_p_wxFlexGridSizer swig_types[42]
2505 #define SWIGTYPE_p_wxFocusEvent swig_types[43]
2506 #define SWIGTYPE_p_wxFont swig_types[44]
2507 #define SWIGTYPE_p_wxFontList swig_types[45]
2508 #define SWIGTYPE_p_wxFontMapper swig_types[46]
2509 #define SWIGTYPE_p_wxGBSizerItem swig_types[47]
2510 #define SWIGTYPE_p_wxGDIObjListBase swig_types[48]
2511 #define SWIGTYPE_p_wxGDIObject swig_types[49]
2512 #define SWIGTYPE_p_wxGIFHandler swig_types[50]
2513 #define SWIGTYPE_p_wxGridBagSizer swig_types[51]
2514 #define SWIGTYPE_p_wxGridSizer swig_types[52]
2515 #define SWIGTYPE_p_wxICOHandler swig_types[53]
2516 #define SWIGTYPE_p_wxIcon swig_types[54]
2517 #define SWIGTYPE_p_wxIconBundle swig_types[55]
2518 #define SWIGTYPE_p_wxIconLocation swig_types[56]
2519 #define SWIGTYPE_p_wxIconizeEvent swig_types[57]
2520 #define SWIGTYPE_p_wxIdleEvent swig_types[58]
2521 #define SWIGTYPE_p_wxImage swig_types[59]
2522 #define SWIGTYPE_p_wxImageHandler swig_types[60]
2523 #define SWIGTYPE_p_wxImageList swig_types[61]
2524 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[62]
2525 #define SWIGTYPE_p_wxInitDialogEvent swig_types[63]
2526 #define SWIGTYPE_p_wxJPEGHandler swig_types[64]
2527 #define SWIGTYPE_p_wxKeyEvent swig_types[65]
2528 #define SWIGTYPE_p_wxLanguageInfo swig_types[66]
2529 #define SWIGTYPE_p_wxLayoutConstraints swig_types[67]
2530 #define SWIGTYPE_p_wxLocale swig_types[68]
2531 #define SWIGTYPE_p_wxMask swig_types[69]
2532 #define SWIGTYPE_p_wxMaximizeEvent swig_types[70]
2533 #define SWIGTYPE_p_wxMemoryDC swig_types[71]
2534 #define SWIGTYPE_p_wxMenu swig_types[72]
2535 #define SWIGTYPE_p_wxMenuBar swig_types[73]
2536 #define SWIGTYPE_p_wxMenuEvent swig_types[74]
2537 #define SWIGTYPE_p_wxMenuItem swig_types[75]
2538 #define SWIGTYPE_p_wxMetaFile swig_types[76]
2539 #define SWIGTYPE_p_wxMetaFileDC swig_types[77]
2540 #define SWIGTYPE_p_wxMirrorDC swig_types[78]
2541 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[79]
2542 #define SWIGTYPE_p_wxMouseEvent swig_types[80]
2543 #define SWIGTYPE_p_wxMoveEvent swig_types[81]
2544 #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[82]
2545 #define SWIGTYPE_p_wxNativeFontInfo swig_types[83]
2546 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[84]
2547 #define SWIGTYPE_p_wxNcPaintEvent swig_types[85]
2548 #define SWIGTYPE_p_wxNotifyEvent swig_types[86]
2549 #define SWIGTYPE_p_wxObject swig_types[87]
2550 #define SWIGTYPE_p_wxPCXHandler swig_types[88]
2551 #define SWIGTYPE_p_wxPNGHandler swig_types[89]
2552 #define SWIGTYPE_p_wxPNMHandler swig_types[90]
2553 #define SWIGTYPE_p_wxPaintDC swig_types[91]
2554 #define SWIGTYPE_p_wxPaintEvent swig_types[92]
2555 #define SWIGTYPE_p_wxPalette swig_types[93]
2556 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[94]
2557 #define SWIGTYPE_p_wxPaperSize swig_types[95]
2558 #define SWIGTYPE_p_wxPen swig_types[96]
2559 #define SWIGTYPE_p_wxPenList swig_types[97]
2560 #define SWIGTYPE_p_wxPoint swig_types[98]
2561 #define SWIGTYPE_p_wxPostScriptDC swig_types[99]
2562 #define SWIGTYPE_p_wxPrintData swig_types[100]
2563 #define SWIGTYPE_p_wxPrinterDC swig_types[101]
2564 #define SWIGTYPE_p_wxPyApp swig_types[102]
2565 #define SWIGTYPE_p_wxPyCommandEvent swig_types[103]
2566 #define SWIGTYPE_p_wxPyEvent swig_types[104]
2567 #define SWIGTYPE_p_wxPyFontEnumerator swig_types[105]
2568 #define SWIGTYPE_p_wxPyImageHandler swig_types[106]
2569 #define SWIGTYPE_p_wxPySizer swig_types[107]
2570 #define SWIGTYPE_p_wxPyValidator swig_types[108]
2571 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[109]
2572 #define SWIGTYPE_p_wxRect swig_types[110]
2573 #define SWIGTYPE_p_wxRegion swig_types[111]
2574 #define SWIGTYPE_p_wxRegionIterator swig_types[112]
2575 #define SWIGTYPE_p_wxRendererNative swig_types[113]
2576 #define SWIGTYPE_p_wxRendererVersion swig_types[114]
2577 #define SWIGTYPE_p_wxScreenDC swig_types[115]
2578 #define SWIGTYPE_p_wxScrollEvent swig_types[116]
2579 #define SWIGTYPE_p_wxScrollWinEvent swig_types[117]
2580 #define SWIGTYPE_p_wxSetCursorEvent swig_types[118]
2581 #define SWIGTYPE_p_wxShowEvent swig_types[119]
2582 #define SWIGTYPE_p_wxSize swig_types[120]
2583 #define SWIGTYPE_p_wxSizeEvent swig_types[121]
2584 #define SWIGTYPE_p_wxSizer swig_types[122]
2585 #define SWIGTYPE_p_wxSizerItem swig_types[123]
2586 #define SWIGTYPE_p_wxSplitterRenderParams swig_types[124]
2587 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[125]
2588 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[126]
2589 #define SWIGTYPE_p_wxStockGDI swig_types[127]
2590 #define SWIGTYPE_p_wxString swig_types[128]
2591 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[129]
2592 #define SWIGTYPE_p_wxTIFFHandler swig_types[130]
2593 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[131]
2594 #define SWIGTYPE_p_wxValidator swig_types[132]
2595 #define SWIGTYPE_p_wxWindow swig_types[133]
2596 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[134]
2597 #define SWIGTYPE_p_wxWindowDC swig_types[135]
2598 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[136]
2599 #define SWIGTYPE_p_wxXPMHandler swig_types[137]
2600 static swig_type_info *swig_types[139];
2601 static swig_module_info swig_module = {swig_types, 138, 0, 0, 0, 0};
2602 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2603 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2604
2605 /* -------- TYPES TABLE (END) -------- */
2606
2607 #if (PY_VERSION_HEX <= 0x02000000)
2608 # if !defined(SWIG_PYTHON_CLASSIC)
2609 # error "This python version requires to use swig with the '-classic' option"
2610 # endif
2611 #endif
2612 #if (PY_VERSION_HEX <= 0x02020000)
2613 # error "This python version requires to use swig with the '-nomodern' option"
2614 #endif
2615 #if (PY_VERSION_HEX <= 0x02020000)
2616 # error "This python version requires to use swig with the '-nomodernargs' option"
2617 #endif
2618 #ifndef METH_O
2619 # error "This python version requires to use swig with the '-nofastunpack' option"
2620 #endif
2621
2622 /*-----------------------------------------------
2623 @(target):= _gdi_.so
2624 ------------------------------------------------*/
2625 #define SWIG_init init_gdi_
2626
2627 #define SWIG_name "_gdi_"
2628
2629 #define SWIGVERSION 0x010329
2630
2631
2632 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2633 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2634
2635
2636 #include <stdexcept>
2637
2638
2639 namespace swig {
2640 class PyObject_ptr {
2641 protected:
2642 PyObject *_obj;
2643
2644 public:
2645 PyObject_ptr() :_obj(0)
2646 {
2647 }
2648
2649 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2650 {
2651 Py_XINCREF(_obj);
2652 }
2653
2654 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2655 {
2656 if (initial_ref) Py_XINCREF(_obj);
2657 }
2658
2659 PyObject_ptr & operator=(const PyObject_ptr& item)
2660 {
2661 Py_XINCREF(item._obj);
2662 Py_XDECREF(_obj);
2663 _obj = item._obj;
2664 return *this;
2665 }
2666
2667 ~PyObject_ptr()
2668 {
2669 Py_XDECREF(_obj);
2670 }
2671
2672 operator PyObject *() const
2673 {
2674 return _obj;
2675 }
2676
2677 PyObject *operator->() const
2678 {
2679 return _obj;
2680 }
2681 };
2682 }
2683
2684
2685 namespace swig {
2686 struct PyObject_var : PyObject_ptr {
2687 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2688
2689 PyObject_var & operator = (PyObject* obj)
2690 {
2691 Py_XDECREF(_obj);
2692 _obj = obj;
2693 return *this;
2694 }
2695 };
2696 }
2697
2698
2699 #include "wx/wxPython/wxPython.h"
2700 #include "wx/wxPython/pyclasses.h"
2701
2702
2703 static const wxString wxPyEmptyString(wxEmptyString);
2704
2705 #define SWIG_From_long PyInt_FromLong
2706
2707
2708 SWIGINTERNINLINE PyObject *
2709 SWIG_From_int (int value)
2710 {
2711 return SWIG_From_long (value);
2712 }
2713
2714
2715 #include <limits.h>
2716 #ifndef LLONG_MIN
2717 # define LLONG_MIN LONG_LONG_MIN
2718 #endif
2719 #ifndef LLONG_MAX
2720 # define LLONG_MAX LONG_LONG_MAX
2721 #endif
2722 #ifndef ULLONG_MAX
2723 # define ULLONG_MAX ULONG_LONG_MAX
2724 #endif
2725
2726
2727 SWIGINTERN int
2728 SWIG_AsVal_long (PyObject* obj, long* val)
2729 {
2730 if (PyNumber_Check(obj)) {
2731 if (val) *val = PyInt_AsLong(obj);
2732 return SWIG_OK;
2733 }
2734 return SWIG_TypeError;
2735 }
2736
2737
2738 SWIGINTERN int
2739 SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2740 {
2741 long v = 0;
2742 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2743 return SWIG_TypeError;
2744 }
2745 else if (val)
2746 *val = (unsigned long)v;
2747 return SWIG_OK;
2748 }
2749
2750
2751 SWIGINTERN int
2752 SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2753 {
2754 unsigned long v;
2755 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2756 if (SWIG_IsOK(res)) {
2757 if ((v > UCHAR_MAX)) {
2758 return SWIG_OverflowError;
2759 } else {
2760 if (val) *val = static_cast< unsigned char >(v);
2761 }
2762 }
2763 return res;
2764 }
2765
2766
2767 SWIGINTERNINLINE PyObject*
2768 SWIG_From_unsigned_SS_long (unsigned long value)
2769 {
2770 return (value > LONG_MAX) ?
2771 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2772 }
2773
2774
2775 SWIGINTERNINLINE PyObject *
2776 SWIG_From_unsigned_SS_char (unsigned char value)
2777 {
2778 return SWIG_From_unsigned_SS_long (value);
2779 }
2780
2781 SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){
2782 wxColour temp, *obj = &temp;
2783 if ( other == Py_None ) return false;
2784 if ( ! wxColour_helper(other, &obj) ) {
2785 PyErr_Clear();
2786 return false;
2787 }
2788 return self->operator==(*obj);
2789 }
2790 SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){
2791 wxColour temp, *obj = &temp;
2792 if ( other == Py_None ) return true;
2793 if ( ! wxColour_helper(other, &obj)) {
2794 PyErr_Clear();
2795 return true;
2796 }
2797 return self->operator!=(*obj);
2798 }
2799 SWIGINTERN PyObject *wxColour_Get(wxColour *self){
2800 PyObject* rv = PyTuple_New(3);
2801 int red = -1;
2802 int green = -1;
2803 int blue = -1;
2804 if (self->Ok()) {
2805 red = self->Red();
2806 green = self->Green();
2807 blue = self->Blue();
2808 }
2809 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2810 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2811 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
2812 return rv;
2813 }
2814 SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
2815 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2816 }
2817
2818 SWIGINTERN int
2819 SWIG_AsVal_int (PyObject * obj, int *val)
2820 {
2821 long v;
2822 int res = SWIG_AsVal_long (obj, &v);
2823 if (SWIG_IsOK(res)) {
2824 if ((v < INT_MIN || v > INT_MAX)) {
2825 return SWIG_OverflowError;
2826 } else {
2827 if (val) *val = static_cast< int >(v);
2828 }
2829 }
2830 return res;
2831 }
2832
2833 SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
2834 wxDash* dashes;
2835 int count = self->GetDashes(&dashes);
2836 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2837 PyObject* retval = PyList_New(0);
2838 for (int x=0; x<count; x++) {
2839 PyObject* pyint = PyInt_FromLong(dashes[x]);
2840 PyList_Append(retval, pyint);
2841 Py_DECREF(pyint);
2842 }
2843 wxPyEndBlockThreads(blocked);
2844 return retval;
2845 }
2846 SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
2847 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2848 int size = PyList_Size(pyDashes);
2849 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
2850
2851 // black magic warning! The array of wxDashes needs to exist as
2852 // long as the pen does because wxPen does not copy the array. So
2853 // stick a copy in a Python string object and attach it to _self,
2854 // and then call SetDashes with a pointer to that array. Then
2855 // when the Python pen object is destroyed the array will be
2856 // cleaned up too.
2857 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2858 PyObject_SetAttrString(_self, "_dashes", strDashes);
2859
2860 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2861 delete [] dashes;
2862 Py_DECREF(strDashes);
2863 wxPyEndBlockThreads(blocked);
2864 }
2865 SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
2866 SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
2867
2868 #include <wx/image.h>
2869
2870 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2871 char** cArray = NULL;
2872 int count;
2873
2874 if (!PyList_Check(listOfStrings)) {
2875 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2876 return NULL;
2877 }
2878 count = PyList_Size(listOfStrings);
2879 cArray = new char*[count];
2880
2881 for(int x=0; x<count; x++) {
2882 // TODO: Need some validation and error checking here
2883 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2884 }
2885 return cArray;
2886 }
2887
2888
2889 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
2890 char** cArray = NULL;
2891 wxBitmap* bmp;
2892
2893 cArray = ConvertListOfStrings(listOfStrings);
2894 if (! cArray)
2895 return NULL;
2896 bmp = new wxBitmap(cArray);
2897 delete [] cArray;
2898 return bmp;
2899 }
2900 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
2901 char* buf;
2902 int length;
2903 PyString_AsStringAndSize(bits, &buf, &length);
2904 return new wxBitmap(buf, width, height, depth);
2905 }
2906 SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
2907 wxSize size(self->GetWidth(), self->GetHeight());
2908 return size;
2909 }
2910 SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
2911 wxMask *mask = new wxMask(*self, colour);
2912 self->SetMask(mask);
2913 }
2914 SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
2915 self->SetWidth(size.x);
2916 self->SetHeight(size.y);
2917 }
2918 SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : false; }
2919 SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : true; }
2920 SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
2921 if ( !colour.Ok() )
2922 return new wxMask(bitmap, *wxBLACK);
2923 else
2924 return new wxMask(bitmap, colour);
2925 }
2926
2927 #include <wx/iconbndl.h>
2928
2929 SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
2930 wxIcon* icon = new wxIcon();
2931 icon->CopyFromBitmap(bmp);
2932 return icon;
2933 }
2934 SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
2935 char** cArray = NULL;
2936 wxIcon* icon;
2937
2938 cArray = ConvertListOfStrings(listOfStrings);
2939 if (! cArray)
2940 return NULL;
2941 icon = new wxIcon(cArray);
2942 delete [] cArray;
2943 return icon;
2944 }
2945 SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
2946
2947
2948
2949 return new wxIconLocation(*filename);
2950
2951 }
2952 SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
2953
2954
2955
2956 // do nothing
2957
2958 }
2959 SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
2960
2961
2962
2963 return -1;
2964
2965 }
2966 SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
2967 #ifdef __WXGTK__
2968 wxImage img(cursorName, type);
2969 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
2970 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
2971 return new wxCursor(img);
2972 #else
2973 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
2974 #endif
2975 }
2976
2977
2978 SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
2979 (*self) ++;
2980 }
2981 SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
2982 return self->operator bool();
2983 }
2984
2985 #include <wx/fontutil.h>
2986 #include <wx/fontmap.h>
2987 #include <wx/fontenum.h>
2988
2989
2990 SWIGINTERN int
2991 SWIG_AsVal_bool (PyObject *obj, bool *val)
2992 {
2993 if (obj == Py_True) {
2994 if (val) *val = true;
2995 return SWIG_OK;
2996 } else if (obj == Py_False) {
2997 if (val) *val = false;
2998 return SWIG_OK;
2999 } else {
3000 long v = 0;
3001 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
3002 if (SWIG_IsOK(res) && val) *val = v ? true : false;
3003 return res;
3004 }
3005 }
3006
3007 SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
3008 return self->ToString();
3009 }
3010
3011 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
3012 static wxNativeEncodingInfo info;
3013 if ( wxGetNativeFontEncoding(encoding, &info) )
3014 return &info;
3015 else
3016 return NULL;
3017 }
3018
3019
3020 SWIGINTERNINLINE PyObject *
3021 SWIG_From_size_t (size_t value)
3022 {
3023 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3024 }
3025
3026
3027 SWIGINTERNINLINE int
3028 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3029 {
3030 unsigned long v;
3031 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3032 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3033 return res;
3034 }
3035
3036 SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
3037 wxFontEncoding alt_enc;
3038 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3039 return PyInt_FromLong(alt_enc);
3040 else {
3041 Py_INCREF(Py_None);
3042 return Py_None;
3043 }
3044 }
3045 SWIGINTERN wxFont *new_wxFont(wxString const &info){
3046 wxNativeFontInfo nfi;
3047 nfi.FromString(info);
3048 return new wxFont(nfi);
3049 }
3050 SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3051 return wxFont::New(pointSize, family, flags, face, encoding);
3052 }
3053 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,int family,int style,int weight,bool underlined=false,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3054 return wxFontBase::New(pixelSize, family,
3055 style, weight, underlined,
3056 face, encoding);
3057 }
3058 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3059 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3060 }
3061 SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3062 SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
3063
3064 class wxPyFontEnumerator : public wxFontEnumerator {
3065 public:
3066 wxPyFontEnumerator() {}
3067 ~wxPyFontEnumerator() {}
3068
3069 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3070 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
3071
3072 PYPRIVATE;
3073 };
3074
3075 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3076 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
3077
3078
3079 SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){
3080 PyObject* ret;
3081 wxArrayString arr = wxFontEnumerator::GetEncodings();
3082 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3083 ret = wxArrayString2PyList_helper(arr);
3084 wxPyEndBlockThreads(blocked);
3085 return ret;
3086 }
3087 SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){
3088 PyObject* ret;
3089 wxArrayString arr = wxFontEnumerator::GetFacenames();
3090 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3091 ret = wxArrayString2PyList_helper(arr);
3092 wxPyEndBlockThreads(blocked);
3093 return ret;
3094 }
3095
3096 #include <locale.h>
3097
3098 SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3099 wxLocale* loc;
3100 if (language == -1)
3101 loc = new wxLocale();
3102 else
3103 loc = new wxLocale(language, flags);
3104 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3105 // for the floating point conversions and such to work right.
3106 #if PY_VERSION_HEX < 0x02040000
3107 setlocale(LC_NUMERIC, "C");
3108 #endif
3109 return loc;
3110 }
3111 SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
3112 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
3113 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3114 // for the floating point conversions and such to work right.
3115 #if PY_VERSION_HEX < 0x02040000
3116 setlocale(LC_NUMERIC, "C");
3117 #endif
3118 return rc;
3119 }
3120 SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3121 bool rc = self->Init(language, flags);
3122 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3123 // for the floating point conversions and such to work right.
3124 #if PY_VERSION_HEX < 0x02040000
3125 setlocale(LC_NUMERIC, "C");
3126 #endif
3127 return rc;
3128 }
3129
3130 #include "wx/wxPython/pydrawxxx.h"
3131
3132 SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
3133 wxColour col;
3134 self->GetPixel(x, y, &col);
3135 return col;
3136 }
3137 SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
3138 wxColour col;
3139 self->GetPixel(pt, &col);
3140 return col;
3141 }
3142
3143 SWIGINTERN int
3144 SWIG_AsVal_double (PyObject *obj, double* val)
3145 {
3146 if (PyNumber_Check(obj)) {
3147 if (val) *val = PyFloat_AsDouble(obj);
3148 return SWIG_OK;
3149 }
3150 return SWIG_TypeError;
3151 }
3152
3153 SWIGINTERN wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){
3154 wxRect rv;
3155 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3156 return rv;
3157 }
3158 SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
3159 wxRect rect;
3160 self->GetClippingBox(rect);
3161 return rect;
3162 }
3163 SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
3164 wxArrayInt widths;
3165 self->GetPartialTextExtents(text, widths);
3166 return widths;
3167 }
3168
3169 #define SWIG_From_double PyFloat_FromDouble
3170
3171 SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
3172 self->SetLogicalOrigin(point.x, point.y);
3173 }
3174 SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
3175 self->SetDeviceOrigin(point.x, point.y);
3176 }
3177 SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
3178 self->CalcBoundingBox(point.x, point.y);
3179 }
3180 SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3181 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3182 }
3183 SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3184 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3185 }
3186 SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3187 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3188 }
3189 SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3190 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3191 }
3192 SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3193 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3194 }
3195 SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
3196 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3197 }
3198
3199 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3200 *x1 = dc->MinX();
3201 *y1 = dc->MinY();
3202 *x2 = dc->MaxX();
3203 *y2 = dc->MaxY();
3204 }
3205
3206
3207 #include <wx/dcbuffer.h>
3208
3209
3210 #include <wx/dcps.h>
3211
3212
3213 class wxMetaFile : public wxObject {
3214 public:
3215 wxMetaFile(const wxString&)
3216 { wxPyRaiseNotImplemented(); }
3217 };
3218
3219 class wxMetaFileDC : public wxClientDC {
3220 public:
3221 wxMetaFileDC(const wxString&, int, int, const wxString&)
3222 { wxPyRaiseNotImplemented(); }
3223 };
3224
3225
3226
3227 class wxPrinterDC : public wxClientDC {
3228 public:
3229 wxPrinterDC(const wxPrintData&)
3230 { wxPyRaiseNotImplemented(); }
3231
3232 };
3233
3234
3235
3236 SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
3237 self->AddColour(name, wxColour(red, green, blue));
3238 }
3239
3240 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3241 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3242 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3243 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3244
3245
3246 #include <wx/effects.h>
3247
3248
3249 #include "wx/renderer.h"
3250
3251
3252 SWIGINTERNINLINE PyObject*
3253 SWIG_From_bool (bool value)
3254 {
3255 return PyBool_FromLong(value ? 1 : 0);
3256 }
3257
3258 #ifdef __cplusplus
3259 extern "C" {
3260 #endif
3261 SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3262 PyObject *resultobj = 0;
3263 wxGDIObject *result = 0 ;
3264
3265 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
3266 {
3267 if (!wxPyCheckForApp()) SWIG_fail;
3268 PyThreadState* __tstate = wxPyBeginAllowThreads();
3269 result = (wxGDIObject *)new wxGDIObject();
3270 wxPyEndAllowThreads(__tstate);
3271 if (PyErr_Occurred()) SWIG_fail;
3272 }
3273 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
3274 return resultobj;
3275 fail:
3276 return NULL;
3277 }
3278
3279
3280 SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3281 PyObject *resultobj = 0;
3282 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
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, SWIG_POINTER_DISOWN | 0 );
3290 if (!SWIG_IsOK(res1)) {
3291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3292 }
3293 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3294 {
3295 PyThreadState* __tstate = wxPyBeginAllowThreads();
3296 delete arg1;
3297
3298 wxPyEndAllowThreads(__tstate);
3299 if (PyErr_Occurred()) SWIG_fail;
3300 }
3301 resultobj = SWIG_Py_Void();
3302 return resultobj;
3303 fail:
3304 return NULL;
3305 }
3306
3307
3308 SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3309 PyObject *resultobj = 0;
3310 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3311 bool result;
3312 void *argp1 = 0 ;
3313 int res1 = 0 ;
3314 PyObject *swig_obj[1] ;
3315
3316 if (!args) SWIG_fail;
3317 swig_obj[0] = args;
3318 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
3319 if (!SWIG_IsOK(res1)) {
3320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3321 }
3322 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3323 {
3324 PyThreadState* __tstate = wxPyBeginAllowThreads();
3325 result = (bool)(arg1)->IsNull();
3326 wxPyEndAllowThreads(__tstate);
3327 if (PyErr_Occurred()) SWIG_fail;
3328 }
3329 {
3330 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3331 }
3332 return resultobj;
3333 fail:
3334 return NULL;
3335 }
3336
3337
3338 SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3339 PyObject *obj;
3340 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3341 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
3342 return SWIG_Py_Void();
3343 }
3344
3345 SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3346 return SWIG_Python_InitShadowInstance(args);
3347 }
3348
3349 SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3350 PyObject *resultobj = 0;
3351 byte arg1 = (byte) 0 ;
3352 byte arg2 = (byte) 0 ;
3353 byte arg3 = (byte) 0 ;
3354 wxColour *result = 0 ;
3355 unsigned char val1 ;
3356 int ecode1 = 0 ;
3357 unsigned char val2 ;
3358 int ecode2 = 0 ;
3359 unsigned char val3 ;
3360 int ecode3 = 0 ;
3361 PyObject * obj0 = 0 ;
3362 PyObject * obj1 = 0 ;
3363 PyObject * obj2 = 0 ;
3364 char * kwnames[] = {
3365 (char *) "red",(char *) "green",(char *) "blue", NULL
3366 };
3367
3368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
3369 if (obj0) {
3370 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
3371 if (!SWIG_IsOK(ecode1)) {
3372 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
3373 }
3374 arg1 = static_cast< byte >(val1);
3375 }
3376 if (obj1) {
3377 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
3378 if (!SWIG_IsOK(ecode2)) {
3379 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
3380 }
3381 arg2 = static_cast< byte >(val2);
3382 }
3383 if (obj2) {
3384 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
3385 if (!SWIG_IsOK(ecode3)) {
3386 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
3387 }
3388 arg3 = static_cast< byte >(val3);
3389 }
3390 {
3391 PyThreadState* __tstate = wxPyBeginAllowThreads();
3392 result = (wxColour *)new wxColour(arg1,arg2,arg3);
3393 wxPyEndAllowThreads(__tstate);
3394 if (PyErr_Occurred()) SWIG_fail;
3395 }
3396 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
3397 return resultobj;
3398 fail:
3399 return NULL;
3400 }
3401
3402
3403 SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3404 PyObject *resultobj = 0;
3405 wxString *arg1 = 0 ;
3406 wxColour *result = 0 ;
3407 bool temp1 = false ;
3408 PyObject * obj0 = 0 ;
3409 char * kwnames[] = {
3410 (char *) "colorName", NULL
3411 };
3412
3413 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
3414 {
3415 arg1 = wxString_in_helper(obj0);
3416 if (arg1 == NULL) SWIG_fail;
3417 temp1 = true;
3418 }
3419 {
3420 if (!wxPyCheckForApp()) SWIG_fail;
3421 PyThreadState* __tstate = wxPyBeginAllowThreads();
3422 result = (wxColour *)new wxColour((wxString const &)*arg1);
3423 wxPyEndAllowThreads(__tstate);
3424 if (PyErr_Occurred()) SWIG_fail;
3425 }
3426 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3427 {
3428 if (temp1)
3429 delete arg1;
3430 }
3431 return resultobj;
3432 fail:
3433 {
3434 if (temp1)
3435 delete arg1;
3436 }
3437 return NULL;
3438 }
3439
3440
3441 SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3442 PyObject *resultobj = 0;
3443 unsigned long arg1 ;
3444 wxColour *result = 0 ;
3445 unsigned long val1 ;
3446 int ecode1 = 0 ;
3447 PyObject * obj0 = 0 ;
3448 char * kwnames[] = {
3449 (char *) "colRGB", NULL
3450 };
3451
3452 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
3453 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
3454 if (!SWIG_IsOK(ecode1)) {
3455 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
3456 }
3457 arg1 = static_cast< unsigned long >(val1);
3458 {
3459 PyThreadState* __tstate = wxPyBeginAllowThreads();
3460 result = (wxColour *)new wxColour(arg1);
3461 wxPyEndAllowThreads(__tstate);
3462 if (PyErr_Occurred()) SWIG_fail;
3463 }
3464 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3465 return resultobj;
3466 fail:
3467 return NULL;
3468 }
3469
3470
3471 SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3472 PyObject *resultobj = 0;
3473 wxColour *arg1 = (wxColour *) 0 ;
3474 void *argp1 = 0 ;
3475 int res1 = 0 ;
3476 PyObject *swig_obj[1] ;
3477
3478 if (!args) SWIG_fail;
3479 swig_obj[0] = args;
3480 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
3481 if (!SWIG_IsOK(res1)) {
3482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
3483 }
3484 arg1 = reinterpret_cast< wxColour * >(argp1);
3485 {
3486 PyThreadState* __tstate = wxPyBeginAllowThreads();
3487 delete arg1;
3488
3489 wxPyEndAllowThreads(__tstate);
3490 if (PyErr_Occurred()) SWIG_fail;
3491 }
3492 resultobj = SWIG_Py_Void();
3493 return resultobj;
3494 fail:
3495 return NULL;
3496 }
3497
3498
3499 SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3500 PyObject *resultobj = 0;
3501 wxColour *arg1 = (wxColour *) 0 ;
3502 byte result;
3503 void *argp1 = 0 ;
3504 int res1 = 0 ;
3505 PyObject *swig_obj[1] ;
3506
3507 if (!args) SWIG_fail;
3508 swig_obj[0] = args;
3509 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3510 if (!SWIG_IsOK(res1)) {
3511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
3512 }
3513 arg1 = reinterpret_cast< wxColour * >(argp1);
3514 {
3515 PyThreadState* __tstate = wxPyBeginAllowThreads();
3516 result = (byte)(arg1)->Red();
3517 wxPyEndAllowThreads(__tstate);
3518 if (PyErr_Occurred()) SWIG_fail;
3519 }
3520 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3521 return resultobj;
3522 fail:
3523 return NULL;
3524 }
3525
3526
3527 SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3528 PyObject *resultobj = 0;
3529 wxColour *arg1 = (wxColour *) 0 ;
3530 byte result;
3531 void *argp1 = 0 ;
3532 int res1 = 0 ;
3533 PyObject *swig_obj[1] ;
3534
3535 if (!args) SWIG_fail;
3536 swig_obj[0] = args;
3537 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3538 if (!SWIG_IsOK(res1)) {
3539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
3540 }
3541 arg1 = reinterpret_cast< wxColour * >(argp1);
3542 {
3543 PyThreadState* __tstate = wxPyBeginAllowThreads();
3544 result = (byte)(arg1)->Green();
3545 wxPyEndAllowThreads(__tstate);
3546 if (PyErr_Occurred()) SWIG_fail;
3547 }
3548 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3549 return resultobj;
3550 fail:
3551 return NULL;
3552 }
3553
3554
3555 SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3556 PyObject *resultobj = 0;
3557 wxColour *arg1 = (wxColour *) 0 ;
3558 byte result;
3559 void *argp1 = 0 ;
3560 int res1 = 0 ;
3561 PyObject *swig_obj[1] ;
3562
3563 if (!args) SWIG_fail;
3564 swig_obj[0] = args;
3565 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3566 if (!SWIG_IsOK(res1)) {
3567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
3568 }
3569 arg1 = reinterpret_cast< wxColour * >(argp1);
3570 {
3571 PyThreadState* __tstate = wxPyBeginAllowThreads();
3572 result = (byte)(arg1)->Blue();
3573 wxPyEndAllowThreads(__tstate);
3574 if (PyErr_Occurred()) SWIG_fail;
3575 }
3576 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3577 return resultobj;
3578 fail:
3579 return NULL;
3580 }
3581
3582
3583 SWIGINTERN PyObject *_wrap_Colour_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3584 PyObject *resultobj = 0;
3585 wxColour *arg1 = (wxColour *) 0 ;
3586 bool result;
3587 void *argp1 = 0 ;
3588 int res1 = 0 ;
3589 PyObject *swig_obj[1] ;
3590
3591 if (!args) SWIG_fail;
3592 swig_obj[0] = args;
3593 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3594 if (!SWIG_IsOK(res1)) {
3595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Ok" "', expected argument " "1"" of type '" "wxColour *""'");
3596 }
3597 arg1 = reinterpret_cast< wxColour * >(argp1);
3598 {
3599 PyThreadState* __tstate = wxPyBeginAllowThreads();
3600 result = (bool)(arg1)->Ok();
3601 wxPyEndAllowThreads(__tstate);
3602 if (PyErr_Occurred()) SWIG_fail;
3603 }
3604 {
3605 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3606 }
3607 return resultobj;
3608 fail:
3609 return NULL;
3610 }
3611
3612
3613 SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3614 PyObject *resultobj = 0;
3615 wxColour *arg1 = (wxColour *) 0 ;
3616 byte arg2 ;
3617 byte arg3 ;
3618 byte arg4 ;
3619 void *argp1 = 0 ;
3620 int res1 = 0 ;
3621 unsigned char val2 ;
3622 int ecode2 = 0 ;
3623 unsigned char val3 ;
3624 int ecode3 = 0 ;
3625 unsigned char val4 ;
3626 int ecode4 = 0 ;
3627 PyObject * obj0 = 0 ;
3628 PyObject * obj1 = 0 ;
3629 PyObject * obj2 = 0 ;
3630 PyObject * obj3 = 0 ;
3631 char * kwnames[] = {
3632 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
3633 };
3634
3635 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
3636 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3637 if (!SWIG_IsOK(res1)) {
3638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
3639 }
3640 arg1 = reinterpret_cast< wxColour * >(argp1);
3641 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
3642 if (!SWIG_IsOK(ecode2)) {
3643 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
3644 }
3645 arg2 = static_cast< byte >(val2);
3646 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
3647 if (!SWIG_IsOK(ecode3)) {
3648 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
3649 }
3650 arg3 = static_cast< byte >(val3);
3651 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
3652 if (!SWIG_IsOK(ecode4)) {
3653 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
3654 }
3655 arg4 = static_cast< byte >(val4);
3656 {
3657 PyThreadState* __tstate = wxPyBeginAllowThreads();
3658 (arg1)->Set(arg2,arg3,arg4);
3659 wxPyEndAllowThreads(__tstate);
3660 if (PyErr_Occurred()) SWIG_fail;
3661 }
3662 resultobj = SWIG_Py_Void();
3663 return resultobj;
3664 fail:
3665 return NULL;
3666 }
3667
3668
3669 SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3670 PyObject *resultobj = 0;
3671 wxColour *arg1 = (wxColour *) 0 ;
3672 unsigned long arg2 ;
3673 void *argp1 = 0 ;
3674 int res1 = 0 ;
3675 unsigned long val2 ;
3676 int ecode2 = 0 ;
3677 PyObject * obj0 = 0 ;
3678 PyObject * obj1 = 0 ;
3679 char * kwnames[] = {
3680 (char *) "self",(char *) "colRGB", NULL
3681 };
3682
3683 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
3684 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3685 if (!SWIG_IsOK(res1)) {
3686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
3687 }
3688 arg1 = reinterpret_cast< wxColour * >(argp1);
3689 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
3690 if (!SWIG_IsOK(ecode2)) {
3691 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
3692 }
3693 arg2 = static_cast< unsigned long >(val2);
3694 {
3695 PyThreadState* __tstate = wxPyBeginAllowThreads();
3696 (arg1)->Set(arg2);
3697 wxPyEndAllowThreads(__tstate);
3698 if (PyErr_Occurred()) SWIG_fail;
3699 }
3700 resultobj = SWIG_Py_Void();
3701 return resultobj;
3702 fail:
3703 return NULL;
3704 }
3705
3706
3707 SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3708 PyObject *resultobj = 0;
3709 wxColour *arg1 = (wxColour *) 0 ;
3710 wxString *arg2 = 0 ;
3711 void *argp1 = 0 ;
3712 int res1 = 0 ;
3713 bool temp2 = false ;
3714 PyObject * obj0 = 0 ;
3715 PyObject * obj1 = 0 ;
3716 char * kwnames[] = {
3717 (char *) "self",(char *) "colourName", NULL
3718 };
3719
3720 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
3721 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3722 if (!SWIG_IsOK(res1)) {
3723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
3724 }
3725 arg1 = reinterpret_cast< wxColour * >(argp1);
3726 {
3727 arg2 = wxString_in_helper(obj1);
3728 if (arg2 == NULL) SWIG_fail;
3729 temp2 = true;
3730 }
3731 {
3732 PyThreadState* __tstate = wxPyBeginAllowThreads();
3733 (arg1)->InitFromName((wxString const &)*arg2);
3734 wxPyEndAllowThreads(__tstate);
3735 if (PyErr_Occurred()) SWIG_fail;
3736 }
3737 resultobj = SWIG_Py_Void();
3738 {
3739 if (temp2)
3740 delete arg2;
3741 }
3742 return resultobj;
3743 fail:
3744 {
3745 if (temp2)
3746 delete arg2;
3747 }
3748 return NULL;
3749 }
3750
3751
3752 SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3753 PyObject *resultobj = 0;
3754 wxColour *arg1 = (wxColour *) 0 ;
3755 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
3756 wxString result;
3757 void *argp1 = 0 ;
3758 int res1 = 0 ;
3759 long val2 ;
3760 int ecode2 = 0 ;
3761 PyObject * obj0 = 0 ;
3762 PyObject * obj1 = 0 ;
3763 char * kwnames[] = {
3764 (char *) "self",(char *) "flags", NULL
3765 };
3766
3767 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
3768 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3769 if (!SWIG_IsOK(res1)) {
3770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
3771 }
3772 arg1 = reinterpret_cast< wxColour * >(argp1);
3773 if (obj1) {
3774 ecode2 = SWIG_AsVal_long(obj1, &val2);
3775 if (!SWIG_IsOK(ecode2)) {
3776 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
3777 }
3778 arg2 = static_cast< long >(val2);
3779 }
3780 {
3781 PyThreadState* __tstate = wxPyBeginAllowThreads();
3782 result = ((wxColour const *)arg1)->GetAsString(arg2);
3783 wxPyEndAllowThreads(__tstate);
3784 if (PyErr_Occurred()) SWIG_fail;
3785 }
3786 {
3787 #if wxUSE_UNICODE
3788 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3789 #else
3790 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3791 #endif
3792 }
3793 return resultobj;
3794 fail:
3795 return NULL;
3796 }
3797
3798
3799 SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3800 PyObject *resultobj = 0;
3801 wxColour *arg1 = (wxColour *) 0 ;
3802 long result;
3803 void *argp1 = 0 ;
3804 int res1 = 0 ;
3805 PyObject *swig_obj[1] ;
3806
3807 if (!args) SWIG_fail;
3808 swig_obj[0] = args;
3809 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3810 if (!SWIG_IsOK(res1)) {
3811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
3812 }
3813 arg1 = reinterpret_cast< wxColour * >(argp1);
3814 {
3815 PyThreadState* __tstate = wxPyBeginAllowThreads();
3816 result = (long)((wxColour const *)arg1)->GetPixel();
3817 wxPyEndAllowThreads(__tstate);
3818 if (PyErr_Occurred()) SWIG_fail;
3819 }
3820 resultobj = SWIG_From_long(static_cast< long >(result));
3821 return resultobj;
3822 fail:
3823 return NULL;
3824 }
3825
3826
3827 SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3828 PyObject *resultobj = 0;
3829 wxColour *arg1 = (wxColour *) 0 ;
3830 PyObject *arg2 = (PyObject *) 0 ;
3831 bool result;
3832 void *argp1 = 0 ;
3833 int res1 = 0 ;
3834 PyObject * obj0 = 0 ;
3835 PyObject * obj1 = 0 ;
3836 char * kwnames[] = {
3837 (char *) "self",(char *) "other", NULL
3838 };
3839
3840 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
3841 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3842 if (!SWIG_IsOK(res1)) {
3843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
3844 }
3845 arg1 = reinterpret_cast< wxColour * >(argp1);
3846 arg2 = obj1;
3847 {
3848 result = (bool)wxColour___eq__(arg1,arg2);
3849 if (PyErr_Occurred()) SWIG_fail;
3850 }
3851 {
3852 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3853 }
3854 return resultobj;
3855 fail:
3856 return NULL;
3857 }
3858
3859
3860 SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3861 PyObject *resultobj = 0;
3862 wxColour *arg1 = (wxColour *) 0 ;
3863 PyObject *arg2 = (PyObject *) 0 ;
3864 bool result;
3865 void *argp1 = 0 ;
3866 int res1 = 0 ;
3867 PyObject * obj0 = 0 ;
3868 PyObject * obj1 = 0 ;
3869 char * kwnames[] = {
3870 (char *) "self",(char *) "other", NULL
3871 };
3872
3873 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
3874 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3875 if (!SWIG_IsOK(res1)) {
3876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
3877 }
3878 arg1 = reinterpret_cast< wxColour * >(argp1);
3879 arg2 = obj1;
3880 {
3881 result = (bool)wxColour___ne__(arg1,arg2);
3882 if (PyErr_Occurred()) SWIG_fail;
3883 }
3884 {
3885 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3886 }
3887 return resultobj;
3888 fail:
3889 return NULL;
3890 }
3891
3892
3893 SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3894 PyObject *resultobj = 0;
3895 wxColour *arg1 = (wxColour *) 0 ;
3896 PyObject *result = 0 ;
3897 void *argp1 = 0 ;
3898 int res1 = 0 ;
3899 PyObject *swig_obj[1] ;
3900
3901 if (!args) SWIG_fail;
3902 swig_obj[0] = args;
3903 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3904 if (!SWIG_IsOK(res1)) {
3905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
3906 }
3907 arg1 = reinterpret_cast< wxColour * >(argp1);
3908 {
3909 PyThreadState* __tstate = wxPyBeginAllowThreads();
3910 result = (PyObject *)wxColour_Get(arg1);
3911 wxPyEndAllowThreads(__tstate);
3912 if (PyErr_Occurred()) SWIG_fail;
3913 }
3914 resultobj = result;
3915 return resultobj;
3916 fail:
3917 return NULL;
3918 }
3919
3920
3921 SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3922 PyObject *resultobj = 0;
3923 wxColour *arg1 = (wxColour *) 0 ;
3924 unsigned long result;
3925 void *argp1 = 0 ;
3926 int res1 = 0 ;
3927 PyObject *swig_obj[1] ;
3928
3929 if (!args) SWIG_fail;
3930 swig_obj[0] = args;
3931 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3932 if (!SWIG_IsOK(res1)) {
3933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
3934 }
3935 arg1 = reinterpret_cast< wxColour * >(argp1);
3936 {
3937 PyThreadState* __tstate = wxPyBeginAllowThreads();
3938 result = (unsigned long)wxColour_GetRGB(arg1);
3939 wxPyEndAllowThreads(__tstate);
3940 if (PyErr_Occurred()) SWIG_fail;
3941 }
3942 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
3943 return resultobj;
3944 fail:
3945 return NULL;
3946 }
3947
3948
3949 SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3950 PyObject *obj;
3951 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3952 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
3953 return SWIG_Py_Void();
3954 }
3955
3956 SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3957 return SWIG_Python_InitShadowInstance(args);
3958 }
3959
3960 SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3961 PyObject *resultobj = 0;
3962 int arg1 ;
3963 unsigned char *arg2 = (unsigned char *) 0 ;
3964 unsigned char *arg3 = (unsigned char *) 0 ;
3965 unsigned char *arg4 = (unsigned char *) 0 ;
3966 wxPalette *result = 0 ;
3967 int val1 ;
3968 int ecode1 = 0 ;
3969 void *argp2 = 0 ;
3970 int res2 = 0 ;
3971 void *argp3 = 0 ;
3972 int res3 = 0 ;
3973 void *argp4 = 0 ;
3974 int res4 = 0 ;
3975 PyObject * obj0 = 0 ;
3976 PyObject * obj1 = 0 ;
3977 PyObject * obj2 = 0 ;
3978 PyObject * obj3 = 0 ;
3979 char * kwnames[] = {
3980 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
3981 };
3982
3983 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
3984 ecode1 = SWIG_AsVal_int(obj0, &val1);
3985 if (!SWIG_IsOK(ecode1)) {
3986 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
3987 }
3988 arg1 = static_cast< int >(val1);
3989 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
3990 if (!SWIG_IsOK(res2)) {
3991 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
3992 }
3993 arg2 = reinterpret_cast< unsigned char * >(argp2);
3994 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
3995 if (!SWIG_IsOK(res3)) {
3996 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
3997 }
3998 arg3 = reinterpret_cast< unsigned char * >(argp3);
3999 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4000 if (!SWIG_IsOK(res4)) {
4001 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4002 }
4003 arg4 = reinterpret_cast< unsigned char * >(argp4);
4004 {
4005 if (!wxPyCheckForApp()) SWIG_fail;
4006 PyThreadState* __tstate = wxPyBeginAllowThreads();
4007 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4008 wxPyEndAllowThreads(__tstate);
4009 if (PyErr_Occurred()) SWIG_fail;
4010 }
4011 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4012 return resultobj;
4013 fail:
4014 return NULL;
4015 }
4016
4017
4018 SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4019 PyObject *resultobj = 0;
4020 wxPalette *arg1 = (wxPalette *) 0 ;
4021 void *argp1 = 0 ;
4022 int res1 = 0 ;
4023 PyObject *swig_obj[1] ;
4024
4025 if (!args) SWIG_fail;
4026 swig_obj[0] = args;
4027 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4028 if (!SWIG_IsOK(res1)) {
4029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4030 }
4031 arg1 = reinterpret_cast< wxPalette * >(argp1);
4032 {
4033 PyThreadState* __tstate = wxPyBeginAllowThreads();
4034 delete arg1;
4035
4036 wxPyEndAllowThreads(__tstate);
4037 if (PyErr_Occurred()) SWIG_fail;
4038 }
4039 resultobj = SWIG_Py_Void();
4040 return resultobj;
4041 fail:
4042 return NULL;
4043 }
4044
4045
4046 SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4047 PyObject *resultobj = 0;
4048 wxPalette *arg1 = (wxPalette *) 0 ;
4049 byte arg2 ;
4050 byte arg3 ;
4051 byte arg4 ;
4052 int result;
4053 void *argp1 = 0 ;
4054 int res1 = 0 ;
4055 unsigned char val2 ;
4056 int ecode2 = 0 ;
4057 unsigned char val3 ;
4058 int ecode3 = 0 ;
4059 unsigned char val4 ;
4060 int ecode4 = 0 ;
4061 PyObject * obj0 = 0 ;
4062 PyObject * obj1 = 0 ;
4063 PyObject * obj2 = 0 ;
4064 PyObject * obj3 = 0 ;
4065 char * kwnames[] = {
4066 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4067 };
4068
4069 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4070 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4071 if (!SWIG_IsOK(res1)) {
4072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4073 }
4074 arg1 = reinterpret_cast< wxPalette * >(argp1);
4075 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4076 if (!SWIG_IsOK(ecode2)) {
4077 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4078 }
4079 arg2 = static_cast< byte >(val2);
4080 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4081 if (!SWIG_IsOK(ecode3)) {
4082 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4083 }
4084 arg3 = static_cast< byte >(val3);
4085 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4086 if (!SWIG_IsOK(ecode4)) {
4087 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4088 }
4089 arg4 = static_cast< byte >(val4);
4090 {
4091 PyThreadState* __tstate = wxPyBeginAllowThreads();
4092 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4093 wxPyEndAllowThreads(__tstate);
4094 if (PyErr_Occurred()) SWIG_fail;
4095 }
4096 resultobj = SWIG_From_int(static_cast< int >(result));
4097 return resultobj;
4098 fail:
4099 return NULL;
4100 }
4101
4102
4103 SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4104 PyObject *resultobj = 0;
4105 wxPalette *arg1 = (wxPalette *) 0 ;
4106 int arg2 ;
4107 byte *arg3 = (byte *) 0 ;
4108 byte *arg4 = (byte *) 0 ;
4109 byte *arg5 = (byte *) 0 ;
4110 bool result;
4111 void *argp1 = 0 ;
4112 int res1 = 0 ;
4113 int val2 ;
4114 int ecode2 = 0 ;
4115 byte temp3 ;
4116 int res3 = SWIG_TMPOBJ ;
4117 byte temp4 ;
4118 int res4 = SWIG_TMPOBJ ;
4119 byte temp5 ;
4120 int res5 = SWIG_TMPOBJ ;
4121 PyObject * obj0 = 0 ;
4122 PyObject * obj1 = 0 ;
4123 char * kwnames[] = {
4124 (char *) "self",(char *) "pixel", NULL
4125 };
4126
4127 arg3 = &temp3;
4128 arg4 = &temp4;
4129 arg5 = &temp5;
4130 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4131 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4132 if (!SWIG_IsOK(res1)) {
4133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4134 }
4135 arg1 = reinterpret_cast< wxPalette * >(argp1);
4136 ecode2 = SWIG_AsVal_int(obj1, &val2);
4137 if (!SWIG_IsOK(ecode2)) {
4138 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4139 }
4140 arg2 = static_cast< int >(val2);
4141 {
4142 PyThreadState* __tstate = wxPyBeginAllowThreads();
4143 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4144 wxPyEndAllowThreads(__tstate);
4145 if (PyErr_Occurred()) SWIG_fail;
4146 }
4147 {
4148 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4149 }
4150 if (SWIG_IsTmpObj(res3)) {
4151 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4152 } else {
4153 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4154 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4155 }
4156 if (SWIG_IsTmpObj(res4)) {
4157 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4158 } else {
4159 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4160 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4161 }
4162 if (SWIG_IsTmpObj(res5)) {
4163 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4164 } else {
4165 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4166 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4167 }
4168 return resultobj;
4169 fail:
4170 return NULL;
4171 }
4172
4173
4174 SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4175 PyObject *resultobj = 0;
4176 wxPalette *arg1 = (wxPalette *) 0 ;
4177 int result;
4178 void *argp1 = 0 ;
4179 int res1 = 0 ;
4180 PyObject *swig_obj[1] ;
4181
4182 if (!args) SWIG_fail;
4183 swig_obj[0] = args;
4184 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4185 if (!SWIG_IsOK(res1)) {
4186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4187 }
4188 arg1 = reinterpret_cast< wxPalette * >(argp1);
4189 {
4190 PyThreadState* __tstate = wxPyBeginAllowThreads();
4191 result = (int)((wxPalette const *)arg1)->GetColoursCount();
4192 wxPyEndAllowThreads(__tstate);
4193 if (PyErr_Occurred()) SWIG_fail;
4194 }
4195 resultobj = SWIG_From_int(static_cast< int >(result));
4196 return resultobj;
4197 fail:
4198 return NULL;
4199 }
4200
4201
4202 SWIGINTERN PyObject *_wrap_Palette_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4203 PyObject *resultobj = 0;
4204 wxPalette *arg1 = (wxPalette *) 0 ;
4205 bool result;
4206 void *argp1 = 0 ;
4207 int res1 = 0 ;
4208 PyObject *swig_obj[1] ;
4209
4210 if (!args) SWIG_fail;
4211 swig_obj[0] = args;
4212 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4213 if (!SWIG_IsOK(res1)) {
4214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_Ok" "', expected argument " "1"" of type '" "wxPalette *""'");
4215 }
4216 arg1 = reinterpret_cast< wxPalette * >(argp1);
4217 {
4218 PyThreadState* __tstate = wxPyBeginAllowThreads();
4219 result = (bool)(arg1)->Ok();
4220 wxPyEndAllowThreads(__tstate);
4221 if (PyErr_Occurred()) SWIG_fail;
4222 }
4223 {
4224 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4225 }
4226 return resultobj;
4227 fail:
4228 return NULL;
4229 }
4230
4231
4232 SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4233 PyObject *obj;
4234 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4235 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
4236 return SWIG_Py_Void();
4237 }
4238
4239 SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4240 return SWIG_Python_InitShadowInstance(args);
4241 }
4242
4243 SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4244 PyObject *resultobj = 0;
4245 wxColour *arg1 = 0 ;
4246 int arg2 = (int) 1 ;
4247 int arg3 = (int) wxSOLID ;
4248 wxPen *result = 0 ;
4249 wxColour temp1 ;
4250 int val2 ;
4251 int ecode2 = 0 ;
4252 int val3 ;
4253 int ecode3 = 0 ;
4254 PyObject * obj0 = 0 ;
4255 PyObject * obj1 = 0 ;
4256 PyObject * obj2 = 0 ;
4257 char * kwnames[] = {
4258 (char *) "colour",(char *) "width",(char *) "style", NULL
4259 };
4260
4261 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4262 {
4263 arg1 = &temp1;
4264 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
4265 }
4266 if (obj1) {
4267 ecode2 = SWIG_AsVal_int(obj1, &val2);
4268 if (!SWIG_IsOK(ecode2)) {
4269 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
4270 }
4271 arg2 = static_cast< int >(val2);
4272 }
4273 if (obj2) {
4274 ecode3 = SWIG_AsVal_int(obj2, &val3);
4275 if (!SWIG_IsOK(ecode3)) {
4276 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
4277 }
4278 arg3 = static_cast< int >(val3);
4279 }
4280 {
4281 if (!wxPyCheckForApp()) SWIG_fail;
4282 PyThreadState* __tstate = wxPyBeginAllowThreads();
4283 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
4284 wxPyEndAllowThreads(__tstate);
4285 if (PyErr_Occurred()) SWIG_fail;
4286 }
4287 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
4288 return resultobj;
4289 fail:
4290 return NULL;
4291 }
4292
4293
4294 SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4295 PyObject *resultobj = 0;
4296 wxPen *arg1 = (wxPen *) 0 ;
4297 void *argp1 = 0 ;
4298 int res1 = 0 ;
4299 PyObject *swig_obj[1] ;
4300
4301 if (!args) SWIG_fail;
4302 swig_obj[0] = args;
4303 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
4304 if (!SWIG_IsOK(res1)) {
4305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
4306 }
4307 arg1 = reinterpret_cast< wxPen * >(argp1);
4308 {
4309 PyThreadState* __tstate = wxPyBeginAllowThreads();
4310 delete arg1;
4311
4312 wxPyEndAllowThreads(__tstate);
4313 if (PyErr_Occurred()) SWIG_fail;
4314 }
4315 resultobj = SWIG_Py_Void();
4316 return resultobj;
4317 fail:
4318 return NULL;
4319 }
4320
4321
4322 SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4323 PyObject *resultobj = 0;
4324 wxPen *arg1 = (wxPen *) 0 ;
4325 int result;
4326 void *argp1 = 0 ;
4327 int res1 = 0 ;
4328 PyObject *swig_obj[1] ;
4329
4330 if (!args) SWIG_fail;
4331 swig_obj[0] = args;
4332 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4333 if (!SWIG_IsOK(res1)) {
4334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4335 }
4336 arg1 = reinterpret_cast< wxPen * >(argp1);
4337 {
4338 PyThreadState* __tstate = wxPyBeginAllowThreads();
4339 result = (int)(arg1)->GetCap();
4340 wxPyEndAllowThreads(__tstate);
4341 if (PyErr_Occurred()) SWIG_fail;
4342 }
4343 resultobj = SWIG_From_int(static_cast< int >(result));
4344 return resultobj;
4345 fail:
4346 return NULL;
4347 }
4348
4349
4350 SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4351 PyObject *resultobj = 0;
4352 wxPen *arg1 = (wxPen *) 0 ;
4353 wxColour result;
4354 void *argp1 = 0 ;
4355 int res1 = 0 ;
4356 PyObject *swig_obj[1] ;
4357
4358 if (!args) SWIG_fail;
4359 swig_obj[0] = args;
4360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4361 if (!SWIG_IsOK(res1)) {
4362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4363 }
4364 arg1 = reinterpret_cast< wxPen * >(argp1);
4365 {
4366 PyThreadState* __tstate = wxPyBeginAllowThreads();
4367 result = (arg1)->GetColour();
4368 wxPyEndAllowThreads(__tstate);
4369 if (PyErr_Occurred()) SWIG_fail;
4370 }
4371 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4372 return resultobj;
4373 fail:
4374 return NULL;
4375 }
4376
4377
4378 SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4379 PyObject *resultobj = 0;
4380 wxPen *arg1 = (wxPen *) 0 ;
4381 int result;
4382 void *argp1 = 0 ;
4383 int res1 = 0 ;
4384 PyObject *swig_obj[1] ;
4385
4386 if (!args) SWIG_fail;
4387 swig_obj[0] = args;
4388 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4389 if (!SWIG_IsOK(res1)) {
4390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4391 }
4392 arg1 = reinterpret_cast< wxPen * >(argp1);
4393 {
4394 PyThreadState* __tstate = wxPyBeginAllowThreads();
4395 result = (int)(arg1)->GetJoin();
4396 wxPyEndAllowThreads(__tstate);
4397 if (PyErr_Occurred()) SWIG_fail;
4398 }
4399 resultobj = SWIG_From_int(static_cast< int >(result));
4400 return resultobj;
4401 fail:
4402 return NULL;
4403 }
4404
4405
4406 SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4407 PyObject *resultobj = 0;
4408 wxPen *arg1 = (wxPen *) 0 ;
4409 int result;
4410 void *argp1 = 0 ;
4411 int res1 = 0 ;
4412 PyObject *swig_obj[1] ;
4413
4414 if (!args) SWIG_fail;
4415 swig_obj[0] = args;
4416 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4417 if (!SWIG_IsOK(res1)) {
4418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
4419 }
4420 arg1 = reinterpret_cast< wxPen * >(argp1);
4421 {
4422 PyThreadState* __tstate = wxPyBeginAllowThreads();
4423 result = (int)(arg1)->GetStyle();
4424 wxPyEndAllowThreads(__tstate);
4425 if (PyErr_Occurred()) SWIG_fail;
4426 }
4427 resultobj = SWIG_From_int(static_cast< int >(result));
4428 return resultobj;
4429 fail:
4430 return NULL;
4431 }
4432
4433
4434 SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4435 PyObject *resultobj = 0;
4436 wxPen *arg1 = (wxPen *) 0 ;
4437 int result;
4438 void *argp1 = 0 ;
4439 int res1 = 0 ;
4440 PyObject *swig_obj[1] ;
4441
4442 if (!args) SWIG_fail;
4443 swig_obj[0] = args;
4444 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4445 if (!SWIG_IsOK(res1)) {
4446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
4447 }
4448 arg1 = reinterpret_cast< wxPen * >(argp1);
4449 {
4450 PyThreadState* __tstate = wxPyBeginAllowThreads();
4451 result = (int)(arg1)->GetWidth();
4452 wxPyEndAllowThreads(__tstate);
4453 if (PyErr_Occurred()) SWIG_fail;
4454 }
4455 resultobj = SWIG_From_int(static_cast< int >(result));
4456 return resultobj;
4457 fail:
4458 return NULL;
4459 }
4460
4461
4462 SWIGINTERN PyObject *_wrap_Pen_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4463 PyObject *resultobj = 0;
4464 wxPen *arg1 = (wxPen *) 0 ;
4465 bool result;
4466 void *argp1 = 0 ;
4467 int res1 = 0 ;
4468 PyObject *swig_obj[1] ;
4469
4470 if (!args) SWIG_fail;
4471 swig_obj[0] = args;
4472 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4473 if (!SWIG_IsOK(res1)) {
4474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_Ok" "', expected argument " "1"" of type '" "wxPen *""'");
4475 }
4476 arg1 = reinterpret_cast< wxPen * >(argp1);
4477 {
4478 PyThreadState* __tstate = wxPyBeginAllowThreads();
4479 result = (bool)(arg1)->Ok();
4480 wxPyEndAllowThreads(__tstate);
4481 if (PyErr_Occurred()) SWIG_fail;
4482 }
4483 {
4484 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4485 }
4486 return resultobj;
4487 fail:
4488 return NULL;
4489 }
4490
4491
4492 SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4493 PyObject *resultobj = 0;
4494 wxPen *arg1 = (wxPen *) 0 ;
4495 int arg2 ;
4496 void *argp1 = 0 ;
4497 int res1 = 0 ;
4498 int val2 ;
4499 int ecode2 = 0 ;
4500 PyObject * obj0 = 0 ;
4501 PyObject * obj1 = 0 ;
4502 char * kwnames[] = {
4503 (char *) "self",(char *) "cap_style", NULL
4504 };
4505
4506 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
4507 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4508 if (!SWIG_IsOK(res1)) {
4509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4510 }
4511 arg1 = reinterpret_cast< wxPen * >(argp1);
4512 ecode2 = SWIG_AsVal_int(obj1, &val2);
4513 if (!SWIG_IsOK(ecode2)) {
4514 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
4515 }
4516 arg2 = static_cast< int >(val2);
4517 {
4518 PyThreadState* __tstate = wxPyBeginAllowThreads();
4519 (arg1)->SetCap(arg2);
4520 wxPyEndAllowThreads(__tstate);
4521 if (PyErr_Occurred()) SWIG_fail;
4522 }
4523 resultobj = SWIG_Py_Void();
4524 return resultobj;
4525 fail:
4526 return NULL;
4527 }
4528
4529
4530 SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4531 PyObject *resultobj = 0;
4532 wxPen *arg1 = (wxPen *) 0 ;
4533 wxColour *arg2 = 0 ;
4534 void *argp1 = 0 ;
4535 int res1 = 0 ;
4536 wxColour temp2 ;
4537 PyObject * obj0 = 0 ;
4538 PyObject * obj1 = 0 ;
4539 char * kwnames[] = {
4540 (char *) "self",(char *) "colour", NULL
4541 };
4542
4543 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
4544 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4545 if (!SWIG_IsOK(res1)) {
4546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4547 }
4548 arg1 = reinterpret_cast< wxPen * >(argp1);
4549 {
4550 arg2 = &temp2;
4551 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
4552 }
4553 {
4554 PyThreadState* __tstate = wxPyBeginAllowThreads();
4555 (arg1)->SetColour(*arg2);
4556 wxPyEndAllowThreads(__tstate);
4557 if (PyErr_Occurred()) SWIG_fail;
4558 }
4559 resultobj = SWIG_Py_Void();
4560 return resultobj;
4561 fail:
4562 return NULL;
4563 }
4564
4565
4566 SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4567 PyObject *resultobj = 0;
4568 wxPen *arg1 = (wxPen *) 0 ;
4569 int arg2 ;
4570 void *argp1 = 0 ;
4571 int res1 = 0 ;
4572 int val2 ;
4573 int ecode2 = 0 ;
4574 PyObject * obj0 = 0 ;
4575 PyObject * obj1 = 0 ;
4576 char * kwnames[] = {
4577 (char *) "self",(char *) "join_style", NULL
4578 };
4579
4580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
4581 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4582 if (!SWIG_IsOK(res1)) {
4583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4584 }
4585 arg1 = reinterpret_cast< wxPen * >(argp1);
4586 ecode2 = SWIG_AsVal_int(obj1, &val2);
4587 if (!SWIG_IsOK(ecode2)) {
4588 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
4589 }
4590 arg2 = static_cast< int >(val2);
4591 {
4592 PyThreadState* __tstate = wxPyBeginAllowThreads();
4593 (arg1)->SetJoin(arg2);
4594 wxPyEndAllowThreads(__tstate);
4595 if (PyErr_Occurred()) SWIG_fail;
4596 }
4597 resultobj = SWIG_Py_Void();
4598 return resultobj;
4599 fail:
4600 return NULL;
4601 }
4602
4603
4604 SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4605 PyObject *resultobj = 0;
4606 wxPen *arg1 = (wxPen *) 0 ;
4607 int arg2 ;
4608 void *argp1 = 0 ;
4609 int res1 = 0 ;
4610 int val2 ;
4611 int ecode2 = 0 ;
4612 PyObject * obj0 = 0 ;
4613 PyObject * obj1 = 0 ;
4614 char * kwnames[] = {
4615 (char *) "self",(char *) "style", NULL
4616 };
4617
4618 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
4619 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4620 if (!SWIG_IsOK(res1)) {
4621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
4622 }
4623 arg1 = reinterpret_cast< wxPen * >(argp1);
4624 ecode2 = SWIG_AsVal_int(obj1, &val2);
4625 if (!SWIG_IsOK(ecode2)) {
4626 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
4627 }
4628 arg2 = static_cast< int >(val2);
4629 {
4630 PyThreadState* __tstate = wxPyBeginAllowThreads();
4631 (arg1)->SetStyle(arg2);
4632 wxPyEndAllowThreads(__tstate);
4633 if (PyErr_Occurred()) SWIG_fail;
4634 }
4635 resultobj = SWIG_Py_Void();
4636 return resultobj;
4637 fail:
4638 return NULL;
4639 }
4640
4641
4642 SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4643 PyObject *resultobj = 0;
4644 wxPen *arg1 = (wxPen *) 0 ;
4645 int arg2 ;
4646 void *argp1 = 0 ;
4647 int res1 = 0 ;
4648 int val2 ;
4649 int ecode2 = 0 ;
4650 PyObject * obj0 = 0 ;
4651 PyObject * obj1 = 0 ;
4652 char * kwnames[] = {
4653 (char *) "self",(char *) "width", NULL
4654 };
4655
4656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
4657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4658 if (!SWIG_IsOK(res1)) {
4659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
4660 }
4661 arg1 = reinterpret_cast< wxPen * >(argp1);
4662 ecode2 = SWIG_AsVal_int(obj1, &val2);
4663 if (!SWIG_IsOK(ecode2)) {
4664 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
4665 }
4666 arg2 = static_cast< int >(val2);
4667 {
4668 PyThreadState* __tstate = wxPyBeginAllowThreads();
4669 (arg1)->SetWidth(arg2);
4670 wxPyEndAllowThreads(__tstate);
4671 if (PyErr_Occurred()) SWIG_fail;
4672 }
4673 resultobj = SWIG_Py_Void();
4674 return resultobj;
4675 fail:
4676 return NULL;
4677 }
4678
4679
4680 SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4681 PyObject *resultobj = 0;
4682 wxPen *arg1 = (wxPen *) 0 ;
4683 int arg2 ;
4684 wxDash *arg3 = (wxDash *) 0 ;
4685 void *argp1 = 0 ;
4686 int res1 = 0 ;
4687 PyObject * obj0 = 0 ;
4688 PyObject * obj1 = 0 ;
4689 char * kwnames[] = {
4690 (char *) "self",(char *) "dashes", NULL
4691 };
4692
4693 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
4694 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4695 if (!SWIG_IsOK(res1)) {
4696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
4697 }
4698 arg1 = reinterpret_cast< wxPen * >(argp1);
4699 {
4700 arg2 = PyList_Size(obj1);
4701 arg3 = (wxDash*)byte_LIST_helper(obj1);
4702 if (arg3 == NULL) SWIG_fail;
4703 }
4704 {
4705 PyThreadState* __tstate = wxPyBeginAllowThreads();
4706 (arg1)->SetDashes(arg2,arg3);
4707 wxPyEndAllowThreads(__tstate);
4708 if (PyErr_Occurred()) SWIG_fail;
4709 }
4710 resultobj = SWIG_Py_Void();
4711 {
4712 if (arg3) delete [] arg3;
4713 }
4714 return resultobj;
4715 fail:
4716 {
4717 if (arg3) delete [] arg3;
4718 }
4719 return NULL;
4720 }
4721
4722
4723 SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4724 PyObject *resultobj = 0;
4725 wxPen *arg1 = (wxPen *) 0 ;
4726 PyObject *result = 0 ;
4727 void *argp1 = 0 ;
4728 int res1 = 0 ;
4729 PyObject *swig_obj[1] ;
4730
4731 if (!args) SWIG_fail;
4732 swig_obj[0] = args;
4733 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4734 if (!SWIG_IsOK(res1)) {
4735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
4736 }
4737 arg1 = reinterpret_cast< wxPen * >(argp1);
4738 {
4739 PyThreadState* __tstate = wxPyBeginAllowThreads();
4740 result = (PyObject *)wxPen_GetDashes(arg1);
4741 wxPyEndAllowThreads(__tstate);
4742 if (PyErr_Occurred()) SWIG_fail;
4743 }
4744 resultobj = result;
4745 return resultobj;
4746 fail:
4747 return NULL;
4748 }
4749
4750
4751 SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4752 PyObject *resultobj = 0;
4753 wxPen *arg1 = (wxPen *) 0 ;
4754 PyObject *arg2 = (PyObject *) 0 ;
4755 PyObject *arg3 = (PyObject *) 0 ;
4756 void *argp1 = 0 ;
4757 int res1 = 0 ;
4758 PyObject * obj0 = 0 ;
4759 PyObject * obj1 = 0 ;
4760 PyObject * obj2 = 0 ;
4761 char * kwnames[] = {
4762 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
4763 };
4764
4765 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4766 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4767 if (!SWIG_IsOK(res1)) {
4768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
4769 }
4770 arg1 = reinterpret_cast< wxPen * >(argp1);
4771 arg2 = obj1;
4772 arg3 = obj2;
4773 {
4774 PyThreadState* __tstate = wxPyBeginAllowThreads();
4775 wxPen__SetDashes(arg1,arg2,arg3);
4776 wxPyEndAllowThreads(__tstate);
4777 if (PyErr_Occurred()) SWIG_fail;
4778 }
4779 resultobj = SWIG_Py_Void();
4780 return resultobj;
4781 fail:
4782 return NULL;
4783 }
4784
4785
4786 SWIGINTERN PyObject *_wrap_Pen_GetDashCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4787 PyObject *resultobj = 0;
4788 wxPen *arg1 = (wxPen *) 0 ;
4789 int result;
4790 void *argp1 = 0 ;
4791 int res1 = 0 ;
4792 PyObject *swig_obj[1] ;
4793
4794 if (!args) SWIG_fail;
4795 swig_obj[0] = args;
4796 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4797 if (!SWIG_IsOK(res1)) {
4798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashCount" "', expected argument " "1"" of type '" "wxPen const *""'");
4799 }
4800 arg1 = reinterpret_cast< wxPen * >(argp1);
4801 {
4802 PyThreadState* __tstate = wxPyBeginAllowThreads();
4803 result = (int)((wxPen const *)arg1)->GetDashCount();
4804 wxPyEndAllowThreads(__tstate);
4805 if (PyErr_Occurred()) SWIG_fail;
4806 }
4807 resultobj = SWIG_From_int(static_cast< int >(result));
4808 return resultobj;
4809 fail:
4810 return NULL;
4811 }
4812
4813
4814 SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4815 PyObject *resultobj = 0;
4816 wxPen *arg1 = (wxPen *) 0 ;
4817 wxPen *arg2 = (wxPen *) 0 ;
4818 bool result;
4819 void *argp1 = 0 ;
4820 int res1 = 0 ;
4821 void *argp2 = 0 ;
4822 int res2 = 0 ;
4823 PyObject * obj0 = 0 ;
4824 PyObject * obj1 = 0 ;
4825 char * kwnames[] = {
4826 (char *) "self",(char *) "other", NULL
4827 };
4828
4829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4831 if (!SWIG_IsOK(res1)) {
4832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
4833 }
4834 arg1 = reinterpret_cast< wxPen * >(argp1);
4835 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
4836 if (!SWIG_IsOK(res2)) {
4837 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
4838 }
4839 arg2 = reinterpret_cast< wxPen * >(argp2);
4840 {
4841 PyThreadState* __tstate = wxPyBeginAllowThreads();
4842 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
4843 wxPyEndAllowThreads(__tstate);
4844 if (PyErr_Occurred()) SWIG_fail;
4845 }
4846 {
4847 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4848 }
4849 return resultobj;
4850 fail:
4851 return NULL;
4852 }
4853
4854
4855 SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4856 PyObject *resultobj = 0;
4857 wxPen *arg1 = (wxPen *) 0 ;
4858 wxPen *arg2 = (wxPen *) 0 ;
4859 bool result;
4860 void *argp1 = 0 ;
4861 int res1 = 0 ;
4862 void *argp2 = 0 ;
4863 int res2 = 0 ;
4864 PyObject * obj0 = 0 ;
4865 PyObject * obj1 = 0 ;
4866 char * kwnames[] = {
4867 (char *) "self",(char *) "other", NULL
4868 };
4869
4870 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4871 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4872 if (!SWIG_IsOK(res1)) {
4873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
4874 }
4875 arg1 = reinterpret_cast< wxPen * >(argp1);
4876 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
4877 if (!SWIG_IsOK(res2)) {
4878 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
4879 }
4880 arg2 = reinterpret_cast< wxPen * >(argp2);
4881 {
4882 PyThreadState* __tstate = wxPyBeginAllowThreads();
4883 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
4884 wxPyEndAllowThreads(__tstate);
4885 if (PyErr_Occurred()) SWIG_fail;
4886 }
4887 {
4888 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4889 }
4890 return resultobj;
4891 fail:
4892 return NULL;
4893 }
4894
4895
4896 SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4897 PyObject *obj;
4898 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4899 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
4900 return SWIG_Py_Void();
4901 }
4902
4903 SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4904 return SWIG_Python_InitShadowInstance(args);
4905 }
4906
4907 SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4908 PyObject *resultobj = 0;
4909 wxColour *arg1 = 0 ;
4910 int arg2 = (int) wxSOLID ;
4911 wxBrush *result = 0 ;
4912 wxColour temp1 ;
4913 int val2 ;
4914 int ecode2 = 0 ;
4915 PyObject * obj0 = 0 ;
4916 PyObject * obj1 = 0 ;
4917 char * kwnames[] = {
4918 (char *) "colour",(char *) "style", NULL
4919 };
4920
4921 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
4922 {
4923 arg1 = &temp1;
4924 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
4925 }
4926 if (obj1) {
4927 ecode2 = SWIG_AsVal_int(obj1, &val2);
4928 if (!SWIG_IsOK(ecode2)) {
4929 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
4930 }
4931 arg2 = static_cast< int >(val2);
4932 }
4933 {
4934 if (!wxPyCheckForApp()) SWIG_fail;
4935 PyThreadState* __tstate = wxPyBeginAllowThreads();
4936 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
4937 wxPyEndAllowThreads(__tstate);
4938 if (PyErr_Occurred()) SWIG_fail;
4939 }
4940 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
4941 return resultobj;
4942 fail:
4943 return NULL;
4944 }
4945
4946
4947 SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4948 PyObject *resultobj = 0;
4949 wxBitmap *arg1 = 0 ;
4950 wxBrush *result = 0 ;
4951 void *argp1 = 0 ;
4952 int res1 = 0 ;
4953 PyObject * obj0 = 0 ;
4954 char * kwnames[] = {
4955 (char *) "stippleBitmap", NULL
4956 };
4957
4958 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
4959 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
4960 if (!SWIG_IsOK(res1)) {
4961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
4962 }
4963 if (!argp1) {
4964 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
4965 }
4966 arg1 = reinterpret_cast< wxBitmap * >(argp1);
4967 {
4968 if (!wxPyCheckForApp()) SWIG_fail;
4969 PyThreadState* __tstate = wxPyBeginAllowThreads();
4970 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
4971 wxPyEndAllowThreads(__tstate);
4972 if (PyErr_Occurred()) SWIG_fail;
4973 }
4974 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
4975 return resultobj;
4976 fail:
4977 return NULL;
4978 }
4979
4980
4981 SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4982 PyObject *resultobj = 0;
4983 wxBrush *arg1 = (wxBrush *) 0 ;
4984 void *argp1 = 0 ;
4985 int res1 = 0 ;
4986 PyObject *swig_obj[1] ;
4987
4988 if (!args) SWIG_fail;
4989 swig_obj[0] = args;
4990 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
4991 if (!SWIG_IsOK(res1)) {
4992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
4993 }
4994 arg1 = reinterpret_cast< wxBrush * >(argp1);
4995 {
4996 PyThreadState* __tstate = wxPyBeginAllowThreads();
4997 delete arg1;
4998
4999 wxPyEndAllowThreads(__tstate);
5000 if (PyErr_Occurred()) SWIG_fail;
5001 }
5002 resultobj = SWIG_Py_Void();
5003 return resultobj;
5004 fail:
5005 return NULL;
5006 }
5007
5008
5009 SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5010 PyObject *resultobj = 0;
5011 wxBrush *arg1 = (wxBrush *) 0 ;
5012 wxColour *arg2 = 0 ;
5013 void *argp1 = 0 ;
5014 int res1 = 0 ;
5015 wxColour temp2 ;
5016 PyObject * obj0 = 0 ;
5017 PyObject * obj1 = 0 ;
5018 char * kwnames[] = {
5019 (char *) "self",(char *) "col", NULL
5020 };
5021
5022 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5023 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5024 if (!SWIG_IsOK(res1)) {
5025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5026 }
5027 arg1 = reinterpret_cast< wxBrush * >(argp1);
5028 {
5029 arg2 = &temp2;
5030 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5031 }
5032 {
5033 PyThreadState* __tstate = wxPyBeginAllowThreads();
5034 (arg1)->SetColour((wxColour const &)*arg2);
5035 wxPyEndAllowThreads(__tstate);
5036 if (PyErr_Occurred()) SWIG_fail;
5037 }
5038 resultobj = SWIG_Py_Void();
5039 return resultobj;
5040 fail:
5041 return NULL;
5042 }
5043
5044
5045 SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5046 PyObject *resultobj = 0;
5047 wxBrush *arg1 = (wxBrush *) 0 ;
5048 int arg2 ;
5049 void *argp1 = 0 ;
5050 int res1 = 0 ;
5051 int val2 ;
5052 int ecode2 = 0 ;
5053 PyObject * obj0 = 0 ;
5054 PyObject * obj1 = 0 ;
5055 char * kwnames[] = {
5056 (char *) "self",(char *) "style", NULL
5057 };
5058
5059 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5060 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5061 if (!SWIG_IsOK(res1)) {
5062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5063 }
5064 arg1 = reinterpret_cast< wxBrush * >(argp1);
5065 ecode2 = SWIG_AsVal_int(obj1, &val2);
5066 if (!SWIG_IsOK(ecode2)) {
5067 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5068 }
5069 arg2 = static_cast< int >(val2);
5070 {
5071 PyThreadState* __tstate = wxPyBeginAllowThreads();
5072 (arg1)->SetStyle(arg2);
5073 wxPyEndAllowThreads(__tstate);
5074 if (PyErr_Occurred()) SWIG_fail;
5075 }
5076 resultobj = SWIG_Py_Void();
5077 return resultobj;
5078 fail:
5079 return NULL;
5080 }
5081
5082
5083 SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5084 PyObject *resultobj = 0;
5085 wxBrush *arg1 = (wxBrush *) 0 ;
5086 wxBitmap *arg2 = 0 ;
5087 void *argp1 = 0 ;
5088 int res1 = 0 ;
5089 void *argp2 = 0 ;
5090 int res2 = 0 ;
5091 PyObject * obj0 = 0 ;
5092 PyObject * obj1 = 0 ;
5093 char * kwnames[] = {
5094 (char *) "self",(char *) "stipple", NULL
5095 };
5096
5097 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5098 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5099 if (!SWIG_IsOK(res1)) {
5100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5101 }
5102 arg1 = reinterpret_cast< wxBrush * >(argp1);
5103 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5104 if (!SWIG_IsOK(res2)) {
5105 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5106 }
5107 if (!argp2) {
5108 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5109 }
5110 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5111 {
5112 PyThreadState* __tstate = wxPyBeginAllowThreads();
5113 (arg1)->SetStipple((wxBitmap const &)*arg2);
5114 wxPyEndAllowThreads(__tstate);
5115 if (PyErr_Occurred()) SWIG_fail;
5116 }
5117 resultobj = SWIG_Py_Void();
5118 return resultobj;
5119 fail:
5120 return NULL;
5121 }
5122
5123
5124 SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5125 PyObject *resultobj = 0;
5126 wxBrush *arg1 = (wxBrush *) 0 ;
5127 wxColour result;
5128 void *argp1 = 0 ;
5129 int res1 = 0 ;
5130 PyObject *swig_obj[1] ;
5131
5132 if (!args) SWIG_fail;
5133 swig_obj[0] = args;
5134 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5135 if (!SWIG_IsOK(res1)) {
5136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5137 }
5138 arg1 = reinterpret_cast< wxBrush * >(argp1);
5139 {
5140 PyThreadState* __tstate = wxPyBeginAllowThreads();
5141 result = ((wxBrush const *)arg1)->GetColour();
5142 wxPyEndAllowThreads(__tstate);
5143 if (PyErr_Occurred()) SWIG_fail;
5144 }
5145 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5146 return resultobj;
5147 fail:
5148 return NULL;
5149 }
5150
5151
5152 SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5153 PyObject *resultobj = 0;
5154 wxBrush *arg1 = (wxBrush *) 0 ;
5155 int result;
5156 void *argp1 = 0 ;
5157 int res1 = 0 ;
5158 PyObject *swig_obj[1] ;
5159
5160 if (!args) SWIG_fail;
5161 swig_obj[0] = args;
5162 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5163 if (!SWIG_IsOK(res1)) {
5164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5165 }
5166 arg1 = reinterpret_cast< wxBrush * >(argp1);
5167 {
5168 PyThreadState* __tstate = wxPyBeginAllowThreads();
5169 result = (int)((wxBrush const *)arg1)->GetStyle();
5170 wxPyEndAllowThreads(__tstate);
5171 if (PyErr_Occurred()) SWIG_fail;
5172 }
5173 resultobj = SWIG_From_int(static_cast< int >(result));
5174 return resultobj;
5175 fail:
5176 return NULL;
5177 }
5178
5179
5180 SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5181 PyObject *resultobj = 0;
5182 wxBrush *arg1 = (wxBrush *) 0 ;
5183 wxBitmap *result = 0 ;
5184 void *argp1 = 0 ;
5185 int res1 = 0 ;
5186 PyObject *swig_obj[1] ;
5187
5188 if (!args) SWIG_fail;
5189 swig_obj[0] = args;
5190 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5191 if (!SWIG_IsOK(res1)) {
5192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
5193 }
5194 arg1 = reinterpret_cast< wxBrush * >(argp1);
5195 {
5196 PyThreadState* __tstate = wxPyBeginAllowThreads();
5197 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
5198 wxPyEndAllowThreads(__tstate);
5199 if (PyErr_Occurred()) SWIG_fail;
5200 }
5201 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5202 return resultobj;
5203 fail:
5204 return NULL;
5205 }
5206
5207
5208 SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5209 PyObject *resultobj = 0;
5210 wxBrush *arg1 = (wxBrush *) 0 ;
5211 bool result;
5212 void *argp1 = 0 ;
5213 int res1 = 0 ;
5214 PyObject *swig_obj[1] ;
5215
5216 if (!args) SWIG_fail;
5217 swig_obj[0] = args;
5218 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5219 if (!SWIG_IsOK(res1)) {
5220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
5221 }
5222 arg1 = reinterpret_cast< wxBrush * >(argp1);
5223 {
5224 PyThreadState* __tstate = wxPyBeginAllowThreads();
5225 result = (bool)((wxBrush const *)arg1)->IsHatch();
5226 wxPyEndAllowThreads(__tstate);
5227 if (PyErr_Occurred()) SWIG_fail;
5228 }
5229 {
5230 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5231 }
5232 return resultobj;
5233 fail:
5234 return NULL;
5235 }
5236
5237
5238 SWIGINTERN PyObject *_wrap_Brush_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5239 PyObject *resultobj = 0;
5240 wxBrush *arg1 = (wxBrush *) 0 ;
5241 bool result;
5242 void *argp1 = 0 ;
5243 int res1 = 0 ;
5244 PyObject *swig_obj[1] ;
5245
5246 if (!args) SWIG_fail;
5247 swig_obj[0] = args;
5248 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5249 if (!SWIG_IsOK(res1)) {
5250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_Ok" "', expected argument " "1"" of type '" "wxBrush *""'");
5251 }
5252 arg1 = reinterpret_cast< wxBrush * >(argp1);
5253 {
5254 PyThreadState* __tstate = wxPyBeginAllowThreads();
5255 result = (bool)(arg1)->Ok();
5256 wxPyEndAllowThreads(__tstate);
5257 if (PyErr_Occurred()) SWIG_fail;
5258 }
5259 {
5260 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5261 }
5262 return resultobj;
5263 fail:
5264 return NULL;
5265 }
5266
5267
5268 SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5269 PyObject *obj;
5270 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5271 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
5272 return SWIG_Py_Void();
5273 }
5274
5275 SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5276 return SWIG_Python_InitShadowInstance(args);
5277 }
5278
5279 SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5280 PyObject *resultobj = 0;
5281 wxString *arg1 = 0 ;
5282 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
5283 wxBitmap *result = 0 ;
5284 bool temp1 = false ;
5285 int val2 ;
5286 int ecode2 = 0 ;
5287 PyObject * obj0 = 0 ;
5288 PyObject * obj1 = 0 ;
5289 char * kwnames[] = {
5290 (char *) "name",(char *) "type", NULL
5291 };
5292
5293 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
5294 {
5295 arg1 = wxString_in_helper(obj0);
5296 if (arg1 == NULL) SWIG_fail;
5297 temp1 = true;
5298 }
5299 if (obj1) {
5300 ecode2 = SWIG_AsVal_int(obj1, &val2);
5301 if (!SWIG_IsOK(ecode2)) {
5302 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
5303 }
5304 arg2 = static_cast< wxBitmapType >(val2);
5305 }
5306 {
5307 if (!wxPyCheckForApp()) SWIG_fail;
5308 PyThreadState* __tstate = wxPyBeginAllowThreads();
5309 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
5310 wxPyEndAllowThreads(__tstate);
5311 if (PyErr_Occurred()) SWIG_fail;
5312 }
5313 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
5314 {
5315 if (temp1)
5316 delete arg1;
5317 }
5318 return resultobj;
5319 fail:
5320 {
5321 if (temp1)
5322 delete arg1;
5323 }
5324 return NULL;
5325 }
5326
5327
5328 SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5329 PyObject *resultobj = 0;
5330 wxBitmap *arg1 = (wxBitmap *) 0 ;
5331 void *argp1 = 0 ;
5332 int res1 = 0 ;
5333 PyObject *swig_obj[1] ;
5334
5335 if (!args) SWIG_fail;
5336 swig_obj[0] = args;
5337 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
5338 if (!SWIG_IsOK(res1)) {
5339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
5340 }
5341 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5342 {
5343 PyThreadState* __tstate = wxPyBeginAllowThreads();
5344 delete arg1;
5345
5346 wxPyEndAllowThreads(__tstate);
5347 if (PyErr_Occurred()) SWIG_fail;
5348 }
5349 resultobj = SWIG_Py_Void();
5350 return resultobj;
5351 fail:
5352 return NULL;
5353 }
5354
5355
5356 SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5357 PyObject *resultobj = 0;
5358 int arg1 ;
5359 int arg2 ;
5360 int arg3 = (int) -1 ;
5361 wxBitmap *result = 0 ;
5362 int val1 ;
5363 int ecode1 = 0 ;
5364 int val2 ;
5365 int ecode2 = 0 ;
5366 int val3 ;
5367 int ecode3 = 0 ;
5368 PyObject * obj0 = 0 ;
5369 PyObject * obj1 = 0 ;
5370 PyObject * obj2 = 0 ;
5371 char * kwnames[] = {
5372 (char *) "width",(char *) "height",(char *) "depth", NULL
5373 };
5374
5375 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5376 ecode1 = SWIG_AsVal_int(obj0, &val1);
5377 if (!SWIG_IsOK(ecode1)) {
5378 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
5379 }
5380 arg1 = static_cast< int >(val1);
5381 ecode2 = SWIG_AsVal_int(obj1, &val2);
5382 if (!SWIG_IsOK(ecode2)) {
5383 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
5384 }
5385 arg2 = static_cast< int >(val2);
5386 if (obj2) {
5387 ecode3 = SWIG_AsVal_int(obj2, &val3);
5388 if (!SWIG_IsOK(ecode3)) {
5389 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
5390 }
5391 arg3 = static_cast< int >(val3);
5392 }
5393 {
5394 if (!wxPyCheckForApp()) SWIG_fail;
5395 PyThreadState* __tstate = wxPyBeginAllowThreads();
5396 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
5397 wxPyEndAllowThreads(__tstate);
5398 if (PyErr_Occurred()) SWIG_fail;
5399 }
5400 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5401 return resultobj;
5402 fail:
5403 return NULL;
5404 }
5405
5406
5407 SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5408 PyObject *resultobj = 0;
5409 wxIcon *arg1 = 0 ;
5410 wxBitmap *result = 0 ;
5411 void *argp1 = 0 ;
5412 int res1 = 0 ;
5413 PyObject * obj0 = 0 ;
5414 char * kwnames[] = {
5415 (char *) "icon", NULL
5416 };
5417
5418 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
5419 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
5420 if (!SWIG_IsOK(res1)) {
5421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5422 }
5423 if (!argp1) {
5424 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5425 }
5426 arg1 = reinterpret_cast< wxIcon * >(argp1);
5427 {
5428 if (!wxPyCheckForApp()) SWIG_fail;
5429 PyThreadState* __tstate = wxPyBeginAllowThreads();
5430 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
5431 wxPyEndAllowThreads(__tstate);
5432 if (PyErr_Occurred()) SWIG_fail;
5433 }
5434 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5435 return resultobj;
5436 fail:
5437 return NULL;
5438 }
5439
5440
5441 SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5442 PyObject *resultobj = 0;
5443 wxImage *arg1 = 0 ;
5444 int arg2 = (int) -1 ;
5445 wxBitmap *result = 0 ;
5446 void *argp1 = 0 ;
5447 int res1 = 0 ;
5448 int val2 ;
5449 int ecode2 = 0 ;
5450 PyObject * obj0 = 0 ;
5451 PyObject * obj1 = 0 ;
5452 char * kwnames[] = {
5453 (char *) "image",(char *) "depth", NULL
5454 };
5455
5456 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
5457 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
5458 if (!SWIG_IsOK(res1)) {
5459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
5460 }
5461 if (!argp1) {
5462 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
5463 }
5464 arg1 = reinterpret_cast< wxImage * >(argp1);
5465 if (obj1) {
5466 ecode2 = SWIG_AsVal_int(obj1, &val2);
5467 if (!SWIG_IsOK(ecode2)) {
5468 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
5469 }
5470 arg2 = static_cast< int >(val2);
5471 }
5472 {
5473 if (!wxPyCheckForApp()) SWIG_fail;
5474 PyThreadState* __tstate = wxPyBeginAllowThreads();
5475 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
5476 wxPyEndAllowThreads(__tstate);
5477 if (PyErr_Occurred()) SWIG_fail;
5478 }
5479 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5480 return resultobj;
5481 fail:
5482 return NULL;
5483 }
5484
5485
5486 SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5487 PyObject *resultobj = 0;
5488 PyObject *arg1 = (PyObject *) 0 ;
5489 wxBitmap *result = 0 ;
5490 PyObject * obj0 = 0 ;
5491 char * kwnames[] = {
5492 (char *) "listOfStrings", NULL
5493 };
5494
5495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
5496 arg1 = obj0;
5497 {
5498 if (!wxPyCheckForApp()) SWIG_fail;
5499 PyThreadState* __tstate = wxPyBeginAllowThreads();
5500 result = (wxBitmap *)new_wxBitmap(arg1);
5501 wxPyEndAllowThreads(__tstate);
5502 if (PyErr_Occurred()) SWIG_fail;
5503 }
5504 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5505 return resultobj;
5506 fail:
5507 return NULL;
5508 }
5509
5510
5511 SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5512 PyObject *resultobj = 0;
5513 PyObject *arg1 = (PyObject *) 0 ;
5514 int arg2 ;
5515 int arg3 ;
5516 int arg4 = (int) 1 ;
5517 wxBitmap *result = 0 ;
5518 int val2 ;
5519 int ecode2 = 0 ;
5520 int val3 ;
5521 int ecode3 = 0 ;
5522 int val4 ;
5523 int ecode4 = 0 ;
5524 PyObject * obj0 = 0 ;
5525 PyObject * obj1 = 0 ;
5526 PyObject * obj2 = 0 ;
5527 PyObject * obj3 = 0 ;
5528 char * kwnames[] = {
5529 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
5530 };
5531
5532 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
5533 arg1 = obj0;
5534 ecode2 = SWIG_AsVal_int(obj1, &val2);
5535 if (!SWIG_IsOK(ecode2)) {
5536 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
5537 }
5538 arg2 = static_cast< int >(val2);
5539 ecode3 = SWIG_AsVal_int(obj2, &val3);
5540 if (!SWIG_IsOK(ecode3)) {
5541 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
5542 }
5543 arg3 = static_cast< int >(val3);
5544 if (obj3) {
5545 ecode4 = SWIG_AsVal_int(obj3, &val4);
5546 if (!SWIG_IsOK(ecode4)) {
5547 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
5548 }
5549 arg4 = static_cast< int >(val4);
5550 }
5551 {
5552 if (!wxPyCheckForApp()) SWIG_fail;
5553 PyThreadState* __tstate = wxPyBeginAllowThreads();
5554 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
5555 wxPyEndAllowThreads(__tstate);
5556 if (PyErr_Occurred()) SWIG_fail;
5557 }
5558 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5559 return resultobj;
5560 fail:
5561 return NULL;
5562 }
5563
5564
5565 SWIGINTERN PyObject *_wrap_Bitmap_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5566 PyObject *resultobj = 0;
5567 wxBitmap *arg1 = (wxBitmap *) 0 ;
5568 bool result;
5569 void *argp1 = 0 ;
5570 int res1 = 0 ;
5571 PyObject *swig_obj[1] ;
5572
5573 if (!args) SWIG_fail;
5574 swig_obj[0] = args;
5575 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5576 if (!SWIG_IsOK(res1)) {
5577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_Ok" "', expected argument " "1"" of type '" "wxBitmap *""'");
5578 }
5579 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5580 {
5581 PyThreadState* __tstate = wxPyBeginAllowThreads();
5582 result = (bool)(arg1)->Ok();
5583 wxPyEndAllowThreads(__tstate);
5584 if (PyErr_Occurred()) SWIG_fail;
5585 }
5586 {
5587 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5588 }
5589 return resultobj;
5590 fail:
5591 return NULL;
5592 }
5593
5594
5595 SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5596 PyObject *resultobj = 0;
5597 wxBitmap *arg1 = (wxBitmap *) 0 ;
5598 int result;
5599 void *argp1 = 0 ;
5600 int res1 = 0 ;
5601 PyObject *swig_obj[1] ;
5602
5603 if (!args) SWIG_fail;
5604 swig_obj[0] = args;
5605 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5606 if (!SWIG_IsOK(res1)) {
5607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
5608 }
5609 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5610 {
5611 PyThreadState* __tstate = wxPyBeginAllowThreads();
5612 result = (int)(arg1)->GetWidth();
5613 wxPyEndAllowThreads(__tstate);
5614 if (PyErr_Occurred()) SWIG_fail;
5615 }
5616 resultobj = SWIG_From_int(static_cast< int >(result));
5617 return resultobj;
5618 fail:
5619 return NULL;
5620 }
5621
5622
5623 SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5624 PyObject *resultobj = 0;
5625 wxBitmap *arg1 = (wxBitmap *) 0 ;
5626 int result;
5627 void *argp1 = 0 ;
5628 int res1 = 0 ;
5629 PyObject *swig_obj[1] ;
5630
5631 if (!args) SWIG_fail;
5632 swig_obj[0] = args;
5633 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5634 if (!SWIG_IsOK(res1)) {
5635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
5636 }
5637 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5638 {
5639 PyThreadState* __tstate = wxPyBeginAllowThreads();
5640 result = (int)(arg1)->GetHeight();
5641 wxPyEndAllowThreads(__tstate);
5642 if (PyErr_Occurred()) SWIG_fail;
5643 }
5644 resultobj = SWIG_From_int(static_cast< int >(result));
5645 return resultobj;
5646 fail:
5647 return NULL;
5648 }
5649
5650
5651 SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5652 PyObject *resultobj = 0;
5653 wxBitmap *arg1 = (wxBitmap *) 0 ;
5654 int result;
5655 void *argp1 = 0 ;
5656 int res1 = 0 ;
5657 PyObject *swig_obj[1] ;
5658
5659 if (!args) SWIG_fail;
5660 swig_obj[0] = args;
5661 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5662 if (!SWIG_IsOK(res1)) {
5663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
5664 }
5665 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5666 {
5667 PyThreadState* __tstate = wxPyBeginAllowThreads();
5668 result = (int)(arg1)->GetDepth();
5669 wxPyEndAllowThreads(__tstate);
5670 if (PyErr_Occurred()) SWIG_fail;
5671 }
5672 resultobj = SWIG_From_int(static_cast< int >(result));
5673 return resultobj;
5674 fail:
5675 return NULL;
5676 }
5677
5678
5679 SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5680 PyObject *resultobj = 0;
5681 wxBitmap *arg1 = (wxBitmap *) 0 ;
5682 wxSize result;
5683 void *argp1 = 0 ;
5684 int res1 = 0 ;
5685 PyObject *swig_obj[1] ;
5686
5687 if (!args) SWIG_fail;
5688 swig_obj[0] = args;
5689 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5690 if (!SWIG_IsOK(res1)) {
5691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
5692 }
5693 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5694 {
5695 PyThreadState* __tstate = wxPyBeginAllowThreads();
5696 result = wxBitmap_GetSize(arg1);
5697 wxPyEndAllowThreads(__tstate);
5698 if (PyErr_Occurred()) SWIG_fail;
5699 }
5700 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
5701 return resultobj;
5702 fail:
5703 return NULL;
5704 }
5705
5706
5707 SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5708 PyObject *resultobj = 0;
5709 wxBitmap *arg1 = (wxBitmap *) 0 ;
5710 SwigValueWrapper<wxImage > result;
5711 void *argp1 = 0 ;
5712 int res1 = 0 ;
5713 PyObject *swig_obj[1] ;
5714
5715 if (!args) SWIG_fail;
5716 swig_obj[0] = args;
5717 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5718 if (!SWIG_IsOK(res1)) {
5719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
5720 }
5721 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5722 {
5723 PyThreadState* __tstate = wxPyBeginAllowThreads();
5724 result = ((wxBitmap const *)arg1)->ConvertToImage();
5725 wxPyEndAllowThreads(__tstate);
5726 if (PyErr_Occurred()) SWIG_fail;
5727 }
5728 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
5729 return resultobj;
5730 fail:
5731 return NULL;
5732 }
5733
5734
5735 SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5736 PyObject *resultobj = 0;
5737 wxBitmap *arg1 = (wxBitmap *) 0 ;
5738 wxMask *result = 0 ;
5739 void *argp1 = 0 ;
5740 int res1 = 0 ;
5741 PyObject *swig_obj[1] ;
5742
5743 if (!args) SWIG_fail;
5744 swig_obj[0] = args;
5745 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5746 if (!SWIG_IsOK(res1)) {
5747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
5748 }
5749 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5750 {
5751 PyThreadState* __tstate = wxPyBeginAllowThreads();
5752 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
5753 wxPyEndAllowThreads(__tstate);
5754 if (PyErr_Occurred()) SWIG_fail;
5755 }
5756 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
5757 return resultobj;
5758 fail:
5759 return NULL;
5760 }
5761
5762
5763 SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5764 PyObject *resultobj = 0;
5765 wxBitmap *arg1 = (wxBitmap *) 0 ;
5766 wxMask *arg2 = (wxMask *) 0 ;
5767 void *argp1 = 0 ;
5768 int res1 = 0 ;
5769 int res2 = 0 ;
5770 PyObject * obj0 = 0 ;
5771 PyObject * obj1 = 0 ;
5772 char * kwnames[] = {
5773 (char *) "self",(char *) "mask", NULL
5774 };
5775
5776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
5777 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5778 if (!SWIG_IsOK(res1)) {
5779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
5780 }
5781 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5782 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
5783 if (!SWIG_IsOK(res2)) {
5784 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
5785 }
5786 {
5787 PyThreadState* __tstate = wxPyBeginAllowThreads();
5788 (arg1)->SetMask(arg2);
5789 wxPyEndAllowThreads(__tstate);
5790 if (PyErr_Occurred()) SWIG_fail;
5791 }
5792 resultobj = SWIG_Py_Void();
5793 return resultobj;
5794 fail:
5795 return NULL;
5796 }
5797
5798
5799 SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5800 PyObject *resultobj = 0;
5801 wxBitmap *arg1 = (wxBitmap *) 0 ;
5802 wxColour *arg2 = 0 ;
5803 void *argp1 = 0 ;
5804 int res1 = 0 ;
5805 wxColour temp2 ;
5806 PyObject * obj0 = 0 ;
5807 PyObject * obj1 = 0 ;
5808 char * kwnames[] = {
5809 (char *) "self",(char *) "colour", NULL
5810 };
5811
5812 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
5813 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5814 if (!SWIG_IsOK(res1)) {
5815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
5816 }
5817 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5818 {
5819 arg2 = &temp2;
5820 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5821 }
5822 {
5823 PyThreadState* __tstate = wxPyBeginAllowThreads();
5824 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
5825 wxPyEndAllowThreads(__tstate);
5826 if (PyErr_Occurred()) SWIG_fail;
5827 }
5828 resultobj = SWIG_Py_Void();
5829 return resultobj;
5830 fail:
5831 return NULL;
5832 }
5833
5834
5835 SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5836 PyObject *resultobj = 0;
5837 wxBitmap *arg1 = (wxBitmap *) 0 ;
5838 wxRect *arg2 = 0 ;
5839 SwigValueWrapper<wxBitmap > result;
5840 void *argp1 = 0 ;
5841 int res1 = 0 ;
5842 wxRect temp2 ;
5843 PyObject * obj0 = 0 ;
5844 PyObject * obj1 = 0 ;
5845 char * kwnames[] = {
5846 (char *) "self",(char *) "rect", NULL
5847 };
5848
5849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
5850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5851 if (!SWIG_IsOK(res1)) {
5852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
5853 }
5854 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5855 {
5856 arg2 = &temp2;
5857 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5858 }
5859 {
5860 PyThreadState* __tstate = wxPyBeginAllowThreads();
5861 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
5862 wxPyEndAllowThreads(__tstate);
5863 if (PyErr_Occurred()) SWIG_fail;
5864 }
5865 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5866 return resultobj;
5867 fail:
5868 return NULL;
5869 }
5870
5871
5872 SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5873 PyObject *resultobj = 0;
5874 wxBitmap *arg1 = (wxBitmap *) 0 ;
5875 wxString *arg2 = 0 ;
5876 wxBitmapType arg3 ;
5877 wxPalette *arg4 = (wxPalette *) NULL ;
5878 bool result;
5879 void *argp1 = 0 ;
5880 int res1 = 0 ;
5881 bool temp2 = false ;
5882 int val3 ;
5883 int ecode3 = 0 ;
5884 void *argp4 = 0 ;
5885 int res4 = 0 ;
5886 PyObject * obj0 = 0 ;
5887 PyObject * obj1 = 0 ;
5888 PyObject * obj2 = 0 ;
5889 PyObject * obj3 = 0 ;
5890 char * kwnames[] = {
5891 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
5892 };
5893
5894 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
5895 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5896 if (!SWIG_IsOK(res1)) {
5897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
5898 }
5899 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5900 {
5901 arg2 = wxString_in_helper(obj1);
5902 if (arg2 == NULL) SWIG_fail;
5903 temp2 = true;
5904 }
5905 ecode3 = SWIG_AsVal_int(obj2, &val3);
5906 if (!SWIG_IsOK(ecode3)) {
5907 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
5908 }
5909 arg3 = static_cast< wxBitmapType >(val3);
5910 if (obj3) {
5911 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
5912 if (!SWIG_IsOK(res4)) {
5913 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
5914 }
5915 arg4 = reinterpret_cast< wxPalette * >(argp4);
5916 }
5917 {
5918 PyThreadState* __tstate = wxPyBeginAllowThreads();
5919 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
5920 wxPyEndAllowThreads(__tstate);
5921 if (PyErr_Occurred()) SWIG_fail;
5922 }
5923 {
5924 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5925 }
5926 {
5927 if (temp2)
5928 delete arg2;
5929 }
5930 return resultobj;
5931 fail:
5932 {
5933 if (temp2)
5934 delete arg2;
5935 }
5936 return NULL;
5937 }
5938
5939
5940 SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5941 PyObject *resultobj = 0;
5942 wxBitmap *arg1 = (wxBitmap *) 0 ;
5943 wxString *arg2 = 0 ;
5944 wxBitmapType arg3 ;
5945 bool result;
5946 void *argp1 = 0 ;
5947 int res1 = 0 ;
5948 bool temp2 = false ;
5949 int val3 ;
5950 int ecode3 = 0 ;
5951 PyObject * obj0 = 0 ;
5952 PyObject * obj1 = 0 ;
5953 PyObject * obj2 = 0 ;
5954 char * kwnames[] = {
5955 (char *) "self",(char *) "name",(char *) "type", NULL
5956 };
5957
5958 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5959 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5960 if (!SWIG_IsOK(res1)) {
5961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
5962 }
5963 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5964 {
5965 arg2 = wxString_in_helper(obj1);
5966 if (arg2 == NULL) SWIG_fail;
5967 temp2 = true;
5968 }
5969 ecode3 = SWIG_AsVal_int(obj2, &val3);
5970 if (!SWIG_IsOK(ecode3)) {
5971 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
5972 }
5973 arg3 = static_cast< wxBitmapType >(val3);
5974 {
5975 PyThreadState* __tstate = wxPyBeginAllowThreads();
5976 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
5977 wxPyEndAllowThreads(__tstate);
5978 if (PyErr_Occurred()) SWIG_fail;
5979 }
5980 {
5981 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5982 }
5983 {
5984 if (temp2)
5985 delete arg2;
5986 }
5987 return resultobj;
5988 fail:
5989 {
5990 if (temp2)
5991 delete arg2;
5992 }
5993 return NULL;
5994 }
5995
5996
5997 SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5998 PyObject *resultobj = 0;
5999 wxBitmap *arg1 = (wxBitmap *) 0 ;
6000 wxPalette *result = 0 ;
6001 void *argp1 = 0 ;
6002 int res1 = 0 ;
6003 PyObject *swig_obj[1] ;
6004
6005 if (!args) SWIG_fail;
6006 swig_obj[0] = args;
6007 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6008 if (!SWIG_IsOK(res1)) {
6009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6010 }
6011 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6012 {
6013 PyThreadState* __tstate = wxPyBeginAllowThreads();
6014 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
6015 wxPyEndAllowThreads(__tstate);
6016 if (PyErr_Occurred()) SWIG_fail;
6017 }
6018 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6019 return resultobj;
6020 fail:
6021 return NULL;
6022 }
6023
6024
6025 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6026 PyObject *resultobj = 0;
6027 wxBitmap *arg1 = (wxBitmap *) 0 ;
6028 wxIcon *arg2 = 0 ;
6029 bool result;
6030 void *argp1 = 0 ;
6031 int res1 = 0 ;
6032 void *argp2 = 0 ;
6033 int res2 = 0 ;
6034 PyObject * obj0 = 0 ;
6035 PyObject * obj1 = 0 ;
6036 char * kwnames[] = {
6037 (char *) "self",(char *) "icon", NULL
6038 };
6039
6040 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6041 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6042 if (!SWIG_IsOK(res1)) {
6043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6044 }
6045 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6046 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6047 if (!SWIG_IsOK(res2)) {
6048 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6049 }
6050 if (!argp2) {
6051 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6052 }
6053 arg2 = reinterpret_cast< wxIcon * >(argp2);
6054 {
6055 PyThreadState* __tstate = wxPyBeginAllowThreads();
6056 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
6057 wxPyEndAllowThreads(__tstate);
6058 if (PyErr_Occurred()) SWIG_fail;
6059 }
6060 {
6061 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6062 }
6063 return resultobj;
6064 fail:
6065 return NULL;
6066 }
6067
6068
6069 SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6070 PyObject *resultobj = 0;
6071 wxBitmap *arg1 = (wxBitmap *) 0 ;
6072 int arg2 ;
6073 void *argp1 = 0 ;
6074 int res1 = 0 ;
6075 int val2 ;
6076 int ecode2 = 0 ;
6077 PyObject * obj0 = 0 ;
6078 PyObject * obj1 = 0 ;
6079 char * kwnames[] = {
6080 (char *) "self",(char *) "height", NULL
6081 };
6082
6083 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6084 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6085 if (!SWIG_IsOK(res1)) {
6086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6087 }
6088 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6089 ecode2 = SWIG_AsVal_int(obj1, &val2);
6090 if (!SWIG_IsOK(ecode2)) {
6091 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6092 }
6093 arg2 = static_cast< int >(val2);
6094 {
6095 PyThreadState* __tstate = wxPyBeginAllowThreads();
6096 (arg1)->SetHeight(arg2);
6097 wxPyEndAllowThreads(__tstate);
6098 if (PyErr_Occurred()) SWIG_fail;
6099 }
6100 resultobj = SWIG_Py_Void();
6101 return resultobj;
6102 fail:
6103 return NULL;
6104 }
6105
6106
6107 SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6108 PyObject *resultobj = 0;
6109 wxBitmap *arg1 = (wxBitmap *) 0 ;
6110 int arg2 ;
6111 void *argp1 = 0 ;
6112 int res1 = 0 ;
6113 int val2 ;
6114 int ecode2 = 0 ;
6115 PyObject * obj0 = 0 ;
6116 PyObject * obj1 = 0 ;
6117 char * kwnames[] = {
6118 (char *) "self",(char *) "width", NULL
6119 };
6120
6121 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6122 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6123 if (!SWIG_IsOK(res1)) {
6124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6125 }
6126 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6127 ecode2 = SWIG_AsVal_int(obj1, &val2);
6128 if (!SWIG_IsOK(ecode2)) {
6129 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6130 }
6131 arg2 = static_cast< int >(val2);
6132 {
6133 PyThreadState* __tstate = wxPyBeginAllowThreads();
6134 (arg1)->SetWidth(arg2);
6135 wxPyEndAllowThreads(__tstate);
6136 if (PyErr_Occurred()) SWIG_fail;
6137 }
6138 resultobj = SWIG_Py_Void();
6139 return resultobj;
6140 fail:
6141 return NULL;
6142 }
6143
6144
6145 SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6146 PyObject *resultobj = 0;
6147 wxBitmap *arg1 = (wxBitmap *) 0 ;
6148 int arg2 ;
6149 void *argp1 = 0 ;
6150 int res1 = 0 ;
6151 int val2 ;
6152 int ecode2 = 0 ;
6153 PyObject * obj0 = 0 ;
6154 PyObject * obj1 = 0 ;
6155 char * kwnames[] = {
6156 (char *) "self",(char *) "depth", NULL
6157 };
6158
6159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6160 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6161 if (!SWIG_IsOK(res1)) {
6162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6163 }
6164 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6165 ecode2 = SWIG_AsVal_int(obj1, &val2);
6166 if (!SWIG_IsOK(ecode2)) {
6167 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6168 }
6169 arg2 = static_cast< int >(val2);
6170 {
6171 PyThreadState* __tstate = wxPyBeginAllowThreads();
6172 (arg1)->SetDepth(arg2);
6173 wxPyEndAllowThreads(__tstate);
6174 if (PyErr_Occurred()) SWIG_fail;
6175 }
6176 resultobj = SWIG_Py_Void();
6177 return resultobj;
6178 fail:
6179 return NULL;
6180 }
6181
6182
6183 SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6184 PyObject *resultobj = 0;
6185 wxBitmap *arg1 = (wxBitmap *) 0 ;
6186 wxSize *arg2 = 0 ;
6187 void *argp1 = 0 ;
6188 int res1 = 0 ;
6189 wxSize temp2 ;
6190 PyObject * obj0 = 0 ;
6191 PyObject * obj1 = 0 ;
6192 char * kwnames[] = {
6193 (char *) "self",(char *) "size", NULL
6194 };
6195
6196 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
6197 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6198 if (!SWIG_IsOK(res1)) {
6199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6200 }
6201 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6202 {
6203 arg2 = &temp2;
6204 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6205 }
6206 {
6207 PyThreadState* __tstate = wxPyBeginAllowThreads();
6208 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
6209 wxPyEndAllowThreads(__tstate);
6210 if (PyErr_Occurred()) SWIG_fail;
6211 }
6212 resultobj = SWIG_Py_Void();
6213 return resultobj;
6214 fail:
6215 return NULL;
6216 }
6217
6218
6219 SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6220 PyObject *resultobj = 0;
6221 wxBitmap *arg1 = (wxBitmap *) 0 ;
6222 wxBitmap *arg2 = (wxBitmap *) 0 ;
6223 bool result;
6224 void *argp1 = 0 ;
6225 int res1 = 0 ;
6226 void *argp2 = 0 ;
6227 int res2 = 0 ;
6228 PyObject * obj0 = 0 ;
6229 PyObject * obj1 = 0 ;
6230 char * kwnames[] = {
6231 (char *) "self",(char *) "other", NULL
6232 };
6233
6234 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
6235 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6236 if (!SWIG_IsOK(res1)) {
6237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6238 }
6239 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6240 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6241 if (!SWIG_IsOK(res2)) {
6242 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6243 }
6244 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6245 {
6246 PyThreadState* __tstate = wxPyBeginAllowThreads();
6247 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
6248 wxPyEndAllowThreads(__tstate);
6249 if (PyErr_Occurred()) SWIG_fail;
6250 }
6251 {
6252 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6253 }
6254 return resultobj;
6255 fail:
6256 return NULL;
6257 }
6258
6259
6260 SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6261 PyObject *resultobj = 0;
6262 wxBitmap *arg1 = (wxBitmap *) 0 ;
6263 wxBitmap *arg2 = (wxBitmap *) 0 ;
6264 bool result;
6265 void *argp1 = 0 ;
6266 int res1 = 0 ;
6267 void *argp2 = 0 ;
6268 int res2 = 0 ;
6269 PyObject * obj0 = 0 ;
6270 PyObject * obj1 = 0 ;
6271 char * kwnames[] = {
6272 (char *) "self",(char *) "other", NULL
6273 };
6274
6275 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
6276 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6277 if (!SWIG_IsOK(res1)) {
6278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6279 }
6280 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6281 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6282 if (!SWIG_IsOK(res2)) {
6283 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6284 }
6285 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6286 {
6287 PyThreadState* __tstate = wxPyBeginAllowThreads();
6288 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
6289 wxPyEndAllowThreads(__tstate);
6290 if (PyErr_Occurred()) SWIG_fail;
6291 }
6292 {
6293 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6294 }
6295 return resultobj;
6296 fail:
6297 return NULL;
6298 }
6299
6300
6301 SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6302 PyObject *obj;
6303 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6304 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
6305 return SWIG_Py_Void();
6306 }
6307
6308 SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6309 return SWIG_Python_InitShadowInstance(args);
6310 }
6311
6312 SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6313 PyObject *resultobj = 0;
6314 wxBitmap *arg1 = 0 ;
6315 wxColour const &arg2_defvalue = wxNullColour ;
6316 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
6317 wxMask *result = 0 ;
6318 void *argp1 = 0 ;
6319 int res1 = 0 ;
6320 wxColour temp2 ;
6321 PyObject * obj0 = 0 ;
6322 PyObject * obj1 = 0 ;
6323 char * kwnames[] = {
6324 (char *) "bitmap",(char *) "colour", NULL
6325 };
6326
6327 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
6328 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
6329 if (!SWIG_IsOK(res1)) {
6330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
6331 }
6332 if (!argp1) {
6333 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
6334 }
6335 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6336 if (obj1) {
6337 {
6338 arg2 = &temp2;
6339 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6340 }
6341 }
6342 {
6343 if (!wxPyCheckForApp()) SWIG_fail;
6344 PyThreadState* __tstate = wxPyBeginAllowThreads();
6345 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
6346 wxPyEndAllowThreads(__tstate);
6347 if (PyErr_Occurred()) SWIG_fail;
6348 }
6349 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
6350 return resultobj;
6351 fail:
6352 return NULL;
6353 }
6354
6355
6356 SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6357 PyObject *resultobj = 0;
6358 wxMask *arg1 = (wxMask *) 0 ;
6359 void *argp1 = 0 ;
6360 int res1 = 0 ;
6361 PyObject *swig_obj[1] ;
6362
6363 if (!args) SWIG_fail;
6364 swig_obj[0] = args;
6365 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6366 if (!SWIG_IsOK(res1)) {
6367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
6368 }
6369 arg1 = reinterpret_cast< wxMask * >(argp1);
6370 {
6371 PyThreadState* __tstate = wxPyBeginAllowThreads();
6372 delete arg1;
6373
6374 wxPyEndAllowThreads(__tstate);
6375 if (PyErr_Occurred()) SWIG_fail;
6376 }
6377 resultobj = SWIG_Py_Void();
6378 return resultobj;
6379 fail:
6380 return NULL;
6381 }
6382
6383
6384 SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6385 PyObject *obj;
6386 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6387 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
6388 return SWIG_Py_Void();
6389 }
6390
6391 SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6392 return SWIG_Python_InitShadowInstance(args);
6393 }
6394
6395 SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6396 PyObject *resultobj = 0;
6397 wxString *arg1 = 0 ;
6398 wxBitmapType arg2 ;
6399 int arg3 = (int) -1 ;
6400 int arg4 = (int) -1 ;
6401 wxIcon *result = 0 ;
6402 bool temp1 = false ;
6403 int val2 ;
6404 int ecode2 = 0 ;
6405 int val3 ;
6406 int ecode3 = 0 ;
6407 int val4 ;
6408 int ecode4 = 0 ;
6409 PyObject * obj0 = 0 ;
6410 PyObject * obj1 = 0 ;
6411 PyObject * obj2 = 0 ;
6412 PyObject * obj3 = 0 ;
6413 char * kwnames[] = {
6414 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
6415 };
6416
6417 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6418 {
6419 arg1 = wxString_in_helper(obj0);
6420 if (arg1 == NULL) SWIG_fail;
6421 temp1 = true;
6422 }
6423 ecode2 = SWIG_AsVal_int(obj1, &val2);
6424 if (!SWIG_IsOK(ecode2)) {
6425 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
6426 }
6427 arg2 = static_cast< wxBitmapType >(val2);
6428 if (obj2) {
6429 ecode3 = SWIG_AsVal_int(obj2, &val3);
6430 if (!SWIG_IsOK(ecode3)) {
6431 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
6432 }
6433 arg3 = static_cast< int >(val3);
6434 }
6435 if (obj3) {
6436 ecode4 = SWIG_AsVal_int(obj3, &val4);
6437 if (!SWIG_IsOK(ecode4)) {
6438 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
6439 }
6440 arg4 = static_cast< int >(val4);
6441 }
6442 {
6443 if (!wxPyCheckForApp()) SWIG_fail;
6444 PyThreadState* __tstate = wxPyBeginAllowThreads();
6445 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
6446 wxPyEndAllowThreads(__tstate);
6447 if (PyErr_Occurred()) SWIG_fail;
6448 }
6449 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
6450 {
6451 if (temp1)
6452 delete arg1;
6453 }
6454 return resultobj;
6455 fail:
6456 {
6457 if (temp1)
6458 delete arg1;
6459 }
6460 return NULL;
6461 }
6462
6463
6464 SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6465 PyObject *resultobj = 0;
6466 wxIcon *arg1 = (wxIcon *) 0 ;
6467 void *argp1 = 0 ;
6468 int res1 = 0 ;
6469 PyObject *swig_obj[1] ;
6470
6471 if (!args) SWIG_fail;
6472 swig_obj[0] = args;
6473 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
6474 if (!SWIG_IsOK(res1)) {
6475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
6476 }
6477 arg1 = reinterpret_cast< wxIcon * >(argp1);
6478 {
6479 PyThreadState* __tstate = wxPyBeginAllowThreads();
6480 delete arg1;
6481
6482 wxPyEndAllowThreads(__tstate);
6483 if (PyErr_Occurred()) SWIG_fail;
6484 }
6485 resultobj = SWIG_Py_Void();
6486 return resultobj;
6487 fail:
6488 return NULL;
6489 }
6490
6491
6492 SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6493 PyObject *resultobj = 0;
6494 wxIcon *result = 0 ;
6495
6496 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
6497 {
6498 if (!wxPyCheckForApp()) SWIG_fail;
6499 PyThreadState* __tstate = wxPyBeginAllowThreads();
6500 result = (wxIcon *)new wxIcon();
6501 wxPyEndAllowThreads(__tstate);
6502 if (PyErr_Occurred()) SWIG_fail;
6503 }
6504 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
6505 return resultobj;
6506 fail:
6507 return NULL;
6508 }
6509
6510
6511 SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6512 PyObject *resultobj = 0;
6513 wxIconLocation *arg1 = 0 ;
6514 wxIcon *result = 0 ;
6515 void *argp1 = 0 ;
6516 int res1 = 0 ;
6517 PyObject * obj0 = 0 ;
6518 char * kwnames[] = {
6519 (char *) "loc", NULL
6520 };
6521
6522 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
6523 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
6524 if (!SWIG_IsOK(res1)) {
6525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
6526 }
6527 if (!argp1) {
6528 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
6529 }
6530 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
6531 {
6532 if (!wxPyCheckForApp()) SWIG_fail;
6533 PyThreadState* __tstate = wxPyBeginAllowThreads();
6534 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
6535 wxPyEndAllowThreads(__tstate);
6536 if (PyErr_Occurred()) SWIG_fail;
6537 }
6538 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
6539 return resultobj;
6540 fail:
6541 return NULL;
6542 }
6543
6544
6545 SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6546 PyObject *resultobj = 0;
6547 wxBitmap *arg1 = 0 ;
6548 wxIcon *result = 0 ;
6549 void *argp1 = 0 ;
6550 int res1 = 0 ;
6551 PyObject * obj0 = 0 ;
6552 char * kwnames[] = {
6553 (char *) "bmp", NULL
6554 };
6555
6556 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
6557 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
6558 if (!SWIG_IsOK(res1)) {
6559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
6560 }
6561 if (!argp1) {
6562 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
6563 }
6564 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6565 {
6566 if (!wxPyCheckForApp()) SWIG_fail;
6567 PyThreadState* __tstate = wxPyBeginAllowThreads();
6568 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
6569 wxPyEndAllowThreads(__tstate);
6570 if (PyErr_Occurred()) SWIG_fail;
6571 }
6572 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
6573 return resultobj;
6574 fail:
6575 return NULL;
6576 }
6577
6578
6579 SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6580 PyObject *resultobj = 0;
6581 PyObject *arg1 = (PyObject *) 0 ;
6582 wxIcon *result = 0 ;
6583 PyObject * obj0 = 0 ;
6584 char * kwnames[] = {
6585 (char *) "listOfStrings", NULL
6586 };
6587
6588 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
6589 arg1 = obj0;
6590 {
6591 if (!wxPyCheckForApp()) SWIG_fail;
6592 PyThreadState* __tstate = wxPyBeginAllowThreads();
6593 result = (wxIcon *)new_wxIcon(arg1);
6594 wxPyEndAllowThreads(__tstate);
6595 if (PyErr_Occurred()) SWIG_fail;
6596 }
6597 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
6598 return resultobj;
6599 fail:
6600 return NULL;
6601 }
6602
6603
6604 SWIGINTERN PyObject *_wrap_Icon_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6605 PyObject *resultobj = 0;
6606 wxIcon *arg1 = (wxIcon *) 0 ;
6607 wxString *arg2 = 0 ;
6608 wxBitmapType arg3 ;
6609 bool result;
6610 void *argp1 = 0 ;
6611 int res1 = 0 ;
6612 bool temp2 = false ;
6613 int val3 ;
6614 int ecode3 = 0 ;
6615 PyObject * obj0 = 0 ;
6616 PyObject * obj1 = 0 ;
6617 PyObject * obj2 = 0 ;
6618 char * kwnames[] = {
6619 (char *) "self",(char *) "name",(char *) "type", NULL
6620 };
6621
6622 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6623 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6624 if (!SWIG_IsOK(res1)) {
6625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_LoadFile" "', expected argument " "1"" of type '" "wxIcon *""'");
6626 }
6627 arg1 = reinterpret_cast< wxIcon * >(argp1);
6628 {
6629 arg2 = wxString_in_helper(obj1);
6630 if (arg2 == NULL) SWIG_fail;
6631 temp2 = true;
6632 }
6633 ecode3 = SWIG_AsVal_int(obj2, &val3);
6634 if (!SWIG_IsOK(ecode3)) {
6635 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Icon_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6636 }
6637 arg3 = static_cast< wxBitmapType >(val3);
6638 {
6639 PyThreadState* __tstate = wxPyBeginAllowThreads();
6640 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
6641 wxPyEndAllowThreads(__tstate);
6642 if (PyErr_Occurred()) SWIG_fail;
6643 }
6644 {
6645 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6646 }
6647 {
6648 if (temp2)
6649 delete arg2;
6650 }
6651 return resultobj;
6652 fail:
6653 {
6654 if (temp2)
6655 delete arg2;
6656 }
6657 return NULL;
6658 }
6659
6660
6661 SWIGINTERN PyObject *_wrap_Icon_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6662 PyObject *resultobj = 0;
6663 wxIcon *arg1 = (wxIcon *) 0 ;
6664 bool result;
6665 void *argp1 = 0 ;
6666 int res1 = 0 ;
6667 PyObject *swig_obj[1] ;
6668
6669 if (!args) SWIG_fail;
6670 swig_obj[0] = args;
6671 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6672 if (!SWIG_IsOK(res1)) {
6673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_Ok" "', expected argument " "1"" of type '" "wxIcon *""'");
6674 }
6675 arg1 = reinterpret_cast< wxIcon * >(argp1);
6676 {
6677 PyThreadState* __tstate = wxPyBeginAllowThreads();
6678 result = (bool)(arg1)->Ok();
6679 wxPyEndAllowThreads(__tstate);
6680 if (PyErr_Occurred()) SWIG_fail;
6681 }
6682 {
6683 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6684 }
6685 return resultobj;
6686 fail:
6687 return NULL;
6688 }
6689
6690
6691 SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6692 PyObject *resultobj = 0;
6693 wxIcon *arg1 = (wxIcon *) 0 ;
6694 int result;
6695 void *argp1 = 0 ;
6696 int res1 = 0 ;
6697 PyObject *swig_obj[1] ;
6698
6699 if (!args) SWIG_fail;
6700 swig_obj[0] = args;
6701 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6702 if (!SWIG_IsOK(res1)) {
6703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
6704 }
6705 arg1 = reinterpret_cast< wxIcon * >(argp1);
6706 {
6707 PyThreadState* __tstate = wxPyBeginAllowThreads();
6708 result = (int)(arg1)->GetWidth();
6709 wxPyEndAllowThreads(__tstate);
6710 if (PyErr_Occurred()) SWIG_fail;
6711 }
6712 resultobj = SWIG_From_int(static_cast< int >(result));
6713 return resultobj;
6714 fail:
6715 return NULL;
6716 }
6717
6718
6719 SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6720 PyObject *resultobj = 0;
6721 wxIcon *arg1 = (wxIcon *) 0 ;
6722 int result;
6723 void *argp1 = 0 ;
6724 int res1 = 0 ;
6725 PyObject *swig_obj[1] ;
6726
6727 if (!args) SWIG_fail;
6728 swig_obj[0] = args;
6729 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6730 if (!SWIG_IsOK(res1)) {
6731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
6732 }
6733 arg1 = reinterpret_cast< wxIcon * >(argp1);
6734 {
6735 PyThreadState* __tstate = wxPyBeginAllowThreads();
6736 result = (int)(arg1)->GetHeight();
6737 wxPyEndAllowThreads(__tstate);
6738 if (PyErr_Occurred()) SWIG_fail;
6739 }
6740 resultobj = SWIG_From_int(static_cast< int >(result));
6741 return resultobj;
6742 fail:
6743 return NULL;
6744 }
6745
6746
6747 SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6748 PyObject *resultobj = 0;
6749 wxIcon *arg1 = (wxIcon *) 0 ;
6750 int result;
6751 void *argp1 = 0 ;
6752 int res1 = 0 ;
6753 PyObject *swig_obj[1] ;
6754
6755 if (!args) SWIG_fail;
6756 swig_obj[0] = args;
6757 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6758 if (!SWIG_IsOK(res1)) {
6759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
6760 }
6761 arg1 = reinterpret_cast< wxIcon * >(argp1);
6762 {
6763 PyThreadState* __tstate = wxPyBeginAllowThreads();
6764 result = (int)(arg1)->GetDepth();
6765 wxPyEndAllowThreads(__tstate);
6766 if (PyErr_Occurred()) SWIG_fail;
6767 }
6768 resultobj = SWIG_From_int(static_cast< int >(result));
6769 return resultobj;
6770 fail:
6771 return NULL;
6772 }
6773
6774
6775 SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6776 PyObject *resultobj = 0;
6777 wxIcon *arg1 = (wxIcon *) 0 ;
6778 int arg2 ;
6779 void *argp1 = 0 ;
6780 int res1 = 0 ;
6781 int val2 ;
6782 int ecode2 = 0 ;
6783 PyObject * obj0 = 0 ;
6784 PyObject * obj1 = 0 ;
6785 char * kwnames[] = {
6786 (char *) "self",(char *) "w", NULL
6787 };
6788
6789 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6790 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6791 if (!SWIG_IsOK(res1)) {
6792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
6793 }
6794 arg1 = reinterpret_cast< wxIcon * >(argp1);
6795 ecode2 = SWIG_AsVal_int(obj1, &val2);
6796 if (!SWIG_IsOK(ecode2)) {
6797 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
6798 }
6799 arg2 = static_cast< int >(val2);
6800 {
6801 PyThreadState* __tstate = wxPyBeginAllowThreads();
6802 (arg1)->SetWidth(arg2);
6803 wxPyEndAllowThreads(__tstate);
6804 if (PyErr_Occurred()) SWIG_fail;
6805 }
6806 resultobj = SWIG_Py_Void();
6807 return resultobj;
6808 fail:
6809 return NULL;
6810 }
6811
6812
6813 SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6814 PyObject *resultobj = 0;
6815 wxIcon *arg1 = (wxIcon *) 0 ;
6816 int arg2 ;
6817 void *argp1 = 0 ;
6818 int res1 = 0 ;
6819 int val2 ;
6820 int ecode2 = 0 ;
6821 PyObject * obj0 = 0 ;
6822 PyObject * obj1 = 0 ;
6823 char * kwnames[] = {
6824 (char *) "self",(char *) "h", NULL
6825 };
6826
6827 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6828 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6829 if (!SWIG_IsOK(res1)) {
6830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
6831 }
6832 arg1 = reinterpret_cast< wxIcon * >(argp1);
6833 ecode2 = SWIG_AsVal_int(obj1, &val2);
6834 if (!SWIG_IsOK(ecode2)) {
6835 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
6836 }
6837 arg2 = static_cast< int >(val2);
6838 {
6839 PyThreadState* __tstate = wxPyBeginAllowThreads();
6840 (arg1)->SetHeight(arg2);
6841 wxPyEndAllowThreads(__tstate);
6842 if (PyErr_Occurred()) SWIG_fail;
6843 }
6844 resultobj = SWIG_Py_Void();
6845 return resultobj;
6846 fail:
6847 return NULL;
6848 }
6849
6850
6851 SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6852 PyObject *resultobj = 0;
6853 wxIcon *arg1 = (wxIcon *) 0 ;
6854 int arg2 ;
6855 void *argp1 = 0 ;
6856 int res1 = 0 ;
6857 int val2 ;
6858 int ecode2 = 0 ;
6859 PyObject * obj0 = 0 ;
6860 PyObject * obj1 = 0 ;
6861 char * kwnames[] = {
6862 (char *) "self",(char *) "d", NULL
6863 };
6864
6865 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6866 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6867 if (!SWIG_IsOK(res1)) {
6868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
6869 }
6870 arg1 = reinterpret_cast< wxIcon * >(argp1);
6871 ecode2 = SWIG_AsVal_int(obj1, &val2);
6872 if (!SWIG_IsOK(ecode2)) {
6873 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
6874 }
6875 arg2 = static_cast< int >(val2);
6876 {
6877 PyThreadState* __tstate = wxPyBeginAllowThreads();
6878 (arg1)->SetDepth(arg2);
6879 wxPyEndAllowThreads(__tstate);
6880 if (PyErr_Occurred()) SWIG_fail;
6881 }
6882 resultobj = SWIG_Py_Void();
6883 return resultobj;
6884 fail:
6885 return NULL;
6886 }
6887
6888
6889 SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6890 PyObject *resultobj = 0;
6891 wxIcon *arg1 = (wxIcon *) 0 ;
6892 wxBitmap *arg2 = 0 ;
6893 void *argp1 = 0 ;
6894 int res1 = 0 ;
6895 void *argp2 = 0 ;
6896 int res2 = 0 ;
6897 PyObject * obj0 = 0 ;
6898 PyObject * obj1 = 0 ;
6899 char * kwnames[] = {
6900 (char *) "self",(char *) "bmp", NULL
6901 };
6902
6903 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6904 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6905 if (!SWIG_IsOK(res1)) {
6906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
6907 }
6908 arg1 = reinterpret_cast< wxIcon * >(argp1);
6909 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
6910 if (!SWIG_IsOK(res2)) {
6911 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
6912 }
6913 if (!argp2) {
6914 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
6915 }
6916 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6917 {
6918 PyThreadState* __tstate = wxPyBeginAllowThreads();
6919 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
6920 wxPyEndAllowThreads(__tstate);
6921 if (PyErr_Occurred()) SWIG_fail;
6922 }
6923 resultobj = SWIG_Py_Void();
6924 return resultobj;
6925 fail:
6926 return NULL;
6927 }
6928
6929
6930 SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6931 PyObject *obj;
6932 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6933 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
6934 return SWIG_Py_Void();
6935 }
6936
6937 SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6938 return SWIG_Python_InitShadowInstance(args);
6939 }
6940
6941 SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6942 PyObject *resultobj = 0;
6943 wxString *arg1 = (wxString *) &wxPyEmptyString ;
6944 int arg2 = (int) 0 ;
6945 wxIconLocation *result = 0 ;
6946 bool temp1 = false ;
6947 int val2 ;
6948 int ecode2 = 0 ;
6949 PyObject * obj0 = 0 ;
6950 PyObject * obj1 = 0 ;
6951 char * kwnames[] = {
6952 (char *) "filename",(char *) "num", NULL
6953 };
6954
6955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
6956 if (obj0) {
6957 {
6958 arg1 = wxString_in_helper(obj0);
6959 if (arg1 == NULL) SWIG_fail;
6960 temp1 = true;
6961 }
6962 }
6963 if (obj1) {
6964 ecode2 = SWIG_AsVal_int(obj1, &val2);
6965 if (!SWIG_IsOK(ecode2)) {
6966 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
6967 }
6968 arg2 = static_cast< int >(val2);
6969 }
6970 {
6971 PyThreadState* __tstate = wxPyBeginAllowThreads();
6972 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
6973 wxPyEndAllowThreads(__tstate);
6974 if (PyErr_Occurred()) SWIG_fail;
6975 }
6976 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
6977 {
6978 if (temp1)
6979 delete arg1;
6980 }
6981 return resultobj;
6982 fail:
6983 {
6984 if (temp1)
6985 delete arg1;
6986 }
6987 return NULL;
6988 }
6989
6990
6991 SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6992 PyObject *resultobj = 0;
6993 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
6994 void *argp1 = 0 ;
6995 int res1 = 0 ;
6996 PyObject *swig_obj[1] ;
6997
6998 if (!args) SWIG_fail;
6999 swig_obj[0] = args;
7000 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
7001 if (!SWIG_IsOK(res1)) {
7002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
7003 }
7004 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7005 {
7006 PyThreadState* __tstate = wxPyBeginAllowThreads();
7007 delete arg1;
7008
7009 wxPyEndAllowThreads(__tstate);
7010 if (PyErr_Occurred()) SWIG_fail;
7011 }
7012 resultobj = SWIG_Py_Void();
7013 return resultobj;
7014 fail:
7015 return NULL;
7016 }
7017
7018
7019 SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7020 PyObject *resultobj = 0;
7021 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7022 bool result;
7023 void *argp1 = 0 ;
7024 int res1 = 0 ;
7025 PyObject *swig_obj[1] ;
7026
7027 if (!args) SWIG_fail;
7028 swig_obj[0] = args;
7029 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7030 if (!SWIG_IsOK(res1)) {
7031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
7032 }
7033 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7034 {
7035 PyThreadState* __tstate = wxPyBeginAllowThreads();
7036 result = (bool)((wxIconLocation const *)arg1)->IsOk();
7037 wxPyEndAllowThreads(__tstate);
7038 if (PyErr_Occurred()) SWIG_fail;
7039 }
7040 {
7041 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7042 }
7043 return resultobj;
7044 fail:
7045 return NULL;
7046 }
7047
7048
7049 SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7050 PyObject *resultobj = 0;
7051 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7052 wxString *arg2 = 0 ;
7053 void *argp1 = 0 ;
7054 int res1 = 0 ;
7055 bool temp2 = false ;
7056 PyObject * obj0 = 0 ;
7057 PyObject * obj1 = 0 ;
7058 char * kwnames[] = {
7059 (char *) "self",(char *) "filename", NULL
7060 };
7061
7062 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
7063 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7064 if (!SWIG_IsOK(res1)) {
7065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
7066 }
7067 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7068 {
7069 arg2 = wxString_in_helper(obj1);
7070 if (arg2 == NULL) SWIG_fail;
7071 temp2 = true;
7072 }
7073 {
7074 PyThreadState* __tstate = wxPyBeginAllowThreads();
7075 (arg1)->SetFileName((wxString const &)*arg2);
7076 wxPyEndAllowThreads(__tstate);
7077 if (PyErr_Occurred()) SWIG_fail;
7078 }
7079 resultobj = SWIG_Py_Void();
7080 {
7081 if (temp2)
7082 delete arg2;
7083 }
7084 return resultobj;
7085 fail:
7086 {
7087 if (temp2)
7088 delete arg2;
7089 }
7090 return NULL;
7091 }
7092
7093
7094 SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7095 PyObject *resultobj = 0;
7096 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7097 wxString *result = 0 ;
7098 void *argp1 = 0 ;
7099 int res1 = 0 ;
7100 PyObject *swig_obj[1] ;
7101
7102 if (!args) SWIG_fail;
7103 swig_obj[0] = args;
7104 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7105 if (!SWIG_IsOK(res1)) {
7106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
7107 }
7108 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7109 {
7110 PyThreadState* __tstate = wxPyBeginAllowThreads();
7111 {
7112 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
7113 result = (wxString *) &_result_ref;
7114 }
7115 wxPyEndAllowThreads(__tstate);
7116 if (PyErr_Occurred()) SWIG_fail;
7117 }
7118 {
7119 #if wxUSE_UNICODE
7120 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
7121 #else
7122 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
7123 #endif
7124 }
7125 return resultobj;
7126 fail:
7127 return NULL;
7128 }
7129
7130
7131 SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7132 PyObject *resultobj = 0;
7133 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7134 int arg2 ;
7135 void *argp1 = 0 ;
7136 int res1 = 0 ;
7137 int val2 ;
7138 int ecode2 = 0 ;
7139 PyObject * obj0 = 0 ;
7140 PyObject * obj1 = 0 ;
7141 char * kwnames[] = {
7142 (char *) "self",(char *) "num", NULL
7143 };
7144
7145 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
7146 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7147 if (!SWIG_IsOK(res1)) {
7148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
7149 }
7150 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7151 ecode2 = SWIG_AsVal_int(obj1, &val2);
7152 if (!SWIG_IsOK(ecode2)) {
7153 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
7154 }
7155 arg2 = static_cast< int >(val2);
7156 {
7157 PyThreadState* __tstate = wxPyBeginAllowThreads();
7158 wxIconLocation_SetIndex(arg1,arg2);
7159 wxPyEndAllowThreads(__tstate);
7160 if (PyErr_Occurred()) SWIG_fail;
7161 }
7162 resultobj = SWIG_Py_Void();
7163 return resultobj;
7164 fail:
7165 return NULL;
7166 }
7167
7168
7169 SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7170 PyObject *resultobj = 0;
7171 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7172 int result;
7173 void *argp1 = 0 ;
7174 int res1 = 0 ;
7175 PyObject *swig_obj[1] ;
7176
7177 if (!args) SWIG_fail;
7178 swig_obj[0] = args;
7179 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7180 if (!SWIG_IsOK(res1)) {
7181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
7182 }
7183 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7184 {
7185 PyThreadState* __tstate = wxPyBeginAllowThreads();
7186 result = (int)wxIconLocation_GetIndex(arg1);
7187 wxPyEndAllowThreads(__tstate);
7188 if (PyErr_Occurred()) SWIG_fail;
7189 }
7190 resultobj = SWIG_From_int(static_cast< int >(result));
7191 return resultobj;
7192 fail:
7193 return NULL;
7194 }
7195
7196
7197 SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7198 PyObject *obj;
7199 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7200 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
7201 return SWIG_Py_Void();
7202 }
7203
7204 SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7205 return SWIG_Python_InitShadowInstance(args);
7206 }
7207
7208 SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7209 PyObject *resultobj = 0;
7210 wxIconBundle *result = 0 ;
7211
7212 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
7213 {
7214 PyThreadState* __tstate = wxPyBeginAllowThreads();
7215 result = (wxIconBundle *)new wxIconBundle();
7216 wxPyEndAllowThreads(__tstate);
7217 if (PyErr_Occurred()) SWIG_fail;
7218 }
7219 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
7220 return resultobj;
7221 fail:
7222 return NULL;
7223 }
7224
7225
7226 SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7227 PyObject *resultobj = 0;
7228 wxString *arg1 = 0 ;
7229 long arg2 ;
7230 wxIconBundle *result = 0 ;
7231 bool temp1 = false ;
7232 long val2 ;
7233 int ecode2 = 0 ;
7234 PyObject * obj0 = 0 ;
7235 PyObject * obj1 = 0 ;
7236 char * kwnames[] = {
7237 (char *) "file",(char *) "type", NULL
7238 };
7239
7240 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
7241 {
7242 arg1 = wxString_in_helper(obj0);
7243 if (arg1 == NULL) SWIG_fail;
7244 temp1 = true;
7245 }
7246 ecode2 = SWIG_AsVal_long(obj1, &val2);
7247 if (!SWIG_IsOK(ecode2)) {
7248 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
7249 }
7250 arg2 = static_cast< long >(val2);
7251 {
7252 PyThreadState* __tstate = wxPyBeginAllowThreads();
7253 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
7254 wxPyEndAllowThreads(__tstate);
7255 if (PyErr_Occurred()) SWIG_fail;
7256 }
7257 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
7258 {
7259 if (temp1)
7260 delete arg1;
7261 }
7262 return resultobj;
7263 fail:
7264 {
7265 if (temp1)
7266 delete arg1;
7267 }
7268 return NULL;
7269 }
7270
7271
7272 SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7273 PyObject *resultobj = 0;
7274 wxIcon *arg1 = 0 ;
7275 wxIconBundle *result = 0 ;
7276 void *argp1 = 0 ;
7277 int res1 = 0 ;
7278 PyObject * obj0 = 0 ;
7279 char * kwnames[] = {
7280 (char *) "icon", NULL
7281 };
7282
7283 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
7284 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
7285 if (!SWIG_IsOK(res1)) {
7286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
7287 }
7288 if (!argp1) {
7289 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
7290 }
7291 arg1 = reinterpret_cast< wxIcon * >(argp1);
7292 {
7293 PyThreadState* __tstate = wxPyBeginAllowThreads();
7294 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
7295 wxPyEndAllowThreads(__tstate);
7296 if (PyErr_Occurred()) SWIG_fail;
7297 }
7298 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
7299 return resultobj;
7300 fail:
7301 return NULL;
7302 }
7303
7304
7305 SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7306 PyObject *resultobj = 0;
7307 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
7308 void *argp1 = 0 ;
7309 int res1 = 0 ;
7310 PyObject *swig_obj[1] ;
7311
7312 if (!args) SWIG_fail;
7313 swig_obj[0] = args;
7314 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
7315 if (!SWIG_IsOK(res1)) {
7316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
7317 }
7318 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
7319 {
7320 PyThreadState* __tstate = wxPyBeginAllowThreads();
7321 delete arg1;
7322
7323 wxPyEndAllowThreads(__tstate);
7324 if (PyErr_Occurred()) SWIG_fail;
7325 }
7326 resultobj = SWIG_Py_Void();
7327 return resultobj;
7328 fail:
7329 return NULL;
7330 }
7331
7332
7333 SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7334 PyObject *resultobj = 0;
7335 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
7336 wxIcon *arg2 = 0 ;
7337 void *argp1 = 0 ;
7338 int res1 = 0 ;
7339 void *argp2 = 0 ;
7340 int res2 = 0 ;
7341 PyObject * obj0 = 0 ;
7342 PyObject * obj1 = 0 ;
7343 char * kwnames[] = {
7344 (char *) "self",(char *) "icon", NULL
7345 };
7346
7347 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
7348 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
7349 if (!SWIG_IsOK(res1)) {
7350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
7351 }
7352 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
7353 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
7354 if (!SWIG_IsOK(res2)) {
7355 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
7356 }
7357 if (!argp2) {
7358 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
7359 }
7360 arg2 = reinterpret_cast< wxIcon * >(argp2);
7361 {
7362 PyThreadState* __tstate = wxPyBeginAllowThreads();
7363 (arg1)->AddIcon((wxIcon const &)*arg2);
7364 wxPyEndAllowThreads(__tstate);
7365 if (PyErr_Occurred()) SWIG_fail;
7366 }
7367 resultobj = SWIG_Py_Void();
7368 return resultobj;
7369 fail:
7370 return NULL;
7371 }
7372
7373
7374 SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7375 PyObject *resultobj = 0;
7376 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
7377 wxString *arg2 = 0 ;
7378 long arg3 ;
7379 void *argp1 = 0 ;
7380 int res1 = 0 ;
7381 bool temp2 = false ;
7382 long val3 ;
7383 int ecode3 = 0 ;
7384 PyObject * obj0 = 0 ;
7385 PyObject * obj1 = 0 ;
7386 PyObject * obj2 = 0 ;
7387 char * kwnames[] = {
7388 (char *) "self",(char *) "file",(char *) "type", NULL
7389 };
7390
7391 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7392 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
7393 if (!SWIG_IsOK(res1)) {
7394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
7395 }
7396 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
7397 {
7398 arg2 = wxString_in_helper(obj1);
7399 if (arg2 == NULL) SWIG_fail;
7400 temp2 = true;
7401 }
7402 ecode3 = SWIG_AsVal_long(obj2, &val3);
7403 if (!SWIG_IsOK(ecode3)) {
7404 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
7405 }
7406 arg3 = static_cast< long >(val3);
7407 {
7408 PyThreadState* __tstate = wxPyBeginAllowThreads();
7409 (arg1)->AddIcon((wxString const &)*arg2,arg3);
7410 wxPyEndAllowThreads(__tstate);
7411 if (PyErr_Occurred()) SWIG_fail;
7412 }
7413 resultobj = SWIG_Py_Void();
7414 {
7415 if (temp2)
7416 delete arg2;
7417 }
7418 return resultobj;
7419 fail:
7420 {
7421 if (temp2)
7422 delete arg2;
7423 }
7424 return NULL;
7425 }
7426
7427
7428 SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7429 PyObject *resultobj = 0;
7430 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
7431 wxSize *arg2 = 0 ;
7432 wxIcon *result = 0 ;
7433 void *argp1 = 0 ;
7434 int res1 = 0 ;
7435 wxSize temp2 ;
7436 PyObject * obj0 = 0 ;
7437 PyObject * obj1 = 0 ;
7438 char * kwnames[] = {
7439 (char *) "self",(char *) "size", NULL
7440 };
7441
7442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
7443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
7444 if (!SWIG_IsOK(res1)) {
7445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
7446 }
7447 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
7448 {
7449 arg2 = &temp2;
7450 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
7451 }
7452 {
7453 PyThreadState* __tstate = wxPyBeginAllowThreads();
7454 {
7455 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
7456 result = (wxIcon *) &_result_ref;
7457 }
7458 wxPyEndAllowThreads(__tstate);
7459 if (PyErr_Occurred()) SWIG_fail;
7460 }
7461 {
7462 wxIcon* resultptr = new wxIcon(*result);
7463 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
7464 }
7465 return resultobj;
7466 fail:
7467 return NULL;
7468 }
7469
7470
7471 SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7472 PyObject *obj;
7473 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7474 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
7475 return SWIG_Py_Void();
7476 }
7477
7478 SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7479 return SWIG_Python_InitShadowInstance(args);
7480 }
7481
7482 SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7483 PyObject *resultobj = 0;
7484 wxString *arg1 = 0 ;
7485 long arg2 ;
7486 int arg3 = (int) 0 ;
7487 int arg4 = (int) 0 ;
7488 wxCursor *result = 0 ;
7489 bool temp1 = false ;
7490 long val2 ;
7491 int ecode2 = 0 ;
7492 int val3 ;
7493 int ecode3 = 0 ;
7494 int val4 ;
7495 int ecode4 = 0 ;
7496 PyObject * obj0 = 0 ;
7497 PyObject * obj1 = 0 ;
7498 PyObject * obj2 = 0 ;
7499 PyObject * obj3 = 0 ;
7500 char * kwnames[] = {
7501 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
7502 };
7503
7504 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7505 {
7506 arg1 = wxString_in_helper(obj0);
7507 if (arg1 == NULL) SWIG_fail;
7508 temp1 = true;
7509 }
7510 ecode2 = SWIG_AsVal_long(obj1, &val2);
7511 if (!SWIG_IsOK(ecode2)) {
7512 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
7513 }
7514 arg2 = static_cast< long >(val2);
7515 if (obj2) {
7516 ecode3 = SWIG_AsVal_int(obj2, &val3);
7517 if (!SWIG_IsOK(ecode3)) {
7518 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
7519 }
7520 arg3 = static_cast< int >(val3);
7521 }
7522 if (obj3) {
7523 ecode4 = SWIG_AsVal_int(obj3, &val4);
7524 if (!SWIG_IsOK(ecode4)) {
7525 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
7526 }
7527 arg4 = static_cast< int >(val4);
7528 }
7529 {
7530 if (!wxPyCheckForApp()) SWIG_fail;
7531 PyThreadState* __tstate = wxPyBeginAllowThreads();
7532 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
7533 wxPyEndAllowThreads(__tstate);
7534 if (PyErr_Occurred()) SWIG_fail;
7535 }
7536 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
7537 {
7538 if (temp1)
7539 delete arg1;
7540 }
7541 return resultobj;
7542 fail:
7543 {
7544 if (temp1)
7545 delete arg1;
7546 }
7547 return NULL;
7548 }
7549
7550
7551 SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7552 PyObject *resultobj = 0;
7553 wxCursor *arg1 = (wxCursor *) 0 ;
7554 void *argp1 = 0 ;
7555 int res1 = 0 ;
7556 PyObject *swig_obj[1] ;
7557
7558 if (!args) SWIG_fail;
7559 swig_obj[0] = args;
7560 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
7561 if (!SWIG_IsOK(res1)) {
7562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
7563 }
7564 arg1 = reinterpret_cast< wxCursor * >(argp1);
7565 {
7566 PyThreadState* __tstate = wxPyBeginAllowThreads();
7567 delete arg1;
7568
7569 wxPyEndAllowThreads(__tstate);
7570 if (PyErr_Occurred()) SWIG_fail;
7571 }
7572 resultobj = SWIG_Py_Void();
7573 return resultobj;
7574 fail:
7575 return NULL;
7576 }
7577
7578
7579 SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7580 PyObject *resultobj = 0;
7581 int arg1 ;
7582 wxCursor *result = 0 ;
7583 int val1 ;
7584 int ecode1 = 0 ;
7585 PyObject * obj0 = 0 ;
7586 char * kwnames[] = {
7587 (char *) "id", NULL
7588 };
7589
7590 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
7591 ecode1 = SWIG_AsVal_int(obj0, &val1);
7592 if (!SWIG_IsOK(ecode1)) {
7593 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
7594 }
7595 arg1 = static_cast< int >(val1);
7596 {
7597 if (!wxPyCheckForApp()) SWIG_fail;
7598 PyThreadState* __tstate = wxPyBeginAllowThreads();
7599 result = (wxCursor *)new wxCursor(arg1);
7600 wxPyEndAllowThreads(__tstate);
7601 if (PyErr_Occurred()) SWIG_fail;
7602 }
7603 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
7604 return resultobj;
7605 fail:
7606 return NULL;
7607 }
7608
7609
7610 SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7611 PyObject *resultobj = 0;
7612 wxImage *arg1 = 0 ;
7613 wxCursor *result = 0 ;
7614 void *argp1 = 0 ;
7615 int res1 = 0 ;
7616 PyObject * obj0 = 0 ;
7617 char * kwnames[] = {
7618 (char *) "image", NULL
7619 };
7620
7621 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
7622 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
7623 if (!SWIG_IsOK(res1)) {
7624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
7625 }
7626 if (!argp1) {
7627 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
7628 }
7629 arg1 = reinterpret_cast< wxImage * >(argp1);
7630 {
7631 if (!wxPyCheckForApp()) SWIG_fail;
7632 PyThreadState* __tstate = wxPyBeginAllowThreads();
7633 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
7634 wxPyEndAllowThreads(__tstate);
7635 if (PyErr_Occurred()) SWIG_fail;
7636 }
7637 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
7638 return resultobj;
7639 fail:
7640 return NULL;
7641 }
7642
7643
7644 SWIGINTERN PyObject *_wrap_Cursor_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7645 PyObject *resultobj = 0;
7646 wxCursor *arg1 = (wxCursor *) 0 ;
7647 bool result;
7648 void *argp1 = 0 ;
7649 int res1 = 0 ;
7650 PyObject *swig_obj[1] ;
7651
7652 if (!args) SWIG_fail;
7653 swig_obj[0] = args;
7654 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
7655 if (!SWIG_IsOK(res1)) {
7656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_Ok" "', expected argument " "1"" of type '" "wxCursor *""'");
7657 }
7658 arg1 = reinterpret_cast< wxCursor * >(argp1);
7659 {
7660 PyThreadState* __tstate = wxPyBeginAllowThreads();
7661 result = (bool)(arg1)->Ok();
7662 wxPyEndAllowThreads(__tstate);
7663 if (PyErr_Occurred()) SWIG_fail;
7664 }
7665 {
7666 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7667 }
7668 return resultobj;
7669 fail:
7670 return NULL;
7671 }
7672
7673
7674 SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7675 PyObject *obj;
7676 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7677 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
7678 return SWIG_Py_Void();
7679 }
7680
7681 SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7682 return SWIG_Python_InitShadowInstance(args);
7683 }
7684
7685 SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7686 PyObject *resultobj = 0;
7687 int arg1 = (int) 0 ;
7688 int arg2 = (int) 0 ;
7689 int arg3 = (int) 0 ;
7690 int arg4 = (int) 0 ;
7691 wxRegion *result = 0 ;
7692 int val1 ;
7693 int ecode1 = 0 ;
7694 int val2 ;
7695 int ecode2 = 0 ;
7696 int val3 ;
7697 int ecode3 = 0 ;
7698 int val4 ;
7699 int ecode4 = 0 ;
7700 PyObject * obj0 = 0 ;
7701 PyObject * obj1 = 0 ;
7702 PyObject * obj2 = 0 ;
7703 PyObject * obj3 = 0 ;
7704 char * kwnames[] = {
7705 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
7706 };
7707
7708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7709 if (obj0) {
7710 ecode1 = SWIG_AsVal_int(obj0, &val1);
7711 if (!SWIG_IsOK(ecode1)) {
7712 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
7713 }
7714 arg1 = static_cast< int >(val1);
7715 }
7716 if (obj1) {
7717 ecode2 = SWIG_AsVal_int(obj1, &val2);
7718 if (!SWIG_IsOK(ecode2)) {
7719 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
7720 }
7721 arg2 = static_cast< int >(val2);
7722 }
7723 if (obj2) {
7724 ecode3 = SWIG_AsVal_int(obj2, &val3);
7725 if (!SWIG_IsOK(ecode3)) {
7726 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
7727 }
7728 arg3 = static_cast< int >(val3);
7729 }
7730 if (obj3) {
7731 ecode4 = SWIG_AsVal_int(obj3, &val4);
7732 if (!SWIG_IsOK(ecode4)) {
7733 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
7734 }
7735 arg4 = static_cast< int >(val4);
7736 }
7737 {
7738 if (!wxPyCheckForApp()) SWIG_fail;
7739 PyThreadState* __tstate = wxPyBeginAllowThreads();
7740 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
7741 wxPyEndAllowThreads(__tstate);
7742 if (PyErr_Occurred()) SWIG_fail;
7743 }
7744 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
7745 return resultobj;
7746 fail:
7747 return NULL;
7748 }
7749
7750
7751 SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7752 PyObject *resultobj = 0;
7753 wxBitmap *arg1 = 0 ;
7754 wxRegion *result = 0 ;
7755 void *argp1 = 0 ;
7756 int res1 = 0 ;
7757 PyObject * obj0 = 0 ;
7758 char * kwnames[] = {
7759 (char *) "bmp", NULL
7760 };
7761
7762 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
7763 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
7764 if (!SWIG_IsOK(res1)) {
7765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
7766 }
7767 if (!argp1) {
7768 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
7769 }
7770 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7771 {
7772 if (!wxPyCheckForApp()) SWIG_fail;
7773 PyThreadState* __tstate = wxPyBeginAllowThreads();
7774 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
7775 wxPyEndAllowThreads(__tstate);
7776 if (PyErr_Occurred()) SWIG_fail;
7777 }
7778 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
7779 return resultobj;
7780 fail:
7781 return NULL;
7782 }
7783
7784
7785 SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7786 PyObject *resultobj = 0;
7787 wxBitmap *arg1 = 0 ;
7788 wxColour *arg2 = 0 ;
7789 int arg3 = (int) 0 ;
7790 wxRegion *result = 0 ;
7791 void *argp1 = 0 ;
7792 int res1 = 0 ;
7793 wxColour temp2 ;
7794 int val3 ;
7795 int ecode3 = 0 ;
7796 PyObject * obj0 = 0 ;
7797 PyObject * obj1 = 0 ;
7798 PyObject * obj2 = 0 ;
7799 char * kwnames[] = {
7800 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
7801 };
7802
7803 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7804 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
7805 if (!SWIG_IsOK(res1)) {
7806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
7807 }
7808 if (!argp1) {
7809 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
7810 }
7811 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7812 {
7813 arg2 = &temp2;
7814 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
7815 }
7816 if (obj2) {
7817 ecode3 = SWIG_AsVal_int(obj2, &val3);
7818 if (!SWIG_IsOK(ecode3)) {
7819 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
7820 }
7821 arg3 = static_cast< int >(val3);
7822 }
7823 {
7824 if (!wxPyCheckForApp()) SWIG_fail;
7825 PyThreadState* __tstate = wxPyBeginAllowThreads();
7826 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
7827 wxPyEndAllowThreads(__tstate);
7828 if (PyErr_Occurred()) SWIG_fail;
7829 }
7830 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
7831 return resultobj;
7832 fail:
7833 return NULL;
7834 }
7835
7836
7837 SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7838 PyObject *resultobj = 0;
7839 int arg1 ;
7840 wxPoint *arg2 = (wxPoint *) 0 ;
7841 int arg3 = (int) wxWINDING_RULE ;
7842 wxRegion *result = 0 ;
7843 int val3 ;
7844 int ecode3 = 0 ;
7845 PyObject * obj0 = 0 ;
7846 PyObject * obj1 = 0 ;
7847 char * kwnames[] = {
7848 (char *) "points",(char *) "fillStyle", NULL
7849 };
7850
7851 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
7852 {
7853 arg2 = wxPoint_LIST_helper(obj0, &arg1);
7854 if (arg2 == NULL) SWIG_fail;
7855 }
7856 if (obj1) {
7857 ecode3 = SWIG_AsVal_int(obj1, &val3);
7858 if (!SWIG_IsOK(ecode3)) {
7859 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
7860 }
7861 arg3 = static_cast< int >(val3);
7862 }
7863 {
7864 if (!wxPyCheckForApp()) SWIG_fail;
7865 PyThreadState* __tstate = wxPyBeginAllowThreads();
7866 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
7867 wxPyEndAllowThreads(__tstate);
7868 if (PyErr_Occurred()) SWIG_fail;
7869 }
7870 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
7871 {
7872 if (arg2) delete [] arg2;
7873 }
7874 return resultobj;
7875 fail:
7876 {
7877 if (arg2) delete [] arg2;
7878 }
7879 return NULL;
7880 }
7881
7882
7883 SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7884 PyObject *resultobj = 0;
7885 wxRegion *arg1 = (wxRegion *) 0 ;
7886 void *argp1 = 0 ;
7887 int res1 = 0 ;
7888 PyObject *swig_obj[1] ;
7889
7890 if (!args) SWIG_fail;
7891 swig_obj[0] = args;
7892 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
7893 if (!SWIG_IsOK(res1)) {
7894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
7895 }
7896 arg1 = reinterpret_cast< wxRegion * >(argp1);
7897 {
7898 PyThreadState* __tstate = wxPyBeginAllowThreads();
7899 delete arg1;
7900
7901 wxPyEndAllowThreads(__tstate);
7902 if (PyErr_Occurred()) SWIG_fail;
7903 }
7904 resultobj = SWIG_Py_Void();
7905 return resultobj;
7906 fail:
7907 return NULL;
7908 }
7909
7910
7911 SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7912 PyObject *resultobj = 0;
7913 wxRegion *arg1 = (wxRegion *) 0 ;
7914 void *argp1 = 0 ;
7915 int res1 = 0 ;
7916 PyObject *swig_obj[1] ;
7917
7918 if (!args) SWIG_fail;
7919 swig_obj[0] = args;
7920 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
7921 if (!SWIG_IsOK(res1)) {
7922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
7923 }
7924 arg1 = reinterpret_cast< wxRegion * >(argp1);
7925 {
7926 PyThreadState* __tstate = wxPyBeginAllowThreads();
7927 (arg1)->Clear();
7928 wxPyEndAllowThreads(__tstate);
7929 if (PyErr_Occurred()) SWIG_fail;
7930 }
7931 resultobj = SWIG_Py_Void();
7932 return resultobj;
7933 fail:
7934 return NULL;
7935 }
7936
7937
7938 SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7939 PyObject *resultobj = 0;
7940 wxRegion *arg1 = (wxRegion *) 0 ;
7941 int arg2 ;
7942 int arg3 ;
7943 bool result;
7944 void *argp1 = 0 ;
7945 int res1 = 0 ;
7946 int val2 ;
7947 int ecode2 = 0 ;
7948 int val3 ;
7949 int ecode3 = 0 ;
7950 PyObject * obj0 = 0 ;
7951 PyObject * obj1 = 0 ;
7952 PyObject * obj2 = 0 ;
7953 char * kwnames[] = {
7954 (char *) "self",(char *) "x",(char *) "y", NULL
7955 };
7956
7957 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7958 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
7959 if (!SWIG_IsOK(res1)) {
7960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
7961 }
7962 arg1 = reinterpret_cast< wxRegion * >(argp1);
7963 ecode2 = SWIG_AsVal_int(obj1, &val2);
7964 if (!SWIG_IsOK(ecode2)) {
7965 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
7966 }
7967 arg2 = static_cast< int >(val2);
7968 ecode3 = SWIG_AsVal_int(obj2, &val3);
7969 if (!SWIG_IsOK(ecode3)) {
7970 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
7971 }
7972 arg3 = static_cast< int >(val3);
7973 {
7974 PyThreadState* __tstate = wxPyBeginAllowThreads();
7975 result = (bool)(arg1)->Offset(arg2,arg3);
7976 wxPyEndAllowThreads(__tstate);
7977 if (PyErr_Occurred()) SWIG_fail;
7978 }
7979 {
7980 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7981 }
7982 return resultobj;
7983 fail:
7984 return NULL;
7985 }
7986
7987
7988 SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7989 PyObject *resultobj = 0;
7990 wxRegion *arg1 = (wxRegion *) 0 ;
7991 int arg2 ;
7992 int arg3 ;
7993 wxRegionContain result;
7994 void *argp1 = 0 ;
7995 int res1 = 0 ;
7996 int val2 ;
7997 int ecode2 = 0 ;
7998 int val3 ;
7999 int ecode3 = 0 ;
8000 PyObject * obj0 = 0 ;
8001 PyObject * obj1 = 0 ;
8002 PyObject * obj2 = 0 ;
8003 char * kwnames[] = {
8004 (char *) "self",(char *) "x",(char *) "y", NULL
8005 };
8006
8007 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8008 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8009 if (!SWIG_IsOK(res1)) {
8010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
8011 }
8012 arg1 = reinterpret_cast< wxRegion * >(argp1);
8013 ecode2 = SWIG_AsVal_int(obj1, &val2);
8014 if (!SWIG_IsOK(ecode2)) {
8015 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
8016 }
8017 arg2 = static_cast< int >(val2);
8018 ecode3 = SWIG_AsVal_int(obj2, &val3);
8019 if (!SWIG_IsOK(ecode3)) {
8020 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
8021 }
8022 arg3 = static_cast< int >(val3);
8023 {
8024 PyThreadState* __tstate = wxPyBeginAllowThreads();
8025 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
8026 wxPyEndAllowThreads(__tstate);
8027 if (PyErr_Occurred()) SWIG_fail;
8028 }
8029 resultobj = SWIG_From_int(static_cast< int >(result));
8030 return resultobj;
8031 fail:
8032 return NULL;
8033 }
8034
8035
8036 SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8037 PyObject *resultobj = 0;
8038 wxRegion *arg1 = (wxRegion *) 0 ;
8039 wxPoint *arg2 = 0 ;
8040 wxRegionContain result;
8041 void *argp1 = 0 ;
8042 int res1 = 0 ;
8043 wxPoint temp2 ;
8044 PyObject * obj0 = 0 ;
8045 PyObject * obj1 = 0 ;
8046 char * kwnames[] = {
8047 (char *) "self",(char *) "pt", NULL
8048 };
8049
8050 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
8051 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8052 if (!SWIG_IsOK(res1)) {
8053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
8054 }
8055 arg1 = reinterpret_cast< wxRegion * >(argp1);
8056 {
8057 arg2 = &temp2;
8058 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
8059 }
8060 {
8061 PyThreadState* __tstate = wxPyBeginAllowThreads();
8062 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
8063 wxPyEndAllowThreads(__tstate);
8064 if (PyErr_Occurred()) SWIG_fail;
8065 }
8066 resultobj = SWIG_From_int(static_cast< int >(result));
8067 return resultobj;
8068 fail:
8069 return NULL;
8070 }
8071
8072
8073 SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8074 PyObject *resultobj = 0;
8075 wxRegion *arg1 = (wxRegion *) 0 ;
8076 wxRect *arg2 = 0 ;
8077 wxRegionContain result;
8078 void *argp1 = 0 ;
8079 int res1 = 0 ;
8080 wxRect temp2 ;
8081 PyObject * obj0 = 0 ;
8082 PyObject * obj1 = 0 ;
8083 char * kwnames[] = {
8084 (char *) "self",(char *) "rect", NULL
8085 };
8086
8087 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
8088 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8089 if (!SWIG_IsOK(res1)) {
8090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
8091 }
8092 arg1 = reinterpret_cast< wxRegion * >(argp1);
8093 {
8094 arg2 = &temp2;
8095 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
8096 }
8097 {
8098 PyThreadState* __tstate = wxPyBeginAllowThreads();
8099 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
8100 wxPyEndAllowThreads(__tstate);
8101 if (PyErr_Occurred()) SWIG_fail;
8102 }
8103 resultobj = SWIG_From_int(static_cast< int >(result));
8104 return resultobj;
8105 fail:
8106 return NULL;
8107 }
8108
8109
8110 SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8111 PyObject *resultobj = 0;
8112 wxRegion *arg1 = (wxRegion *) 0 ;
8113 int arg2 ;
8114 int arg3 ;
8115 int arg4 ;
8116 int arg5 ;
8117 wxRegionContain result;
8118 void *argp1 = 0 ;
8119 int res1 = 0 ;
8120 int val2 ;
8121 int ecode2 = 0 ;
8122 int val3 ;
8123 int ecode3 = 0 ;
8124 int val4 ;
8125 int ecode4 = 0 ;
8126 int val5 ;
8127 int ecode5 = 0 ;
8128 PyObject * obj0 = 0 ;
8129 PyObject * obj1 = 0 ;
8130 PyObject * obj2 = 0 ;
8131 PyObject * obj3 = 0 ;
8132 PyObject * obj4 = 0 ;
8133 char * kwnames[] = {
8134 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
8135 };
8136
8137 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8138 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8139 if (!SWIG_IsOK(res1)) {
8140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
8141 }
8142 arg1 = reinterpret_cast< wxRegion * >(argp1);
8143 ecode2 = SWIG_AsVal_int(obj1, &val2);
8144 if (!SWIG_IsOK(ecode2)) {
8145 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
8146 }
8147 arg2 = static_cast< int >(val2);
8148 ecode3 = SWIG_AsVal_int(obj2, &val3);
8149 if (!SWIG_IsOK(ecode3)) {
8150 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
8151 }
8152 arg3 = static_cast< int >(val3);
8153 ecode4 = SWIG_AsVal_int(obj3, &val4);
8154 if (!SWIG_IsOK(ecode4)) {
8155 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
8156 }
8157 arg4 = static_cast< int >(val4);
8158 ecode5 = SWIG_AsVal_int(obj4, &val5);
8159 if (!SWIG_IsOK(ecode5)) {
8160 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
8161 }
8162 arg5 = static_cast< int >(val5);
8163 {
8164 PyThreadState* __tstate = wxPyBeginAllowThreads();
8165 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
8166 wxPyEndAllowThreads(__tstate);
8167 if (PyErr_Occurred()) SWIG_fail;
8168 }
8169 resultobj = SWIG_From_int(static_cast< int >(result));
8170 return resultobj;
8171 fail:
8172 return NULL;
8173 }
8174
8175
8176 SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8177 PyObject *resultobj = 0;
8178 wxRegion *arg1 = (wxRegion *) 0 ;
8179 wxRect result;
8180 void *argp1 = 0 ;
8181 int res1 = 0 ;
8182 PyObject *swig_obj[1] ;
8183
8184 if (!args) SWIG_fail;
8185 swig_obj[0] = args;
8186 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8187 if (!SWIG_IsOK(res1)) {
8188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
8189 }
8190 arg1 = reinterpret_cast< wxRegion * >(argp1);
8191 {
8192 PyThreadState* __tstate = wxPyBeginAllowThreads();
8193 result = (arg1)->GetBox();
8194 wxPyEndAllowThreads(__tstate);
8195 if (PyErr_Occurred()) SWIG_fail;
8196 }
8197 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
8198 return resultobj;
8199 fail:
8200 return NULL;
8201 }
8202
8203
8204 SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8205 PyObject *resultobj = 0;
8206 wxRegion *arg1 = (wxRegion *) 0 ;
8207 int arg2 ;
8208 int arg3 ;
8209 int arg4 ;
8210 int arg5 ;
8211 bool result;
8212 void *argp1 = 0 ;
8213 int res1 = 0 ;
8214 int val2 ;
8215 int ecode2 = 0 ;
8216 int val3 ;
8217 int ecode3 = 0 ;
8218 int val4 ;
8219 int ecode4 = 0 ;
8220 int val5 ;
8221 int ecode5 = 0 ;
8222 PyObject * obj0 = 0 ;
8223 PyObject * obj1 = 0 ;
8224 PyObject * obj2 = 0 ;
8225 PyObject * obj3 = 0 ;
8226 PyObject * obj4 = 0 ;
8227 char * kwnames[] = {
8228 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
8229 };
8230
8231 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8232 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8233 if (!SWIG_IsOK(res1)) {
8234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
8235 }
8236 arg1 = reinterpret_cast< wxRegion * >(argp1);
8237 ecode2 = SWIG_AsVal_int(obj1, &val2);
8238 if (!SWIG_IsOK(ecode2)) {
8239 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
8240 }
8241 arg2 = static_cast< int >(val2);
8242 ecode3 = SWIG_AsVal_int(obj2, &val3);
8243 if (!SWIG_IsOK(ecode3)) {
8244 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
8245 }
8246 arg3 = static_cast< int >(val3);
8247 ecode4 = SWIG_AsVal_int(obj3, &val4);
8248 if (!SWIG_IsOK(ecode4)) {
8249 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
8250 }
8251 arg4 = static_cast< int >(val4);
8252 ecode5 = SWIG_AsVal_int(obj4, &val5);
8253 if (!SWIG_IsOK(ecode5)) {
8254 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
8255 }
8256 arg5 = static_cast< int >(val5);
8257 {
8258 PyThreadState* __tstate = wxPyBeginAllowThreads();
8259 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
8260 wxPyEndAllowThreads(__tstate);
8261 if (PyErr_Occurred()) SWIG_fail;
8262 }
8263 {
8264 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8265 }
8266 return resultobj;
8267 fail:
8268 return NULL;
8269 }
8270
8271
8272 SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8273 PyObject *resultobj = 0;
8274 wxRegion *arg1 = (wxRegion *) 0 ;
8275 wxRect *arg2 = 0 ;
8276 bool result;
8277 void *argp1 = 0 ;
8278 int res1 = 0 ;
8279 wxRect temp2 ;
8280 PyObject * obj0 = 0 ;
8281 PyObject * obj1 = 0 ;
8282 char * kwnames[] = {
8283 (char *) "self",(char *) "rect", NULL
8284 };
8285
8286 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
8287 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8288 if (!SWIG_IsOK(res1)) {
8289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
8290 }
8291 arg1 = reinterpret_cast< wxRegion * >(argp1);
8292 {
8293 arg2 = &temp2;
8294 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
8295 }
8296 {
8297 PyThreadState* __tstate = wxPyBeginAllowThreads();
8298 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
8299 wxPyEndAllowThreads(__tstate);
8300 if (PyErr_Occurred()) SWIG_fail;
8301 }
8302 {
8303 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8304 }
8305 return resultobj;
8306 fail:
8307 return NULL;
8308 }
8309
8310
8311 SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8312 PyObject *resultobj = 0;
8313 wxRegion *arg1 = (wxRegion *) 0 ;
8314 wxRegion *arg2 = 0 ;
8315 bool result;
8316 void *argp1 = 0 ;
8317 int res1 = 0 ;
8318 void *argp2 = 0 ;
8319 int res2 = 0 ;
8320 PyObject * obj0 = 0 ;
8321 PyObject * obj1 = 0 ;
8322 char * kwnames[] = {
8323 (char *) "self",(char *) "region", NULL
8324 };
8325
8326 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
8327 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8328 if (!SWIG_IsOK(res1)) {
8329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
8330 }
8331 arg1 = reinterpret_cast< wxRegion * >(argp1);
8332 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
8333 if (!SWIG_IsOK(res2)) {
8334 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8335 }
8336 if (!argp2) {
8337 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8338 }
8339 arg2 = reinterpret_cast< wxRegion * >(argp2);
8340 {
8341 PyThreadState* __tstate = wxPyBeginAllowThreads();
8342 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
8343 wxPyEndAllowThreads(__tstate);
8344 if (PyErr_Occurred()) SWIG_fail;
8345 }
8346 {
8347 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8348 }
8349 return resultobj;
8350 fail:
8351 return NULL;
8352 }
8353
8354
8355 SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8356 PyObject *resultobj = 0;
8357 wxRegion *arg1 = (wxRegion *) 0 ;
8358 bool result;
8359 void *argp1 = 0 ;
8360 int res1 = 0 ;
8361 PyObject *swig_obj[1] ;
8362
8363 if (!args) SWIG_fail;
8364 swig_obj[0] = args;
8365 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8366 if (!SWIG_IsOK(res1)) {
8367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
8368 }
8369 arg1 = reinterpret_cast< wxRegion * >(argp1);
8370 {
8371 PyThreadState* __tstate = wxPyBeginAllowThreads();
8372 result = (bool)(arg1)->IsEmpty();
8373 wxPyEndAllowThreads(__tstate);
8374 if (PyErr_Occurred()) SWIG_fail;
8375 }
8376 {
8377 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8378 }
8379 return resultobj;
8380 fail:
8381 return NULL;
8382 }
8383
8384
8385 SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8386 PyObject *resultobj = 0;
8387 wxRegion *arg1 = (wxRegion *) 0 ;
8388 int arg2 ;
8389 int arg3 ;
8390 int arg4 ;
8391 int arg5 ;
8392 bool result;
8393 void *argp1 = 0 ;
8394 int res1 = 0 ;
8395 int val2 ;
8396 int ecode2 = 0 ;
8397 int val3 ;
8398 int ecode3 = 0 ;
8399 int val4 ;
8400 int ecode4 = 0 ;
8401 int val5 ;
8402 int ecode5 = 0 ;
8403 PyObject * obj0 = 0 ;
8404 PyObject * obj1 = 0 ;
8405 PyObject * obj2 = 0 ;
8406 PyObject * obj3 = 0 ;
8407 PyObject * obj4 = 0 ;
8408 char * kwnames[] = {
8409 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
8410 };
8411
8412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8413 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8414 if (!SWIG_IsOK(res1)) {
8415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
8416 }
8417 arg1 = reinterpret_cast< wxRegion * >(argp1);
8418 ecode2 = SWIG_AsVal_int(obj1, &val2);
8419 if (!SWIG_IsOK(ecode2)) {
8420 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
8421 }
8422 arg2 = static_cast< int >(val2);
8423 ecode3 = SWIG_AsVal_int(obj2, &val3);
8424 if (!SWIG_IsOK(ecode3)) {
8425 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
8426 }
8427 arg3 = static_cast< int >(val3);
8428 ecode4 = SWIG_AsVal_int(obj3, &val4);
8429 if (!SWIG_IsOK(ecode4)) {
8430 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
8431 }
8432 arg4 = static_cast< int >(val4);
8433 ecode5 = SWIG_AsVal_int(obj4, &val5);
8434 if (!SWIG_IsOK(ecode5)) {
8435 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
8436 }
8437 arg5 = static_cast< int >(val5);
8438 {
8439 PyThreadState* __tstate = wxPyBeginAllowThreads();
8440 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
8441 wxPyEndAllowThreads(__tstate);
8442 if (PyErr_Occurred()) SWIG_fail;
8443 }
8444 {
8445 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8446 }
8447 return resultobj;
8448 fail:
8449 return NULL;
8450 }
8451
8452
8453 SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8454 PyObject *resultobj = 0;
8455 wxRegion *arg1 = (wxRegion *) 0 ;
8456 wxRect *arg2 = 0 ;
8457 bool result;
8458 void *argp1 = 0 ;
8459 int res1 = 0 ;
8460 wxRect temp2 ;
8461 PyObject * obj0 = 0 ;
8462 PyObject * obj1 = 0 ;
8463 char * kwnames[] = {
8464 (char *) "self",(char *) "rect", NULL
8465 };
8466
8467 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
8468 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8469 if (!SWIG_IsOK(res1)) {
8470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
8471 }
8472 arg1 = reinterpret_cast< wxRegion * >(argp1);
8473 {
8474 arg2 = &temp2;
8475 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
8476 }
8477 {
8478 PyThreadState* __tstate = wxPyBeginAllowThreads();
8479 result = (bool)(arg1)->Union((wxRect const &)*arg2);
8480 wxPyEndAllowThreads(__tstate);
8481 if (PyErr_Occurred()) SWIG_fail;
8482 }
8483 {
8484 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8485 }
8486 return resultobj;
8487 fail:
8488 return NULL;
8489 }
8490
8491
8492 SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8493 PyObject *resultobj = 0;
8494 wxRegion *arg1 = (wxRegion *) 0 ;
8495 wxRegion *arg2 = 0 ;
8496 bool result;
8497 void *argp1 = 0 ;
8498 int res1 = 0 ;
8499 void *argp2 = 0 ;
8500 int res2 = 0 ;
8501 PyObject * obj0 = 0 ;
8502 PyObject * obj1 = 0 ;
8503 char * kwnames[] = {
8504 (char *) "self",(char *) "region", NULL
8505 };
8506
8507 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
8508 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8509 if (!SWIG_IsOK(res1)) {
8510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
8511 }
8512 arg1 = reinterpret_cast< wxRegion * >(argp1);
8513 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
8514 if (!SWIG_IsOK(res2)) {
8515 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8516 }
8517 if (!argp2) {
8518 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8519 }
8520 arg2 = reinterpret_cast< wxRegion * >(argp2);
8521 {
8522 PyThreadState* __tstate = wxPyBeginAllowThreads();
8523 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
8524 wxPyEndAllowThreads(__tstate);
8525 if (PyErr_Occurred()) SWIG_fail;
8526 }
8527 {
8528 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8529 }
8530 return resultobj;
8531 fail:
8532 return NULL;
8533 }
8534
8535
8536 SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8537 PyObject *resultobj = 0;
8538 wxRegion *arg1 = (wxRegion *) 0 ;
8539 int arg2 ;
8540 int arg3 ;
8541 int arg4 ;
8542 int arg5 ;
8543 bool result;
8544 void *argp1 = 0 ;
8545 int res1 = 0 ;
8546 int val2 ;
8547 int ecode2 = 0 ;
8548 int val3 ;
8549 int ecode3 = 0 ;
8550 int val4 ;
8551 int ecode4 = 0 ;
8552 int val5 ;
8553 int ecode5 = 0 ;
8554 PyObject * obj0 = 0 ;
8555 PyObject * obj1 = 0 ;
8556 PyObject * obj2 = 0 ;
8557 PyObject * obj3 = 0 ;
8558 PyObject * obj4 = 0 ;
8559 char * kwnames[] = {
8560 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
8561 };
8562
8563 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8564 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8565 if (!SWIG_IsOK(res1)) {
8566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
8567 }
8568 arg1 = reinterpret_cast< wxRegion * >(argp1);
8569 ecode2 = SWIG_AsVal_int(obj1, &val2);
8570 if (!SWIG_IsOK(ecode2)) {
8571 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
8572 }
8573 arg2 = static_cast< int >(val2);
8574 ecode3 = SWIG_AsVal_int(obj2, &val3);
8575 if (!SWIG_IsOK(ecode3)) {
8576 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
8577 }
8578 arg3 = static_cast< int >(val3);
8579 ecode4 = SWIG_AsVal_int(obj3, &val4);
8580 if (!SWIG_IsOK(ecode4)) {
8581 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
8582 }
8583 arg4 = static_cast< int >(val4);
8584 ecode5 = SWIG_AsVal_int(obj4, &val5);
8585 if (!SWIG_IsOK(ecode5)) {
8586 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
8587 }
8588 arg5 = static_cast< int >(val5);
8589 {
8590 PyThreadState* __tstate = wxPyBeginAllowThreads();
8591 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
8592 wxPyEndAllowThreads(__tstate);
8593 if (PyErr_Occurred()) SWIG_fail;
8594 }
8595 {
8596 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8597 }
8598 return resultobj;
8599 fail:
8600 return NULL;
8601 }
8602
8603
8604 SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8605 PyObject *resultobj = 0;
8606 wxRegion *arg1 = (wxRegion *) 0 ;
8607 wxRect *arg2 = 0 ;
8608 bool result;
8609 void *argp1 = 0 ;
8610 int res1 = 0 ;
8611 wxRect temp2 ;
8612 PyObject * obj0 = 0 ;
8613 PyObject * obj1 = 0 ;
8614 char * kwnames[] = {
8615 (char *) "self",(char *) "rect", NULL
8616 };
8617
8618 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
8619 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8620 if (!SWIG_IsOK(res1)) {
8621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
8622 }
8623 arg1 = reinterpret_cast< wxRegion * >(argp1);
8624 {
8625 arg2 = &temp2;
8626 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
8627 }
8628 {
8629 PyThreadState* __tstate = wxPyBeginAllowThreads();
8630 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
8631 wxPyEndAllowThreads(__tstate);
8632 if (PyErr_Occurred()) SWIG_fail;
8633 }
8634 {
8635 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8636 }
8637 return resultobj;
8638 fail:
8639 return NULL;
8640 }
8641
8642
8643 SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8644 PyObject *resultobj = 0;
8645 wxRegion *arg1 = (wxRegion *) 0 ;
8646 wxRegion *arg2 = 0 ;
8647 bool result;
8648 void *argp1 = 0 ;
8649 int res1 = 0 ;
8650 void *argp2 = 0 ;
8651 int res2 = 0 ;
8652 PyObject * obj0 = 0 ;
8653 PyObject * obj1 = 0 ;
8654 char * kwnames[] = {
8655 (char *) "self",(char *) "region", NULL
8656 };
8657
8658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
8659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8660 if (!SWIG_IsOK(res1)) {
8661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
8662 }
8663 arg1 = reinterpret_cast< wxRegion * >(argp1);
8664 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
8665 if (!SWIG_IsOK(res2)) {
8666 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8667 }
8668 if (!argp2) {
8669 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8670 }
8671 arg2 = reinterpret_cast< wxRegion * >(argp2);
8672 {
8673 PyThreadState* __tstate = wxPyBeginAllowThreads();
8674 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
8675 wxPyEndAllowThreads(__tstate);
8676 if (PyErr_Occurred()) SWIG_fail;
8677 }
8678 {
8679 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8680 }
8681 return resultobj;
8682 fail:
8683 return NULL;
8684 }
8685
8686
8687 SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8688 PyObject *resultobj = 0;
8689 wxRegion *arg1 = (wxRegion *) 0 ;
8690 int arg2 ;
8691 int arg3 ;
8692 int arg4 ;
8693 int arg5 ;
8694 bool result;
8695 void *argp1 = 0 ;
8696 int res1 = 0 ;
8697 int val2 ;
8698 int ecode2 = 0 ;
8699 int val3 ;
8700 int ecode3 = 0 ;
8701 int val4 ;
8702 int ecode4 = 0 ;
8703 int val5 ;
8704 int ecode5 = 0 ;
8705 PyObject * obj0 = 0 ;
8706 PyObject * obj1 = 0 ;
8707 PyObject * obj2 = 0 ;
8708 PyObject * obj3 = 0 ;
8709 PyObject * obj4 = 0 ;
8710 char * kwnames[] = {
8711 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
8712 };
8713
8714 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8715 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8716 if (!SWIG_IsOK(res1)) {
8717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
8718 }
8719 arg1 = reinterpret_cast< wxRegion * >(argp1);
8720 ecode2 = SWIG_AsVal_int(obj1, &val2);
8721 if (!SWIG_IsOK(ecode2)) {
8722 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
8723 }
8724 arg2 = static_cast< int >(val2);
8725 ecode3 = SWIG_AsVal_int(obj2, &val3);
8726 if (!SWIG_IsOK(ecode3)) {
8727 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
8728 }
8729 arg3 = static_cast< int >(val3);
8730 ecode4 = SWIG_AsVal_int(obj3, &val4);
8731 if (!SWIG_IsOK(ecode4)) {
8732 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
8733 }
8734 arg4 = static_cast< int >(val4);
8735 ecode5 = SWIG_AsVal_int(obj4, &val5);
8736 if (!SWIG_IsOK(ecode5)) {
8737 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
8738 }
8739 arg5 = static_cast< int >(val5);
8740 {
8741 PyThreadState* __tstate = wxPyBeginAllowThreads();
8742 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
8743 wxPyEndAllowThreads(__tstate);
8744 if (PyErr_Occurred()) SWIG_fail;
8745 }
8746 {
8747 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8748 }
8749 return resultobj;
8750 fail:
8751 return NULL;
8752 }
8753
8754
8755 SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8756 PyObject *resultobj = 0;
8757 wxRegion *arg1 = (wxRegion *) 0 ;
8758 wxRect *arg2 = 0 ;
8759 bool result;
8760 void *argp1 = 0 ;
8761 int res1 = 0 ;
8762 wxRect temp2 ;
8763 PyObject * obj0 = 0 ;
8764 PyObject * obj1 = 0 ;
8765 char * kwnames[] = {
8766 (char *) "self",(char *) "rect", NULL
8767 };
8768
8769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
8770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8771 if (!SWIG_IsOK(res1)) {
8772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
8773 }
8774 arg1 = reinterpret_cast< wxRegion * >(argp1);
8775 {
8776 arg2 = &temp2;
8777 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
8778 }
8779 {
8780 PyThreadState* __tstate = wxPyBeginAllowThreads();
8781 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
8782 wxPyEndAllowThreads(__tstate);
8783 if (PyErr_Occurred()) SWIG_fail;
8784 }
8785 {
8786 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8787 }
8788 return resultobj;
8789 fail:
8790 return NULL;
8791 }
8792
8793
8794 SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8795 PyObject *resultobj = 0;
8796 wxRegion *arg1 = (wxRegion *) 0 ;
8797 wxRegion *arg2 = 0 ;
8798 bool result;
8799 void *argp1 = 0 ;
8800 int res1 = 0 ;
8801 void *argp2 = 0 ;
8802 int res2 = 0 ;
8803 PyObject * obj0 = 0 ;
8804 PyObject * obj1 = 0 ;
8805 char * kwnames[] = {
8806 (char *) "self",(char *) "region", NULL
8807 };
8808
8809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
8810 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8811 if (!SWIG_IsOK(res1)) {
8812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
8813 }
8814 arg1 = reinterpret_cast< wxRegion * >(argp1);
8815 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
8816 if (!SWIG_IsOK(res2)) {
8817 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8818 }
8819 if (!argp2) {
8820 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8821 }
8822 arg2 = reinterpret_cast< wxRegion * >(argp2);
8823 {
8824 PyThreadState* __tstate = wxPyBeginAllowThreads();
8825 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
8826 wxPyEndAllowThreads(__tstate);
8827 if (PyErr_Occurred()) SWIG_fail;
8828 }
8829 {
8830 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8831 }
8832 return resultobj;
8833 fail:
8834 return NULL;
8835 }
8836
8837
8838 SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8839 PyObject *resultobj = 0;
8840 wxRegion *arg1 = (wxRegion *) 0 ;
8841 SwigValueWrapper<wxBitmap > result;
8842 void *argp1 = 0 ;
8843 int res1 = 0 ;
8844 PyObject *swig_obj[1] ;
8845
8846 if (!args) SWIG_fail;
8847 swig_obj[0] = args;
8848 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8849 if (!SWIG_IsOK(res1)) {
8850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
8851 }
8852 arg1 = reinterpret_cast< wxRegion * >(argp1);
8853 {
8854 PyThreadState* __tstate = wxPyBeginAllowThreads();
8855 result = (arg1)->ConvertToBitmap();
8856 wxPyEndAllowThreads(__tstate);
8857 if (PyErr_Occurred()) SWIG_fail;
8858 }
8859 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
8860 return resultobj;
8861 fail:
8862 return NULL;
8863 }
8864
8865
8866 SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8867 PyObject *resultobj = 0;
8868 wxRegion *arg1 = (wxRegion *) 0 ;
8869 wxBitmap *arg2 = 0 ;
8870 bool result;
8871 void *argp1 = 0 ;
8872 int res1 = 0 ;
8873 void *argp2 = 0 ;
8874 int res2 = 0 ;
8875 PyObject * obj0 = 0 ;
8876 PyObject * obj1 = 0 ;
8877 char * kwnames[] = {
8878 (char *) "self",(char *) "bmp", NULL
8879 };
8880
8881 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
8882 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8883 if (!SWIG_IsOK(res1)) {
8884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
8885 }
8886 arg1 = reinterpret_cast< wxRegion * >(argp1);
8887 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
8888 if (!SWIG_IsOK(res2)) {
8889 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8890 }
8891 if (!argp2) {
8892 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8893 }
8894 arg2 = reinterpret_cast< wxBitmap * >(argp2);
8895 {
8896 PyThreadState* __tstate = wxPyBeginAllowThreads();
8897 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
8898 wxPyEndAllowThreads(__tstate);
8899 if (PyErr_Occurred()) SWIG_fail;
8900 }
8901 {
8902 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8903 }
8904 return resultobj;
8905 fail:
8906 return NULL;
8907 }
8908
8909
8910 SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8911 PyObject *resultobj = 0;
8912 wxRegion *arg1 = (wxRegion *) 0 ;
8913 wxBitmap *arg2 = 0 ;
8914 wxColour *arg3 = 0 ;
8915 int arg4 = (int) 0 ;
8916 bool result;
8917 void *argp1 = 0 ;
8918 int res1 = 0 ;
8919 void *argp2 = 0 ;
8920 int res2 = 0 ;
8921 wxColour temp3 ;
8922 int val4 ;
8923 int ecode4 = 0 ;
8924 PyObject * obj0 = 0 ;
8925 PyObject * obj1 = 0 ;
8926 PyObject * obj2 = 0 ;
8927 PyObject * obj3 = 0 ;
8928 char * kwnames[] = {
8929 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
8930 };
8931
8932 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8933 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8934 if (!SWIG_IsOK(res1)) {
8935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
8936 }
8937 arg1 = reinterpret_cast< wxRegion * >(argp1);
8938 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
8939 if (!SWIG_IsOK(res2)) {
8940 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8941 }
8942 if (!argp2) {
8943 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8944 }
8945 arg2 = reinterpret_cast< wxBitmap * >(argp2);
8946 {
8947 arg3 = &temp3;
8948 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
8949 }
8950 if (obj3) {
8951 ecode4 = SWIG_AsVal_int(obj3, &val4);
8952 if (!SWIG_IsOK(ecode4)) {
8953 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
8954 }
8955 arg4 = static_cast< int >(val4);
8956 }
8957 {
8958 PyThreadState* __tstate = wxPyBeginAllowThreads();
8959 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
8960 wxPyEndAllowThreads(__tstate);
8961 if (PyErr_Occurred()) SWIG_fail;
8962 }
8963 {
8964 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8965 }
8966 return resultobj;
8967 fail:
8968 return NULL;
8969 }
8970
8971
8972 SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8973 PyObject *obj;
8974 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8975 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
8976 return SWIG_Py_Void();
8977 }
8978
8979 SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8980 return SWIG_Python_InitShadowInstance(args);
8981 }
8982
8983 SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8984 PyObject *resultobj = 0;
8985 wxRegion *arg1 = 0 ;
8986 wxRegionIterator *result = 0 ;
8987 void *argp1 = 0 ;
8988 int res1 = 0 ;
8989 PyObject * obj0 = 0 ;
8990 char * kwnames[] = {
8991 (char *) "region", NULL
8992 };
8993
8994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
8995 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
8996 if (!SWIG_IsOK(res1)) {
8997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
8998 }
8999 if (!argp1) {
9000 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
9001 }
9002 arg1 = reinterpret_cast< wxRegion * >(argp1);
9003 {
9004 if (!wxPyCheckForApp()) SWIG_fail;
9005 PyThreadState* __tstate = wxPyBeginAllowThreads();
9006 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
9007 wxPyEndAllowThreads(__tstate);
9008 if (PyErr_Occurred()) SWIG_fail;
9009 }
9010 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
9011 return resultobj;
9012 fail:
9013 return NULL;
9014 }
9015
9016
9017 SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9018 PyObject *resultobj = 0;
9019 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9020 void *argp1 = 0 ;
9021 int res1 = 0 ;
9022 PyObject *swig_obj[1] ;
9023
9024 if (!args) SWIG_fail;
9025 swig_obj[0] = args;
9026 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
9027 if (!SWIG_IsOK(res1)) {
9028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9029 }
9030 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9031 {
9032 PyThreadState* __tstate = wxPyBeginAllowThreads();
9033 delete arg1;
9034
9035 wxPyEndAllowThreads(__tstate);
9036 if (PyErr_Occurred()) SWIG_fail;
9037 }
9038 resultobj = SWIG_Py_Void();
9039 return resultobj;
9040 fail:
9041 return NULL;
9042 }
9043
9044
9045 SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9046 PyObject *resultobj = 0;
9047 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9048 int result;
9049 void *argp1 = 0 ;
9050 int res1 = 0 ;
9051 PyObject *swig_obj[1] ;
9052
9053 if (!args) SWIG_fail;
9054 swig_obj[0] = args;
9055 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9056 if (!SWIG_IsOK(res1)) {
9057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9058 }
9059 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9060 {
9061 PyThreadState* __tstate = wxPyBeginAllowThreads();
9062 result = (int)(arg1)->GetX();
9063 wxPyEndAllowThreads(__tstate);
9064 if (PyErr_Occurred()) SWIG_fail;
9065 }
9066 resultobj = SWIG_From_int(static_cast< int >(result));
9067 return resultobj;
9068 fail:
9069 return NULL;
9070 }
9071
9072
9073 SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9074 PyObject *resultobj = 0;
9075 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9076 int result;
9077 void *argp1 = 0 ;
9078 int res1 = 0 ;
9079 PyObject *swig_obj[1] ;
9080
9081 if (!args) SWIG_fail;
9082 swig_obj[0] = args;
9083 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9084 if (!SWIG_IsOK(res1)) {
9085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9086 }
9087 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9088 {
9089 PyThreadState* __tstate = wxPyBeginAllowThreads();
9090 result = (int)(arg1)->GetY();
9091 wxPyEndAllowThreads(__tstate);
9092 if (PyErr_Occurred()) SWIG_fail;
9093 }
9094 resultobj = SWIG_From_int(static_cast< int >(result));
9095 return resultobj;
9096 fail:
9097 return NULL;
9098 }
9099
9100
9101 SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9102 PyObject *resultobj = 0;
9103 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9104 int result;
9105 void *argp1 = 0 ;
9106 int res1 = 0 ;
9107 PyObject *swig_obj[1] ;
9108
9109 if (!args) SWIG_fail;
9110 swig_obj[0] = args;
9111 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9112 if (!SWIG_IsOK(res1)) {
9113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9114 }
9115 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9116 {
9117 PyThreadState* __tstate = wxPyBeginAllowThreads();
9118 result = (int)(arg1)->GetW();
9119 wxPyEndAllowThreads(__tstate);
9120 if (PyErr_Occurred()) SWIG_fail;
9121 }
9122 resultobj = SWIG_From_int(static_cast< int >(result));
9123 return resultobj;
9124 fail:
9125 return NULL;
9126 }
9127
9128
9129 SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9130 PyObject *resultobj = 0;
9131 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9132 int result;
9133 void *argp1 = 0 ;
9134 int res1 = 0 ;
9135 PyObject *swig_obj[1] ;
9136
9137 if (!args) SWIG_fail;
9138 swig_obj[0] = args;
9139 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9140 if (!SWIG_IsOK(res1)) {
9141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9142 }
9143 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9144 {
9145 PyThreadState* __tstate = wxPyBeginAllowThreads();
9146 result = (int)(arg1)->GetWidth();
9147 wxPyEndAllowThreads(__tstate);
9148 if (PyErr_Occurred()) SWIG_fail;
9149 }
9150 resultobj = SWIG_From_int(static_cast< int >(result));
9151 return resultobj;
9152 fail:
9153 return NULL;
9154 }
9155
9156
9157 SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9158 PyObject *resultobj = 0;
9159 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9160 int result;
9161 void *argp1 = 0 ;
9162 int res1 = 0 ;
9163 PyObject *swig_obj[1] ;
9164
9165 if (!args) SWIG_fail;
9166 swig_obj[0] = args;
9167 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9168 if (!SWIG_IsOK(res1)) {
9169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9170 }
9171 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9172 {
9173 PyThreadState* __tstate = wxPyBeginAllowThreads();
9174 result = (int)(arg1)->GetH();
9175 wxPyEndAllowThreads(__tstate);
9176 if (PyErr_Occurred()) SWIG_fail;
9177 }
9178 resultobj = SWIG_From_int(static_cast< int >(result));
9179 return resultobj;
9180 fail:
9181 return NULL;
9182 }
9183
9184
9185 SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9186 PyObject *resultobj = 0;
9187 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9188 int result;
9189 void *argp1 = 0 ;
9190 int res1 = 0 ;
9191 PyObject *swig_obj[1] ;
9192
9193 if (!args) SWIG_fail;
9194 swig_obj[0] = args;
9195 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9196 if (!SWIG_IsOK(res1)) {
9197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9198 }
9199 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9200 {
9201 PyThreadState* __tstate = wxPyBeginAllowThreads();
9202 result = (int)(arg1)->GetHeight();
9203 wxPyEndAllowThreads(__tstate);
9204 if (PyErr_Occurred()) SWIG_fail;
9205 }
9206 resultobj = SWIG_From_int(static_cast< int >(result));
9207 return resultobj;
9208 fail:
9209 return NULL;
9210 }
9211
9212
9213 SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9214 PyObject *resultobj = 0;
9215 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9216 wxRect result;
9217 void *argp1 = 0 ;
9218 int res1 = 0 ;
9219 PyObject *swig_obj[1] ;
9220
9221 if (!args) SWIG_fail;
9222 swig_obj[0] = args;
9223 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9224 if (!SWIG_IsOK(res1)) {
9225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9226 }
9227 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9228 {
9229 PyThreadState* __tstate = wxPyBeginAllowThreads();
9230 result = (arg1)->GetRect();
9231 wxPyEndAllowThreads(__tstate);
9232 if (PyErr_Occurred()) SWIG_fail;
9233 }
9234 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
9235 return resultobj;
9236 fail:
9237 return NULL;
9238 }
9239
9240
9241 SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9242 PyObject *resultobj = 0;
9243 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9244 bool result;
9245 void *argp1 = 0 ;
9246 int res1 = 0 ;
9247 PyObject *swig_obj[1] ;
9248
9249 if (!args) SWIG_fail;
9250 swig_obj[0] = args;
9251 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9252 if (!SWIG_IsOK(res1)) {
9253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9254 }
9255 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9256 {
9257 PyThreadState* __tstate = wxPyBeginAllowThreads();
9258 result = (bool)(arg1)->HaveRects();
9259 wxPyEndAllowThreads(__tstate);
9260 if (PyErr_Occurred()) SWIG_fail;
9261 }
9262 {
9263 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9264 }
9265 return resultobj;
9266 fail:
9267 return NULL;
9268 }
9269
9270
9271 SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9272 PyObject *resultobj = 0;
9273 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9274 void *argp1 = 0 ;
9275 int res1 = 0 ;
9276 PyObject *swig_obj[1] ;
9277
9278 if (!args) SWIG_fail;
9279 swig_obj[0] = args;
9280 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9281 if (!SWIG_IsOK(res1)) {
9282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9283 }
9284 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9285 {
9286 PyThreadState* __tstate = wxPyBeginAllowThreads();
9287 (arg1)->Reset();
9288 wxPyEndAllowThreads(__tstate);
9289 if (PyErr_Occurred()) SWIG_fail;
9290 }
9291 resultobj = SWIG_Py_Void();
9292 return resultobj;
9293 fail:
9294 return NULL;
9295 }
9296
9297
9298 SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9299 PyObject *resultobj = 0;
9300 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9301 void *argp1 = 0 ;
9302 int res1 = 0 ;
9303 PyObject *swig_obj[1] ;
9304
9305 if (!args) SWIG_fail;
9306 swig_obj[0] = args;
9307 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9308 if (!SWIG_IsOK(res1)) {
9309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9310 }
9311 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9312 {
9313 PyThreadState* __tstate = wxPyBeginAllowThreads();
9314 wxRegionIterator_Next(arg1);
9315 wxPyEndAllowThreads(__tstate);
9316 if (PyErr_Occurred()) SWIG_fail;
9317 }
9318 resultobj = SWIG_Py_Void();
9319 return resultobj;
9320 fail:
9321 return NULL;
9322 }
9323
9324
9325 SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9326 PyObject *resultobj = 0;
9327 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9328 bool result;
9329 void *argp1 = 0 ;
9330 int res1 = 0 ;
9331 PyObject *swig_obj[1] ;
9332
9333 if (!args) SWIG_fail;
9334 swig_obj[0] = args;
9335 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9336 if (!SWIG_IsOK(res1)) {
9337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9338 }
9339 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9340 {
9341 PyThreadState* __tstate = wxPyBeginAllowThreads();
9342 result = (bool)wxRegionIterator___nonzero__(arg1);
9343 wxPyEndAllowThreads(__tstate);
9344 if (PyErr_Occurred()) SWIG_fail;
9345 }
9346 {
9347 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9348 }
9349 return resultobj;
9350 fail:
9351 return NULL;
9352 }
9353
9354
9355 SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9356 PyObject *obj;
9357 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9358 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
9359 return SWIG_Py_Void();
9360 }
9361
9362 SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9363 return SWIG_Python_InitShadowInstance(args);
9364 }
9365
9366 SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9367 PyObject *resultobj = 0;
9368 wxNativeFontInfo *result = 0 ;
9369
9370 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
9371 {
9372 PyThreadState* __tstate = wxPyBeginAllowThreads();
9373 result = (wxNativeFontInfo *)new wxNativeFontInfo();
9374 wxPyEndAllowThreads(__tstate);
9375 if (PyErr_Occurred()) SWIG_fail;
9376 }
9377 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
9378 return resultobj;
9379 fail:
9380 return NULL;
9381 }
9382
9383
9384 SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9385 PyObject *resultobj = 0;
9386 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9387 void *argp1 = 0 ;
9388 int res1 = 0 ;
9389 PyObject *swig_obj[1] ;
9390
9391 if (!args) SWIG_fail;
9392 swig_obj[0] = args;
9393 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
9394 if (!SWIG_IsOK(res1)) {
9395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9396 }
9397 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9398 {
9399 PyThreadState* __tstate = wxPyBeginAllowThreads();
9400 delete arg1;
9401
9402 wxPyEndAllowThreads(__tstate);
9403 if (PyErr_Occurred()) SWIG_fail;
9404 }
9405 resultobj = SWIG_Py_Void();
9406 return resultobj;
9407 fail:
9408 return NULL;
9409 }
9410
9411
9412 SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9413 PyObject *resultobj = 0;
9414 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9415 void *argp1 = 0 ;
9416 int res1 = 0 ;
9417 PyObject *swig_obj[1] ;
9418
9419 if (!args) SWIG_fail;
9420 swig_obj[0] = args;
9421 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9422 if (!SWIG_IsOK(res1)) {
9423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9424 }
9425 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9426 {
9427 PyThreadState* __tstate = wxPyBeginAllowThreads();
9428 (arg1)->Init();
9429 wxPyEndAllowThreads(__tstate);
9430 if (PyErr_Occurred()) SWIG_fail;
9431 }
9432 resultobj = SWIG_Py_Void();
9433 return resultobj;
9434 fail:
9435 return NULL;
9436 }
9437
9438
9439 SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9440 PyObject *resultobj = 0;
9441 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9442 wxFont *arg2 = 0 ;
9443 void *argp1 = 0 ;
9444 int res1 = 0 ;
9445 void *argp2 = 0 ;
9446 int res2 = 0 ;
9447 PyObject * obj0 = 0 ;
9448 PyObject * obj1 = 0 ;
9449 char * kwnames[] = {
9450 (char *) "self",(char *) "font", NULL
9451 };
9452
9453 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
9454 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9455 if (!SWIG_IsOK(res1)) {
9456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9457 }
9458 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9459 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
9460 if (!SWIG_IsOK(res2)) {
9461 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
9462 }
9463 if (!argp2) {
9464 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
9465 }
9466 arg2 = reinterpret_cast< wxFont * >(argp2);
9467 {
9468 PyThreadState* __tstate = wxPyBeginAllowThreads();
9469 (arg1)->InitFromFont((wxFont const &)*arg2);
9470 wxPyEndAllowThreads(__tstate);
9471 if (PyErr_Occurred()) SWIG_fail;
9472 }
9473 resultobj = SWIG_Py_Void();
9474 return resultobj;
9475 fail:
9476 return NULL;
9477 }
9478
9479
9480 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9481 PyObject *resultobj = 0;
9482 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9483 int result;
9484 void *argp1 = 0 ;
9485 int res1 = 0 ;
9486 PyObject *swig_obj[1] ;
9487
9488 if (!args) SWIG_fail;
9489 swig_obj[0] = args;
9490 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9491 if (!SWIG_IsOK(res1)) {
9492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
9493 }
9494 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9495 {
9496 PyThreadState* __tstate = wxPyBeginAllowThreads();
9497 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
9498 wxPyEndAllowThreads(__tstate);
9499 if (PyErr_Occurred()) SWIG_fail;
9500 }
9501 resultobj = SWIG_From_int(static_cast< int >(result));
9502 return resultobj;
9503 fail:
9504 return NULL;
9505 }
9506
9507
9508 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9509 PyObject *resultobj = 0;
9510 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9511 wxFontStyle result;
9512 void *argp1 = 0 ;
9513 int res1 = 0 ;
9514 PyObject *swig_obj[1] ;
9515
9516 if (!args) SWIG_fail;
9517 swig_obj[0] = args;
9518 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9519 if (!SWIG_IsOK(res1)) {
9520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
9521 }
9522 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9523 {
9524 PyThreadState* __tstate = wxPyBeginAllowThreads();
9525 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
9526 wxPyEndAllowThreads(__tstate);
9527 if (PyErr_Occurred()) SWIG_fail;
9528 }
9529 resultobj = SWIG_From_int(static_cast< int >(result));
9530 return resultobj;
9531 fail:
9532 return NULL;
9533 }
9534
9535
9536 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9537 PyObject *resultobj = 0;
9538 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9539 wxFontWeight result;
9540 void *argp1 = 0 ;
9541 int res1 = 0 ;
9542 PyObject *swig_obj[1] ;
9543
9544 if (!args) SWIG_fail;
9545 swig_obj[0] = args;
9546 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9547 if (!SWIG_IsOK(res1)) {
9548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
9549 }
9550 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9551 {
9552 PyThreadState* __tstate = wxPyBeginAllowThreads();
9553 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
9554 wxPyEndAllowThreads(__tstate);
9555 if (PyErr_Occurred()) SWIG_fail;
9556 }
9557 resultobj = SWIG_From_int(static_cast< int >(result));
9558 return resultobj;
9559 fail:
9560 return NULL;
9561 }
9562
9563
9564 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9565 PyObject *resultobj = 0;
9566 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9567 bool result;
9568 void *argp1 = 0 ;
9569 int res1 = 0 ;
9570 PyObject *swig_obj[1] ;
9571
9572 if (!args) SWIG_fail;
9573 swig_obj[0] = args;
9574 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9575 if (!SWIG_IsOK(res1)) {
9576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
9577 }
9578 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9579 {
9580 PyThreadState* __tstate = wxPyBeginAllowThreads();
9581 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
9582 wxPyEndAllowThreads(__tstate);
9583 if (PyErr_Occurred()) SWIG_fail;
9584 }
9585 {
9586 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9587 }
9588 return resultobj;
9589 fail:
9590 return NULL;
9591 }
9592
9593
9594 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9595 PyObject *resultobj = 0;
9596 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9597 wxString result;
9598 void *argp1 = 0 ;
9599 int res1 = 0 ;
9600 PyObject *swig_obj[1] ;
9601
9602 if (!args) SWIG_fail;
9603 swig_obj[0] = args;
9604 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9605 if (!SWIG_IsOK(res1)) {
9606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
9607 }
9608 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9609 {
9610 PyThreadState* __tstate = wxPyBeginAllowThreads();
9611 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
9612 wxPyEndAllowThreads(__tstate);
9613 if (PyErr_Occurred()) SWIG_fail;
9614 }
9615 {
9616 #if wxUSE_UNICODE
9617 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9618 #else
9619 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9620 #endif
9621 }
9622 return resultobj;
9623 fail:
9624 return NULL;
9625 }
9626
9627
9628 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9629 PyObject *resultobj = 0;
9630 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9631 wxFontFamily result;
9632 void *argp1 = 0 ;
9633 int res1 = 0 ;
9634 PyObject *swig_obj[1] ;
9635
9636 if (!args) SWIG_fail;
9637 swig_obj[0] = args;
9638 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9639 if (!SWIG_IsOK(res1)) {
9640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
9641 }
9642 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9643 {
9644 PyThreadState* __tstate = wxPyBeginAllowThreads();
9645 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
9646 wxPyEndAllowThreads(__tstate);
9647 if (PyErr_Occurred()) SWIG_fail;
9648 }
9649 resultobj = SWIG_From_int(static_cast< int >(result));
9650 return resultobj;
9651 fail:
9652 return NULL;
9653 }
9654
9655
9656 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9657 PyObject *resultobj = 0;
9658 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9659 wxFontEncoding result;
9660 void *argp1 = 0 ;
9661 int res1 = 0 ;
9662 PyObject *swig_obj[1] ;
9663
9664 if (!args) SWIG_fail;
9665 swig_obj[0] = args;
9666 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9667 if (!SWIG_IsOK(res1)) {
9668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
9669 }
9670 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9671 {
9672 PyThreadState* __tstate = wxPyBeginAllowThreads();
9673 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
9674 wxPyEndAllowThreads(__tstate);
9675 if (PyErr_Occurred()) SWIG_fail;
9676 }
9677 resultobj = SWIG_From_int(static_cast< int >(result));
9678 return resultobj;
9679 fail:
9680 return NULL;
9681 }
9682
9683
9684 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9685 PyObject *resultobj = 0;
9686 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9687 int arg2 ;
9688 void *argp1 = 0 ;
9689 int res1 = 0 ;
9690 int val2 ;
9691 int ecode2 = 0 ;
9692 PyObject * obj0 = 0 ;
9693 PyObject * obj1 = 0 ;
9694 char * kwnames[] = {
9695 (char *) "self",(char *) "pointsize", NULL
9696 };
9697
9698 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
9699 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9700 if (!SWIG_IsOK(res1)) {
9701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9702 }
9703 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9704 ecode2 = SWIG_AsVal_int(obj1, &val2);
9705 if (!SWIG_IsOK(ecode2)) {
9706 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
9707 }
9708 arg2 = static_cast< int >(val2);
9709 {
9710 PyThreadState* __tstate = wxPyBeginAllowThreads();
9711 (arg1)->SetPointSize(arg2);
9712 wxPyEndAllowThreads(__tstate);
9713 if (PyErr_Occurred()) SWIG_fail;
9714 }
9715 resultobj = SWIG_Py_Void();
9716 return resultobj;
9717 fail:
9718 return NULL;
9719 }
9720
9721
9722 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9723 PyObject *resultobj = 0;
9724 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9725 wxFontStyle arg2 ;
9726 void *argp1 = 0 ;
9727 int res1 = 0 ;
9728 int val2 ;
9729 int ecode2 = 0 ;
9730 PyObject * obj0 = 0 ;
9731 PyObject * obj1 = 0 ;
9732 char * kwnames[] = {
9733 (char *) "self",(char *) "style", NULL
9734 };
9735
9736 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
9737 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9738 if (!SWIG_IsOK(res1)) {
9739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9740 }
9741 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9742 ecode2 = SWIG_AsVal_int(obj1, &val2);
9743 if (!SWIG_IsOK(ecode2)) {
9744 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
9745 }
9746 arg2 = static_cast< wxFontStyle >(val2);
9747 {
9748 PyThreadState* __tstate = wxPyBeginAllowThreads();
9749 (arg1)->SetStyle(arg2);
9750 wxPyEndAllowThreads(__tstate);
9751 if (PyErr_Occurred()) SWIG_fail;
9752 }
9753 resultobj = SWIG_Py_Void();
9754 return resultobj;
9755 fail:
9756 return NULL;
9757 }
9758
9759
9760 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9761 PyObject *resultobj = 0;
9762 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9763 wxFontWeight arg2 ;
9764 void *argp1 = 0 ;
9765 int res1 = 0 ;
9766 int val2 ;
9767 int ecode2 = 0 ;
9768 PyObject * obj0 = 0 ;
9769 PyObject * obj1 = 0 ;
9770 char * kwnames[] = {
9771 (char *) "self",(char *) "weight", NULL
9772 };
9773
9774 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
9775 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9776 if (!SWIG_IsOK(res1)) {
9777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9778 }
9779 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9780 ecode2 = SWIG_AsVal_int(obj1, &val2);
9781 if (!SWIG_IsOK(ecode2)) {
9782 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
9783 }
9784 arg2 = static_cast< wxFontWeight >(val2);
9785 {
9786 PyThreadState* __tstate = wxPyBeginAllowThreads();
9787 (arg1)->SetWeight(arg2);
9788 wxPyEndAllowThreads(__tstate);
9789 if (PyErr_Occurred()) SWIG_fail;
9790 }
9791 resultobj = SWIG_Py_Void();
9792 return resultobj;
9793 fail:
9794 return NULL;
9795 }
9796
9797
9798 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9799 PyObject *resultobj = 0;
9800 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9801 bool arg2 ;
9802 void *argp1 = 0 ;
9803 int res1 = 0 ;
9804 bool val2 ;
9805 int ecode2 = 0 ;
9806 PyObject * obj0 = 0 ;
9807 PyObject * obj1 = 0 ;
9808 char * kwnames[] = {
9809 (char *) "self",(char *) "underlined", NULL
9810 };
9811
9812 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
9813 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9814 if (!SWIG_IsOK(res1)) {
9815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9816 }
9817 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9818 ecode2 = SWIG_AsVal_bool(obj1, &val2);
9819 if (!SWIG_IsOK(ecode2)) {
9820 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
9821 }
9822 arg2 = static_cast< bool >(val2);
9823 {
9824 PyThreadState* __tstate = wxPyBeginAllowThreads();
9825 (arg1)->SetUnderlined(arg2);
9826 wxPyEndAllowThreads(__tstate);
9827 if (PyErr_Occurred()) SWIG_fail;
9828 }
9829 resultobj = SWIG_Py_Void();
9830 return resultobj;
9831 fail:
9832 return NULL;
9833 }
9834
9835
9836 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9837 PyObject *resultobj = 0;
9838 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9839 wxString arg2 ;
9840 bool result;
9841 void *argp1 = 0 ;
9842 int res1 = 0 ;
9843 PyObject * obj0 = 0 ;
9844 PyObject * obj1 = 0 ;
9845 char * kwnames[] = {
9846 (char *) "self",(char *) "facename", NULL
9847 };
9848
9849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
9850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9851 if (!SWIG_IsOK(res1)) {
9852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9853 }
9854 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9855 {
9856 wxString* sptr = wxString_in_helper(obj1);
9857 if (sptr == NULL) SWIG_fail;
9858 arg2 = *sptr;
9859 delete sptr;
9860 }
9861 {
9862 PyThreadState* __tstate = wxPyBeginAllowThreads();
9863 result = (bool)(arg1)->SetFaceName(arg2);
9864 wxPyEndAllowThreads(__tstate);
9865 if (PyErr_Occurred()) SWIG_fail;
9866 }
9867 {
9868 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9869 }
9870 return resultobj;
9871 fail:
9872 return NULL;
9873 }
9874
9875
9876 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9877 PyObject *resultobj = 0;
9878 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9879 wxFontFamily arg2 ;
9880 void *argp1 = 0 ;
9881 int res1 = 0 ;
9882 int val2 ;
9883 int ecode2 = 0 ;
9884 PyObject * obj0 = 0 ;
9885 PyObject * obj1 = 0 ;
9886 char * kwnames[] = {
9887 (char *) "self",(char *) "family", NULL
9888 };
9889
9890 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
9891 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9892 if (!SWIG_IsOK(res1)) {
9893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9894 }
9895 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9896 ecode2 = SWIG_AsVal_int(obj1, &val2);
9897 if (!SWIG_IsOK(ecode2)) {
9898 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
9899 }
9900 arg2 = static_cast< wxFontFamily >(val2);
9901 {
9902 PyThreadState* __tstate = wxPyBeginAllowThreads();
9903 (arg1)->SetFamily(arg2);
9904 wxPyEndAllowThreads(__tstate);
9905 if (PyErr_Occurred()) SWIG_fail;
9906 }
9907 resultobj = SWIG_Py_Void();
9908 return resultobj;
9909 fail:
9910 return NULL;
9911 }
9912
9913
9914 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9915 PyObject *resultobj = 0;
9916 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9917 wxFontEncoding arg2 ;
9918 void *argp1 = 0 ;
9919 int res1 = 0 ;
9920 int val2 ;
9921 int ecode2 = 0 ;
9922 PyObject * obj0 = 0 ;
9923 PyObject * obj1 = 0 ;
9924 char * kwnames[] = {
9925 (char *) "self",(char *) "encoding", NULL
9926 };
9927
9928 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
9929 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9930 if (!SWIG_IsOK(res1)) {
9931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9932 }
9933 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9934 ecode2 = SWIG_AsVal_int(obj1, &val2);
9935 if (!SWIG_IsOK(ecode2)) {
9936 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
9937 }
9938 arg2 = static_cast< wxFontEncoding >(val2);
9939 {
9940 PyThreadState* __tstate = wxPyBeginAllowThreads();
9941 (arg1)->SetEncoding(arg2);
9942 wxPyEndAllowThreads(__tstate);
9943 if (PyErr_Occurred()) SWIG_fail;
9944 }
9945 resultobj = SWIG_Py_Void();
9946 return resultobj;
9947 fail:
9948 return NULL;
9949 }
9950
9951
9952 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9953 PyObject *resultobj = 0;
9954 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9955 wxString *arg2 = 0 ;
9956 bool result;
9957 void *argp1 = 0 ;
9958 int res1 = 0 ;
9959 bool temp2 = false ;
9960 PyObject * obj0 = 0 ;
9961 PyObject * obj1 = 0 ;
9962 char * kwnames[] = {
9963 (char *) "self",(char *) "s", NULL
9964 };
9965
9966 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
9967 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9968 if (!SWIG_IsOK(res1)) {
9969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9970 }
9971 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9972 {
9973 arg2 = wxString_in_helper(obj1);
9974 if (arg2 == NULL) SWIG_fail;
9975 temp2 = true;
9976 }
9977 {
9978 PyThreadState* __tstate = wxPyBeginAllowThreads();
9979 result = (bool)(arg1)->FromString((wxString const &)*arg2);
9980 wxPyEndAllowThreads(__tstate);
9981 if (PyErr_Occurred()) SWIG_fail;
9982 }
9983 {
9984 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9985 }
9986 {
9987 if (temp2)
9988 delete arg2;
9989 }
9990 return resultobj;
9991 fail:
9992 {
9993 if (temp2)
9994 delete arg2;
9995 }
9996 return NULL;
9997 }
9998
9999
10000 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10001 PyObject *resultobj = 0;
10002 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10003 wxString result;
10004 void *argp1 = 0 ;
10005 int res1 = 0 ;
10006 PyObject *swig_obj[1] ;
10007
10008 if (!args) SWIG_fail;
10009 swig_obj[0] = args;
10010 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10011 if (!SWIG_IsOK(res1)) {
10012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10013 }
10014 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10015 {
10016 PyThreadState* __tstate = wxPyBeginAllowThreads();
10017 result = ((wxNativeFontInfo const *)arg1)->ToString();
10018 wxPyEndAllowThreads(__tstate);
10019 if (PyErr_Occurred()) SWIG_fail;
10020 }
10021 {
10022 #if wxUSE_UNICODE
10023 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10024 #else
10025 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10026 #endif
10027 }
10028 return resultobj;
10029 fail:
10030 return NULL;
10031 }
10032
10033
10034 SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10035 PyObject *resultobj = 0;
10036 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10037 wxString result;
10038 void *argp1 = 0 ;
10039 int res1 = 0 ;
10040 PyObject *swig_obj[1] ;
10041
10042 if (!args) SWIG_fail;
10043 swig_obj[0] = args;
10044 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10045 if (!SWIG_IsOK(res1)) {
10046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10047 }
10048 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10049 {
10050 PyThreadState* __tstate = wxPyBeginAllowThreads();
10051 result = wxNativeFontInfo___str__(arg1);
10052 wxPyEndAllowThreads(__tstate);
10053 if (PyErr_Occurred()) SWIG_fail;
10054 }
10055 {
10056 #if wxUSE_UNICODE
10057 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10058 #else
10059 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10060 #endif
10061 }
10062 return resultobj;
10063 fail:
10064 return NULL;
10065 }
10066
10067
10068 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10069 PyObject *resultobj = 0;
10070 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10071 wxString *arg2 = 0 ;
10072 bool result;
10073 void *argp1 = 0 ;
10074 int res1 = 0 ;
10075 bool temp2 = false ;
10076 PyObject * obj0 = 0 ;
10077 PyObject * obj1 = 0 ;
10078 char * kwnames[] = {
10079 (char *) "self",(char *) "s", NULL
10080 };
10081
10082 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
10083 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10084 if (!SWIG_IsOK(res1)) {
10085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10086 }
10087 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10088 {
10089 arg2 = wxString_in_helper(obj1);
10090 if (arg2 == NULL) SWIG_fail;
10091 temp2 = true;
10092 }
10093 {
10094 PyThreadState* __tstate = wxPyBeginAllowThreads();
10095 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
10096 wxPyEndAllowThreads(__tstate);
10097 if (PyErr_Occurred()) SWIG_fail;
10098 }
10099 {
10100 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10101 }
10102 {
10103 if (temp2)
10104 delete arg2;
10105 }
10106 return resultobj;
10107 fail:
10108 {
10109 if (temp2)
10110 delete arg2;
10111 }
10112 return NULL;
10113 }
10114
10115
10116 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10117 PyObject *resultobj = 0;
10118 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10119 wxString result;
10120 void *argp1 = 0 ;
10121 int res1 = 0 ;
10122 PyObject *swig_obj[1] ;
10123
10124 if (!args) SWIG_fail;
10125 swig_obj[0] = args;
10126 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10127 if (!SWIG_IsOK(res1)) {
10128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10129 }
10130 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10131 {
10132 PyThreadState* __tstate = wxPyBeginAllowThreads();
10133 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
10134 wxPyEndAllowThreads(__tstate);
10135 if (PyErr_Occurred()) SWIG_fail;
10136 }
10137 {
10138 #if wxUSE_UNICODE
10139 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10140 #else
10141 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10142 #endif
10143 }
10144 return resultobj;
10145 fail:
10146 return NULL;
10147 }
10148
10149
10150 SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10151 PyObject *obj;
10152 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10153 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
10154 return SWIG_Py_Void();
10155 }
10156
10157 SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10158 return SWIG_Python_InitShadowInstance(args);
10159 }
10160
10161 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10162 PyObject *resultobj = 0;
10163 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10164 wxString *arg2 = (wxString *) 0 ;
10165 void *argp1 = 0 ;
10166 int res1 = 0 ;
10167 bool temp2 = false ;
10168 PyObject *swig_obj[2] ;
10169
10170 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
10171 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10172 if (!SWIG_IsOK(res1)) {
10173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10174 }
10175 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10176 {
10177 arg2 = wxString_in_helper(swig_obj[1]);
10178 if (arg2 == NULL) SWIG_fail;
10179 temp2 = true;
10180 }
10181 if (arg1) (arg1)->facename = *arg2;
10182
10183 resultobj = SWIG_Py_Void();
10184 {
10185 if (temp2)
10186 delete arg2;
10187 }
10188 return resultobj;
10189 fail:
10190 {
10191 if (temp2)
10192 delete arg2;
10193 }
10194 return NULL;
10195 }
10196
10197
10198 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10199 PyObject *resultobj = 0;
10200 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10201 wxString *result = 0 ;
10202 void *argp1 = 0 ;
10203 int res1 = 0 ;
10204 PyObject *swig_obj[1] ;
10205
10206 if (!args) SWIG_fail;
10207 swig_obj[0] = args;
10208 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10209 if (!SWIG_IsOK(res1)) {
10210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10211 }
10212 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10213 result = (wxString *)& ((arg1)->facename);
10214 {
10215 #if wxUSE_UNICODE
10216 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
10217 #else
10218 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
10219 #endif
10220 }
10221 return resultobj;
10222 fail:
10223 return NULL;
10224 }
10225
10226
10227 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10228 PyObject *resultobj = 0;
10229 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10230 wxFontEncoding arg2 ;
10231 void *argp1 = 0 ;
10232 int res1 = 0 ;
10233 int val2 ;
10234 int ecode2 = 0 ;
10235 PyObject *swig_obj[2] ;
10236
10237 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
10238 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10239 if (!SWIG_IsOK(res1)) {
10240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10241 }
10242 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10243 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
10244 if (!SWIG_IsOK(ecode2)) {
10245 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
10246 }
10247 arg2 = static_cast< wxFontEncoding >(val2);
10248 if (arg1) (arg1)->encoding = arg2;
10249
10250 resultobj = SWIG_Py_Void();
10251 return resultobj;
10252 fail:
10253 return NULL;
10254 }
10255
10256
10257 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10258 PyObject *resultobj = 0;
10259 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10260 wxFontEncoding result;
10261 void *argp1 = 0 ;
10262 int res1 = 0 ;
10263 PyObject *swig_obj[1] ;
10264
10265 if (!args) SWIG_fail;
10266 swig_obj[0] = args;
10267 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10268 if (!SWIG_IsOK(res1)) {
10269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10270 }
10271 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10272 result = (wxFontEncoding) ((arg1)->encoding);
10273 resultobj = SWIG_From_int(static_cast< int >(result));
10274 return resultobj;
10275 fail:
10276 return NULL;
10277 }
10278
10279
10280 SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10281 PyObject *resultobj = 0;
10282 wxNativeEncodingInfo *result = 0 ;
10283
10284 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
10285 {
10286 PyThreadState* __tstate = wxPyBeginAllowThreads();
10287 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
10288 wxPyEndAllowThreads(__tstate);
10289 if (PyErr_Occurred()) SWIG_fail;
10290 }
10291 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
10292 return resultobj;
10293 fail:
10294 return NULL;
10295 }
10296
10297
10298 SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10299 PyObject *resultobj = 0;
10300 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10301 void *argp1 = 0 ;
10302 int res1 = 0 ;
10303 PyObject *swig_obj[1] ;
10304
10305 if (!args) SWIG_fail;
10306 swig_obj[0] = args;
10307 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
10308 if (!SWIG_IsOK(res1)) {
10309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10310 }
10311 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10312 {
10313 PyThreadState* __tstate = wxPyBeginAllowThreads();
10314 delete arg1;
10315
10316 wxPyEndAllowThreads(__tstate);
10317 if (PyErr_Occurred()) SWIG_fail;
10318 }
10319 resultobj = SWIG_Py_Void();
10320 return resultobj;
10321 fail:
10322 return NULL;
10323 }
10324
10325
10326 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10327 PyObject *resultobj = 0;
10328 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10329 wxString *arg2 = 0 ;
10330 bool result;
10331 void *argp1 = 0 ;
10332 int res1 = 0 ;
10333 bool temp2 = false ;
10334 PyObject * obj0 = 0 ;
10335 PyObject * obj1 = 0 ;
10336 char * kwnames[] = {
10337 (char *) "self",(char *) "s", NULL
10338 };
10339
10340 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
10341 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10342 if (!SWIG_IsOK(res1)) {
10343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10344 }
10345 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10346 {
10347 arg2 = wxString_in_helper(obj1);
10348 if (arg2 == NULL) SWIG_fail;
10349 temp2 = true;
10350 }
10351 {
10352 PyThreadState* __tstate = wxPyBeginAllowThreads();
10353 result = (bool)(arg1)->FromString((wxString const &)*arg2);
10354 wxPyEndAllowThreads(__tstate);
10355 if (PyErr_Occurred()) SWIG_fail;
10356 }
10357 {
10358 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10359 }
10360 {
10361 if (temp2)
10362 delete arg2;
10363 }
10364 return resultobj;
10365 fail:
10366 {
10367 if (temp2)
10368 delete arg2;
10369 }
10370 return NULL;
10371 }
10372
10373
10374 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10375 PyObject *resultobj = 0;
10376 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10377 wxString result;
10378 void *argp1 = 0 ;
10379 int res1 = 0 ;
10380 PyObject *swig_obj[1] ;
10381
10382 if (!args) SWIG_fail;
10383 swig_obj[0] = args;
10384 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10385 if (!SWIG_IsOK(res1)) {
10386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
10387 }
10388 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10389 {
10390 PyThreadState* __tstate = wxPyBeginAllowThreads();
10391 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
10392 wxPyEndAllowThreads(__tstate);
10393 if (PyErr_Occurred()) SWIG_fail;
10394 }
10395 {
10396 #if wxUSE_UNICODE
10397 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10398 #else
10399 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10400 #endif
10401 }
10402 return resultobj;
10403 fail:
10404 return NULL;
10405 }
10406
10407
10408 SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10409 PyObject *obj;
10410 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10411 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
10412 return SWIG_Py_Void();
10413 }
10414
10415 SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10416 return SWIG_Python_InitShadowInstance(args);
10417 }
10418
10419 SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10420 PyObject *resultobj = 0;
10421 wxFontEncoding arg1 ;
10422 wxNativeEncodingInfo *result = 0 ;
10423 int val1 ;
10424 int ecode1 = 0 ;
10425 PyObject * obj0 = 0 ;
10426 char * kwnames[] = {
10427 (char *) "encoding", NULL
10428 };
10429
10430 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
10431 ecode1 = SWIG_AsVal_int(obj0, &val1);
10432 if (!SWIG_IsOK(ecode1)) {
10433 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
10434 }
10435 arg1 = static_cast< wxFontEncoding >(val1);
10436 {
10437 PyThreadState* __tstate = wxPyBeginAllowThreads();
10438 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
10439 wxPyEndAllowThreads(__tstate);
10440 if (PyErr_Occurred()) SWIG_fail;
10441 }
10442 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10443 return resultobj;
10444 fail:
10445 return NULL;
10446 }
10447
10448
10449 SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10450 PyObject *resultobj = 0;
10451 wxNativeEncodingInfo *arg1 = 0 ;
10452 bool result;
10453 void *argp1 = 0 ;
10454 int res1 = 0 ;
10455 PyObject * obj0 = 0 ;
10456 char * kwnames[] = {
10457 (char *) "info", NULL
10458 };
10459
10460 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
10461 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
10462 if (!SWIG_IsOK(res1)) {
10463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
10464 }
10465 if (!argp1) {
10466 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
10467 }
10468 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10469 {
10470 PyThreadState* __tstate = wxPyBeginAllowThreads();
10471 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
10472 wxPyEndAllowThreads(__tstate);
10473 if (PyErr_Occurred()) SWIG_fail;
10474 }
10475 {
10476 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10477 }
10478 return resultobj;
10479 fail:
10480 return NULL;
10481 }
10482
10483
10484 SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10485 PyObject *resultobj = 0;
10486 wxFontMapper *result = 0 ;
10487
10488 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
10489 {
10490 PyThreadState* __tstate = wxPyBeginAllowThreads();
10491 result = (wxFontMapper *)new wxFontMapper();
10492 wxPyEndAllowThreads(__tstate);
10493 if (PyErr_Occurred()) SWIG_fail;
10494 }
10495 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
10496 return resultobj;
10497 fail:
10498 return NULL;
10499 }
10500
10501
10502 SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10503 PyObject *resultobj = 0;
10504 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10505 void *argp1 = 0 ;
10506 int res1 = 0 ;
10507 PyObject *swig_obj[1] ;
10508
10509 if (!args) SWIG_fail;
10510 swig_obj[0] = args;
10511 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
10512 if (!SWIG_IsOK(res1)) {
10513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
10514 }
10515 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
10516 {
10517 PyThreadState* __tstate = wxPyBeginAllowThreads();
10518 delete arg1;
10519
10520 wxPyEndAllowThreads(__tstate);
10521 if (PyErr_Occurred()) SWIG_fail;
10522 }
10523 resultobj = SWIG_Py_Void();
10524 return resultobj;
10525 fail:
10526 return NULL;
10527 }
10528
10529
10530 SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10531 PyObject *resultobj = 0;
10532 wxFontMapper *result = 0 ;
10533
10534 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
10535 {
10536 PyThreadState* __tstate = wxPyBeginAllowThreads();
10537 result = (wxFontMapper *)wxFontMapper::Get();
10538 wxPyEndAllowThreads(__tstate);
10539 if (PyErr_Occurred()) SWIG_fail;
10540 }
10541 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
10542 return resultobj;
10543 fail:
10544 return NULL;
10545 }
10546
10547
10548 SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10549 PyObject *resultobj = 0;
10550 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10551 wxFontMapper *result = 0 ;
10552 void *argp1 = 0 ;
10553 int res1 = 0 ;
10554 PyObject * obj0 = 0 ;
10555 char * kwnames[] = {
10556 (char *) "mapper", NULL
10557 };
10558
10559 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
10560 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
10561 if (!SWIG_IsOK(res1)) {
10562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
10563 }
10564 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
10565 {
10566 PyThreadState* __tstate = wxPyBeginAllowThreads();
10567 result = (wxFontMapper *)wxFontMapper::Set(arg1);
10568 wxPyEndAllowThreads(__tstate);
10569 if (PyErr_Occurred()) SWIG_fail;
10570 }
10571 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
10572 return resultobj;
10573 fail:
10574 return NULL;
10575 }
10576
10577
10578 SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10579 PyObject *resultobj = 0;
10580 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10581 wxString *arg2 = 0 ;
10582 bool arg3 = (bool) true ;
10583 wxFontEncoding result;
10584 void *argp1 = 0 ;
10585 int res1 = 0 ;
10586 bool temp2 = false ;
10587 bool val3 ;
10588 int ecode3 = 0 ;
10589 PyObject * obj0 = 0 ;
10590 PyObject * obj1 = 0 ;
10591 PyObject * obj2 = 0 ;
10592 char * kwnames[] = {
10593 (char *) "self",(char *) "charset",(char *) "interactive", NULL
10594 };
10595
10596 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10597 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
10598 if (!SWIG_IsOK(res1)) {
10599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
10600 }
10601 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
10602 {
10603 arg2 = wxString_in_helper(obj1);
10604 if (arg2 == NULL) SWIG_fail;
10605 temp2 = true;
10606 }
10607 if (obj2) {
10608 ecode3 = SWIG_AsVal_bool(obj2, &val3);
10609 if (!SWIG_IsOK(ecode3)) {
10610 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
10611 }
10612 arg3 = static_cast< bool >(val3);
10613 }
10614 {
10615 PyThreadState* __tstate = wxPyBeginAllowThreads();
10616 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
10617 wxPyEndAllowThreads(__tstate);
10618 if (PyErr_Occurred()) SWIG_fail;
10619 }
10620 resultobj = SWIG_From_int(static_cast< int >(result));
10621 {
10622 if (temp2)
10623 delete arg2;
10624 }
10625 return resultobj;
10626 fail:
10627 {
10628 if (temp2)
10629 delete arg2;
10630 }
10631 return NULL;
10632 }
10633
10634
10635 SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10636 PyObject *resultobj = 0;
10637 size_t result;
10638
10639 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
10640 {
10641 PyThreadState* __tstate = wxPyBeginAllowThreads();
10642 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
10643 wxPyEndAllowThreads(__tstate);
10644 if (PyErr_Occurred()) SWIG_fail;
10645 }
10646 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
10647 return resultobj;
10648 fail:
10649 return NULL;
10650 }
10651
10652
10653 SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10654 PyObject *resultobj = 0;
10655 size_t arg1 ;
10656 wxFontEncoding result;
10657 size_t val1 ;
10658 int ecode1 = 0 ;
10659 PyObject * obj0 = 0 ;
10660 char * kwnames[] = {
10661 (char *) "n", NULL
10662 };
10663
10664 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
10665 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
10666 if (!SWIG_IsOK(ecode1)) {
10667 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
10668 }
10669 arg1 = static_cast< size_t >(val1);
10670 {
10671 PyThreadState* __tstate = wxPyBeginAllowThreads();
10672 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
10673 wxPyEndAllowThreads(__tstate);
10674 if (PyErr_Occurred()) SWIG_fail;
10675 }
10676 resultobj = SWIG_From_int(static_cast< int >(result));
10677 return resultobj;
10678 fail:
10679 return NULL;
10680 }
10681
10682
10683 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10684 PyObject *resultobj = 0;
10685 wxFontEncoding arg1 ;
10686 wxString result;
10687 int val1 ;
10688 int ecode1 = 0 ;
10689 PyObject * obj0 = 0 ;
10690 char * kwnames[] = {
10691 (char *) "encoding", NULL
10692 };
10693
10694 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
10695 ecode1 = SWIG_AsVal_int(obj0, &val1);
10696 if (!SWIG_IsOK(ecode1)) {
10697 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
10698 }
10699 arg1 = static_cast< wxFontEncoding >(val1);
10700 {
10701 PyThreadState* __tstate = wxPyBeginAllowThreads();
10702 result = wxFontMapper::GetEncodingName(arg1);
10703 wxPyEndAllowThreads(__tstate);
10704 if (PyErr_Occurred()) SWIG_fail;
10705 }
10706 {
10707 #if wxUSE_UNICODE
10708 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10709 #else
10710 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10711 #endif
10712 }
10713 return resultobj;
10714 fail:
10715 return NULL;
10716 }
10717
10718
10719 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10720 PyObject *resultobj = 0;
10721 wxFontEncoding arg1 ;
10722 wxString result;
10723 int val1 ;
10724 int ecode1 = 0 ;
10725 PyObject * obj0 = 0 ;
10726 char * kwnames[] = {
10727 (char *) "encoding", NULL
10728 };
10729
10730 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
10731 ecode1 = SWIG_AsVal_int(obj0, &val1);
10732 if (!SWIG_IsOK(ecode1)) {
10733 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
10734 }
10735 arg1 = static_cast< wxFontEncoding >(val1);
10736 {
10737 PyThreadState* __tstate = wxPyBeginAllowThreads();
10738 result = wxFontMapper::GetEncodingDescription(arg1);
10739 wxPyEndAllowThreads(__tstate);
10740 if (PyErr_Occurred()) SWIG_fail;
10741 }
10742 {
10743 #if wxUSE_UNICODE
10744 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10745 #else
10746 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10747 #endif
10748 }
10749 return resultobj;
10750 fail:
10751 return NULL;
10752 }
10753
10754
10755 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10756 PyObject *resultobj = 0;
10757 wxString *arg1 = 0 ;
10758 wxFontEncoding result;
10759 bool temp1 = false ;
10760 PyObject * obj0 = 0 ;
10761 char * kwnames[] = {
10762 (char *) "name", NULL
10763 };
10764
10765 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
10766 {
10767 arg1 = wxString_in_helper(obj0);
10768 if (arg1 == NULL) SWIG_fail;
10769 temp1 = true;
10770 }
10771 {
10772 PyThreadState* __tstate = wxPyBeginAllowThreads();
10773 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
10774 wxPyEndAllowThreads(__tstate);
10775 if (PyErr_Occurred()) SWIG_fail;
10776 }
10777 resultobj = SWIG_From_int(static_cast< int >(result));
10778 {
10779 if (temp1)
10780 delete arg1;
10781 }
10782 return resultobj;
10783 fail:
10784 {
10785 if (temp1)
10786 delete arg1;
10787 }
10788 return NULL;
10789 }
10790
10791
10792 SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10793 PyObject *resultobj = 0;
10794 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10795 wxString *arg2 = 0 ;
10796 void *argp1 = 0 ;
10797 int res1 = 0 ;
10798 bool temp2 = false ;
10799 PyObject * obj0 = 0 ;
10800 PyObject * obj1 = 0 ;
10801 char * kwnames[] = {
10802 (char *) "self",(char *) "prefix", NULL
10803 };
10804
10805 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
10806 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
10807 if (!SWIG_IsOK(res1)) {
10808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
10809 }
10810 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
10811 {
10812 arg2 = wxString_in_helper(obj1);
10813 if (arg2 == NULL) SWIG_fail;
10814 temp2 = true;
10815 }
10816 {
10817 PyThreadState* __tstate = wxPyBeginAllowThreads();
10818 (arg1)->SetConfigPath((wxString const &)*arg2);
10819 wxPyEndAllowThreads(__tstate);
10820 if (PyErr_Occurred()) SWIG_fail;
10821 }
10822 resultobj = SWIG_Py_Void();
10823 {
10824 if (temp2)
10825 delete arg2;
10826 }
10827 return resultobj;
10828 fail:
10829 {
10830 if (temp2)
10831 delete arg2;
10832 }
10833 return NULL;
10834 }
10835
10836
10837 SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10838 PyObject *resultobj = 0;
10839 wxString result;
10840
10841 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
10842 {
10843 PyThreadState* __tstate = wxPyBeginAllowThreads();
10844 result = wxFontMapper::GetDefaultConfigPath();
10845 wxPyEndAllowThreads(__tstate);
10846 if (PyErr_Occurred()) SWIG_fail;
10847 }
10848 {
10849 #if wxUSE_UNICODE
10850 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10851 #else
10852 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10853 #endif
10854 }
10855 return resultobj;
10856 fail:
10857 return NULL;
10858 }
10859
10860
10861 SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10862 PyObject *resultobj = 0;
10863 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10864 wxFontEncoding arg2 ;
10865 wxString const &arg3_defvalue = wxPyEmptyString ;
10866 wxString *arg3 = (wxString *) &arg3_defvalue ;
10867 bool arg4 = (bool) true ;
10868 PyObject *result = 0 ;
10869 void *argp1 = 0 ;
10870 int res1 = 0 ;
10871 int val2 ;
10872 int ecode2 = 0 ;
10873 bool temp3 = false ;
10874 bool val4 ;
10875 int ecode4 = 0 ;
10876 PyObject * obj0 = 0 ;
10877 PyObject * obj1 = 0 ;
10878 PyObject * obj2 = 0 ;
10879 PyObject * obj3 = 0 ;
10880 char * kwnames[] = {
10881 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
10882 };
10883
10884 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10885 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
10886 if (!SWIG_IsOK(res1)) {
10887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
10888 }
10889 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
10890 ecode2 = SWIG_AsVal_int(obj1, &val2);
10891 if (!SWIG_IsOK(ecode2)) {
10892 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
10893 }
10894 arg2 = static_cast< wxFontEncoding >(val2);
10895 if (obj2) {
10896 {
10897 arg3 = wxString_in_helper(obj2);
10898 if (arg3 == NULL) SWIG_fail;
10899 temp3 = true;
10900 }
10901 }
10902 if (obj3) {
10903 ecode4 = SWIG_AsVal_bool(obj3, &val4);
10904 if (!SWIG_IsOK(ecode4)) {
10905 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
10906 }
10907 arg4 = static_cast< bool >(val4);
10908 }
10909 {
10910 PyThreadState* __tstate = wxPyBeginAllowThreads();
10911 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
10912 wxPyEndAllowThreads(__tstate);
10913 if (PyErr_Occurred()) SWIG_fail;
10914 }
10915 resultobj = result;
10916 {
10917 if (temp3)
10918 delete arg3;
10919 }
10920 return resultobj;
10921 fail:
10922 {
10923 if (temp3)
10924 delete arg3;
10925 }
10926 return NULL;
10927 }
10928
10929
10930 SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10931 PyObject *resultobj = 0;
10932 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10933 wxFontEncoding arg2 ;
10934 wxString const &arg3_defvalue = wxPyEmptyString ;
10935 wxString *arg3 = (wxString *) &arg3_defvalue ;
10936 bool result;
10937 void *argp1 = 0 ;
10938 int res1 = 0 ;
10939 int val2 ;
10940 int ecode2 = 0 ;
10941 bool temp3 = false ;
10942 PyObject * obj0 = 0 ;
10943 PyObject * obj1 = 0 ;
10944 PyObject * obj2 = 0 ;
10945 char * kwnames[] = {
10946 (char *) "self",(char *) "encoding",(char *) "facename", NULL
10947 };
10948
10949 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10950 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
10951 if (!SWIG_IsOK(res1)) {
10952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
10953 }
10954 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
10955 ecode2 = SWIG_AsVal_int(obj1, &val2);
10956 if (!SWIG_IsOK(ecode2)) {
10957 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
10958 }
10959 arg2 = static_cast< wxFontEncoding >(val2);
10960 if (obj2) {
10961 {
10962 arg3 = wxString_in_helper(obj2);
10963 if (arg3 == NULL) SWIG_fail;
10964 temp3 = true;
10965 }
10966 }
10967 {
10968 PyThreadState* __tstate = wxPyBeginAllowThreads();
10969 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
10970 wxPyEndAllowThreads(__tstate);
10971 if (PyErr_Occurred()) SWIG_fail;
10972 }
10973 {
10974 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10975 }
10976 {
10977 if (temp3)
10978 delete arg3;
10979 }
10980 return resultobj;
10981 fail:
10982 {
10983 if (temp3)
10984 delete arg3;
10985 }
10986 return NULL;
10987 }
10988
10989
10990 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10991 PyObject *resultobj = 0;
10992 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10993 wxWindow *arg2 = (wxWindow *) 0 ;
10994 void *argp1 = 0 ;
10995 int res1 = 0 ;
10996 void *argp2 = 0 ;
10997 int res2 = 0 ;
10998 PyObject * obj0 = 0 ;
10999 PyObject * obj1 = 0 ;
11000 char * kwnames[] = {
11001 (char *) "self",(char *) "parent", NULL
11002 };
11003
11004 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
11005 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
11006 if (!SWIG_IsOK(res1)) {
11007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11008 }
11009 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
11010 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
11011 if (!SWIG_IsOK(res2)) {
11012 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
11013 }
11014 arg2 = reinterpret_cast< wxWindow * >(argp2);
11015 {
11016 PyThreadState* __tstate = wxPyBeginAllowThreads();
11017 (arg1)->SetDialogParent(arg2);
11018 wxPyEndAllowThreads(__tstate);
11019 if (PyErr_Occurred()) SWIG_fail;
11020 }
11021 resultobj = SWIG_Py_Void();
11022 return resultobj;
11023 fail:
11024 return NULL;
11025 }
11026
11027
11028 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11029 PyObject *resultobj = 0;
11030 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
11031 wxString *arg2 = 0 ;
11032 void *argp1 = 0 ;
11033 int res1 = 0 ;
11034 bool temp2 = false ;
11035 PyObject * obj0 = 0 ;
11036 PyObject * obj1 = 0 ;
11037 char * kwnames[] = {
11038 (char *) "self",(char *) "title", NULL
11039 };
11040
11041 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
11042 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
11043 if (!SWIG_IsOK(res1)) {
11044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11045 }
11046 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
11047 {
11048 arg2 = wxString_in_helper(obj1);
11049 if (arg2 == NULL) SWIG_fail;
11050 temp2 = true;
11051 }
11052 {
11053 PyThreadState* __tstate = wxPyBeginAllowThreads();
11054 (arg1)->SetDialogTitle((wxString const &)*arg2);
11055 wxPyEndAllowThreads(__tstate);
11056 if (PyErr_Occurred()) SWIG_fail;
11057 }
11058 resultobj = SWIG_Py_Void();
11059 {
11060 if (temp2)
11061 delete arg2;
11062 }
11063 return resultobj;
11064 fail:
11065 {
11066 if (temp2)
11067 delete arg2;
11068 }
11069 return NULL;
11070 }
11071
11072
11073 SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11074 PyObject *obj;
11075 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11076 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
11077 return SWIG_Py_Void();
11078 }
11079
11080 SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11081 return SWIG_Python_InitShadowInstance(args);
11082 }
11083
11084 SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11085 PyObject *resultobj = 0;
11086 int arg1 ;
11087 int arg2 ;
11088 int arg3 ;
11089 int arg4 ;
11090 bool arg5 = (bool) false ;
11091 wxString const &arg6_defvalue = wxPyEmptyString ;
11092 wxString *arg6 = (wxString *) &arg6_defvalue ;
11093 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
11094 wxFont *result = 0 ;
11095 int val1 ;
11096 int ecode1 = 0 ;
11097 int val2 ;
11098 int ecode2 = 0 ;
11099 int val3 ;
11100 int ecode3 = 0 ;
11101 int val4 ;
11102 int ecode4 = 0 ;
11103 bool val5 ;
11104 int ecode5 = 0 ;
11105 bool temp6 = false ;
11106 int val7 ;
11107 int ecode7 = 0 ;
11108 PyObject * obj0 = 0 ;
11109 PyObject * obj1 = 0 ;
11110 PyObject * obj2 = 0 ;
11111 PyObject * obj3 = 0 ;
11112 PyObject * obj4 = 0 ;
11113 PyObject * obj5 = 0 ;
11114 PyObject * obj6 = 0 ;
11115 char * kwnames[] = {
11116 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
11117 };
11118
11119 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
11120 ecode1 = SWIG_AsVal_int(obj0, &val1);
11121 if (!SWIG_IsOK(ecode1)) {
11122 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
11123 }
11124 arg1 = static_cast< int >(val1);
11125 ecode2 = SWIG_AsVal_int(obj1, &val2);
11126 if (!SWIG_IsOK(ecode2)) {
11127 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
11128 }
11129 arg2 = static_cast< int >(val2);
11130 ecode3 = SWIG_AsVal_int(obj2, &val3);
11131 if (!SWIG_IsOK(ecode3)) {
11132 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
11133 }
11134 arg3 = static_cast< int >(val3);
11135 ecode4 = SWIG_AsVal_int(obj3, &val4);
11136 if (!SWIG_IsOK(ecode4)) {
11137 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
11138 }
11139 arg4 = static_cast< int >(val4);
11140 if (obj4) {
11141 ecode5 = SWIG_AsVal_bool(obj4, &val5);
11142 if (!SWIG_IsOK(ecode5)) {
11143 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
11144 }
11145 arg5 = static_cast< bool >(val5);
11146 }
11147 if (obj5) {
11148 {
11149 arg6 = wxString_in_helper(obj5);
11150 if (arg6 == NULL) SWIG_fail;
11151 temp6 = true;
11152 }
11153 }
11154 if (obj6) {
11155 ecode7 = SWIG_AsVal_int(obj6, &val7);
11156 if (!SWIG_IsOK(ecode7)) {
11157 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
11158 }
11159 arg7 = static_cast< wxFontEncoding >(val7);
11160 }
11161 {
11162 if (!wxPyCheckForApp()) SWIG_fail;
11163 PyThreadState* __tstate = wxPyBeginAllowThreads();
11164 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
11165 wxPyEndAllowThreads(__tstate);
11166 if (PyErr_Occurred()) SWIG_fail;
11167 }
11168 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
11169 {
11170 if (temp6)
11171 delete arg6;
11172 }
11173 return resultobj;
11174 fail:
11175 {
11176 if (temp6)
11177 delete arg6;
11178 }
11179 return NULL;
11180 }
11181
11182
11183 SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11184 PyObject *resultobj = 0;
11185 wxFont *arg1 = (wxFont *) 0 ;
11186 void *argp1 = 0 ;
11187 int res1 = 0 ;
11188 PyObject *swig_obj[1] ;
11189
11190 if (!args) SWIG_fail;
11191 swig_obj[0] = args;
11192 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
11193 if (!SWIG_IsOK(res1)) {
11194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
11195 }
11196 arg1 = reinterpret_cast< wxFont * >(argp1);
11197 {
11198 PyThreadState* __tstate = wxPyBeginAllowThreads();
11199 delete arg1;
11200
11201 wxPyEndAllowThreads(__tstate);
11202 if (PyErr_Occurred()) SWIG_fail;
11203 }
11204 resultobj = SWIG_Py_Void();
11205 return resultobj;
11206 fail:
11207 return NULL;
11208 }
11209
11210
11211 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11212 PyObject *resultobj = 0;
11213 wxNativeFontInfo *arg1 = 0 ;
11214 wxFont *result = 0 ;
11215 void *argp1 = 0 ;
11216 int res1 = 0 ;
11217 PyObject * obj0 = 0 ;
11218 char * kwnames[] = {
11219 (char *) "info", NULL
11220 };
11221
11222 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
11223 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
11224 if (!SWIG_IsOK(res1)) {
11225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
11226 }
11227 if (!argp1) {
11228 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
11229 }
11230 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11231 {
11232 if (!wxPyCheckForApp()) SWIG_fail;
11233 PyThreadState* __tstate = wxPyBeginAllowThreads();
11234 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
11235 wxPyEndAllowThreads(__tstate);
11236 if (PyErr_Occurred()) SWIG_fail;
11237 }
11238 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
11239 return resultobj;
11240 fail:
11241 return NULL;
11242 }
11243
11244
11245 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11246 PyObject *resultobj = 0;
11247 wxString *arg1 = 0 ;
11248 wxFont *result = 0 ;
11249 bool temp1 = false ;
11250 PyObject * obj0 = 0 ;
11251 char * kwnames[] = {
11252 (char *) "info", NULL
11253 };
11254
11255 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
11256 {
11257 arg1 = wxString_in_helper(obj0);
11258 if (arg1 == NULL) SWIG_fail;
11259 temp1 = true;
11260 }
11261 {
11262 if (!wxPyCheckForApp()) SWIG_fail;
11263 PyThreadState* __tstate = wxPyBeginAllowThreads();
11264 result = (wxFont *)new_wxFont((wxString const &)*arg1);
11265 wxPyEndAllowThreads(__tstate);
11266 if (PyErr_Occurred()) SWIG_fail;
11267 }
11268 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
11269 {
11270 if (temp1)
11271 delete arg1;
11272 }
11273 return resultobj;
11274 fail:
11275 {
11276 if (temp1)
11277 delete arg1;
11278 }
11279 return NULL;
11280 }
11281
11282
11283 SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11284 PyObject *resultobj = 0;
11285 int arg1 ;
11286 wxFontFamily arg2 ;
11287 int arg3 = (int) wxFONTFLAG_DEFAULT ;
11288 wxString const &arg4_defvalue = wxPyEmptyString ;
11289 wxString *arg4 = (wxString *) &arg4_defvalue ;
11290 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
11291 wxFont *result = 0 ;
11292 int val1 ;
11293 int ecode1 = 0 ;
11294 int val2 ;
11295 int ecode2 = 0 ;
11296 int val3 ;
11297 int ecode3 = 0 ;
11298 bool temp4 = false ;
11299 int val5 ;
11300 int ecode5 = 0 ;
11301 PyObject * obj0 = 0 ;
11302 PyObject * obj1 = 0 ;
11303 PyObject * obj2 = 0 ;
11304 PyObject * obj3 = 0 ;
11305 PyObject * obj4 = 0 ;
11306 char * kwnames[] = {
11307 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
11308 };
11309
11310 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11311 ecode1 = SWIG_AsVal_int(obj0, &val1);
11312 if (!SWIG_IsOK(ecode1)) {
11313 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
11314 }
11315 arg1 = static_cast< int >(val1);
11316 ecode2 = SWIG_AsVal_int(obj1, &val2);
11317 if (!SWIG_IsOK(ecode2)) {
11318 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
11319 }
11320 arg2 = static_cast< wxFontFamily >(val2);
11321 if (obj2) {
11322 ecode3 = SWIG_AsVal_int(obj2, &val3);
11323 if (!SWIG_IsOK(ecode3)) {
11324 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
11325 }
11326 arg3 = static_cast< int >(val3);
11327 }
11328 if (obj3) {
11329 {
11330 arg4 = wxString_in_helper(obj3);
11331 if (arg4 == NULL) SWIG_fail;
11332 temp4 = true;
11333 }
11334 }
11335 if (obj4) {
11336 ecode5 = SWIG_AsVal_int(obj4, &val5);
11337 if (!SWIG_IsOK(ecode5)) {
11338 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
11339 }
11340 arg5 = static_cast< wxFontEncoding >(val5);
11341 }
11342 {
11343 if (!wxPyCheckForApp()) SWIG_fail;
11344 PyThreadState* __tstate = wxPyBeginAllowThreads();
11345 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
11346 wxPyEndAllowThreads(__tstate);
11347 if (PyErr_Occurred()) SWIG_fail;
11348 }
11349 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
11350 {
11351 if (temp4)
11352 delete arg4;
11353 }
11354 return resultobj;
11355 fail:
11356 {
11357 if (temp4)
11358 delete arg4;
11359 }
11360 return NULL;
11361 }
11362
11363
11364 SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11365 PyObject *resultobj = 0;
11366 wxSize *arg1 = 0 ;
11367 int arg2 ;
11368 int arg3 ;
11369 int arg4 ;
11370 bool arg5 = (bool) false ;
11371 wxString const &arg6_defvalue = wxEmptyString ;
11372 wxString *arg6 = (wxString *) &arg6_defvalue ;
11373 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
11374 wxFont *result = 0 ;
11375 wxSize temp1 ;
11376 int val2 ;
11377 int ecode2 = 0 ;
11378 int val3 ;
11379 int ecode3 = 0 ;
11380 int val4 ;
11381 int ecode4 = 0 ;
11382 bool val5 ;
11383 int ecode5 = 0 ;
11384 bool temp6 = false ;
11385 int val7 ;
11386 int ecode7 = 0 ;
11387 PyObject * obj0 = 0 ;
11388 PyObject * obj1 = 0 ;
11389 PyObject * obj2 = 0 ;
11390 PyObject * obj3 = 0 ;
11391 PyObject * obj4 = 0 ;
11392 PyObject * obj5 = 0 ;
11393 PyObject * obj6 = 0 ;
11394 char * kwnames[] = {
11395 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
11396 };
11397
11398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
11399 {
11400 arg1 = &temp1;
11401 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
11402 }
11403 ecode2 = SWIG_AsVal_int(obj1, &val2);
11404 if (!SWIG_IsOK(ecode2)) {
11405 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
11406 }
11407 arg2 = static_cast< int >(val2);
11408 ecode3 = SWIG_AsVal_int(obj2, &val3);
11409 if (!SWIG_IsOK(ecode3)) {
11410 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
11411 }
11412 arg3 = static_cast< int >(val3);
11413 ecode4 = SWIG_AsVal_int(obj3, &val4);
11414 if (!SWIG_IsOK(ecode4)) {
11415 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
11416 }
11417 arg4 = static_cast< int >(val4);
11418 if (obj4) {
11419 ecode5 = SWIG_AsVal_bool(obj4, &val5);
11420 if (!SWIG_IsOK(ecode5)) {
11421 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
11422 }
11423 arg5 = static_cast< bool >(val5);
11424 }
11425 if (obj5) {
11426 {
11427 arg6 = wxString_in_helper(obj5);
11428 if (arg6 == NULL) SWIG_fail;
11429 temp6 = true;
11430 }
11431 }
11432 if (obj6) {
11433 ecode7 = SWIG_AsVal_int(obj6, &val7);
11434 if (!SWIG_IsOK(ecode7)) {
11435 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
11436 }
11437 arg7 = static_cast< wxFontEncoding >(val7);
11438 }
11439 {
11440 if (!wxPyCheckForApp()) SWIG_fail;
11441 PyThreadState* __tstate = wxPyBeginAllowThreads();
11442 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
11443 wxPyEndAllowThreads(__tstate);
11444 if (PyErr_Occurred()) SWIG_fail;
11445 }
11446 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
11447 {
11448 if (temp6)
11449 delete arg6;
11450 }
11451 return resultobj;
11452 fail:
11453 {
11454 if (temp6)
11455 delete arg6;
11456 }
11457 return NULL;
11458 }
11459
11460
11461 SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11462 PyObject *resultobj = 0;
11463 wxSize *arg1 = 0 ;
11464 wxFontFamily arg2 ;
11465 int arg3 = (int) wxFONTFLAG_DEFAULT ;
11466 wxString const &arg4_defvalue = wxEmptyString ;
11467 wxString *arg4 = (wxString *) &arg4_defvalue ;
11468 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
11469 wxFont *result = 0 ;
11470 wxSize temp1 ;
11471 int val2 ;
11472 int ecode2 = 0 ;
11473 int val3 ;
11474 int ecode3 = 0 ;
11475 bool temp4 = false ;
11476 int val5 ;
11477 int ecode5 = 0 ;
11478 PyObject * obj0 = 0 ;
11479 PyObject * obj1 = 0 ;
11480 PyObject * obj2 = 0 ;
11481 PyObject * obj3 = 0 ;
11482 PyObject * obj4 = 0 ;
11483 char * kwnames[] = {
11484 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
11485 };
11486
11487 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11488 {
11489 arg1 = &temp1;
11490 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
11491 }
11492 ecode2 = SWIG_AsVal_int(obj1, &val2);
11493 if (!SWIG_IsOK(ecode2)) {
11494 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
11495 }
11496 arg2 = static_cast< wxFontFamily >(val2);
11497 if (obj2) {
11498 ecode3 = SWIG_AsVal_int(obj2, &val3);
11499 if (!SWIG_IsOK(ecode3)) {
11500 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
11501 }
11502 arg3 = static_cast< int >(val3);
11503 }
11504 if (obj3) {
11505 {
11506 arg4 = wxString_in_helper(obj3);
11507 if (arg4 == NULL) SWIG_fail;
11508 temp4 = true;
11509 }
11510 }
11511 if (obj4) {
11512 ecode5 = SWIG_AsVal_int(obj4, &val5);
11513 if (!SWIG_IsOK(ecode5)) {
11514 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
11515 }
11516 arg5 = static_cast< wxFontEncoding >(val5);
11517 }
11518 {
11519 if (!wxPyCheckForApp()) SWIG_fail;
11520 PyThreadState* __tstate = wxPyBeginAllowThreads();
11521 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
11522 wxPyEndAllowThreads(__tstate);
11523 if (PyErr_Occurred()) SWIG_fail;
11524 }
11525 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
11526 {
11527 if (temp4)
11528 delete arg4;
11529 }
11530 return resultobj;
11531 fail:
11532 {
11533 if (temp4)
11534 delete arg4;
11535 }
11536 return NULL;
11537 }
11538
11539
11540 SWIGINTERN PyObject *_wrap_Font_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11541 PyObject *resultobj = 0;
11542 wxFont *arg1 = (wxFont *) 0 ;
11543 bool result;
11544 void *argp1 = 0 ;
11545 int res1 = 0 ;
11546 PyObject *swig_obj[1] ;
11547
11548 if (!args) SWIG_fail;
11549 swig_obj[0] = args;
11550 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11551 if (!SWIG_IsOK(res1)) {
11552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_Ok" "', expected argument " "1"" of type '" "wxFont const *""'");
11553 }
11554 arg1 = reinterpret_cast< wxFont * >(argp1);
11555 {
11556 PyThreadState* __tstate = wxPyBeginAllowThreads();
11557 result = (bool)((wxFont const *)arg1)->Ok();
11558 wxPyEndAllowThreads(__tstate);
11559 if (PyErr_Occurred()) SWIG_fail;
11560 }
11561 {
11562 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11563 }
11564 return resultobj;
11565 fail:
11566 return NULL;
11567 }
11568
11569
11570 SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11571 PyObject *resultobj = 0;
11572 wxFont *arg1 = (wxFont *) 0 ;
11573 wxFont *arg2 = (wxFont *) 0 ;
11574 bool result;
11575 void *argp1 = 0 ;
11576 int res1 = 0 ;
11577 void *argp2 = 0 ;
11578 int res2 = 0 ;
11579 PyObject * obj0 = 0 ;
11580 PyObject * obj1 = 0 ;
11581 char * kwnames[] = {
11582 (char *) "self",(char *) "other", NULL
11583 };
11584
11585 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
11586 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11587 if (!SWIG_IsOK(res1)) {
11588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
11589 }
11590 arg1 = reinterpret_cast< wxFont * >(argp1);
11591 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
11592 if (!SWIG_IsOK(res2)) {
11593 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
11594 }
11595 arg2 = reinterpret_cast< wxFont * >(argp2);
11596 {
11597 PyThreadState* __tstate = wxPyBeginAllowThreads();
11598 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
11599 wxPyEndAllowThreads(__tstate);
11600 if (PyErr_Occurred()) SWIG_fail;
11601 }
11602 {
11603 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11604 }
11605 return resultobj;
11606 fail:
11607 return NULL;
11608 }
11609
11610
11611 SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11612 PyObject *resultobj = 0;
11613 wxFont *arg1 = (wxFont *) 0 ;
11614 wxFont *arg2 = (wxFont *) 0 ;
11615 bool result;
11616 void *argp1 = 0 ;
11617 int res1 = 0 ;
11618 void *argp2 = 0 ;
11619 int res2 = 0 ;
11620 PyObject * obj0 = 0 ;
11621 PyObject * obj1 = 0 ;
11622 char * kwnames[] = {
11623 (char *) "self",(char *) "other", NULL
11624 };
11625
11626 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
11627 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11628 if (!SWIG_IsOK(res1)) {
11629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
11630 }
11631 arg1 = reinterpret_cast< wxFont * >(argp1);
11632 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
11633 if (!SWIG_IsOK(res2)) {
11634 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
11635 }
11636 arg2 = reinterpret_cast< wxFont * >(argp2);
11637 {
11638 PyThreadState* __tstate = wxPyBeginAllowThreads();
11639 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
11640 wxPyEndAllowThreads(__tstate);
11641 if (PyErr_Occurred()) SWIG_fail;
11642 }
11643 {
11644 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11645 }
11646 return resultobj;
11647 fail:
11648 return NULL;
11649 }
11650
11651
11652 SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11653 PyObject *resultobj = 0;
11654 wxFont *arg1 = (wxFont *) 0 ;
11655 int result;
11656 void *argp1 = 0 ;
11657 int res1 = 0 ;
11658 PyObject *swig_obj[1] ;
11659
11660 if (!args) SWIG_fail;
11661 swig_obj[0] = args;
11662 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11663 if (!SWIG_IsOK(res1)) {
11664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
11665 }
11666 arg1 = reinterpret_cast< wxFont * >(argp1);
11667 {
11668 PyThreadState* __tstate = wxPyBeginAllowThreads();
11669 result = (int)((wxFont const *)arg1)->GetPointSize();
11670 wxPyEndAllowThreads(__tstate);
11671 if (PyErr_Occurred()) SWIG_fail;
11672 }
11673 resultobj = SWIG_From_int(static_cast< int >(result));
11674 return resultobj;
11675 fail:
11676 return NULL;
11677 }
11678
11679
11680 SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11681 PyObject *resultobj = 0;
11682 wxFont *arg1 = (wxFont *) 0 ;
11683 wxSize result;
11684 void *argp1 = 0 ;
11685 int res1 = 0 ;
11686 PyObject *swig_obj[1] ;
11687
11688 if (!args) SWIG_fail;
11689 swig_obj[0] = args;
11690 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11691 if (!SWIG_IsOK(res1)) {
11692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
11693 }
11694 arg1 = reinterpret_cast< wxFont * >(argp1);
11695 {
11696 PyThreadState* __tstate = wxPyBeginAllowThreads();
11697 result = ((wxFont const *)arg1)->GetPixelSize();
11698 wxPyEndAllowThreads(__tstate);
11699 if (PyErr_Occurred()) SWIG_fail;
11700 }
11701 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
11702 return resultobj;
11703 fail:
11704 return NULL;
11705 }
11706
11707
11708 SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11709 PyObject *resultobj = 0;
11710 wxFont *arg1 = (wxFont *) 0 ;
11711 bool result;
11712 void *argp1 = 0 ;
11713 int res1 = 0 ;
11714 PyObject *swig_obj[1] ;
11715
11716 if (!args) SWIG_fail;
11717 swig_obj[0] = args;
11718 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11719 if (!SWIG_IsOK(res1)) {
11720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
11721 }
11722 arg1 = reinterpret_cast< wxFont * >(argp1);
11723 {
11724 PyThreadState* __tstate = wxPyBeginAllowThreads();
11725 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
11726 wxPyEndAllowThreads(__tstate);
11727 if (PyErr_Occurred()) SWIG_fail;
11728 }
11729 {
11730 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11731 }
11732 return resultobj;
11733 fail:
11734 return NULL;
11735 }
11736
11737
11738 SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11739 PyObject *resultobj = 0;
11740 wxFont *arg1 = (wxFont *) 0 ;
11741 int result;
11742 void *argp1 = 0 ;
11743 int res1 = 0 ;
11744 PyObject *swig_obj[1] ;
11745
11746 if (!args) SWIG_fail;
11747 swig_obj[0] = args;
11748 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11749 if (!SWIG_IsOK(res1)) {
11750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
11751 }
11752 arg1 = reinterpret_cast< wxFont * >(argp1);
11753 {
11754 PyThreadState* __tstate = wxPyBeginAllowThreads();
11755 result = (int)((wxFont const *)arg1)->GetFamily();
11756 wxPyEndAllowThreads(__tstate);
11757 if (PyErr_Occurred()) SWIG_fail;
11758 }
11759 resultobj = SWIG_From_int(static_cast< int >(result));
11760 return resultobj;
11761 fail:
11762 return NULL;
11763 }
11764
11765
11766 SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11767 PyObject *resultobj = 0;
11768 wxFont *arg1 = (wxFont *) 0 ;
11769 int result;
11770 void *argp1 = 0 ;
11771 int res1 = 0 ;
11772 PyObject *swig_obj[1] ;
11773
11774 if (!args) SWIG_fail;
11775 swig_obj[0] = args;
11776 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11777 if (!SWIG_IsOK(res1)) {
11778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
11779 }
11780 arg1 = reinterpret_cast< wxFont * >(argp1);
11781 {
11782 PyThreadState* __tstate = wxPyBeginAllowThreads();
11783 result = (int)((wxFont const *)arg1)->GetStyle();
11784 wxPyEndAllowThreads(__tstate);
11785 if (PyErr_Occurred()) SWIG_fail;
11786 }
11787 resultobj = SWIG_From_int(static_cast< int >(result));
11788 return resultobj;
11789 fail:
11790 return NULL;
11791 }
11792
11793
11794 SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11795 PyObject *resultobj = 0;
11796 wxFont *arg1 = (wxFont *) 0 ;
11797 int result;
11798 void *argp1 = 0 ;
11799 int res1 = 0 ;
11800 PyObject *swig_obj[1] ;
11801
11802 if (!args) SWIG_fail;
11803 swig_obj[0] = args;
11804 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11805 if (!SWIG_IsOK(res1)) {
11806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
11807 }
11808 arg1 = reinterpret_cast< wxFont * >(argp1);
11809 {
11810 PyThreadState* __tstate = wxPyBeginAllowThreads();
11811 result = (int)((wxFont const *)arg1)->GetWeight();
11812 wxPyEndAllowThreads(__tstate);
11813 if (PyErr_Occurred()) SWIG_fail;
11814 }
11815 resultobj = SWIG_From_int(static_cast< int >(result));
11816 return resultobj;
11817 fail:
11818 return NULL;
11819 }
11820
11821
11822 SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11823 PyObject *resultobj = 0;
11824 wxFont *arg1 = (wxFont *) 0 ;
11825 bool result;
11826 void *argp1 = 0 ;
11827 int res1 = 0 ;
11828 PyObject *swig_obj[1] ;
11829
11830 if (!args) SWIG_fail;
11831 swig_obj[0] = args;
11832 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11833 if (!SWIG_IsOK(res1)) {
11834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
11835 }
11836 arg1 = reinterpret_cast< wxFont * >(argp1);
11837 {
11838 PyThreadState* __tstate = wxPyBeginAllowThreads();
11839 result = (bool)((wxFont const *)arg1)->GetUnderlined();
11840 wxPyEndAllowThreads(__tstate);
11841 if (PyErr_Occurred()) SWIG_fail;
11842 }
11843 {
11844 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11845 }
11846 return resultobj;
11847 fail:
11848 return NULL;
11849 }
11850
11851
11852 SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11853 PyObject *resultobj = 0;
11854 wxFont *arg1 = (wxFont *) 0 ;
11855 wxString result;
11856 void *argp1 = 0 ;
11857 int res1 = 0 ;
11858 PyObject *swig_obj[1] ;
11859
11860 if (!args) SWIG_fail;
11861 swig_obj[0] = args;
11862 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11863 if (!SWIG_IsOK(res1)) {
11864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
11865 }
11866 arg1 = reinterpret_cast< wxFont * >(argp1);
11867 {
11868 PyThreadState* __tstate = wxPyBeginAllowThreads();
11869 result = ((wxFont const *)arg1)->GetFaceName();
11870 wxPyEndAllowThreads(__tstate);
11871 if (PyErr_Occurred()) SWIG_fail;
11872 }
11873 {
11874 #if wxUSE_UNICODE
11875 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11876 #else
11877 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11878 #endif
11879 }
11880 return resultobj;
11881 fail:
11882 return NULL;
11883 }
11884
11885
11886 SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11887 PyObject *resultobj = 0;
11888 wxFont *arg1 = (wxFont *) 0 ;
11889 wxFontEncoding result;
11890 void *argp1 = 0 ;
11891 int res1 = 0 ;
11892 PyObject *swig_obj[1] ;
11893
11894 if (!args) SWIG_fail;
11895 swig_obj[0] = args;
11896 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11897 if (!SWIG_IsOK(res1)) {
11898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
11899 }
11900 arg1 = reinterpret_cast< wxFont * >(argp1);
11901 {
11902 PyThreadState* __tstate = wxPyBeginAllowThreads();
11903 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
11904 wxPyEndAllowThreads(__tstate);
11905 if (PyErr_Occurred()) SWIG_fail;
11906 }
11907 resultobj = SWIG_From_int(static_cast< int >(result));
11908 return resultobj;
11909 fail:
11910 return NULL;
11911 }
11912
11913
11914 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11915 PyObject *resultobj = 0;
11916 wxFont *arg1 = (wxFont *) 0 ;
11917 wxNativeFontInfo *result = 0 ;
11918 void *argp1 = 0 ;
11919 int res1 = 0 ;
11920 PyObject *swig_obj[1] ;
11921
11922 if (!args) SWIG_fail;
11923 swig_obj[0] = args;
11924 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11925 if (!SWIG_IsOK(res1)) {
11926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
11927 }
11928 arg1 = reinterpret_cast< wxFont * >(argp1);
11929 {
11930 PyThreadState* __tstate = wxPyBeginAllowThreads();
11931 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
11932 wxPyEndAllowThreads(__tstate);
11933 if (PyErr_Occurred()) SWIG_fail;
11934 }
11935 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11936 return resultobj;
11937 fail:
11938 return NULL;
11939 }
11940
11941
11942 SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11943 PyObject *resultobj = 0;
11944 wxFont *arg1 = (wxFont *) 0 ;
11945 bool result;
11946 void *argp1 = 0 ;
11947 int res1 = 0 ;
11948 PyObject *swig_obj[1] ;
11949
11950 if (!args) SWIG_fail;
11951 swig_obj[0] = args;
11952 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11953 if (!SWIG_IsOK(res1)) {
11954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
11955 }
11956 arg1 = reinterpret_cast< wxFont * >(argp1);
11957 {
11958 PyThreadState* __tstate = wxPyBeginAllowThreads();
11959 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
11960 wxPyEndAllowThreads(__tstate);
11961 if (PyErr_Occurred()) SWIG_fail;
11962 }
11963 {
11964 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11965 }
11966 return resultobj;
11967 fail:
11968 return NULL;
11969 }
11970
11971
11972 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11973 PyObject *resultobj = 0;
11974 wxFont *arg1 = (wxFont *) 0 ;
11975 wxString result;
11976 void *argp1 = 0 ;
11977 int res1 = 0 ;
11978 PyObject *swig_obj[1] ;
11979
11980 if (!args) SWIG_fail;
11981 swig_obj[0] = args;
11982 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11983 if (!SWIG_IsOK(res1)) {
11984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
11985 }
11986 arg1 = reinterpret_cast< wxFont * >(argp1);
11987 {
11988 PyThreadState* __tstate = wxPyBeginAllowThreads();
11989 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
11990 wxPyEndAllowThreads(__tstate);
11991 if (PyErr_Occurred()) SWIG_fail;
11992 }
11993 {
11994 #if wxUSE_UNICODE
11995 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11996 #else
11997 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11998 #endif
11999 }
12000 return resultobj;
12001 fail:
12002 return NULL;
12003 }
12004
12005
12006 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12007 PyObject *resultobj = 0;
12008 wxFont *arg1 = (wxFont *) 0 ;
12009 wxString result;
12010 void *argp1 = 0 ;
12011 int res1 = 0 ;
12012 PyObject *swig_obj[1] ;
12013
12014 if (!args) SWIG_fail;
12015 swig_obj[0] = args;
12016 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12017 if (!SWIG_IsOK(res1)) {
12018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
12019 }
12020 arg1 = reinterpret_cast< wxFont * >(argp1);
12021 {
12022 PyThreadState* __tstate = wxPyBeginAllowThreads();
12023 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
12024 wxPyEndAllowThreads(__tstate);
12025 if (PyErr_Occurred()) SWIG_fail;
12026 }
12027 {
12028 #if wxUSE_UNICODE
12029 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12030 #else
12031 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12032 #endif
12033 }
12034 return resultobj;
12035 fail:
12036 return NULL;
12037 }
12038
12039
12040 SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12041 PyObject *resultobj = 0;
12042 wxFont *arg1 = (wxFont *) 0 ;
12043 int arg2 ;
12044 void *argp1 = 0 ;
12045 int res1 = 0 ;
12046 int val2 ;
12047 int ecode2 = 0 ;
12048 PyObject * obj0 = 0 ;
12049 PyObject * obj1 = 0 ;
12050 char * kwnames[] = {
12051 (char *) "self",(char *) "pointSize", NULL
12052 };
12053
12054 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
12055 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12056 if (!SWIG_IsOK(res1)) {
12057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
12058 }
12059 arg1 = reinterpret_cast< wxFont * >(argp1);
12060 ecode2 = SWIG_AsVal_int(obj1, &val2);
12061 if (!SWIG_IsOK(ecode2)) {
12062 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
12063 }
12064 arg2 = static_cast< int >(val2);
12065 {
12066 PyThreadState* __tstate = wxPyBeginAllowThreads();
12067 (arg1)->SetPointSize(arg2);
12068 wxPyEndAllowThreads(__tstate);
12069 if (PyErr_Occurred()) SWIG_fail;
12070 }
12071 resultobj = SWIG_Py_Void();
12072 return resultobj;
12073 fail:
12074 return NULL;
12075 }
12076
12077
12078 SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12079 PyObject *resultobj = 0;
12080 wxFont *arg1 = (wxFont *) 0 ;
12081 wxSize *arg2 = 0 ;
12082 void *argp1 = 0 ;
12083 int res1 = 0 ;
12084 wxSize temp2 ;
12085 PyObject * obj0 = 0 ;
12086 PyObject * obj1 = 0 ;
12087 char * kwnames[] = {
12088 (char *) "self",(char *) "pixelSize", NULL
12089 };
12090
12091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
12092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12093 if (!SWIG_IsOK(res1)) {
12094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
12095 }
12096 arg1 = reinterpret_cast< wxFont * >(argp1);
12097 {
12098 arg2 = &temp2;
12099 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
12100 }
12101 {
12102 PyThreadState* __tstate = wxPyBeginAllowThreads();
12103 (arg1)->SetPixelSize((wxSize const &)*arg2);
12104 wxPyEndAllowThreads(__tstate);
12105 if (PyErr_Occurred()) SWIG_fail;
12106 }
12107 resultobj = SWIG_Py_Void();
12108 return resultobj;
12109 fail:
12110 return NULL;
12111 }
12112
12113
12114 SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12115 PyObject *resultobj = 0;
12116 wxFont *arg1 = (wxFont *) 0 ;
12117 int arg2 ;
12118 void *argp1 = 0 ;
12119 int res1 = 0 ;
12120 int val2 ;
12121 int ecode2 = 0 ;
12122 PyObject * obj0 = 0 ;
12123 PyObject * obj1 = 0 ;
12124 char * kwnames[] = {
12125 (char *) "self",(char *) "family", NULL
12126 };
12127
12128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
12129 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12130 if (!SWIG_IsOK(res1)) {
12131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
12132 }
12133 arg1 = reinterpret_cast< wxFont * >(argp1);
12134 ecode2 = SWIG_AsVal_int(obj1, &val2);
12135 if (!SWIG_IsOK(ecode2)) {
12136 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
12137 }
12138 arg2 = static_cast< int >(val2);
12139 {
12140 PyThreadState* __tstate = wxPyBeginAllowThreads();
12141 (arg1)->SetFamily(arg2);
12142 wxPyEndAllowThreads(__tstate);
12143 if (PyErr_Occurred()) SWIG_fail;
12144 }
12145 resultobj = SWIG_Py_Void();
12146 return resultobj;
12147 fail:
12148 return NULL;
12149 }
12150
12151
12152 SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12153 PyObject *resultobj = 0;
12154 wxFont *arg1 = (wxFont *) 0 ;
12155 int arg2 ;
12156 void *argp1 = 0 ;
12157 int res1 = 0 ;
12158 int val2 ;
12159 int ecode2 = 0 ;
12160 PyObject * obj0 = 0 ;
12161 PyObject * obj1 = 0 ;
12162 char * kwnames[] = {
12163 (char *) "self",(char *) "style", NULL
12164 };
12165
12166 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12167 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12168 if (!SWIG_IsOK(res1)) {
12169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
12170 }
12171 arg1 = reinterpret_cast< wxFont * >(argp1);
12172 ecode2 = SWIG_AsVal_int(obj1, &val2);
12173 if (!SWIG_IsOK(ecode2)) {
12174 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
12175 }
12176 arg2 = static_cast< int >(val2);
12177 {
12178 PyThreadState* __tstate = wxPyBeginAllowThreads();
12179 (arg1)->SetStyle(arg2);
12180 wxPyEndAllowThreads(__tstate);
12181 if (PyErr_Occurred()) SWIG_fail;
12182 }
12183 resultobj = SWIG_Py_Void();
12184 return resultobj;
12185 fail:
12186 return NULL;
12187 }
12188
12189
12190 SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12191 PyObject *resultobj = 0;
12192 wxFont *arg1 = (wxFont *) 0 ;
12193 int arg2 ;
12194 void *argp1 = 0 ;
12195 int res1 = 0 ;
12196 int val2 ;
12197 int ecode2 = 0 ;
12198 PyObject * obj0 = 0 ;
12199 PyObject * obj1 = 0 ;
12200 char * kwnames[] = {
12201 (char *) "self",(char *) "weight", NULL
12202 };
12203
12204 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
12205 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12206 if (!SWIG_IsOK(res1)) {
12207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
12208 }
12209 arg1 = reinterpret_cast< wxFont * >(argp1);
12210 ecode2 = SWIG_AsVal_int(obj1, &val2);
12211 if (!SWIG_IsOK(ecode2)) {
12212 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
12213 }
12214 arg2 = static_cast< int >(val2);
12215 {
12216 PyThreadState* __tstate = wxPyBeginAllowThreads();
12217 (arg1)->SetWeight(arg2);
12218 wxPyEndAllowThreads(__tstate);
12219 if (PyErr_Occurred()) SWIG_fail;
12220 }
12221 resultobj = SWIG_Py_Void();
12222 return resultobj;
12223 fail:
12224 return NULL;
12225 }
12226
12227
12228 SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12229 PyObject *resultobj = 0;
12230 wxFont *arg1 = (wxFont *) 0 ;
12231 wxString *arg2 = 0 ;
12232 bool result;
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 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
12256 wxPyEndAllowThreads(__tstate);
12257 if (PyErr_Occurred()) SWIG_fail;
12258 }
12259 {
12260 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12261 }
12262 {
12263 if (temp2)
12264 delete arg2;
12265 }
12266 return resultobj;
12267 fail:
12268 {
12269 if (temp2)
12270 delete arg2;
12271 }
12272 return NULL;
12273 }
12274
12275
12276 SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12277 PyObject *resultobj = 0;
12278 wxFont *arg1 = (wxFont *) 0 ;
12279 bool arg2 ;
12280 void *argp1 = 0 ;
12281 int res1 = 0 ;
12282 bool val2 ;
12283 int ecode2 = 0 ;
12284 PyObject * obj0 = 0 ;
12285 PyObject * obj1 = 0 ;
12286 char * kwnames[] = {
12287 (char *) "self",(char *) "underlined", NULL
12288 };
12289
12290 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
12291 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12292 if (!SWIG_IsOK(res1)) {
12293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
12294 }
12295 arg1 = reinterpret_cast< wxFont * >(argp1);
12296 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12297 if (!SWIG_IsOK(ecode2)) {
12298 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
12299 }
12300 arg2 = static_cast< bool >(val2);
12301 {
12302 PyThreadState* __tstate = wxPyBeginAllowThreads();
12303 (arg1)->SetUnderlined(arg2);
12304 wxPyEndAllowThreads(__tstate);
12305 if (PyErr_Occurred()) SWIG_fail;
12306 }
12307 resultobj = SWIG_Py_Void();
12308 return resultobj;
12309 fail:
12310 return NULL;
12311 }
12312
12313
12314 SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12315 PyObject *resultobj = 0;
12316 wxFont *arg1 = (wxFont *) 0 ;
12317 wxFontEncoding arg2 ;
12318 void *argp1 = 0 ;
12319 int res1 = 0 ;
12320 int val2 ;
12321 int ecode2 = 0 ;
12322 PyObject * obj0 = 0 ;
12323 PyObject * obj1 = 0 ;
12324 char * kwnames[] = {
12325 (char *) "self",(char *) "encoding", NULL
12326 };
12327
12328 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
12329 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12330 if (!SWIG_IsOK(res1)) {
12331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
12332 }
12333 arg1 = reinterpret_cast< wxFont * >(argp1);
12334 ecode2 = SWIG_AsVal_int(obj1, &val2);
12335 if (!SWIG_IsOK(ecode2)) {
12336 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12337 }
12338 arg2 = static_cast< wxFontEncoding >(val2);
12339 {
12340 PyThreadState* __tstate = wxPyBeginAllowThreads();
12341 (arg1)->SetEncoding(arg2);
12342 wxPyEndAllowThreads(__tstate);
12343 if (PyErr_Occurred()) SWIG_fail;
12344 }
12345 resultobj = SWIG_Py_Void();
12346 return resultobj;
12347 fail:
12348 return NULL;
12349 }
12350
12351
12352 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12353 PyObject *resultobj = 0;
12354 wxFont *arg1 = (wxFont *) 0 ;
12355 wxNativeFontInfo *arg2 = 0 ;
12356 void *argp1 = 0 ;
12357 int res1 = 0 ;
12358 void *argp2 = 0 ;
12359 int res2 = 0 ;
12360 PyObject * obj0 = 0 ;
12361 PyObject * obj1 = 0 ;
12362 char * kwnames[] = {
12363 (char *) "self",(char *) "info", NULL
12364 };
12365
12366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
12367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12368 if (!SWIG_IsOK(res1)) {
12369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
12370 }
12371 arg1 = reinterpret_cast< wxFont * >(argp1);
12372 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
12373 if (!SWIG_IsOK(res2)) {
12374 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
12375 }
12376 if (!argp2) {
12377 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
12378 }
12379 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
12380 {
12381 PyThreadState* __tstate = wxPyBeginAllowThreads();
12382 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
12383 wxPyEndAllowThreads(__tstate);
12384 if (PyErr_Occurred()) SWIG_fail;
12385 }
12386 resultobj = SWIG_Py_Void();
12387 return resultobj;
12388 fail:
12389 return NULL;
12390 }
12391
12392
12393 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12394 PyObject *resultobj = 0;
12395 wxFont *arg1 = (wxFont *) 0 ;
12396 wxString *arg2 = 0 ;
12397 bool result;
12398 void *argp1 = 0 ;
12399 int res1 = 0 ;
12400 bool temp2 = false ;
12401 PyObject * obj0 = 0 ;
12402 PyObject * obj1 = 0 ;
12403 char * kwnames[] = {
12404 (char *) "self",(char *) "info", NULL
12405 };
12406
12407 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
12408 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12409 if (!SWIG_IsOK(res1)) {
12410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
12411 }
12412 arg1 = reinterpret_cast< wxFont * >(argp1);
12413 {
12414 arg2 = wxString_in_helper(obj1);
12415 if (arg2 == NULL) SWIG_fail;
12416 temp2 = true;
12417 }
12418 {
12419 PyThreadState* __tstate = wxPyBeginAllowThreads();
12420 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
12421 wxPyEndAllowThreads(__tstate);
12422 if (PyErr_Occurred()) SWIG_fail;
12423 }
12424 {
12425 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12426 }
12427 {
12428 if (temp2)
12429 delete arg2;
12430 }
12431 return resultobj;
12432 fail:
12433 {
12434 if (temp2)
12435 delete arg2;
12436 }
12437 return NULL;
12438 }
12439
12440
12441 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12442 PyObject *resultobj = 0;
12443 wxFont *arg1 = (wxFont *) 0 ;
12444 wxString *arg2 = 0 ;
12445 bool result;
12446 void *argp1 = 0 ;
12447 int res1 = 0 ;
12448 bool temp2 = false ;
12449 PyObject * obj0 = 0 ;
12450 PyObject * obj1 = 0 ;
12451 char * kwnames[] = {
12452 (char *) "self",(char *) "info", NULL
12453 };
12454
12455 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
12456 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12457 if (!SWIG_IsOK(res1)) {
12458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
12459 }
12460 arg1 = reinterpret_cast< wxFont * >(argp1);
12461 {
12462 arg2 = wxString_in_helper(obj1);
12463 if (arg2 == NULL) SWIG_fail;
12464 temp2 = true;
12465 }
12466 {
12467 PyThreadState* __tstate = wxPyBeginAllowThreads();
12468 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
12469 wxPyEndAllowThreads(__tstate);
12470 if (PyErr_Occurred()) SWIG_fail;
12471 }
12472 {
12473 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12474 }
12475 {
12476 if (temp2)
12477 delete arg2;
12478 }
12479 return resultobj;
12480 fail:
12481 {
12482 if (temp2)
12483 delete arg2;
12484 }
12485 return NULL;
12486 }
12487
12488
12489 SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12490 PyObject *resultobj = 0;
12491 wxFont *arg1 = (wxFont *) 0 ;
12492 wxString result;
12493 void *argp1 = 0 ;
12494 int res1 = 0 ;
12495 PyObject *swig_obj[1] ;
12496
12497 if (!args) SWIG_fail;
12498 swig_obj[0] = args;
12499 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12500 if (!SWIG_IsOK(res1)) {
12501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
12502 }
12503 arg1 = reinterpret_cast< wxFont * >(argp1);
12504 {
12505 PyThreadState* __tstate = wxPyBeginAllowThreads();
12506 result = ((wxFont const *)arg1)->GetFamilyString();
12507 wxPyEndAllowThreads(__tstate);
12508 if (PyErr_Occurred()) SWIG_fail;
12509 }
12510 {
12511 #if wxUSE_UNICODE
12512 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12513 #else
12514 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12515 #endif
12516 }
12517 return resultobj;
12518 fail:
12519 return NULL;
12520 }
12521
12522
12523 SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12524 PyObject *resultobj = 0;
12525 wxFont *arg1 = (wxFont *) 0 ;
12526 wxString result;
12527 void *argp1 = 0 ;
12528 int res1 = 0 ;
12529 PyObject *swig_obj[1] ;
12530
12531 if (!args) SWIG_fail;
12532 swig_obj[0] = args;
12533 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12534 if (!SWIG_IsOK(res1)) {
12535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
12536 }
12537 arg1 = reinterpret_cast< wxFont * >(argp1);
12538 {
12539 PyThreadState* __tstate = wxPyBeginAllowThreads();
12540 result = ((wxFont const *)arg1)->GetStyleString();
12541 wxPyEndAllowThreads(__tstate);
12542 if (PyErr_Occurred()) SWIG_fail;
12543 }
12544 {
12545 #if wxUSE_UNICODE
12546 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12547 #else
12548 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12549 #endif
12550 }
12551 return resultobj;
12552 fail:
12553 return NULL;
12554 }
12555
12556
12557 SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12558 PyObject *resultobj = 0;
12559 wxFont *arg1 = (wxFont *) 0 ;
12560 wxString result;
12561 void *argp1 = 0 ;
12562 int res1 = 0 ;
12563 PyObject *swig_obj[1] ;
12564
12565 if (!args) SWIG_fail;
12566 swig_obj[0] = args;
12567 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12568 if (!SWIG_IsOK(res1)) {
12569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
12570 }
12571 arg1 = reinterpret_cast< wxFont * >(argp1);
12572 {
12573 PyThreadState* __tstate = wxPyBeginAllowThreads();
12574 result = ((wxFont const *)arg1)->GetWeightString();
12575 wxPyEndAllowThreads(__tstate);
12576 if (PyErr_Occurred()) SWIG_fail;
12577 }
12578 {
12579 #if wxUSE_UNICODE
12580 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12581 #else
12582 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12583 #endif
12584 }
12585 return resultobj;
12586 fail:
12587 return NULL;
12588 }
12589
12590
12591 SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12592 PyObject *resultobj = 0;
12593 wxFont *arg1 = (wxFont *) 0 ;
12594 bool arg2 = (bool) true ;
12595 void *argp1 = 0 ;
12596 int res1 = 0 ;
12597 bool val2 ;
12598 int ecode2 = 0 ;
12599 PyObject * obj0 = 0 ;
12600 PyObject * obj1 = 0 ;
12601 char * kwnames[] = {
12602 (char *) "self",(char *) "no", NULL
12603 };
12604
12605 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
12606 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12607 if (!SWIG_IsOK(res1)) {
12608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
12609 }
12610 arg1 = reinterpret_cast< wxFont * >(argp1);
12611 if (obj1) {
12612 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12613 if (!SWIG_IsOK(ecode2)) {
12614 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
12615 }
12616 arg2 = static_cast< bool >(val2);
12617 }
12618 {
12619 PyThreadState* __tstate = wxPyBeginAllowThreads();
12620 (arg1)->SetNoAntiAliasing(arg2);
12621 wxPyEndAllowThreads(__tstate);
12622 if (PyErr_Occurred()) SWIG_fail;
12623 }
12624 resultobj = SWIG_Py_Void();
12625 return resultobj;
12626 fail:
12627 return NULL;
12628 }
12629
12630
12631 SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12632 PyObject *resultobj = 0;
12633 wxFont *arg1 = (wxFont *) 0 ;
12634 bool result;
12635 void *argp1 = 0 ;
12636 int res1 = 0 ;
12637 PyObject *swig_obj[1] ;
12638
12639 if (!args) SWIG_fail;
12640 swig_obj[0] = args;
12641 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12642 if (!SWIG_IsOK(res1)) {
12643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
12644 }
12645 arg1 = reinterpret_cast< wxFont * >(argp1);
12646 {
12647 PyThreadState* __tstate = wxPyBeginAllowThreads();
12648 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
12649 wxPyEndAllowThreads(__tstate);
12650 if (PyErr_Occurred()) SWIG_fail;
12651 }
12652 {
12653 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12654 }
12655 return resultobj;
12656 fail:
12657 return NULL;
12658 }
12659
12660
12661 SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12662 PyObject *resultobj = 0;
12663 wxFontEncoding result;
12664
12665 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
12666 {
12667 if (!wxPyCheckForApp()) SWIG_fail;
12668 PyThreadState* __tstate = wxPyBeginAllowThreads();
12669 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
12670 wxPyEndAllowThreads(__tstate);
12671 if (PyErr_Occurred()) SWIG_fail;
12672 }
12673 resultobj = SWIG_From_int(static_cast< int >(result));
12674 return resultobj;
12675 fail:
12676 return NULL;
12677 }
12678
12679
12680 SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12681 PyObject *resultobj = 0;
12682 wxFontEncoding arg1 ;
12683 int val1 ;
12684 int ecode1 = 0 ;
12685 PyObject * obj0 = 0 ;
12686 char * kwnames[] = {
12687 (char *) "encoding", NULL
12688 };
12689
12690 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
12691 ecode1 = SWIG_AsVal_int(obj0, &val1);
12692 if (!SWIG_IsOK(ecode1)) {
12693 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
12694 }
12695 arg1 = static_cast< wxFontEncoding >(val1);
12696 {
12697 if (!wxPyCheckForApp()) SWIG_fail;
12698 PyThreadState* __tstate = wxPyBeginAllowThreads();
12699 wxFont::SetDefaultEncoding(arg1);
12700 wxPyEndAllowThreads(__tstate);
12701 if (PyErr_Occurred()) SWIG_fail;
12702 }
12703 resultobj = SWIG_Py_Void();
12704 return resultobj;
12705 fail:
12706 return NULL;
12707 }
12708
12709
12710 SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12711 PyObject *obj;
12712 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12713 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
12714 return SWIG_Py_Void();
12715 }
12716
12717 SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12718 return SWIG_Python_InitShadowInstance(args);
12719 }
12720
12721 SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12722 PyObject *resultobj = 0;
12723 wxPyFontEnumerator *result = 0 ;
12724
12725 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
12726 {
12727 if (!wxPyCheckForApp()) SWIG_fail;
12728 PyThreadState* __tstate = wxPyBeginAllowThreads();
12729 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
12730 wxPyEndAllowThreads(__tstate);
12731 if (PyErr_Occurred()) SWIG_fail;
12732 }
12733 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
12734 return resultobj;
12735 fail:
12736 return NULL;
12737 }
12738
12739
12740 SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12741 PyObject *resultobj = 0;
12742 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
12743 void *argp1 = 0 ;
12744 int res1 = 0 ;
12745 PyObject *swig_obj[1] ;
12746
12747 if (!args) SWIG_fail;
12748 swig_obj[0] = args;
12749 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
12750 if (!SWIG_IsOK(res1)) {
12751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
12752 }
12753 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
12754 {
12755 PyThreadState* __tstate = wxPyBeginAllowThreads();
12756 delete arg1;
12757
12758 wxPyEndAllowThreads(__tstate);
12759 if (PyErr_Occurred()) SWIG_fail;
12760 }
12761 resultobj = SWIG_Py_Void();
12762 return resultobj;
12763 fail:
12764 return NULL;
12765 }
12766
12767
12768 SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12769 PyObject *resultobj = 0;
12770 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
12771 PyObject *arg2 = (PyObject *) 0 ;
12772 PyObject *arg3 = (PyObject *) 0 ;
12773 bool arg4 ;
12774 void *argp1 = 0 ;
12775 int res1 = 0 ;
12776 bool val4 ;
12777 int ecode4 = 0 ;
12778 PyObject * obj0 = 0 ;
12779 PyObject * obj1 = 0 ;
12780 PyObject * obj2 = 0 ;
12781 PyObject * obj3 = 0 ;
12782 char * kwnames[] = {
12783 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
12784 };
12785
12786 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12787 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
12788 if (!SWIG_IsOK(res1)) {
12789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
12790 }
12791 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
12792 arg2 = obj1;
12793 arg3 = obj2;
12794 ecode4 = SWIG_AsVal_bool(obj3, &val4);
12795 if (!SWIG_IsOK(ecode4)) {
12796 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'");
12797 }
12798 arg4 = static_cast< bool >(val4);
12799 {
12800 PyThreadState* __tstate = wxPyBeginAllowThreads();
12801 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
12802 wxPyEndAllowThreads(__tstate);
12803 if (PyErr_Occurred()) SWIG_fail;
12804 }
12805 resultobj = SWIG_Py_Void();
12806 return resultobj;
12807 fail:
12808 return NULL;
12809 }
12810
12811
12812 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12813 PyObject *resultobj = 0;
12814 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
12815 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
12816 bool arg3 = (bool) false ;
12817 bool result;
12818 void *argp1 = 0 ;
12819 int res1 = 0 ;
12820 int val2 ;
12821 int ecode2 = 0 ;
12822 bool val3 ;
12823 int ecode3 = 0 ;
12824 PyObject * obj0 = 0 ;
12825 PyObject * obj1 = 0 ;
12826 PyObject * obj2 = 0 ;
12827 char * kwnames[] = {
12828 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
12829 };
12830
12831 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12832 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
12833 if (!SWIG_IsOK(res1)) {
12834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
12835 }
12836 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
12837 if (obj1) {
12838 ecode2 = SWIG_AsVal_int(obj1, &val2);
12839 if (!SWIG_IsOK(ecode2)) {
12840 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12841 }
12842 arg2 = static_cast< wxFontEncoding >(val2);
12843 }
12844 if (obj2) {
12845 ecode3 = SWIG_AsVal_bool(obj2, &val3);
12846 if (!SWIG_IsOK(ecode3)) {
12847 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
12848 }
12849 arg3 = static_cast< bool >(val3);
12850 }
12851 {
12852 PyThreadState* __tstate = wxPyBeginAllowThreads();
12853 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
12854 wxPyEndAllowThreads(__tstate);
12855 if (PyErr_Occurred()) SWIG_fail;
12856 }
12857 {
12858 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12859 }
12860 return resultobj;
12861 fail:
12862 return NULL;
12863 }
12864
12865
12866 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12867 PyObject *resultobj = 0;
12868 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
12869 wxString const &arg2_defvalue = wxPyEmptyString ;
12870 wxString *arg2 = (wxString *) &arg2_defvalue ;
12871 bool result;
12872 void *argp1 = 0 ;
12873 int res1 = 0 ;
12874 bool temp2 = false ;
12875 PyObject * obj0 = 0 ;
12876 PyObject * obj1 = 0 ;
12877 char * kwnames[] = {
12878 (char *) "self",(char *) "facename", NULL
12879 };
12880
12881 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
12882 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
12883 if (!SWIG_IsOK(res1)) {
12884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
12885 }
12886 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
12887 if (obj1) {
12888 {
12889 arg2 = wxString_in_helper(obj1);
12890 if (arg2 == NULL) SWIG_fail;
12891 temp2 = true;
12892 }
12893 }
12894 {
12895 PyThreadState* __tstate = wxPyBeginAllowThreads();
12896 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
12897 wxPyEndAllowThreads(__tstate);
12898 if (PyErr_Occurred()) SWIG_fail;
12899 }
12900 {
12901 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12902 }
12903 {
12904 if (temp2)
12905 delete arg2;
12906 }
12907 return resultobj;
12908 fail:
12909 {
12910 if (temp2)
12911 delete arg2;
12912 }
12913 return NULL;
12914 }
12915
12916
12917 SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12918 PyObject *resultobj = 0;
12919 PyObject *result = 0 ;
12920
12921 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
12922 {
12923 PyThreadState* __tstate = wxPyBeginAllowThreads();
12924 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
12925 wxPyEndAllowThreads(__tstate);
12926 if (PyErr_Occurred()) SWIG_fail;
12927 }
12928 resultobj = result;
12929 return resultobj;
12930 fail:
12931 return NULL;
12932 }
12933
12934
12935 SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12936 PyObject *resultobj = 0;
12937 PyObject *result = 0 ;
12938
12939 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
12940 {
12941 PyThreadState* __tstate = wxPyBeginAllowThreads();
12942 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
12943 wxPyEndAllowThreads(__tstate);
12944 if (PyErr_Occurred()) SWIG_fail;
12945 }
12946 resultobj = result;
12947 return resultobj;
12948 fail:
12949 return NULL;
12950 }
12951
12952
12953 SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12954 PyObject *resultobj = 0;
12955 wxString *arg1 = 0 ;
12956 bool result;
12957 bool temp1 = false ;
12958 PyObject * obj0 = 0 ;
12959 char * kwnames[] = {
12960 (char *) "str", NULL
12961 };
12962
12963 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
12964 {
12965 arg1 = wxString_in_helper(obj0);
12966 if (arg1 == NULL) SWIG_fail;
12967 temp1 = true;
12968 }
12969 {
12970 PyThreadState* __tstate = wxPyBeginAllowThreads();
12971 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
12972 wxPyEndAllowThreads(__tstate);
12973 if (PyErr_Occurred()) SWIG_fail;
12974 }
12975 {
12976 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12977 }
12978 {
12979 if (temp1)
12980 delete arg1;
12981 }
12982 return resultobj;
12983 fail:
12984 {
12985 if (temp1)
12986 delete arg1;
12987 }
12988 return NULL;
12989 }
12990
12991
12992 SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12993 PyObject *obj;
12994 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12995 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
12996 return SWIG_Py_Void();
12997 }
12998
12999 SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13000 return SWIG_Python_InitShadowInstance(args);
13001 }
13002
13003 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13004 PyObject *resultobj = 0;
13005 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13006 int arg2 ;
13007 void *argp1 = 0 ;
13008 int res1 = 0 ;
13009 int val2 ;
13010 int ecode2 = 0 ;
13011 PyObject *swig_obj[2] ;
13012
13013 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
13014 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13015 if (!SWIG_IsOK(res1)) {
13016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13017 }
13018 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13019 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
13020 if (!SWIG_IsOK(ecode2)) {
13021 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
13022 }
13023 arg2 = static_cast< int >(val2);
13024 if (arg1) (arg1)->Language = arg2;
13025
13026 resultobj = SWIG_Py_Void();
13027 return resultobj;
13028 fail:
13029 return NULL;
13030 }
13031
13032
13033 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13034 PyObject *resultobj = 0;
13035 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13036 int result;
13037 void *argp1 = 0 ;
13038 int res1 = 0 ;
13039 PyObject *swig_obj[1] ;
13040
13041 if (!args) SWIG_fail;
13042 swig_obj[0] = args;
13043 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13044 if (!SWIG_IsOK(res1)) {
13045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13046 }
13047 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13048 result = (int) ((arg1)->Language);
13049 resultobj = SWIG_From_int(static_cast< int >(result));
13050 return resultobj;
13051 fail:
13052 return NULL;
13053 }
13054
13055
13056 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13057 PyObject *resultobj = 0;
13058 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13059 wxString *arg2 = (wxString *) 0 ;
13060 void *argp1 = 0 ;
13061 int res1 = 0 ;
13062 bool temp2 = false ;
13063 PyObject *swig_obj[2] ;
13064
13065 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
13066 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13067 if (!SWIG_IsOK(res1)) {
13068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13069 }
13070 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13071 {
13072 arg2 = wxString_in_helper(swig_obj[1]);
13073 if (arg2 == NULL) SWIG_fail;
13074 temp2 = true;
13075 }
13076 if (arg1) (arg1)->CanonicalName = *arg2;
13077
13078 resultobj = SWIG_Py_Void();
13079 {
13080 if (temp2)
13081 delete arg2;
13082 }
13083 return resultobj;
13084 fail:
13085 {
13086 if (temp2)
13087 delete arg2;
13088 }
13089 return NULL;
13090 }
13091
13092
13093 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13094 PyObject *resultobj = 0;
13095 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13096 wxString *result = 0 ;
13097 void *argp1 = 0 ;
13098 int res1 = 0 ;
13099 PyObject *swig_obj[1] ;
13100
13101 if (!args) SWIG_fail;
13102 swig_obj[0] = args;
13103 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13104 if (!SWIG_IsOK(res1)) {
13105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13106 }
13107 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13108 result = (wxString *)& ((arg1)->CanonicalName);
13109 {
13110 #if wxUSE_UNICODE
13111 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
13112 #else
13113 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
13114 #endif
13115 }
13116 return resultobj;
13117 fail:
13118 return NULL;
13119 }
13120
13121
13122 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13123 PyObject *resultobj = 0;
13124 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13125 wxString *arg2 = (wxString *) 0 ;
13126 void *argp1 = 0 ;
13127 int res1 = 0 ;
13128 bool temp2 = false ;
13129 PyObject *swig_obj[2] ;
13130
13131 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
13132 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13133 if (!SWIG_IsOK(res1)) {
13134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13135 }
13136 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13137 {
13138 arg2 = wxString_in_helper(swig_obj[1]);
13139 if (arg2 == NULL) SWIG_fail;
13140 temp2 = true;
13141 }
13142 if (arg1) (arg1)->Description = *arg2;
13143
13144 resultobj = SWIG_Py_Void();
13145 {
13146 if (temp2)
13147 delete arg2;
13148 }
13149 return resultobj;
13150 fail:
13151 {
13152 if (temp2)
13153 delete arg2;
13154 }
13155 return NULL;
13156 }
13157
13158
13159 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13160 PyObject *resultobj = 0;
13161 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13162 wxString *result = 0 ;
13163 void *argp1 = 0 ;
13164 int res1 = 0 ;
13165 PyObject *swig_obj[1] ;
13166
13167 if (!args) SWIG_fail;
13168 swig_obj[0] = args;
13169 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13170 if (!SWIG_IsOK(res1)) {
13171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13172 }
13173 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13174 result = (wxString *)& ((arg1)->Description);
13175 {
13176 #if wxUSE_UNICODE
13177 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
13178 #else
13179 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
13180 #endif
13181 }
13182 return resultobj;
13183 fail:
13184 return NULL;
13185 }
13186
13187
13188 SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13189 PyObject *obj;
13190 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13191 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
13192 return SWIG_Py_Void();
13193 }
13194
13195 SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13196 PyObject *resultobj = 0;
13197 int arg1 = (int) -1 ;
13198 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
13199 wxLocale *result = 0 ;
13200 int val1 ;
13201 int ecode1 = 0 ;
13202 int val2 ;
13203 int ecode2 = 0 ;
13204 PyObject * obj0 = 0 ;
13205 PyObject * obj1 = 0 ;
13206 char * kwnames[] = {
13207 (char *) "language",(char *) "flags", NULL
13208 };
13209
13210 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
13211 if (obj0) {
13212 ecode1 = SWIG_AsVal_int(obj0, &val1);
13213 if (!SWIG_IsOK(ecode1)) {
13214 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
13215 }
13216 arg1 = static_cast< int >(val1);
13217 }
13218 if (obj1) {
13219 ecode2 = SWIG_AsVal_int(obj1, &val2);
13220 if (!SWIG_IsOK(ecode2)) {
13221 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
13222 }
13223 arg2 = static_cast< int >(val2);
13224 }
13225 {
13226 PyThreadState* __tstate = wxPyBeginAllowThreads();
13227 result = (wxLocale *)new_wxLocale(arg1,arg2);
13228 wxPyEndAllowThreads(__tstate);
13229 if (PyErr_Occurred()) SWIG_fail;
13230 }
13231 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
13232 return resultobj;
13233 fail:
13234 return NULL;
13235 }
13236
13237
13238 SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13239 PyObject *resultobj = 0;
13240 wxLocale *arg1 = (wxLocale *) 0 ;
13241 void *argp1 = 0 ;
13242 int res1 = 0 ;
13243 PyObject *swig_obj[1] ;
13244
13245 if (!args) SWIG_fail;
13246 swig_obj[0] = args;
13247 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
13248 if (!SWIG_IsOK(res1)) {
13249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
13250 }
13251 arg1 = reinterpret_cast< wxLocale * >(argp1);
13252 {
13253 PyThreadState* __tstate = wxPyBeginAllowThreads();
13254 delete arg1;
13255
13256 wxPyEndAllowThreads(__tstate);
13257 if (PyErr_Occurred()) SWIG_fail;
13258 }
13259 resultobj = SWIG_Py_Void();
13260 return resultobj;
13261 fail:
13262 return NULL;
13263 }
13264
13265
13266 SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13267 PyObject *resultobj = 0;
13268 wxLocale *arg1 = (wxLocale *) 0 ;
13269 wxString *arg2 = 0 ;
13270 wxString const &arg3_defvalue = wxPyEmptyString ;
13271 wxString *arg3 = (wxString *) &arg3_defvalue ;
13272 wxString const &arg4_defvalue = wxPyEmptyString ;
13273 wxString *arg4 = (wxString *) &arg4_defvalue ;
13274 bool arg5 = (bool) true ;
13275 bool arg6 = (bool) false ;
13276 bool result;
13277 void *argp1 = 0 ;
13278 int res1 = 0 ;
13279 bool temp2 = false ;
13280 bool temp3 = false ;
13281 bool temp4 = false ;
13282 bool val5 ;
13283 int ecode5 = 0 ;
13284 bool val6 ;
13285 int ecode6 = 0 ;
13286 PyObject * obj0 = 0 ;
13287 PyObject * obj1 = 0 ;
13288 PyObject * obj2 = 0 ;
13289 PyObject * obj3 = 0 ;
13290 PyObject * obj4 = 0 ;
13291 PyObject * obj5 = 0 ;
13292 char * kwnames[] = {
13293 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
13294 };
13295
13296 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
13297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13298 if (!SWIG_IsOK(res1)) {
13299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
13300 }
13301 arg1 = reinterpret_cast< wxLocale * >(argp1);
13302 {
13303 arg2 = wxString_in_helper(obj1);
13304 if (arg2 == NULL) SWIG_fail;
13305 temp2 = true;
13306 }
13307 if (obj2) {
13308 {
13309 arg3 = wxString_in_helper(obj2);
13310 if (arg3 == NULL) SWIG_fail;
13311 temp3 = true;
13312 }
13313 }
13314 if (obj3) {
13315 {
13316 arg4 = wxString_in_helper(obj3);
13317 if (arg4 == NULL) SWIG_fail;
13318 temp4 = true;
13319 }
13320 }
13321 if (obj4) {
13322 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13323 if (!SWIG_IsOK(ecode5)) {
13324 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
13325 }
13326 arg5 = static_cast< bool >(val5);
13327 }
13328 if (obj5) {
13329 ecode6 = SWIG_AsVal_bool(obj5, &val6);
13330 if (!SWIG_IsOK(ecode6)) {
13331 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
13332 }
13333 arg6 = static_cast< bool >(val6);
13334 }
13335 {
13336 PyThreadState* __tstate = wxPyBeginAllowThreads();
13337 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
13338 wxPyEndAllowThreads(__tstate);
13339 if (PyErr_Occurred()) SWIG_fail;
13340 }
13341 {
13342 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13343 }
13344 {
13345 if (temp2)
13346 delete arg2;
13347 }
13348 {
13349 if (temp3)
13350 delete arg3;
13351 }
13352 {
13353 if (temp4)
13354 delete arg4;
13355 }
13356 return resultobj;
13357 fail:
13358 {
13359 if (temp2)
13360 delete arg2;
13361 }
13362 {
13363 if (temp3)
13364 delete arg3;
13365 }
13366 {
13367 if (temp4)
13368 delete arg4;
13369 }
13370 return NULL;
13371 }
13372
13373
13374 SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13375 PyObject *resultobj = 0;
13376 wxLocale *arg1 = (wxLocale *) 0 ;
13377 int arg2 = (int) wxLANGUAGE_DEFAULT ;
13378 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
13379 bool result;
13380 void *argp1 = 0 ;
13381 int res1 = 0 ;
13382 int val2 ;
13383 int ecode2 = 0 ;
13384 int val3 ;
13385 int ecode3 = 0 ;
13386 PyObject * obj0 = 0 ;
13387 PyObject * obj1 = 0 ;
13388 PyObject * obj2 = 0 ;
13389 char * kwnames[] = {
13390 (char *) "self",(char *) "language",(char *) "flags", NULL
13391 };
13392
13393 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13394 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13395 if (!SWIG_IsOK(res1)) {
13396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
13397 }
13398 arg1 = reinterpret_cast< wxLocale * >(argp1);
13399 if (obj1) {
13400 ecode2 = SWIG_AsVal_int(obj1, &val2);
13401 if (!SWIG_IsOK(ecode2)) {
13402 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
13403 }
13404 arg2 = static_cast< int >(val2);
13405 }
13406 if (obj2) {
13407 ecode3 = SWIG_AsVal_int(obj2, &val3);
13408 if (!SWIG_IsOK(ecode3)) {
13409 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
13410 }
13411 arg3 = static_cast< int >(val3);
13412 }
13413 {
13414 PyThreadState* __tstate = wxPyBeginAllowThreads();
13415 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
13416 wxPyEndAllowThreads(__tstate);
13417 if (PyErr_Occurred()) SWIG_fail;
13418 }
13419 {
13420 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13421 }
13422 return resultobj;
13423 fail:
13424 return NULL;
13425 }
13426
13427
13428 SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13429 PyObject *resultobj = 0;
13430 int result;
13431
13432 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
13433 {
13434 PyThreadState* __tstate = wxPyBeginAllowThreads();
13435 result = (int)wxLocale::GetSystemLanguage();
13436 wxPyEndAllowThreads(__tstate);
13437 if (PyErr_Occurred()) SWIG_fail;
13438 }
13439 resultobj = SWIG_From_int(static_cast< int >(result));
13440 return resultobj;
13441 fail:
13442 return NULL;
13443 }
13444
13445
13446 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13447 PyObject *resultobj = 0;
13448 wxFontEncoding result;
13449
13450 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
13451 {
13452 PyThreadState* __tstate = wxPyBeginAllowThreads();
13453 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
13454 wxPyEndAllowThreads(__tstate);
13455 if (PyErr_Occurred()) SWIG_fail;
13456 }
13457 resultobj = SWIG_From_int(static_cast< int >(result));
13458 return resultobj;
13459 fail:
13460 return NULL;
13461 }
13462
13463
13464 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13465 PyObject *resultobj = 0;
13466 wxString result;
13467
13468 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
13469 {
13470 PyThreadState* __tstate = wxPyBeginAllowThreads();
13471 result = wxLocale::GetSystemEncodingName();
13472 wxPyEndAllowThreads(__tstate);
13473 if (PyErr_Occurred()) SWIG_fail;
13474 }
13475 {
13476 #if wxUSE_UNICODE
13477 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13478 #else
13479 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13480 #endif
13481 }
13482 return resultobj;
13483 fail:
13484 return NULL;
13485 }
13486
13487
13488 SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13489 PyObject *resultobj = 0;
13490 wxLocale *arg1 = (wxLocale *) 0 ;
13491 bool result;
13492 void *argp1 = 0 ;
13493 int res1 = 0 ;
13494 PyObject *swig_obj[1] ;
13495
13496 if (!args) SWIG_fail;
13497 swig_obj[0] = args;
13498 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13499 if (!SWIG_IsOK(res1)) {
13500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
13501 }
13502 arg1 = reinterpret_cast< wxLocale * >(argp1);
13503 {
13504 PyThreadState* __tstate = wxPyBeginAllowThreads();
13505 result = (bool)((wxLocale const *)arg1)->IsOk();
13506 wxPyEndAllowThreads(__tstate);
13507 if (PyErr_Occurred()) SWIG_fail;
13508 }
13509 {
13510 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13511 }
13512 return resultobj;
13513 fail:
13514 return NULL;
13515 }
13516
13517
13518 SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13519 PyObject *resultobj = 0;
13520 wxLocale *arg1 = (wxLocale *) 0 ;
13521 wxString result;
13522 void *argp1 = 0 ;
13523 int res1 = 0 ;
13524 PyObject *swig_obj[1] ;
13525
13526 if (!args) SWIG_fail;
13527 swig_obj[0] = args;
13528 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13529 if (!SWIG_IsOK(res1)) {
13530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
13531 }
13532 arg1 = reinterpret_cast< wxLocale * >(argp1);
13533 {
13534 PyThreadState* __tstate = wxPyBeginAllowThreads();
13535 result = ((wxLocale const *)arg1)->GetLocale();
13536 wxPyEndAllowThreads(__tstate);
13537 if (PyErr_Occurred()) SWIG_fail;
13538 }
13539 {
13540 #if wxUSE_UNICODE
13541 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13542 #else
13543 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13544 #endif
13545 }
13546 return resultobj;
13547 fail:
13548 return NULL;
13549 }
13550
13551
13552 SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13553 PyObject *resultobj = 0;
13554 wxLocale *arg1 = (wxLocale *) 0 ;
13555 int result;
13556 void *argp1 = 0 ;
13557 int res1 = 0 ;
13558 PyObject *swig_obj[1] ;
13559
13560 if (!args) SWIG_fail;
13561 swig_obj[0] = args;
13562 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13563 if (!SWIG_IsOK(res1)) {
13564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
13565 }
13566 arg1 = reinterpret_cast< wxLocale * >(argp1);
13567 {
13568 PyThreadState* __tstate = wxPyBeginAllowThreads();
13569 result = (int)((wxLocale const *)arg1)->GetLanguage();
13570 wxPyEndAllowThreads(__tstate);
13571 if (PyErr_Occurred()) SWIG_fail;
13572 }
13573 resultobj = SWIG_From_int(static_cast< int >(result));
13574 return resultobj;
13575 fail:
13576 return NULL;
13577 }
13578
13579
13580 SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13581 PyObject *resultobj = 0;
13582 wxLocale *arg1 = (wxLocale *) 0 ;
13583 wxString result;
13584 void *argp1 = 0 ;
13585 int res1 = 0 ;
13586 PyObject *swig_obj[1] ;
13587
13588 if (!args) SWIG_fail;
13589 swig_obj[0] = args;
13590 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13591 if (!SWIG_IsOK(res1)) {
13592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
13593 }
13594 arg1 = reinterpret_cast< wxLocale * >(argp1);
13595 {
13596 PyThreadState* __tstate = wxPyBeginAllowThreads();
13597 result = ((wxLocale const *)arg1)->GetSysName();
13598 wxPyEndAllowThreads(__tstate);
13599 if (PyErr_Occurred()) SWIG_fail;
13600 }
13601 {
13602 #if wxUSE_UNICODE
13603 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13604 #else
13605 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13606 #endif
13607 }
13608 return resultobj;
13609 fail:
13610 return NULL;
13611 }
13612
13613
13614 SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13615 PyObject *resultobj = 0;
13616 wxLocale *arg1 = (wxLocale *) 0 ;
13617 wxString result;
13618 void *argp1 = 0 ;
13619 int res1 = 0 ;
13620 PyObject *swig_obj[1] ;
13621
13622 if (!args) SWIG_fail;
13623 swig_obj[0] = args;
13624 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13625 if (!SWIG_IsOK(res1)) {
13626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
13627 }
13628 arg1 = reinterpret_cast< wxLocale * >(argp1);
13629 {
13630 PyThreadState* __tstate = wxPyBeginAllowThreads();
13631 result = ((wxLocale const *)arg1)->GetCanonicalName();
13632 wxPyEndAllowThreads(__tstate);
13633 if (PyErr_Occurred()) SWIG_fail;
13634 }
13635 {
13636 #if wxUSE_UNICODE
13637 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13638 #else
13639 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13640 #endif
13641 }
13642 return resultobj;
13643 fail:
13644 return NULL;
13645 }
13646
13647
13648 SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13649 PyObject *resultobj = 0;
13650 wxString *arg1 = 0 ;
13651 bool temp1 = false ;
13652 PyObject * obj0 = 0 ;
13653 char * kwnames[] = {
13654 (char *) "prefix", NULL
13655 };
13656
13657 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
13658 {
13659 arg1 = wxString_in_helper(obj0);
13660 if (arg1 == NULL) SWIG_fail;
13661 temp1 = true;
13662 }
13663 {
13664 PyThreadState* __tstate = wxPyBeginAllowThreads();
13665 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
13666 wxPyEndAllowThreads(__tstate);
13667 if (PyErr_Occurred()) SWIG_fail;
13668 }
13669 resultobj = SWIG_Py_Void();
13670 {
13671 if (temp1)
13672 delete arg1;
13673 }
13674 return resultobj;
13675 fail:
13676 {
13677 if (temp1)
13678 delete arg1;
13679 }
13680 return NULL;
13681 }
13682
13683
13684 SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13685 PyObject *resultobj = 0;
13686 wxLocale *arg1 = (wxLocale *) 0 ;
13687 wxString *arg2 = 0 ;
13688 bool result;
13689 void *argp1 = 0 ;
13690 int res1 = 0 ;
13691 bool temp2 = false ;
13692 PyObject * obj0 = 0 ;
13693 PyObject * obj1 = 0 ;
13694 char * kwnames[] = {
13695 (char *) "self",(char *) "szDomain", NULL
13696 };
13697
13698 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
13699 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13700 if (!SWIG_IsOK(res1)) {
13701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
13702 }
13703 arg1 = reinterpret_cast< wxLocale * >(argp1);
13704 {
13705 arg2 = wxString_in_helper(obj1);
13706 if (arg2 == NULL) SWIG_fail;
13707 temp2 = true;
13708 }
13709 {
13710 PyThreadState* __tstate = wxPyBeginAllowThreads();
13711 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
13712 wxPyEndAllowThreads(__tstate);
13713 if (PyErr_Occurred()) SWIG_fail;
13714 }
13715 {
13716 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13717 }
13718 {
13719 if (temp2)
13720 delete arg2;
13721 }
13722 return resultobj;
13723 fail:
13724 {
13725 if (temp2)
13726 delete arg2;
13727 }
13728 return NULL;
13729 }
13730
13731
13732 SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13733 PyObject *resultobj = 0;
13734 wxLocale *arg1 = (wxLocale *) 0 ;
13735 wxString *arg2 = 0 ;
13736 bool result;
13737 void *argp1 = 0 ;
13738 int res1 = 0 ;
13739 bool temp2 = false ;
13740 PyObject * obj0 = 0 ;
13741 PyObject * obj1 = 0 ;
13742 char * kwnames[] = {
13743 (char *) "self",(char *) "szDomain", NULL
13744 };
13745
13746 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
13747 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13748 if (!SWIG_IsOK(res1)) {
13749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
13750 }
13751 arg1 = reinterpret_cast< wxLocale * >(argp1);
13752 {
13753 arg2 = wxString_in_helper(obj1);
13754 if (arg2 == NULL) SWIG_fail;
13755 temp2 = true;
13756 }
13757 {
13758 PyThreadState* __tstate = wxPyBeginAllowThreads();
13759 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
13760 wxPyEndAllowThreads(__tstate);
13761 if (PyErr_Occurred()) SWIG_fail;
13762 }
13763 {
13764 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13765 }
13766 {
13767 if (temp2)
13768 delete arg2;
13769 }
13770 return resultobj;
13771 fail:
13772 {
13773 if (temp2)
13774 delete arg2;
13775 }
13776 return NULL;
13777 }
13778
13779
13780 SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13781 PyObject *resultobj = 0;
13782 int arg1 ;
13783 wxLanguageInfo *result = 0 ;
13784 int val1 ;
13785 int ecode1 = 0 ;
13786 PyObject * obj0 = 0 ;
13787 char * kwnames[] = {
13788 (char *) "lang", NULL
13789 };
13790
13791 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
13792 ecode1 = SWIG_AsVal_int(obj0, &val1);
13793 if (!SWIG_IsOK(ecode1)) {
13794 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
13795 }
13796 arg1 = static_cast< int >(val1);
13797 {
13798 PyThreadState* __tstate = wxPyBeginAllowThreads();
13799 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
13800 wxPyEndAllowThreads(__tstate);
13801 if (PyErr_Occurred()) SWIG_fail;
13802 }
13803 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13804 return resultobj;
13805 fail:
13806 return NULL;
13807 }
13808
13809
13810 SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13811 PyObject *resultobj = 0;
13812 int arg1 ;
13813 wxString result;
13814 int val1 ;
13815 int ecode1 = 0 ;
13816 PyObject * obj0 = 0 ;
13817 char * kwnames[] = {
13818 (char *) "lang", NULL
13819 };
13820
13821 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
13822 ecode1 = SWIG_AsVal_int(obj0, &val1);
13823 if (!SWIG_IsOK(ecode1)) {
13824 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
13825 }
13826 arg1 = static_cast< int >(val1);
13827 {
13828 PyThreadState* __tstate = wxPyBeginAllowThreads();
13829 result = wxLocale::GetLanguageName(arg1);
13830 wxPyEndAllowThreads(__tstate);
13831 if (PyErr_Occurred()) SWIG_fail;
13832 }
13833 {
13834 #if wxUSE_UNICODE
13835 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13836 #else
13837 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13838 #endif
13839 }
13840 return resultobj;
13841 fail:
13842 return NULL;
13843 }
13844
13845
13846 SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13847 PyObject *resultobj = 0;
13848 wxString *arg1 = 0 ;
13849 wxLanguageInfo *result = 0 ;
13850 bool temp1 = false ;
13851 PyObject * obj0 = 0 ;
13852 char * kwnames[] = {
13853 (char *) "locale", NULL
13854 };
13855
13856 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
13857 {
13858 arg1 = wxString_in_helper(obj0);
13859 if (arg1 == NULL) SWIG_fail;
13860 temp1 = true;
13861 }
13862 {
13863 PyThreadState* __tstate = wxPyBeginAllowThreads();
13864 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
13865 wxPyEndAllowThreads(__tstate);
13866 if (PyErr_Occurred()) SWIG_fail;
13867 }
13868 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13869 {
13870 if (temp1)
13871 delete arg1;
13872 }
13873 return resultobj;
13874 fail:
13875 {
13876 if (temp1)
13877 delete arg1;
13878 }
13879 return NULL;
13880 }
13881
13882
13883 SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13884 PyObject *resultobj = 0;
13885 wxLanguageInfo *arg1 = 0 ;
13886 void *argp1 = 0 ;
13887 int res1 = 0 ;
13888 PyObject * obj0 = 0 ;
13889 char * kwnames[] = {
13890 (char *) "info", NULL
13891 };
13892
13893 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
13894 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
13895 if (!SWIG_IsOK(res1)) {
13896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
13897 }
13898 if (!argp1) {
13899 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
13900 }
13901 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13902 {
13903 PyThreadState* __tstate = wxPyBeginAllowThreads();
13904 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
13905 wxPyEndAllowThreads(__tstate);
13906 if (PyErr_Occurred()) SWIG_fail;
13907 }
13908 resultobj = SWIG_Py_Void();
13909 return resultobj;
13910 fail:
13911 return NULL;
13912 }
13913
13914
13915 SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13916 PyObject *resultobj = 0;
13917 wxLocale *arg1 = (wxLocale *) 0 ;
13918 wxString *arg2 = 0 ;
13919 wxString const &arg3_defvalue = wxPyEmptyString ;
13920 wxString *arg3 = (wxString *) &arg3_defvalue ;
13921 wxString result;
13922 void *argp1 = 0 ;
13923 int res1 = 0 ;
13924 bool temp2 = false ;
13925 bool temp3 = false ;
13926 PyObject * obj0 = 0 ;
13927 PyObject * obj1 = 0 ;
13928 PyObject * obj2 = 0 ;
13929 char * kwnames[] = {
13930 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
13931 };
13932
13933 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13934 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13935 if (!SWIG_IsOK(res1)) {
13936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
13937 }
13938 arg1 = reinterpret_cast< wxLocale * >(argp1);
13939 {
13940 arg2 = wxString_in_helper(obj1);
13941 if (arg2 == NULL) SWIG_fail;
13942 temp2 = true;
13943 }
13944 if (obj2) {
13945 {
13946 arg3 = wxString_in_helper(obj2);
13947 if (arg3 == NULL) SWIG_fail;
13948 temp3 = true;
13949 }
13950 }
13951 {
13952 PyThreadState* __tstate = wxPyBeginAllowThreads();
13953 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
13954 wxPyEndAllowThreads(__tstate);
13955 if (PyErr_Occurred()) SWIG_fail;
13956 }
13957 {
13958 #if wxUSE_UNICODE
13959 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13960 #else
13961 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13962 #endif
13963 }
13964 {
13965 if (temp2)
13966 delete arg2;
13967 }
13968 {
13969 if (temp3)
13970 delete arg3;
13971 }
13972 return resultobj;
13973 fail:
13974 {
13975 if (temp2)
13976 delete arg2;
13977 }
13978 {
13979 if (temp3)
13980 delete arg3;
13981 }
13982 return NULL;
13983 }
13984
13985
13986 SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13987 PyObject *resultobj = 0;
13988 wxLocale *arg1 = (wxLocale *) 0 ;
13989 wxString *result = 0 ;
13990 void *argp1 = 0 ;
13991 int res1 = 0 ;
13992 PyObject *swig_obj[1] ;
13993
13994 if (!args) SWIG_fail;
13995 swig_obj[0] = args;
13996 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13997 if (!SWIG_IsOK(res1)) {
13998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
13999 }
14000 arg1 = reinterpret_cast< wxLocale * >(argp1);
14001 {
14002 PyThreadState* __tstate = wxPyBeginAllowThreads();
14003 {
14004 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
14005 result = (wxString *) &_result_ref;
14006 }
14007 wxPyEndAllowThreads(__tstate);
14008 if (PyErr_Occurred()) SWIG_fail;
14009 }
14010 {
14011 #if wxUSE_UNICODE
14012 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
14013 #else
14014 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
14015 #endif
14016 }
14017 return resultobj;
14018 fail:
14019 return NULL;
14020 }
14021
14022
14023 SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14024 PyObject *obj;
14025 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14026 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
14027 return SWIG_Py_Void();
14028 }
14029
14030 SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14031 return SWIG_Python_InitShadowInstance(args);
14032 }
14033
14034 SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14035 PyObject *resultobj = 0;
14036 wxLocale *result = 0 ;
14037
14038 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
14039 {
14040 PyThreadState* __tstate = wxPyBeginAllowThreads();
14041 result = (wxLocale *)wxGetLocale();
14042 wxPyEndAllowThreads(__tstate);
14043 if (PyErr_Occurred()) SWIG_fail;
14044 }
14045 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
14046 return resultobj;
14047 fail:
14048 return NULL;
14049 }
14050
14051
14052 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
14053 PyObject *resultobj = 0;
14054 wxString *arg1 = 0 ;
14055 wxString result;
14056 bool temp1 = false ;
14057
14058 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
14059 {
14060 arg1 = wxString_in_helper(swig_obj[0]);
14061 if (arg1 == NULL) SWIG_fail;
14062 temp1 = true;
14063 }
14064 {
14065 PyThreadState* __tstate = wxPyBeginAllowThreads();
14066 result = wxGetTranslation((wxString const &)*arg1);
14067 wxPyEndAllowThreads(__tstate);
14068 if (PyErr_Occurred()) SWIG_fail;
14069 }
14070 {
14071 #if wxUSE_UNICODE
14072 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14073 #else
14074 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14075 #endif
14076 }
14077 {
14078 if (temp1)
14079 delete arg1;
14080 }
14081 return resultobj;
14082 fail:
14083 {
14084 if (temp1)
14085 delete arg1;
14086 }
14087 return NULL;
14088 }
14089
14090
14091 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
14092 PyObject *resultobj = 0;
14093 wxString *arg1 = 0 ;
14094 wxString *arg2 = 0 ;
14095 size_t arg3 ;
14096 wxString result;
14097 bool temp1 = false ;
14098 bool temp2 = false ;
14099 size_t val3 ;
14100 int ecode3 = 0 ;
14101
14102 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
14103 {
14104 arg1 = wxString_in_helper(swig_obj[0]);
14105 if (arg1 == NULL) SWIG_fail;
14106 temp1 = true;
14107 }
14108 {
14109 arg2 = wxString_in_helper(swig_obj[1]);
14110 if (arg2 == NULL) SWIG_fail;
14111 temp2 = true;
14112 }
14113 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
14114 if (!SWIG_IsOK(ecode3)) {
14115 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
14116 }
14117 arg3 = static_cast< size_t >(val3);
14118 {
14119 PyThreadState* __tstate = wxPyBeginAllowThreads();
14120 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
14121 wxPyEndAllowThreads(__tstate);
14122 if (PyErr_Occurred()) SWIG_fail;
14123 }
14124 {
14125 #if wxUSE_UNICODE
14126 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14127 #else
14128 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14129 #endif
14130 }
14131 {
14132 if (temp1)
14133 delete arg1;
14134 }
14135 {
14136 if (temp2)
14137 delete arg2;
14138 }
14139 return resultobj;
14140 fail:
14141 {
14142 if (temp1)
14143 delete arg1;
14144 }
14145 {
14146 if (temp2)
14147 delete arg2;
14148 }
14149 return NULL;
14150 }
14151
14152
14153 SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
14154 int argc;
14155 PyObject *argv[4];
14156
14157 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,3,argv))) SWIG_fail;
14158 --argc;
14159 if (argc == 1) {
14160 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
14161 }
14162 if (argc == 3) {
14163 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
14164 }
14165
14166 fail:
14167 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
14168 return NULL;
14169 }
14170
14171
14172 SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14173 PyObject *resultobj = 0;
14174 wxEncodingConverter *result = 0 ;
14175
14176 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
14177 {
14178 PyThreadState* __tstate = wxPyBeginAllowThreads();
14179 result = (wxEncodingConverter *)new wxEncodingConverter();
14180 wxPyEndAllowThreads(__tstate);
14181 if (PyErr_Occurred()) SWIG_fail;
14182 }
14183 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
14184 return resultobj;
14185 fail:
14186 return NULL;
14187 }
14188
14189
14190 SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14191 PyObject *resultobj = 0;
14192 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
14193 void *argp1 = 0 ;
14194 int res1 = 0 ;
14195 PyObject *swig_obj[1] ;
14196
14197 if (!args) SWIG_fail;
14198 swig_obj[0] = args;
14199 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
14200 if (!SWIG_IsOK(res1)) {
14201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
14202 }
14203 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
14204 {
14205 PyThreadState* __tstate = wxPyBeginAllowThreads();
14206 delete arg1;
14207
14208 wxPyEndAllowThreads(__tstate);
14209 if (PyErr_Occurred()) SWIG_fail;
14210 }
14211 resultobj = SWIG_Py_Void();
14212 return resultobj;
14213 fail:
14214 return NULL;
14215 }
14216
14217
14218 SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14219 PyObject *resultobj = 0;
14220 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
14221 wxFontEncoding arg2 ;
14222 wxFontEncoding arg3 ;
14223 int arg4 = (int) wxCONVERT_STRICT ;
14224 bool result;
14225 void *argp1 = 0 ;
14226 int res1 = 0 ;
14227 int val2 ;
14228 int ecode2 = 0 ;
14229 int val3 ;
14230 int ecode3 = 0 ;
14231 int val4 ;
14232 int ecode4 = 0 ;
14233 PyObject * obj0 = 0 ;
14234 PyObject * obj1 = 0 ;
14235 PyObject * obj2 = 0 ;
14236 PyObject * obj3 = 0 ;
14237 char * kwnames[] = {
14238 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
14239 };
14240
14241 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14242 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
14243 if (!SWIG_IsOK(res1)) {
14244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
14245 }
14246 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
14247 ecode2 = SWIG_AsVal_int(obj1, &val2);
14248 if (!SWIG_IsOK(ecode2)) {
14249 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14250 }
14251 arg2 = static_cast< wxFontEncoding >(val2);
14252 ecode3 = SWIG_AsVal_int(obj2, &val3);
14253 if (!SWIG_IsOK(ecode3)) {
14254 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
14255 }
14256 arg3 = static_cast< wxFontEncoding >(val3);
14257 if (obj3) {
14258 ecode4 = SWIG_AsVal_int(obj3, &val4);
14259 if (!SWIG_IsOK(ecode4)) {
14260 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
14261 }
14262 arg4 = static_cast< int >(val4);
14263 }
14264 {
14265 PyThreadState* __tstate = wxPyBeginAllowThreads();
14266 result = (bool)(arg1)->Init(arg2,arg3,arg4);
14267 wxPyEndAllowThreads(__tstate);
14268 if (PyErr_Occurred()) SWIG_fail;
14269 }
14270 {
14271 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14272 }
14273 return resultobj;
14274 fail:
14275 return NULL;
14276 }
14277
14278
14279 SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14280 PyObject *resultobj = 0;
14281 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
14282 wxString *arg2 = 0 ;
14283 wxString result;
14284 void *argp1 = 0 ;
14285 int res1 = 0 ;
14286 bool temp2 = false ;
14287 PyObject * obj0 = 0 ;
14288 PyObject * obj1 = 0 ;
14289 char * kwnames[] = {
14290 (char *) "self",(char *) "input", NULL
14291 };
14292
14293 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
14294 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
14295 if (!SWIG_IsOK(res1)) {
14296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
14297 }
14298 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
14299 {
14300 arg2 = wxString_in_helper(obj1);
14301 if (arg2 == NULL) SWIG_fail;
14302 temp2 = true;
14303 }
14304 {
14305 PyThreadState* __tstate = wxPyBeginAllowThreads();
14306 result = (arg1)->Convert((wxString const &)*arg2);
14307 wxPyEndAllowThreads(__tstate);
14308 if (PyErr_Occurred()) SWIG_fail;
14309 }
14310 {
14311 #if wxUSE_UNICODE
14312 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14313 #else
14314 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14315 #endif
14316 }
14317 {
14318 if (temp2)
14319 delete arg2;
14320 }
14321 return resultobj;
14322 fail:
14323 {
14324 if (temp2)
14325 delete arg2;
14326 }
14327 return NULL;
14328 }
14329
14330
14331 SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14332 PyObject *resultobj = 0;
14333 wxFontEncoding arg1 ;
14334 int arg2 = (int) wxPLATFORM_CURRENT ;
14335 wxFontEncodingArray result;
14336 int val1 ;
14337 int ecode1 = 0 ;
14338 int val2 ;
14339 int ecode2 = 0 ;
14340 PyObject * obj0 = 0 ;
14341 PyObject * obj1 = 0 ;
14342 char * kwnames[] = {
14343 (char *) "enc",(char *) "platform", NULL
14344 };
14345
14346 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
14347 ecode1 = SWIG_AsVal_int(obj0, &val1);
14348 if (!SWIG_IsOK(ecode1)) {
14349 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
14350 }
14351 arg1 = static_cast< wxFontEncoding >(val1);
14352 if (obj1) {
14353 ecode2 = SWIG_AsVal_int(obj1, &val2);
14354 if (!SWIG_IsOK(ecode2)) {
14355 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
14356 }
14357 arg2 = static_cast< int >(val2);
14358 }
14359 {
14360 PyThreadState* __tstate = wxPyBeginAllowThreads();
14361 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
14362 wxPyEndAllowThreads(__tstate);
14363 if (PyErr_Occurred()) SWIG_fail;
14364 }
14365 {
14366 resultobj = PyList_New(0);
14367 for (size_t i=0; i < (&result)->GetCount(); i++) {
14368 PyObject* number = PyInt_FromLong((&result)->Item(i));
14369 PyList_Append(resultobj, number);
14370 Py_DECREF(number);
14371 }
14372 }
14373 return resultobj;
14374 fail:
14375 return NULL;
14376 }
14377
14378
14379 SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14380 PyObject *resultobj = 0;
14381 wxFontEncoding arg1 ;
14382 wxFontEncodingArray result;
14383 int val1 ;
14384 int ecode1 = 0 ;
14385 PyObject * obj0 = 0 ;
14386 char * kwnames[] = {
14387 (char *) "enc", NULL
14388 };
14389
14390 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
14391 ecode1 = SWIG_AsVal_int(obj0, &val1);
14392 if (!SWIG_IsOK(ecode1)) {
14393 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
14394 }
14395 arg1 = static_cast< wxFontEncoding >(val1);
14396 {
14397 PyThreadState* __tstate = wxPyBeginAllowThreads();
14398 result = wxEncodingConverter::GetAllEquivalents(arg1);
14399 wxPyEndAllowThreads(__tstate);
14400 if (PyErr_Occurred()) SWIG_fail;
14401 }
14402 {
14403 resultobj = PyList_New(0);
14404 for (size_t i=0; i < (&result)->GetCount(); i++) {
14405 PyObject* number = PyInt_FromLong((&result)->Item(i));
14406 PyList_Append(resultobj, number);
14407 Py_DECREF(number);
14408 }
14409 }
14410 return resultobj;
14411 fail:
14412 return NULL;
14413 }
14414
14415
14416 SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14417 PyObject *resultobj = 0;
14418 wxFontEncoding arg1 ;
14419 wxFontEncoding arg2 ;
14420 bool result;
14421 int val1 ;
14422 int ecode1 = 0 ;
14423 int val2 ;
14424 int ecode2 = 0 ;
14425 PyObject * obj0 = 0 ;
14426 PyObject * obj1 = 0 ;
14427 char * kwnames[] = {
14428 (char *) "encIn",(char *) "encOut", NULL
14429 };
14430
14431 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
14432 ecode1 = SWIG_AsVal_int(obj0, &val1);
14433 if (!SWIG_IsOK(ecode1)) {
14434 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
14435 }
14436 arg1 = static_cast< wxFontEncoding >(val1);
14437 ecode2 = SWIG_AsVal_int(obj1, &val2);
14438 if (!SWIG_IsOK(ecode2)) {
14439 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14440 }
14441 arg2 = static_cast< wxFontEncoding >(val2);
14442 {
14443 PyThreadState* __tstate = wxPyBeginAllowThreads();
14444 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
14445 wxPyEndAllowThreads(__tstate);
14446 if (PyErr_Occurred()) SWIG_fail;
14447 }
14448 {
14449 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14450 }
14451 return resultobj;
14452 fail:
14453 return NULL;
14454 }
14455
14456
14457 SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14458 PyObject *obj;
14459 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14460 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
14461 return SWIG_Py_Void();
14462 }
14463
14464 SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14465 return SWIG_Python_InitShadowInstance(args);
14466 }
14467
14468 SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14469 PyObject *resultobj = 0;
14470 wxDC *arg1 = (wxDC *) 0 ;
14471 void *argp1 = 0 ;
14472 int res1 = 0 ;
14473 PyObject *swig_obj[1] ;
14474
14475 if (!args) SWIG_fail;
14476 swig_obj[0] = args;
14477 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
14478 if (!SWIG_IsOK(res1)) {
14479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
14480 }
14481 arg1 = reinterpret_cast< wxDC * >(argp1);
14482 {
14483 PyThreadState* __tstate = wxPyBeginAllowThreads();
14484 delete arg1;
14485
14486 wxPyEndAllowThreads(__tstate);
14487 if (PyErr_Occurred()) SWIG_fail;
14488 }
14489 resultobj = SWIG_Py_Void();
14490 return resultobj;
14491 fail:
14492 return NULL;
14493 }
14494
14495
14496 SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14497 PyObject *resultobj = 0;
14498 wxDC *arg1 = (wxDC *) 0 ;
14499 int arg2 ;
14500 int arg3 ;
14501 wxColour *arg4 = 0 ;
14502 int arg5 = (int) wxFLOOD_SURFACE ;
14503 bool result;
14504 void *argp1 = 0 ;
14505 int res1 = 0 ;
14506 int val2 ;
14507 int ecode2 = 0 ;
14508 int val3 ;
14509 int ecode3 = 0 ;
14510 wxColour temp4 ;
14511 int val5 ;
14512 int ecode5 = 0 ;
14513 PyObject * obj0 = 0 ;
14514 PyObject * obj1 = 0 ;
14515 PyObject * obj2 = 0 ;
14516 PyObject * obj3 = 0 ;
14517 PyObject * obj4 = 0 ;
14518 char * kwnames[] = {
14519 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
14520 };
14521
14522 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14523 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14524 if (!SWIG_IsOK(res1)) {
14525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
14526 }
14527 arg1 = reinterpret_cast< wxDC * >(argp1);
14528 ecode2 = SWIG_AsVal_int(obj1, &val2);
14529 if (!SWIG_IsOK(ecode2)) {
14530 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
14531 }
14532 arg2 = static_cast< int >(val2);
14533 ecode3 = SWIG_AsVal_int(obj2, &val3);
14534 if (!SWIG_IsOK(ecode3)) {
14535 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
14536 }
14537 arg3 = static_cast< int >(val3);
14538 {
14539 arg4 = &temp4;
14540 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
14541 }
14542 if (obj4) {
14543 ecode5 = SWIG_AsVal_int(obj4, &val5);
14544 if (!SWIG_IsOK(ecode5)) {
14545 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
14546 }
14547 arg5 = static_cast< int >(val5);
14548 }
14549 {
14550 PyThreadState* __tstate = wxPyBeginAllowThreads();
14551 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
14552 wxPyEndAllowThreads(__tstate);
14553 if (PyErr_Occurred()) SWIG_fail;
14554 }
14555 {
14556 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14557 }
14558 return resultobj;
14559 fail:
14560 return NULL;
14561 }
14562
14563
14564 SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14565 PyObject *resultobj = 0;
14566 wxDC *arg1 = (wxDC *) 0 ;
14567 wxPoint *arg2 = 0 ;
14568 wxColour *arg3 = 0 ;
14569 int arg4 = (int) wxFLOOD_SURFACE ;
14570 bool result;
14571 void *argp1 = 0 ;
14572 int res1 = 0 ;
14573 wxPoint temp2 ;
14574 wxColour temp3 ;
14575 int val4 ;
14576 int ecode4 = 0 ;
14577 PyObject * obj0 = 0 ;
14578 PyObject * obj1 = 0 ;
14579 PyObject * obj2 = 0 ;
14580 PyObject * obj3 = 0 ;
14581 char * kwnames[] = {
14582 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
14583 };
14584
14585 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14586 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14587 if (!SWIG_IsOK(res1)) {
14588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
14589 }
14590 arg1 = reinterpret_cast< wxDC * >(argp1);
14591 {
14592 arg2 = &temp2;
14593 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14594 }
14595 {
14596 arg3 = &temp3;
14597 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
14598 }
14599 if (obj3) {
14600 ecode4 = SWIG_AsVal_int(obj3, &val4);
14601 if (!SWIG_IsOK(ecode4)) {
14602 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
14603 }
14604 arg4 = static_cast< int >(val4);
14605 }
14606 {
14607 PyThreadState* __tstate = wxPyBeginAllowThreads();
14608 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
14609 wxPyEndAllowThreads(__tstate);
14610 if (PyErr_Occurred()) SWIG_fail;
14611 }
14612 {
14613 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14614 }
14615 return resultobj;
14616 fail:
14617 return NULL;
14618 }
14619
14620
14621 SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14622 PyObject *resultobj = 0;
14623 wxDC *arg1 = (wxDC *) 0 ;
14624 wxRect *arg2 = 0 ;
14625 wxColour *arg3 = 0 ;
14626 wxColour *arg4 = 0 ;
14627 wxPoint *arg5 = 0 ;
14628 void *argp1 = 0 ;
14629 int res1 = 0 ;
14630 wxRect temp2 ;
14631 wxColour temp3 ;
14632 wxColour temp4 ;
14633 wxPoint temp5 ;
14634 PyObject * obj0 = 0 ;
14635 PyObject * obj1 = 0 ;
14636 PyObject * obj2 = 0 ;
14637 PyObject * obj3 = 0 ;
14638 PyObject * obj4 = 0 ;
14639 char * kwnames[] = {
14640 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
14641 };
14642
14643 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14644 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14645 if (!SWIG_IsOK(res1)) {
14646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
14647 }
14648 arg1 = reinterpret_cast< wxDC * >(argp1);
14649 {
14650 arg2 = &temp2;
14651 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
14652 }
14653 {
14654 arg3 = &temp3;
14655 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
14656 }
14657 {
14658 arg4 = &temp4;
14659 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
14660 }
14661 {
14662 arg5 = &temp5;
14663 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
14664 }
14665 {
14666 PyThreadState* __tstate = wxPyBeginAllowThreads();
14667 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
14668 wxPyEndAllowThreads(__tstate);
14669 if (PyErr_Occurred()) SWIG_fail;
14670 }
14671 resultobj = SWIG_Py_Void();
14672 return resultobj;
14673 fail:
14674 return NULL;
14675 }
14676
14677
14678 SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14679 PyObject *resultobj = 0;
14680 wxDC *arg1 = (wxDC *) 0 ;
14681 wxRect *arg2 = 0 ;
14682 wxColour *arg3 = 0 ;
14683 wxColour *arg4 = 0 ;
14684 wxDirection arg5 = (wxDirection) wxEAST ;
14685 void *argp1 = 0 ;
14686 int res1 = 0 ;
14687 wxRect temp2 ;
14688 wxColour temp3 ;
14689 wxColour temp4 ;
14690 int val5 ;
14691 int ecode5 = 0 ;
14692 PyObject * obj0 = 0 ;
14693 PyObject * obj1 = 0 ;
14694 PyObject * obj2 = 0 ;
14695 PyObject * obj3 = 0 ;
14696 PyObject * obj4 = 0 ;
14697 char * kwnames[] = {
14698 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
14699 };
14700
14701 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14702 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14703 if (!SWIG_IsOK(res1)) {
14704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
14705 }
14706 arg1 = reinterpret_cast< wxDC * >(argp1);
14707 {
14708 arg2 = &temp2;
14709 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
14710 }
14711 {
14712 arg3 = &temp3;
14713 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
14714 }
14715 {
14716 arg4 = &temp4;
14717 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
14718 }
14719 if (obj4) {
14720 ecode5 = SWIG_AsVal_int(obj4, &val5);
14721 if (!SWIG_IsOK(ecode5)) {
14722 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
14723 }
14724 arg5 = static_cast< wxDirection >(val5);
14725 }
14726 {
14727 PyThreadState* __tstate = wxPyBeginAllowThreads();
14728 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
14729 wxPyEndAllowThreads(__tstate);
14730 if (PyErr_Occurred()) SWIG_fail;
14731 }
14732 resultobj = SWIG_Py_Void();
14733 return resultobj;
14734 fail:
14735 return NULL;
14736 }
14737
14738
14739 SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14740 PyObject *resultobj = 0;
14741 wxDC *arg1 = (wxDC *) 0 ;
14742 int arg2 ;
14743 int arg3 ;
14744 wxColour result;
14745 void *argp1 = 0 ;
14746 int res1 = 0 ;
14747 int val2 ;
14748 int ecode2 = 0 ;
14749 int val3 ;
14750 int ecode3 = 0 ;
14751 PyObject * obj0 = 0 ;
14752 PyObject * obj1 = 0 ;
14753 PyObject * obj2 = 0 ;
14754 char * kwnames[] = {
14755 (char *) "self",(char *) "x",(char *) "y", NULL
14756 };
14757
14758 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14759 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14760 if (!SWIG_IsOK(res1)) {
14761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
14762 }
14763 arg1 = reinterpret_cast< wxDC * >(argp1);
14764 ecode2 = SWIG_AsVal_int(obj1, &val2);
14765 if (!SWIG_IsOK(ecode2)) {
14766 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
14767 }
14768 arg2 = static_cast< int >(val2);
14769 ecode3 = SWIG_AsVal_int(obj2, &val3);
14770 if (!SWIG_IsOK(ecode3)) {
14771 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
14772 }
14773 arg3 = static_cast< int >(val3);
14774 {
14775 PyThreadState* __tstate = wxPyBeginAllowThreads();
14776 result = wxDC_GetPixel(arg1,arg2,arg3);
14777 wxPyEndAllowThreads(__tstate);
14778 if (PyErr_Occurred()) SWIG_fail;
14779 }
14780 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
14781 return resultobj;
14782 fail:
14783 return NULL;
14784 }
14785
14786
14787 SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14788 PyObject *resultobj = 0;
14789 wxDC *arg1 = (wxDC *) 0 ;
14790 wxPoint *arg2 = 0 ;
14791 wxColour result;
14792 void *argp1 = 0 ;
14793 int res1 = 0 ;
14794 wxPoint temp2 ;
14795 PyObject * obj0 = 0 ;
14796 PyObject * obj1 = 0 ;
14797 char * kwnames[] = {
14798 (char *) "self",(char *) "pt", NULL
14799 };
14800
14801 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
14802 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14803 if (!SWIG_IsOK(res1)) {
14804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
14805 }
14806 arg1 = reinterpret_cast< wxDC * >(argp1);
14807 {
14808 arg2 = &temp2;
14809 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14810 }
14811 {
14812 PyThreadState* __tstate = wxPyBeginAllowThreads();
14813 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
14814 wxPyEndAllowThreads(__tstate);
14815 if (PyErr_Occurred()) SWIG_fail;
14816 }
14817 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
14818 return resultobj;
14819 fail:
14820 return NULL;
14821 }
14822
14823
14824 SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14825 PyObject *resultobj = 0;
14826 wxDC *arg1 = (wxDC *) 0 ;
14827 int arg2 ;
14828 int arg3 ;
14829 int arg4 ;
14830 int arg5 ;
14831 void *argp1 = 0 ;
14832 int res1 = 0 ;
14833 int val2 ;
14834 int ecode2 = 0 ;
14835 int val3 ;
14836 int ecode3 = 0 ;
14837 int val4 ;
14838 int ecode4 = 0 ;
14839 int val5 ;
14840 int ecode5 = 0 ;
14841 PyObject * obj0 = 0 ;
14842 PyObject * obj1 = 0 ;
14843 PyObject * obj2 = 0 ;
14844 PyObject * obj3 = 0 ;
14845 PyObject * obj4 = 0 ;
14846 char * kwnames[] = {
14847 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
14848 };
14849
14850 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14851 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14852 if (!SWIG_IsOK(res1)) {
14853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
14854 }
14855 arg1 = reinterpret_cast< wxDC * >(argp1);
14856 ecode2 = SWIG_AsVal_int(obj1, &val2);
14857 if (!SWIG_IsOK(ecode2)) {
14858 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
14859 }
14860 arg2 = static_cast< int >(val2);
14861 ecode3 = SWIG_AsVal_int(obj2, &val3);
14862 if (!SWIG_IsOK(ecode3)) {
14863 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
14864 }
14865 arg3 = static_cast< int >(val3);
14866 ecode4 = SWIG_AsVal_int(obj3, &val4);
14867 if (!SWIG_IsOK(ecode4)) {
14868 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
14869 }
14870 arg4 = static_cast< int >(val4);
14871 ecode5 = SWIG_AsVal_int(obj4, &val5);
14872 if (!SWIG_IsOK(ecode5)) {
14873 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
14874 }
14875 arg5 = static_cast< int >(val5);
14876 {
14877 PyThreadState* __tstate = wxPyBeginAllowThreads();
14878 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
14879 wxPyEndAllowThreads(__tstate);
14880 if (PyErr_Occurred()) SWIG_fail;
14881 }
14882 resultobj = SWIG_Py_Void();
14883 return resultobj;
14884 fail:
14885 return NULL;
14886 }
14887
14888
14889 SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14890 PyObject *resultobj = 0;
14891 wxDC *arg1 = (wxDC *) 0 ;
14892 wxPoint *arg2 = 0 ;
14893 wxPoint *arg3 = 0 ;
14894 void *argp1 = 0 ;
14895 int res1 = 0 ;
14896 wxPoint temp2 ;
14897 wxPoint temp3 ;
14898 PyObject * obj0 = 0 ;
14899 PyObject * obj1 = 0 ;
14900 PyObject * obj2 = 0 ;
14901 char * kwnames[] = {
14902 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
14903 };
14904
14905 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14906 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14907 if (!SWIG_IsOK(res1)) {
14908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
14909 }
14910 arg1 = reinterpret_cast< wxDC * >(argp1);
14911 {
14912 arg2 = &temp2;
14913 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14914 }
14915 {
14916 arg3 = &temp3;
14917 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14918 }
14919 {
14920 PyThreadState* __tstate = wxPyBeginAllowThreads();
14921 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
14922 wxPyEndAllowThreads(__tstate);
14923 if (PyErr_Occurred()) SWIG_fail;
14924 }
14925 resultobj = SWIG_Py_Void();
14926 return resultobj;
14927 fail:
14928 return NULL;
14929 }
14930
14931
14932 SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14933 PyObject *resultobj = 0;
14934 wxDC *arg1 = (wxDC *) 0 ;
14935 int arg2 ;
14936 int arg3 ;
14937 void *argp1 = 0 ;
14938 int res1 = 0 ;
14939 int val2 ;
14940 int ecode2 = 0 ;
14941 int val3 ;
14942 int ecode3 = 0 ;
14943 PyObject * obj0 = 0 ;
14944 PyObject * obj1 = 0 ;
14945 PyObject * obj2 = 0 ;
14946 char * kwnames[] = {
14947 (char *) "self",(char *) "x",(char *) "y", NULL
14948 };
14949
14950 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14951 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14952 if (!SWIG_IsOK(res1)) {
14953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
14954 }
14955 arg1 = reinterpret_cast< wxDC * >(argp1);
14956 ecode2 = SWIG_AsVal_int(obj1, &val2);
14957 if (!SWIG_IsOK(ecode2)) {
14958 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
14959 }
14960 arg2 = static_cast< int >(val2);
14961 ecode3 = SWIG_AsVal_int(obj2, &val3);
14962 if (!SWIG_IsOK(ecode3)) {
14963 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
14964 }
14965 arg3 = static_cast< int >(val3);
14966 {
14967 PyThreadState* __tstate = wxPyBeginAllowThreads();
14968 (arg1)->CrossHair(arg2,arg3);
14969 wxPyEndAllowThreads(__tstate);
14970 if (PyErr_Occurred()) SWIG_fail;
14971 }
14972 resultobj = SWIG_Py_Void();
14973 return resultobj;
14974 fail:
14975 return NULL;
14976 }
14977
14978
14979 SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14980 PyObject *resultobj = 0;
14981 wxDC *arg1 = (wxDC *) 0 ;
14982 wxPoint *arg2 = 0 ;
14983 void *argp1 = 0 ;
14984 int res1 = 0 ;
14985 wxPoint temp2 ;
14986 PyObject * obj0 = 0 ;
14987 PyObject * obj1 = 0 ;
14988 char * kwnames[] = {
14989 (char *) "self",(char *) "pt", NULL
14990 };
14991
14992 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
14993 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14994 if (!SWIG_IsOK(res1)) {
14995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
14996 }
14997 arg1 = reinterpret_cast< wxDC * >(argp1);
14998 {
14999 arg2 = &temp2;
15000 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15001 }
15002 {
15003 PyThreadState* __tstate = wxPyBeginAllowThreads();
15004 (arg1)->CrossHair((wxPoint const &)*arg2);
15005 wxPyEndAllowThreads(__tstate);
15006 if (PyErr_Occurred()) SWIG_fail;
15007 }
15008 resultobj = SWIG_Py_Void();
15009 return resultobj;
15010 fail:
15011 return NULL;
15012 }
15013
15014
15015 SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15016 PyObject *resultobj = 0;
15017 wxDC *arg1 = (wxDC *) 0 ;
15018 int arg2 ;
15019 int arg3 ;
15020 int arg4 ;
15021 int arg5 ;
15022 int arg6 ;
15023 int arg7 ;
15024 void *argp1 = 0 ;
15025 int res1 = 0 ;
15026 int val2 ;
15027 int ecode2 = 0 ;
15028 int val3 ;
15029 int ecode3 = 0 ;
15030 int val4 ;
15031 int ecode4 = 0 ;
15032 int val5 ;
15033 int ecode5 = 0 ;
15034 int val6 ;
15035 int ecode6 = 0 ;
15036 int val7 ;
15037 int ecode7 = 0 ;
15038 PyObject * obj0 = 0 ;
15039 PyObject * obj1 = 0 ;
15040 PyObject * obj2 = 0 ;
15041 PyObject * obj3 = 0 ;
15042 PyObject * obj4 = 0 ;
15043 PyObject * obj5 = 0 ;
15044 PyObject * obj6 = 0 ;
15045 char * kwnames[] = {
15046 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
15047 };
15048
15049 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
15050 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15051 if (!SWIG_IsOK(res1)) {
15052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
15053 }
15054 arg1 = reinterpret_cast< wxDC * >(argp1);
15055 ecode2 = SWIG_AsVal_int(obj1, &val2);
15056 if (!SWIG_IsOK(ecode2)) {
15057 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
15058 }
15059 arg2 = static_cast< int >(val2);
15060 ecode3 = SWIG_AsVal_int(obj2, &val3);
15061 if (!SWIG_IsOK(ecode3)) {
15062 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
15063 }
15064 arg3 = static_cast< int >(val3);
15065 ecode4 = SWIG_AsVal_int(obj3, &val4);
15066 if (!SWIG_IsOK(ecode4)) {
15067 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
15068 }
15069 arg4 = static_cast< int >(val4);
15070 ecode5 = SWIG_AsVal_int(obj4, &val5);
15071 if (!SWIG_IsOK(ecode5)) {
15072 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
15073 }
15074 arg5 = static_cast< int >(val5);
15075 ecode6 = SWIG_AsVal_int(obj5, &val6);
15076 if (!SWIG_IsOK(ecode6)) {
15077 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
15078 }
15079 arg6 = static_cast< int >(val6);
15080 ecode7 = SWIG_AsVal_int(obj6, &val7);
15081 if (!SWIG_IsOK(ecode7)) {
15082 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
15083 }
15084 arg7 = static_cast< int >(val7);
15085 {
15086 PyThreadState* __tstate = wxPyBeginAllowThreads();
15087 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
15088 wxPyEndAllowThreads(__tstate);
15089 if (PyErr_Occurred()) SWIG_fail;
15090 }
15091 resultobj = SWIG_Py_Void();
15092 return resultobj;
15093 fail:
15094 return NULL;
15095 }
15096
15097
15098 SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15099 PyObject *resultobj = 0;
15100 wxDC *arg1 = (wxDC *) 0 ;
15101 wxPoint *arg2 = 0 ;
15102 wxPoint *arg3 = 0 ;
15103 wxPoint *arg4 = 0 ;
15104 void *argp1 = 0 ;
15105 int res1 = 0 ;
15106 wxPoint temp2 ;
15107 wxPoint temp3 ;
15108 wxPoint temp4 ;
15109 PyObject * obj0 = 0 ;
15110 PyObject * obj1 = 0 ;
15111 PyObject * obj2 = 0 ;
15112 PyObject * obj3 = 0 ;
15113 char * kwnames[] = {
15114 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
15115 };
15116
15117 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15118 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15119 if (!SWIG_IsOK(res1)) {
15120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
15121 }
15122 arg1 = reinterpret_cast< wxDC * >(argp1);
15123 {
15124 arg2 = &temp2;
15125 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15126 }
15127 {
15128 arg3 = &temp3;
15129 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
15130 }
15131 {
15132 arg4 = &temp4;
15133 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15134 }
15135 {
15136 PyThreadState* __tstate = wxPyBeginAllowThreads();
15137 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
15138 wxPyEndAllowThreads(__tstate);
15139 if (PyErr_Occurred()) SWIG_fail;
15140 }
15141 resultobj = SWIG_Py_Void();
15142 return resultobj;
15143 fail:
15144 return NULL;
15145 }
15146
15147
15148 SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15149 PyObject *resultobj = 0;
15150 wxDC *arg1 = (wxDC *) 0 ;
15151 int arg2 ;
15152 int arg3 ;
15153 int arg4 ;
15154 int arg5 ;
15155 void *argp1 = 0 ;
15156 int res1 = 0 ;
15157 int val2 ;
15158 int ecode2 = 0 ;
15159 int val3 ;
15160 int ecode3 = 0 ;
15161 int val4 ;
15162 int ecode4 = 0 ;
15163 int val5 ;
15164 int ecode5 = 0 ;
15165 PyObject * obj0 = 0 ;
15166 PyObject * obj1 = 0 ;
15167 PyObject * obj2 = 0 ;
15168 PyObject * obj3 = 0 ;
15169 PyObject * obj4 = 0 ;
15170 char * kwnames[] = {
15171 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
15172 };
15173
15174 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15175 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15176 if (!SWIG_IsOK(res1)) {
15177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
15178 }
15179 arg1 = reinterpret_cast< wxDC * >(argp1);
15180 ecode2 = SWIG_AsVal_int(obj1, &val2);
15181 if (!SWIG_IsOK(ecode2)) {
15182 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
15183 }
15184 arg2 = static_cast< int >(val2);
15185 ecode3 = SWIG_AsVal_int(obj2, &val3);
15186 if (!SWIG_IsOK(ecode3)) {
15187 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
15188 }
15189 arg3 = static_cast< int >(val3);
15190 ecode4 = SWIG_AsVal_int(obj3, &val4);
15191 if (!SWIG_IsOK(ecode4)) {
15192 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
15193 }
15194 arg4 = static_cast< int >(val4);
15195 ecode5 = SWIG_AsVal_int(obj4, &val5);
15196 if (!SWIG_IsOK(ecode5)) {
15197 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
15198 }
15199 arg5 = static_cast< int >(val5);
15200 {
15201 PyThreadState* __tstate = wxPyBeginAllowThreads();
15202 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
15203 wxPyEndAllowThreads(__tstate);
15204 if (PyErr_Occurred()) SWIG_fail;
15205 }
15206 resultobj = SWIG_Py_Void();
15207 return resultobj;
15208 fail:
15209 return NULL;
15210 }
15211
15212
15213 SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15214 PyObject *resultobj = 0;
15215 wxDC *arg1 = (wxDC *) 0 ;
15216 wxRect *arg2 = 0 ;
15217 void *argp1 = 0 ;
15218 int res1 = 0 ;
15219 wxRect temp2 ;
15220 PyObject * obj0 = 0 ;
15221 PyObject * obj1 = 0 ;
15222 char * kwnames[] = {
15223 (char *) "self",(char *) "rect", NULL
15224 };
15225
15226 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
15227 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15228 if (!SWIG_IsOK(res1)) {
15229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
15230 }
15231 arg1 = reinterpret_cast< wxDC * >(argp1);
15232 {
15233 arg2 = &temp2;
15234 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
15235 }
15236 {
15237 PyThreadState* __tstate = wxPyBeginAllowThreads();
15238 (arg1)->DrawCheckMark((wxRect const &)*arg2);
15239 wxPyEndAllowThreads(__tstate);
15240 if (PyErr_Occurred()) SWIG_fail;
15241 }
15242 resultobj = SWIG_Py_Void();
15243 return resultobj;
15244 fail:
15245 return NULL;
15246 }
15247
15248
15249 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15250 PyObject *resultobj = 0;
15251 wxDC *arg1 = (wxDC *) 0 ;
15252 int arg2 ;
15253 int arg3 ;
15254 int arg4 ;
15255 int arg5 ;
15256 double arg6 ;
15257 double arg7 ;
15258 void *argp1 = 0 ;
15259 int res1 = 0 ;
15260 int val2 ;
15261 int ecode2 = 0 ;
15262 int val3 ;
15263 int ecode3 = 0 ;
15264 int val4 ;
15265 int ecode4 = 0 ;
15266 int val5 ;
15267 int ecode5 = 0 ;
15268 double val6 ;
15269 int ecode6 = 0 ;
15270 double val7 ;
15271 int ecode7 = 0 ;
15272 PyObject * obj0 = 0 ;
15273 PyObject * obj1 = 0 ;
15274 PyObject * obj2 = 0 ;
15275 PyObject * obj3 = 0 ;
15276 PyObject * obj4 = 0 ;
15277 PyObject * obj5 = 0 ;
15278 PyObject * obj6 = 0 ;
15279 char * kwnames[] = {
15280 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
15281 };
15282
15283 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
15284 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15285 if (!SWIG_IsOK(res1)) {
15286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
15287 }
15288 arg1 = reinterpret_cast< wxDC * >(argp1);
15289 ecode2 = SWIG_AsVal_int(obj1, &val2);
15290 if (!SWIG_IsOK(ecode2)) {
15291 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
15292 }
15293 arg2 = static_cast< int >(val2);
15294 ecode3 = SWIG_AsVal_int(obj2, &val3);
15295 if (!SWIG_IsOK(ecode3)) {
15296 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
15297 }
15298 arg3 = static_cast< int >(val3);
15299 ecode4 = SWIG_AsVal_int(obj3, &val4);
15300 if (!SWIG_IsOK(ecode4)) {
15301 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
15302 }
15303 arg4 = static_cast< int >(val4);
15304 ecode5 = SWIG_AsVal_int(obj4, &val5);
15305 if (!SWIG_IsOK(ecode5)) {
15306 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
15307 }
15308 arg5 = static_cast< int >(val5);
15309 ecode6 = SWIG_AsVal_double(obj5, &val6);
15310 if (!SWIG_IsOK(ecode6)) {
15311 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
15312 }
15313 arg6 = static_cast< double >(val6);
15314 ecode7 = SWIG_AsVal_double(obj6, &val7);
15315 if (!SWIG_IsOK(ecode7)) {
15316 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
15317 }
15318 arg7 = static_cast< double >(val7);
15319 {
15320 PyThreadState* __tstate = wxPyBeginAllowThreads();
15321 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
15322 wxPyEndAllowThreads(__tstate);
15323 if (PyErr_Occurred()) SWIG_fail;
15324 }
15325 resultobj = SWIG_Py_Void();
15326 return resultobj;
15327 fail:
15328 return NULL;
15329 }
15330
15331
15332 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15333 PyObject *resultobj = 0;
15334 wxDC *arg1 = (wxDC *) 0 ;
15335 wxPoint *arg2 = 0 ;
15336 wxSize *arg3 = 0 ;
15337 double arg4 ;
15338 double arg5 ;
15339 void *argp1 = 0 ;
15340 int res1 = 0 ;
15341 wxPoint temp2 ;
15342 wxSize temp3 ;
15343 double val4 ;
15344 int ecode4 = 0 ;
15345 double val5 ;
15346 int ecode5 = 0 ;
15347 PyObject * obj0 = 0 ;
15348 PyObject * obj1 = 0 ;
15349 PyObject * obj2 = 0 ;
15350 PyObject * obj3 = 0 ;
15351 PyObject * obj4 = 0 ;
15352 char * kwnames[] = {
15353 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
15354 };
15355
15356 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15357 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15358 if (!SWIG_IsOK(res1)) {
15359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
15360 }
15361 arg1 = reinterpret_cast< wxDC * >(argp1);
15362 {
15363 arg2 = &temp2;
15364 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15365 }
15366 {
15367 arg3 = &temp3;
15368 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
15369 }
15370 ecode4 = SWIG_AsVal_double(obj3, &val4);
15371 if (!SWIG_IsOK(ecode4)) {
15372 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
15373 }
15374 arg4 = static_cast< double >(val4);
15375 ecode5 = SWIG_AsVal_double(obj4, &val5);
15376 if (!SWIG_IsOK(ecode5)) {
15377 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
15378 }
15379 arg5 = static_cast< double >(val5);
15380 {
15381 PyThreadState* __tstate = wxPyBeginAllowThreads();
15382 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
15383 wxPyEndAllowThreads(__tstate);
15384 if (PyErr_Occurred()) SWIG_fail;
15385 }
15386 resultobj = SWIG_Py_Void();
15387 return resultobj;
15388 fail:
15389 return NULL;
15390 }
15391
15392
15393 SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15394 PyObject *resultobj = 0;
15395 wxDC *arg1 = (wxDC *) 0 ;
15396 int arg2 ;
15397 int arg3 ;
15398 void *argp1 = 0 ;
15399 int res1 = 0 ;
15400 int val2 ;
15401 int ecode2 = 0 ;
15402 int val3 ;
15403 int ecode3 = 0 ;
15404 PyObject * obj0 = 0 ;
15405 PyObject * obj1 = 0 ;
15406 PyObject * obj2 = 0 ;
15407 char * kwnames[] = {
15408 (char *) "self",(char *) "x",(char *) "y", NULL
15409 };
15410
15411 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15412 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15413 if (!SWIG_IsOK(res1)) {
15414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
15415 }
15416 arg1 = reinterpret_cast< wxDC * >(argp1);
15417 ecode2 = SWIG_AsVal_int(obj1, &val2);
15418 if (!SWIG_IsOK(ecode2)) {
15419 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
15420 }
15421 arg2 = static_cast< int >(val2);
15422 ecode3 = SWIG_AsVal_int(obj2, &val3);
15423 if (!SWIG_IsOK(ecode3)) {
15424 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
15425 }
15426 arg3 = static_cast< int >(val3);
15427 {
15428 PyThreadState* __tstate = wxPyBeginAllowThreads();
15429 (arg1)->DrawPoint(arg2,arg3);
15430 wxPyEndAllowThreads(__tstate);
15431 if (PyErr_Occurred()) SWIG_fail;
15432 }
15433 resultobj = SWIG_Py_Void();
15434 return resultobj;
15435 fail:
15436 return NULL;
15437 }
15438
15439
15440 SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15441 PyObject *resultobj = 0;
15442 wxDC *arg1 = (wxDC *) 0 ;
15443 wxPoint *arg2 = 0 ;
15444 void *argp1 = 0 ;
15445 int res1 = 0 ;
15446 wxPoint temp2 ;
15447 PyObject * obj0 = 0 ;
15448 PyObject * obj1 = 0 ;
15449 char * kwnames[] = {
15450 (char *) "self",(char *) "pt", NULL
15451 };
15452
15453 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
15454 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15455 if (!SWIG_IsOK(res1)) {
15456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
15457 }
15458 arg1 = reinterpret_cast< wxDC * >(argp1);
15459 {
15460 arg2 = &temp2;
15461 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15462 }
15463 {
15464 PyThreadState* __tstate = wxPyBeginAllowThreads();
15465 (arg1)->DrawPoint((wxPoint const &)*arg2);
15466 wxPyEndAllowThreads(__tstate);
15467 if (PyErr_Occurred()) SWIG_fail;
15468 }
15469 resultobj = SWIG_Py_Void();
15470 return resultobj;
15471 fail:
15472 return NULL;
15473 }
15474
15475
15476 SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15477 PyObject *resultobj = 0;
15478 wxDC *arg1 = (wxDC *) 0 ;
15479 int arg2 ;
15480 int arg3 ;
15481 int arg4 ;
15482 int arg5 ;
15483 void *argp1 = 0 ;
15484 int res1 = 0 ;
15485 int val2 ;
15486 int ecode2 = 0 ;
15487 int val3 ;
15488 int ecode3 = 0 ;
15489 int val4 ;
15490 int ecode4 = 0 ;
15491 int val5 ;
15492 int ecode5 = 0 ;
15493 PyObject * obj0 = 0 ;
15494 PyObject * obj1 = 0 ;
15495 PyObject * obj2 = 0 ;
15496 PyObject * obj3 = 0 ;
15497 PyObject * obj4 = 0 ;
15498 char * kwnames[] = {
15499 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
15500 };
15501
15502 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15503 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15504 if (!SWIG_IsOK(res1)) {
15505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
15506 }
15507 arg1 = reinterpret_cast< wxDC * >(argp1);
15508 ecode2 = SWIG_AsVal_int(obj1, &val2);
15509 if (!SWIG_IsOK(ecode2)) {
15510 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
15511 }
15512 arg2 = static_cast< int >(val2);
15513 ecode3 = SWIG_AsVal_int(obj2, &val3);
15514 if (!SWIG_IsOK(ecode3)) {
15515 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
15516 }
15517 arg3 = static_cast< int >(val3);
15518 ecode4 = SWIG_AsVal_int(obj3, &val4);
15519 if (!SWIG_IsOK(ecode4)) {
15520 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
15521 }
15522 arg4 = static_cast< int >(val4);
15523 ecode5 = SWIG_AsVal_int(obj4, &val5);
15524 if (!SWIG_IsOK(ecode5)) {
15525 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
15526 }
15527 arg5 = static_cast< int >(val5);
15528 {
15529 PyThreadState* __tstate = wxPyBeginAllowThreads();
15530 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
15531 wxPyEndAllowThreads(__tstate);
15532 if (PyErr_Occurred()) SWIG_fail;
15533 }
15534 resultobj = SWIG_Py_Void();
15535 return resultobj;
15536 fail:
15537 return NULL;
15538 }
15539
15540
15541 SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15542 PyObject *resultobj = 0;
15543 wxDC *arg1 = (wxDC *) 0 ;
15544 wxRect *arg2 = 0 ;
15545 void *argp1 = 0 ;
15546 int res1 = 0 ;
15547 wxRect temp2 ;
15548 PyObject * obj0 = 0 ;
15549 PyObject * obj1 = 0 ;
15550 char * kwnames[] = {
15551 (char *) "self",(char *) "rect", NULL
15552 };
15553
15554 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
15555 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15556 if (!SWIG_IsOK(res1)) {
15557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
15558 }
15559 arg1 = reinterpret_cast< wxDC * >(argp1);
15560 {
15561 arg2 = &temp2;
15562 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
15563 }
15564 {
15565 PyThreadState* __tstate = wxPyBeginAllowThreads();
15566 (arg1)->DrawRectangle((wxRect const &)*arg2);
15567 wxPyEndAllowThreads(__tstate);
15568 if (PyErr_Occurred()) SWIG_fail;
15569 }
15570 resultobj = SWIG_Py_Void();
15571 return resultobj;
15572 fail:
15573 return NULL;
15574 }
15575
15576
15577 SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15578 PyObject *resultobj = 0;
15579 wxDC *arg1 = (wxDC *) 0 ;
15580 wxPoint *arg2 = 0 ;
15581 wxSize *arg3 = 0 ;
15582 void *argp1 = 0 ;
15583 int res1 = 0 ;
15584 wxPoint temp2 ;
15585 wxSize temp3 ;
15586 PyObject * obj0 = 0 ;
15587 PyObject * obj1 = 0 ;
15588 PyObject * obj2 = 0 ;
15589 char * kwnames[] = {
15590 (char *) "self",(char *) "pt",(char *) "sz", NULL
15591 };
15592
15593 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15594 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15595 if (!SWIG_IsOK(res1)) {
15596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
15597 }
15598 arg1 = reinterpret_cast< wxDC * >(argp1);
15599 {
15600 arg2 = &temp2;
15601 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15602 }
15603 {
15604 arg3 = &temp3;
15605 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
15606 }
15607 {
15608 PyThreadState* __tstate = wxPyBeginAllowThreads();
15609 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
15610 wxPyEndAllowThreads(__tstate);
15611 if (PyErr_Occurred()) SWIG_fail;
15612 }
15613 resultobj = SWIG_Py_Void();
15614 return resultobj;
15615 fail:
15616 return NULL;
15617 }
15618
15619
15620 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15621 PyObject *resultobj = 0;
15622 wxDC *arg1 = (wxDC *) 0 ;
15623 int arg2 ;
15624 int arg3 ;
15625 int arg4 ;
15626 int arg5 ;
15627 double arg6 ;
15628 void *argp1 = 0 ;
15629 int res1 = 0 ;
15630 int val2 ;
15631 int ecode2 = 0 ;
15632 int val3 ;
15633 int ecode3 = 0 ;
15634 int val4 ;
15635 int ecode4 = 0 ;
15636 int val5 ;
15637 int ecode5 = 0 ;
15638 double val6 ;
15639 int ecode6 = 0 ;
15640 PyObject * obj0 = 0 ;
15641 PyObject * obj1 = 0 ;
15642 PyObject * obj2 = 0 ;
15643 PyObject * obj3 = 0 ;
15644 PyObject * obj4 = 0 ;
15645 PyObject * obj5 = 0 ;
15646 char * kwnames[] = {
15647 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
15648 };
15649
15650 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
15651 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15652 if (!SWIG_IsOK(res1)) {
15653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
15654 }
15655 arg1 = reinterpret_cast< wxDC * >(argp1);
15656 ecode2 = SWIG_AsVal_int(obj1, &val2);
15657 if (!SWIG_IsOK(ecode2)) {
15658 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
15659 }
15660 arg2 = static_cast< int >(val2);
15661 ecode3 = SWIG_AsVal_int(obj2, &val3);
15662 if (!SWIG_IsOK(ecode3)) {
15663 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
15664 }
15665 arg3 = static_cast< int >(val3);
15666 ecode4 = SWIG_AsVal_int(obj3, &val4);
15667 if (!SWIG_IsOK(ecode4)) {
15668 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
15669 }
15670 arg4 = static_cast< int >(val4);
15671 ecode5 = SWIG_AsVal_int(obj4, &val5);
15672 if (!SWIG_IsOK(ecode5)) {
15673 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
15674 }
15675 arg5 = static_cast< int >(val5);
15676 ecode6 = SWIG_AsVal_double(obj5, &val6);
15677 if (!SWIG_IsOK(ecode6)) {
15678 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
15679 }
15680 arg6 = static_cast< double >(val6);
15681 {
15682 PyThreadState* __tstate = wxPyBeginAllowThreads();
15683 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
15684 wxPyEndAllowThreads(__tstate);
15685 if (PyErr_Occurred()) SWIG_fail;
15686 }
15687 resultobj = SWIG_Py_Void();
15688 return resultobj;
15689 fail:
15690 return NULL;
15691 }
15692
15693
15694 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15695 PyObject *resultobj = 0;
15696 wxDC *arg1 = (wxDC *) 0 ;
15697 wxRect *arg2 = 0 ;
15698 double arg3 ;
15699 void *argp1 = 0 ;
15700 int res1 = 0 ;
15701 wxRect temp2 ;
15702 double val3 ;
15703 int ecode3 = 0 ;
15704 PyObject * obj0 = 0 ;
15705 PyObject * obj1 = 0 ;
15706 PyObject * obj2 = 0 ;
15707 char * kwnames[] = {
15708 (char *) "self",(char *) "r",(char *) "radius", NULL
15709 };
15710
15711 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15712 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15713 if (!SWIG_IsOK(res1)) {
15714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
15715 }
15716 arg1 = reinterpret_cast< wxDC * >(argp1);
15717 {
15718 arg2 = &temp2;
15719 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
15720 }
15721 ecode3 = SWIG_AsVal_double(obj2, &val3);
15722 if (!SWIG_IsOK(ecode3)) {
15723 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
15724 }
15725 arg3 = static_cast< double >(val3);
15726 {
15727 PyThreadState* __tstate = wxPyBeginAllowThreads();
15728 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
15729 wxPyEndAllowThreads(__tstate);
15730 if (PyErr_Occurred()) SWIG_fail;
15731 }
15732 resultobj = SWIG_Py_Void();
15733 return resultobj;
15734 fail:
15735 return NULL;
15736 }
15737
15738
15739 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15740 PyObject *resultobj = 0;
15741 wxDC *arg1 = (wxDC *) 0 ;
15742 wxPoint *arg2 = 0 ;
15743 wxSize *arg3 = 0 ;
15744 double arg4 ;
15745 void *argp1 = 0 ;
15746 int res1 = 0 ;
15747 wxPoint temp2 ;
15748 wxSize temp3 ;
15749 double val4 ;
15750 int ecode4 = 0 ;
15751 PyObject * obj0 = 0 ;
15752 PyObject * obj1 = 0 ;
15753 PyObject * obj2 = 0 ;
15754 PyObject * obj3 = 0 ;
15755 char * kwnames[] = {
15756 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
15757 };
15758
15759 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15760 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15761 if (!SWIG_IsOK(res1)) {
15762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
15763 }
15764 arg1 = reinterpret_cast< wxDC * >(argp1);
15765 {
15766 arg2 = &temp2;
15767 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15768 }
15769 {
15770 arg3 = &temp3;
15771 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
15772 }
15773 ecode4 = SWIG_AsVal_double(obj3, &val4);
15774 if (!SWIG_IsOK(ecode4)) {
15775 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
15776 }
15777 arg4 = static_cast< double >(val4);
15778 {
15779 PyThreadState* __tstate = wxPyBeginAllowThreads();
15780 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
15781 wxPyEndAllowThreads(__tstate);
15782 if (PyErr_Occurred()) SWIG_fail;
15783 }
15784 resultobj = SWIG_Py_Void();
15785 return resultobj;
15786 fail:
15787 return NULL;
15788 }
15789
15790
15791 SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15792 PyObject *resultobj = 0;
15793 wxDC *arg1 = (wxDC *) 0 ;
15794 int arg2 ;
15795 int arg3 ;
15796 int arg4 ;
15797 void *argp1 = 0 ;
15798 int res1 = 0 ;
15799 int val2 ;
15800 int ecode2 = 0 ;
15801 int val3 ;
15802 int ecode3 = 0 ;
15803 int val4 ;
15804 int ecode4 = 0 ;
15805 PyObject * obj0 = 0 ;
15806 PyObject * obj1 = 0 ;
15807 PyObject * obj2 = 0 ;
15808 PyObject * obj3 = 0 ;
15809 char * kwnames[] = {
15810 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
15811 };
15812
15813 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15814 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15815 if (!SWIG_IsOK(res1)) {
15816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
15817 }
15818 arg1 = reinterpret_cast< wxDC * >(argp1);
15819 ecode2 = SWIG_AsVal_int(obj1, &val2);
15820 if (!SWIG_IsOK(ecode2)) {
15821 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
15822 }
15823 arg2 = static_cast< int >(val2);
15824 ecode3 = SWIG_AsVal_int(obj2, &val3);
15825 if (!SWIG_IsOK(ecode3)) {
15826 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
15827 }
15828 arg3 = static_cast< int >(val3);
15829 ecode4 = SWIG_AsVal_int(obj3, &val4);
15830 if (!SWIG_IsOK(ecode4)) {
15831 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
15832 }
15833 arg4 = static_cast< int >(val4);
15834 {
15835 PyThreadState* __tstate = wxPyBeginAllowThreads();
15836 (arg1)->DrawCircle(arg2,arg3,arg4);
15837 wxPyEndAllowThreads(__tstate);
15838 if (PyErr_Occurred()) SWIG_fail;
15839 }
15840 resultobj = SWIG_Py_Void();
15841 return resultobj;
15842 fail:
15843 return NULL;
15844 }
15845
15846
15847 SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15848 PyObject *resultobj = 0;
15849 wxDC *arg1 = (wxDC *) 0 ;
15850 wxPoint *arg2 = 0 ;
15851 int arg3 ;
15852 void *argp1 = 0 ;
15853 int res1 = 0 ;
15854 wxPoint temp2 ;
15855 int val3 ;
15856 int ecode3 = 0 ;
15857 PyObject * obj0 = 0 ;
15858 PyObject * obj1 = 0 ;
15859 PyObject * obj2 = 0 ;
15860 char * kwnames[] = {
15861 (char *) "self",(char *) "pt",(char *) "radius", NULL
15862 };
15863
15864 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15865 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15866 if (!SWIG_IsOK(res1)) {
15867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
15868 }
15869 arg1 = reinterpret_cast< wxDC * >(argp1);
15870 {
15871 arg2 = &temp2;
15872 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15873 }
15874 ecode3 = SWIG_AsVal_int(obj2, &val3);
15875 if (!SWIG_IsOK(ecode3)) {
15876 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
15877 }
15878 arg3 = static_cast< int >(val3);
15879 {
15880 PyThreadState* __tstate = wxPyBeginAllowThreads();
15881 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
15882 wxPyEndAllowThreads(__tstate);
15883 if (PyErr_Occurred()) SWIG_fail;
15884 }
15885 resultobj = SWIG_Py_Void();
15886 return resultobj;
15887 fail:
15888 return NULL;
15889 }
15890
15891
15892 SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15893 PyObject *resultobj = 0;
15894 wxDC *arg1 = (wxDC *) 0 ;
15895 int arg2 ;
15896 int arg3 ;
15897 int arg4 ;
15898 int arg5 ;
15899 void *argp1 = 0 ;
15900 int res1 = 0 ;
15901 int val2 ;
15902 int ecode2 = 0 ;
15903 int val3 ;
15904 int ecode3 = 0 ;
15905 int val4 ;
15906 int ecode4 = 0 ;
15907 int val5 ;
15908 int ecode5 = 0 ;
15909 PyObject * obj0 = 0 ;
15910 PyObject * obj1 = 0 ;
15911 PyObject * obj2 = 0 ;
15912 PyObject * obj3 = 0 ;
15913 PyObject * obj4 = 0 ;
15914 char * kwnames[] = {
15915 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
15916 };
15917
15918 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15919 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15920 if (!SWIG_IsOK(res1)) {
15921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
15922 }
15923 arg1 = reinterpret_cast< wxDC * >(argp1);
15924 ecode2 = SWIG_AsVal_int(obj1, &val2);
15925 if (!SWIG_IsOK(ecode2)) {
15926 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
15927 }
15928 arg2 = static_cast< int >(val2);
15929 ecode3 = SWIG_AsVal_int(obj2, &val3);
15930 if (!SWIG_IsOK(ecode3)) {
15931 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
15932 }
15933 arg3 = static_cast< int >(val3);
15934 ecode4 = SWIG_AsVal_int(obj3, &val4);
15935 if (!SWIG_IsOK(ecode4)) {
15936 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
15937 }
15938 arg4 = static_cast< int >(val4);
15939 ecode5 = SWIG_AsVal_int(obj4, &val5);
15940 if (!SWIG_IsOK(ecode5)) {
15941 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
15942 }
15943 arg5 = static_cast< int >(val5);
15944 {
15945 PyThreadState* __tstate = wxPyBeginAllowThreads();
15946 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
15947 wxPyEndAllowThreads(__tstate);
15948 if (PyErr_Occurred()) SWIG_fail;
15949 }
15950 resultobj = SWIG_Py_Void();
15951 return resultobj;
15952 fail:
15953 return NULL;
15954 }
15955
15956
15957 SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15958 PyObject *resultobj = 0;
15959 wxDC *arg1 = (wxDC *) 0 ;
15960 wxRect *arg2 = 0 ;
15961 void *argp1 = 0 ;
15962 int res1 = 0 ;
15963 wxRect temp2 ;
15964 PyObject * obj0 = 0 ;
15965 PyObject * obj1 = 0 ;
15966 char * kwnames[] = {
15967 (char *) "self",(char *) "rect", NULL
15968 };
15969
15970 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
15971 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15972 if (!SWIG_IsOK(res1)) {
15973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
15974 }
15975 arg1 = reinterpret_cast< wxDC * >(argp1);
15976 {
15977 arg2 = &temp2;
15978 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
15979 }
15980 {
15981 PyThreadState* __tstate = wxPyBeginAllowThreads();
15982 (arg1)->DrawEllipse((wxRect const &)*arg2);
15983 wxPyEndAllowThreads(__tstate);
15984 if (PyErr_Occurred()) SWIG_fail;
15985 }
15986 resultobj = SWIG_Py_Void();
15987 return resultobj;
15988 fail:
15989 return NULL;
15990 }
15991
15992
15993 SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15994 PyObject *resultobj = 0;
15995 wxDC *arg1 = (wxDC *) 0 ;
15996 wxPoint *arg2 = 0 ;
15997 wxSize *arg3 = 0 ;
15998 void *argp1 = 0 ;
15999 int res1 = 0 ;
16000 wxPoint temp2 ;
16001 wxSize temp3 ;
16002 PyObject * obj0 = 0 ;
16003 PyObject * obj1 = 0 ;
16004 PyObject * obj2 = 0 ;
16005 char * kwnames[] = {
16006 (char *) "self",(char *) "pt",(char *) "sz", NULL
16007 };
16008
16009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16011 if (!SWIG_IsOK(res1)) {
16012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
16013 }
16014 arg1 = reinterpret_cast< wxDC * >(argp1);
16015 {
16016 arg2 = &temp2;
16017 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16018 }
16019 {
16020 arg3 = &temp3;
16021 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
16022 }
16023 {
16024 PyThreadState* __tstate = wxPyBeginAllowThreads();
16025 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
16026 wxPyEndAllowThreads(__tstate);
16027 if (PyErr_Occurred()) SWIG_fail;
16028 }
16029 resultobj = SWIG_Py_Void();
16030 return resultobj;
16031 fail:
16032 return NULL;
16033 }
16034
16035
16036 SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16037 PyObject *resultobj = 0;
16038 wxDC *arg1 = (wxDC *) 0 ;
16039 wxIcon *arg2 = 0 ;
16040 int arg3 ;
16041 int arg4 ;
16042 void *argp1 = 0 ;
16043 int res1 = 0 ;
16044 void *argp2 = 0 ;
16045 int res2 = 0 ;
16046 int val3 ;
16047 int ecode3 = 0 ;
16048 int val4 ;
16049 int ecode4 = 0 ;
16050 PyObject * obj0 = 0 ;
16051 PyObject * obj1 = 0 ;
16052 PyObject * obj2 = 0 ;
16053 PyObject * obj3 = 0 ;
16054 char * kwnames[] = {
16055 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
16056 };
16057
16058 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16059 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16060 if (!SWIG_IsOK(res1)) {
16061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
16062 }
16063 arg1 = reinterpret_cast< wxDC * >(argp1);
16064 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
16065 if (!SWIG_IsOK(res2)) {
16066 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
16067 }
16068 if (!argp2) {
16069 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
16070 }
16071 arg2 = reinterpret_cast< wxIcon * >(argp2);
16072 ecode3 = SWIG_AsVal_int(obj2, &val3);
16073 if (!SWIG_IsOK(ecode3)) {
16074 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
16075 }
16076 arg3 = static_cast< int >(val3);
16077 ecode4 = SWIG_AsVal_int(obj3, &val4);
16078 if (!SWIG_IsOK(ecode4)) {
16079 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
16080 }
16081 arg4 = static_cast< int >(val4);
16082 {
16083 PyThreadState* __tstate = wxPyBeginAllowThreads();
16084 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
16085 wxPyEndAllowThreads(__tstate);
16086 if (PyErr_Occurred()) SWIG_fail;
16087 }
16088 resultobj = SWIG_Py_Void();
16089 return resultobj;
16090 fail:
16091 return NULL;
16092 }
16093
16094
16095 SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16096 PyObject *resultobj = 0;
16097 wxDC *arg1 = (wxDC *) 0 ;
16098 wxIcon *arg2 = 0 ;
16099 wxPoint *arg3 = 0 ;
16100 void *argp1 = 0 ;
16101 int res1 = 0 ;
16102 void *argp2 = 0 ;
16103 int res2 = 0 ;
16104 wxPoint temp3 ;
16105 PyObject * obj0 = 0 ;
16106 PyObject * obj1 = 0 ;
16107 PyObject * obj2 = 0 ;
16108 char * kwnames[] = {
16109 (char *) "self",(char *) "icon",(char *) "pt", NULL
16110 };
16111
16112 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16113 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16114 if (!SWIG_IsOK(res1)) {
16115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16116 }
16117 arg1 = reinterpret_cast< wxDC * >(argp1);
16118 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
16119 if (!SWIG_IsOK(res2)) {
16120 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
16121 }
16122 if (!argp2) {
16123 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
16124 }
16125 arg2 = reinterpret_cast< wxIcon * >(argp2);
16126 {
16127 arg3 = &temp3;
16128 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
16129 }
16130 {
16131 PyThreadState* __tstate = wxPyBeginAllowThreads();
16132 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
16133 wxPyEndAllowThreads(__tstate);
16134 if (PyErr_Occurred()) SWIG_fail;
16135 }
16136 resultobj = SWIG_Py_Void();
16137 return resultobj;
16138 fail:
16139 return NULL;
16140 }
16141
16142
16143 SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16144 PyObject *resultobj = 0;
16145 wxDC *arg1 = (wxDC *) 0 ;
16146 wxBitmap *arg2 = 0 ;
16147 int arg3 ;
16148 int arg4 ;
16149 bool arg5 = (bool) false ;
16150 void *argp1 = 0 ;
16151 int res1 = 0 ;
16152 void *argp2 = 0 ;
16153 int res2 = 0 ;
16154 int val3 ;
16155 int ecode3 = 0 ;
16156 int val4 ;
16157 int ecode4 = 0 ;
16158 bool val5 ;
16159 int ecode5 = 0 ;
16160 PyObject * obj0 = 0 ;
16161 PyObject * obj1 = 0 ;
16162 PyObject * obj2 = 0 ;
16163 PyObject * obj3 = 0 ;
16164 PyObject * obj4 = 0 ;
16165 char * kwnames[] = {
16166 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
16167 };
16168
16169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16171 if (!SWIG_IsOK(res1)) {
16172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
16173 }
16174 arg1 = reinterpret_cast< wxDC * >(argp1);
16175 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
16176 if (!SWIG_IsOK(res2)) {
16177 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
16178 }
16179 if (!argp2) {
16180 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
16181 }
16182 arg2 = reinterpret_cast< wxBitmap * >(argp2);
16183 ecode3 = SWIG_AsVal_int(obj2, &val3);
16184 if (!SWIG_IsOK(ecode3)) {
16185 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
16186 }
16187 arg3 = static_cast< int >(val3);
16188 ecode4 = SWIG_AsVal_int(obj3, &val4);
16189 if (!SWIG_IsOK(ecode4)) {
16190 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
16191 }
16192 arg4 = static_cast< int >(val4);
16193 if (obj4) {
16194 ecode5 = SWIG_AsVal_bool(obj4, &val5);
16195 if (!SWIG_IsOK(ecode5)) {
16196 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
16197 }
16198 arg5 = static_cast< bool >(val5);
16199 }
16200 {
16201 PyThreadState* __tstate = wxPyBeginAllowThreads();
16202 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
16203 wxPyEndAllowThreads(__tstate);
16204 if (PyErr_Occurred()) SWIG_fail;
16205 }
16206 resultobj = SWIG_Py_Void();
16207 return resultobj;
16208 fail:
16209 return NULL;
16210 }
16211
16212
16213 SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16214 PyObject *resultobj = 0;
16215 wxDC *arg1 = (wxDC *) 0 ;
16216 wxBitmap *arg2 = 0 ;
16217 wxPoint *arg3 = 0 ;
16218 bool arg4 = (bool) false ;
16219 void *argp1 = 0 ;
16220 int res1 = 0 ;
16221 void *argp2 = 0 ;
16222 int res2 = 0 ;
16223 wxPoint temp3 ;
16224 bool val4 ;
16225 int ecode4 = 0 ;
16226 PyObject * obj0 = 0 ;
16227 PyObject * obj1 = 0 ;
16228 PyObject * obj2 = 0 ;
16229 PyObject * obj3 = 0 ;
16230 char * kwnames[] = {
16231 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
16232 };
16233
16234 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16235 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16236 if (!SWIG_IsOK(res1)) {
16237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16238 }
16239 arg1 = reinterpret_cast< wxDC * >(argp1);
16240 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
16241 if (!SWIG_IsOK(res2)) {
16242 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
16243 }
16244 if (!argp2) {
16245 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
16246 }
16247 arg2 = reinterpret_cast< wxBitmap * >(argp2);
16248 {
16249 arg3 = &temp3;
16250 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
16251 }
16252 if (obj3) {
16253 ecode4 = SWIG_AsVal_bool(obj3, &val4);
16254 if (!SWIG_IsOK(ecode4)) {
16255 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
16256 }
16257 arg4 = static_cast< bool >(val4);
16258 }
16259 {
16260 PyThreadState* __tstate = wxPyBeginAllowThreads();
16261 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
16262 wxPyEndAllowThreads(__tstate);
16263 if (PyErr_Occurred()) SWIG_fail;
16264 }
16265 resultobj = SWIG_Py_Void();
16266 return resultobj;
16267 fail:
16268 return NULL;
16269 }
16270
16271
16272 SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16273 PyObject *resultobj = 0;
16274 wxDC *arg1 = (wxDC *) 0 ;
16275 wxString *arg2 = 0 ;
16276 int arg3 ;
16277 int arg4 ;
16278 void *argp1 = 0 ;
16279 int res1 = 0 ;
16280 bool temp2 = false ;
16281 int val3 ;
16282 int ecode3 = 0 ;
16283 int val4 ;
16284 int ecode4 = 0 ;
16285 PyObject * obj0 = 0 ;
16286 PyObject * obj1 = 0 ;
16287 PyObject * obj2 = 0 ;
16288 PyObject * obj3 = 0 ;
16289 char * kwnames[] = {
16290 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
16291 };
16292
16293 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16294 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16295 if (!SWIG_IsOK(res1)) {
16296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
16297 }
16298 arg1 = reinterpret_cast< wxDC * >(argp1);
16299 {
16300 arg2 = wxString_in_helper(obj1);
16301 if (arg2 == NULL) SWIG_fail;
16302 temp2 = true;
16303 }
16304 ecode3 = SWIG_AsVal_int(obj2, &val3);
16305 if (!SWIG_IsOK(ecode3)) {
16306 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
16307 }
16308 arg3 = static_cast< int >(val3);
16309 ecode4 = SWIG_AsVal_int(obj3, &val4);
16310 if (!SWIG_IsOK(ecode4)) {
16311 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
16312 }
16313 arg4 = static_cast< int >(val4);
16314 {
16315 PyThreadState* __tstate = wxPyBeginAllowThreads();
16316 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
16317 wxPyEndAllowThreads(__tstate);
16318 if (PyErr_Occurred()) SWIG_fail;
16319 }
16320 resultobj = SWIG_Py_Void();
16321 {
16322 if (temp2)
16323 delete arg2;
16324 }
16325 return resultobj;
16326 fail:
16327 {
16328 if (temp2)
16329 delete arg2;
16330 }
16331 return NULL;
16332 }
16333
16334
16335 SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16336 PyObject *resultobj = 0;
16337 wxDC *arg1 = (wxDC *) 0 ;
16338 wxString *arg2 = 0 ;
16339 wxPoint *arg3 = 0 ;
16340 void *argp1 = 0 ;
16341 int res1 = 0 ;
16342 bool temp2 = false ;
16343 wxPoint temp3 ;
16344 PyObject * obj0 = 0 ;
16345 PyObject * obj1 = 0 ;
16346 PyObject * obj2 = 0 ;
16347 char * kwnames[] = {
16348 (char *) "self",(char *) "text",(char *) "pt", NULL
16349 };
16350
16351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16353 if (!SWIG_IsOK(res1)) {
16354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16355 }
16356 arg1 = reinterpret_cast< wxDC * >(argp1);
16357 {
16358 arg2 = wxString_in_helper(obj1);
16359 if (arg2 == NULL) SWIG_fail;
16360 temp2 = true;
16361 }
16362 {
16363 arg3 = &temp3;
16364 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
16365 }
16366 {
16367 PyThreadState* __tstate = wxPyBeginAllowThreads();
16368 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
16369 wxPyEndAllowThreads(__tstate);
16370 if (PyErr_Occurred()) SWIG_fail;
16371 }
16372 resultobj = SWIG_Py_Void();
16373 {
16374 if (temp2)
16375 delete arg2;
16376 }
16377 return resultobj;
16378 fail:
16379 {
16380 if (temp2)
16381 delete arg2;
16382 }
16383 return NULL;
16384 }
16385
16386
16387 SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16388 PyObject *resultobj = 0;
16389 wxDC *arg1 = (wxDC *) 0 ;
16390 wxString *arg2 = 0 ;
16391 int arg3 ;
16392 int arg4 ;
16393 double arg5 ;
16394 void *argp1 = 0 ;
16395 int res1 = 0 ;
16396 bool temp2 = false ;
16397 int val3 ;
16398 int ecode3 = 0 ;
16399 int val4 ;
16400 int ecode4 = 0 ;
16401 double val5 ;
16402 int ecode5 = 0 ;
16403 PyObject * obj0 = 0 ;
16404 PyObject * obj1 = 0 ;
16405 PyObject * obj2 = 0 ;
16406 PyObject * obj3 = 0 ;
16407 PyObject * obj4 = 0 ;
16408 char * kwnames[] = {
16409 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
16410 };
16411
16412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16413 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16414 if (!SWIG_IsOK(res1)) {
16415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
16416 }
16417 arg1 = reinterpret_cast< wxDC * >(argp1);
16418 {
16419 arg2 = wxString_in_helper(obj1);
16420 if (arg2 == NULL) SWIG_fail;
16421 temp2 = true;
16422 }
16423 ecode3 = SWIG_AsVal_int(obj2, &val3);
16424 if (!SWIG_IsOK(ecode3)) {
16425 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
16426 }
16427 arg3 = static_cast< int >(val3);
16428 ecode4 = SWIG_AsVal_int(obj3, &val4);
16429 if (!SWIG_IsOK(ecode4)) {
16430 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
16431 }
16432 arg4 = static_cast< int >(val4);
16433 ecode5 = SWIG_AsVal_double(obj4, &val5);
16434 if (!SWIG_IsOK(ecode5)) {
16435 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
16436 }
16437 arg5 = static_cast< double >(val5);
16438 {
16439 PyThreadState* __tstate = wxPyBeginAllowThreads();
16440 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
16441 wxPyEndAllowThreads(__tstate);
16442 if (PyErr_Occurred()) SWIG_fail;
16443 }
16444 resultobj = SWIG_Py_Void();
16445 {
16446 if (temp2)
16447 delete arg2;
16448 }
16449 return resultobj;
16450 fail:
16451 {
16452 if (temp2)
16453 delete arg2;
16454 }
16455 return NULL;
16456 }
16457
16458
16459 SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16460 PyObject *resultobj = 0;
16461 wxDC *arg1 = (wxDC *) 0 ;
16462 wxString *arg2 = 0 ;
16463 wxPoint *arg3 = 0 ;
16464 double arg4 ;
16465 void *argp1 = 0 ;
16466 int res1 = 0 ;
16467 bool temp2 = false ;
16468 wxPoint temp3 ;
16469 double val4 ;
16470 int ecode4 = 0 ;
16471 PyObject * obj0 = 0 ;
16472 PyObject * obj1 = 0 ;
16473 PyObject * obj2 = 0 ;
16474 PyObject * obj3 = 0 ;
16475 char * kwnames[] = {
16476 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
16477 };
16478
16479 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16480 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16481 if (!SWIG_IsOK(res1)) {
16482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16483 }
16484 arg1 = reinterpret_cast< wxDC * >(argp1);
16485 {
16486 arg2 = wxString_in_helper(obj1);
16487 if (arg2 == NULL) SWIG_fail;
16488 temp2 = true;
16489 }
16490 {
16491 arg3 = &temp3;
16492 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
16493 }
16494 ecode4 = SWIG_AsVal_double(obj3, &val4);
16495 if (!SWIG_IsOK(ecode4)) {
16496 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
16497 }
16498 arg4 = static_cast< double >(val4);
16499 {
16500 PyThreadState* __tstate = wxPyBeginAllowThreads();
16501 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
16502 wxPyEndAllowThreads(__tstate);
16503 if (PyErr_Occurred()) SWIG_fail;
16504 }
16505 resultobj = SWIG_Py_Void();
16506 {
16507 if (temp2)
16508 delete arg2;
16509 }
16510 return resultobj;
16511 fail:
16512 {
16513 if (temp2)
16514 delete arg2;
16515 }
16516 return NULL;
16517 }
16518
16519
16520 SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16521 PyObject *resultobj = 0;
16522 wxDC *arg1 = (wxDC *) 0 ;
16523 int arg2 ;
16524 int arg3 ;
16525 int arg4 ;
16526 int arg5 ;
16527 wxDC *arg6 = (wxDC *) 0 ;
16528 int arg7 ;
16529 int arg8 ;
16530 int arg9 = (int) wxCOPY ;
16531 bool arg10 = (bool) false ;
16532 int arg11 = (int) -1 ;
16533 int arg12 = (int) -1 ;
16534 bool result;
16535 void *argp1 = 0 ;
16536 int res1 = 0 ;
16537 int val2 ;
16538 int ecode2 = 0 ;
16539 int val3 ;
16540 int ecode3 = 0 ;
16541 int val4 ;
16542 int ecode4 = 0 ;
16543 int val5 ;
16544 int ecode5 = 0 ;
16545 void *argp6 = 0 ;
16546 int res6 = 0 ;
16547 int val7 ;
16548 int ecode7 = 0 ;
16549 int val8 ;
16550 int ecode8 = 0 ;
16551 int val9 ;
16552 int ecode9 = 0 ;
16553 bool val10 ;
16554 int ecode10 = 0 ;
16555 int val11 ;
16556 int ecode11 = 0 ;
16557 int val12 ;
16558 int ecode12 = 0 ;
16559 PyObject * obj0 = 0 ;
16560 PyObject * obj1 = 0 ;
16561 PyObject * obj2 = 0 ;
16562 PyObject * obj3 = 0 ;
16563 PyObject * obj4 = 0 ;
16564 PyObject * obj5 = 0 ;
16565 PyObject * obj6 = 0 ;
16566 PyObject * obj7 = 0 ;
16567 PyObject * obj8 = 0 ;
16568 PyObject * obj9 = 0 ;
16569 PyObject * obj10 = 0 ;
16570 PyObject * obj11 = 0 ;
16571 char * kwnames[] = {
16572 (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
16573 };
16574
16575 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;
16576 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16577 if (!SWIG_IsOK(res1)) {
16578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
16579 }
16580 arg1 = reinterpret_cast< wxDC * >(argp1);
16581 ecode2 = SWIG_AsVal_int(obj1, &val2);
16582 if (!SWIG_IsOK(ecode2)) {
16583 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
16584 }
16585 arg2 = static_cast< int >(val2);
16586 ecode3 = SWIG_AsVal_int(obj2, &val3);
16587 if (!SWIG_IsOK(ecode3)) {
16588 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
16589 }
16590 arg3 = static_cast< int >(val3);
16591 ecode4 = SWIG_AsVal_int(obj3, &val4);
16592 if (!SWIG_IsOK(ecode4)) {
16593 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
16594 }
16595 arg4 = static_cast< int >(val4);
16596 ecode5 = SWIG_AsVal_int(obj4, &val5);
16597 if (!SWIG_IsOK(ecode5)) {
16598 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
16599 }
16600 arg5 = static_cast< int >(val5);
16601 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
16602 if (!SWIG_IsOK(res6)) {
16603 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
16604 }
16605 arg6 = reinterpret_cast< wxDC * >(argp6);
16606 ecode7 = SWIG_AsVal_int(obj6, &val7);
16607 if (!SWIG_IsOK(ecode7)) {
16608 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
16609 }
16610 arg7 = static_cast< int >(val7);
16611 ecode8 = SWIG_AsVal_int(obj7, &val8);
16612 if (!SWIG_IsOK(ecode8)) {
16613 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
16614 }
16615 arg8 = static_cast< int >(val8);
16616 if (obj8) {
16617 ecode9 = SWIG_AsVal_int(obj8, &val9);
16618 if (!SWIG_IsOK(ecode9)) {
16619 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
16620 }
16621 arg9 = static_cast< int >(val9);
16622 }
16623 if (obj9) {
16624 ecode10 = SWIG_AsVal_bool(obj9, &val10);
16625 if (!SWIG_IsOK(ecode10)) {
16626 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
16627 }
16628 arg10 = static_cast< bool >(val10);
16629 }
16630 if (obj10) {
16631 ecode11 = SWIG_AsVal_int(obj10, &val11);
16632 if (!SWIG_IsOK(ecode11)) {
16633 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
16634 }
16635 arg11 = static_cast< int >(val11);
16636 }
16637 if (obj11) {
16638 ecode12 = SWIG_AsVal_int(obj11, &val12);
16639 if (!SWIG_IsOK(ecode12)) {
16640 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
16641 }
16642 arg12 = static_cast< int >(val12);
16643 }
16644 {
16645 PyThreadState* __tstate = wxPyBeginAllowThreads();
16646 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
16647 wxPyEndAllowThreads(__tstate);
16648 if (PyErr_Occurred()) SWIG_fail;
16649 }
16650 {
16651 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16652 }
16653 return resultobj;
16654 fail:
16655 return NULL;
16656 }
16657
16658
16659 SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16660 PyObject *resultobj = 0;
16661 wxDC *arg1 = (wxDC *) 0 ;
16662 wxPoint *arg2 = 0 ;
16663 wxSize *arg3 = 0 ;
16664 wxDC *arg4 = (wxDC *) 0 ;
16665 wxPoint *arg5 = 0 ;
16666 int arg6 = (int) wxCOPY ;
16667 bool arg7 = (bool) false ;
16668 wxPoint const &arg8_defvalue = wxDefaultPosition ;
16669 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
16670 bool result;
16671 void *argp1 = 0 ;
16672 int res1 = 0 ;
16673 wxPoint temp2 ;
16674 wxSize temp3 ;
16675 void *argp4 = 0 ;
16676 int res4 = 0 ;
16677 wxPoint temp5 ;
16678 int val6 ;
16679 int ecode6 = 0 ;
16680 bool val7 ;
16681 int ecode7 = 0 ;
16682 wxPoint temp8 ;
16683 PyObject * obj0 = 0 ;
16684 PyObject * obj1 = 0 ;
16685 PyObject * obj2 = 0 ;
16686 PyObject * obj3 = 0 ;
16687 PyObject * obj4 = 0 ;
16688 PyObject * obj5 = 0 ;
16689 PyObject * obj6 = 0 ;
16690 PyObject * obj7 = 0 ;
16691 char * kwnames[] = {
16692 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
16693 };
16694
16695 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
16696 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16697 if (!SWIG_IsOK(res1)) {
16698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
16699 }
16700 arg1 = reinterpret_cast< wxDC * >(argp1);
16701 {
16702 arg2 = &temp2;
16703 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16704 }
16705 {
16706 arg3 = &temp3;
16707 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
16708 }
16709 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
16710 if (!SWIG_IsOK(res4)) {
16711 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
16712 }
16713 arg4 = reinterpret_cast< wxDC * >(argp4);
16714 {
16715 arg5 = &temp5;
16716 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
16717 }
16718 if (obj5) {
16719 ecode6 = SWIG_AsVal_int(obj5, &val6);
16720 if (!SWIG_IsOK(ecode6)) {
16721 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
16722 }
16723 arg6 = static_cast< int >(val6);
16724 }
16725 if (obj6) {
16726 ecode7 = SWIG_AsVal_bool(obj6, &val7);
16727 if (!SWIG_IsOK(ecode7)) {
16728 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
16729 }
16730 arg7 = static_cast< bool >(val7);
16731 }
16732 if (obj7) {
16733 {
16734 arg8 = &temp8;
16735 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
16736 }
16737 }
16738 {
16739 PyThreadState* __tstate = wxPyBeginAllowThreads();
16740 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
16741 wxPyEndAllowThreads(__tstate);
16742 if (PyErr_Occurred()) SWIG_fail;
16743 }
16744 {
16745 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16746 }
16747 return resultobj;
16748 fail:
16749 return NULL;
16750 }
16751
16752
16753 SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16754 PyObject *resultobj = 0;
16755 wxDC *arg1 = (wxDC *) 0 ;
16756 int arg2 ;
16757 int arg3 ;
16758 int arg4 ;
16759 int arg5 ;
16760 void *argp1 = 0 ;
16761 int res1 = 0 ;
16762 int val2 ;
16763 int ecode2 = 0 ;
16764 int val3 ;
16765 int ecode3 = 0 ;
16766 int val4 ;
16767 int ecode4 = 0 ;
16768 int val5 ;
16769 int ecode5 = 0 ;
16770 PyObject * obj0 = 0 ;
16771 PyObject * obj1 = 0 ;
16772 PyObject * obj2 = 0 ;
16773 PyObject * obj3 = 0 ;
16774 PyObject * obj4 = 0 ;
16775 char * kwnames[] = {
16776 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
16777 };
16778
16779 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16780 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16781 if (!SWIG_IsOK(res1)) {
16782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
16783 }
16784 arg1 = reinterpret_cast< wxDC * >(argp1);
16785 ecode2 = SWIG_AsVal_int(obj1, &val2);
16786 if (!SWIG_IsOK(ecode2)) {
16787 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
16788 }
16789 arg2 = static_cast< int >(val2);
16790 ecode3 = SWIG_AsVal_int(obj2, &val3);
16791 if (!SWIG_IsOK(ecode3)) {
16792 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
16793 }
16794 arg3 = static_cast< int >(val3);
16795 ecode4 = SWIG_AsVal_int(obj3, &val4);
16796 if (!SWIG_IsOK(ecode4)) {
16797 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
16798 }
16799 arg4 = static_cast< int >(val4);
16800 ecode5 = SWIG_AsVal_int(obj4, &val5);
16801 if (!SWIG_IsOK(ecode5)) {
16802 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
16803 }
16804 arg5 = static_cast< int >(val5);
16805 {
16806 PyThreadState* __tstate = wxPyBeginAllowThreads();
16807 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
16808 wxPyEndAllowThreads(__tstate);
16809 if (PyErr_Occurred()) SWIG_fail;
16810 }
16811 resultobj = SWIG_Py_Void();
16812 return resultobj;
16813 fail:
16814 return NULL;
16815 }
16816
16817
16818 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16819 PyObject *resultobj = 0;
16820 wxDC *arg1 = (wxDC *) 0 ;
16821 wxPoint *arg2 = 0 ;
16822 wxSize *arg3 = 0 ;
16823 void *argp1 = 0 ;
16824 int res1 = 0 ;
16825 wxPoint temp2 ;
16826 wxSize temp3 ;
16827 PyObject * obj0 = 0 ;
16828 PyObject * obj1 = 0 ;
16829 PyObject * obj2 = 0 ;
16830 char * kwnames[] = {
16831 (char *) "self",(char *) "pt",(char *) "sz", NULL
16832 };
16833
16834 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16835 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16836 if (!SWIG_IsOK(res1)) {
16837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
16838 }
16839 arg1 = reinterpret_cast< wxDC * >(argp1);
16840 {
16841 arg2 = &temp2;
16842 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16843 }
16844 {
16845 arg3 = &temp3;
16846 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
16847 }
16848 {
16849 PyThreadState* __tstate = wxPyBeginAllowThreads();
16850 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
16851 wxPyEndAllowThreads(__tstate);
16852 if (PyErr_Occurred()) SWIG_fail;
16853 }
16854 resultobj = SWIG_Py_Void();
16855 return resultobj;
16856 fail:
16857 return NULL;
16858 }
16859
16860
16861 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16862 PyObject *resultobj = 0;
16863 wxDC *arg1 = (wxDC *) 0 ;
16864 wxRegion *arg2 = 0 ;
16865 void *argp1 = 0 ;
16866 int res1 = 0 ;
16867 void *argp2 = 0 ;
16868 int res2 = 0 ;
16869 PyObject * obj0 = 0 ;
16870 PyObject * obj1 = 0 ;
16871 char * kwnames[] = {
16872 (char *) "self",(char *) "region", NULL
16873 };
16874
16875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
16876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16877 if (!SWIG_IsOK(res1)) {
16878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
16879 }
16880 arg1 = reinterpret_cast< wxDC * >(argp1);
16881 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
16882 if (!SWIG_IsOK(res2)) {
16883 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
16884 }
16885 if (!argp2) {
16886 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
16887 }
16888 arg2 = reinterpret_cast< wxRegion * >(argp2);
16889 {
16890 PyThreadState* __tstate = wxPyBeginAllowThreads();
16891 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
16892 wxPyEndAllowThreads(__tstate);
16893 if (PyErr_Occurred()) SWIG_fail;
16894 }
16895 resultobj = SWIG_Py_Void();
16896 return resultobj;
16897 fail:
16898 return NULL;
16899 }
16900
16901
16902 SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16903 PyObject *resultobj = 0;
16904 wxDC *arg1 = (wxDC *) 0 ;
16905 wxRect *arg2 = 0 ;
16906 void *argp1 = 0 ;
16907 int res1 = 0 ;
16908 wxRect temp2 ;
16909 PyObject * obj0 = 0 ;
16910 PyObject * obj1 = 0 ;
16911 char * kwnames[] = {
16912 (char *) "self",(char *) "rect", NULL
16913 };
16914
16915 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
16916 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16917 if (!SWIG_IsOK(res1)) {
16918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
16919 }
16920 arg1 = reinterpret_cast< wxDC * >(argp1);
16921 {
16922 arg2 = &temp2;
16923 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
16924 }
16925 {
16926 PyThreadState* __tstate = wxPyBeginAllowThreads();
16927 (arg1)->SetClippingRegion((wxRect const &)*arg2);
16928 wxPyEndAllowThreads(__tstate);
16929 if (PyErr_Occurred()) SWIG_fail;
16930 }
16931 resultobj = SWIG_Py_Void();
16932 return resultobj;
16933 fail:
16934 return NULL;
16935 }
16936
16937
16938 SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16939 PyObject *resultobj = 0;
16940 wxDC *arg1 = (wxDC *) 0 ;
16941 int arg2 ;
16942 wxPoint *arg3 = (wxPoint *) 0 ;
16943 int arg4 = (int) 0 ;
16944 int arg5 = (int) 0 ;
16945 void *argp1 = 0 ;
16946 int res1 = 0 ;
16947 int val4 ;
16948 int ecode4 = 0 ;
16949 int val5 ;
16950 int ecode5 = 0 ;
16951 PyObject * obj0 = 0 ;
16952 PyObject * obj1 = 0 ;
16953 PyObject * obj2 = 0 ;
16954 PyObject * obj3 = 0 ;
16955 char * kwnames[] = {
16956 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
16957 };
16958
16959 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16960 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16961 if (!SWIG_IsOK(res1)) {
16962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
16963 }
16964 arg1 = reinterpret_cast< wxDC * >(argp1);
16965 {
16966 arg3 = wxPoint_LIST_helper(obj1, &arg2);
16967 if (arg3 == NULL) SWIG_fail;
16968 }
16969 if (obj2) {
16970 ecode4 = SWIG_AsVal_int(obj2, &val4);
16971 if (!SWIG_IsOK(ecode4)) {
16972 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
16973 }
16974 arg4 = static_cast< int >(val4);
16975 }
16976 if (obj3) {
16977 ecode5 = SWIG_AsVal_int(obj3, &val5);
16978 if (!SWIG_IsOK(ecode5)) {
16979 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
16980 }
16981 arg5 = static_cast< int >(val5);
16982 }
16983 {
16984 PyThreadState* __tstate = wxPyBeginAllowThreads();
16985 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
16986 wxPyEndAllowThreads(__tstate);
16987 if (PyErr_Occurred()) SWIG_fail;
16988 }
16989 resultobj = SWIG_Py_Void();
16990 {
16991 if (arg3) delete [] arg3;
16992 }
16993 return resultobj;
16994 fail:
16995 {
16996 if (arg3) delete [] arg3;
16997 }
16998 return NULL;
16999 }
17000
17001
17002 SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17003 PyObject *resultobj = 0;
17004 wxDC *arg1 = (wxDC *) 0 ;
17005 int arg2 ;
17006 wxPoint *arg3 = (wxPoint *) 0 ;
17007 int arg4 = (int) 0 ;
17008 int arg5 = (int) 0 ;
17009 int arg6 = (int) wxODDEVEN_RULE ;
17010 void *argp1 = 0 ;
17011 int res1 = 0 ;
17012 int val4 ;
17013 int ecode4 = 0 ;
17014 int val5 ;
17015 int ecode5 = 0 ;
17016 int val6 ;
17017 int ecode6 = 0 ;
17018 PyObject * obj0 = 0 ;
17019 PyObject * obj1 = 0 ;
17020 PyObject * obj2 = 0 ;
17021 PyObject * obj3 = 0 ;
17022 PyObject * obj4 = 0 ;
17023 char * kwnames[] = {
17024 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
17025 };
17026
17027 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17028 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17029 if (!SWIG_IsOK(res1)) {
17030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
17031 }
17032 arg1 = reinterpret_cast< wxDC * >(argp1);
17033 {
17034 arg3 = wxPoint_LIST_helper(obj1, &arg2);
17035 if (arg3 == NULL) SWIG_fail;
17036 }
17037 if (obj2) {
17038 ecode4 = SWIG_AsVal_int(obj2, &val4);
17039 if (!SWIG_IsOK(ecode4)) {
17040 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
17041 }
17042 arg4 = static_cast< int >(val4);
17043 }
17044 if (obj3) {
17045 ecode5 = SWIG_AsVal_int(obj3, &val5);
17046 if (!SWIG_IsOK(ecode5)) {
17047 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
17048 }
17049 arg5 = static_cast< int >(val5);
17050 }
17051 if (obj4) {
17052 ecode6 = SWIG_AsVal_int(obj4, &val6);
17053 if (!SWIG_IsOK(ecode6)) {
17054 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
17055 }
17056 arg6 = static_cast< int >(val6);
17057 }
17058 {
17059 PyThreadState* __tstate = wxPyBeginAllowThreads();
17060 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
17061 wxPyEndAllowThreads(__tstate);
17062 if (PyErr_Occurred()) SWIG_fail;
17063 }
17064 resultobj = SWIG_Py_Void();
17065 {
17066 if (arg3) delete [] arg3;
17067 }
17068 return resultobj;
17069 fail:
17070 {
17071 if (arg3) delete [] arg3;
17072 }
17073 return NULL;
17074 }
17075
17076
17077 SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17078 PyObject *resultobj = 0;
17079 wxDC *arg1 = (wxDC *) 0 ;
17080 wxString *arg2 = 0 ;
17081 wxRect *arg3 = 0 ;
17082 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
17083 int arg5 = (int) -1 ;
17084 void *argp1 = 0 ;
17085 int res1 = 0 ;
17086 bool temp2 = false ;
17087 wxRect temp3 ;
17088 int val4 ;
17089 int ecode4 = 0 ;
17090 int val5 ;
17091 int ecode5 = 0 ;
17092 PyObject * obj0 = 0 ;
17093 PyObject * obj1 = 0 ;
17094 PyObject * obj2 = 0 ;
17095 PyObject * obj3 = 0 ;
17096 PyObject * obj4 = 0 ;
17097 char * kwnames[] = {
17098 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
17099 };
17100
17101 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17102 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17103 if (!SWIG_IsOK(res1)) {
17104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
17105 }
17106 arg1 = reinterpret_cast< wxDC * >(argp1);
17107 {
17108 arg2 = wxString_in_helper(obj1);
17109 if (arg2 == NULL) SWIG_fail;
17110 temp2 = true;
17111 }
17112 {
17113 arg3 = &temp3;
17114 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
17115 }
17116 if (obj3) {
17117 ecode4 = SWIG_AsVal_int(obj3, &val4);
17118 if (!SWIG_IsOK(ecode4)) {
17119 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
17120 }
17121 arg4 = static_cast< int >(val4);
17122 }
17123 if (obj4) {
17124 ecode5 = SWIG_AsVal_int(obj4, &val5);
17125 if (!SWIG_IsOK(ecode5)) {
17126 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
17127 }
17128 arg5 = static_cast< int >(val5);
17129 }
17130 {
17131 PyThreadState* __tstate = wxPyBeginAllowThreads();
17132 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
17133 wxPyEndAllowThreads(__tstate);
17134 if (PyErr_Occurred()) SWIG_fail;
17135 }
17136 resultobj = SWIG_Py_Void();
17137 {
17138 if (temp2)
17139 delete arg2;
17140 }
17141 return resultobj;
17142 fail:
17143 {
17144 if (temp2)
17145 delete arg2;
17146 }
17147 return NULL;
17148 }
17149
17150
17151 SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17152 PyObject *resultobj = 0;
17153 wxDC *arg1 = (wxDC *) 0 ;
17154 wxString *arg2 = 0 ;
17155 wxBitmap *arg3 = 0 ;
17156 wxRect *arg4 = 0 ;
17157 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
17158 int arg6 = (int) -1 ;
17159 wxRect result;
17160 void *argp1 = 0 ;
17161 int res1 = 0 ;
17162 bool temp2 = false ;
17163 void *argp3 = 0 ;
17164 int res3 = 0 ;
17165 wxRect temp4 ;
17166 int val5 ;
17167 int ecode5 = 0 ;
17168 int val6 ;
17169 int ecode6 = 0 ;
17170 PyObject * obj0 = 0 ;
17171 PyObject * obj1 = 0 ;
17172 PyObject * obj2 = 0 ;
17173 PyObject * obj3 = 0 ;
17174 PyObject * obj4 = 0 ;
17175 PyObject * obj5 = 0 ;
17176 char * kwnames[] = {
17177 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
17178 };
17179
17180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
17181 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17182 if (!SWIG_IsOK(res1)) {
17183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
17184 }
17185 arg1 = reinterpret_cast< wxDC * >(argp1);
17186 {
17187 arg2 = wxString_in_helper(obj1);
17188 if (arg2 == NULL) SWIG_fail;
17189 temp2 = true;
17190 }
17191 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
17192 if (!SWIG_IsOK(res3)) {
17193 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
17194 }
17195 if (!argp3) {
17196 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
17197 }
17198 arg3 = reinterpret_cast< wxBitmap * >(argp3);
17199 {
17200 arg4 = &temp4;
17201 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
17202 }
17203 if (obj4) {
17204 ecode5 = SWIG_AsVal_int(obj4, &val5);
17205 if (!SWIG_IsOK(ecode5)) {
17206 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
17207 }
17208 arg5 = static_cast< int >(val5);
17209 }
17210 if (obj5) {
17211 ecode6 = SWIG_AsVal_int(obj5, &val6);
17212 if (!SWIG_IsOK(ecode6)) {
17213 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
17214 }
17215 arg6 = static_cast< int >(val6);
17216 }
17217 {
17218 PyThreadState* __tstate = wxPyBeginAllowThreads();
17219 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
17220 wxPyEndAllowThreads(__tstate);
17221 if (PyErr_Occurred()) SWIG_fail;
17222 }
17223 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
17224 {
17225 if (temp2)
17226 delete arg2;
17227 }
17228 return resultobj;
17229 fail:
17230 {
17231 if (temp2)
17232 delete arg2;
17233 }
17234 return NULL;
17235 }
17236
17237
17238 SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17239 PyObject *resultobj = 0;
17240 wxDC *arg1 = (wxDC *) 0 ;
17241 int arg2 ;
17242 wxPoint *arg3 = (wxPoint *) 0 ;
17243 void *argp1 = 0 ;
17244 int res1 = 0 ;
17245 PyObject * obj0 = 0 ;
17246 PyObject * obj1 = 0 ;
17247 char * kwnames[] = {
17248 (char *) "self",(char *) "points", NULL
17249 };
17250
17251 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
17252 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17253 if (!SWIG_IsOK(res1)) {
17254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
17255 }
17256 arg1 = reinterpret_cast< wxDC * >(argp1);
17257 {
17258 arg3 = wxPoint_LIST_helper(obj1, &arg2);
17259 if (arg3 == NULL) SWIG_fail;
17260 }
17261 {
17262 PyThreadState* __tstate = wxPyBeginAllowThreads();
17263 (arg1)->DrawSpline(arg2,arg3);
17264 wxPyEndAllowThreads(__tstate);
17265 if (PyErr_Occurred()) SWIG_fail;
17266 }
17267 resultobj = SWIG_Py_Void();
17268 {
17269 if (arg3) delete [] arg3;
17270 }
17271 return resultobj;
17272 fail:
17273 {
17274 if (arg3) delete [] arg3;
17275 }
17276 return NULL;
17277 }
17278
17279
17280 SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17281 PyObject *resultobj = 0;
17282 wxDC *arg1 = (wxDC *) 0 ;
17283 void *argp1 = 0 ;
17284 int res1 = 0 ;
17285 PyObject *swig_obj[1] ;
17286
17287 if (!args) SWIG_fail;
17288 swig_obj[0] = args;
17289 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17290 if (!SWIG_IsOK(res1)) {
17291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
17292 }
17293 arg1 = reinterpret_cast< wxDC * >(argp1);
17294 {
17295 PyThreadState* __tstate = wxPyBeginAllowThreads();
17296 (arg1)->Clear();
17297 wxPyEndAllowThreads(__tstate);
17298 if (PyErr_Occurred()) SWIG_fail;
17299 }
17300 resultobj = SWIG_Py_Void();
17301 return resultobj;
17302 fail:
17303 return NULL;
17304 }
17305
17306
17307 SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17308 PyObject *resultobj = 0;
17309 wxDC *arg1 = (wxDC *) 0 ;
17310 wxString *arg2 = 0 ;
17311 bool result;
17312 void *argp1 = 0 ;
17313 int res1 = 0 ;
17314 bool temp2 = false ;
17315 PyObject * obj0 = 0 ;
17316 PyObject * obj1 = 0 ;
17317 char * kwnames[] = {
17318 (char *) "self",(char *) "message", NULL
17319 };
17320
17321 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
17322 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17323 if (!SWIG_IsOK(res1)) {
17324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
17325 }
17326 arg1 = reinterpret_cast< wxDC * >(argp1);
17327 {
17328 arg2 = wxString_in_helper(obj1);
17329 if (arg2 == NULL) SWIG_fail;
17330 temp2 = true;
17331 }
17332 {
17333 PyThreadState* __tstate = wxPyBeginAllowThreads();
17334 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
17335 wxPyEndAllowThreads(__tstate);
17336 if (PyErr_Occurred()) SWIG_fail;
17337 }
17338 {
17339 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17340 }
17341 {
17342 if (temp2)
17343 delete arg2;
17344 }
17345 return resultobj;
17346 fail:
17347 {
17348 if (temp2)
17349 delete arg2;
17350 }
17351 return NULL;
17352 }
17353
17354
17355 SWIGINTERN PyObject *_wrap_DC_EndDoc(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_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
17367 }
17368 arg1 = reinterpret_cast< wxDC * >(argp1);
17369 {
17370 PyThreadState* __tstate = wxPyBeginAllowThreads();
17371 (arg1)->EndDoc();
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_StartPage(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_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
17394 }
17395 arg1 = reinterpret_cast< wxDC * >(argp1);
17396 {
17397 PyThreadState* __tstate = wxPyBeginAllowThreads();
17398 (arg1)->StartPage();
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_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17410 PyObject *resultobj = 0;
17411 wxDC *arg1 = (wxDC *) 0 ;
17412 void *argp1 = 0 ;
17413 int res1 = 0 ;
17414 PyObject *swig_obj[1] ;
17415
17416 if (!args) SWIG_fail;
17417 swig_obj[0] = args;
17418 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17419 if (!SWIG_IsOK(res1)) {
17420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
17421 }
17422 arg1 = reinterpret_cast< wxDC * >(argp1);
17423 {
17424 PyThreadState* __tstate = wxPyBeginAllowThreads();
17425 (arg1)->EndPage();
17426 wxPyEndAllowThreads(__tstate);
17427 if (PyErr_Occurred()) SWIG_fail;
17428 }
17429 resultobj = SWIG_Py_Void();
17430 return resultobj;
17431 fail:
17432 return NULL;
17433 }
17434
17435
17436 SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17437 PyObject *resultobj = 0;
17438 wxDC *arg1 = (wxDC *) 0 ;
17439 wxFont *arg2 = 0 ;
17440 void *argp1 = 0 ;
17441 int res1 = 0 ;
17442 void *argp2 = 0 ;
17443 int res2 = 0 ;
17444 PyObject * obj0 = 0 ;
17445 PyObject * obj1 = 0 ;
17446 char * kwnames[] = {
17447 (char *) "self",(char *) "font", NULL
17448 };
17449
17450 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
17451 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17452 if (!SWIG_IsOK(res1)) {
17453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
17454 }
17455 arg1 = reinterpret_cast< wxDC * >(argp1);
17456 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
17457 if (!SWIG_IsOK(res2)) {
17458 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
17459 }
17460 if (!argp2) {
17461 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
17462 }
17463 arg2 = reinterpret_cast< wxFont * >(argp2);
17464 {
17465 PyThreadState* __tstate = wxPyBeginAllowThreads();
17466 (arg1)->SetFont((wxFont const &)*arg2);
17467 wxPyEndAllowThreads(__tstate);
17468 if (PyErr_Occurred()) SWIG_fail;
17469 }
17470 resultobj = SWIG_Py_Void();
17471 return resultobj;
17472 fail:
17473 return NULL;
17474 }
17475
17476
17477 SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17478 PyObject *resultobj = 0;
17479 wxDC *arg1 = (wxDC *) 0 ;
17480 wxPen *arg2 = 0 ;
17481 void *argp1 = 0 ;
17482 int res1 = 0 ;
17483 void *argp2 = 0 ;
17484 int res2 = 0 ;
17485 PyObject * obj0 = 0 ;
17486 PyObject * obj1 = 0 ;
17487 char * kwnames[] = {
17488 (char *) "self",(char *) "pen", NULL
17489 };
17490
17491 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
17492 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17493 if (!SWIG_IsOK(res1)) {
17494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
17495 }
17496 arg1 = reinterpret_cast< wxDC * >(argp1);
17497 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
17498 if (!SWIG_IsOK(res2)) {
17499 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
17500 }
17501 if (!argp2) {
17502 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
17503 }
17504 arg2 = reinterpret_cast< wxPen * >(argp2);
17505 {
17506 PyThreadState* __tstate = wxPyBeginAllowThreads();
17507 (arg1)->SetPen((wxPen const &)*arg2);
17508 wxPyEndAllowThreads(__tstate);
17509 if (PyErr_Occurred()) SWIG_fail;
17510 }
17511 resultobj = SWIG_Py_Void();
17512 return resultobj;
17513 fail:
17514 return NULL;
17515 }
17516
17517
17518 SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17519 PyObject *resultobj = 0;
17520 wxDC *arg1 = (wxDC *) 0 ;
17521 wxBrush *arg2 = 0 ;
17522 void *argp1 = 0 ;
17523 int res1 = 0 ;
17524 void *argp2 = 0 ;
17525 int res2 = 0 ;
17526 PyObject * obj0 = 0 ;
17527 PyObject * obj1 = 0 ;
17528 char * kwnames[] = {
17529 (char *) "self",(char *) "brush", NULL
17530 };
17531
17532 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
17533 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17534 if (!SWIG_IsOK(res1)) {
17535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
17536 }
17537 arg1 = reinterpret_cast< wxDC * >(argp1);
17538 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
17539 if (!SWIG_IsOK(res2)) {
17540 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
17541 }
17542 if (!argp2) {
17543 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
17544 }
17545 arg2 = reinterpret_cast< wxBrush * >(argp2);
17546 {
17547 PyThreadState* __tstate = wxPyBeginAllowThreads();
17548 (arg1)->SetBrush((wxBrush const &)*arg2);
17549 wxPyEndAllowThreads(__tstate);
17550 if (PyErr_Occurred()) SWIG_fail;
17551 }
17552 resultobj = SWIG_Py_Void();
17553 return resultobj;
17554 fail:
17555 return NULL;
17556 }
17557
17558
17559 SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17560 PyObject *resultobj = 0;
17561 wxDC *arg1 = (wxDC *) 0 ;
17562 wxBrush *arg2 = 0 ;
17563 void *argp1 = 0 ;
17564 int res1 = 0 ;
17565 void *argp2 = 0 ;
17566 int res2 = 0 ;
17567 PyObject * obj0 = 0 ;
17568 PyObject * obj1 = 0 ;
17569 char * kwnames[] = {
17570 (char *) "self",(char *) "brush", NULL
17571 };
17572
17573 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
17574 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17575 if (!SWIG_IsOK(res1)) {
17576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
17577 }
17578 arg1 = reinterpret_cast< wxDC * >(argp1);
17579 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
17580 if (!SWIG_IsOK(res2)) {
17581 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
17582 }
17583 if (!argp2) {
17584 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
17585 }
17586 arg2 = reinterpret_cast< wxBrush * >(argp2);
17587 {
17588 PyThreadState* __tstate = wxPyBeginAllowThreads();
17589 (arg1)->SetBackground((wxBrush const &)*arg2);
17590 wxPyEndAllowThreads(__tstate);
17591 if (PyErr_Occurred()) SWIG_fail;
17592 }
17593 resultobj = SWIG_Py_Void();
17594 return resultobj;
17595 fail:
17596 return NULL;
17597 }
17598
17599
17600 SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17601 PyObject *resultobj = 0;
17602 wxDC *arg1 = (wxDC *) 0 ;
17603 int arg2 ;
17604 void *argp1 = 0 ;
17605 int res1 = 0 ;
17606 int val2 ;
17607 int ecode2 = 0 ;
17608 PyObject * obj0 = 0 ;
17609 PyObject * obj1 = 0 ;
17610 char * kwnames[] = {
17611 (char *) "self",(char *) "mode", NULL
17612 };
17613
17614 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
17615 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17616 if (!SWIG_IsOK(res1)) {
17617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
17618 }
17619 arg1 = reinterpret_cast< wxDC * >(argp1);
17620 ecode2 = SWIG_AsVal_int(obj1, &val2);
17621 if (!SWIG_IsOK(ecode2)) {
17622 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
17623 }
17624 arg2 = static_cast< int >(val2);
17625 {
17626 PyThreadState* __tstate = wxPyBeginAllowThreads();
17627 (arg1)->SetBackgroundMode(arg2);
17628 wxPyEndAllowThreads(__tstate);
17629 if (PyErr_Occurred()) SWIG_fail;
17630 }
17631 resultobj = SWIG_Py_Void();
17632 return resultobj;
17633 fail:
17634 return NULL;
17635 }
17636
17637
17638 SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17639 PyObject *resultobj = 0;
17640 wxDC *arg1 = (wxDC *) 0 ;
17641 wxPalette *arg2 = 0 ;
17642 void *argp1 = 0 ;
17643 int res1 = 0 ;
17644 void *argp2 = 0 ;
17645 int res2 = 0 ;
17646 PyObject * obj0 = 0 ;
17647 PyObject * obj1 = 0 ;
17648 char * kwnames[] = {
17649 (char *) "self",(char *) "palette", NULL
17650 };
17651
17652 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
17653 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17654 if (!SWIG_IsOK(res1)) {
17655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
17656 }
17657 arg1 = reinterpret_cast< wxDC * >(argp1);
17658 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
17659 if (!SWIG_IsOK(res2)) {
17660 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
17661 }
17662 if (!argp2) {
17663 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
17664 }
17665 arg2 = reinterpret_cast< wxPalette * >(argp2);
17666 {
17667 PyThreadState* __tstate = wxPyBeginAllowThreads();
17668 (arg1)->SetPalette((wxPalette const &)*arg2);
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_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17680 PyObject *resultobj = 0;
17681 wxDC *arg1 = (wxDC *) 0 ;
17682 void *argp1 = 0 ;
17683 int res1 = 0 ;
17684 PyObject *swig_obj[1] ;
17685
17686 if (!args) SWIG_fail;
17687 swig_obj[0] = args;
17688 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17689 if (!SWIG_IsOK(res1)) {
17690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
17691 }
17692 arg1 = reinterpret_cast< wxDC * >(argp1);
17693 {
17694 PyThreadState* __tstate = wxPyBeginAllowThreads();
17695 (arg1)->DestroyClippingRegion();
17696 wxPyEndAllowThreads(__tstate);
17697 if (PyErr_Occurred()) SWIG_fail;
17698 }
17699 resultobj = SWIG_Py_Void();
17700 return resultobj;
17701 fail:
17702 return NULL;
17703 }
17704
17705
17706 SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17707 PyObject *resultobj = 0;
17708 wxDC *arg1 = (wxDC *) 0 ;
17709 int *arg2 = (int *) 0 ;
17710 int *arg3 = (int *) 0 ;
17711 int *arg4 = (int *) 0 ;
17712 int *arg5 = (int *) 0 ;
17713 void *argp1 = 0 ;
17714 int res1 = 0 ;
17715 int temp2 ;
17716 int res2 = SWIG_TMPOBJ ;
17717 int temp3 ;
17718 int res3 = SWIG_TMPOBJ ;
17719 int temp4 ;
17720 int res4 = SWIG_TMPOBJ ;
17721 int temp5 ;
17722 int res5 = SWIG_TMPOBJ ;
17723 PyObject *swig_obj[1] ;
17724
17725 arg2 = &temp2;
17726 arg3 = &temp3;
17727 arg4 = &temp4;
17728 arg5 = &temp5;
17729 if (!args) SWIG_fail;
17730 swig_obj[0] = args;
17731 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17732 if (!SWIG_IsOK(res1)) {
17733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
17734 }
17735 arg1 = reinterpret_cast< wxDC * >(argp1);
17736 {
17737 PyThreadState* __tstate = wxPyBeginAllowThreads();
17738 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
17739 wxPyEndAllowThreads(__tstate);
17740 if (PyErr_Occurred()) SWIG_fail;
17741 }
17742 resultobj = SWIG_Py_Void();
17743 if (SWIG_IsTmpObj(res2)) {
17744 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
17745 } else {
17746 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17747 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
17748 }
17749 if (SWIG_IsTmpObj(res3)) {
17750 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
17751 } else {
17752 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17753 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
17754 }
17755 if (SWIG_IsTmpObj(res4)) {
17756 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
17757 } else {
17758 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17759 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
17760 }
17761 if (SWIG_IsTmpObj(res5)) {
17762 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
17763 } else {
17764 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17765 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
17766 }
17767 return resultobj;
17768 fail:
17769 return NULL;
17770 }
17771
17772
17773 SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17774 PyObject *resultobj = 0;
17775 wxDC *arg1 = (wxDC *) 0 ;
17776 wxRect result;
17777 void *argp1 = 0 ;
17778 int res1 = 0 ;
17779 PyObject *swig_obj[1] ;
17780
17781 if (!args) SWIG_fail;
17782 swig_obj[0] = args;
17783 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17784 if (!SWIG_IsOK(res1)) {
17785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
17786 }
17787 arg1 = reinterpret_cast< wxDC * >(argp1);
17788 {
17789 PyThreadState* __tstate = wxPyBeginAllowThreads();
17790 result = wxDC_GetClippingRect(arg1);
17791 wxPyEndAllowThreads(__tstate);
17792 if (PyErr_Occurred()) SWIG_fail;
17793 }
17794 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
17795 return resultobj;
17796 fail:
17797 return NULL;
17798 }
17799
17800
17801 SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17802 PyObject *resultobj = 0;
17803 wxDC *arg1 = (wxDC *) 0 ;
17804 int result;
17805 void *argp1 = 0 ;
17806 int res1 = 0 ;
17807 PyObject *swig_obj[1] ;
17808
17809 if (!args) SWIG_fail;
17810 swig_obj[0] = args;
17811 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17812 if (!SWIG_IsOK(res1)) {
17813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
17814 }
17815 arg1 = reinterpret_cast< wxDC * >(argp1);
17816 {
17817 PyThreadState* __tstate = wxPyBeginAllowThreads();
17818 result = (int)((wxDC const *)arg1)->GetCharHeight();
17819 wxPyEndAllowThreads(__tstate);
17820 if (PyErr_Occurred()) SWIG_fail;
17821 }
17822 resultobj = SWIG_From_int(static_cast< int >(result));
17823 return resultobj;
17824 fail:
17825 return NULL;
17826 }
17827
17828
17829 SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17830 PyObject *resultobj = 0;
17831 wxDC *arg1 = (wxDC *) 0 ;
17832 int result;
17833 void *argp1 = 0 ;
17834 int res1 = 0 ;
17835 PyObject *swig_obj[1] ;
17836
17837 if (!args) SWIG_fail;
17838 swig_obj[0] = args;
17839 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17840 if (!SWIG_IsOK(res1)) {
17841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
17842 }
17843 arg1 = reinterpret_cast< wxDC * >(argp1);
17844 {
17845 PyThreadState* __tstate = wxPyBeginAllowThreads();
17846 result = (int)((wxDC const *)arg1)->GetCharWidth();
17847 wxPyEndAllowThreads(__tstate);
17848 if (PyErr_Occurred()) SWIG_fail;
17849 }
17850 resultobj = SWIG_From_int(static_cast< int >(result));
17851 return resultobj;
17852 fail:
17853 return NULL;
17854 }
17855
17856
17857 SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17858 PyObject *resultobj = 0;
17859 wxDC *arg1 = (wxDC *) 0 ;
17860 wxString *arg2 = 0 ;
17861 int *arg3 = (int *) 0 ;
17862 int *arg4 = (int *) 0 ;
17863 void *argp1 = 0 ;
17864 int res1 = 0 ;
17865 bool temp2 = false ;
17866 int temp3 ;
17867 int res3 = SWIG_TMPOBJ ;
17868 int temp4 ;
17869 int res4 = SWIG_TMPOBJ ;
17870 PyObject * obj0 = 0 ;
17871 PyObject * obj1 = 0 ;
17872 char * kwnames[] = {
17873 (char *) "self",(char *) "string", NULL
17874 };
17875
17876 arg3 = &temp3;
17877 arg4 = &temp4;
17878 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
17879 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17880 if (!SWIG_IsOK(res1)) {
17881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
17882 }
17883 arg1 = reinterpret_cast< wxDC * >(argp1);
17884 {
17885 arg2 = wxString_in_helper(obj1);
17886 if (arg2 == NULL) SWIG_fail;
17887 temp2 = true;
17888 }
17889 {
17890 PyThreadState* __tstate = wxPyBeginAllowThreads();
17891 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
17892 wxPyEndAllowThreads(__tstate);
17893 if (PyErr_Occurred()) SWIG_fail;
17894 }
17895 resultobj = SWIG_Py_Void();
17896 if (SWIG_IsTmpObj(res3)) {
17897 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
17898 } else {
17899 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17900 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
17901 }
17902 if (SWIG_IsTmpObj(res4)) {
17903 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
17904 } else {
17905 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17906 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
17907 }
17908 {
17909 if (temp2)
17910 delete arg2;
17911 }
17912 return resultobj;
17913 fail:
17914 {
17915 if (temp2)
17916 delete arg2;
17917 }
17918 return NULL;
17919 }
17920
17921
17922 SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17923 PyObject *resultobj = 0;
17924 wxDC *arg1 = (wxDC *) 0 ;
17925 wxString *arg2 = 0 ;
17926 int *arg3 = (int *) 0 ;
17927 int *arg4 = (int *) 0 ;
17928 int *arg5 = (int *) 0 ;
17929 int *arg6 = (int *) 0 ;
17930 wxFont *arg7 = (wxFont *) NULL ;
17931 void *argp1 = 0 ;
17932 int res1 = 0 ;
17933 bool temp2 = false ;
17934 int temp3 ;
17935 int res3 = SWIG_TMPOBJ ;
17936 int temp4 ;
17937 int res4 = SWIG_TMPOBJ ;
17938 int temp5 ;
17939 int res5 = SWIG_TMPOBJ ;
17940 int temp6 ;
17941 int res6 = SWIG_TMPOBJ ;
17942 void *argp7 = 0 ;
17943 int res7 = 0 ;
17944 PyObject * obj0 = 0 ;
17945 PyObject * obj1 = 0 ;
17946 PyObject * obj2 = 0 ;
17947 char * kwnames[] = {
17948 (char *) "self",(char *) "string",(char *) "font", NULL
17949 };
17950
17951 arg3 = &temp3;
17952 arg4 = &temp4;
17953 arg5 = &temp5;
17954 arg6 = &temp6;
17955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17956 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17957 if (!SWIG_IsOK(res1)) {
17958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
17959 }
17960 arg1 = reinterpret_cast< wxDC * >(argp1);
17961 {
17962 arg2 = wxString_in_helper(obj1);
17963 if (arg2 == NULL) SWIG_fail;
17964 temp2 = true;
17965 }
17966 if (obj2) {
17967 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
17968 if (!SWIG_IsOK(res7)) {
17969 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
17970 }
17971 arg7 = reinterpret_cast< wxFont * >(argp7);
17972 }
17973 {
17974 PyThreadState* __tstate = wxPyBeginAllowThreads();
17975 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
17976 wxPyEndAllowThreads(__tstate);
17977 if (PyErr_Occurred()) SWIG_fail;
17978 }
17979 resultobj = SWIG_Py_Void();
17980 if (SWIG_IsTmpObj(res3)) {
17981 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
17982 } else {
17983 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17984 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
17985 }
17986 if (SWIG_IsTmpObj(res4)) {
17987 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
17988 } else {
17989 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17990 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
17991 }
17992 if (SWIG_IsTmpObj(res5)) {
17993 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
17994 } else {
17995 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17996 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
17997 }
17998 if (SWIG_IsTmpObj(res6)) {
17999 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
18000 } else {
18001 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18002 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
18003 }
18004 {
18005 if (temp2)
18006 delete arg2;
18007 }
18008 return resultobj;
18009 fail:
18010 {
18011 if (temp2)
18012 delete arg2;
18013 }
18014 return NULL;
18015 }
18016
18017
18018 SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18019 PyObject *resultobj = 0;
18020 wxDC *arg1 = (wxDC *) 0 ;
18021 wxString *arg2 = 0 ;
18022 int *arg3 = (int *) 0 ;
18023 int *arg4 = (int *) 0 ;
18024 int *arg5 = (int *) 0 ;
18025 wxFont *arg6 = (wxFont *) NULL ;
18026 void *argp1 = 0 ;
18027 int res1 = 0 ;
18028 bool temp2 = false ;
18029 int temp3 ;
18030 int res3 = SWIG_TMPOBJ ;
18031 int temp4 ;
18032 int res4 = SWIG_TMPOBJ ;
18033 int temp5 ;
18034 int res5 = SWIG_TMPOBJ ;
18035 void *argp6 = 0 ;
18036 int res6 = 0 ;
18037 PyObject * obj0 = 0 ;
18038 PyObject * obj1 = 0 ;
18039 PyObject * obj2 = 0 ;
18040 char * kwnames[] = {
18041 (char *) "self",(char *) "text",(char *) "font", NULL
18042 };
18043
18044 arg3 = &temp3;
18045 arg4 = &temp4;
18046 arg5 = &temp5;
18047 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18048 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18049 if (!SWIG_IsOK(res1)) {
18050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
18051 }
18052 arg1 = reinterpret_cast< wxDC * >(argp1);
18053 {
18054 arg2 = wxString_in_helper(obj1);
18055 if (arg2 == NULL) SWIG_fail;
18056 temp2 = true;
18057 }
18058 if (obj2) {
18059 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
18060 if (!SWIG_IsOK(res6)) {
18061 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
18062 }
18063 arg6 = reinterpret_cast< wxFont * >(argp6);
18064 }
18065 {
18066 PyThreadState* __tstate = wxPyBeginAllowThreads();
18067 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
18068 wxPyEndAllowThreads(__tstate);
18069 if (PyErr_Occurred()) SWIG_fail;
18070 }
18071 resultobj = SWIG_Py_Void();
18072 if (SWIG_IsTmpObj(res3)) {
18073 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
18074 } else {
18075 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18076 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
18077 }
18078 if (SWIG_IsTmpObj(res4)) {
18079 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
18080 } else {
18081 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18082 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
18083 }
18084 if (SWIG_IsTmpObj(res5)) {
18085 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
18086 } else {
18087 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18088 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
18089 }
18090 {
18091 if (temp2)
18092 delete arg2;
18093 }
18094 return resultobj;
18095 fail:
18096 {
18097 if (temp2)
18098 delete arg2;
18099 }
18100 return NULL;
18101 }
18102
18103
18104 SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18105 PyObject *resultobj = 0;
18106 wxDC *arg1 = (wxDC *) 0 ;
18107 wxString *arg2 = 0 ;
18108 wxArrayInt result;
18109 void *argp1 = 0 ;
18110 int res1 = 0 ;
18111 bool temp2 = false ;
18112 PyObject * obj0 = 0 ;
18113 PyObject * obj1 = 0 ;
18114 char * kwnames[] = {
18115 (char *) "self",(char *) "text", NULL
18116 };
18117
18118 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
18119 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18120 if (!SWIG_IsOK(res1)) {
18121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
18122 }
18123 arg1 = reinterpret_cast< wxDC * >(argp1);
18124 {
18125 arg2 = wxString_in_helper(obj1);
18126 if (arg2 == NULL) SWIG_fail;
18127 temp2 = true;
18128 }
18129 {
18130 PyThreadState* __tstate = wxPyBeginAllowThreads();
18131 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
18132 wxPyEndAllowThreads(__tstate);
18133 if (PyErr_Occurred()) SWIG_fail;
18134 }
18135 {
18136 resultobj = PyList_New(0);
18137 size_t idx;
18138 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
18139 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
18140 PyList_Append(resultobj, val);
18141 Py_DECREF(val);
18142 }
18143 }
18144 {
18145 if (temp2)
18146 delete arg2;
18147 }
18148 return resultobj;
18149 fail:
18150 {
18151 if (temp2)
18152 delete arg2;
18153 }
18154 return NULL;
18155 }
18156
18157
18158 SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18159 PyObject *resultobj = 0;
18160 wxDC *arg1 = (wxDC *) 0 ;
18161 wxSize result;
18162 void *argp1 = 0 ;
18163 int res1 = 0 ;
18164 PyObject *swig_obj[1] ;
18165
18166 if (!args) SWIG_fail;
18167 swig_obj[0] = args;
18168 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18169 if (!SWIG_IsOK(res1)) {
18170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
18171 }
18172 arg1 = reinterpret_cast< wxDC * >(argp1);
18173 {
18174 PyThreadState* __tstate = wxPyBeginAllowThreads();
18175 result = (arg1)->GetSize();
18176 wxPyEndAllowThreads(__tstate);
18177 if (PyErr_Occurred()) SWIG_fail;
18178 }
18179 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
18180 return resultobj;
18181 fail:
18182 return NULL;
18183 }
18184
18185
18186 SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18187 PyObject *resultobj = 0;
18188 wxDC *arg1 = (wxDC *) 0 ;
18189 int *arg2 = (int *) 0 ;
18190 int *arg3 = (int *) 0 ;
18191 void *argp1 = 0 ;
18192 int res1 = 0 ;
18193 int temp2 ;
18194 int res2 = SWIG_TMPOBJ ;
18195 int temp3 ;
18196 int res3 = SWIG_TMPOBJ ;
18197 PyObject *swig_obj[1] ;
18198
18199 arg2 = &temp2;
18200 arg3 = &temp3;
18201 if (!args) SWIG_fail;
18202 swig_obj[0] = args;
18203 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18204 if (!SWIG_IsOK(res1)) {
18205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
18206 }
18207 arg1 = reinterpret_cast< wxDC * >(argp1);
18208 {
18209 PyThreadState* __tstate = wxPyBeginAllowThreads();
18210 (arg1)->GetSize(arg2,arg3);
18211 wxPyEndAllowThreads(__tstate);
18212 if (PyErr_Occurred()) SWIG_fail;
18213 }
18214 resultobj = SWIG_Py_Void();
18215 if (SWIG_IsTmpObj(res2)) {
18216 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
18217 } else {
18218 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18219 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
18220 }
18221 if (SWIG_IsTmpObj(res3)) {
18222 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
18223 } else {
18224 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18225 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
18226 }
18227 return resultobj;
18228 fail:
18229 return NULL;
18230 }
18231
18232
18233 SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18234 PyObject *resultobj = 0;
18235 wxDC *arg1 = (wxDC *) 0 ;
18236 wxSize result;
18237 void *argp1 = 0 ;
18238 int res1 = 0 ;
18239 PyObject *swig_obj[1] ;
18240
18241 if (!args) SWIG_fail;
18242 swig_obj[0] = args;
18243 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18244 if (!SWIG_IsOK(res1)) {
18245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
18246 }
18247 arg1 = reinterpret_cast< wxDC * >(argp1);
18248 {
18249 PyThreadState* __tstate = wxPyBeginAllowThreads();
18250 result = ((wxDC const *)arg1)->GetSizeMM();
18251 wxPyEndAllowThreads(__tstate);
18252 if (PyErr_Occurred()) SWIG_fail;
18253 }
18254 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
18255 return resultobj;
18256 fail:
18257 return NULL;
18258 }
18259
18260
18261 SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18262 PyObject *resultobj = 0;
18263 wxDC *arg1 = (wxDC *) 0 ;
18264 int *arg2 = (int *) 0 ;
18265 int *arg3 = (int *) 0 ;
18266 void *argp1 = 0 ;
18267 int res1 = 0 ;
18268 int temp2 ;
18269 int res2 = SWIG_TMPOBJ ;
18270 int temp3 ;
18271 int res3 = SWIG_TMPOBJ ;
18272 PyObject *swig_obj[1] ;
18273
18274 arg2 = &temp2;
18275 arg3 = &temp3;
18276 if (!args) SWIG_fail;
18277 swig_obj[0] = args;
18278 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18279 if (!SWIG_IsOK(res1)) {
18280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
18281 }
18282 arg1 = reinterpret_cast< wxDC * >(argp1);
18283 {
18284 PyThreadState* __tstate = wxPyBeginAllowThreads();
18285 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
18286 wxPyEndAllowThreads(__tstate);
18287 if (PyErr_Occurred()) SWIG_fail;
18288 }
18289 resultobj = SWIG_Py_Void();
18290 if (SWIG_IsTmpObj(res2)) {
18291 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
18292 } else {
18293 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18294 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
18295 }
18296 if (SWIG_IsTmpObj(res3)) {
18297 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
18298 } else {
18299 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18300 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
18301 }
18302 return resultobj;
18303 fail:
18304 return NULL;
18305 }
18306
18307
18308 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18309 PyObject *resultobj = 0;
18310 wxDC *arg1 = (wxDC *) 0 ;
18311 int arg2 ;
18312 int result;
18313 void *argp1 = 0 ;
18314 int res1 = 0 ;
18315 int val2 ;
18316 int ecode2 = 0 ;
18317 PyObject * obj0 = 0 ;
18318 PyObject * obj1 = 0 ;
18319 char * kwnames[] = {
18320 (char *) "self",(char *) "x", NULL
18321 };
18322
18323 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
18324 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18325 if (!SWIG_IsOK(res1)) {
18326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
18327 }
18328 arg1 = reinterpret_cast< wxDC * >(argp1);
18329 ecode2 = SWIG_AsVal_int(obj1, &val2);
18330 if (!SWIG_IsOK(ecode2)) {
18331 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
18332 }
18333 arg2 = static_cast< int >(val2);
18334 {
18335 PyThreadState* __tstate = wxPyBeginAllowThreads();
18336 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
18337 wxPyEndAllowThreads(__tstate);
18338 if (PyErr_Occurred()) SWIG_fail;
18339 }
18340 resultobj = SWIG_From_int(static_cast< int >(result));
18341 return resultobj;
18342 fail:
18343 return NULL;
18344 }
18345
18346
18347 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18348 PyObject *resultobj = 0;
18349 wxDC *arg1 = (wxDC *) 0 ;
18350 int arg2 ;
18351 int result;
18352 void *argp1 = 0 ;
18353 int res1 = 0 ;
18354 int val2 ;
18355 int ecode2 = 0 ;
18356 PyObject * obj0 = 0 ;
18357 PyObject * obj1 = 0 ;
18358 char * kwnames[] = {
18359 (char *) "self",(char *) "y", NULL
18360 };
18361
18362 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
18363 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18364 if (!SWIG_IsOK(res1)) {
18365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
18366 }
18367 arg1 = reinterpret_cast< wxDC * >(argp1);
18368 ecode2 = SWIG_AsVal_int(obj1, &val2);
18369 if (!SWIG_IsOK(ecode2)) {
18370 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
18371 }
18372 arg2 = static_cast< int >(val2);
18373 {
18374 PyThreadState* __tstate = wxPyBeginAllowThreads();
18375 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
18376 wxPyEndAllowThreads(__tstate);
18377 if (PyErr_Occurred()) SWIG_fail;
18378 }
18379 resultobj = SWIG_From_int(static_cast< int >(result));
18380 return resultobj;
18381 fail:
18382 return NULL;
18383 }
18384
18385
18386 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18387 PyObject *resultobj = 0;
18388 wxDC *arg1 = (wxDC *) 0 ;
18389 int arg2 ;
18390 int result;
18391 void *argp1 = 0 ;
18392 int res1 = 0 ;
18393 int val2 ;
18394 int ecode2 = 0 ;
18395 PyObject * obj0 = 0 ;
18396 PyObject * obj1 = 0 ;
18397 char * kwnames[] = {
18398 (char *) "self",(char *) "x", NULL
18399 };
18400
18401 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
18402 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18403 if (!SWIG_IsOK(res1)) {
18404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
18405 }
18406 arg1 = reinterpret_cast< wxDC * >(argp1);
18407 ecode2 = SWIG_AsVal_int(obj1, &val2);
18408 if (!SWIG_IsOK(ecode2)) {
18409 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
18410 }
18411 arg2 = static_cast< int >(val2);
18412 {
18413 PyThreadState* __tstate = wxPyBeginAllowThreads();
18414 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
18415 wxPyEndAllowThreads(__tstate);
18416 if (PyErr_Occurred()) SWIG_fail;
18417 }
18418 resultobj = SWIG_From_int(static_cast< int >(result));
18419 return resultobj;
18420 fail:
18421 return NULL;
18422 }
18423
18424
18425 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18426 PyObject *resultobj = 0;
18427 wxDC *arg1 = (wxDC *) 0 ;
18428 int arg2 ;
18429 int result;
18430 void *argp1 = 0 ;
18431 int res1 = 0 ;
18432 int val2 ;
18433 int ecode2 = 0 ;
18434 PyObject * obj0 = 0 ;
18435 PyObject * obj1 = 0 ;
18436 char * kwnames[] = {
18437 (char *) "self",(char *) "y", NULL
18438 };
18439
18440 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
18441 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18442 if (!SWIG_IsOK(res1)) {
18443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
18444 }
18445 arg1 = reinterpret_cast< wxDC * >(argp1);
18446 ecode2 = SWIG_AsVal_int(obj1, &val2);
18447 if (!SWIG_IsOK(ecode2)) {
18448 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
18449 }
18450 arg2 = static_cast< int >(val2);
18451 {
18452 PyThreadState* __tstate = wxPyBeginAllowThreads();
18453 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
18454 wxPyEndAllowThreads(__tstate);
18455 if (PyErr_Occurred()) SWIG_fail;
18456 }
18457 resultobj = SWIG_From_int(static_cast< int >(result));
18458 return resultobj;
18459 fail:
18460 return NULL;
18461 }
18462
18463
18464 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18465 PyObject *resultobj = 0;
18466 wxDC *arg1 = (wxDC *) 0 ;
18467 int arg2 ;
18468 int result;
18469 void *argp1 = 0 ;
18470 int res1 = 0 ;
18471 int val2 ;
18472 int ecode2 = 0 ;
18473 PyObject * obj0 = 0 ;
18474 PyObject * obj1 = 0 ;
18475 char * kwnames[] = {
18476 (char *) "self",(char *) "x", NULL
18477 };
18478
18479 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
18480 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18481 if (!SWIG_IsOK(res1)) {
18482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
18483 }
18484 arg1 = reinterpret_cast< wxDC * >(argp1);
18485 ecode2 = SWIG_AsVal_int(obj1, &val2);
18486 if (!SWIG_IsOK(ecode2)) {
18487 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
18488 }
18489 arg2 = static_cast< int >(val2);
18490 {
18491 PyThreadState* __tstate = wxPyBeginAllowThreads();
18492 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
18493 wxPyEndAllowThreads(__tstate);
18494 if (PyErr_Occurred()) SWIG_fail;
18495 }
18496 resultobj = SWIG_From_int(static_cast< int >(result));
18497 return resultobj;
18498 fail:
18499 return NULL;
18500 }
18501
18502
18503 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18504 PyObject *resultobj = 0;
18505 wxDC *arg1 = (wxDC *) 0 ;
18506 int arg2 ;
18507 int result;
18508 void *argp1 = 0 ;
18509 int res1 = 0 ;
18510 int val2 ;
18511 int ecode2 = 0 ;
18512 PyObject * obj0 = 0 ;
18513 PyObject * obj1 = 0 ;
18514 char * kwnames[] = {
18515 (char *) "self",(char *) "y", NULL
18516 };
18517
18518 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
18519 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18520 if (!SWIG_IsOK(res1)) {
18521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
18522 }
18523 arg1 = reinterpret_cast< wxDC * >(argp1);
18524 ecode2 = SWIG_AsVal_int(obj1, &val2);
18525 if (!SWIG_IsOK(ecode2)) {
18526 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
18527 }
18528 arg2 = static_cast< int >(val2);
18529 {
18530 PyThreadState* __tstate = wxPyBeginAllowThreads();
18531 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
18532 wxPyEndAllowThreads(__tstate);
18533 if (PyErr_Occurred()) SWIG_fail;
18534 }
18535 resultobj = SWIG_From_int(static_cast< int >(result));
18536 return resultobj;
18537 fail:
18538 return NULL;
18539 }
18540
18541
18542 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18543 PyObject *resultobj = 0;
18544 wxDC *arg1 = (wxDC *) 0 ;
18545 int arg2 ;
18546 int result;
18547 void *argp1 = 0 ;
18548 int res1 = 0 ;
18549 int val2 ;
18550 int ecode2 = 0 ;
18551 PyObject * obj0 = 0 ;
18552 PyObject * obj1 = 0 ;
18553 char * kwnames[] = {
18554 (char *) "self",(char *) "x", NULL
18555 };
18556
18557 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
18558 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18559 if (!SWIG_IsOK(res1)) {
18560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
18561 }
18562 arg1 = reinterpret_cast< wxDC * >(argp1);
18563 ecode2 = SWIG_AsVal_int(obj1, &val2);
18564 if (!SWIG_IsOK(ecode2)) {
18565 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
18566 }
18567 arg2 = static_cast< int >(val2);
18568 {
18569 PyThreadState* __tstate = wxPyBeginAllowThreads();
18570 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
18571 wxPyEndAllowThreads(__tstate);
18572 if (PyErr_Occurred()) SWIG_fail;
18573 }
18574 resultobj = SWIG_From_int(static_cast< int >(result));
18575 return resultobj;
18576 fail:
18577 return NULL;
18578 }
18579
18580
18581 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18582 PyObject *resultobj = 0;
18583 wxDC *arg1 = (wxDC *) 0 ;
18584 int arg2 ;
18585 int result;
18586 void *argp1 = 0 ;
18587 int res1 = 0 ;
18588 int val2 ;
18589 int ecode2 = 0 ;
18590 PyObject * obj0 = 0 ;
18591 PyObject * obj1 = 0 ;
18592 char * kwnames[] = {
18593 (char *) "self",(char *) "y", NULL
18594 };
18595
18596 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
18597 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18598 if (!SWIG_IsOK(res1)) {
18599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
18600 }
18601 arg1 = reinterpret_cast< wxDC * >(argp1);
18602 ecode2 = SWIG_AsVal_int(obj1, &val2);
18603 if (!SWIG_IsOK(ecode2)) {
18604 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
18605 }
18606 arg2 = static_cast< int >(val2);
18607 {
18608 PyThreadState* __tstate = wxPyBeginAllowThreads();
18609 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
18610 wxPyEndAllowThreads(__tstate);
18611 if (PyErr_Occurred()) SWIG_fail;
18612 }
18613 resultobj = SWIG_From_int(static_cast< int >(result));
18614 return resultobj;
18615 fail:
18616 return NULL;
18617 }
18618
18619
18620 SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18621 PyObject *resultobj = 0;
18622 wxDC *arg1 = (wxDC *) 0 ;
18623 bool result;
18624 void *argp1 = 0 ;
18625 int res1 = 0 ;
18626 PyObject *swig_obj[1] ;
18627
18628 if (!args) SWIG_fail;
18629 swig_obj[0] = args;
18630 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18631 if (!SWIG_IsOK(res1)) {
18632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
18633 }
18634 arg1 = reinterpret_cast< wxDC * >(argp1);
18635 {
18636 PyThreadState* __tstate = wxPyBeginAllowThreads();
18637 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
18638 wxPyEndAllowThreads(__tstate);
18639 if (PyErr_Occurred()) SWIG_fail;
18640 }
18641 {
18642 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18643 }
18644 return resultobj;
18645 fail:
18646 return NULL;
18647 }
18648
18649
18650 SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18651 PyObject *resultobj = 0;
18652 wxDC *arg1 = (wxDC *) 0 ;
18653 bool result;
18654 void *argp1 = 0 ;
18655 int res1 = 0 ;
18656 PyObject *swig_obj[1] ;
18657
18658 if (!args) SWIG_fail;
18659 swig_obj[0] = args;
18660 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18661 if (!SWIG_IsOK(res1)) {
18662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
18663 }
18664 arg1 = reinterpret_cast< wxDC * >(argp1);
18665 {
18666 PyThreadState* __tstate = wxPyBeginAllowThreads();
18667 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
18668 wxPyEndAllowThreads(__tstate);
18669 if (PyErr_Occurred()) SWIG_fail;
18670 }
18671 {
18672 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18673 }
18674 return resultobj;
18675 fail:
18676 return NULL;
18677 }
18678
18679
18680 SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18681 PyObject *resultobj = 0;
18682 wxDC *arg1 = (wxDC *) 0 ;
18683 int result;
18684 void *argp1 = 0 ;
18685 int res1 = 0 ;
18686 PyObject *swig_obj[1] ;
18687
18688 if (!args) SWIG_fail;
18689 swig_obj[0] = args;
18690 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18691 if (!SWIG_IsOK(res1)) {
18692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
18693 }
18694 arg1 = reinterpret_cast< wxDC * >(argp1);
18695 {
18696 PyThreadState* __tstate = wxPyBeginAllowThreads();
18697 result = (int)((wxDC const *)arg1)->GetDepth();
18698 wxPyEndAllowThreads(__tstate);
18699 if (PyErr_Occurred()) SWIG_fail;
18700 }
18701 resultobj = SWIG_From_int(static_cast< int >(result));
18702 return resultobj;
18703 fail:
18704 return NULL;
18705 }
18706
18707
18708 SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18709 PyObject *resultobj = 0;
18710 wxDC *arg1 = (wxDC *) 0 ;
18711 wxSize result;
18712 void *argp1 = 0 ;
18713 int res1 = 0 ;
18714 PyObject *swig_obj[1] ;
18715
18716 if (!args) SWIG_fail;
18717 swig_obj[0] = args;
18718 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18719 if (!SWIG_IsOK(res1)) {
18720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
18721 }
18722 arg1 = reinterpret_cast< wxDC * >(argp1);
18723 {
18724 PyThreadState* __tstate = wxPyBeginAllowThreads();
18725 result = ((wxDC const *)arg1)->GetPPI();
18726 wxPyEndAllowThreads(__tstate);
18727 if (PyErr_Occurred()) SWIG_fail;
18728 }
18729 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
18730 return resultobj;
18731 fail:
18732 return NULL;
18733 }
18734
18735
18736 SWIGINTERN PyObject *_wrap_DC_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18737 PyObject *resultobj = 0;
18738 wxDC *arg1 = (wxDC *) 0 ;
18739 bool result;
18740 void *argp1 = 0 ;
18741 int res1 = 0 ;
18742 PyObject *swig_obj[1] ;
18743
18744 if (!args) SWIG_fail;
18745 swig_obj[0] = args;
18746 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18747 if (!SWIG_IsOK(res1)) {
18748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Ok" "', expected argument " "1"" of type '" "wxDC const *""'");
18749 }
18750 arg1 = reinterpret_cast< wxDC * >(argp1);
18751 {
18752 PyThreadState* __tstate = wxPyBeginAllowThreads();
18753 result = (bool)((wxDC const *)arg1)->Ok();
18754 wxPyEndAllowThreads(__tstate);
18755 if (PyErr_Occurred()) SWIG_fail;
18756 }
18757 {
18758 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18759 }
18760 return resultobj;
18761 fail:
18762 return NULL;
18763 }
18764
18765
18766 SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18767 PyObject *resultobj = 0;
18768 wxDC *arg1 = (wxDC *) 0 ;
18769 int result;
18770 void *argp1 = 0 ;
18771 int res1 = 0 ;
18772 PyObject *swig_obj[1] ;
18773
18774 if (!args) SWIG_fail;
18775 swig_obj[0] = args;
18776 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18777 if (!SWIG_IsOK(res1)) {
18778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
18779 }
18780 arg1 = reinterpret_cast< wxDC * >(argp1);
18781 {
18782 PyThreadState* __tstate = wxPyBeginAllowThreads();
18783 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
18784 wxPyEndAllowThreads(__tstate);
18785 if (PyErr_Occurred()) SWIG_fail;
18786 }
18787 resultobj = SWIG_From_int(static_cast< int >(result));
18788 return resultobj;
18789 fail:
18790 return NULL;
18791 }
18792
18793
18794 SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18795 PyObject *resultobj = 0;
18796 wxDC *arg1 = (wxDC *) 0 ;
18797 wxBrush *result = 0 ;
18798 void *argp1 = 0 ;
18799 int res1 = 0 ;
18800 PyObject *swig_obj[1] ;
18801
18802 if (!args) SWIG_fail;
18803 swig_obj[0] = args;
18804 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18805 if (!SWIG_IsOK(res1)) {
18806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
18807 }
18808 arg1 = reinterpret_cast< wxDC * >(argp1);
18809 {
18810 PyThreadState* __tstate = wxPyBeginAllowThreads();
18811 {
18812 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
18813 result = (wxBrush *) &_result_ref;
18814 }
18815 wxPyEndAllowThreads(__tstate);
18816 if (PyErr_Occurred()) SWIG_fail;
18817 }
18818 {
18819 wxBrush* resultptr = new wxBrush(*result);
18820 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
18821 }
18822 return resultobj;
18823 fail:
18824 return NULL;
18825 }
18826
18827
18828 SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18829 PyObject *resultobj = 0;
18830 wxDC *arg1 = (wxDC *) 0 ;
18831 wxBrush *result = 0 ;
18832 void *argp1 = 0 ;
18833 int res1 = 0 ;
18834 PyObject *swig_obj[1] ;
18835
18836 if (!args) SWIG_fail;
18837 swig_obj[0] = args;
18838 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18839 if (!SWIG_IsOK(res1)) {
18840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
18841 }
18842 arg1 = reinterpret_cast< wxDC * >(argp1);
18843 {
18844 PyThreadState* __tstate = wxPyBeginAllowThreads();
18845 {
18846 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
18847 result = (wxBrush *) &_result_ref;
18848 }
18849 wxPyEndAllowThreads(__tstate);
18850 if (PyErr_Occurred()) SWIG_fail;
18851 }
18852 {
18853 wxBrush* resultptr = new wxBrush(*result);
18854 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
18855 }
18856 return resultobj;
18857 fail:
18858 return NULL;
18859 }
18860
18861
18862 SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18863 PyObject *resultobj = 0;
18864 wxDC *arg1 = (wxDC *) 0 ;
18865 wxFont *result = 0 ;
18866 void *argp1 = 0 ;
18867 int res1 = 0 ;
18868 PyObject *swig_obj[1] ;
18869
18870 if (!args) SWIG_fail;
18871 swig_obj[0] = args;
18872 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18873 if (!SWIG_IsOK(res1)) {
18874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
18875 }
18876 arg1 = reinterpret_cast< wxDC * >(argp1);
18877 {
18878 PyThreadState* __tstate = wxPyBeginAllowThreads();
18879 {
18880 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
18881 result = (wxFont *) &_result_ref;
18882 }
18883 wxPyEndAllowThreads(__tstate);
18884 if (PyErr_Occurred()) SWIG_fail;
18885 }
18886 {
18887 wxFont* resultptr = new wxFont(*result);
18888 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
18889 }
18890 return resultobj;
18891 fail:
18892 return NULL;
18893 }
18894
18895
18896 SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18897 PyObject *resultobj = 0;
18898 wxDC *arg1 = (wxDC *) 0 ;
18899 wxPen *result = 0 ;
18900 void *argp1 = 0 ;
18901 int res1 = 0 ;
18902 PyObject *swig_obj[1] ;
18903
18904 if (!args) SWIG_fail;
18905 swig_obj[0] = args;
18906 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18907 if (!SWIG_IsOK(res1)) {
18908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
18909 }
18910 arg1 = reinterpret_cast< wxDC * >(argp1);
18911 {
18912 PyThreadState* __tstate = wxPyBeginAllowThreads();
18913 {
18914 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
18915 result = (wxPen *) &_result_ref;
18916 }
18917 wxPyEndAllowThreads(__tstate);
18918 if (PyErr_Occurred()) SWIG_fail;
18919 }
18920 {
18921 wxPen* resultptr = new wxPen(*result);
18922 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
18923 }
18924 return resultobj;
18925 fail:
18926 return NULL;
18927 }
18928
18929
18930 SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18931 PyObject *resultobj = 0;
18932 wxDC *arg1 = (wxDC *) 0 ;
18933 wxColour *result = 0 ;
18934 void *argp1 = 0 ;
18935 int res1 = 0 ;
18936 PyObject *swig_obj[1] ;
18937
18938 if (!args) SWIG_fail;
18939 swig_obj[0] = args;
18940 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18941 if (!SWIG_IsOK(res1)) {
18942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
18943 }
18944 arg1 = reinterpret_cast< wxDC * >(argp1);
18945 {
18946 PyThreadState* __tstate = wxPyBeginAllowThreads();
18947 {
18948 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
18949 result = (wxColour *) &_result_ref;
18950 }
18951 wxPyEndAllowThreads(__tstate);
18952 if (PyErr_Occurred()) SWIG_fail;
18953 }
18954 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
18955 return resultobj;
18956 fail:
18957 return NULL;
18958 }
18959
18960
18961 SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18962 PyObject *resultobj = 0;
18963 wxDC *arg1 = (wxDC *) 0 ;
18964 wxColour *result = 0 ;
18965 void *argp1 = 0 ;
18966 int res1 = 0 ;
18967 PyObject *swig_obj[1] ;
18968
18969 if (!args) SWIG_fail;
18970 swig_obj[0] = args;
18971 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18972 if (!SWIG_IsOK(res1)) {
18973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
18974 }
18975 arg1 = reinterpret_cast< wxDC * >(argp1);
18976 {
18977 PyThreadState* __tstate = wxPyBeginAllowThreads();
18978 {
18979 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
18980 result = (wxColour *) &_result_ref;
18981 }
18982 wxPyEndAllowThreads(__tstate);
18983 if (PyErr_Occurred()) SWIG_fail;
18984 }
18985 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
18986 return resultobj;
18987 fail:
18988 return NULL;
18989 }
18990
18991
18992 SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18993 PyObject *resultobj = 0;
18994 wxDC *arg1 = (wxDC *) 0 ;
18995 wxColour *arg2 = 0 ;
18996 void *argp1 = 0 ;
18997 int res1 = 0 ;
18998 wxColour temp2 ;
18999 PyObject * obj0 = 0 ;
19000 PyObject * obj1 = 0 ;
19001 char * kwnames[] = {
19002 (char *) "self",(char *) "colour", NULL
19003 };
19004
19005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
19006 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19007 if (!SWIG_IsOK(res1)) {
19008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
19009 }
19010 arg1 = reinterpret_cast< wxDC * >(argp1);
19011 {
19012 arg2 = &temp2;
19013 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19014 }
19015 {
19016 PyThreadState* __tstate = wxPyBeginAllowThreads();
19017 (arg1)->SetTextForeground((wxColour const &)*arg2);
19018 wxPyEndAllowThreads(__tstate);
19019 if (PyErr_Occurred()) SWIG_fail;
19020 }
19021 resultobj = SWIG_Py_Void();
19022 return resultobj;
19023 fail:
19024 return NULL;
19025 }
19026
19027
19028 SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19029 PyObject *resultobj = 0;
19030 wxDC *arg1 = (wxDC *) 0 ;
19031 wxColour *arg2 = 0 ;
19032 void *argp1 = 0 ;
19033 int res1 = 0 ;
19034 wxColour temp2 ;
19035 PyObject * obj0 = 0 ;
19036 PyObject * obj1 = 0 ;
19037 char * kwnames[] = {
19038 (char *) "self",(char *) "colour", NULL
19039 };
19040
19041 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
19042 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19043 if (!SWIG_IsOK(res1)) {
19044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
19045 }
19046 arg1 = reinterpret_cast< wxDC * >(argp1);
19047 {
19048 arg2 = &temp2;
19049 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19050 }
19051 {
19052 PyThreadState* __tstate = wxPyBeginAllowThreads();
19053 (arg1)->SetTextBackground((wxColour const &)*arg2);
19054 wxPyEndAllowThreads(__tstate);
19055 if (PyErr_Occurred()) SWIG_fail;
19056 }
19057 resultobj = SWIG_Py_Void();
19058 return resultobj;
19059 fail:
19060 return NULL;
19061 }
19062
19063
19064 SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19065 PyObject *resultobj = 0;
19066 wxDC *arg1 = (wxDC *) 0 ;
19067 int result;
19068 void *argp1 = 0 ;
19069 int res1 = 0 ;
19070 PyObject *swig_obj[1] ;
19071
19072 if (!args) SWIG_fail;
19073 swig_obj[0] = args;
19074 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19075 if (!SWIG_IsOK(res1)) {
19076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
19077 }
19078 arg1 = reinterpret_cast< wxDC * >(argp1);
19079 {
19080 PyThreadState* __tstate = wxPyBeginAllowThreads();
19081 result = (int)((wxDC const *)arg1)->GetMapMode();
19082 wxPyEndAllowThreads(__tstate);
19083 if (PyErr_Occurred()) SWIG_fail;
19084 }
19085 resultobj = SWIG_From_int(static_cast< int >(result));
19086 return resultobj;
19087 fail:
19088 return NULL;
19089 }
19090
19091
19092 SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19093 PyObject *resultobj = 0;
19094 wxDC *arg1 = (wxDC *) 0 ;
19095 int arg2 ;
19096 void *argp1 = 0 ;
19097 int res1 = 0 ;
19098 int val2 ;
19099 int ecode2 = 0 ;
19100 PyObject * obj0 = 0 ;
19101 PyObject * obj1 = 0 ;
19102 char * kwnames[] = {
19103 (char *) "self",(char *) "mode", NULL
19104 };
19105
19106 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
19107 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19108 if (!SWIG_IsOK(res1)) {
19109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
19110 }
19111 arg1 = reinterpret_cast< wxDC * >(argp1);
19112 ecode2 = SWIG_AsVal_int(obj1, &val2);
19113 if (!SWIG_IsOK(ecode2)) {
19114 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
19115 }
19116 arg2 = static_cast< int >(val2);
19117 {
19118 PyThreadState* __tstate = wxPyBeginAllowThreads();
19119 (arg1)->SetMapMode(arg2);
19120 wxPyEndAllowThreads(__tstate);
19121 if (PyErr_Occurred()) SWIG_fail;
19122 }
19123 resultobj = SWIG_Py_Void();
19124 return resultobj;
19125 fail:
19126 return NULL;
19127 }
19128
19129
19130 SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19131 PyObject *resultobj = 0;
19132 wxDC *arg1 = (wxDC *) 0 ;
19133 double *arg2 = (double *) 0 ;
19134 double *arg3 = (double *) 0 ;
19135 void *argp1 = 0 ;
19136 int res1 = 0 ;
19137 double temp2 ;
19138 int res2 = SWIG_TMPOBJ ;
19139 double temp3 ;
19140 int res3 = SWIG_TMPOBJ ;
19141 PyObject *swig_obj[1] ;
19142
19143 arg2 = &temp2;
19144 arg3 = &temp3;
19145 if (!args) SWIG_fail;
19146 swig_obj[0] = args;
19147 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19148 if (!SWIG_IsOK(res1)) {
19149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
19150 }
19151 arg1 = reinterpret_cast< wxDC * >(argp1);
19152 {
19153 PyThreadState* __tstate = wxPyBeginAllowThreads();
19154 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
19155 wxPyEndAllowThreads(__tstate);
19156 if (PyErr_Occurred()) SWIG_fail;
19157 }
19158 resultobj = SWIG_Py_Void();
19159 if (SWIG_IsTmpObj(res2)) {
19160 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
19161 } else {
19162 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19163 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
19164 }
19165 if (SWIG_IsTmpObj(res3)) {
19166 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
19167 } else {
19168 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19169 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
19170 }
19171 return resultobj;
19172 fail:
19173 return NULL;
19174 }
19175
19176
19177 SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19178 PyObject *resultobj = 0;
19179 wxDC *arg1 = (wxDC *) 0 ;
19180 double arg2 ;
19181 double arg3 ;
19182 void *argp1 = 0 ;
19183 int res1 = 0 ;
19184 double val2 ;
19185 int ecode2 = 0 ;
19186 double val3 ;
19187 int ecode3 = 0 ;
19188 PyObject * obj0 = 0 ;
19189 PyObject * obj1 = 0 ;
19190 PyObject * obj2 = 0 ;
19191 char * kwnames[] = {
19192 (char *) "self",(char *) "x",(char *) "y", NULL
19193 };
19194
19195 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19196 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19197 if (!SWIG_IsOK(res1)) {
19198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
19199 }
19200 arg1 = reinterpret_cast< wxDC * >(argp1);
19201 ecode2 = SWIG_AsVal_double(obj1, &val2);
19202 if (!SWIG_IsOK(ecode2)) {
19203 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
19204 }
19205 arg2 = static_cast< double >(val2);
19206 ecode3 = SWIG_AsVal_double(obj2, &val3);
19207 if (!SWIG_IsOK(ecode3)) {
19208 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
19209 }
19210 arg3 = static_cast< double >(val3);
19211 {
19212 PyThreadState* __tstate = wxPyBeginAllowThreads();
19213 (arg1)->SetUserScale(arg2,arg3);
19214 wxPyEndAllowThreads(__tstate);
19215 if (PyErr_Occurred()) SWIG_fail;
19216 }
19217 resultobj = SWIG_Py_Void();
19218 return resultobj;
19219 fail:
19220 return NULL;
19221 }
19222
19223
19224 SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19225 PyObject *resultobj = 0;
19226 wxDC *arg1 = (wxDC *) 0 ;
19227 double *arg2 = (double *) 0 ;
19228 double *arg3 = (double *) 0 ;
19229 void *argp1 = 0 ;
19230 int res1 = 0 ;
19231 double temp2 ;
19232 int res2 = SWIG_TMPOBJ ;
19233 double temp3 ;
19234 int res3 = SWIG_TMPOBJ ;
19235 PyObject *swig_obj[1] ;
19236
19237 arg2 = &temp2;
19238 arg3 = &temp3;
19239 if (!args) SWIG_fail;
19240 swig_obj[0] = args;
19241 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19242 if (!SWIG_IsOK(res1)) {
19243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
19244 }
19245 arg1 = reinterpret_cast< wxDC * >(argp1);
19246 {
19247 PyThreadState* __tstate = wxPyBeginAllowThreads();
19248 (arg1)->GetLogicalScale(arg2,arg3);
19249 wxPyEndAllowThreads(__tstate);
19250 if (PyErr_Occurred()) SWIG_fail;
19251 }
19252 resultobj = SWIG_Py_Void();
19253 if (SWIG_IsTmpObj(res2)) {
19254 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
19255 } else {
19256 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19257 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
19258 }
19259 if (SWIG_IsTmpObj(res3)) {
19260 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
19261 } else {
19262 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19263 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
19264 }
19265 return resultobj;
19266 fail:
19267 return NULL;
19268 }
19269
19270
19271 SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19272 PyObject *resultobj = 0;
19273 wxDC *arg1 = (wxDC *) 0 ;
19274 double arg2 ;
19275 double arg3 ;
19276 void *argp1 = 0 ;
19277 int res1 = 0 ;
19278 double val2 ;
19279 int ecode2 = 0 ;
19280 double val3 ;
19281 int ecode3 = 0 ;
19282 PyObject * obj0 = 0 ;
19283 PyObject * obj1 = 0 ;
19284 PyObject * obj2 = 0 ;
19285 char * kwnames[] = {
19286 (char *) "self",(char *) "x",(char *) "y", NULL
19287 };
19288
19289 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19290 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19291 if (!SWIG_IsOK(res1)) {
19292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
19293 }
19294 arg1 = reinterpret_cast< wxDC * >(argp1);
19295 ecode2 = SWIG_AsVal_double(obj1, &val2);
19296 if (!SWIG_IsOK(ecode2)) {
19297 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
19298 }
19299 arg2 = static_cast< double >(val2);
19300 ecode3 = SWIG_AsVal_double(obj2, &val3);
19301 if (!SWIG_IsOK(ecode3)) {
19302 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
19303 }
19304 arg3 = static_cast< double >(val3);
19305 {
19306 PyThreadState* __tstate = wxPyBeginAllowThreads();
19307 (arg1)->SetLogicalScale(arg2,arg3);
19308 wxPyEndAllowThreads(__tstate);
19309 if (PyErr_Occurred()) SWIG_fail;
19310 }
19311 resultobj = SWIG_Py_Void();
19312 return resultobj;
19313 fail:
19314 return NULL;
19315 }
19316
19317
19318 SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19319 PyObject *resultobj = 0;
19320 wxDC *arg1 = (wxDC *) 0 ;
19321 wxPoint result;
19322 void *argp1 = 0 ;
19323 int res1 = 0 ;
19324 PyObject *swig_obj[1] ;
19325
19326 if (!args) SWIG_fail;
19327 swig_obj[0] = args;
19328 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19329 if (!SWIG_IsOK(res1)) {
19330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
19331 }
19332 arg1 = reinterpret_cast< wxDC * >(argp1);
19333 {
19334 PyThreadState* __tstate = wxPyBeginAllowThreads();
19335 result = ((wxDC const *)arg1)->GetLogicalOrigin();
19336 wxPyEndAllowThreads(__tstate);
19337 if (PyErr_Occurred()) SWIG_fail;
19338 }
19339 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
19340 return resultobj;
19341 fail:
19342 return NULL;
19343 }
19344
19345
19346 SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19347 PyObject *resultobj = 0;
19348 wxDC *arg1 = (wxDC *) 0 ;
19349 int *arg2 = (int *) 0 ;
19350 int *arg3 = (int *) 0 ;
19351 void *argp1 = 0 ;
19352 int res1 = 0 ;
19353 int temp2 ;
19354 int res2 = SWIG_TMPOBJ ;
19355 int temp3 ;
19356 int res3 = SWIG_TMPOBJ ;
19357 PyObject *swig_obj[1] ;
19358
19359 arg2 = &temp2;
19360 arg3 = &temp3;
19361 if (!args) SWIG_fail;
19362 swig_obj[0] = args;
19363 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19364 if (!SWIG_IsOK(res1)) {
19365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
19366 }
19367 arg1 = reinterpret_cast< wxDC * >(argp1);
19368 {
19369 PyThreadState* __tstate = wxPyBeginAllowThreads();
19370 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
19371 wxPyEndAllowThreads(__tstate);
19372 if (PyErr_Occurred()) SWIG_fail;
19373 }
19374 resultobj = SWIG_Py_Void();
19375 if (SWIG_IsTmpObj(res2)) {
19376 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
19377 } else {
19378 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19379 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
19380 }
19381 if (SWIG_IsTmpObj(res3)) {
19382 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
19383 } else {
19384 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19385 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
19386 }
19387 return resultobj;
19388 fail:
19389 return NULL;
19390 }
19391
19392
19393 SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19394 PyObject *resultobj = 0;
19395 wxDC *arg1 = (wxDC *) 0 ;
19396 int arg2 ;
19397 int arg3 ;
19398 void *argp1 = 0 ;
19399 int res1 = 0 ;
19400 int val2 ;
19401 int ecode2 = 0 ;
19402 int val3 ;
19403 int ecode3 = 0 ;
19404 PyObject * obj0 = 0 ;
19405 PyObject * obj1 = 0 ;
19406 PyObject * obj2 = 0 ;
19407 char * kwnames[] = {
19408 (char *) "self",(char *) "x",(char *) "y", NULL
19409 };
19410
19411 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19412 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19413 if (!SWIG_IsOK(res1)) {
19414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
19415 }
19416 arg1 = reinterpret_cast< wxDC * >(argp1);
19417 ecode2 = SWIG_AsVal_int(obj1, &val2);
19418 if (!SWIG_IsOK(ecode2)) {
19419 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
19420 }
19421 arg2 = static_cast< int >(val2);
19422 ecode3 = SWIG_AsVal_int(obj2, &val3);
19423 if (!SWIG_IsOK(ecode3)) {
19424 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
19425 }
19426 arg3 = static_cast< int >(val3);
19427 {
19428 PyThreadState* __tstate = wxPyBeginAllowThreads();
19429 (arg1)->SetLogicalOrigin(arg2,arg3);
19430 wxPyEndAllowThreads(__tstate);
19431 if (PyErr_Occurred()) SWIG_fail;
19432 }
19433 resultobj = SWIG_Py_Void();
19434 return resultobj;
19435 fail:
19436 return NULL;
19437 }
19438
19439
19440 SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19441 PyObject *resultobj = 0;
19442 wxDC *arg1 = (wxDC *) 0 ;
19443 wxPoint *arg2 = 0 ;
19444 void *argp1 = 0 ;
19445 int res1 = 0 ;
19446 wxPoint temp2 ;
19447 PyObject * obj0 = 0 ;
19448 PyObject * obj1 = 0 ;
19449 char * kwnames[] = {
19450 (char *) "self",(char *) "point", NULL
19451 };
19452
19453 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
19454 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19455 if (!SWIG_IsOK(res1)) {
19456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19457 }
19458 arg1 = reinterpret_cast< wxDC * >(argp1);
19459 {
19460 arg2 = &temp2;
19461 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19462 }
19463 {
19464 PyThreadState* __tstate = wxPyBeginAllowThreads();
19465 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
19466 wxPyEndAllowThreads(__tstate);
19467 if (PyErr_Occurred()) SWIG_fail;
19468 }
19469 resultobj = SWIG_Py_Void();
19470 return resultobj;
19471 fail:
19472 return NULL;
19473 }
19474
19475
19476 SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19477 PyObject *resultobj = 0;
19478 wxDC *arg1 = (wxDC *) 0 ;
19479 wxPoint result;
19480 void *argp1 = 0 ;
19481 int res1 = 0 ;
19482 PyObject *swig_obj[1] ;
19483
19484 if (!args) SWIG_fail;
19485 swig_obj[0] = args;
19486 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19487 if (!SWIG_IsOK(res1)) {
19488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
19489 }
19490 arg1 = reinterpret_cast< wxDC * >(argp1);
19491 {
19492 PyThreadState* __tstate = wxPyBeginAllowThreads();
19493 result = ((wxDC const *)arg1)->GetDeviceOrigin();
19494 wxPyEndAllowThreads(__tstate);
19495 if (PyErr_Occurred()) SWIG_fail;
19496 }
19497 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
19498 return resultobj;
19499 fail:
19500 return NULL;
19501 }
19502
19503
19504 SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19505 PyObject *resultobj = 0;
19506 wxDC *arg1 = (wxDC *) 0 ;
19507 int *arg2 = (int *) 0 ;
19508 int *arg3 = (int *) 0 ;
19509 void *argp1 = 0 ;
19510 int res1 = 0 ;
19511 int temp2 ;
19512 int res2 = SWIG_TMPOBJ ;
19513 int temp3 ;
19514 int res3 = SWIG_TMPOBJ ;
19515 PyObject *swig_obj[1] ;
19516
19517 arg2 = &temp2;
19518 arg3 = &temp3;
19519 if (!args) SWIG_fail;
19520 swig_obj[0] = args;
19521 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19522 if (!SWIG_IsOK(res1)) {
19523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
19524 }
19525 arg1 = reinterpret_cast< wxDC * >(argp1);
19526 {
19527 PyThreadState* __tstate = wxPyBeginAllowThreads();
19528 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
19529 wxPyEndAllowThreads(__tstate);
19530 if (PyErr_Occurred()) SWIG_fail;
19531 }
19532 resultobj = SWIG_Py_Void();
19533 if (SWIG_IsTmpObj(res2)) {
19534 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
19535 } else {
19536 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19537 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
19538 }
19539 if (SWIG_IsTmpObj(res3)) {
19540 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
19541 } else {
19542 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19543 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
19544 }
19545 return resultobj;
19546 fail:
19547 return NULL;
19548 }
19549
19550
19551 SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19552 PyObject *resultobj = 0;
19553 wxDC *arg1 = (wxDC *) 0 ;
19554 int arg2 ;
19555 int arg3 ;
19556 void *argp1 = 0 ;
19557 int res1 = 0 ;
19558 int val2 ;
19559 int ecode2 = 0 ;
19560 int val3 ;
19561 int ecode3 = 0 ;
19562 PyObject * obj0 = 0 ;
19563 PyObject * obj1 = 0 ;
19564 PyObject * obj2 = 0 ;
19565 char * kwnames[] = {
19566 (char *) "self",(char *) "x",(char *) "y", NULL
19567 };
19568
19569 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19570 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19571 if (!SWIG_IsOK(res1)) {
19572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
19573 }
19574 arg1 = reinterpret_cast< wxDC * >(argp1);
19575 ecode2 = SWIG_AsVal_int(obj1, &val2);
19576 if (!SWIG_IsOK(ecode2)) {
19577 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
19578 }
19579 arg2 = static_cast< int >(val2);
19580 ecode3 = SWIG_AsVal_int(obj2, &val3);
19581 if (!SWIG_IsOK(ecode3)) {
19582 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
19583 }
19584 arg3 = static_cast< int >(val3);
19585 {
19586 PyThreadState* __tstate = wxPyBeginAllowThreads();
19587 (arg1)->SetDeviceOrigin(arg2,arg3);
19588 wxPyEndAllowThreads(__tstate);
19589 if (PyErr_Occurred()) SWIG_fail;
19590 }
19591 resultobj = SWIG_Py_Void();
19592 return resultobj;
19593 fail:
19594 return NULL;
19595 }
19596
19597
19598 SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19599 PyObject *resultobj = 0;
19600 wxDC *arg1 = (wxDC *) 0 ;
19601 wxPoint *arg2 = 0 ;
19602 void *argp1 = 0 ;
19603 int res1 = 0 ;
19604 wxPoint temp2 ;
19605 PyObject * obj0 = 0 ;
19606 PyObject * obj1 = 0 ;
19607 char * kwnames[] = {
19608 (char *) "self",(char *) "point", NULL
19609 };
19610
19611 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
19612 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19613 if (!SWIG_IsOK(res1)) {
19614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19615 }
19616 arg1 = reinterpret_cast< wxDC * >(argp1);
19617 {
19618 arg2 = &temp2;
19619 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19620 }
19621 {
19622 PyThreadState* __tstate = wxPyBeginAllowThreads();
19623 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
19624 wxPyEndAllowThreads(__tstate);
19625 if (PyErr_Occurred()) SWIG_fail;
19626 }
19627 resultobj = SWIG_Py_Void();
19628 return resultobj;
19629 fail:
19630 return NULL;
19631 }
19632
19633
19634 SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19635 PyObject *resultobj = 0;
19636 wxDC *arg1 = (wxDC *) 0 ;
19637 bool arg2 ;
19638 bool arg3 ;
19639 void *argp1 = 0 ;
19640 int res1 = 0 ;
19641 bool val2 ;
19642 int ecode2 = 0 ;
19643 bool val3 ;
19644 int ecode3 = 0 ;
19645 PyObject * obj0 = 0 ;
19646 PyObject * obj1 = 0 ;
19647 PyObject * obj2 = 0 ;
19648 char * kwnames[] = {
19649 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
19650 };
19651
19652 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19653 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19654 if (!SWIG_IsOK(res1)) {
19655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
19656 }
19657 arg1 = reinterpret_cast< wxDC * >(argp1);
19658 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19659 if (!SWIG_IsOK(ecode2)) {
19660 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
19661 }
19662 arg2 = static_cast< bool >(val2);
19663 ecode3 = SWIG_AsVal_bool(obj2, &val3);
19664 if (!SWIG_IsOK(ecode3)) {
19665 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
19666 }
19667 arg3 = static_cast< bool >(val3);
19668 {
19669 PyThreadState* __tstate = wxPyBeginAllowThreads();
19670 (arg1)->SetAxisOrientation(arg2,arg3);
19671 wxPyEndAllowThreads(__tstate);
19672 if (PyErr_Occurred()) SWIG_fail;
19673 }
19674 resultobj = SWIG_Py_Void();
19675 return resultobj;
19676 fail:
19677 return NULL;
19678 }
19679
19680
19681 SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19682 PyObject *resultobj = 0;
19683 wxDC *arg1 = (wxDC *) 0 ;
19684 int result;
19685 void *argp1 = 0 ;
19686 int res1 = 0 ;
19687 PyObject *swig_obj[1] ;
19688
19689 if (!args) SWIG_fail;
19690 swig_obj[0] = args;
19691 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19692 if (!SWIG_IsOK(res1)) {
19693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
19694 }
19695 arg1 = reinterpret_cast< wxDC * >(argp1);
19696 {
19697 PyThreadState* __tstate = wxPyBeginAllowThreads();
19698 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
19699 wxPyEndAllowThreads(__tstate);
19700 if (PyErr_Occurred()) SWIG_fail;
19701 }
19702 resultobj = SWIG_From_int(static_cast< int >(result));
19703 return resultobj;
19704 fail:
19705 return NULL;
19706 }
19707
19708
19709 SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19710 PyObject *resultobj = 0;
19711 wxDC *arg1 = (wxDC *) 0 ;
19712 int arg2 ;
19713 void *argp1 = 0 ;
19714 int res1 = 0 ;
19715 int val2 ;
19716 int ecode2 = 0 ;
19717 PyObject * obj0 = 0 ;
19718 PyObject * obj1 = 0 ;
19719 char * kwnames[] = {
19720 (char *) "self",(char *) "function", NULL
19721 };
19722
19723 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
19724 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19725 if (!SWIG_IsOK(res1)) {
19726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
19727 }
19728 arg1 = reinterpret_cast< wxDC * >(argp1);
19729 ecode2 = SWIG_AsVal_int(obj1, &val2);
19730 if (!SWIG_IsOK(ecode2)) {
19731 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
19732 }
19733 arg2 = static_cast< int >(val2);
19734 {
19735 PyThreadState* __tstate = wxPyBeginAllowThreads();
19736 (arg1)->SetLogicalFunction(arg2);
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_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19748 PyObject *resultobj = 0;
19749 wxDC *arg1 = (wxDC *) 0 ;
19750 void *argp1 = 0 ;
19751 int res1 = 0 ;
19752 PyObject *swig_obj[1] ;
19753
19754 if (!args) SWIG_fail;
19755 swig_obj[0] = args;
19756 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19757 if (!SWIG_IsOK(res1)) {
19758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
19759 }
19760 arg1 = reinterpret_cast< wxDC * >(argp1);
19761 {
19762 PyThreadState* __tstate = wxPyBeginAllowThreads();
19763 (arg1)->ComputeScaleAndOrigin();
19764 wxPyEndAllowThreads(__tstate);
19765 if (PyErr_Occurred()) SWIG_fail;
19766 }
19767 resultobj = SWIG_Py_Void();
19768 return resultobj;
19769 fail:
19770 return NULL;
19771 }
19772
19773
19774 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19775 PyObject *resultobj = 0;
19776 wxDC *arg1 = (wxDC *) 0 ;
19777 int arg2 ;
19778 int arg3 ;
19779 void *argp1 = 0 ;
19780 int res1 = 0 ;
19781 int val2 ;
19782 int ecode2 = 0 ;
19783 int val3 ;
19784 int ecode3 = 0 ;
19785 PyObject * obj0 = 0 ;
19786 PyObject * obj1 = 0 ;
19787 PyObject * obj2 = 0 ;
19788 char * kwnames[] = {
19789 (char *) "self",(char *) "x",(char *) "y", NULL
19790 };
19791
19792 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19793 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19794 if (!SWIG_IsOK(res1)) {
19795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
19796 }
19797 arg1 = reinterpret_cast< wxDC * >(argp1);
19798 ecode2 = SWIG_AsVal_int(obj1, &val2);
19799 if (!SWIG_IsOK(ecode2)) {
19800 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
19801 }
19802 arg2 = static_cast< int >(val2);
19803 ecode3 = SWIG_AsVal_int(obj2, &val3);
19804 if (!SWIG_IsOK(ecode3)) {
19805 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
19806 }
19807 arg3 = static_cast< int >(val3);
19808 {
19809 PyThreadState* __tstate = wxPyBeginAllowThreads();
19810 (arg1)->CalcBoundingBox(arg2,arg3);
19811 wxPyEndAllowThreads(__tstate);
19812 if (PyErr_Occurred()) SWIG_fail;
19813 }
19814 resultobj = SWIG_Py_Void();
19815 return resultobj;
19816 fail:
19817 return NULL;
19818 }
19819
19820
19821 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19822 PyObject *resultobj = 0;
19823 wxDC *arg1 = (wxDC *) 0 ;
19824 wxPoint *arg2 = 0 ;
19825 void *argp1 = 0 ;
19826 int res1 = 0 ;
19827 wxPoint temp2 ;
19828 PyObject * obj0 = 0 ;
19829 PyObject * obj1 = 0 ;
19830 char * kwnames[] = {
19831 (char *) "self",(char *) "point", NULL
19832 };
19833
19834 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
19835 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19836 if (!SWIG_IsOK(res1)) {
19837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19838 }
19839 arg1 = reinterpret_cast< wxDC * >(argp1);
19840 {
19841 arg2 = &temp2;
19842 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19843 }
19844 {
19845 PyThreadState* __tstate = wxPyBeginAllowThreads();
19846 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
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_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19858 PyObject *resultobj = 0;
19859 wxDC *arg1 = (wxDC *) 0 ;
19860 void *argp1 = 0 ;
19861 int res1 = 0 ;
19862 PyObject *swig_obj[1] ;
19863
19864 if (!args) SWIG_fail;
19865 swig_obj[0] = args;
19866 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19867 if (!SWIG_IsOK(res1)) {
19868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
19869 }
19870 arg1 = reinterpret_cast< wxDC * >(argp1);
19871 {
19872 PyThreadState* __tstate = wxPyBeginAllowThreads();
19873 (arg1)->ResetBoundingBox();
19874 wxPyEndAllowThreads(__tstate);
19875 if (PyErr_Occurred()) SWIG_fail;
19876 }
19877 resultobj = SWIG_Py_Void();
19878 return resultobj;
19879 fail:
19880 return NULL;
19881 }
19882
19883
19884 SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19885 PyObject *resultobj = 0;
19886 wxDC *arg1 = (wxDC *) 0 ;
19887 int result;
19888 void *argp1 = 0 ;
19889 int res1 = 0 ;
19890 PyObject *swig_obj[1] ;
19891
19892 if (!args) SWIG_fail;
19893 swig_obj[0] = args;
19894 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19895 if (!SWIG_IsOK(res1)) {
19896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
19897 }
19898 arg1 = reinterpret_cast< wxDC * >(argp1);
19899 {
19900 PyThreadState* __tstate = wxPyBeginAllowThreads();
19901 result = (int)((wxDC const *)arg1)->MinX();
19902 wxPyEndAllowThreads(__tstate);
19903 if (PyErr_Occurred()) SWIG_fail;
19904 }
19905 resultobj = SWIG_From_int(static_cast< int >(result));
19906 return resultobj;
19907 fail:
19908 return NULL;
19909 }
19910
19911
19912 SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19913 PyObject *resultobj = 0;
19914 wxDC *arg1 = (wxDC *) 0 ;
19915 int result;
19916 void *argp1 = 0 ;
19917 int res1 = 0 ;
19918 PyObject *swig_obj[1] ;
19919
19920 if (!args) SWIG_fail;
19921 swig_obj[0] = args;
19922 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19923 if (!SWIG_IsOK(res1)) {
19924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
19925 }
19926 arg1 = reinterpret_cast< wxDC * >(argp1);
19927 {
19928 PyThreadState* __tstate = wxPyBeginAllowThreads();
19929 result = (int)((wxDC const *)arg1)->MaxX();
19930 wxPyEndAllowThreads(__tstate);
19931 if (PyErr_Occurred()) SWIG_fail;
19932 }
19933 resultobj = SWIG_From_int(static_cast< int >(result));
19934 return resultobj;
19935 fail:
19936 return NULL;
19937 }
19938
19939
19940 SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19941 PyObject *resultobj = 0;
19942 wxDC *arg1 = (wxDC *) 0 ;
19943 int result;
19944 void *argp1 = 0 ;
19945 int res1 = 0 ;
19946 PyObject *swig_obj[1] ;
19947
19948 if (!args) SWIG_fail;
19949 swig_obj[0] = args;
19950 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19951 if (!SWIG_IsOK(res1)) {
19952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
19953 }
19954 arg1 = reinterpret_cast< wxDC * >(argp1);
19955 {
19956 PyThreadState* __tstate = wxPyBeginAllowThreads();
19957 result = (int)((wxDC const *)arg1)->MinY();
19958 wxPyEndAllowThreads(__tstate);
19959 if (PyErr_Occurred()) SWIG_fail;
19960 }
19961 resultobj = SWIG_From_int(static_cast< int >(result));
19962 return resultobj;
19963 fail:
19964 return NULL;
19965 }
19966
19967
19968 SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19969 PyObject *resultobj = 0;
19970 wxDC *arg1 = (wxDC *) 0 ;
19971 int result;
19972 void *argp1 = 0 ;
19973 int res1 = 0 ;
19974 PyObject *swig_obj[1] ;
19975
19976 if (!args) SWIG_fail;
19977 swig_obj[0] = args;
19978 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19979 if (!SWIG_IsOK(res1)) {
19980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
19981 }
19982 arg1 = reinterpret_cast< wxDC * >(argp1);
19983 {
19984 PyThreadState* __tstate = wxPyBeginAllowThreads();
19985 result = (int)((wxDC const *)arg1)->MaxY();
19986 wxPyEndAllowThreads(__tstate);
19987 if (PyErr_Occurred()) SWIG_fail;
19988 }
19989 resultobj = SWIG_From_int(static_cast< int >(result));
19990 return resultobj;
19991 fail:
19992 return NULL;
19993 }
19994
19995
19996 SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19997 PyObject *resultobj = 0;
19998 wxDC *arg1 = (wxDC *) 0 ;
19999 int *arg2 = (int *) 0 ;
20000 int *arg3 = (int *) 0 ;
20001 int *arg4 = (int *) 0 ;
20002 int *arg5 = (int *) 0 ;
20003 void *argp1 = 0 ;
20004 int res1 = 0 ;
20005 int temp2 ;
20006 int res2 = SWIG_TMPOBJ ;
20007 int temp3 ;
20008 int res3 = SWIG_TMPOBJ ;
20009 int temp4 ;
20010 int res4 = SWIG_TMPOBJ ;
20011 int temp5 ;
20012 int res5 = SWIG_TMPOBJ ;
20013 PyObject *swig_obj[1] ;
20014
20015 arg2 = &temp2;
20016 arg3 = &temp3;
20017 arg4 = &temp4;
20018 arg5 = &temp5;
20019 if (!args) SWIG_fail;
20020 swig_obj[0] = args;
20021 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20022 if (!SWIG_IsOK(res1)) {
20023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
20024 }
20025 arg1 = reinterpret_cast< wxDC * >(argp1);
20026 {
20027 PyThreadState* __tstate = wxPyBeginAllowThreads();
20028 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
20029 wxPyEndAllowThreads(__tstate);
20030 if (PyErr_Occurred()) SWIG_fail;
20031 }
20032 resultobj = SWIG_Py_Void();
20033 if (SWIG_IsTmpObj(res2)) {
20034 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20035 } else {
20036 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20037 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20038 }
20039 if (SWIG_IsTmpObj(res3)) {
20040 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20041 } else {
20042 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20043 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20044 }
20045 if (SWIG_IsTmpObj(res4)) {
20046 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20047 } else {
20048 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20049 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20050 }
20051 if (SWIG_IsTmpObj(res5)) {
20052 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20053 } else {
20054 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20055 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20056 }
20057 return resultobj;
20058 fail:
20059 return NULL;
20060 }
20061
20062
20063 SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20064 PyObject *resultobj = 0;
20065 wxDC *arg1 = (wxDC *) 0 ;
20066 PyObject *arg2 = (PyObject *) 0 ;
20067 PyObject *arg3 = (PyObject *) 0 ;
20068 PyObject *arg4 = (PyObject *) 0 ;
20069 PyObject *result = 0 ;
20070 void *argp1 = 0 ;
20071 int res1 = 0 ;
20072 PyObject * obj0 = 0 ;
20073 PyObject * obj1 = 0 ;
20074 PyObject * obj2 = 0 ;
20075 PyObject * obj3 = 0 ;
20076 char * kwnames[] = {
20077 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20078 };
20079
20080 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20081 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20082 if (!SWIG_IsOK(res1)) {
20083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
20084 }
20085 arg1 = reinterpret_cast< wxDC * >(argp1);
20086 arg2 = obj1;
20087 arg3 = obj2;
20088 arg4 = obj3;
20089 {
20090 PyThreadState* __tstate = wxPyBeginAllowThreads();
20091 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
20092 wxPyEndAllowThreads(__tstate);
20093 if (PyErr_Occurred()) SWIG_fail;
20094 }
20095 resultobj = result;
20096 return resultobj;
20097 fail:
20098 return NULL;
20099 }
20100
20101
20102 SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20103 PyObject *resultobj = 0;
20104 wxDC *arg1 = (wxDC *) 0 ;
20105 PyObject *arg2 = (PyObject *) 0 ;
20106 PyObject *arg3 = (PyObject *) 0 ;
20107 PyObject *arg4 = (PyObject *) 0 ;
20108 PyObject *result = 0 ;
20109 void *argp1 = 0 ;
20110 int res1 = 0 ;
20111 PyObject * obj0 = 0 ;
20112 PyObject * obj1 = 0 ;
20113 PyObject * obj2 = 0 ;
20114 PyObject * obj3 = 0 ;
20115 char * kwnames[] = {
20116 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20117 };
20118
20119 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20120 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20121 if (!SWIG_IsOK(res1)) {
20122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
20123 }
20124 arg1 = reinterpret_cast< wxDC * >(argp1);
20125 arg2 = obj1;
20126 arg3 = obj2;
20127 arg4 = obj3;
20128 {
20129 PyThreadState* __tstate = wxPyBeginAllowThreads();
20130 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
20131 wxPyEndAllowThreads(__tstate);
20132 if (PyErr_Occurred()) SWIG_fail;
20133 }
20134 resultobj = result;
20135 return resultobj;
20136 fail:
20137 return NULL;
20138 }
20139
20140
20141 SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20142 PyObject *resultobj = 0;
20143 wxDC *arg1 = (wxDC *) 0 ;
20144 PyObject *arg2 = (PyObject *) 0 ;
20145 PyObject *arg3 = (PyObject *) 0 ;
20146 PyObject *arg4 = (PyObject *) 0 ;
20147 PyObject *result = 0 ;
20148 void *argp1 = 0 ;
20149 int res1 = 0 ;
20150 PyObject * obj0 = 0 ;
20151 PyObject * obj1 = 0 ;
20152 PyObject * obj2 = 0 ;
20153 PyObject * obj3 = 0 ;
20154 char * kwnames[] = {
20155 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20156 };
20157
20158 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20159 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20160 if (!SWIG_IsOK(res1)) {
20161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
20162 }
20163 arg1 = reinterpret_cast< wxDC * >(argp1);
20164 arg2 = obj1;
20165 arg3 = obj2;
20166 arg4 = obj3;
20167 {
20168 PyThreadState* __tstate = wxPyBeginAllowThreads();
20169 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
20170 wxPyEndAllowThreads(__tstate);
20171 if (PyErr_Occurred()) SWIG_fail;
20172 }
20173 resultobj = result;
20174 return resultobj;
20175 fail:
20176 return NULL;
20177 }
20178
20179
20180 SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20181 PyObject *resultobj = 0;
20182 wxDC *arg1 = (wxDC *) 0 ;
20183 PyObject *arg2 = (PyObject *) 0 ;
20184 PyObject *arg3 = (PyObject *) 0 ;
20185 PyObject *arg4 = (PyObject *) 0 ;
20186 PyObject *result = 0 ;
20187 void *argp1 = 0 ;
20188 int res1 = 0 ;
20189 PyObject * obj0 = 0 ;
20190 PyObject * obj1 = 0 ;
20191 PyObject * obj2 = 0 ;
20192 PyObject * obj3 = 0 ;
20193 char * kwnames[] = {
20194 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20195 };
20196
20197 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20198 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20199 if (!SWIG_IsOK(res1)) {
20200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
20201 }
20202 arg1 = reinterpret_cast< wxDC * >(argp1);
20203 arg2 = obj1;
20204 arg3 = obj2;
20205 arg4 = obj3;
20206 {
20207 PyThreadState* __tstate = wxPyBeginAllowThreads();
20208 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
20209 wxPyEndAllowThreads(__tstate);
20210 if (PyErr_Occurred()) SWIG_fail;
20211 }
20212 resultobj = result;
20213 return resultobj;
20214 fail:
20215 return NULL;
20216 }
20217
20218
20219 SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20220 PyObject *resultobj = 0;
20221 wxDC *arg1 = (wxDC *) 0 ;
20222 PyObject *arg2 = (PyObject *) 0 ;
20223 PyObject *arg3 = (PyObject *) 0 ;
20224 PyObject *arg4 = (PyObject *) 0 ;
20225 PyObject *result = 0 ;
20226 void *argp1 = 0 ;
20227 int res1 = 0 ;
20228 PyObject * obj0 = 0 ;
20229 PyObject * obj1 = 0 ;
20230 PyObject * obj2 = 0 ;
20231 PyObject * obj3 = 0 ;
20232 char * kwnames[] = {
20233 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20234 };
20235
20236 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20237 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20238 if (!SWIG_IsOK(res1)) {
20239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
20240 }
20241 arg1 = reinterpret_cast< wxDC * >(argp1);
20242 arg2 = obj1;
20243 arg3 = obj2;
20244 arg4 = obj3;
20245 {
20246 PyThreadState* __tstate = wxPyBeginAllowThreads();
20247 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
20248 wxPyEndAllowThreads(__tstate);
20249 if (PyErr_Occurred()) SWIG_fail;
20250 }
20251 resultobj = result;
20252 return resultobj;
20253 fail:
20254 return NULL;
20255 }
20256
20257
20258 SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20259 PyObject *resultobj = 0;
20260 wxDC *arg1 = (wxDC *) 0 ;
20261 PyObject *arg2 = (PyObject *) 0 ;
20262 PyObject *arg3 = (PyObject *) 0 ;
20263 PyObject *arg4 = (PyObject *) 0 ;
20264 PyObject *arg5 = (PyObject *) 0 ;
20265 PyObject *result = 0 ;
20266 void *argp1 = 0 ;
20267 int res1 = 0 ;
20268 PyObject * obj0 = 0 ;
20269 PyObject * obj1 = 0 ;
20270 PyObject * obj2 = 0 ;
20271 PyObject * obj3 = 0 ;
20272 PyObject * obj4 = 0 ;
20273 char * kwnames[] = {
20274 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
20275 };
20276
20277 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20278 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20279 if (!SWIG_IsOK(res1)) {
20280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
20281 }
20282 arg1 = reinterpret_cast< wxDC * >(argp1);
20283 arg2 = obj1;
20284 arg3 = obj2;
20285 arg4 = obj3;
20286 arg5 = obj4;
20287 {
20288 PyThreadState* __tstate = wxPyBeginAllowThreads();
20289 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
20290 wxPyEndAllowThreads(__tstate);
20291 if (PyErr_Occurred()) SWIG_fail;
20292 }
20293 resultobj = result;
20294 return resultobj;
20295 fail:
20296 return NULL;
20297 }
20298
20299
20300 SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20301 PyObject *obj;
20302 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20303 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
20304 return SWIG_Py_Void();
20305 }
20306
20307 SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20308 PyObject *resultobj = 0;
20309 wxMemoryDC *result = 0 ;
20310
20311 if (!SWIG_Python_UnpackTuple(args,"new_MemoryDC",0,0,0)) SWIG_fail;
20312 {
20313 if (!wxPyCheckForApp()) SWIG_fail;
20314 PyThreadState* __tstate = wxPyBeginAllowThreads();
20315 result = (wxMemoryDC *)new wxMemoryDC();
20316 wxPyEndAllowThreads(__tstate);
20317 if (PyErr_Occurred()) SWIG_fail;
20318 }
20319 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
20320 return resultobj;
20321 fail:
20322 return NULL;
20323 }
20324
20325
20326 SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20327 PyObject *resultobj = 0;
20328 wxDC *arg1 = (wxDC *) 0 ;
20329 wxMemoryDC *result = 0 ;
20330 void *argp1 = 0 ;
20331 int res1 = 0 ;
20332 PyObject * obj0 = 0 ;
20333 char * kwnames[] = {
20334 (char *) "oldDC", NULL
20335 };
20336
20337 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
20338 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20339 if (!SWIG_IsOK(res1)) {
20340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
20341 }
20342 arg1 = reinterpret_cast< wxDC * >(argp1);
20343 {
20344 if (!wxPyCheckForApp()) SWIG_fail;
20345 PyThreadState* __tstate = wxPyBeginAllowThreads();
20346 result = (wxMemoryDC *)new wxMemoryDC(arg1);
20347 wxPyEndAllowThreads(__tstate);
20348 if (PyErr_Occurred()) SWIG_fail;
20349 }
20350 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
20351 return resultobj;
20352 fail:
20353 return NULL;
20354 }
20355
20356
20357 SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20358 PyObject *resultobj = 0;
20359 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
20360 wxBitmap *arg2 = 0 ;
20361 void *argp1 = 0 ;
20362 int res1 = 0 ;
20363 void *argp2 = 0 ;
20364 int res2 = 0 ;
20365 PyObject * obj0 = 0 ;
20366 PyObject * obj1 = 0 ;
20367 char * kwnames[] = {
20368 (char *) "self",(char *) "bitmap", NULL
20369 };
20370
20371 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
20372 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
20373 if (!SWIG_IsOK(res1)) {
20374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
20375 }
20376 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
20377 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
20378 if (!SWIG_IsOK(res2)) {
20379 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20380 }
20381 if (!argp2) {
20382 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20383 }
20384 arg2 = reinterpret_cast< wxBitmap * >(argp2);
20385 {
20386 PyThreadState* __tstate = wxPyBeginAllowThreads();
20387 (arg1)->SelectObject((wxBitmap const &)*arg2);
20388 wxPyEndAllowThreads(__tstate);
20389 if (PyErr_Occurred()) SWIG_fail;
20390 }
20391 resultobj = SWIG_Py_Void();
20392 return resultobj;
20393 fail:
20394 return NULL;
20395 }
20396
20397
20398 SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20399 PyObject *obj;
20400 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20401 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
20402 return SWIG_Py_Void();
20403 }
20404
20405 SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20406 return SWIG_Python_InitShadowInstance(args);
20407 }
20408
20409 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
20410 PyObject *resultobj = 0;
20411 wxDC *arg1 = (wxDC *) 0 ;
20412 wxBitmap const &arg2_defvalue = wxNullBitmap ;
20413 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
20414 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
20415 wxBufferedDC *result = 0 ;
20416 void *argp1 = 0 ;
20417 int res1 = 0 ;
20418 void *argp2 = 0 ;
20419 int res2 = 0 ;
20420 int val3 ;
20421 int ecode3 = 0 ;
20422
20423 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
20424 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20425 if (!SWIG_IsOK(res1)) {
20426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
20427 }
20428 arg1 = reinterpret_cast< wxDC * >(argp1);
20429 if (swig_obj[1]) {
20430 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
20431 if (!SWIG_IsOK(res2)) {
20432 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20433 }
20434 if (!argp2) {
20435 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20436 }
20437 arg2 = reinterpret_cast< wxBitmap * >(argp2);
20438 }
20439 if (swig_obj[2]) {
20440 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
20441 if (!SWIG_IsOK(ecode3)) {
20442 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
20443 }
20444 arg3 = static_cast< int >(val3);
20445 }
20446 {
20447 if (!wxPyCheckForApp()) SWIG_fail;
20448 PyThreadState* __tstate = wxPyBeginAllowThreads();
20449 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2,arg3);
20450 wxPyEndAllowThreads(__tstate);
20451 if (PyErr_Occurred()) SWIG_fail;
20452 }
20453 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
20454 return resultobj;
20455 fail:
20456 return NULL;
20457 }
20458
20459
20460 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
20461 PyObject *resultobj = 0;
20462 wxDC *arg1 = (wxDC *) 0 ;
20463 wxSize *arg2 = 0 ;
20464 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
20465 wxBufferedDC *result = 0 ;
20466 void *argp1 = 0 ;
20467 int res1 = 0 ;
20468 wxSize temp2 ;
20469 int val3 ;
20470 int ecode3 = 0 ;
20471
20472 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
20473 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20474 if (!SWIG_IsOK(res1)) {
20475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
20476 }
20477 arg1 = reinterpret_cast< wxDC * >(argp1);
20478 {
20479 arg2 = &temp2;
20480 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
20481 }
20482 if (swig_obj[2]) {
20483 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
20484 if (!SWIG_IsOK(ecode3)) {
20485 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
20486 }
20487 arg3 = static_cast< int >(val3);
20488 }
20489 {
20490 if (!wxPyCheckForApp()) SWIG_fail;
20491 PyThreadState* __tstate = wxPyBeginAllowThreads();
20492 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
20493 wxPyEndAllowThreads(__tstate);
20494 if (PyErr_Occurred()) SWIG_fail;
20495 }
20496 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
20497 return resultobj;
20498 fail:
20499 return NULL;
20500 }
20501
20502
20503 SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
20504 int argc;
20505 PyObject *argv[4];
20506
20507 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
20508 --argc;
20509 if ((argc >= 1) && (argc <= 3)) {
20510 int _v = 0;
20511 if (argc > 1) {
20512 {
20513 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxBitmap, 0);
20514 _v = SWIG_CheckState(res);
20515 }
20516 if (!_v) goto check_1;
20517 }
20518 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
20519 }
20520 check_1:
20521
20522 if ((argc >= 2) && (argc <= 3)) {
20523 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
20524 }
20525
20526 fail:
20527 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
20528 return NULL;
20529 }
20530
20531
20532 SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20533 PyObject *resultobj = 0;
20534 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
20535 void *argp1 = 0 ;
20536 int res1 = 0 ;
20537 PyObject *swig_obj[1] ;
20538
20539 if (!args) SWIG_fail;
20540 swig_obj[0] = args;
20541 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
20542 if (!SWIG_IsOK(res1)) {
20543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
20544 }
20545 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
20546 {
20547 PyThreadState* __tstate = wxPyBeginAllowThreads();
20548 delete arg1;
20549
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 *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20561 PyObject *resultobj = 0;
20562 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
20563 void *argp1 = 0 ;
20564 int res1 = 0 ;
20565 PyObject *swig_obj[1] ;
20566
20567 if (!args) SWIG_fail;
20568 swig_obj[0] = args;
20569 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
20570 if (!SWIG_IsOK(res1)) {
20571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
20572 }
20573 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
20574 {
20575 PyThreadState* __tstate = wxPyBeginAllowThreads();
20576 (arg1)->UnMask();
20577 wxPyEndAllowThreads(__tstate);
20578 if (PyErr_Occurred()) SWIG_fail;
20579 }
20580 resultobj = SWIG_Py_Void();
20581 return resultobj;
20582 fail:
20583 return NULL;
20584 }
20585
20586
20587 SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20588 PyObject *obj;
20589 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20590 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
20591 return SWIG_Py_Void();
20592 }
20593
20594 SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20595 return SWIG_Python_InitShadowInstance(args);
20596 }
20597
20598 SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20599 PyObject *resultobj = 0;
20600 wxWindow *arg1 = (wxWindow *) 0 ;
20601 wxBitmap const &arg2_defvalue = wxNullBitmap ;
20602 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
20603 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
20604 wxBufferedPaintDC *result = 0 ;
20605 void *argp1 = 0 ;
20606 int res1 = 0 ;
20607 void *argp2 = 0 ;
20608 int res2 = 0 ;
20609 int val3 ;
20610 int ecode3 = 0 ;
20611 PyObject * obj0 = 0 ;
20612 PyObject * obj1 = 0 ;
20613 PyObject * obj2 = 0 ;
20614 char * kwnames[] = {
20615 (char *) "window",(char *) "buffer",(char *) "style", NULL
20616 };
20617
20618 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20619 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20620 if (!SWIG_IsOK(res1)) {
20621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
20622 }
20623 arg1 = reinterpret_cast< wxWindow * >(argp1);
20624 if (obj1) {
20625 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
20626 if (!SWIG_IsOK(res2)) {
20627 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20628 }
20629 if (!argp2) {
20630 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20631 }
20632 arg2 = reinterpret_cast< wxBitmap * >(argp2);
20633 }
20634 if (obj2) {
20635 ecode3 = SWIG_AsVal_int(obj2, &val3);
20636 if (!SWIG_IsOK(ecode3)) {
20637 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
20638 }
20639 arg3 = static_cast< int >(val3);
20640 }
20641 {
20642 if (!wxPyCheckForApp()) SWIG_fail;
20643 PyThreadState* __tstate = wxPyBeginAllowThreads();
20644 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2,arg3);
20645 wxPyEndAllowThreads(__tstate);
20646 if (PyErr_Occurred()) SWIG_fail;
20647 }
20648 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
20649 return resultobj;
20650 fail:
20651 return NULL;
20652 }
20653
20654
20655 SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20656 PyObject *obj;
20657 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20658 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
20659 return SWIG_Py_Void();
20660 }
20661
20662 SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20663 return SWIG_Python_InitShadowInstance(args);
20664 }
20665
20666 SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20667 PyObject *resultobj = 0;
20668 wxScreenDC *result = 0 ;
20669
20670 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
20671 {
20672 if (!wxPyCheckForApp()) SWIG_fail;
20673 PyThreadState* __tstate = wxPyBeginAllowThreads();
20674 result = (wxScreenDC *)new wxScreenDC();
20675 wxPyEndAllowThreads(__tstate);
20676 if (PyErr_Occurred()) SWIG_fail;
20677 }
20678 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
20679 return resultobj;
20680 fail:
20681 return NULL;
20682 }
20683
20684
20685 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20686 PyObject *resultobj = 0;
20687 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
20688 wxWindow *arg2 = (wxWindow *) 0 ;
20689 bool result;
20690 void *argp1 = 0 ;
20691 int res1 = 0 ;
20692 void *argp2 = 0 ;
20693 int res2 = 0 ;
20694 PyObject * obj0 = 0 ;
20695 PyObject * obj1 = 0 ;
20696 char * kwnames[] = {
20697 (char *) "self",(char *) "window", NULL
20698 };
20699
20700 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
20701 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
20702 if (!SWIG_IsOK(res1)) {
20703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
20704 }
20705 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
20706 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20707 if (!SWIG_IsOK(res2)) {
20708 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
20709 }
20710 arg2 = reinterpret_cast< wxWindow * >(argp2);
20711 {
20712 PyThreadState* __tstate = wxPyBeginAllowThreads();
20713 result = (bool)(arg1)->StartDrawingOnTop(arg2);
20714 wxPyEndAllowThreads(__tstate);
20715 if (PyErr_Occurred()) SWIG_fail;
20716 }
20717 {
20718 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20719 }
20720 return resultobj;
20721 fail:
20722 return NULL;
20723 }
20724
20725
20726 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20727 PyObject *resultobj = 0;
20728 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
20729 wxRect *arg2 = (wxRect *) NULL ;
20730 bool result;
20731 void *argp1 = 0 ;
20732 int res1 = 0 ;
20733 void *argp2 = 0 ;
20734 int res2 = 0 ;
20735 PyObject * obj0 = 0 ;
20736 PyObject * obj1 = 0 ;
20737 char * kwnames[] = {
20738 (char *) "self",(char *) "rect", NULL
20739 };
20740
20741 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
20742 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
20743 if (!SWIG_IsOK(res1)) {
20744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
20745 }
20746 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
20747 if (obj1) {
20748 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
20749 if (!SWIG_IsOK(res2)) {
20750 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
20751 }
20752 arg2 = reinterpret_cast< wxRect * >(argp2);
20753 }
20754 {
20755 PyThreadState* __tstate = wxPyBeginAllowThreads();
20756 result = (bool)(arg1)->StartDrawingOnTop(arg2);
20757 wxPyEndAllowThreads(__tstate);
20758 if (PyErr_Occurred()) SWIG_fail;
20759 }
20760 {
20761 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20762 }
20763 return resultobj;
20764 fail:
20765 return NULL;
20766 }
20767
20768
20769 SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20770 PyObject *resultobj = 0;
20771 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
20772 bool result;
20773 void *argp1 = 0 ;
20774 int res1 = 0 ;
20775 PyObject *swig_obj[1] ;
20776
20777 if (!args) SWIG_fail;
20778 swig_obj[0] = args;
20779 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
20780 if (!SWIG_IsOK(res1)) {
20781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
20782 }
20783 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
20784 {
20785 PyThreadState* __tstate = wxPyBeginAllowThreads();
20786 result = (bool)(arg1)->EndDrawingOnTop();
20787 wxPyEndAllowThreads(__tstate);
20788 if (PyErr_Occurred()) SWIG_fail;
20789 }
20790 {
20791 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20792 }
20793 return resultobj;
20794 fail:
20795 return NULL;
20796 }
20797
20798
20799 SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20800 PyObject *obj;
20801 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20802 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
20803 return SWIG_Py_Void();
20804 }
20805
20806 SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20807 return SWIG_Python_InitShadowInstance(args);
20808 }
20809
20810 SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20811 PyObject *resultobj = 0;
20812 wxWindow *arg1 = (wxWindow *) 0 ;
20813 wxClientDC *result = 0 ;
20814 void *argp1 = 0 ;
20815 int res1 = 0 ;
20816 PyObject * obj0 = 0 ;
20817 char * kwnames[] = {
20818 (char *) "win", NULL
20819 };
20820
20821 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
20822 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20823 if (!SWIG_IsOK(res1)) {
20824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
20825 }
20826 arg1 = reinterpret_cast< wxWindow * >(argp1);
20827 {
20828 if (!wxPyCheckForApp()) SWIG_fail;
20829 PyThreadState* __tstate = wxPyBeginAllowThreads();
20830 result = (wxClientDC *)new wxClientDC(arg1);
20831 wxPyEndAllowThreads(__tstate);
20832 if (PyErr_Occurred()) SWIG_fail;
20833 }
20834 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
20835 return resultobj;
20836 fail:
20837 return NULL;
20838 }
20839
20840
20841 SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20842 PyObject *obj;
20843 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20844 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
20845 return SWIG_Py_Void();
20846 }
20847
20848 SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20849 return SWIG_Python_InitShadowInstance(args);
20850 }
20851
20852 SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20853 PyObject *resultobj = 0;
20854 wxWindow *arg1 = (wxWindow *) 0 ;
20855 wxPaintDC *result = 0 ;
20856 void *argp1 = 0 ;
20857 int res1 = 0 ;
20858 PyObject * obj0 = 0 ;
20859 char * kwnames[] = {
20860 (char *) "win", NULL
20861 };
20862
20863 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
20864 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20865 if (!SWIG_IsOK(res1)) {
20866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
20867 }
20868 arg1 = reinterpret_cast< wxWindow * >(argp1);
20869 {
20870 if (!wxPyCheckForApp()) SWIG_fail;
20871 PyThreadState* __tstate = wxPyBeginAllowThreads();
20872 result = (wxPaintDC *)new wxPaintDC(arg1);
20873 wxPyEndAllowThreads(__tstate);
20874 if (PyErr_Occurred()) SWIG_fail;
20875 }
20876 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
20877 return resultobj;
20878 fail:
20879 return NULL;
20880 }
20881
20882
20883 SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20884 PyObject *obj;
20885 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20886 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
20887 return SWIG_Py_Void();
20888 }
20889
20890 SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20891 return SWIG_Python_InitShadowInstance(args);
20892 }
20893
20894 SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20895 PyObject *resultobj = 0;
20896 wxWindow *arg1 = (wxWindow *) 0 ;
20897 wxWindowDC *result = 0 ;
20898 void *argp1 = 0 ;
20899 int res1 = 0 ;
20900 PyObject * obj0 = 0 ;
20901 char * kwnames[] = {
20902 (char *) "win", NULL
20903 };
20904
20905 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
20906 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20907 if (!SWIG_IsOK(res1)) {
20908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
20909 }
20910 arg1 = reinterpret_cast< wxWindow * >(argp1);
20911 {
20912 if (!wxPyCheckForApp()) SWIG_fail;
20913 PyThreadState* __tstate = wxPyBeginAllowThreads();
20914 result = (wxWindowDC *)new wxWindowDC(arg1);
20915 wxPyEndAllowThreads(__tstate);
20916 if (PyErr_Occurred()) SWIG_fail;
20917 }
20918 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
20919 return resultobj;
20920 fail:
20921 return NULL;
20922 }
20923
20924
20925 SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20926 PyObject *obj;
20927 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20928 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
20929 return SWIG_Py_Void();
20930 }
20931
20932 SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20933 return SWIG_Python_InitShadowInstance(args);
20934 }
20935
20936 SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20937 PyObject *resultobj = 0;
20938 wxDC *arg1 = 0 ;
20939 bool arg2 ;
20940 wxMirrorDC *result = 0 ;
20941 void *argp1 = 0 ;
20942 int res1 = 0 ;
20943 bool val2 ;
20944 int ecode2 = 0 ;
20945 PyObject * obj0 = 0 ;
20946 PyObject * obj1 = 0 ;
20947 char * kwnames[] = {
20948 (char *) "dc",(char *) "mirror", NULL
20949 };
20950
20951 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
20952 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
20953 if (!SWIG_IsOK(res1)) {
20954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
20955 }
20956 if (!argp1) {
20957 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
20958 }
20959 arg1 = reinterpret_cast< wxDC * >(argp1);
20960 ecode2 = SWIG_AsVal_bool(obj1, &val2);
20961 if (!SWIG_IsOK(ecode2)) {
20962 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
20963 }
20964 arg2 = static_cast< bool >(val2);
20965 {
20966 if (!wxPyCheckForApp()) SWIG_fail;
20967 PyThreadState* __tstate = wxPyBeginAllowThreads();
20968 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
20969 wxPyEndAllowThreads(__tstate);
20970 if (PyErr_Occurred()) SWIG_fail;
20971 }
20972 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
20973 return resultobj;
20974 fail:
20975 return NULL;
20976 }
20977
20978
20979 SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20980 PyObject *obj;
20981 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20982 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
20983 return SWIG_Py_Void();
20984 }
20985
20986 SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20987 return SWIG_Python_InitShadowInstance(args);
20988 }
20989
20990 SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20991 PyObject *resultobj = 0;
20992 wxPrintData *arg1 = 0 ;
20993 wxPostScriptDC *result = 0 ;
20994 void *argp1 = 0 ;
20995 int res1 = 0 ;
20996 PyObject * obj0 = 0 ;
20997 char * kwnames[] = {
20998 (char *) "printData", NULL
20999 };
21000
21001 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
21002 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
21003 if (!SWIG_IsOK(res1)) {
21004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
21005 }
21006 if (!argp1) {
21007 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
21008 }
21009 arg1 = reinterpret_cast< wxPrintData * >(argp1);
21010 {
21011 if (!wxPyCheckForApp()) SWIG_fail;
21012 PyThreadState* __tstate = wxPyBeginAllowThreads();
21013 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
21014 wxPyEndAllowThreads(__tstate);
21015 if (PyErr_Occurred()) SWIG_fail;
21016 }
21017 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
21018 return resultobj;
21019 fail:
21020 return NULL;
21021 }
21022
21023
21024 SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21025 PyObject *resultobj = 0;
21026 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
21027 wxPrintData *result = 0 ;
21028 void *argp1 = 0 ;
21029 int res1 = 0 ;
21030 PyObject *swig_obj[1] ;
21031
21032 if (!args) SWIG_fail;
21033 swig_obj[0] = args;
21034 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
21035 if (!SWIG_IsOK(res1)) {
21036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
21037 }
21038 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
21039 {
21040 PyThreadState* __tstate = wxPyBeginAllowThreads();
21041 {
21042 wxPrintData &_result_ref = (arg1)->GetPrintData();
21043 result = (wxPrintData *) &_result_ref;
21044 }
21045 wxPyEndAllowThreads(__tstate);
21046 if (PyErr_Occurred()) SWIG_fail;
21047 }
21048 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
21049 return resultobj;
21050 fail:
21051 return NULL;
21052 }
21053
21054
21055 SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21056 PyObject *resultobj = 0;
21057 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
21058 wxPrintData *arg2 = 0 ;
21059 void *argp1 = 0 ;
21060 int res1 = 0 ;
21061 void *argp2 = 0 ;
21062 int res2 = 0 ;
21063 PyObject * obj0 = 0 ;
21064 PyObject * obj1 = 0 ;
21065 char * kwnames[] = {
21066 (char *) "self",(char *) "data", NULL
21067 };
21068
21069 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
21070 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
21071 if (!SWIG_IsOK(res1)) {
21072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
21073 }
21074 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
21075 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
21076 if (!SWIG_IsOK(res2)) {
21077 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
21078 }
21079 if (!argp2) {
21080 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
21081 }
21082 arg2 = reinterpret_cast< wxPrintData * >(argp2);
21083 {
21084 PyThreadState* __tstate = wxPyBeginAllowThreads();
21085 (arg1)->SetPrintData((wxPrintData const &)*arg2);
21086 wxPyEndAllowThreads(__tstate);
21087 if (PyErr_Occurred()) SWIG_fail;
21088 }
21089 resultobj = SWIG_Py_Void();
21090 return resultobj;
21091 fail:
21092 return NULL;
21093 }
21094
21095
21096 SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21097 PyObject *resultobj = 0;
21098 int arg1 ;
21099 int val1 ;
21100 int ecode1 = 0 ;
21101 PyObject * obj0 = 0 ;
21102 char * kwnames[] = {
21103 (char *) "ppi", NULL
21104 };
21105
21106 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
21107 ecode1 = SWIG_AsVal_int(obj0, &val1);
21108 if (!SWIG_IsOK(ecode1)) {
21109 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
21110 }
21111 arg1 = static_cast< int >(val1);
21112 {
21113 PyThreadState* __tstate = wxPyBeginAllowThreads();
21114 wxPostScriptDC::SetResolution(arg1);
21115 wxPyEndAllowThreads(__tstate);
21116 if (PyErr_Occurred()) SWIG_fail;
21117 }
21118 resultobj = SWIG_Py_Void();
21119 return resultobj;
21120 fail:
21121 return NULL;
21122 }
21123
21124
21125 SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21126 PyObject *resultobj = 0;
21127 int result;
21128
21129 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
21130 {
21131 PyThreadState* __tstate = wxPyBeginAllowThreads();
21132 result = (int)wxPostScriptDC::GetResolution();
21133 wxPyEndAllowThreads(__tstate);
21134 if (PyErr_Occurred()) SWIG_fail;
21135 }
21136 resultobj = SWIG_From_int(static_cast< int >(result));
21137 return resultobj;
21138 fail:
21139 return NULL;
21140 }
21141
21142
21143 SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21144 PyObject *obj;
21145 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21146 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
21147 return SWIG_Py_Void();
21148 }
21149
21150 SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21151 return SWIG_Python_InitShadowInstance(args);
21152 }
21153
21154 SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21155 PyObject *resultobj = 0;
21156 wxString const &arg1_defvalue = wxPyEmptyString ;
21157 wxString *arg1 = (wxString *) &arg1_defvalue ;
21158 wxMetaFile *result = 0 ;
21159 bool temp1 = false ;
21160 PyObject * obj0 = 0 ;
21161 char * kwnames[] = {
21162 (char *) "filename", NULL
21163 };
21164
21165 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
21166 if (obj0) {
21167 {
21168 arg1 = wxString_in_helper(obj0);
21169 if (arg1 == NULL) SWIG_fail;
21170 temp1 = true;
21171 }
21172 }
21173 {
21174 if (!wxPyCheckForApp()) SWIG_fail;
21175 PyThreadState* __tstate = wxPyBeginAllowThreads();
21176 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
21177 wxPyEndAllowThreads(__tstate);
21178 if (PyErr_Occurred()) SWIG_fail;
21179 }
21180 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
21181 {
21182 if (temp1)
21183 delete arg1;
21184 }
21185 return resultobj;
21186 fail:
21187 {
21188 if (temp1)
21189 delete arg1;
21190 }
21191 return NULL;
21192 }
21193
21194
21195 SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21196 PyObject *obj;
21197 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21198 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
21199 return SWIG_Py_Void();
21200 }
21201
21202 SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21203 return SWIG_Python_InitShadowInstance(args);
21204 }
21205
21206 SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21207 PyObject *resultobj = 0;
21208 wxString const &arg1_defvalue = wxPyEmptyString ;
21209 wxString *arg1 = (wxString *) &arg1_defvalue ;
21210 int arg2 = (int) 0 ;
21211 int arg3 = (int) 0 ;
21212 wxString const &arg4_defvalue = wxPyEmptyString ;
21213 wxString *arg4 = (wxString *) &arg4_defvalue ;
21214 wxMetaFileDC *result = 0 ;
21215 bool temp1 = false ;
21216 int val2 ;
21217 int ecode2 = 0 ;
21218 int val3 ;
21219 int ecode3 = 0 ;
21220 bool temp4 = false ;
21221 PyObject * obj0 = 0 ;
21222 PyObject * obj1 = 0 ;
21223 PyObject * obj2 = 0 ;
21224 PyObject * obj3 = 0 ;
21225 char * kwnames[] = {
21226 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
21227 };
21228
21229 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21230 if (obj0) {
21231 {
21232 arg1 = wxString_in_helper(obj0);
21233 if (arg1 == NULL) SWIG_fail;
21234 temp1 = true;
21235 }
21236 }
21237 if (obj1) {
21238 ecode2 = SWIG_AsVal_int(obj1, &val2);
21239 if (!SWIG_IsOK(ecode2)) {
21240 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
21241 }
21242 arg2 = static_cast< int >(val2);
21243 }
21244 if (obj2) {
21245 ecode3 = SWIG_AsVal_int(obj2, &val3);
21246 if (!SWIG_IsOK(ecode3)) {
21247 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
21248 }
21249 arg3 = static_cast< int >(val3);
21250 }
21251 if (obj3) {
21252 {
21253 arg4 = wxString_in_helper(obj3);
21254 if (arg4 == NULL) SWIG_fail;
21255 temp4 = true;
21256 }
21257 }
21258 {
21259 if (!wxPyCheckForApp()) SWIG_fail;
21260 PyThreadState* __tstate = wxPyBeginAllowThreads();
21261 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
21262 wxPyEndAllowThreads(__tstate);
21263 if (PyErr_Occurred()) SWIG_fail;
21264 }
21265 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
21266 {
21267 if (temp1)
21268 delete arg1;
21269 }
21270 {
21271 if (temp4)
21272 delete arg4;
21273 }
21274 return resultobj;
21275 fail:
21276 {
21277 if (temp1)
21278 delete arg1;
21279 }
21280 {
21281 if (temp4)
21282 delete arg4;
21283 }
21284 return NULL;
21285 }
21286
21287
21288 SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21289 PyObject *obj;
21290 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21291 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
21292 return SWIG_Py_Void();
21293 }
21294
21295 SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21296 return SWIG_Python_InitShadowInstance(args);
21297 }
21298
21299 SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21300 PyObject *resultobj = 0;
21301 wxPrintData *arg1 = 0 ;
21302 wxPrinterDC *result = 0 ;
21303 void *argp1 = 0 ;
21304 int res1 = 0 ;
21305 PyObject * obj0 = 0 ;
21306 char * kwnames[] = {
21307 (char *) "printData", NULL
21308 };
21309
21310 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
21311 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
21312 if (!SWIG_IsOK(res1)) {
21313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
21314 }
21315 if (!argp1) {
21316 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
21317 }
21318 arg1 = reinterpret_cast< wxPrintData * >(argp1);
21319 {
21320 if (!wxPyCheckForApp()) SWIG_fail;
21321 PyThreadState* __tstate = wxPyBeginAllowThreads();
21322 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
21323 wxPyEndAllowThreads(__tstate);
21324 if (PyErr_Occurred()) SWIG_fail;
21325 }
21326 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
21327 return resultobj;
21328 fail:
21329 return NULL;
21330 }
21331
21332
21333 SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21334 PyObject *obj;
21335 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21336 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
21337 return SWIG_Py_Void();
21338 }
21339
21340 SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21341 return SWIG_Python_InitShadowInstance(args);
21342 }
21343
21344 SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21345 PyObject *resultobj = 0;
21346 int arg1 ;
21347 int arg2 ;
21348 int arg3 = (int) true ;
21349 int arg4 = (int) 1 ;
21350 wxImageList *result = 0 ;
21351 int val1 ;
21352 int ecode1 = 0 ;
21353 int val2 ;
21354 int ecode2 = 0 ;
21355 int val3 ;
21356 int ecode3 = 0 ;
21357 int val4 ;
21358 int ecode4 = 0 ;
21359 PyObject * obj0 = 0 ;
21360 PyObject * obj1 = 0 ;
21361 PyObject * obj2 = 0 ;
21362 PyObject * obj3 = 0 ;
21363 char * kwnames[] = {
21364 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
21365 };
21366
21367 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21368 ecode1 = SWIG_AsVal_int(obj0, &val1);
21369 if (!SWIG_IsOK(ecode1)) {
21370 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
21371 }
21372 arg1 = static_cast< int >(val1);
21373 ecode2 = SWIG_AsVal_int(obj1, &val2);
21374 if (!SWIG_IsOK(ecode2)) {
21375 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
21376 }
21377 arg2 = static_cast< int >(val2);
21378 if (obj2) {
21379 ecode3 = SWIG_AsVal_int(obj2, &val3);
21380 if (!SWIG_IsOK(ecode3)) {
21381 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
21382 }
21383 arg3 = static_cast< int >(val3);
21384 }
21385 if (obj3) {
21386 ecode4 = SWIG_AsVal_int(obj3, &val4);
21387 if (!SWIG_IsOK(ecode4)) {
21388 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
21389 }
21390 arg4 = static_cast< int >(val4);
21391 }
21392 {
21393 if (!wxPyCheckForApp()) SWIG_fail;
21394 PyThreadState* __tstate = wxPyBeginAllowThreads();
21395 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
21396 wxPyEndAllowThreads(__tstate);
21397 if (PyErr_Occurred()) SWIG_fail;
21398 }
21399 {
21400 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW);
21401 }
21402 return resultobj;
21403 fail:
21404 return NULL;
21405 }
21406
21407
21408 SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21409 PyObject *resultobj = 0;
21410 wxImageList *arg1 = (wxImageList *) 0 ;
21411 void *argp1 = 0 ;
21412 int res1 = 0 ;
21413 PyObject *swig_obj[1] ;
21414
21415 if (!args) SWIG_fail;
21416 swig_obj[0] = args;
21417 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
21418 if (!SWIG_IsOK(res1)) {
21419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
21420 }
21421 arg1 = reinterpret_cast< wxImageList * >(argp1);
21422 {
21423 PyThreadState* __tstate = wxPyBeginAllowThreads();
21424 delete arg1;
21425
21426 wxPyEndAllowThreads(__tstate);
21427 if (PyErr_Occurred()) SWIG_fail;
21428 }
21429 resultobj = SWIG_Py_Void();
21430 return resultobj;
21431 fail:
21432 return NULL;
21433 }
21434
21435
21436 SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21437 PyObject *resultobj = 0;
21438 wxImageList *arg1 = (wxImageList *) 0 ;
21439 wxBitmap *arg2 = 0 ;
21440 wxBitmap const &arg3_defvalue = wxNullBitmap ;
21441 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
21442 int result;
21443 void *argp1 = 0 ;
21444 int res1 = 0 ;
21445 void *argp2 = 0 ;
21446 int res2 = 0 ;
21447 void *argp3 = 0 ;
21448 int res3 = 0 ;
21449 PyObject * obj0 = 0 ;
21450 PyObject * obj1 = 0 ;
21451 PyObject * obj2 = 0 ;
21452 char * kwnames[] = {
21453 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
21454 };
21455
21456 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21457 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21458 if (!SWIG_IsOK(res1)) {
21459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
21460 }
21461 arg1 = reinterpret_cast< wxImageList * >(argp1);
21462 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
21463 if (!SWIG_IsOK(res2)) {
21464 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21465 }
21466 if (!argp2) {
21467 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21468 }
21469 arg2 = reinterpret_cast< wxBitmap * >(argp2);
21470 if (obj2) {
21471 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
21472 if (!SWIG_IsOK(res3)) {
21473 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
21474 }
21475 if (!argp3) {
21476 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
21477 }
21478 arg3 = reinterpret_cast< wxBitmap * >(argp3);
21479 }
21480 {
21481 PyThreadState* __tstate = wxPyBeginAllowThreads();
21482 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
21483 wxPyEndAllowThreads(__tstate);
21484 if (PyErr_Occurred()) SWIG_fail;
21485 }
21486 resultobj = SWIG_From_int(static_cast< int >(result));
21487 return resultobj;
21488 fail:
21489 return NULL;
21490 }
21491
21492
21493 SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21494 PyObject *resultobj = 0;
21495 wxImageList *arg1 = (wxImageList *) 0 ;
21496 wxBitmap *arg2 = 0 ;
21497 wxColour *arg3 = 0 ;
21498 int result;
21499 void *argp1 = 0 ;
21500 int res1 = 0 ;
21501 void *argp2 = 0 ;
21502 int res2 = 0 ;
21503 wxColour temp3 ;
21504 PyObject * obj0 = 0 ;
21505 PyObject * obj1 = 0 ;
21506 PyObject * obj2 = 0 ;
21507 char * kwnames[] = {
21508 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
21509 };
21510
21511 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21512 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21513 if (!SWIG_IsOK(res1)) {
21514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
21515 }
21516 arg1 = reinterpret_cast< wxImageList * >(argp1);
21517 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
21518 if (!SWIG_IsOK(res2)) {
21519 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21520 }
21521 if (!argp2) {
21522 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21523 }
21524 arg2 = reinterpret_cast< wxBitmap * >(argp2);
21525 {
21526 arg3 = &temp3;
21527 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
21528 }
21529 {
21530 PyThreadState* __tstate = wxPyBeginAllowThreads();
21531 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
21532 wxPyEndAllowThreads(__tstate);
21533 if (PyErr_Occurred()) SWIG_fail;
21534 }
21535 resultobj = SWIG_From_int(static_cast< int >(result));
21536 return resultobj;
21537 fail:
21538 return NULL;
21539 }
21540
21541
21542 SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21543 PyObject *resultobj = 0;
21544 wxImageList *arg1 = (wxImageList *) 0 ;
21545 wxIcon *arg2 = 0 ;
21546 int result;
21547 void *argp1 = 0 ;
21548 int res1 = 0 ;
21549 void *argp2 = 0 ;
21550 int res2 = 0 ;
21551 PyObject * obj0 = 0 ;
21552 PyObject * obj1 = 0 ;
21553 char * kwnames[] = {
21554 (char *) "self",(char *) "icon", NULL
21555 };
21556
21557 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
21558 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21559 if (!SWIG_IsOK(res1)) {
21560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
21561 }
21562 arg1 = reinterpret_cast< wxImageList * >(argp1);
21563 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
21564 if (!SWIG_IsOK(res2)) {
21565 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
21566 }
21567 if (!argp2) {
21568 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
21569 }
21570 arg2 = reinterpret_cast< wxIcon * >(argp2);
21571 {
21572 PyThreadState* __tstate = wxPyBeginAllowThreads();
21573 result = (int)(arg1)->Add((wxIcon const &)*arg2);
21574 wxPyEndAllowThreads(__tstate);
21575 if (PyErr_Occurred()) SWIG_fail;
21576 }
21577 resultobj = SWIG_From_int(static_cast< int >(result));
21578 return resultobj;
21579 fail:
21580 return NULL;
21581 }
21582
21583
21584 SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21585 PyObject *resultobj = 0;
21586 wxImageList *arg1 = (wxImageList *) 0 ;
21587 int arg2 ;
21588 SwigValueWrapper<wxBitmap > result;
21589 void *argp1 = 0 ;
21590 int res1 = 0 ;
21591 int val2 ;
21592 int ecode2 = 0 ;
21593 PyObject * obj0 = 0 ;
21594 PyObject * obj1 = 0 ;
21595 char * kwnames[] = {
21596 (char *) "self",(char *) "index", NULL
21597 };
21598
21599 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
21600 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21601 if (!SWIG_IsOK(res1)) {
21602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
21603 }
21604 arg1 = reinterpret_cast< wxImageList * >(argp1);
21605 ecode2 = SWIG_AsVal_int(obj1, &val2);
21606 if (!SWIG_IsOK(ecode2)) {
21607 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
21608 }
21609 arg2 = static_cast< int >(val2);
21610 {
21611 PyThreadState* __tstate = wxPyBeginAllowThreads();
21612 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
21613 wxPyEndAllowThreads(__tstate);
21614 if (PyErr_Occurred()) SWIG_fail;
21615 }
21616 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
21617 return resultobj;
21618 fail:
21619 return NULL;
21620 }
21621
21622
21623 SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21624 PyObject *resultobj = 0;
21625 wxImageList *arg1 = (wxImageList *) 0 ;
21626 int arg2 ;
21627 wxIcon result;
21628 void *argp1 = 0 ;
21629 int res1 = 0 ;
21630 int val2 ;
21631 int ecode2 = 0 ;
21632 PyObject * obj0 = 0 ;
21633 PyObject * obj1 = 0 ;
21634 char * kwnames[] = {
21635 (char *) "self",(char *) "index", NULL
21636 };
21637
21638 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
21639 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21640 if (!SWIG_IsOK(res1)) {
21641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
21642 }
21643 arg1 = reinterpret_cast< wxImageList * >(argp1);
21644 ecode2 = SWIG_AsVal_int(obj1, &val2);
21645 if (!SWIG_IsOK(ecode2)) {
21646 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
21647 }
21648 arg2 = static_cast< int >(val2);
21649 {
21650 PyThreadState* __tstate = wxPyBeginAllowThreads();
21651 result = ((wxImageList const *)arg1)->GetIcon(arg2);
21652 wxPyEndAllowThreads(__tstate);
21653 if (PyErr_Occurred()) SWIG_fail;
21654 }
21655 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
21656 return resultobj;
21657 fail:
21658 return NULL;
21659 }
21660
21661
21662 SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21663 PyObject *resultobj = 0;
21664 wxImageList *arg1 = (wxImageList *) 0 ;
21665 int arg2 ;
21666 wxBitmap *arg3 = 0 ;
21667 wxBitmap const &arg4_defvalue = wxNullBitmap ;
21668 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
21669 bool result;
21670 void *argp1 = 0 ;
21671 int res1 = 0 ;
21672 int val2 ;
21673 int ecode2 = 0 ;
21674 void *argp3 = 0 ;
21675 int res3 = 0 ;
21676 void *argp4 = 0 ;
21677 int res4 = 0 ;
21678 PyObject * obj0 = 0 ;
21679 PyObject * obj1 = 0 ;
21680 PyObject * obj2 = 0 ;
21681 PyObject * obj3 = 0 ;
21682 char * kwnames[] = {
21683 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
21684 };
21685
21686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21687 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21688 if (!SWIG_IsOK(res1)) {
21689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
21690 }
21691 arg1 = reinterpret_cast< wxImageList * >(argp1);
21692 ecode2 = SWIG_AsVal_int(obj1, &val2);
21693 if (!SWIG_IsOK(ecode2)) {
21694 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
21695 }
21696 arg2 = static_cast< int >(val2);
21697 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
21698 if (!SWIG_IsOK(res3)) {
21699 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
21700 }
21701 if (!argp3) {
21702 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
21703 }
21704 arg3 = reinterpret_cast< wxBitmap * >(argp3);
21705 if (obj3) {
21706 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
21707 if (!SWIG_IsOK(res4)) {
21708 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
21709 }
21710 if (!argp4) {
21711 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
21712 }
21713 arg4 = reinterpret_cast< wxBitmap * >(argp4);
21714 }
21715 {
21716 PyThreadState* __tstate = wxPyBeginAllowThreads();
21717 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
21718 wxPyEndAllowThreads(__tstate);
21719 if (PyErr_Occurred()) SWIG_fail;
21720 }
21721 {
21722 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21723 }
21724 return resultobj;
21725 fail:
21726 return NULL;
21727 }
21728
21729
21730 SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21731 PyObject *resultobj = 0;
21732 wxImageList *arg1 = (wxImageList *) 0 ;
21733 int arg2 ;
21734 wxDC *arg3 = 0 ;
21735 int arg4 ;
21736 int arg5 ;
21737 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
21738 bool arg7 = (bool) (bool)false ;
21739 bool result;
21740 void *argp1 = 0 ;
21741 int res1 = 0 ;
21742 int val2 ;
21743 int ecode2 = 0 ;
21744 void *argp3 = 0 ;
21745 int res3 = 0 ;
21746 int val4 ;
21747 int ecode4 = 0 ;
21748 int val5 ;
21749 int ecode5 = 0 ;
21750 int val6 ;
21751 int ecode6 = 0 ;
21752 bool val7 ;
21753 int ecode7 = 0 ;
21754 PyObject * obj0 = 0 ;
21755 PyObject * obj1 = 0 ;
21756 PyObject * obj2 = 0 ;
21757 PyObject * obj3 = 0 ;
21758 PyObject * obj4 = 0 ;
21759 PyObject * obj5 = 0 ;
21760 PyObject * obj6 = 0 ;
21761 char * kwnames[] = {
21762 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
21763 };
21764
21765 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21766 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21767 if (!SWIG_IsOK(res1)) {
21768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
21769 }
21770 arg1 = reinterpret_cast< wxImageList * >(argp1);
21771 ecode2 = SWIG_AsVal_int(obj1, &val2);
21772 if (!SWIG_IsOK(ecode2)) {
21773 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
21774 }
21775 arg2 = static_cast< int >(val2);
21776 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
21777 if (!SWIG_IsOK(res3)) {
21778 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
21779 }
21780 if (!argp3) {
21781 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
21782 }
21783 arg3 = reinterpret_cast< wxDC * >(argp3);
21784 ecode4 = SWIG_AsVal_int(obj3, &val4);
21785 if (!SWIG_IsOK(ecode4)) {
21786 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
21787 }
21788 arg4 = static_cast< int >(val4);
21789 ecode5 = SWIG_AsVal_int(obj4, &val5);
21790 if (!SWIG_IsOK(ecode5)) {
21791 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
21792 }
21793 arg5 = static_cast< int >(val5);
21794 if (obj5) {
21795 ecode6 = SWIG_AsVal_int(obj5, &val6);
21796 if (!SWIG_IsOK(ecode6)) {
21797 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
21798 }
21799 arg6 = static_cast< int >(val6);
21800 }
21801 if (obj6) {
21802 ecode7 = SWIG_AsVal_bool(obj6, &val7);
21803 if (!SWIG_IsOK(ecode7)) {
21804 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
21805 }
21806 arg7 = static_cast< bool >(val7);
21807 }
21808 {
21809 PyThreadState* __tstate = wxPyBeginAllowThreads();
21810 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
21811 wxPyEndAllowThreads(__tstate);
21812 if (PyErr_Occurred()) SWIG_fail;
21813 }
21814 {
21815 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21816 }
21817 return resultobj;
21818 fail:
21819 return NULL;
21820 }
21821
21822
21823 SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21824 PyObject *resultobj = 0;
21825 wxImageList *arg1 = (wxImageList *) 0 ;
21826 int result;
21827 void *argp1 = 0 ;
21828 int res1 = 0 ;
21829 PyObject *swig_obj[1] ;
21830
21831 if (!args) SWIG_fail;
21832 swig_obj[0] = args;
21833 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21834 if (!SWIG_IsOK(res1)) {
21835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
21836 }
21837 arg1 = reinterpret_cast< wxImageList * >(argp1);
21838 {
21839 PyThreadState* __tstate = wxPyBeginAllowThreads();
21840 result = (int)(arg1)->GetImageCount();
21841 wxPyEndAllowThreads(__tstate);
21842 if (PyErr_Occurred()) SWIG_fail;
21843 }
21844 resultobj = SWIG_From_int(static_cast< int >(result));
21845 return resultobj;
21846 fail:
21847 return NULL;
21848 }
21849
21850
21851 SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21852 PyObject *resultobj = 0;
21853 wxImageList *arg1 = (wxImageList *) 0 ;
21854 int arg2 ;
21855 bool result;
21856 void *argp1 = 0 ;
21857 int res1 = 0 ;
21858 int val2 ;
21859 int ecode2 = 0 ;
21860 PyObject * obj0 = 0 ;
21861 PyObject * obj1 = 0 ;
21862 char * kwnames[] = {
21863 (char *) "self",(char *) "index", NULL
21864 };
21865
21866 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
21867 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21868 if (!SWIG_IsOK(res1)) {
21869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
21870 }
21871 arg1 = reinterpret_cast< wxImageList * >(argp1);
21872 ecode2 = SWIG_AsVal_int(obj1, &val2);
21873 if (!SWIG_IsOK(ecode2)) {
21874 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
21875 }
21876 arg2 = static_cast< int >(val2);
21877 {
21878 PyThreadState* __tstate = wxPyBeginAllowThreads();
21879 result = (bool)(arg1)->Remove(arg2);
21880 wxPyEndAllowThreads(__tstate);
21881 if (PyErr_Occurred()) SWIG_fail;
21882 }
21883 {
21884 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21885 }
21886 return resultobj;
21887 fail:
21888 return NULL;
21889 }
21890
21891
21892 SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21893 PyObject *resultobj = 0;
21894 wxImageList *arg1 = (wxImageList *) 0 ;
21895 bool result;
21896 void *argp1 = 0 ;
21897 int res1 = 0 ;
21898 PyObject *swig_obj[1] ;
21899
21900 if (!args) SWIG_fail;
21901 swig_obj[0] = args;
21902 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21903 if (!SWIG_IsOK(res1)) {
21904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
21905 }
21906 arg1 = reinterpret_cast< wxImageList * >(argp1);
21907 {
21908 PyThreadState* __tstate = wxPyBeginAllowThreads();
21909 result = (bool)(arg1)->RemoveAll();
21910 wxPyEndAllowThreads(__tstate);
21911 if (PyErr_Occurred()) SWIG_fail;
21912 }
21913 {
21914 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21915 }
21916 return resultobj;
21917 fail:
21918 return NULL;
21919 }
21920
21921
21922 SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21923 PyObject *resultobj = 0;
21924 wxImageList *arg1 = (wxImageList *) 0 ;
21925 int arg2 ;
21926 int *arg3 = 0 ;
21927 int *arg4 = 0 ;
21928 void *argp1 = 0 ;
21929 int res1 = 0 ;
21930 int val2 ;
21931 int ecode2 = 0 ;
21932 int temp3 ;
21933 int res3 = SWIG_TMPOBJ ;
21934 int temp4 ;
21935 int res4 = SWIG_TMPOBJ ;
21936 PyObject * obj0 = 0 ;
21937 PyObject * obj1 = 0 ;
21938 char * kwnames[] = {
21939 (char *) "self",(char *) "index", NULL
21940 };
21941
21942 arg3 = &temp3;
21943 arg4 = &temp4;
21944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
21945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21946 if (!SWIG_IsOK(res1)) {
21947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
21948 }
21949 arg1 = reinterpret_cast< wxImageList * >(argp1);
21950 ecode2 = SWIG_AsVal_int(obj1, &val2);
21951 if (!SWIG_IsOK(ecode2)) {
21952 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
21953 }
21954 arg2 = static_cast< int >(val2);
21955 {
21956 PyThreadState* __tstate = wxPyBeginAllowThreads();
21957 (arg1)->GetSize(arg2,*arg3,*arg4);
21958 wxPyEndAllowThreads(__tstate);
21959 if (PyErr_Occurred()) SWIG_fail;
21960 }
21961 resultobj = SWIG_Py_Void();
21962 if (SWIG_IsTmpObj(res3)) {
21963 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21964 } else {
21965 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21966 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21967 }
21968 if (SWIG_IsTmpObj(res4)) {
21969 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21970 } else {
21971 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21972 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21973 }
21974 return resultobj;
21975 fail:
21976 return NULL;
21977 }
21978
21979
21980 SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21981 PyObject *obj;
21982 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21983 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
21984 return SWIG_Py_Void();
21985 }
21986
21987 SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21988 return SWIG_Python_InitShadowInstance(args);
21989 }
21990
21991 SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21992 PyObject *resultobj = 0;
21993 wxStockGDI *result = 0 ;
21994
21995 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
21996 {
21997 PyThreadState* __tstate = wxPyBeginAllowThreads();
21998 result = (wxStockGDI *)new wxStockGDI();
21999 wxPyEndAllowThreads(__tstate);
22000 if (PyErr_Occurred()) SWIG_fail;
22001 }
22002 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
22003 return resultobj;
22004 fail:
22005 return NULL;
22006 }
22007
22008
22009 SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22010 PyObject *resultobj = 0;
22011 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
22012 void *argp1 = 0 ;
22013 int res1 = 0 ;
22014 PyObject *swig_obj[1] ;
22015
22016 if (!args) SWIG_fail;
22017 swig_obj[0] = args;
22018 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
22019 if (!SWIG_IsOK(res1)) {
22020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
22021 }
22022 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
22023 {
22024 PyThreadState* __tstate = wxPyBeginAllowThreads();
22025 delete arg1;
22026
22027 wxPyEndAllowThreads(__tstate);
22028 if (PyErr_Occurred()) SWIG_fail;
22029 }
22030 resultobj = SWIG_Py_Void();
22031 return resultobj;
22032 fail:
22033 return NULL;
22034 }
22035
22036
22037 SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22038 PyObject *resultobj = 0;
22039
22040 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
22041 {
22042 PyThreadState* __tstate = wxPyBeginAllowThreads();
22043 wxStockGDI::DeleteAll();
22044 wxPyEndAllowThreads(__tstate);
22045 if (PyErr_Occurred()) SWIG_fail;
22046 }
22047 resultobj = SWIG_Py_Void();
22048 return resultobj;
22049 fail:
22050 return NULL;
22051 }
22052
22053
22054 SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22055 PyObject *resultobj = 0;
22056 wxStockGDI *result = 0 ;
22057
22058 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
22059 {
22060 PyThreadState* __tstate = wxPyBeginAllowThreads();
22061 {
22062 wxStockGDI &_result_ref = wxStockGDI::instance();
22063 result = (wxStockGDI *) &_result_ref;
22064 }
22065 wxPyEndAllowThreads(__tstate);
22066 if (PyErr_Occurred()) SWIG_fail;
22067 }
22068 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
22069 return resultobj;
22070 fail:
22071 return NULL;
22072 }
22073
22074
22075 SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22076 PyObject *resultobj = 0;
22077 wxStockGDI::Item arg1 ;
22078 wxBrush *result = 0 ;
22079 int val1 ;
22080 int ecode1 = 0 ;
22081 PyObject * obj0 = 0 ;
22082 char * kwnames[] = {
22083 (char *) "item", NULL
22084 };
22085
22086 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
22087 ecode1 = SWIG_AsVal_int(obj0, &val1);
22088 if (!SWIG_IsOK(ecode1)) {
22089 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
22090 }
22091 arg1 = static_cast< wxStockGDI::Item >(val1);
22092 {
22093 PyThreadState* __tstate = wxPyBeginAllowThreads();
22094 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
22095 wxPyEndAllowThreads(__tstate);
22096 if (PyErr_Occurred()) SWIG_fail;
22097 }
22098 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
22099 return resultobj;
22100 fail:
22101 return NULL;
22102 }
22103
22104
22105 SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22106 PyObject *resultobj = 0;
22107 wxStockGDI::Item arg1 ;
22108 wxColour *result = 0 ;
22109 int val1 ;
22110 int ecode1 = 0 ;
22111 PyObject * obj0 = 0 ;
22112 char * kwnames[] = {
22113 (char *) "item", NULL
22114 };
22115
22116 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
22117 ecode1 = SWIG_AsVal_int(obj0, &val1);
22118 if (!SWIG_IsOK(ecode1)) {
22119 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
22120 }
22121 arg1 = static_cast< wxStockGDI::Item >(val1);
22122 {
22123 PyThreadState* __tstate = wxPyBeginAllowThreads();
22124 result = (wxColour *)wxStockGDI::GetColour(arg1);
22125 wxPyEndAllowThreads(__tstate);
22126 if (PyErr_Occurred()) SWIG_fail;
22127 }
22128 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22129 return resultobj;
22130 fail:
22131 return NULL;
22132 }
22133
22134
22135 SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22136 PyObject *resultobj = 0;
22137 wxStockGDI::Item arg1 ;
22138 wxCursor *result = 0 ;
22139 int val1 ;
22140 int ecode1 = 0 ;
22141 PyObject * obj0 = 0 ;
22142 char * kwnames[] = {
22143 (char *) "item", NULL
22144 };
22145
22146 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
22147 ecode1 = SWIG_AsVal_int(obj0, &val1);
22148 if (!SWIG_IsOK(ecode1)) {
22149 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
22150 }
22151 arg1 = static_cast< wxStockGDI::Item >(val1);
22152 {
22153 PyThreadState* __tstate = wxPyBeginAllowThreads();
22154 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
22155 wxPyEndAllowThreads(__tstate);
22156 if (PyErr_Occurred()) SWIG_fail;
22157 }
22158 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
22159 return resultobj;
22160 fail:
22161 return NULL;
22162 }
22163
22164
22165 SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22166 PyObject *resultobj = 0;
22167 wxStockGDI::Item arg1 ;
22168 wxPen *result = 0 ;
22169 int val1 ;
22170 int ecode1 = 0 ;
22171 PyObject * obj0 = 0 ;
22172 char * kwnames[] = {
22173 (char *) "item", NULL
22174 };
22175
22176 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
22177 ecode1 = SWIG_AsVal_int(obj0, &val1);
22178 if (!SWIG_IsOK(ecode1)) {
22179 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
22180 }
22181 arg1 = static_cast< wxStockGDI::Item >(val1);
22182 {
22183 PyThreadState* __tstate = wxPyBeginAllowThreads();
22184 result = (wxPen *)wxStockGDI::GetPen(arg1);
22185 wxPyEndAllowThreads(__tstate);
22186 if (PyErr_Occurred()) SWIG_fail;
22187 }
22188 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
22189 return resultobj;
22190 fail:
22191 return NULL;
22192 }
22193
22194
22195 SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22196 PyObject *resultobj = 0;
22197 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
22198 wxStockGDI::Item arg2 ;
22199 wxFont *result = 0 ;
22200 void *argp1 = 0 ;
22201 int res1 = 0 ;
22202 int val2 ;
22203 int ecode2 = 0 ;
22204 PyObject * obj0 = 0 ;
22205 PyObject * obj1 = 0 ;
22206 char * kwnames[] = {
22207 (char *) "self",(char *) "item", NULL
22208 };
22209
22210 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
22211 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
22212 if (!SWIG_IsOK(res1)) {
22213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
22214 }
22215 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
22216 ecode2 = SWIG_AsVal_int(obj1, &val2);
22217 if (!SWIG_IsOK(ecode2)) {
22218 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
22219 }
22220 arg2 = static_cast< wxStockGDI::Item >(val2);
22221 {
22222 PyThreadState* __tstate = wxPyBeginAllowThreads();
22223 result = (wxFont *)(arg1)->GetFont(arg2);
22224 wxPyEndAllowThreads(__tstate);
22225 if (PyErr_Occurred()) SWIG_fail;
22226 }
22227 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
22228 return resultobj;
22229 fail:
22230 return NULL;
22231 }
22232
22233
22234 SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22235 PyObject *obj;
22236 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22237 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
22238 return SWIG_Py_Void();
22239 }
22240
22241 SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22242 return SWIG_Python_InitShadowInstance(args);
22243 }
22244
22245 SWIGINTERN int NullBitmap_set(PyObject *) {
22246 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
22247 return 1;
22248 }
22249
22250
22251 SWIGINTERN PyObject *NullBitmap_get(void) {
22252 PyObject *pyobj = 0;
22253
22254 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
22255 return pyobj;
22256 }
22257
22258
22259 SWIGINTERN int NullIcon_set(PyObject *) {
22260 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
22261 return 1;
22262 }
22263
22264
22265 SWIGINTERN PyObject *NullIcon_get(void) {
22266 PyObject *pyobj = 0;
22267
22268 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
22269 return pyobj;
22270 }
22271
22272
22273 SWIGINTERN int NullCursor_set(PyObject *) {
22274 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
22275 return 1;
22276 }
22277
22278
22279 SWIGINTERN PyObject *NullCursor_get(void) {
22280 PyObject *pyobj = 0;
22281
22282 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
22283 return pyobj;
22284 }
22285
22286
22287 SWIGINTERN int NullPen_set(PyObject *) {
22288 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
22289 return 1;
22290 }
22291
22292
22293 SWIGINTERN PyObject *NullPen_get(void) {
22294 PyObject *pyobj = 0;
22295
22296 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
22297 return pyobj;
22298 }
22299
22300
22301 SWIGINTERN int NullBrush_set(PyObject *) {
22302 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
22303 return 1;
22304 }
22305
22306
22307 SWIGINTERN PyObject *NullBrush_get(void) {
22308 PyObject *pyobj = 0;
22309
22310 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
22311 return pyobj;
22312 }
22313
22314
22315 SWIGINTERN int NullPalette_set(PyObject *) {
22316 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
22317 return 1;
22318 }
22319
22320
22321 SWIGINTERN PyObject *NullPalette_get(void) {
22322 PyObject *pyobj = 0;
22323
22324 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
22325 return pyobj;
22326 }
22327
22328
22329 SWIGINTERN int NullFont_set(PyObject *) {
22330 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
22331 return 1;
22332 }
22333
22334
22335 SWIGINTERN PyObject *NullFont_get(void) {
22336 PyObject *pyobj = 0;
22337
22338 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
22339 return pyobj;
22340 }
22341
22342
22343 SWIGINTERN int NullColour_set(PyObject *) {
22344 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
22345 return 1;
22346 }
22347
22348
22349 SWIGINTERN PyObject *NullColour_get(void) {
22350 PyObject *pyobj = 0;
22351
22352 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
22353 return pyobj;
22354 }
22355
22356
22357 SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22358 PyObject *resultobj = 0;
22359 wxGDIObjListBase *result = 0 ;
22360
22361 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
22362 {
22363 PyThreadState* __tstate = wxPyBeginAllowThreads();
22364 result = (wxGDIObjListBase *)new wxGDIObjListBase();
22365 wxPyEndAllowThreads(__tstate);
22366 if (PyErr_Occurred()) SWIG_fail;
22367 }
22368 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
22369 return resultobj;
22370 fail:
22371 return NULL;
22372 }
22373
22374
22375 SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22376 PyObject *resultobj = 0;
22377 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
22378 void *argp1 = 0 ;
22379 int res1 = 0 ;
22380 PyObject *swig_obj[1] ;
22381
22382 if (!args) SWIG_fail;
22383 swig_obj[0] = args;
22384 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
22385 if (!SWIG_IsOK(res1)) {
22386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
22387 }
22388 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
22389 {
22390 PyThreadState* __tstate = wxPyBeginAllowThreads();
22391 delete arg1;
22392
22393 wxPyEndAllowThreads(__tstate);
22394 if (PyErr_Occurred()) SWIG_fail;
22395 }
22396 resultobj = SWIG_Py_Void();
22397 return resultobj;
22398 fail:
22399 return NULL;
22400 }
22401
22402
22403 SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22404 PyObject *obj;
22405 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22406 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
22407 return SWIG_Py_Void();
22408 }
22409
22410 SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22411 return SWIG_Python_InitShadowInstance(args);
22412 }
22413
22414 SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22415 PyObject *resultobj = 0;
22416 wxPenList *arg1 = (wxPenList *) 0 ;
22417 wxColour *arg2 = 0 ;
22418 int arg3 ;
22419 int arg4 ;
22420 wxPen *result = 0 ;
22421 void *argp1 = 0 ;
22422 int res1 = 0 ;
22423 wxColour temp2 ;
22424 int val3 ;
22425 int ecode3 = 0 ;
22426 int val4 ;
22427 int ecode4 = 0 ;
22428 PyObject * obj0 = 0 ;
22429 PyObject * obj1 = 0 ;
22430 PyObject * obj2 = 0 ;
22431 PyObject * obj3 = 0 ;
22432 char * kwnames[] = {
22433 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
22434 };
22435
22436 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22437 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
22438 if (!SWIG_IsOK(res1)) {
22439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
22440 }
22441 arg1 = reinterpret_cast< wxPenList * >(argp1);
22442 {
22443 arg2 = &temp2;
22444 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22445 }
22446 ecode3 = SWIG_AsVal_int(obj2, &val3);
22447 if (!SWIG_IsOK(ecode3)) {
22448 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
22449 }
22450 arg3 = static_cast< int >(val3);
22451 ecode4 = SWIG_AsVal_int(obj3, &val4);
22452 if (!SWIG_IsOK(ecode4)) {
22453 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
22454 }
22455 arg4 = static_cast< int >(val4);
22456 {
22457 PyThreadState* __tstate = wxPyBeginAllowThreads();
22458 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
22459 wxPyEndAllowThreads(__tstate);
22460 if (PyErr_Occurred()) SWIG_fail;
22461 }
22462 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
22463 return resultobj;
22464 fail:
22465 return NULL;
22466 }
22467
22468
22469 SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22470 PyObject *resultobj = 0;
22471 wxPenList *arg1 = (wxPenList *) 0 ;
22472 wxPen *arg2 = (wxPen *) 0 ;
22473 void *argp1 = 0 ;
22474 int res1 = 0 ;
22475 void *argp2 = 0 ;
22476 int res2 = 0 ;
22477 PyObject * obj0 = 0 ;
22478 PyObject * obj1 = 0 ;
22479 char * kwnames[] = {
22480 (char *) "self",(char *) "pen", NULL
22481 };
22482
22483 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
22484 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
22485 if (!SWIG_IsOK(res1)) {
22486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
22487 }
22488 arg1 = reinterpret_cast< wxPenList * >(argp1);
22489 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
22490 if (!SWIG_IsOK(res2)) {
22491 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
22492 }
22493 arg2 = reinterpret_cast< wxPen * >(argp2);
22494 {
22495 PyThreadState* __tstate = wxPyBeginAllowThreads();
22496 (arg1)->AddPen(arg2);
22497 wxPyEndAllowThreads(__tstate);
22498 if (PyErr_Occurred()) SWIG_fail;
22499 }
22500 resultobj = SWIG_Py_Void();
22501 return resultobj;
22502 fail:
22503 return NULL;
22504 }
22505
22506
22507 SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22508 PyObject *resultobj = 0;
22509 wxPenList *arg1 = (wxPenList *) 0 ;
22510 wxPen *arg2 = (wxPen *) 0 ;
22511 void *argp1 = 0 ;
22512 int res1 = 0 ;
22513 void *argp2 = 0 ;
22514 int res2 = 0 ;
22515 PyObject * obj0 = 0 ;
22516 PyObject * obj1 = 0 ;
22517 char * kwnames[] = {
22518 (char *) "self",(char *) "pen", NULL
22519 };
22520
22521 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
22522 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
22523 if (!SWIG_IsOK(res1)) {
22524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
22525 }
22526 arg1 = reinterpret_cast< wxPenList * >(argp1);
22527 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
22528 if (!SWIG_IsOK(res2)) {
22529 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
22530 }
22531 arg2 = reinterpret_cast< wxPen * >(argp2);
22532 {
22533 PyThreadState* __tstate = wxPyBeginAllowThreads();
22534 (arg1)->RemovePen(arg2);
22535 wxPyEndAllowThreads(__tstate);
22536 if (PyErr_Occurred()) SWIG_fail;
22537 }
22538 resultobj = SWIG_Py_Void();
22539 return resultobj;
22540 fail:
22541 return NULL;
22542 }
22543
22544
22545 SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22546 PyObject *obj;
22547 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22548 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
22549 return SWIG_Py_Void();
22550 }
22551
22552 SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22553 PyObject *resultobj = 0;
22554 wxBrushList *arg1 = (wxBrushList *) 0 ;
22555 wxColour *arg2 = 0 ;
22556 int arg3 = (int) wxSOLID ;
22557 wxBrush *result = 0 ;
22558 void *argp1 = 0 ;
22559 int res1 = 0 ;
22560 wxColour temp2 ;
22561 int val3 ;
22562 int ecode3 = 0 ;
22563 PyObject * obj0 = 0 ;
22564 PyObject * obj1 = 0 ;
22565 PyObject * obj2 = 0 ;
22566 char * kwnames[] = {
22567 (char *) "self",(char *) "colour",(char *) "style", NULL
22568 };
22569
22570 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22571 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
22572 if (!SWIG_IsOK(res1)) {
22573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
22574 }
22575 arg1 = reinterpret_cast< wxBrushList * >(argp1);
22576 {
22577 arg2 = &temp2;
22578 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22579 }
22580 if (obj2) {
22581 ecode3 = SWIG_AsVal_int(obj2, &val3);
22582 if (!SWIG_IsOK(ecode3)) {
22583 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
22584 }
22585 arg3 = static_cast< int >(val3);
22586 }
22587 {
22588 PyThreadState* __tstate = wxPyBeginAllowThreads();
22589 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
22590 wxPyEndAllowThreads(__tstate);
22591 if (PyErr_Occurred()) SWIG_fail;
22592 }
22593 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
22594 return resultobj;
22595 fail:
22596 return NULL;
22597 }
22598
22599
22600 SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22601 PyObject *resultobj = 0;
22602 wxBrushList *arg1 = (wxBrushList *) 0 ;
22603 wxBrush *arg2 = (wxBrush *) 0 ;
22604 void *argp1 = 0 ;
22605 int res1 = 0 ;
22606 void *argp2 = 0 ;
22607 int res2 = 0 ;
22608 PyObject * obj0 = 0 ;
22609 PyObject * obj1 = 0 ;
22610 char * kwnames[] = {
22611 (char *) "self",(char *) "brush", NULL
22612 };
22613
22614 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
22615 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
22616 if (!SWIG_IsOK(res1)) {
22617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
22618 }
22619 arg1 = reinterpret_cast< wxBrushList * >(argp1);
22620 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
22621 if (!SWIG_IsOK(res2)) {
22622 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
22623 }
22624 arg2 = reinterpret_cast< wxBrush * >(argp2);
22625 {
22626 PyThreadState* __tstate = wxPyBeginAllowThreads();
22627 (arg1)->AddBrush(arg2);
22628 wxPyEndAllowThreads(__tstate);
22629 if (PyErr_Occurred()) SWIG_fail;
22630 }
22631 resultobj = SWIG_Py_Void();
22632 return resultobj;
22633 fail:
22634 return NULL;
22635 }
22636
22637
22638 SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22639 PyObject *resultobj = 0;
22640 wxBrushList *arg1 = (wxBrushList *) 0 ;
22641 wxBrush *arg2 = (wxBrush *) 0 ;
22642 void *argp1 = 0 ;
22643 int res1 = 0 ;
22644 void *argp2 = 0 ;
22645 int res2 = 0 ;
22646 PyObject * obj0 = 0 ;
22647 PyObject * obj1 = 0 ;
22648 char * kwnames[] = {
22649 (char *) "self",(char *) "brush", NULL
22650 };
22651
22652 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
22653 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
22654 if (!SWIG_IsOK(res1)) {
22655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
22656 }
22657 arg1 = reinterpret_cast< wxBrushList * >(argp1);
22658 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
22659 if (!SWIG_IsOK(res2)) {
22660 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
22661 }
22662 arg2 = reinterpret_cast< wxBrush * >(argp2);
22663 {
22664 PyThreadState* __tstate = wxPyBeginAllowThreads();
22665 (arg1)->RemoveBrush(arg2);
22666 wxPyEndAllowThreads(__tstate);
22667 if (PyErr_Occurred()) SWIG_fail;
22668 }
22669 resultobj = SWIG_Py_Void();
22670 return resultobj;
22671 fail:
22672 return NULL;
22673 }
22674
22675
22676 SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22677 PyObject *obj;
22678 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22679 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
22680 return SWIG_Py_Void();
22681 }
22682
22683 SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22684 PyObject *resultobj = 0;
22685 wxFontList *arg1 = (wxFontList *) 0 ;
22686 int arg2 ;
22687 int arg3 ;
22688 int arg4 ;
22689 int arg5 ;
22690 bool arg6 = (bool) false ;
22691 wxString const &arg7_defvalue = wxPyEmptyString ;
22692 wxString *arg7 = (wxString *) &arg7_defvalue ;
22693 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
22694 wxFont *result = 0 ;
22695 void *argp1 = 0 ;
22696 int res1 = 0 ;
22697 int val2 ;
22698 int ecode2 = 0 ;
22699 int val3 ;
22700 int ecode3 = 0 ;
22701 int val4 ;
22702 int ecode4 = 0 ;
22703 int val5 ;
22704 int ecode5 = 0 ;
22705 bool val6 ;
22706 int ecode6 = 0 ;
22707 bool temp7 = false ;
22708 int val8 ;
22709 int ecode8 = 0 ;
22710 PyObject * obj0 = 0 ;
22711 PyObject * obj1 = 0 ;
22712 PyObject * obj2 = 0 ;
22713 PyObject * obj3 = 0 ;
22714 PyObject * obj4 = 0 ;
22715 PyObject * obj5 = 0 ;
22716 PyObject * obj6 = 0 ;
22717 PyObject * obj7 = 0 ;
22718 char * kwnames[] = {
22719 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
22720 };
22721
22722 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
22723 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
22724 if (!SWIG_IsOK(res1)) {
22725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
22726 }
22727 arg1 = reinterpret_cast< wxFontList * >(argp1);
22728 ecode2 = SWIG_AsVal_int(obj1, &val2);
22729 if (!SWIG_IsOK(ecode2)) {
22730 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
22731 }
22732 arg2 = static_cast< int >(val2);
22733 ecode3 = SWIG_AsVal_int(obj2, &val3);
22734 if (!SWIG_IsOK(ecode3)) {
22735 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
22736 }
22737 arg3 = static_cast< int >(val3);
22738 ecode4 = SWIG_AsVal_int(obj3, &val4);
22739 if (!SWIG_IsOK(ecode4)) {
22740 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
22741 }
22742 arg4 = static_cast< int >(val4);
22743 ecode5 = SWIG_AsVal_int(obj4, &val5);
22744 if (!SWIG_IsOK(ecode5)) {
22745 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
22746 }
22747 arg5 = static_cast< int >(val5);
22748 if (obj5) {
22749 ecode6 = SWIG_AsVal_bool(obj5, &val6);
22750 if (!SWIG_IsOK(ecode6)) {
22751 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
22752 }
22753 arg6 = static_cast< bool >(val6);
22754 }
22755 if (obj6) {
22756 {
22757 arg7 = wxString_in_helper(obj6);
22758 if (arg7 == NULL) SWIG_fail;
22759 temp7 = true;
22760 }
22761 }
22762 if (obj7) {
22763 ecode8 = SWIG_AsVal_int(obj7, &val8);
22764 if (!SWIG_IsOK(ecode8)) {
22765 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
22766 }
22767 arg8 = static_cast< wxFontEncoding >(val8);
22768 }
22769 {
22770 PyThreadState* __tstate = wxPyBeginAllowThreads();
22771 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
22772 wxPyEndAllowThreads(__tstate);
22773 if (PyErr_Occurred()) SWIG_fail;
22774 }
22775 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
22776 {
22777 if (temp7)
22778 delete arg7;
22779 }
22780 return resultobj;
22781 fail:
22782 {
22783 if (temp7)
22784 delete arg7;
22785 }
22786 return NULL;
22787 }
22788
22789
22790 SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22791 PyObject *resultobj = 0;
22792 wxFontList *arg1 = (wxFontList *) 0 ;
22793 wxFont *arg2 = (wxFont *) 0 ;
22794 void *argp1 = 0 ;
22795 int res1 = 0 ;
22796 void *argp2 = 0 ;
22797 int res2 = 0 ;
22798 PyObject * obj0 = 0 ;
22799 PyObject * obj1 = 0 ;
22800 char * kwnames[] = {
22801 (char *) "self",(char *) "font", NULL
22802 };
22803
22804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
22805 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
22806 if (!SWIG_IsOK(res1)) {
22807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
22808 }
22809 arg1 = reinterpret_cast< wxFontList * >(argp1);
22810 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
22811 if (!SWIG_IsOK(res2)) {
22812 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
22813 }
22814 arg2 = reinterpret_cast< wxFont * >(argp2);
22815 {
22816 PyThreadState* __tstate = wxPyBeginAllowThreads();
22817 (arg1)->AddFont(arg2);
22818 wxPyEndAllowThreads(__tstate);
22819 if (PyErr_Occurred()) SWIG_fail;
22820 }
22821 resultobj = SWIG_Py_Void();
22822 return resultobj;
22823 fail:
22824 return NULL;
22825 }
22826
22827
22828 SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22829 PyObject *resultobj = 0;
22830 wxFontList *arg1 = (wxFontList *) 0 ;
22831 wxFont *arg2 = (wxFont *) 0 ;
22832 void *argp1 = 0 ;
22833 int res1 = 0 ;
22834 void *argp2 = 0 ;
22835 int res2 = 0 ;
22836 PyObject * obj0 = 0 ;
22837 PyObject * obj1 = 0 ;
22838 char * kwnames[] = {
22839 (char *) "self",(char *) "font", NULL
22840 };
22841
22842 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
22843 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
22844 if (!SWIG_IsOK(res1)) {
22845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
22846 }
22847 arg1 = reinterpret_cast< wxFontList * >(argp1);
22848 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
22849 if (!SWIG_IsOK(res2)) {
22850 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
22851 }
22852 arg2 = reinterpret_cast< wxFont * >(argp2);
22853 {
22854 PyThreadState* __tstate = wxPyBeginAllowThreads();
22855 (arg1)->RemoveFont(arg2);
22856 wxPyEndAllowThreads(__tstate);
22857 if (PyErr_Occurred()) SWIG_fail;
22858 }
22859 resultobj = SWIG_Py_Void();
22860 return resultobj;
22861 fail:
22862 return NULL;
22863 }
22864
22865
22866 SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22867 PyObject *obj;
22868 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22869 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
22870 return SWIG_Py_Void();
22871 }
22872
22873 SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22874 PyObject *resultobj = 0;
22875 wxColourDatabase *result = 0 ;
22876
22877 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
22878 {
22879 if (!wxPyCheckForApp()) SWIG_fail;
22880 PyThreadState* __tstate = wxPyBeginAllowThreads();
22881 result = (wxColourDatabase *)new wxColourDatabase();
22882 wxPyEndAllowThreads(__tstate);
22883 if (PyErr_Occurred()) SWIG_fail;
22884 }
22885 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
22886 return resultobj;
22887 fail:
22888 return NULL;
22889 }
22890
22891
22892 SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22893 PyObject *resultobj = 0;
22894 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
22895 void *argp1 = 0 ;
22896 int res1 = 0 ;
22897 PyObject *swig_obj[1] ;
22898
22899 if (!args) SWIG_fail;
22900 swig_obj[0] = args;
22901 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
22902 if (!SWIG_IsOK(res1)) {
22903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
22904 }
22905 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
22906 {
22907 PyThreadState* __tstate = wxPyBeginAllowThreads();
22908 delete arg1;
22909
22910 wxPyEndAllowThreads(__tstate);
22911 if (PyErr_Occurred()) SWIG_fail;
22912 }
22913 resultobj = SWIG_Py_Void();
22914 return resultobj;
22915 fail:
22916 return NULL;
22917 }
22918
22919
22920 SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22921 PyObject *resultobj = 0;
22922 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
22923 wxString *arg2 = 0 ;
22924 wxColour result;
22925 void *argp1 = 0 ;
22926 int res1 = 0 ;
22927 bool temp2 = false ;
22928 PyObject * obj0 = 0 ;
22929 PyObject * obj1 = 0 ;
22930 char * kwnames[] = {
22931 (char *) "self",(char *) "name", NULL
22932 };
22933
22934 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
22935 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
22936 if (!SWIG_IsOK(res1)) {
22937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
22938 }
22939 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
22940 {
22941 arg2 = wxString_in_helper(obj1);
22942 if (arg2 == NULL) SWIG_fail;
22943 temp2 = true;
22944 }
22945 {
22946 PyThreadState* __tstate = wxPyBeginAllowThreads();
22947 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
22948 wxPyEndAllowThreads(__tstate);
22949 if (PyErr_Occurred()) SWIG_fail;
22950 }
22951 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
22952 {
22953 if (temp2)
22954 delete arg2;
22955 }
22956 return resultobj;
22957 fail:
22958 {
22959 if (temp2)
22960 delete arg2;
22961 }
22962 return NULL;
22963 }
22964
22965
22966 SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22967 PyObject *resultobj = 0;
22968 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
22969 wxColour *arg2 = 0 ;
22970 wxString result;
22971 void *argp1 = 0 ;
22972 int res1 = 0 ;
22973 wxColour temp2 ;
22974 PyObject * obj0 = 0 ;
22975 PyObject * obj1 = 0 ;
22976 char * kwnames[] = {
22977 (char *) "self",(char *) "colour", NULL
22978 };
22979
22980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
22981 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
22982 if (!SWIG_IsOK(res1)) {
22983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
22984 }
22985 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
22986 {
22987 arg2 = &temp2;
22988 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22989 }
22990 {
22991 PyThreadState* __tstate = wxPyBeginAllowThreads();
22992 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
22993 wxPyEndAllowThreads(__tstate);
22994 if (PyErr_Occurred()) SWIG_fail;
22995 }
22996 {
22997 #if wxUSE_UNICODE
22998 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22999 #else
23000 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23001 #endif
23002 }
23003 return resultobj;
23004 fail:
23005 return NULL;
23006 }
23007
23008
23009 SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23010 PyObject *resultobj = 0;
23011 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
23012 wxString *arg2 = 0 ;
23013 wxColour *arg3 = 0 ;
23014 void *argp1 = 0 ;
23015 int res1 = 0 ;
23016 bool temp2 = false ;
23017 wxColour temp3 ;
23018 PyObject * obj0 = 0 ;
23019 PyObject * obj1 = 0 ;
23020 PyObject * obj2 = 0 ;
23021 char * kwnames[] = {
23022 (char *) "self",(char *) "name",(char *) "colour", NULL
23023 };
23024
23025 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23026 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
23027 if (!SWIG_IsOK(res1)) {
23028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
23029 }
23030 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
23031 {
23032 arg2 = wxString_in_helper(obj1);
23033 if (arg2 == NULL) SWIG_fail;
23034 temp2 = true;
23035 }
23036 {
23037 arg3 = &temp3;
23038 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
23039 }
23040 {
23041 PyThreadState* __tstate = wxPyBeginAllowThreads();
23042 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
23043 wxPyEndAllowThreads(__tstate);
23044 if (PyErr_Occurred()) SWIG_fail;
23045 }
23046 resultobj = SWIG_Py_Void();
23047 {
23048 if (temp2)
23049 delete arg2;
23050 }
23051 return resultobj;
23052 fail:
23053 {
23054 if (temp2)
23055 delete arg2;
23056 }
23057 return NULL;
23058 }
23059
23060
23061 SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23062 PyObject *resultobj = 0;
23063 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
23064 wxString *arg2 = 0 ;
23065 int arg3 ;
23066 int arg4 ;
23067 int arg5 ;
23068 void *argp1 = 0 ;
23069 int res1 = 0 ;
23070 bool temp2 = false ;
23071 int val3 ;
23072 int ecode3 = 0 ;
23073 int val4 ;
23074 int ecode4 = 0 ;
23075 int val5 ;
23076 int ecode5 = 0 ;
23077 PyObject * obj0 = 0 ;
23078 PyObject * obj1 = 0 ;
23079 PyObject * obj2 = 0 ;
23080 PyObject * obj3 = 0 ;
23081 PyObject * obj4 = 0 ;
23082 char * kwnames[] = {
23083 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
23084 };
23085
23086 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
23087 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
23088 if (!SWIG_IsOK(res1)) {
23089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
23090 }
23091 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
23092 {
23093 arg2 = wxString_in_helper(obj1);
23094 if (arg2 == NULL) SWIG_fail;
23095 temp2 = true;
23096 }
23097 ecode3 = SWIG_AsVal_int(obj2, &val3);
23098 if (!SWIG_IsOK(ecode3)) {
23099 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
23100 }
23101 arg3 = static_cast< int >(val3);
23102 ecode4 = SWIG_AsVal_int(obj3, &val4);
23103 if (!SWIG_IsOK(ecode4)) {
23104 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
23105 }
23106 arg4 = static_cast< int >(val4);
23107 ecode5 = SWIG_AsVal_int(obj4, &val5);
23108 if (!SWIG_IsOK(ecode5)) {
23109 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
23110 }
23111 arg5 = static_cast< int >(val5);
23112 {
23113 PyThreadState* __tstate = wxPyBeginAllowThreads();
23114 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
23115 wxPyEndAllowThreads(__tstate);
23116 if (PyErr_Occurred()) SWIG_fail;
23117 }
23118 resultobj = SWIG_Py_Void();
23119 {
23120 if (temp2)
23121 delete arg2;
23122 }
23123 return resultobj;
23124 fail:
23125 {
23126 if (temp2)
23127 delete arg2;
23128 }
23129 return NULL;
23130 }
23131
23132
23133 SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23134 PyObject *obj;
23135 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23136 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
23137 return SWIG_Py_Void();
23138 }
23139
23140 SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23141 return SWIG_Python_InitShadowInstance(args);
23142 }
23143
23144 SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23145 PyObject *resultobj = 0;
23146 wxFontList *result = 0 ;
23147
23148 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
23149 {
23150 PyThreadState* __tstate = wxPyBeginAllowThreads();
23151 result = (wxFontList *)_wxPyInitTheFontList();
23152 wxPyEndAllowThreads(__tstate);
23153 if (PyErr_Occurred()) SWIG_fail;
23154 }
23155 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
23156 return resultobj;
23157 fail:
23158 return NULL;
23159 }
23160
23161
23162 SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23163 PyObject *resultobj = 0;
23164 wxPenList *result = 0 ;
23165
23166 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
23167 {
23168 PyThreadState* __tstate = wxPyBeginAllowThreads();
23169 result = (wxPenList *)_wxPyInitThePenList();
23170 wxPyEndAllowThreads(__tstate);
23171 if (PyErr_Occurred()) SWIG_fail;
23172 }
23173 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
23174 return resultobj;
23175 fail:
23176 return NULL;
23177 }
23178
23179
23180 SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23181 PyObject *resultobj = 0;
23182 wxBrushList *result = 0 ;
23183
23184 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
23185 {
23186 PyThreadState* __tstate = wxPyBeginAllowThreads();
23187 result = (wxBrushList *)_wxPyInitTheBrushList();
23188 wxPyEndAllowThreads(__tstate);
23189 if (PyErr_Occurred()) SWIG_fail;
23190 }
23191 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
23192 return resultobj;
23193 fail:
23194 return NULL;
23195 }
23196
23197
23198 SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23199 PyObject *resultobj = 0;
23200 wxColourDatabase *result = 0 ;
23201
23202 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
23203 {
23204 PyThreadState* __tstate = wxPyBeginAllowThreads();
23205 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
23206 wxPyEndAllowThreads(__tstate);
23207 if (PyErr_Occurred()) SWIG_fail;
23208 }
23209 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
23210 return resultobj;
23211 fail:
23212 return NULL;
23213 }
23214
23215
23216 SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23217 PyObject *resultobj = 0;
23218 wxEffects *result = 0 ;
23219
23220 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
23221 {
23222 PyThreadState* __tstate = wxPyBeginAllowThreads();
23223 result = (wxEffects *)new wxEffects();
23224 wxPyEndAllowThreads(__tstate);
23225 if (PyErr_Occurred()) SWIG_fail;
23226 }
23227 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
23228 return resultobj;
23229 fail:
23230 return NULL;
23231 }
23232
23233
23234 SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23235 PyObject *resultobj = 0;
23236 wxEffects *arg1 = (wxEffects *) 0 ;
23237 wxColour result;
23238 void *argp1 = 0 ;
23239 int res1 = 0 ;
23240 PyObject *swig_obj[1] ;
23241
23242 if (!args) SWIG_fail;
23243 swig_obj[0] = args;
23244 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23245 if (!SWIG_IsOK(res1)) {
23246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
23247 }
23248 arg1 = reinterpret_cast< wxEffects * >(argp1);
23249 {
23250 PyThreadState* __tstate = wxPyBeginAllowThreads();
23251 result = ((wxEffects const *)arg1)->GetHighlightColour();
23252 wxPyEndAllowThreads(__tstate);
23253 if (PyErr_Occurred()) SWIG_fail;
23254 }
23255 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
23256 return resultobj;
23257 fail:
23258 return NULL;
23259 }
23260
23261
23262 SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23263 PyObject *resultobj = 0;
23264 wxEffects *arg1 = (wxEffects *) 0 ;
23265 wxColour result;
23266 void *argp1 = 0 ;
23267 int res1 = 0 ;
23268 PyObject *swig_obj[1] ;
23269
23270 if (!args) SWIG_fail;
23271 swig_obj[0] = args;
23272 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23273 if (!SWIG_IsOK(res1)) {
23274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
23275 }
23276 arg1 = reinterpret_cast< wxEffects * >(argp1);
23277 {
23278 PyThreadState* __tstate = wxPyBeginAllowThreads();
23279 result = ((wxEffects const *)arg1)->GetLightShadow();
23280 wxPyEndAllowThreads(__tstate);
23281 if (PyErr_Occurred()) SWIG_fail;
23282 }
23283 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
23284 return resultobj;
23285 fail:
23286 return NULL;
23287 }
23288
23289
23290 SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23291 PyObject *resultobj = 0;
23292 wxEffects *arg1 = (wxEffects *) 0 ;
23293 wxColour result;
23294 void *argp1 = 0 ;
23295 int res1 = 0 ;
23296 PyObject *swig_obj[1] ;
23297
23298 if (!args) SWIG_fail;
23299 swig_obj[0] = args;
23300 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23301 if (!SWIG_IsOK(res1)) {
23302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
23303 }
23304 arg1 = reinterpret_cast< wxEffects * >(argp1);
23305 {
23306 PyThreadState* __tstate = wxPyBeginAllowThreads();
23307 result = ((wxEffects const *)arg1)->GetFaceColour();
23308 wxPyEndAllowThreads(__tstate);
23309 if (PyErr_Occurred()) SWIG_fail;
23310 }
23311 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
23312 return resultobj;
23313 fail:
23314 return NULL;
23315 }
23316
23317
23318 SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23319 PyObject *resultobj = 0;
23320 wxEffects *arg1 = (wxEffects *) 0 ;
23321 wxColour result;
23322 void *argp1 = 0 ;
23323 int res1 = 0 ;
23324 PyObject *swig_obj[1] ;
23325
23326 if (!args) SWIG_fail;
23327 swig_obj[0] = args;
23328 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23329 if (!SWIG_IsOK(res1)) {
23330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
23331 }
23332 arg1 = reinterpret_cast< wxEffects * >(argp1);
23333 {
23334 PyThreadState* __tstate = wxPyBeginAllowThreads();
23335 result = ((wxEffects const *)arg1)->GetMediumShadow();
23336 wxPyEndAllowThreads(__tstate);
23337 if (PyErr_Occurred()) SWIG_fail;
23338 }
23339 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
23340 return resultobj;
23341 fail:
23342 return NULL;
23343 }
23344
23345
23346 SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23347 PyObject *resultobj = 0;
23348 wxEffects *arg1 = (wxEffects *) 0 ;
23349 wxColour result;
23350 void *argp1 = 0 ;
23351 int res1 = 0 ;
23352 PyObject *swig_obj[1] ;
23353
23354 if (!args) SWIG_fail;
23355 swig_obj[0] = args;
23356 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23357 if (!SWIG_IsOK(res1)) {
23358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
23359 }
23360 arg1 = reinterpret_cast< wxEffects * >(argp1);
23361 {
23362 PyThreadState* __tstate = wxPyBeginAllowThreads();
23363 result = ((wxEffects const *)arg1)->GetDarkShadow();
23364 wxPyEndAllowThreads(__tstate);
23365 if (PyErr_Occurred()) SWIG_fail;
23366 }
23367 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
23368 return resultobj;
23369 fail:
23370 return NULL;
23371 }
23372
23373
23374 SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23375 PyObject *resultobj = 0;
23376 wxEffects *arg1 = (wxEffects *) 0 ;
23377 wxColour *arg2 = 0 ;
23378 void *argp1 = 0 ;
23379 int res1 = 0 ;
23380 wxColour temp2 ;
23381 PyObject * obj0 = 0 ;
23382 PyObject * obj1 = 0 ;
23383 char * kwnames[] = {
23384 (char *) "self",(char *) "c", NULL
23385 };
23386
23387 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
23388 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23389 if (!SWIG_IsOK(res1)) {
23390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
23391 }
23392 arg1 = reinterpret_cast< wxEffects * >(argp1);
23393 {
23394 arg2 = &temp2;
23395 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23396 }
23397 {
23398 PyThreadState* __tstate = wxPyBeginAllowThreads();
23399 (arg1)->SetHighlightColour((wxColour const &)*arg2);
23400 wxPyEndAllowThreads(__tstate);
23401 if (PyErr_Occurred()) SWIG_fail;
23402 }
23403 resultobj = SWIG_Py_Void();
23404 return resultobj;
23405 fail:
23406 return NULL;
23407 }
23408
23409
23410 SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23411 PyObject *resultobj = 0;
23412 wxEffects *arg1 = (wxEffects *) 0 ;
23413 wxColour *arg2 = 0 ;
23414 void *argp1 = 0 ;
23415 int res1 = 0 ;
23416 wxColour temp2 ;
23417 PyObject * obj0 = 0 ;
23418 PyObject * obj1 = 0 ;
23419 char * kwnames[] = {
23420 (char *) "self",(char *) "c", NULL
23421 };
23422
23423 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
23424 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23425 if (!SWIG_IsOK(res1)) {
23426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
23427 }
23428 arg1 = reinterpret_cast< wxEffects * >(argp1);
23429 {
23430 arg2 = &temp2;
23431 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23432 }
23433 {
23434 PyThreadState* __tstate = wxPyBeginAllowThreads();
23435 (arg1)->SetLightShadow((wxColour const &)*arg2);
23436 wxPyEndAllowThreads(__tstate);
23437 if (PyErr_Occurred()) SWIG_fail;
23438 }
23439 resultobj = SWIG_Py_Void();
23440 return resultobj;
23441 fail:
23442 return NULL;
23443 }
23444
23445
23446 SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23447 PyObject *resultobj = 0;
23448 wxEffects *arg1 = (wxEffects *) 0 ;
23449 wxColour *arg2 = 0 ;
23450 void *argp1 = 0 ;
23451 int res1 = 0 ;
23452 wxColour temp2 ;
23453 PyObject * obj0 = 0 ;
23454 PyObject * obj1 = 0 ;
23455 char * kwnames[] = {
23456 (char *) "self",(char *) "c", NULL
23457 };
23458
23459 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
23460 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23461 if (!SWIG_IsOK(res1)) {
23462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
23463 }
23464 arg1 = reinterpret_cast< wxEffects * >(argp1);
23465 {
23466 arg2 = &temp2;
23467 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23468 }
23469 {
23470 PyThreadState* __tstate = wxPyBeginAllowThreads();
23471 (arg1)->SetFaceColour((wxColour const &)*arg2);
23472 wxPyEndAllowThreads(__tstate);
23473 if (PyErr_Occurred()) SWIG_fail;
23474 }
23475 resultobj = SWIG_Py_Void();
23476 return resultobj;
23477 fail:
23478 return NULL;
23479 }
23480
23481
23482 SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23483 PyObject *resultobj = 0;
23484 wxEffects *arg1 = (wxEffects *) 0 ;
23485 wxColour *arg2 = 0 ;
23486 void *argp1 = 0 ;
23487 int res1 = 0 ;
23488 wxColour temp2 ;
23489 PyObject * obj0 = 0 ;
23490 PyObject * obj1 = 0 ;
23491 char * kwnames[] = {
23492 (char *) "self",(char *) "c", NULL
23493 };
23494
23495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
23496 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23497 if (!SWIG_IsOK(res1)) {
23498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
23499 }
23500 arg1 = reinterpret_cast< wxEffects * >(argp1);
23501 {
23502 arg2 = &temp2;
23503 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23504 }
23505 {
23506 PyThreadState* __tstate = wxPyBeginAllowThreads();
23507 (arg1)->SetMediumShadow((wxColour const &)*arg2);
23508 wxPyEndAllowThreads(__tstate);
23509 if (PyErr_Occurred()) SWIG_fail;
23510 }
23511 resultobj = SWIG_Py_Void();
23512 return resultobj;
23513 fail:
23514 return NULL;
23515 }
23516
23517
23518 SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23519 PyObject *resultobj = 0;
23520 wxEffects *arg1 = (wxEffects *) 0 ;
23521 wxColour *arg2 = 0 ;
23522 void *argp1 = 0 ;
23523 int res1 = 0 ;
23524 wxColour temp2 ;
23525 PyObject * obj0 = 0 ;
23526 PyObject * obj1 = 0 ;
23527 char * kwnames[] = {
23528 (char *) "self",(char *) "c", NULL
23529 };
23530
23531 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
23532 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23533 if (!SWIG_IsOK(res1)) {
23534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
23535 }
23536 arg1 = reinterpret_cast< wxEffects * >(argp1);
23537 {
23538 arg2 = &temp2;
23539 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23540 }
23541 {
23542 PyThreadState* __tstate = wxPyBeginAllowThreads();
23543 (arg1)->SetDarkShadow((wxColour const &)*arg2);
23544 wxPyEndAllowThreads(__tstate);
23545 if (PyErr_Occurred()) SWIG_fail;
23546 }
23547 resultobj = SWIG_Py_Void();
23548 return resultobj;
23549 fail:
23550 return NULL;
23551 }
23552
23553
23554 SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23555 PyObject *resultobj = 0;
23556 wxEffects *arg1 = (wxEffects *) 0 ;
23557 wxColour *arg2 = 0 ;
23558 wxColour *arg3 = 0 ;
23559 wxColour *arg4 = 0 ;
23560 wxColour *arg5 = 0 ;
23561 wxColour *arg6 = 0 ;
23562 void *argp1 = 0 ;
23563 int res1 = 0 ;
23564 wxColour temp2 ;
23565 wxColour temp3 ;
23566 wxColour temp4 ;
23567 wxColour temp5 ;
23568 wxColour temp6 ;
23569 PyObject * obj0 = 0 ;
23570 PyObject * obj1 = 0 ;
23571 PyObject * obj2 = 0 ;
23572 PyObject * obj3 = 0 ;
23573 PyObject * obj4 = 0 ;
23574 PyObject * obj5 = 0 ;
23575 char * kwnames[] = {
23576 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
23577 };
23578
23579 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
23580 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23581 if (!SWIG_IsOK(res1)) {
23582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
23583 }
23584 arg1 = reinterpret_cast< wxEffects * >(argp1);
23585 {
23586 arg2 = &temp2;
23587 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23588 }
23589 {
23590 arg3 = &temp3;
23591 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
23592 }
23593 {
23594 arg4 = &temp4;
23595 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
23596 }
23597 {
23598 arg5 = &temp5;
23599 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
23600 }
23601 {
23602 arg6 = &temp6;
23603 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
23604 }
23605 {
23606 PyThreadState* __tstate = wxPyBeginAllowThreads();
23607 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
23608 wxPyEndAllowThreads(__tstate);
23609 if (PyErr_Occurred()) SWIG_fail;
23610 }
23611 resultobj = SWIG_Py_Void();
23612 return resultobj;
23613 fail:
23614 return NULL;
23615 }
23616
23617
23618 SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23619 PyObject *resultobj = 0;
23620 wxEffects *arg1 = (wxEffects *) 0 ;
23621 wxDC *arg2 = 0 ;
23622 wxRect *arg3 = 0 ;
23623 int arg4 = (int) 1 ;
23624 void *argp1 = 0 ;
23625 int res1 = 0 ;
23626 void *argp2 = 0 ;
23627 int res2 = 0 ;
23628 wxRect temp3 ;
23629 int val4 ;
23630 int ecode4 = 0 ;
23631 PyObject * obj0 = 0 ;
23632 PyObject * obj1 = 0 ;
23633 PyObject * obj2 = 0 ;
23634 PyObject * obj3 = 0 ;
23635 char * kwnames[] = {
23636 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
23637 };
23638
23639 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23640 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23641 if (!SWIG_IsOK(res1)) {
23642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
23643 }
23644 arg1 = reinterpret_cast< wxEffects * >(argp1);
23645 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
23646 if (!SWIG_IsOK(res2)) {
23647 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
23648 }
23649 if (!argp2) {
23650 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
23651 }
23652 arg2 = reinterpret_cast< wxDC * >(argp2);
23653 {
23654 arg3 = &temp3;
23655 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
23656 }
23657 if (obj3) {
23658 ecode4 = SWIG_AsVal_int(obj3, &val4);
23659 if (!SWIG_IsOK(ecode4)) {
23660 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
23661 }
23662 arg4 = static_cast< int >(val4);
23663 }
23664 {
23665 PyThreadState* __tstate = wxPyBeginAllowThreads();
23666 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
23667 wxPyEndAllowThreads(__tstate);
23668 if (PyErr_Occurred()) SWIG_fail;
23669 }
23670 resultobj = SWIG_Py_Void();
23671 return resultobj;
23672 fail:
23673 return NULL;
23674 }
23675
23676
23677 SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23678 PyObject *resultobj = 0;
23679 wxEffects *arg1 = (wxEffects *) 0 ;
23680 wxRect *arg2 = 0 ;
23681 wxDC *arg3 = 0 ;
23682 wxBitmap *arg4 = 0 ;
23683 bool result;
23684 void *argp1 = 0 ;
23685 int res1 = 0 ;
23686 wxRect temp2 ;
23687 void *argp3 = 0 ;
23688 int res3 = 0 ;
23689 void *argp4 = 0 ;
23690 int res4 = 0 ;
23691 PyObject * obj0 = 0 ;
23692 PyObject * obj1 = 0 ;
23693 PyObject * obj2 = 0 ;
23694 PyObject * obj3 = 0 ;
23695 char * kwnames[] = {
23696 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
23697 };
23698
23699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23700 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23701 if (!SWIG_IsOK(res1)) {
23702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
23703 }
23704 arg1 = reinterpret_cast< wxEffects * >(argp1);
23705 {
23706 arg2 = &temp2;
23707 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
23708 }
23709 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
23710 if (!SWIG_IsOK(res3)) {
23711 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
23712 }
23713 if (!argp3) {
23714 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
23715 }
23716 arg3 = reinterpret_cast< wxDC * >(argp3);
23717 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
23718 if (!SWIG_IsOK(res4)) {
23719 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
23720 }
23721 if (!argp4) {
23722 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
23723 }
23724 arg4 = reinterpret_cast< wxBitmap * >(argp4);
23725 {
23726 PyThreadState* __tstate = wxPyBeginAllowThreads();
23727 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
23728 wxPyEndAllowThreads(__tstate);
23729 if (PyErr_Occurred()) SWIG_fail;
23730 }
23731 {
23732 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23733 }
23734 return resultobj;
23735 fail:
23736 return NULL;
23737 }
23738
23739
23740 SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23741 PyObject *obj;
23742 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23743 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
23744 return SWIG_Py_Void();
23745 }
23746
23747 SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23748 return SWIG_Python_InitShadowInstance(args);
23749 }
23750
23751 SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23752 PyObject *resultobj = 0;
23753 int arg1 ;
23754 int arg2 ;
23755 bool arg3 ;
23756 wxSplitterRenderParams *result = 0 ;
23757 int val1 ;
23758 int ecode1 = 0 ;
23759 int val2 ;
23760 int ecode2 = 0 ;
23761 bool val3 ;
23762 int ecode3 = 0 ;
23763 PyObject * obj0 = 0 ;
23764 PyObject * obj1 = 0 ;
23765 PyObject * obj2 = 0 ;
23766 char * kwnames[] = {
23767 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
23768 };
23769
23770 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23771 ecode1 = SWIG_AsVal_int(obj0, &val1);
23772 if (!SWIG_IsOK(ecode1)) {
23773 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
23774 }
23775 arg1 = static_cast< int >(val1);
23776 ecode2 = SWIG_AsVal_int(obj1, &val2);
23777 if (!SWIG_IsOK(ecode2)) {
23778 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
23779 }
23780 arg2 = static_cast< int >(val2);
23781 ecode3 = SWIG_AsVal_bool(obj2, &val3);
23782 if (!SWIG_IsOK(ecode3)) {
23783 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
23784 }
23785 arg3 = static_cast< bool >(val3);
23786 {
23787 PyThreadState* __tstate = wxPyBeginAllowThreads();
23788 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
23789 wxPyEndAllowThreads(__tstate);
23790 if (PyErr_Occurred()) SWIG_fail;
23791 }
23792 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
23793 return resultobj;
23794 fail:
23795 return NULL;
23796 }
23797
23798
23799 SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23800 PyObject *resultobj = 0;
23801 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
23802 void *argp1 = 0 ;
23803 int res1 = 0 ;
23804 PyObject *swig_obj[1] ;
23805
23806 if (!args) SWIG_fail;
23807 swig_obj[0] = args;
23808 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
23809 if (!SWIG_IsOK(res1)) {
23810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
23811 }
23812 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
23813 {
23814 PyThreadState* __tstate = wxPyBeginAllowThreads();
23815 delete arg1;
23816
23817 wxPyEndAllowThreads(__tstate);
23818 if (PyErr_Occurred()) SWIG_fail;
23819 }
23820 resultobj = SWIG_Py_Void();
23821 return resultobj;
23822 fail:
23823 return NULL;
23824 }
23825
23826
23827 SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23828 PyObject *resultobj = 0;
23829 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
23830 int result;
23831 void *argp1 = 0 ;
23832 int res1 = 0 ;
23833 PyObject *swig_obj[1] ;
23834
23835 if (!args) SWIG_fail;
23836 swig_obj[0] = args;
23837 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
23838 if (!SWIG_IsOK(res1)) {
23839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
23840 }
23841 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
23842 result = (int)(int) ((arg1)->widthSash);
23843 resultobj = SWIG_From_int(static_cast< int >(result));
23844 return resultobj;
23845 fail:
23846 return NULL;
23847 }
23848
23849
23850 SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23851 PyObject *resultobj = 0;
23852 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
23853 int result;
23854 void *argp1 = 0 ;
23855 int res1 = 0 ;
23856 PyObject *swig_obj[1] ;
23857
23858 if (!args) SWIG_fail;
23859 swig_obj[0] = args;
23860 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
23861 if (!SWIG_IsOK(res1)) {
23862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
23863 }
23864 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
23865 result = (int)(int) ((arg1)->border);
23866 resultobj = SWIG_From_int(static_cast< int >(result));
23867 return resultobj;
23868 fail:
23869 return NULL;
23870 }
23871
23872
23873 SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23874 PyObject *resultobj = 0;
23875 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
23876 bool result;
23877 void *argp1 = 0 ;
23878 int res1 = 0 ;
23879 PyObject *swig_obj[1] ;
23880
23881 if (!args) SWIG_fail;
23882 swig_obj[0] = args;
23883 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
23884 if (!SWIG_IsOK(res1)) {
23885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
23886 }
23887 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
23888 result = (bool)(bool) ((arg1)->isHotSensitive);
23889 resultobj = SWIG_From_bool(static_cast< bool >(result));
23890 return resultobj;
23891 fail:
23892 return NULL;
23893 }
23894
23895
23896 SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23897 PyObject *obj;
23898 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23899 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
23900 return SWIG_Py_Void();
23901 }
23902
23903 SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23904 return SWIG_Python_InitShadowInstance(args);
23905 }
23906
23907 SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23908 PyObject *resultobj = 0;
23909 int arg1 ;
23910 int arg2 ;
23911 wxRendererVersion *result = 0 ;
23912 int val1 ;
23913 int ecode1 = 0 ;
23914 int val2 ;
23915 int ecode2 = 0 ;
23916 PyObject * obj0 = 0 ;
23917 PyObject * obj1 = 0 ;
23918 char * kwnames[] = {
23919 (char *) "version_",(char *) "age_", NULL
23920 };
23921
23922 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
23923 ecode1 = SWIG_AsVal_int(obj0, &val1);
23924 if (!SWIG_IsOK(ecode1)) {
23925 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
23926 }
23927 arg1 = static_cast< int >(val1);
23928 ecode2 = SWIG_AsVal_int(obj1, &val2);
23929 if (!SWIG_IsOK(ecode2)) {
23930 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
23931 }
23932 arg2 = static_cast< int >(val2);
23933 {
23934 PyThreadState* __tstate = wxPyBeginAllowThreads();
23935 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
23936 wxPyEndAllowThreads(__tstate);
23937 if (PyErr_Occurred()) SWIG_fail;
23938 }
23939 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
23940 return resultobj;
23941 fail:
23942 return NULL;
23943 }
23944
23945
23946 SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23947 PyObject *resultobj = 0;
23948 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
23949 void *argp1 = 0 ;
23950 int res1 = 0 ;
23951 PyObject *swig_obj[1] ;
23952
23953 if (!args) SWIG_fail;
23954 swig_obj[0] = args;
23955 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
23956 if (!SWIG_IsOK(res1)) {
23957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
23958 }
23959 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
23960 {
23961 PyThreadState* __tstate = wxPyBeginAllowThreads();
23962 delete arg1;
23963
23964 wxPyEndAllowThreads(__tstate);
23965 if (PyErr_Occurred()) SWIG_fail;
23966 }
23967 resultobj = SWIG_Py_Void();
23968 return resultobj;
23969 fail:
23970 return NULL;
23971 }
23972
23973
23974 SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23975 PyObject *resultobj = 0;
23976 wxRendererVersion *arg1 = 0 ;
23977 bool result;
23978 void *argp1 = 0 ;
23979 int res1 = 0 ;
23980 PyObject * obj0 = 0 ;
23981 char * kwnames[] = {
23982 (char *) "ver", NULL
23983 };
23984
23985 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
23986 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
23987 if (!SWIG_IsOK(res1)) {
23988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
23989 }
23990 if (!argp1) {
23991 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
23992 }
23993 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
23994 {
23995 PyThreadState* __tstate = wxPyBeginAllowThreads();
23996 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
23997 wxPyEndAllowThreads(__tstate);
23998 if (PyErr_Occurred()) SWIG_fail;
23999 }
24000 {
24001 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24002 }
24003 return resultobj;
24004 fail:
24005 return NULL;
24006 }
24007
24008
24009 SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24010 PyObject *resultobj = 0;
24011 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
24012 int result;
24013 void *argp1 = 0 ;
24014 int res1 = 0 ;
24015 PyObject *swig_obj[1] ;
24016
24017 if (!args) SWIG_fail;
24018 swig_obj[0] = args;
24019 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
24020 if (!SWIG_IsOK(res1)) {
24021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
24022 }
24023 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
24024 result = (int)(int) ((arg1)->version);
24025 resultobj = SWIG_From_int(static_cast< int >(result));
24026 return resultobj;
24027 fail:
24028 return NULL;
24029 }
24030
24031
24032 SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24033 PyObject *resultobj = 0;
24034 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
24035 int result;
24036 void *argp1 = 0 ;
24037 int res1 = 0 ;
24038 PyObject *swig_obj[1] ;
24039
24040 if (!args) SWIG_fail;
24041 swig_obj[0] = args;
24042 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
24043 if (!SWIG_IsOK(res1)) {
24044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
24045 }
24046 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
24047 result = (int)(int) ((arg1)->age);
24048 resultobj = SWIG_From_int(static_cast< int >(result));
24049 return resultobj;
24050 fail:
24051 return NULL;
24052 }
24053
24054
24055 SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24056 PyObject *obj;
24057 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24058 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
24059 return SWIG_Py_Void();
24060 }
24061
24062 SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24063 return SWIG_Python_InitShadowInstance(args);
24064 }
24065
24066 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24067 PyObject *resultobj = 0;
24068 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24069 wxWindow *arg2 = (wxWindow *) 0 ;
24070 wxDC *arg3 = 0 ;
24071 wxRect *arg4 = 0 ;
24072 int arg5 = (int) 0 ;
24073 void *argp1 = 0 ;
24074 int res1 = 0 ;
24075 void *argp2 = 0 ;
24076 int res2 = 0 ;
24077 void *argp3 = 0 ;
24078 int res3 = 0 ;
24079 wxRect temp4 ;
24080 int val5 ;
24081 int ecode5 = 0 ;
24082 PyObject * obj0 = 0 ;
24083 PyObject * obj1 = 0 ;
24084 PyObject * obj2 = 0 ;
24085 PyObject * obj3 = 0 ;
24086 PyObject * obj4 = 0 ;
24087 char * kwnames[] = {
24088 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24089 };
24090
24091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24093 if (!SWIG_IsOK(res1)) {
24094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24095 }
24096 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24097 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24098 if (!SWIG_IsOK(res2)) {
24099 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
24100 }
24101 arg2 = reinterpret_cast< wxWindow * >(argp2);
24102 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24103 if (!SWIG_IsOK(res3)) {
24104 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
24105 }
24106 if (!argp3) {
24107 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
24108 }
24109 arg3 = reinterpret_cast< wxDC * >(argp3);
24110 {
24111 arg4 = &temp4;
24112 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24113 }
24114 if (obj4) {
24115 ecode5 = SWIG_AsVal_int(obj4, &val5);
24116 if (!SWIG_IsOK(ecode5)) {
24117 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
24118 }
24119 arg5 = static_cast< int >(val5);
24120 }
24121 {
24122 PyThreadState* __tstate = wxPyBeginAllowThreads();
24123 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
24124 wxPyEndAllowThreads(__tstate);
24125 if (PyErr_Occurred()) SWIG_fail;
24126 }
24127 resultobj = SWIG_Py_Void();
24128 return resultobj;
24129 fail:
24130 return NULL;
24131 }
24132
24133
24134 SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24135 PyObject *resultobj = 0;
24136 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24137 wxWindow *arg2 = (wxWindow *) 0 ;
24138 wxDC *arg3 = 0 ;
24139 wxRect *arg4 = 0 ;
24140 int arg5 = (int) 0 ;
24141 void *argp1 = 0 ;
24142 int res1 = 0 ;
24143 void *argp2 = 0 ;
24144 int res2 = 0 ;
24145 void *argp3 = 0 ;
24146 int res3 = 0 ;
24147 wxRect temp4 ;
24148 int val5 ;
24149 int ecode5 = 0 ;
24150 PyObject * obj0 = 0 ;
24151 PyObject * obj1 = 0 ;
24152 PyObject * obj2 = 0 ;
24153 PyObject * obj3 = 0 ;
24154 PyObject * obj4 = 0 ;
24155 char * kwnames[] = {
24156 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24157 };
24158
24159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24160 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24161 if (!SWIG_IsOK(res1)) {
24162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24163 }
24164 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24165 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24166 if (!SWIG_IsOK(res2)) {
24167 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
24168 }
24169 arg2 = reinterpret_cast< wxWindow * >(argp2);
24170 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24171 if (!SWIG_IsOK(res3)) {
24172 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
24173 }
24174 if (!argp3) {
24175 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
24176 }
24177 arg3 = reinterpret_cast< wxDC * >(argp3);
24178 {
24179 arg4 = &temp4;
24180 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24181 }
24182 if (obj4) {
24183 ecode5 = SWIG_AsVal_int(obj4, &val5);
24184 if (!SWIG_IsOK(ecode5)) {
24185 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
24186 }
24187 arg5 = static_cast< int >(val5);
24188 }
24189 {
24190 PyThreadState* __tstate = wxPyBeginAllowThreads();
24191 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
24192 wxPyEndAllowThreads(__tstate);
24193 if (PyErr_Occurred()) SWIG_fail;
24194 }
24195 resultobj = SWIG_Py_Void();
24196 return resultobj;
24197 fail:
24198 return NULL;
24199 }
24200
24201
24202 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24203 PyObject *resultobj = 0;
24204 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24205 wxWindow *arg2 = (wxWindow *) 0 ;
24206 wxDC *arg3 = 0 ;
24207 wxRect *arg4 = 0 ;
24208 int arg5 = (int) 0 ;
24209 void *argp1 = 0 ;
24210 int res1 = 0 ;
24211 void *argp2 = 0 ;
24212 int res2 = 0 ;
24213 void *argp3 = 0 ;
24214 int res3 = 0 ;
24215 wxRect temp4 ;
24216 int val5 ;
24217 int ecode5 = 0 ;
24218 PyObject * obj0 = 0 ;
24219 PyObject * obj1 = 0 ;
24220 PyObject * obj2 = 0 ;
24221 PyObject * obj3 = 0 ;
24222 PyObject * obj4 = 0 ;
24223 char * kwnames[] = {
24224 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24225 };
24226
24227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24228 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24229 if (!SWIG_IsOK(res1)) {
24230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24231 }
24232 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24233 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24234 if (!SWIG_IsOK(res2)) {
24235 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
24236 }
24237 arg2 = reinterpret_cast< wxWindow * >(argp2);
24238 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24239 if (!SWIG_IsOK(res3)) {
24240 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
24241 }
24242 if (!argp3) {
24243 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
24244 }
24245 arg3 = reinterpret_cast< wxDC * >(argp3);
24246 {
24247 arg4 = &temp4;
24248 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24249 }
24250 if (obj4) {
24251 ecode5 = SWIG_AsVal_int(obj4, &val5);
24252 if (!SWIG_IsOK(ecode5)) {
24253 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
24254 }
24255 arg5 = static_cast< int >(val5);
24256 }
24257 {
24258 PyThreadState* __tstate = wxPyBeginAllowThreads();
24259 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
24260 wxPyEndAllowThreads(__tstate);
24261 if (PyErr_Occurred()) SWIG_fail;
24262 }
24263 resultobj = SWIG_Py_Void();
24264 return resultobj;
24265 fail:
24266 return NULL;
24267 }
24268
24269
24270 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24271 PyObject *resultobj = 0;
24272 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24273 wxWindow *arg2 = (wxWindow *) 0 ;
24274 wxDC *arg3 = 0 ;
24275 wxSize *arg4 = 0 ;
24276 int arg5 ;
24277 wxOrientation arg6 ;
24278 int arg7 = (int) 0 ;
24279 void *argp1 = 0 ;
24280 int res1 = 0 ;
24281 void *argp2 = 0 ;
24282 int res2 = 0 ;
24283 void *argp3 = 0 ;
24284 int res3 = 0 ;
24285 wxSize temp4 ;
24286 int val5 ;
24287 int ecode5 = 0 ;
24288 int val6 ;
24289 int ecode6 = 0 ;
24290 int val7 ;
24291 int ecode7 = 0 ;
24292 PyObject * obj0 = 0 ;
24293 PyObject * obj1 = 0 ;
24294 PyObject * obj2 = 0 ;
24295 PyObject * obj3 = 0 ;
24296 PyObject * obj4 = 0 ;
24297 PyObject * obj5 = 0 ;
24298 PyObject * obj6 = 0 ;
24299 char * kwnames[] = {
24300 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
24301 };
24302
24303 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
24304 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24305 if (!SWIG_IsOK(res1)) {
24306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24307 }
24308 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24309 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24310 if (!SWIG_IsOK(res2)) {
24311 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
24312 }
24313 arg2 = reinterpret_cast< wxWindow * >(argp2);
24314 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24315 if (!SWIG_IsOK(res3)) {
24316 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
24317 }
24318 if (!argp3) {
24319 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
24320 }
24321 arg3 = reinterpret_cast< wxDC * >(argp3);
24322 {
24323 arg4 = &temp4;
24324 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
24325 }
24326 ecode5 = SWIG_AsVal_int(obj4, &val5);
24327 if (!SWIG_IsOK(ecode5)) {
24328 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
24329 }
24330 arg5 = static_cast< int >(val5);
24331 ecode6 = SWIG_AsVal_int(obj5, &val6);
24332 if (!SWIG_IsOK(ecode6)) {
24333 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
24334 }
24335 arg6 = static_cast< wxOrientation >(val6);
24336 if (obj6) {
24337 ecode7 = SWIG_AsVal_int(obj6, &val7);
24338 if (!SWIG_IsOK(ecode7)) {
24339 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
24340 }
24341 arg7 = static_cast< int >(val7);
24342 }
24343 {
24344 PyThreadState* __tstate = wxPyBeginAllowThreads();
24345 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
24346 wxPyEndAllowThreads(__tstate);
24347 if (PyErr_Occurred()) SWIG_fail;
24348 }
24349 resultobj = SWIG_Py_Void();
24350 return resultobj;
24351 fail:
24352 return NULL;
24353 }
24354
24355
24356 SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24357 PyObject *resultobj = 0;
24358 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24359 wxWindow *arg2 = (wxWindow *) 0 ;
24360 wxDC *arg3 = 0 ;
24361 wxRect *arg4 = 0 ;
24362 int arg5 = (int) 0 ;
24363 void *argp1 = 0 ;
24364 int res1 = 0 ;
24365 void *argp2 = 0 ;
24366 int res2 = 0 ;
24367 void *argp3 = 0 ;
24368 int res3 = 0 ;
24369 wxRect temp4 ;
24370 int val5 ;
24371 int ecode5 = 0 ;
24372 PyObject * obj0 = 0 ;
24373 PyObject * obj1 = 0 ;
24374 PyObject * obj2 = 0 ;
24375 PyObject * obj3 = 0 ;
24376 PyObject * obj4 = 0 ;
24377 char * kwnames[] = {
24378 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24379 };
24380
24381 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24382 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24383 if (!SWIG_IsOK(res1)) {
24384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24385 }
24386 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24387 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24388 if (!SWIG_IsOK(res2)) {
24389 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
24390 }
24391 arg2 = reinterpret_cast< wxWindow * >(argp2);
24392 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24393 if (!SWIG_IsOK(res3)) {
24394 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
24395 }
24396 if (!argp3) {
24397 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
24398 }
24399 arg3 = reinterpret_cast< wxDC * >(argp3);
24400 {
24401 arg4 = &temp4;
24402 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24403 }
24404 if (obj4) {
24405 ecode5 = SWIG_AsVal_int(obj4, &val5);
24406 if (!SWIG_IsOK(ecode5)) {
24407 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
24408 }
24409 arg5 = static_cast< int >(val5);
24410 }
24411 {
24412 PyThreadState* __tstate = wxPyBeginAllowThreads();
24413 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
24414 wxPyEndAllowThreads(__tstate);
24415 if (PyErr_Occurred()) SWIG_fail;
24416 }
24417 resultobj = SWIG_Py_Void();
24418 return resultobj;
24419 fail:
24420 return NULL;
24421 }
24422
24423
24424 SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24425 PyObject *resultobj = 0;
24426 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24427 wxWindow *arg2 = (wxWindow *) 0 ;
24428 wxDC *arg3 = 0 ;
24429 wxRect *arg4 = 0 ;
24430 int arg5 = (int) 0 ;
24431 void *argp1 = 0 ;
24432 int res1 = 0 ;
24433 void *argp2 = 0 ;
24434 int res2 = 0 ;
24435 void *argp3 = 0 ;
24436 int res3 = 0 ;
24437 wxRect temp4 ;
24438 int val5 ;
24439 int ecode5 = 0 ;
24440 PyObject * obj0 = 0 ;
24441 PyObject * obj1 = 0 ;
24442 PyObject * obj2 = 0 ;
24443 PyObject * obj3 = 0 ;
24444 PyObject * obj4 = 0 ;
24445 char * kwnames[] = {
24446 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24447 };
24448
24449 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24450 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24451 if (!SWIG_IsOK(res1)) {
24452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24453 }
24454 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24455 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24456 if (!SWIG_IsOK(res2)) {
24457 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
24458 }
24459 arg2 = reinterpret_cast< wxWindow * >(argp2);
24460 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24461 if (!SWIG_IsOK(res3)) {
24462 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
24463 }
24464 if (!argp3) {
24465 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
24466 }
24467 arg3 = reinterpret_cast< wxDC * >(argp3);
24468 {
24469 arg4 = &temp4;
24470 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24471 }
24472 if (obj4) {
24473 ecode5 = SWIG_AsVal_int(obj4, &val5);
24474 if (!SWIG_IsOK(ecode5)) {
24475 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
24476 }
24477 arg5 = static_cast< int >(val5);
24478 }
24479 {
24480 PyThreadState* __tstate = wxPyBeginAllowThreads();
24481 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
24482 wxPyEndAllowThreads(__tstate);
24483 if (PyErr_Occurred()) SWIG_fail;
24484 }
24485 resultobj = SWIG_Py_Void();
24486 return resultobj;
24487 fail:
24488 return NULL;
24489 }
24490
24491
24492 SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24493 PyObject *resultobj = 0;
24494 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24495 wxWindow *arg2 = (wxWindow *) 0 ;
24496 wxDC *arg3 = 0 ;
24497 wxRect *arg4 = 0 ;
24498 int arg5 = (int) 0 ;
24499 void *argp1 = 0 ;
24500 int res1 = 0 ;
24501 void *argp2 = 0 ;
24502 int res2 = 0 ;
24503 void *argp3 = 0 ;
24504 int res3 = 0 ;
24505 wxRect temp4 ;
24506 int val5 ;
24507 int ecode5 = 0 ;
24508 PyObject * obj0 = 0 ;
24509 PyObject * obj1 = 0 ;
24510 PyObject * obj2 = 0 ;
24511 PyObject * obj3 = 0 ;
24512 PyObject * obj4 = 0 ;
24513 char * kwnames[] = {
24514 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24515 };
24516
24517 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24518 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24519 if (!SWIG_IsOK(res1)) {
24520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24521 }
24522 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24523 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24524 if (!SWIG_IsOK(res2)) {
24525 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
24526 }
24527 arg2 = reinterpret_cast< wxWindow * >(argp2);
24528 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24529 if (!SWIG_IsOK(res3)) {
24530 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
24531 }
24532 if (!argp3) {
24533 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
24534 }
24535 arg3 = reinterpret_cast< wxDC * >(argp3);
24536 {
24537 arg4 = &temp4;
24538 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24539 }
24540 if (obj4) {
24541 ecode5 = SWIG_AsVal_int(obj4, &val5);
24542 if (!SWIG_IsOK(ecode5)) {
24543 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
24544 }
24545 arg5 = static_cast< int >(val5);
24546 }
24547 {
24548 PyThreadState* __tstate = wxPyBeginAllowThreads();
24549 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
24550 wxPyEndAllowThreads(__tstate);
24551 if (PyErr_Occurred()) SWIG_fail;
24552 }
24553 resultobj = SWIG_Py_Void();
24554 return resultobj;
24555 fail:
24556 return NULL;
24557 }
24558
24559
24560 SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24561 PyObject *resultobj = 0;
24562 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24563 wxWindow *arg2 = (wxWindow *) 0 ;
24564 wxDC *arg3 = 0 ;
24565 wxRect *arg4 = 0 ;
24566 int arg5 = (int) 0 ;
24567 void *argp1 = 0 ;
24568 int res1 = 0 ;
24569 void *argp2 = 0 ;
24570 int res2 = 0 ;
24571 void *argp3 = 0 ;
24572 int res3 = 0 ;
24573 wxRect temp4 ;
24574 int val5 ;
24575 int ecode5 = 0 ;
24576 PyObject * obj0 = 0 ;
24577 PyObject * obj1 = 0 ;
24578 PyObject * obj2 = 0 ;
24579 PyObject * obj3 = 0 ;
24580 PyObject * obj4 = 0 ;
24581 char * kwnames[] = {
24582 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24583 };
24584
24585 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24586 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24587 if (!SWIG_IsOK(res1)) {
24588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24589 }
24590 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24591 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24592 if (!SWIG_IsOK(res2)) {
24593 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
24594 }
24595 arg2 = reinterpret_cast< wxWindow * >(argp2);
24596 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24597 if (!SWIG_IsOK(res3)) {
24598 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
24599 }
24600 if (!argp3) {
24601 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
24602 }
24603 arg3 = reinterpret_cast< wxDC * >(argp3);
24604 {
24605 arg4 = &temp4;
24606 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24607 }
24608 if (obj4) {
24609 ecode5 = SWIG_AsVal_int(obj4, &val5);
24610 if (!SWIG_IsOK(ecode5)) {
24611 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
24612 }
24613 arg5 = static_cast< int >(val5);
24614 }
24615 {
24616 PyThreadState* __tstate = wxPyBeginAllowThreads();
24617 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
24618 wxPyEndAllowThreads(__tstate);
24619 if (PyErr_Occurred()) SWIG_fail;
24620 }
24621 resultobj = SWIG_Py_Void();
24622 return resultobj;
24623 fail:
24624 return NULL;
24625 }
24626
24627
24628 SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24629 PyObject *resultobj = 0;
24630 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24631 wxWindow *arg2 = (wxWindow *) 0 ;
24632 wxDC *arg3 = 0 ;
24633 wxRect *arg4 = 0 ;
24634 int arg5 = (int) 0 ;
24635 void *argp1 = 0 ;
24636 int res1 = 0 ;
24637 void *argp2 = 0 ;
24638 int res2 = 0 ;
24639 void *argp3 = 0 ;
24640 int res3 = 0 ;
24641 wxRect temp4 ;
24642 int val5 ;
24643 int ecode5 = 0 ;
24644 PyObject * obj0 = 0 ;
24645 PyObject * obj1 = 0 ;
24646 PyObject * obj2 = 0 ;
24647 PyObject * obj3 = 0 ;
24648 PyObject * obj4 = 0 ;
24649 char * kwnames[] = {
24650 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24651 };
24652
24653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24655 if (!SWIG_IsOK(res1)) {
24656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24657 }
24658 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24659 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24660 if (!SWIG_IsOK(res2)) {
24661 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
24662 }
24663 arg2 = reinterpret_cast< wxWindow * >(argp2);
24664 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24665 if (!SWIG_IsOK(res3)) {
24666 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
24667 }
24668 if (!argp3) {
24669 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
24670 }
24671 arg3 = reinterpret_cast< wxDC * >(argp3);
24672 {
24673 arg4 = &temp4;
24674 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24675 }
24676 if (obj4) {
24677 ecode5 = SWIG_AsVal_int(obj4, &val5);
24678 if (!SWIG_IsOK(ecode5)) {
24679 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
24680 }
24681 arg5 = static_cast< int >(val5);
24682 }
24683 {
24684 PyThreadState* __tstate = wxPyBeginAllowThreads();
24685 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
24686 wxPyEndAllowThreads(__tstate);
24687 if (PyErr_Occurred()) SWIG_fail;
24688 }
24689 resultobj = SWIG_Py_Void();
24690 return resultobj;
24691 fail:
24692 return NULL;
24693 }
24694
24695
24696 SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24697 PyObject *resultobj = 0;
24698 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24699 wxWindow *arg2 = (wxWindow *) 0 ;
24700 SwigValueWrapper<wxSplitterRenderParams > result;
24701 void *argp1 = 0 ;
24702 int res1 = 0 ;
24703 void *argp2 = 0 ;
24704 int res2 = 0 ;
24705 PyObject * obj0 = 0 ;
24706 PyObject * obj1 = 0 ;
24707 char * kwnames[] = {
24708 (char *) "self",(char *) "win", NULL
24709 };
24710
24711 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
24712 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24713 if (!SWIG_IsOK(res1)) {
24714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24715 }
24716 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24717 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24718 if (!SWIG_IsOK(res2)) {
24719 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
24720 }
24721 arg2 = reinterpret_cast< wxWindow * >(argp2);
24722 {
24723 PyThreadState* __tstate = wxPyBeginAllowThreads();
24724 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
24725 wxPyEndAllowThreads(__tstate);
24726 if (PyErr_Occurred()) SWIG_fail;
24727 }
24728 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
24729 return resultobj;
24730 fail:
24731 return NULL;
24732 }
24733
24734
24735 SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24736 PyObject *resultobj = 0;
24737 wxRendererNative *result = 0 ;
24738
24739 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
24740 {
24741 if (!wxPyCheckForApp()) SWIG_fail;
24742 PyThreadState* __tstate = wxPyBeginAllowThreads();
24743 {
24744 wxRendererNative &_result_ref = wxRendererNative::Get();
24745 result = (wxRendererNative *) &_result_ref;
24746 }
24747 wxPyEndAllowThreads(__tstate);
24748 if (PyErr_Occurred()) SWIG_fail;
24749 }
24750 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
24751 return resultobj;
24752 fail:
24753 return NULL;
24754 }
24755
24756
24757 SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24758 PyObject *resultobj = 0;
24759 wxRendererNative *result = 0 ;
24760
24761 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
24762 {
24763 if (!wxPyCheckForApp()) SWIG_fail;
24764 PyThreadState* __tstate = wxPyBeginAllowThreads();
24765 {
24766 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
24767 result = (wxRendererNative *) &_result_ref;
24768 }
24769 wxPyEndAllowThreads(__tstate);
24770 if (PyErr_Occurred()) SWIG_fail;
24771 }
24772 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
24773 return resultobj;
24774 fail:
24775 return NULL;
24776 }
24777
24778
24779 SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24780 PyObject *resultobj = 0;
24781 wxRendererNative *result = 0 ;
24782
24783 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
24784 {
24785 if (!wxPyCheckForApp()) SWIG_fail;
24786 PyThreadState* __tstate = wxPyBeginAllowThreads();
24787 {
24788 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
24789 result = (wxRendererNative *) &_result_ref;
24790 }
24791 wxPyEndAllowThreads(__tstate);
24792 if (PyErr_Occurred()) SWIG_fail;
24793 }
24794 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
24795 return resultobj;
24796 fail:
24797 return NULL;
24798 }
24799
24800
24801 SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24802 PyObject *resultobj = 0;
24803 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24804 wxRendererNative *result = 0 ;
24805 void *argp1 = 0 ;
24806 int res1 = 0 ;
24807 PyObject * obj0 = 0 ;
24808 char * kwnames[] = {
24809 (char *) "renderer", NULL
24810 };
24811
24812 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
24813 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24814 if (!SWIG_IsOK(res1)) {
24815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24816 }
24817 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24818 {
24819 if (!wxPyCheckForApp()) SWIG_fail;
24820 PyThreadState* __tstate = wxPyBeginAllowThreads();
24821 result = (wxRendererNative *)wxRendererNative::Set(arg1);
24822 wxPyEndAllowThreads(__tstate);
24823 if (PyErr_Occurred()) SWIG_fail;
24824 }
24825 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
24826 return resultobj;
24827 fail:
24828 return NULL;
24829 }
24830
24831
24832 SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24833 PyObject *resultobj = 0;
24834 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24835 SwigValueWrapper<wxRendererVersion > result;
24836 void *argp1 = 0 ;
24837 int res1 = 0 ;
24838 PyObject *swig_obj[1] ;
24839
24840 if (!args) SWIG_fail;
24841 swig_obj[0] = args;
24842 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24843 if (!SWIG_IsOK(res1)) {
24844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
24845 }
24846 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24847 {
24848 PyThreadState* __tstate = wxPyBeginAllowThreads();
24849 result = ((wxRendererNative const *)arg1)->GetVersion();
24850 wxPyEndAllowThreads(__tstate);
24851 if (PyErr_Occurred()) SWIG_fail;
24852 }
24853 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
24854 return resultobj;
24855 fail:
24856 return NULL;
24857 }
24858
24859
24860 SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24861 PyObject *obj;
24862 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24863 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
24864 return SWIG_Py_Void();
24865 }
24866
24867 static PyMethodDef SwigMethods[] = {
24868 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
24869 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
24870 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
24871 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
24872 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
24873 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
24874 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
24875 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
24876 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
24877 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
24878 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
24879 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
24880 { (char *)"Colour_Ok", (PyCFunction)_wrap_Colour_Ok, METH_O, NULL},
24881 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
24882 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
24883 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
24884 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
24885 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
24886 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
24887 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
24888 { (char *)"Colour_Get", (PyCFunction)_wrap_Colour_Get, METH_O, NULL},
24889 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
24890 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
24891 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
24892 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
24893 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
24894 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
24895 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
24896 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
24897 { (char *)"Palette_Ok", (PyCFunction)_wrap_Palette_Ok, METH_O, NULL},
24898 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
24899 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
24900 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
24901 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
24902 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
24903 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
24904 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
24905 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
24906 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
24907 { (char *)"Pen_Ok", (PyCFunction)_wrap_Pen_Ok, METH_O, NULL},
24908 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
24909 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
24910 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
24911 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
24912 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
24913 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
24914 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
24915 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
24916 { (char *)"Pen_GetDashCount", (PyCFunction)_wrap_Pen_GetDashCount, METH_O, NULL},
24917 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
24918 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
24919 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
24920 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
24921 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
24922 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
24923 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
24924 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
24925 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
24926 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
24927 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
24928 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
24929 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
24930 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
24931 { (char *)"Brush_Ok", (PyCFunction)_wrap_Brush_Ok, METH_O, NULL},
24932 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
24933 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
24934 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
24935 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
24936 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
24937 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
24938 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
24939 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
24940 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
24941 { (char *)"Bitmap_Ok", (PyCFunction)_wrap_Bitmap_Ok, METH_O, NULL},
24942 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
24943 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
24944 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
24945 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
24946 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
24947 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
24948 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
24949 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
24950 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
24951 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
24952 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
24953 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
24954 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
24955 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
24956 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
24957 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
24958 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
24959 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
24960 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
24961 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
24962 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
24963 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
24964 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
24965 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
24966 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
24967 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
24968 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
24969 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
24970 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
24971 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
24972 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
24973 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
24974 { (char *)"Icon_Ok", (PyCFunction)_wrap_Icon_Ok, METH_O, NULL},
24975 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
24976 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
24977 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
24978 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
24979 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
24980 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
24981 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
24982 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
24983 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
24984 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
24985 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
24986 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
24987 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
24988 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
24989 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
24990 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
24991 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
24992 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
24993 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
24994 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
24995 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
24996 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
24997 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
24998 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
24999 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
25000 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
25001 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
25002 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
25003 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
25004 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
25005 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
25006 { (char *)"Cursor_Ok", (PyCFunction)_wrap_Cursor_Ok, METH_O, NULL},
25007 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
25008 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
25009 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
25010 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25011 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
25012 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
25013 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
25014 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
25015 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
25016 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
25017 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25018 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
25019 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
25020 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
25021 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
25022 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
25023 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
25024 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
25025 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
25026 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
25027 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
25028 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
25029 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
25030 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
25031 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
25032 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
25033 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
25034 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
25035 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25036 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
25037 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
25038 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
25039 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
25040 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
25041 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
25042 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
25043 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
25044 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
25045 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
25046 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
25047 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
25048 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
25049 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
25050 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
25051 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
25052 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
25053 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
25054 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
25055 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
25056 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
25057 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
25058 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
25059 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
25060 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
25061 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
25062 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
25063 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
25064 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
25065 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
25066 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
25067 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
25068 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
25069 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
25070 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
25071 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
25072 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
25073 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
25074 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
25075 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
25076 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
25077 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
25078 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
25079 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
25080 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
25081 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
25082 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
25083 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
25084 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
25085 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
25086 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
25087 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
25088 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
25089 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
25090 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
25091 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
25092 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
25093 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
25094 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
25095 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
25096 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
25097 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
25098 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
25099 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
25100 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
25101 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
25102 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
25103 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
25104 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
25105 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
25106 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
25107 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
25108 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
25109 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
25110 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
25111 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
25112 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
25113 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
25114 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
25115 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
25116 { (char *)"Font_Ok", (PyCFunction)_wrap_Font_Ok, METH_O, NULL},
25117 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
25118 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
25119 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
25120 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
25121 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
25122 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
25123 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
25124 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
25125 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
25126 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
25127 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
25128 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
25129 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
25130 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
25131 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
25132 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
25133 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
25134 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
25135 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
25136 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
25137 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
25138 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
25139 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
25140 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
25141 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
25142 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
25143 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
25144 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
25145 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
25146 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
25147 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
25148 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
25149 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
25150 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
25151 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
25152 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
25153 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
25154 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
25155 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
25156 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
25157 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
25158 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
25159 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
25160 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
25161 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
25162 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
25163 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
25164 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
25165 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
25166 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
25167 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
25168 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
25169 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
25170 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
25171 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
25172 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
25173 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
25174 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
25175 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
25176 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
25177 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
25178 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
25179 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
25180 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
25181 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
25182 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
25183 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
25184 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
25185 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
25186 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
25187 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
25188 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
25189 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
25190 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
25191 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
25192 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
25193 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
25194 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
25195 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
25196 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
25197 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
25198 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
25199 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
25200 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
25201 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
25202 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
25203 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
25204 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
25205 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25206 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
25207 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
25208 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
25209 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25210 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
25211 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
25212 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
25213 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25214 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
25215 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25216 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
25217 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
25218 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
25219 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
25220 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25221 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25222 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
25223 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
25224 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
25225 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
25226 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
25227 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
25228 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
25229 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
25230 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
25231 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
25232 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
25233 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
25234 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25235 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25236 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25237 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
25238 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25239 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
25240 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25241 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
25242 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
25243 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
25244 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
25245 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
25246 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
25247 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
25248 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
25249 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
25250 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
25251 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
25252 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
25253 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
25254 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
25255 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
25256 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
25257 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
25258 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
25259 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
25260 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
25261 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
25262 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
25263 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
25264 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
25265 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
25266 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
25267 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
25268 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
25269 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
25270 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
25271 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
25272 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
25273 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
25274 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
25275 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
25276 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
25277 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
25278 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
25279 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
25280 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
25281 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
25282 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
25283 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
25284 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
25285 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
25286 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
25287 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
25288 { (char *)"DC_Ok", (PyCFunction)_wrap_DC_Ok, METH_O, NULL},
25289 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
25290 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
25291 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
25292 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
25293 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
25294 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
25295 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
25296 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
25297 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
25298 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
25299 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
25300 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
25301 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
25302 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
25303 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
25304 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
25305 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
25306 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
25307 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25308 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
25309 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
25310 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
25311 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25312 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
25313 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
25314 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
25315 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
25316 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
25317 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25318 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
25319 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
25320 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
25321 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
25322 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
25323 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
25324 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
25325 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
25326 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
25327 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
25328 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
25329 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
25330 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
25331 { (char *)"new_MemoryDC", (PyCFunction)_wrap_new_MemoryDC, METH_NOARGS, NULL},
25332 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
25333 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
25334 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
25335 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
25336 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
25337 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
25338 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
25339 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
25340 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
25341 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
25342 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
25343 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
25344 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
25345 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
25346 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
25347 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
25348 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
25349 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
25350 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
25351 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
25352 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
25353 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
25354 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
25355 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
25356 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
25357 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
25358 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
25359 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
25360 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
25361 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
25362 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
25363 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
25364 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
25365 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
25366 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
25367 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
25368 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
25369 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
25370 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
25371 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
25372 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
25373 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
25374 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
25375 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
25376 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
25377 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
25378 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
25379 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
25380 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
25381 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
25382 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
25383 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25384 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
25385 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
25386 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
25387 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
25388 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
25389 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
25390 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
25391 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
25392 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
25393 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
25394 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
25395 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
25396 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
25397 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
25398 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
25399 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
25400 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
25401 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
25402 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
25403 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
25404 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
25405 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
25406 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
25407 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
25408 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
25409 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
25410 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
25411 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
25412 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
25413 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
25414 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
25415 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
25416 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
25417 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
25418 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
25419 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
25420 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
25421 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
25422 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
25423 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
25424 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
25425 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
25426 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
25427 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
25428 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
25429 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
25430 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
25431 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
25432 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
25433 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
25434 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
25435 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
25436 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
25437 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
25438 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
25439 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
25440 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
25441 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
25442 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
25443 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
25444 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
25445 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25446 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
25447 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
25448 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
25449 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
25450 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
25451 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
25452 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
25453 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
25454 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
25455 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
25456 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
25457 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
25458 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
25459 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
25460 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
25461 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
25462 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
25463 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
25464 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
25465 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
25466 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
25467 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
25468 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
25469 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
25470 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
25471 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
25472 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
25473 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
25474 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
25475 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
25476 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
25477 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
25478 { NULL, NULL, 0, NULL }
25479 };
25480
25481
25482 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
25483
25484 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
25485 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
25486 }
25487 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
25488 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
25489 }
25490 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
25491 return (void *)((wxGDIObject *) ((wxIcon *) x));
25492 }
25493 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
25494 return (void *)((wxGDIObject *) ((wxPalette *) x));
25495 }
25496 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
25497 return (void *)((wxGDIObject *) ((wxPen *) x));
25498 }
25499 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
25500 return (void *)((wxGDIObject *) ((wxFont *) x));
25501 }
25502 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
25503 return (void *)((wxGDIObject *) ((wxCursor *) x));
25504 }
25505 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
25506 return (void *)((wxGDIObject *) ((wxBitmap *) x));
25507 }
25508 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
25509 return (void *)((wxGDIObject *) ((wxRegion *) x));
25510 }
25511 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
25512 return (void *)((wxGDIObject *) ((wxBrush *) x));
25513 }
25514 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
25515 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
25516 }
25517 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
25518 return (void *)((wxDC *) ((wxScreenDC *) x));
25519 }
25520 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
25521 return (void *)((wxDC *) ((wxMirrorDC *) x));
25522 }
25523 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
25524 return (void *)((wxDC *) ((wxMemoryDC *) x));
25525 }
25526 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
25527 return (void *)((wxDC *) ((wxWindowDC *) x));
25528 }
25529 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
25530 return (void *)((wxDC *) ((wxMetaFileDC *) x));
25531 }
25532 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
25533 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
25534 }
25535 static void *_p_wxClientDCTo_p_wxDC(void *x) {
25536 return (void *)((wxDC *) ((wxClientDC *) x));
25537 }
25538 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
25539 return (void *)((wxDC *) ((wxPaintDC *) x));
25540 }
25541 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
25542 return (void *)((wxDC *) ((wxPostScriptDC *) x));
25543 }
25544 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
25545 return (void *)((wxDC *) ((wxPrinterDC *) x));
25546 }
25547 static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
25548 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
25549 }
25550 static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
25551 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
25552 }
25553 static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
25554 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
25555 }
25556 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
25557 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
25558 }
25559 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
25560 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
25561 }
25562 static void *_p_wxPenTo_p_wxObject(void *x) {
25563 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
25564 }
25565 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
25566 return (void *)((wxObject *) ((wxRegionIterator *) x));
25567 }
25568 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
25569 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
25570 }
25571 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
25572 return (void *)((wxObject *) ((wxSizerItem *) x));
25573 }
25574 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
25575 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
25576 }
25577 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
25578 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
25579 }
25580 static void *_p_wxIconTo_p_wxObject(void *x) {
25581 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
25582 }
25583 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
25584 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
25585 }
25586 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
25587 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
25588 }
25589 static void *_p_wxSizerTo_p_wxObject(void *x) {
25590 return (void *)((wxObject *) ((wxSizer *) x));
25591 }
25592 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
25593 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
25594 }
25595 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
25596 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
25597 }
25598 static void *_p_wxEventTo_p_wxObject(void *x) {
25599 return (void *)((wxObject *) ((wxEvent *) x));
25600 }
25601 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
25602 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
25603 }
25604 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
25605 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
25606 }
25607 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
25608 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
25609 }
25610 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
25611 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
25612 }
25613 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
25614 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
25615 }
25616 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
25617 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
25618 }
25619 static void *_p_wxDCTo_p_wxObject(void *x) {
25620 return (void *)((wxObject *) ((wxDC *) x));
25621 }
25622 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
25623 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
25624 }
25625 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
25626 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
25627 }
25628 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
25629 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
25630 }
25631 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
25632 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
25633 }
25634 static void *_p_wxControlTo_p_wxObject(void *x) {
25635 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
25636 }
25637 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
25638 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
25639 }
25640 static void *_p_wxClientDCTo_p_wxObject(void *x) {
25641 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
25642 }
25643 static void *_p_wxFSFileTo_p_wxObject(void *x) {
25644 return (void *)((wxObject *) ((wxFSFile *) x));
25645 }
25646 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
25647 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
25648 }
25649 static void *_p_wxRegionTo_p_wxObject(void *x) {
25650 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
25651 }
25652 static void *_p_wxPySizerTo_p_wxObject(void *x) {
25653 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
25654 }
25655 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
25656 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
25657 }
25658 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
25659 return (void *)((wxObject *) ((wxGDIObject *) x));
25660 }
25661 static void *_p_wxEffectsTo_p_wxObject(void *x) {
25662 return (void *)((wxObject *) ((wxEffects *) x));
25663 }
25664 static void *_p_wxPyEventTo_p_wxObject(void *x) {
25665 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
25666 }
25667 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
25668 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
25669 }
25670 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
25671 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
25672 }
25673 static void *_p_wxShowEventTo_p_wxObject(void *x) {
25674 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
25675 }
25676 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
25677 return (void *)((wxObject *) ((wxMenuItem *) x));
25678 }
25679 static void *_p_wxDateEventTo_p_wxObject(void *x) {
25680 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
25681 }
25682 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
25683 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
25684 }
25685 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
25686 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
25687 }
25688 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
25689 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
25690 }
25691 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
25692 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
25693 }
25694 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
25695 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
25696 }
25697 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
25698 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
25699 }
25700 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
25701 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
25702 }
25703 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
25704 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
25705 }
25706 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
25707 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
25708 }
25709 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
25710 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
25711 }
25712 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
25713 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
25714 }
25715 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
25716 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
25717 }
25718 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
25719 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
25720 }
25721 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
25722 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
25723 }
25724 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
25725 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
25726 }
25727 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
25728 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
25729 }
25730 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
25731 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
25732 }
25733 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
25734 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
25735 }
25736 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
25737 return (void *)((wxObject *) ((wxImageHandler *) x));
25738 }
25739 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
25740 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
25741 }
25742 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
25743 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
25744 }
25745 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
25746 return (void *)((wxObject *) ((wxEvtHandler *) x));
25747 }
25748 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
25749 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
25750 }
25751 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
25752 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
25753 }
25754 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
25755 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
25756 }
25757 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
25758 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
25759 }
25760 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
25761 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
25762 }
25763 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
25764 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
25765 }
25766 static void *_p_wxImageTo_p_wxObject(void *x) {
25767 return (void *)((wxObject *) ((wxImage *) x));
25768 }
25769 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
25770 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
25771 }
25772 static void *_p_wxPaletteTo_p_wxObject(void *x) {
25773 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
25774 }
25775 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
25776 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
25777 }
25778 static void *_p_wxImageListTo_p_wxObject(void *x) {
25779 return (void *)((wxObject *) ((wxImageList *) x));
25780 }
25781 static void *_p_wxCursorTo_p_wxObject(void *x) {
25782 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
25783 }
25784 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
25785 return (void *)((wxObject *) ((wxEncodingConverter *) x));
25786 }
25787 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
25788 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
25789 }
25790 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
25791 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
25792 }
25793 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
25794 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
25795 }
25796 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
25797 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
25798 }
25799 static void *_p_wxWindowTo_p_wxObject(void *x) {
25800 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
25801 }
25802 static void *_p_wxMenuTo_p_wxObject(void *x) {
25803 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
25804 }
25805 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
25806 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
25807 }
25808 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
25809 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
25810 }
25811 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
25812 return (void *)((wxObject *) ((wxFileSystem *) x));
25813 }
25814 static void *_p_wxBitmapTo_p_wxObject(void *x) {
25815 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
25816 }
25817 static void *_p_wxMaskTo_p_wxObject(void *x) {
25818 return (void *)((wxObject *) ((wxMask *) x));
25819 }
25820 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
25821 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
25822 }
25823 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
25824 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
25825 }
25826 static void *_p_wxPyAppTo_p_wxObject(void *x) {
25827 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
25828 }
25829 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
25830 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
25831 }
25832 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
25833 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
25834 }
25835 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
25836 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
25837 }
25838 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
25839 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
25840 }
25841 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
25842 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
25843 }
25844 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
25845 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
25846 }
25847 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
25848 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
25849 }
25850 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
25851 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
25852 }
25853 static void *_p_wxFontTo_p_wxObject(void *x) {
25854 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
25855 }
25856 static void *_p_wxBrushTo_p_wxObject(void *x) {
25857 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
25858 }
25859 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
25860 return (void *)((wxObject *) ((wxMetaFile *) x));
25861 }
25862 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
25863 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
25864 }
25865 static void *_p_wxColourTo_p_wxObject(void *x) {
25866 return (void *)((wxObject *) ((wxColour *) x));
25867 }
25868 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
25869 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
25870 }
25871 static void *_p_wxValidatorTo_p_wxObject(void *x) {
25872 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
25873 }
25874 static void *_p_wxControlTo_p_wxWindow(void *x) {
25875 return (void *)((wxWindow *) ((wxControl *) x));
25876 }
25877 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
25878 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
25879 }
25880 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
25881 return (void *)((wxWindow *) ((wxMenuBar *) x));
25882 }
25883 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
25884 static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, (void*)0, 0};
25885 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};
25886 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
25887 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
25888 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
25889 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
25890 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
25891 static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
25892 static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
25893 static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
25894 static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
25895 static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
25896 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
25897 static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
25898 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
25899 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
25900 static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
25901 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
25902 static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
25903 static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
25904 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
25905 static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
25906 static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
25907 static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
25908 static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
25909 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
25910 static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
25911 static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
25912 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
25913 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
25914 static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
25915 static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
25916 static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
25917 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
25918 static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
25919 static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
25920 static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
25921 static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
25922 static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
25923 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
25924 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
25925 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
25926 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
25927 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
25928 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
25929 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
25930 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
25931 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
25932 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
25933 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
25934 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
25935 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
25936 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
25937 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
25938 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
25939 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
25940 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
25941 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
25942 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
25943 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
25944 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
25945 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
25946 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
25947 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
25948 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
25949 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
25950 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
25951 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
25952 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
25953 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
25954 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
25955 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
25956 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
25957 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
25958 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
25959 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
25960 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
25961 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
25962 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
25963 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
25964 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
25965 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
25966 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
25967 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
25968 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
25969 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
25970 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
25971 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
25972 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
25973 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
25974 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
25975 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
25976 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
25977 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
25978 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
25979 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
25980 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
25981 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
25982 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
25983 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
25984 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
25985 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
25986 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
25987 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
25988 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
25989 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
25990 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
25991 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
25992 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
25993 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
25994 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
25995 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
25996 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
25997 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
25998 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
25999 static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
26000 static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
26001 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
26002 static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
26003 static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
26004 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
26005 static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
26006 static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
26007 static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
26008 static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
26009 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
26010 static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
26011 static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
26012 static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
26013 static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
26014 static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
26015 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
26016 static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
26017 static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
26018 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
26019 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
26020 static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
26021
26022 static swig_type_info *swig_type_initial[] = {
26023 &_swigt__p_char,
26024 &_swigt__p_double,
26025 &_swigt__p_form_ops_t,
26026 &_swigt__p_int,
26027 &_swigt__p_unsigned_char,
26028 &_swigt__p_unsigned_int,
26029 &_swigt__p_unsigned_long,
26030 &_swigt__p_wxANIHandler,
26031 &_swigt__p_wxAcceleratorTable,
26032 &_swigt__p_wxActivateEvent,
26033 &_swigt__p_wxBMPHandler,
26034 &_swigt__p_wxBitmap,
26035 &_swigt__p_wxBoxSizer,
26036 &_swigt__p_wxBrush,
26037 &_swigt__p_wxBrushList,
26038 &_swigt__p_wxBufferedDC,
26039 &_swigt__p_wxBufferedPaintDC,
26040 &_swigt__p_wxCURHandler,
26041 &_swigt__p_wxChildFocusEvent,
26042 &_swigt__p_wxClientDC,
26043 &_swigt__p_wxClipboardTextEvent,
26044 &_swigt__p_wxCloseEvent,
26045 &_swigt__p_wxColour,
26046 &_swigt__p_wxColourDatabase,
26047 &_swigt__p_wxCommandEvent,
26048 &_swigt__p_wxContextMenuEvent,
26049 &_swigt__p_wxControl,
26050 &_swigt__p_wxControlWithItems,
26051 &_swigt__p_wxCursor,
26052 &_swigt__p_wxDC,
26053 &_swigt__p_wxDash,
26054 &_swigt__p_wxDateEvent,
26055 &_swigt__p_wxDisplayChangedEvent,
26056 &_swigt__p_wxDropFilesEvent,
26057 &_swigt__p_wxDuplexMode,
26058 &_swigt__p_wxEffects,
26059 &_swigt__p_wxEncodingConverter,
26060 &_swigt__p_wxEraseEvent,
26061 &_swigt__p_wxEvent,
26062 &_swigt__p_wxEvtHandler,
26063 &_swigt__p_wxFSFile,
26064 &_swigt__p_wxFileSystem,
26065 &_swigt__p_wxFlexGridSizer,
26066 &_swigt__p_wxFocusEvent,
26067 &_swigt__p_wxFont,
26068 &_swigt__p_wxFontList,
26069 &_swigt__p_wxFontMapper,
26070 &_swigt__p_wxGBSizerItem,
26071 &_swigt__p_wxGDIObjListBase,
26072 &_swigt__p_wxGDIObject,
26073 &_swigt__p_wxGIFHandler,
26074 &_swigt__p_wxGridBagSizer,
26075 &_swigt__p_wxGridSizer,
26076 &_swigt__p_wxICOHandler,
26077 &_swigt__p_wxIcon,
26078 &_swigt__p_wxIconBundle,
26079 &_swigt__p_wxIconLocation,
26080 &_swigt__p_wxIconizeEvent,
26081 &_swigt__p_wxIdleEvent,
26082 &_swigt__p_wxImage,
26083 &_swigt__p_wxImageHandler,
26084 &_swigt__p_wxImageList,
26085 &_swigt__p_wxIndividualLayoutConstraint,
26086 &_swigt__p_wxInitDialogEvent,
26087 &_swigt__p_wxJPEGHandler,
26088 &_swigt__p_wxKeyEvent,
26089 &_swigt__p_wxLanguageInfo,
26090 &_swigt__p_wxLayoutConstraints,
26091 &_swigt__p_wxLocale,
26092 &_swigt__p_wxMask,
26093 &_swigt__p_wxMaximizeEvent,
26094 &_swigt__p_wxMemoryDC,
26095 &_swigt__p_wxMenu,
26096 &_swigt__p_wxMenuBar,
26097 &_swigt__p_wxMenuEvent,
26098 &_swigt__p_wxMenuItem,
26099 &_swigt__p_wxMetaFile,
26100 &_swigt__p_wxMetaFileDC,
26101 &_swigt__p_wxMirrorDC,
26102 &_swigt__p_wxMouseCaptureChangedEvent,
26103 &_swigt__p_wxMouseEvent,
26104 &_swigt__p_wxMoveEvent,
26105 &_swigt__p_wxNativeEncodingInfo,
26106 &_swigt__p_wxNativeFontInfo,
26107 &_swigt__p_wxNavigationKeyEvent,
26108 &_swigt__p_wxNcPaintEvent,
26109 &_swigt__p_wxNotifyEvent,
26110 &_swigt__p_wxObject,
26111 &_swigt__p_wxPCXHandler,
26112 &_swigt__p_wxPNGHandler,
26113 &_swigt__p_wxPNMHandler,
26114 &_swigt__p_wxPaintDC,
26115 &_swigt__p_wxPaintEvent,
26116 &_swigt__p_wxPalette,
26117 &_swigt__p_wxPaletteChangedEvent,
26118 &_swigt__p_wxPaperSize,
26119 &_swigt__p_wxPen,
26120 &_swigt__p_wxPenList,
26121 &_swigt__p_wxPoint,
26122 &_swigt__p_wxPostScriptDC,
26123 &_swigt__p_wxPrintData,
26124 &_swigt__p_wxPrinterDC,
26125 &_swigt__p_wxPyApp,
26126 &_swigt__p_wxPyCommandEvent,
26127 &_swigt__p_wxPyEvent,
26128 &_swigt__p_wxPyFontEnumerator,
26129 &_swigt__p_wxPyImageHandler,
26130 &_swigt__p_wxPySizer,
26131 &_swigt__p_wxPyValidator,
26132 &_swigt__p_wxQueryNewPaletteEvent,
26133 &_swigt__p_wxRect,
26134 &_swigt__p_wxRegion,
26135 &_swigt__p_wxRegionIterator,
26136 &_swigt__p_wxRendererNative,
26137 &_swigt__p_wxRendererVersion,
26138 &_swigt__p_wxScreenDC,
26139 &_swigt__p_wxScrollEvent,
26140 &_swigt__p_wxScrollWinEvent,
26141 &_swigt__p_wxSetCursorEvent,
26142 &_swigt__p_wxShowEvent,
26143 &_swigt__p_wxSize,
26144 &_swigt__p_wxSizeEvent,
26145 &_swigt__p_wxSizer,
26146 &_swigt__p_wxSizerItem,
26147 &_swigt__p_wxSplitterRenderParams,
26148 &_swigt__p_wxStaticBoxSizer,
26149 &_swigt__p_wxStdDialogButtonSizer,
26150 &_swigt__p_wxStockGDI,
26151 &_swigt__p_wxString,
26152 &_swigt__p_wxSysColourChangedEvent,
26153 &_swigt__p_wxTIFFHandler,
26154 &_swigt__p_wxUpdateUIEvent,
26155 &_swigt__p_wxValidator,
26156 &_swigt__p_wxWindow,
26157 &_swigt__p_wxWindowCreateEvent,
26158 &_swigt__p_wxWindowDC,
26159 &_swigt__p_wxWindowDestroyEvent,
26160 &_swigt__p_wxXPMHandler,
26161 };
26162
26163 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
26164 static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
26165 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
26166 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
26167 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
26168 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
26169 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
26170 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
26171 static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
26172 static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
26173 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}};
26174 static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
26175 static swig_cast_info _swigc__p_wxClientDC[] = { {&_swigt__p_wxClientDC, 0, 0, 0},{0, 0, 0, 0}};
26176 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
26177 static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
26178 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
26179 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}};
26180 static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
26181 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
26182 static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
26183 static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
26184 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
26185 static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
26186 static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
26187 static swig_cast_info _swigc__p_wxGDIObjListBase[] = { {&_swigt__p_wxGDIObjListBase, 0, 0, 0}, {&_swigt__p_wxBrushList, _p_wxBrushListTo_p_wxGDIObjListBase, 0, 0}, {&_swigt__p_wxFontList, _p_wxFontListTo_p_wxGDIObjListBase, 0, 0}, {&_swigt__p_wxPenList, _p_wxPenListTo_p_wxGDIObjListBase, 0, 0},{0, 0, 0, 0}};
26188 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}};
26189 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
26190 static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
26191 static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
26192 static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
26193 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
26194 static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
26195 static swig_cast_info _swigc__p_wxLocale[] = { {&_swigt__p_wxLocale, 0, 0, 0},{0, 0, 0, 0}};
26196 static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
26197 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}};
26198 static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
26199 static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
26200 static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
26201 static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
26202 static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
26203 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
26204 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
26205 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
26206 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
26207 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
26208 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
26209 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
26210 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
26211 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
26212 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
26213 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
26214 static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
26215 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
26216 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
26217 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
26218 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
26219 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
26220 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
26221 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
26222 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
26223 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
26224 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
26225 static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
26226 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
26227 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
26228 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
26229 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
26230 static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
26231 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
26232 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
26233 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
26234 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
26235 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
26236 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
26237 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
26238 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
26239 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
26240 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
26241 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
26242 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
26243 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
26244 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
26245 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
26246 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
26247 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
26248 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
26249 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
26250 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
26251 static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
26252 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
26253 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
26254 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
26255 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
26256 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
26257 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
26258 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
26259 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
26260 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
26261 static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
26262 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
26263 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
26264 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
26265 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
26266 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
26267 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
26268 static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
26269 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
26270 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
26271 static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
26272 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
26273 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
26274 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
26275 static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
26276 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
26277 static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
26278 static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxRegionIterator, _p_wxRegionIteratorTo_p_wxObject, 0, 0}, {&_swigt__p_wxPen, _p_wxPenTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMask, _p_wxMaskTo_p_wxObject, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxFont, _p_wxFontTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxMemoryDC, _p_wxMemoryDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxRegion, _p_wxRegionTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxDC, _p_wxDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxIcon, _p_wxIconTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDC, _p_wxWindowDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGDIObject, _p_wxGDIObjectTo_p_wxObject, 0, 0}, {&_swigt__p_wxEffects, _p_wxEffectsTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPostScriptDC, _p_wxPostScriptDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPrinterDC, _p_wxPrinterDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxScreenDC, _p_wxScreenDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPalette, _p_wxPaletteTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageList, _p_wxImageListTo_p_wxObject, 0, 0}, {&_swigt__p_wxCursor, _p_wxCursorTo_p_wxObject, 0, 0}, {&_swigt__p_wxObject, 0, 0, 0}, {&_swigt__p_wxMirrorDC, _p_wxMirrorDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxEncodingConverter, _p_wxEncodingConverterTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMetaFileDC, _p_wxMetaFileDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileSystem, _p_wxFileSystemTo_p_wxObject, 0, 0}, {&_swigt__p_wxBitmap, _p_wxBitmapTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBrush, _p_wxBrushTo_p_wxObject, 0, 0}, {&_swigt__p_wxMetaFile, _p_wxMetaFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxColour, _p_wxColourTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}};
26279 static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
26280 static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
26281 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
26282 static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
26283 static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
26284 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
26285 static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
26286 static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
26287 static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
26288 static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
26289 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
26290 static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
26291 static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
26292 static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
26293 static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
26294 static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
26295 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
26296 static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
26297 static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
26298 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
26299 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}};
26300 static swig_cast_info _swigc__p_wxWindowDC[] = { {&_swigt__p_wxWindowDC, 0, 0, 0},{0, 0, 0, 0}};
26301
26302 static swig_cast_info *swig_cast_initial[] = {
26303 _swigc__p_char,
26304 _swigc__p_double,
26305 _swigc__p_form_ops_t,
26306 _swigc__p_int,
26307 _swigc__p_unsigned_char,
26308 _swigc__p_unsigned_int,
26309 _swigc__p_unsigned_long,
26310 _swigc__p_wxANIHandler,
26311 _swigc__p_wxAcceleratorTable,
26312 _swigc__p_wxActivateEvent,
26313 _swigc__p_wxBMPHandler,
26314 _swigc__p_wxBitmap,
26315 _swigc__p_wxBoxSizer,
26316 _swigc__p_wxBrush,
26317 _swigc__p_wxBrushList,
26318 _swigc__p_wxBufferedDC,
26319 _swigc__p_wxBufferedPaintDC,
26320 _swigc__p_wxCURHandler,
26321 _swigc__p_wxChildFocusEvent,
26322 _swigc__p_wxClientDC,
26323 _swigc__p_wxClipboardTextEvent,
26324 _swigc__p_wxCloseEvent,
26325 _swigc__p_wxColour,
26326 _swigc__p_wxColourDatabase,
26327 _swigc__p_wxCommandEvent,
26328 _swigc__p_wxContextMenuEvent,
26329 _swigc__p_wxControl,
26330 _swigc__p_wxControlWithItems,
26331 _swigc__p_wxCursor,
26332 _swigc__p_wxDC,
26333 _swigc__p_wxDash,
26334 _swigc__p_wxDateEvent,
26335 _swigc__p_wxDisplayChangedEvent,
26336 _swigc__p_wxDropFilesEvent,
26337 _swigc__p_wxDuplexMode,
26338 _swigc__p_wxEffects,
26339 _swigc__p_wxEncodingConverter,
26340 _swigc__p_wxEraseEvent,
26341 _swigc__p_wxEvent,
26342 _swigc__p_wxEvtHandler,
26343 _swigc__p_wxFSFile,
26344 _swigc__p_wxFileSystem,
26345 _swigc__p_wxFlexGridSizer,
26346 _swigc__p_wxFocusEvent,
26347 _swigc__p_wxFont,
26348 _swigc__p_wxFontList,
26349 _swigc__p_wxFontMapper,
26350 _swigc__p_wxGBSizerItem,
26351 _swigc__p_wxGDIObjListBase,
26352 _swigc__p_wxGDIObject,
26353 _swigc__p_wxGIFHandler,
26354 _swigc__p_wxGridBagSizer,
26355 _swigc__p_wxGridSizer,
26356 _swigc__p_wxICOHandler,
26357 _swigc__p_wxIcon,
26358 _swigc__p_wxIconBundle,
26359 _swigc__p_wxIconLocation,
26360 _swigc__p_wxIconizeEvent,
26361 _swigc__p_wxIdleEvent,
26362 _swigc__p_wxImage,
26363 _swigc__p_wxImageHandler,
26364 _swigc__p_wxImageList,
26365 _swigc__p_wxIndividualLayoutConstraint,
26366 _swigc__p_wxInitDialogEvent,
26367 _swigc__p_wxJPEGHandler,
26368 _swigc__p_wxKeyEvent,
26369 _swigc__p_wxLanguageInfo,
26370 _swigc__p_wxLayoutConstraints,
26371 _swigc__p_wxLocale,
26372 _swigc__p_wxMask,
26373 _swigc__p_wxMaximizeEvent,
26374 _swigc__p_wxMemoryDC,
26375 _swigc__p_wxMenu,
26376 _swigc__p_wxMenuBar,
26377 _swigc__p_wxMenuEvent,
26378 _swigc__p_wxMenuItem,
26379 _swigc__p_wxMetaFile,
26380 _swigc__p_wxMetaFileDC,
26381 _swigc__p_wxMirrorDC,
26382 _swigc__p_wxMouseCaptureChangedEvent,
26383 _swigc__p_wxMouseEvent,
26384 _swigc__p_wxMoveEvent,
26385 _swigc__p_wxNativeEncodingInfo,
26386 _swigc__p_wxNativeFontInfo,
26387 _swigc__p_wxNavigationKeyEvent,
26388 _swigc__p_wxNcPaintEvent,
26389 _swigc__p_wxNotifyEvent,
26390 _swigc__p_wxObject,
26391 _swigc__p_wxPCXHandler,
26392 _swigc__p_wxPNGHandler,
26393 _swigc__p_wxPNMHandler,
26394 _swigc__p_wxPaintDC,
26395 _swigc__p_wxPaintEvent,
26396 _swigc__p_wxPalette,
26397 _swigc__p_wxPaletteChangedEvent,
26398 _swigc__p_wxPaperSize,
26399 _swigc__p_wxPen,
26400 _swigc__p_wxPenList,
26401 _swigc__p_wxPoint,
26402 _swigc__p_wxPostScriptDC,
26403 _swigc__p_wxPrintData,
26404 _swigc__p_wxPrinterDC,
26405 _swigc__p_wxPyApp,
26406 _swigc__p_wxPyCommandEvent,
26407 _swigc__p_wxPyEvent,
26408 _swigc__p_wxPyFontEnumerator,
26409 _swigc__p_wxPyImageHandler,
26410 _swigc__p_wxPySizer,
26411 _swigc__p_wxPyValidator,
26412 _swigc__p_wxQueryNewPaletteEvent,
26413 _swigc__p_wxRect,
26414 _swigc__p_wxRegion,
26415 _swigc__p_wxRegionIterator,
26416 _swigc__p_wxRendererNative,
26417 _swigc__p_wxRendererVersion,
26418 _swigc__p_wxScreenDC,
26419 _swigc__p_wxScrollEvent,
26420 _swigc__p_wxScrollWinEvent,
26421 _swigc__p_wxSetCursorEvent,
26422 _swigc__p_wxShowEvent,
26423 _swigc__p_wxSize,
26424 _swigc__p_wxSizeEvent,
26425 _swigc__p_wxSizer,
26426 _swigc__p_wxSizerItem,
26427 _swigc__p_wxSplitterRenderParams,
26428 _swigc__p_wxStaticBoxSizer,
26429 _swigc__p_wxStdDialogButtonSizer,
26430 _swigc__p_wxStockGDI,
26431 _swigc__p_wxString,
26432 _swigc__p_wxSysColourChangedEvent,
26433 _swigc__p_wxTIFFHandler,
26434 _swigc__p_wxUpdateUIEvent,
26435 _swigc__p_wxValidator,
26436 _swigc__p_wxWindow,
26437 _swigc__p_wxWindowCreateEvent,
26438 _swigc__p_wxWindowDC,
26439 _swigc__p_wxWindowDestroyEvent,
26440 _swigc__p_wxXPMHandler,
26441 };
26442
26443
26444 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
26445
26446 static swig_const_info swig_const_table[] = {
26447 {0, 0, 0, 0.0, 0, 0}};
26448
26449 #ifdef __cplusplus
26450 }
26451 #endif
26452 /* -----------------------------------------------------------------------------
26453 * Type initialization:
26454 * This problem is tough by the requirement that no dynamic
26455 * memory is used. Also, since swig_type_info structures store pointers to
26456 * swig_cast_info structures and swig_cast_info structures store pointers back
26457 * to swig_type_info structures, we need some lookup code at initialization.
26458 * The idea is that swig generates all the structures that are needed.
26459 * The runtime then collects these partially filled structures.
26460 * The SWIG_InitializeModule function takes these initial arrays out of
26461 * swig_module, and does all the lookup, filling in the swig_module.types
26462 * array with the correct data and linking the correct swig_cast_info
26463 * structures together.
26464 *
26465 * The generated swig_type_info structures are assigned staticly to an initial
26466 * array. We just loop though that array, and handle each type individually.
26467 * First we lookup if this type has been already loaded, and if so, use the
26468 * loaded structure instead of the generated one. Then we have to fill in the
26469 * cast linked list. The cast data is initially stored in something like a
26470 * two-dimensional array. Each row corresponds to a type (there are the same
26471 * number of rows as there are in the swig_type_initial array). Each entry in
26472 * a column is one of the swig_cast_info structures for that type.
26473 * The cast_initial array is actually an array of arrays, because each row has
26474 * a variable number of columns. So to actually build the cast linked list,
26475 * we find the array of casts associated with the type, and loop through it
26476 * adding the casts to the list. The one last trick we need to do is making
26477 * sure the type pointer in the swig_cast_info struct is correct.
26478 *
26479 * First off, we lookup the cast->type name to see if it is already loaded.
26480 * There are three cases to handle:
26481 * 1) If the cast->type has already been loaded AND the type we are adding
26482 * casting info to has not been loaded (it is in this module), THEN we
26483 * replace the cast->type pointer with the type pointer that has already
26484 * been loaded.
26485 * 2) If BOTH types (the one we are adding casting info to, and the
26486 * cast->type) are loaded, THEN the cast info has already been loaded by
26487 * the previous module so we just ignore it.
26488 * 3) Finally, if cast->type has not already been loaded, then we add that
26489 * swig_cast_info to the linked list (because the cast->type) pointer will
26490 * be correct.
26491 * ----------------------------------------------------------------------------- */
26492
26493 #ifdef __cplusplus
26494 extern "C" {
26495 #if 0
26496 } /* c-mode */
26497 #endif
26498 #endif
26499
26500 #if 0
26501 #define SWIGRUNTIME_DEBUG
26502 #endif
26503
26504 SWIGRUNTIME void
26505 SWIG_InitializeModule(void *clientdata) {
26506 size_t i;
26507 swig_module_info *module_head;
26508 static int init_run = 0;
26509
26510 clientdata = clientdata;
26511
26512 if (init_run) return;
26513 init_run = 1;
26514
26515 /* Initialize the swig_module */
26516 swig_module.type_initial = swig_type_initial;
26517 swig_module.cast_initial = swig_cast_initial;
26518
26519 /* Try and load any already created modules */
26520 module_head = SWIG_GetModule(clientdata);
26521 if (module_head) {
26522 swig_module.next = module_head->next;
26523 module_head->next = &swig_module;
26524 } else {
26525 /* This is the first module loaded */
26526 swig_module.next = &swig_module;
26527 SWIG_SetModule(clientdata, &swig_module);
26528 }
26529
26530 /* Now work on filling in swig_module.types */
26531 #ifdef SWIGRUNTIME_DEBUG
26532 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
26533 #endif
26534 for (i = 0; i < swig_module.size; ++i) {
26535 swig_type_info *type = 0;
26536 swig_type_info *ret;
26537 swig_cast_info *cast;
26538
26539 #ifdef SWIGRUNTIME_DEBUG
26540 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
26541 #endif
26542
26543 /* if there is another module already loaded */
26544 if (swig_module.next != &swig_module) {
26545 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
26546 }
26547 if (type) {
26548 /* Overwrite clientdata field */
26549 #ifdef SWIGRUNTIME_DEBUG
26550 printf("SWIG_InitializeModule: found type %s\n", type->name);
26551 #endif
26552 if (swig_module.type_initial[i]->clientdata) {
26553 type->clientdata = swig_module.type_initial[i]->clientdata;
26554 #ifdef SWIGRUNTIME_DEBUG
26555 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
26556 #endif
26557 }
26558 } else {
26559 type = swig_module.type_initial[i];
26560 }
26561
26562 /* Insert casting types */
26563 cast = swig_module.cast_initial[i];
26564 while (cast->type) {
26565 /* Don't need to add information already in the list */
26566 ret = 0;
26567 #ifdef SWIGRUNTIME_DEBUG
26568 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
26569 #endif
26570 if (swig_module.next != &swig_module) {
26571 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
26572 #ifdef SWIGRUNTIME_DEBUG
26573 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
26574 #endif
26575 }
26576 if (ret) {
26577 if (type == swig_module.type_initial[i]) {
26578 #ifdef SWIGRUNTIME_DEBUG
26579 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
26580 #endif
26581 cast->type = ret;
26582 ret = 0;
26583 } else {
26584 /* Check for casting already in the list */
26585 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
26586 #ifdef SWIGRUNTIME_DEBUG
26587 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
26588 #endif
26589 if (!ocast) ret = 0;
26590 }
26591 }
26592
26593 if (!ret) {
26594 #ifdef SWIGRUNTIME_DEBUG
26595 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
26596 #endif
26597 if (type->cast) {
26598 type->cast->prev = cast;
26599 cast->next = type->cast;
26600 }
26601 type->cast = cast;
26602 }
26603 cast++;
26604 }
26605 /* Set entry in modules->types array equal to the type */
26606 swig_module.types[i] = type;
26607 }
26608 swig_module.types[i] = 0;
26609
26610 #ifdef SWIGRUNTIME_DEBUG
26611 printf("**** SWIG_InitializeModule: Cast List ******\n");
26612 for (i = 0; i < swig_module.size; ++i) {
26613 int j = 0;
26614 swig_cast_info *cast = swig_module.cast_initial[i];
26615 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
26616 while (cast->type) {
26617 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
26618 cast++;
26619 ++j;
26620 }
26621 printf("---- Total casts: %d\n",j);
26622 }
26623 printf("**** SWIG_InitializeModule: Cast List ******\n");
26624 #endif
26625 }
26626
26627 /* This function will propagate the clientdata field of type to
26628 * any new swig_type_info structures that have been added into the list
26629 * of equivalent types. It is like calling
26630 * SWIG_TypeClientData(type, clientdata) a second time.
26631 */
26632 SWIGRUNTIME void
26633 SWIG_PropagateClientData(void) {
26634 size_t i;
26635 swig_cast_info *equiv;
26636 static int init_run = 0;
26637
26638 if (init_run) return;
26639 init_run = 1;
26640
26641 for (i = 0; i < swig_module.size; i++) {
26642 if (swig_module.types[i]->clientdata) {
26643 equiv = swig_module.types[i]->cast;
26644 while (equiv) {
26645 if (!equiv->converter) {
26646 if (equiv->type && !equiv->type->clientdata)
26647 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
26648 }
26649 equiv = equiv->next;
26650 }
26651 }
26652 }
26653 }
26654
26655 #ifdef __cplusplus
26656 #if 0
26657 {
26658 /* c-mode */
26659 #endif
26660 }
26661 #endif
26662
26663
26664
26665 #ifdef __cplusplus
26666 extern "C" {
26667 #endif
26668
26669 /* Python-specific SWIG API */
26670 #define SWIG_newvarlink() SWIG_Python_newvarlink()
26671 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
26672 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
26673
26674 /* -----------------------------------------------------------------------------
26675 * global variable support code.
26676 * ----------------------------------------------------------------------------- */
26677
26678 typedef struct swig_globalvar {
26679 char *name; /* Name of global variable */
26680 PyObject *(*get_attr)(void); /* Return the current value */
26681 int (*set_attr)(PyObject *); /* Set the value */
26682 struct swig_globalvar *next;
26683 } swig_globalvar;
26684
26685 typedef struct swig_varlinkobject {
26686 PyObject_HEAD
26687 swig_globalvar *vars;
26688 } swig_varlinkobject;
26689
26690 SWIGINTERN PyObject *
26691 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
26692 return PyString_FromString("<Swig global variables>");
26693 }
26694
26695 SWIGINTERN PyObject *
26696 swig_varlink_str(swig_varlinkobject *v) {
26697 PyObject *str = PyString_FromString("(");
26698 swig_globalvar *var;
26699 for (var = v->vars; var; var=var->next) {
26700 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
26701 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
26702 }
26703 PyString_ConcatAndDel(&str,PyString_FromString(")"));
26704 return str;
26705 }
26706
26707 SWIGINTERN int
26708 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
26709 PyObject *str = swig_varlink_str(v);
26710 fprintf(fp,"Swig global variables ");
26711 fprintf(fp,"%s\n", PyString_AsString(str));
26712 Py_DECREF(str);
26713 return 0;
26714 }
26715
26716 SWIGINTERN void
26717 swig_varlink_dealloc(swig_varlinkobject *v) {
26718 swig_globalvar *var = v->vars;
26719 while (var) {
26720 swig_globalvar *n = var->next;
26721 free(var->name);
26722 free(var);
26723 var = n;
26724 }
26725 }
26726
26727 SWIGINTERN PyObject *
26728 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
26729 PyObject *res = NULL;
26730 swig_globalvar *var = v->vars;
26731 while (var) {
26732 if (strcmp(var->name,n) == 0) {
26733 res = (*var->get_attr)();
26734 break;
26735 }
26736 var = var->next;
26737 }
26738 if (res == NULL && !PyErr_Occurred()) {
26739 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
26740 }
26741 return res;
26742 }
26743
26744 SWIGINTERN int
26745 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
26746 int res = 1;
26747 swig_globalvar *var = v->vars;
26748 while (var) {
26749 if (strcmp(var->name,n) == 0) {
26750 res = (*var->set_attr)(p);
26751 break;
26752 }
26753 var = var->next;
26754 }
26755 if (res == 1 && !PyErr_Occurred()) {
26756 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
26757 }
26758 return res;
26759 }
26760
26761 SWIGINTERN PyTypeObject*
26762 swig_varlink_type(void) {
26763 static char varlink__doc__[] = "Swig var link object";
26764 static PyTypeObject varlink_type;
26765 static int type_init = 0;
26766 if (!type_init) {
26767 const PyTypeObject tmp
26768 = {
26769 PyObject_HEAD_INIT(NULL)
26770 0, /* Number of items in variable part (ob_size) */
26771 (char *)"swigvarlink", /* Type name (tp_name) */
26772 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
26773 0, /* Itemsize (tp_itemsize) */
26774 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
26775 (printfunc) swig_varlink_print, /* Print (tp_print) */
26776 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
26777 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
26778 0, /* tp_compare */
26779 (reprfunc) swig_varlink_repr, /* tp_repr */
26780 0, /* tp_as_number */
26781 0, /* tp_as_sequence */
26782 0, /* tp_as_mapping */
26783 0, /* tp_hash */
26784 0, /* tp_call */
26785 (reprfunc)swig_varlink_str, /* tp_str */
26786 0, /* tp_getattro */
26787 0, /* tp_setattro */
26788 0, /* tp_as_buffer */
26789 0, /* tp_flags */
26790 varlink__doc__, /* tp_doc */
26791 0, /* tp_traverse */
26792 0, /* tp_clear */
26793 0, /* tp_richcompare */
26794 0, /* tp_weaklistoffset */
26795 #if PY_VERSION_HEX >= 0x02020000
26796 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
26797 #endif
26798 #if PY_VERSION_HEX >= 0x02030000
26799 0, /* tp_del */
26800 #endif
26801 #ifdef COUNT_ALLOCS
26802 0,0,0,0 /* tp_alloc -> tp_next */
26803 #endif
26804 };
26805 varlink_type = tmp;
26806 varlink_type.ob_type = &PyType_Type;
26807 type_init = 1;
26808 }
26809 return &varlink_type;
26810 }
26811
26812 /* Create a variable linking object for use later */
26813 SWIGINTERN PyObject *
26814 SWIG_Python_newvarlink(void) {
26815 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
26816 if (result) {
26817 result->vars = 0;
26818 }
26819 return ((PyObject*) result);
26820 }
26821
26822 SWIGINTERN void
26823 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
26824 swig_varlinkobject *v = (swig_varlinkobject *) p;
26825 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
26826 if (gv) {
26827 size_t size = strlen(name)+1;
26828 gv->name = (char *)malloc(size);
26829 if (gv->name) {
26830 strncpy(gv->name,name,size);
26831 gv->get_attr = get_attr;
26832 gv->set_attr = set_attr;
26833 gv->next = v->vars;
26834 }
26835 }
26836 v->vars = gv;
26837 }
26838
26839 SWIGINTERN PyObject *
26840 SWIG_globals() {
26841 static PyObject *_SWIG_globals = 0;
26842 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
26843 return _SWIG_globals;
26844 }
26845
26846 /* -----------------------------------------------------------------------------
26847 * constants/methods manipulation
26848 * ----------------------------------------------------------------------------- */
26849
26850 /* Install Constants */
26851 SWIGINTERN void
26852 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
26853 PyObject *obj = 0;
26854 size_t i;
26855 for (i = 0; constants[i].type; ++i) {
26856 switch(constants[i].type) {
26857 case SWIG_PY_POINTER:
26858 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
26859 break;
26860 case SWIG_PY_BINARY:
26861 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
26862 break;
26863 default:
26864 obj = 0;
26865 break;
26866 }
26867 if (obj) {
26868 PyDict_SetItemString(d, constants[i].name, obj);
26869 Py_DECREF(obj);
26870 }
26871 }
26872 }
26873
26874 /* -----------------------------------------------------------------------------*/
26875 /* Fix SwigMethods to carry the callback ptrs when needed */
26876 /* -----------------------------------------------------------------------------*/
26877
26878 SWIGINTERN void
26879 SWIG_Python_FixMethods(PyMethodDef *methods,
26880 swig_const_info *const_table,
26881 swig_type_info **types,
26882 swig_type_info **types_initial) {
26883 size_t i;
26884 for (i = 0; methods[i].ml_name; ++i) {
26885 char *c = methods[i].ml_doc;
26886 if (c && (c = strstr(c, "swig_ptr: "))) {
26887 int j;
26888 swig_const_info *ci = 0;
26889 char *name = c + 10;
26890 for (j = 0; const_table[j].type; ++j) {
26891 if (strncmp(const_table[j].name, name,
26892 strlen(const_table[j].name)) == 0) {
26893 ci = &(const_table[j]);
26894 break;
26895 }
26896 }
26897 if (ci) {
26898 size_t shift = (ci->ptype) - types;
26899 swig_type_info *ty = types_initial[shift];
26900 size_t ldoc = (c - methods[i].ml_doc);
26901 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
26902 char *ndoc = (char*)malloc(ldoc + lptr + 10);
26903 if (ndoc) {
26904 char *buff = ndoc;
26905 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
26906 if (ptr) {
26907 strncpy(buff, methods[i].ml_doc, ldoc);
26908 buff += ldoc;
26909 strncpy(buff, "swig_ptr: ", 10);
26910 buff += 10;
26911 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
26912 methods[i].ml_doc = ndoc;
26913 }
26914 }
26915 }
26916 }
26917 }
26918 }
26919
26920 #ifdef __cplusplus
26921 }
26922 #endif
26923
26924 /* -----------------------------------------------------------------------------*
26925 * Partial Init method
26926 * -----------------------------------------------------------------------------*/
26927
26928 #ifdef __cplusplus
26929 extern "C"
26930 #endif
26931 SWIGEXPORT void SWIG_init(void) {
26932 PyObject *m, *d;
26933
26934 /* Fix SwigMethods to carry the callback ptrs when needed */
26935 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
26936
26937 m = Py_InitModule((char *) SWIG_name, SwigMethods);
26938 d = PyModule_GetDict(m);
26939
26940 SWIG_InitializeModule(0);
26941 SWIG_InstallConstants(d,swig_const_table);
26942
26943
26944 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
26945 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
26946 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
26947 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
26948 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
26949 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
26950 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
26951 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
26952 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
26953 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
26954 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
26955 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
26956 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
26957 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
26958 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
26959 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
26960 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
26961 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
26962 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
26963 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
26964 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
26965 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
26966 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
26967 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
26968 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
26969 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
26970 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
26971 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
26972 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
26973 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
26974 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
26975 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
26976 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
26977 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
26978 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
26979 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
26980 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
26981 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
26982 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
26983 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
26984 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
26985 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
26986 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
26987 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
26988 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
26989 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
26990 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
26991 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
26992 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
26993 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
26994 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
26995 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
26996 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
26997 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
26998 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
26999 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
27000 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
27001 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
27002 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
27003 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
27004 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
27005 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
27006 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
27007 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
27008 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
27009 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
27010 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
27011 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
27012 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
27013 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
27014 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
27015 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
27016 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
27017 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
27018 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
27019 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
27020 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
27021 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
27022 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
27023 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
27024 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
27025 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
27026 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
27027 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
27028 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
27029 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
27030 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
27031 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
27032 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
27033 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
27034 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
27035 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
27036 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
27037 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
27038 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
27039 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
27040 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
27041 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
27042 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
27043 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
27044 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
27045 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
27046 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
27047 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
27048 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
27049 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
27050 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
27051 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
27052 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
27053 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
27054 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
27055 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
27056 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
27057 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
27058 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
27059 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
27060 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
27061 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
27062 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
27063 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
27064 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
27065 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
27066 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
27067 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
27068 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
27069 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
27070 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
27071 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
27072 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
27073 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
27074
27075 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
27076
27077 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
27078 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
27079 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
27080 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
27081 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
27082 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
27083 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
27084 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
27085 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
27086 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
27087 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
27088 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
27089 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
27090 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
27091 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
27092 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
27093 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
27094 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
27095 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
27096 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
27097 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
27098 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
27099 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
27100 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
27101 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
27102 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
27103 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
27104 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
27105 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
27106 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
27107 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
27108 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
27109 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
27110 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
27111 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
27112 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
27113 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
27114 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
27115 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
27116 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
27117 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
27118 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
27119 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
27120 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
27121 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
27122 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
27123 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
27124 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
27125 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
27126 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
27127 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
27128 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
27129 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
27130 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
27131 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
27132 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
27133 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
27134 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
27135 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
27136 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
27137 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
27138 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
27139 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
27140 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
27141 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
27142 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
27143 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
27144 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
27145 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
27146 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
27147 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
27148 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
27149 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
27150 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
27151 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
27152 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
27153 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
27154 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
27155 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
27156 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
27157 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
27158 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
27159 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
27160 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
27161 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
27162 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
27163 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
27164 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
27165 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
27166 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
27167 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
27168 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
27169 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
27170 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
27171 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
27172 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
27173 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
27174 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
27175 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
27176 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
27177 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
27178 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
27179 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
27180 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
27181 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
27182 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
27183 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
27184 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
27185 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
27186 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
27187 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
27188 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
27189 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
27190 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
27191 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
27192 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
27193 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
27194 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
27195 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
27196 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
27197 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
27198 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
27199 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
27200 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
27201 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
27202 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
27203 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
27204 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
27205 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
27206 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
27207 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
27208 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
27209 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
27210 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
27211 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
27212 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
27213 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
27214 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
27215 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
27216 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
27217 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
27218 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
27219 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
27220 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
27221 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
27222 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
27223 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
27224 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
27225 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
27226 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
27227 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
27228 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
27229 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
27230 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
27231 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
27232 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
27233 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
27234 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
27235 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
27236 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
27237 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
27238 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
27239 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
27240 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
27241 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
27242 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
27243 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
27244 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
27245 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
27246 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
27247 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
27248 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
27249 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
27250 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
27251 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
27252 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
27253 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
27254 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
27255 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
27256 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
27257 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
27258 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
27259 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
27260 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
27261 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
27262 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
27263 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
27264 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
27265 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
27266 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
27267 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
27268 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
27269 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
27270 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
27271 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
27272 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
27273 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
27274 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
27275 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
27276 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
27277 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
27278 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
27279 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
27280 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
27281 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
27282 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
27283 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
27284 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
27285 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
27286 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
27287 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
27288 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
27289 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
27290 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
27291 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
27292 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
27293 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
27294 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
27295 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
27296 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
27297 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
27298 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
27299 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
27300 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
27301 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
27302 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
27303 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
27304 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
27305 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
27306 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
27307 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
27308 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
27309 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
27310 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
27311 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
27312 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
27313 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
27314 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
27315 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
27316 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
27317 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
27318 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
27319 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
27320 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
27321 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
27322 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
27323 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
27324 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
27325 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
27326 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
27327 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
27328 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
27329 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
27330 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
27331 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
27332 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
27333 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
27334 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
27335 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
27336 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
27337 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
27338 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
27339 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
27340 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
27341 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
27342 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
27343 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
27344 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
27345 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
27346 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
27347 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
27348 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
27349 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
27350 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
27351 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
27352 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
27353 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
27354 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
27355 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
27356 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
27357 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
27358 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
27359 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
27360 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
27361 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
27362 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
27363 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
27364 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
27365 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
27366 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
27367 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
27368 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
27369 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
27370 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
27371 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
27372 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
27373 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
27374 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
27375 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
27376 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
27377 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
27378 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
27379 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
27380 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
27381 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
27382 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
27383 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
27384 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
27385 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
27386 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
27387 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
27388 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
27389 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
27390 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
27391
27392 // Work around a chicken/egg problem in drawlist.cpp
27393 wxPyDrawList_SetAPIPtr();
27394
27395 }
27396