]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/mac/_gdi_wrap.cpp
Now that the typemap is handling buffer-compatible objects correctly
[wxWidgets.git] / wxPython / src / mac / _gdi_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.29
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_PYTHON_DIRECTOR_NO_VTABLE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30 /* -----------------------------------------------------------------------------
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
33 * ----------------------------------------------------------------------------- */
34
35 /* template workaround for compilers that cannot correctly implement the C++ standard */
36 #ifndef SWIGTEMPLATEDISAMBIGUATOR
37 # if defined(__SUNPRO_CC)
38 # if (__SUNPRO_CC <= 0x560)
39 # define SWIGTEMPLATEDISAMBIGUATOR template
40 # else
41 # define SWIGTEMPLATEDISAMBIGUATOR
42 # endif
43 # else
44 # define SWIGTEMPLATEDISAMBIGUATOR
45 # endif
46 #endif
47
48 /* inline attribute */
49 #ifndef SWIGINLINE
50 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51 # define SWIGINLINE inline
52 # else
53 # define SWIGINLINE
54 # endif
55 #endif
56
57 /* attribute recognised by some compilers to avoid 'unused' warnings */
58 #ifndef SWIGUNUSED
59 # if defined(__GNUC__)
60 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61 # define SWIGUNUSED __attribute__ ((__unused__))
62 # else
63 # define SWIGUNUSED
64 # endif
65 # elif defined(__ICC)
66 # define SWIGUNUSED __attribute__ ((__unused__))
67 # else
68 # define SWIGUNUSED
69 # endif
70 #endif
71
72 #ifndef SWIGUNUSEDPARM
73 # ifdef __cplusplus
74 # define SWIGUNUSEDPARM(p)
75 # else
76 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
77 # endif
78 #endif
79
80 /* internal SWIG method */
81 #ifndef SWIGINTERN
82 # define SWIGINTERN static SWIGUNUSED
83 #endif
84
85 /* internal inline SWIG method */
86 #ifndef SWIGINTERNINLINE
87 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88 #endif
89
90 /* exporting methods */
91 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92 # ifndef GCC_HASCLASSVISIBILITY
93 # define GCC_HASCLASSVISIBILITY
94 # endif
95 #endif
96
97 #ifndef SWIGEXPORT
98 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99 # if defined(STATIC_LINKED)
100 # define SWIGEXPORT
101 # else
102 # define SWIGEXPORT __declspec(dllexport)
103 # endif
104 # else
105 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106 # define SWIGEXPORT __attribute__ ((visibility("default")))
107 # else
108 # define SWIGEXPORT
109 # endif
110 # endif
111 #endif
112
113 /* calling conventions for Windows */
114 #ifndef SWIGSTDCALL
115 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116 # define SWIGSTDCALL __stdcall
117 # else
118 # define SWIGSTDCALL
119 # endif
120 #endif
121
122 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124 # define _CRT_SECURE_NO_DEPRECATE
125 #endif
126
127
128 /* Python.h has to appear first */
129 #include <Python.h>
130
131 /* -----------------------------------------------------------------------------
132 * swigrun.swg
133 *
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
137
138 /* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
140 #define SWIG_RUNTIME_VERSION "2"
141
142 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143 #ifdef SWIG_TYPE_TABLE
144 # define SWIG_QUOTE_STRING(x) #x
145 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
147 #else
148 # define SWIG_TYPE_TABLE_NAME
149 #endif
150
151 /*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158 */
159
160 #ifndef SWIGRUNTIME
161 # define SWIGRUNTIME SWIGINTERN
162 #endif
163
164 #ifndef SWIGRUNTIMEINLINE
165 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
166 #endif
167
168 /* Generic buffer size */
169 #ifndef SWIG_BUFFER_SIZE
170 # define SWIG_BUFFER_SIZE 1024
171 #endif
172
173 /* Flags for pointer conversions */
174 #define SWIG_POINTER_DISOWN 0x1
175
176 /* Flags for new pointer objects */
177 #define SWIG_POINTER_OWN 0x1
178
179
180 /*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260 #define SWIG_OK (0)
261 #define SWIG_ERROR (-1)
262 #define SWIG_IsOK(r) (r >= 0)
263 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265 /* The CastRankLimit says how many bits are used for the cast rank */
266 #define SWIG_CASTRANKLIMIT (1 << 8)
267 /* The NewMask denotes the object was created (using new/malloc) */
268 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269 /* The TmpMask is for in/out typemaps that use temporal objects */
270 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271 /* Simple returning values */
272 #define SWIG_BADOBJ (SWIG_ERROR)
273 #define SWIG_OLDOBJ (SWIG_OK)
274 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276 /* Check, add and del mask methods */
277 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285 /* Cast-Rank Mode */
286 #if defined(SWIG_CASTRANK_MODE)
287 # ifndef SWIG_TypeRank
288 # define SWIG_TypeRank unsigned long
289 # endif
290 # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291 # define SWIG_MAXCASTRANK (2)
292 # endif
293 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295 SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297 }
298 SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300 }
301 #else /* no cast-rank mode */
302 # define SWIG_AddCast
303 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304 #endif
305
306
307
308
309 #include <string.h>
310
311 #ifdef __cplusplus
312 extern "C" {
313 #endif
314
315 typedef void *(*swig_converter_func)(void *);
316 typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
318 /* Structure to store inforomation on one type */
319 typedef struct swig_type_info {
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
325 int owndata; /* flag if the structure owns the clientdata */
326 } swig_type_info;
327
328 /* Structure to store a type and conversion function used for casting */
329 typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334 } swig_cast_info;
335
336 /* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339 typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346 } swig_module_info;
347
348 /*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354 */
355 SWIGRUNTIME int
356 SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
362 }
363 return (l1 - f1) - (l2 - f2);
364 }
365
366 /*
367 Check type equivalence in a name list like <name1>|<name2>|...
368 Return 0 if not equal, 1 if equal
369 */
370 SWIGRUNTIME int
371 SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
380 if (*ne) ++ne;
381 }
382 return equiv;
383 }
384
385 /*
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
388 */
389 SWIGRUNTIME int
390 SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
397 }
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
400 }
401 return equiv;
402 }
403
404
405 /* think of this as a c++ template<> or a scheme macro */
406 #define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
427 /*
428 Check the typename
429 */
430 SWIGRUNTIME swig_cast_info *
431 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433 }
434
435 /* Same as previous function, except strcmp is replaced with a pointer comparison */
436 SWIGRUNTIME swig_cast_info *
437 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
439 }
440
441 /*
442 Cast a pointer up an inheritance hierarchy
443 */
444 SWIGRUNTIMEINLINE void *
445 SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447 }
448
449 /*
450 Dynamic pointer casting. Down an inheritance hierarchy
451 */
452 SWIGRUNTIME swig_type_info *
453 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461 }
462
463 /*
464 Return the name associated with this type
465 */
466 SWIGRUNTIMEINLINE const char *
467 SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469 }
470
471 /*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474 */
475 SWIGRUNTIME const char *
476 SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
481 if (!type) return NULL;
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491 }
492
493 /*
494 Set the clientdata field for a type
495 */
496 SWIGRUNTIME void
497 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
507 }
508 }
509 cast = cast->next;
510 }
511 }
512 SWIGRUNTIME void
513 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516 }
517
518 /*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525 */
526 SWIGRUNTIME swig_type_info *
527 SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
556 }
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560 }
561
562 /*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570 */
571 SWIGRUNTIME swig_type_info *
572 SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
591 }
592
593 /* neither found a match */
594 return 0;
595 }
596
597 /*
598 Pack binary data into a string
599 */
600 SWIGRUNTIME char *
601 SWIG_PackData(char *c, void *ptr, size_t sz) {
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
605 for (; u != eu; ++u) {
606 register unsigned char uu = *u;
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611 }
612
613 /*
614 Unpack binary data from a string
615 */
616 SWIGRUNTIME const char *
617 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
619 register const unsigned char *eu = u + sz;
620 for (; u != eu; ++u) {
621 register char d = *(c++);
622 register unsigned char uu;
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639 }
640
641 /*
642 Pack 'void *' into a string buffer.
643 */
644 SWIGRUNTIME char *
645 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653 }
654
655 SWIGRUNTIME const char *
656 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666 }
667
668 SWIGRUNTIME char *
669 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681 }
682
683 SWIGRUNTIME const char *
684 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694 }
695
696 #ifdef __cplusplus
697 }
698 #endif
699
700 /* Errors in SWIG */
701 #define SWIG_UnknownError -1
702 #define SWIG_IOError -2
703 #define SWIG_RuntimeError -3
704 #define SWIG_IndexError -4
705 #define SWIG_TypeError -5
706 #define SWIG_DivisionByZero -6
707 #define SWIG_OverflowError -7
708 #define SWIG_SyntaxError -8
709 #define SWIG_ValueError -9
710 #define SWIG_SystemError -10
711 #define SWIG_AttributeError -11
712 #define SWIG_MemoryError -12
713 #define SWIG_NullReferenceError -13
714
715
716
717 /* Python.h has to appear first */
718 #include <Python.h>
719
720 /* Add PyOS_snprintf for old Pythons */
721 #if PY_VERSION_HEX < 0x02020000
722 # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723 # define PyOS_snprintf _snprintf
724 # else
725 # define PyOS_snprintf snprintf
726 # endif
727 #endif
728
729 /* A crude PyString_FromFormat implementation for old Pythons */
730 #if PY_VERSION_HEX < 0x02020000
731
732 #ifndef SWIG_PYBUFFER_SIZE
733 # define SWIG_PYBUFFER_SIZE 1024
734 #endif
735
736 static PyObject *
737 PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745 }
746 #endif
747
748 /* Add PyObject_Del for old Pythons */
749 #if PY_VERSION_HEX < 0x01060000
750 # define PyObject_Del(op) PyMem_DEL((op))
751 #endif
752 #ifndef PyObject_DEL
753 # define PyObject_DEL PyObject_Del
754 #endif
755
756 /* A crude PyExc_StopIteration exception for old Pythons */
757 #if PY_VERSION_HEX < 0x02020000
758 # ifndef PyExc_StopIteration
759 # define PyExc_StopIteration PyExc_RuntimeError
760 # endif
761 # ifndef PyObject_GenericGetAttr
762 # define PyObject_GenericGetAttr 0
763 # endif
764 #endif
765 /* Py_NotImplemented is defined in 2.1 and up. */
766 #if PY_VERSION_HEX < 0x02010000
767 # ifndef Py_NotImplemented
768 # define Py_NotImplemented PyExc_RuntimeError
769 # endif
770 #endif
771
772
773 /* A crude PyString_AsStringAndSize implementation for old Pythons */
774 #if PY_VERSION_HEX < 0x02010000
775 # ifndef PyString_AsStringAndSize
776 # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777 # endif
778 #endif
779
780 /* PySequence_Size for old Pythons */
781 #if PY_VERSION_HEX < 0x02000000
782 # ifndef PySequence_Size
783 # define PySequence_Size PySequence_Length
784 # endif
785 #endif
786
787
788 /* PyBool_FromLong for old Pythons */
789 #if PY_VERSION_HEX < 0x02030000
790 static
791 PyObject *PyBool_FromLong(long ok)
792 {
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796 }
797 #endif
798
799
800 /* -----------------------------------------------------------------------------
801 * error manipulation
802 * ----------------------------------------------------------------------------- */
803
804 SWIGRUNTIME PyObject*
805 SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845 }
846
847
848 SWIGRUNTIME void
849 SWIG_Python_AddErrorMsg(const char* mesg)
850 {
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866 }
867
868
869
870 #if defined(SWIG_PYTHON_NO_THREADS)
871 # if defined(SWIG_PYTHON_THREADS)
872 # undef SWIG_PYTHON_THREADS
873 # endif
874 #endif
875 #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876 # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877 # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878 # define SWIG_PYTHON_USE_GIL
879 # endif
880 # endif
881 # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882 # ifndef SWIG_PYTHON_INITIALIZE_THREADS
883 # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884 # endif
885 # ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903 # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905 # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906 # else /* C code */
907 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908 # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910 # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911 # endif
912 # else /* Old thread way, not implemented, user must provide it */
913 # if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914 # define SWIG_PYTHON_INITIALIZE_THREADS
915 # endif
916 # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918 # endif
919 # if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920 # define SWIG_PYTHON_THREAD_END_BLOCK
921 # endif
922 # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924 # endif
925 # if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926 # define SWIG_PYTHON_THREAD_END_ALLOW
927 # endif
928 # endif
929 #else /* No thread support */
930 # define SWIG_PYTHON_INITIALIZE_THREADS
931 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932 # define SWIG_PYTHON_THREAD_END_BLOCK
933 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934 # define SWIG_PYTHON_THREAD_END_ALLOW
935 #endif
936
937 /* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
940
941 #ifdef __cplusplus
942 extern "C" {
943 #if 0
944 } /* cc-mode */
945 #endif
946 #endif
947
948 /* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
951
952 /* Constant Types */
953 #define SWIG_PY_POINTER 4
954 #define SWIG_PY_BINARY 5
955
956 /* Constant information structure */
957 typedef struct swig_const_info {
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
964 } swig_const_info;
965
966 #ifdef __cplusplus
967 #if 0
968 { /* cc-mode */
969 #endif
970 }
971 #endif
972
973
974 /* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
978 * pyrun.swg
979 *
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
983 *
984 * ----------------------------------------------------------------------------- */
985
986 /* Common SWIG API */
987
988 #if PY_VERSION_HEX < 0x02050000
989 typedef int Py_ssize_t;
990 #endif
991
992 /* for raw pointers */
993 #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
994 #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
995 #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
996 #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
997 #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
998 #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
999 #define swig_owntype int
1000
1001 /* for raw packed data */
1002 #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1003 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1004
1005 /* for class or struct pointers */
1006 #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1007 #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
1008
1009 /* for C or C++ function pointers */
1010 #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1011 #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
1012
1013 /* for C++ member pointers, ie, member methods */
1014 #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1015 #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1016
1017
1018 /* Runtime API */
1019
1020 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1021 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1022 #define SWIG_NewClientData(obj) PySwigClientData_New(obj)
1023
1024 #define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1025 #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1026 #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1027 #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1028 #define SWIG_fail goto fail
1029
1030
1031 /* Runtime API implementation */
1032
1033 /* Error manipulation */
1034
1035 SWIGINTERN void
1036 SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1037 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1038 PyErr_SetObject(errtype, obj);
1039 Py_DECREF(obj);
1040 SWIG_PYTHON_THREAD_END_BLOCK;
1041 }
1042
1043 SWIGINTERN void
1044 SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1045 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1046 PyErr_SetString(errtype, (char *) msg);
1047 SWIG_PYTHON_THREAD_END_BLOCK;
1048 }
1049
1050 #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1051
1052 /* Set a constant value */
1053
1054 SWIGINTERN void
1055 SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1056 PyDict_SetItemString(d, (char*) name, obj);
1057 Py_DECREF(obj);
1058 }
1059
1060 /* Append a value to the result obj */
1061
1062 SWIGINTERN PyObject*
1063 SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1064 #if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1065 if (!result) {
1066 result = obj;
1067 } else if (result == Py_None) {
1068 Py_DECREF(result);
1069 result = obj;
1070 } else {
1071 if (!PyList_Check(result)) {
1072 PyObject *o2 = result;
1073 result = PyList_New(1);
1074 PyList_SetItem(result, 0, o2);
1075 }
1076 PyList_Append(result,obj);
1077 Py_DECREF(obj);
1078 }
1079 return result;
1080 #else
1081 PyObject* o2;
1082 PyObject* o3;
1083 if (!result) {
1084 result = obj;
1085 } else if (result == Py_None) {
1086 Py_DECREF(result);
1087 result = obj;
1088 } else {
1089 if (!PyTuple_Check(result)) {
1090 o2 = result;
1091 result = PyTuple_New(1);
1092 PyTuple_SET_ITEM(result, 0, o2);
1093 }
1094 o3 = PyTuple_New(1);
1095 PyTuple_SET_ITEM(o3, 0, obj);
1096 o2 = result;
1097 result = PySequence_Concat(o2, o3);
1098 Py_DECREF(o2);
1099 Py_DECREF(o3);
1100 }
1101 return result;
1102 #endif
1103 }
1104
1105 /* Unpack the argument tuple */
1106
1107 SWIGINTERN int
1108 SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1109 {
1110 if (!args) {
1111 if (!min && !max) {
1112 return 1;
1113 } else {
1114 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1115 name, (min == max ? "" : "at least "), min);
1116 return 0;
1117 }
1118 }
1119 if (!PyTuple_Check(args)) {
1120 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1121 return 0;
1122 } else {
1123 register int l = PyTuple_GET_SIZE(args);
1124 if (l < min) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at least "), min, l);
1127 return 0;
1128 } else if (l > max) {
1129 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1130 name, (min == max ? "" : "at most "), max, l);
1131 return 0;
1132 } else {
1133 register int i;
1134 for (i = 0; i < l; ++i) {
1135 objs[i] = PyTuple_GET_ITEM(args, i);
1136 }
1137 for (; l < max; ++l) {
1138 objs[l] = 0;
1139 }
1140 return i + 1;
1141 }
1142 }
1143 }
1144
1145 /* A functor is a function object with one single object argument */
1146 #if PY_VERSION_HEX >= 0x02020000
1147 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1148 #else
1149 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1150 #endif
1151
1152 /*
1153 Helper for static pointer initialization for both C and C++ code, for example
1154 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1155 */
1156 #ifdef __cplusplus
1157 #define SWIG_STATIC_POINTER(var) var
1158 #else
1159 #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1160 #endif
1161
1162 /* -----------------------------------------------------------------------------
1163 * Pointer declarations
1164 * ----------------------------------------------------------------------------- */
1165
1166 /* Flags for new pointer objects */
1167 #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1168 #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1169
1170 #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1171
1172 #ifdef __cplusplus
1173 extern "C" {
1174 #if 0
1175 } /* cc-mode */
1176 #endif
1177 #endif
1178
1179 /* How to access Py_None */
1180 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1181 # ifndef SWIG_PYTHON_NO_BUILD_NONE
1182 # ifndef SWIG_PYTHON_BUILD_NONE
1183 # define SWIG_PYTHON_BUILD_NONE
1184 # endif
1185 # endif
1186 #endif
1187
1188 #ifdef SWIG_PYTHON_BUILD_NONE
1189 # ifdef Py_None
1190 # undef Py_None
1191 # define Py_None SWIG_Py_None()
1192 # endif
1193 SWIGRUNTIMEINLINE PyObject *
1194 _SWIG_Py_None(void)
1195 {
1196 PyObject *none = Py_BuildValue("");
1197 Py_DECREF(none);
1198 return none;
1199 }
1200 SWIGRUNTIME PyObject *
1201 SWIG_Py_None(void)
1202 {
1203 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1204 return none;
1205 }
1206 #endif
1207
1208 /* The python void return value */
1209
1210 SWIGRUNTIMEINLINE PyObject *
1211 SWIG_Py_Void(void)
1212 {
1213 PyObject *none = Py_None;
1214 Py_INCREF(none);
1215 return none;
1216 }
1217
1218 /* PySwigClientData */
1219
1220 typedef struct {
1221 PyObject *klass;
1222 PyObject *newraw;
1223 PyObject *newargs;
1224 PyObject *destroy;
1225 int delargs;
1226 int implicitconv;
1227 } PySwigClientData;
1228
1229 SWIGRUNTIMEINLINE int
1230 SWIG_Python_CheckImplicit(swig_type_info *ty)
1231 {
1232 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1233 return data ? data->implicitconv : 0;
1234 }
1235
1236 SWIGRUNTIMEINLINE PyObject *
1237 SWIG_Python_ExceptionType(swig_type_info *desc) {
1238 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1239 PyObject *klass = data ? data->klass : 0;
1240 return (klass ? klass : PyExc_RuntimeError);
1241 }
1242
1243
1244 SWIGRUNTIME PySwigClientData *
1245 PySwigClientData_New(PyObject* obj)
1246 {
1247 if (!obj) {
1248 return 0;
1249 } else {
1250 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1251 /* the klass element */
1252 data->klass = obj;
1253 Py_INCREF(data->klass);
1254 /* the newraw method and newargs arguments used to create a new raw instance */
1255 if (PyClass_Check(obj)) {
1256 data->newraw = 0;
1257 data->newargs = obj;
1258 Py_INCREF(obj);
1259 } else {
1260 #if (PY_VERSION_HEX < 0x02020000)
1261 data->newraw = 0;
1262 #else
1263 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1264 #endif
1265 if (data->newraw) {
1266 Py_INCREF(data->newraw);
1267 data->newargs = PyTuple_New(1);
1268 PyTuple_SetItem(data->newargs, 0, obj);
1269 } else {
1270 data->newargs = obj;
1271 }
1272 Py_INCREF(data->newargs);
1273 }
1274 /* the destroy method, aka as the C++ delete method */
1275 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1276 if (PyErr_Occurred()) {
1277 PyErr_Clear();
1278 data->destroy = 0;
1279 }
1280 if (data->destroy) {
1281 int flags;
1282 Py_INCREF(data->destroy);
1283 flags = PyCFunction_GET_FLAGS(data->destroy);
1284 #ifdef METH_O
1285 data->delargs = !(flags & (METH_O));
1286 #else
1287 data->delargs = 0;
1288 #endif
1289 } else {
1290 data->delargs = 0;
1291 }
1292 data->implicitconv = 0;
1293 return data;
1294 }
1295 }
1296
1297 SWIGRUNTIME void
1298 PySwigClientData_Del(PySwigClientData* data)
1299 {
1300 Py_XDECREF(data->newraw);
1301 Py_XDECREF(data->newargs);
1302 Py_XDECREF(data->destroy);
1303 }
1304
1305 /* =============== PySwigObject =====================*/
1306
1307 typedef struct {
1308 PyObject_HEAD
1309 void *ptr;
1310 swig_type_info *ty;
1311 int own;
1312 PyObject *next;
1313 } PySwigObject;
1314
1315 SWIGRUNTIME PyObject *
1316 PySwigObject_long(PySwigObject *v)
1317 {
1318 return PyLong_FromVoidPtr(v->ptr);
1319 }
1320
1321 SWIGRUNTIME PyObject *
1322 PySwigObject_format(const char* fmt, PySwigObject *v)
1323 {
1324 PyObject *res = NULL;
1325 PyObject *args = PyTuple_New(1);
1326 if (args) {
1327 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1328 PyObject *ofmt = PyString_FromString(fmt);
1329 if (ofmt) {
1330 res = PyString_Format(ofmt,args);
1331 Py_DECREF(ofmt);
1332 }
1333 Py_DECREF(args);
1334 }
1335 }
1336 return res;
1337 }
1338
1339 SWIGRUNTIME PyObject *
1340 PySwigObject_oct(PySwigObject *v)
1341 {
1342 return PySwigObject_format("%o",v);
1343 }
1344
1345 SWIGRUNTIME PyObject *
1346 PySwigObject_hex(PySwigObject *v)
1347 {
1348 return PySwigObject_format("%x",v);
1349 }
1350
1351 SWIGRUNTIME PyObject *
1352 #ifdef METH_NOARGS
1353 PySwigObject_repr(PySwigObject *v)
1354 #else
1355 PySwigObject_repr(PySwigObject *v, PyObject *args)
1356 #endif
1357 {
1358 const char *name = SWIG_TypePrettyName(v->ty);
1359 PyObject *hex = PySwigObject_hex(v);
1360 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1361 Py_DECREF(hex);
1362 if (v->next) {
1363 #ifdef METH_NOARGS
1364 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1365 #else
1366 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1367 #endif
1368 PyString_ConcatAndDel(&repr,nrep);
1369 }
1370 return repr;
1371 }
1372
1373 SWIGRUNTIME int
1374 PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1375 {
1376 #ifdef METH_NOARGS
1377 PyObject *repr = PySwigObject_repr(v);
1378 #else
1379 PyObject *repr = PySwigObject_repr(v, NULL);
1380 #endif
1381 if (repr) {
1382 fputs(PyString_AsString(repr), fp);
1383 Py_DECREF(repr);
1384 return 0;
1385 } else {
1386 return 1;
1387 }
1388 }
1389
1390 SWIGRUNTIME PyObject *
1391 PySwigObject_str(PySwigObject *v)
1392 {
1393 char result[SWIG_BUFFER_SIZE];
1394 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1395 PyString_FromString(result) : 0;
1396 }
1397
1398 SWIGRUNTIME int
1399 PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1400 {
1401 void *i = v->ptr;
1402 void *j = w->ptr;
1403 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1404 }
1405
1406 SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1407
1408 SWIGRUNTIME PyTypeObject*
1409 PySwigObject_type(void) {
1410 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1411 return type;
1412 }
1413
1414 SWIGRUNTIMEINLINE int
1415 PySwigObject_Check(PyObject *op) {
1416 return ((op)->ob_type == PySwigObject_type())
1417 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1418 }
1419
1420 SWIGRUNTIME PyObject *
1421 PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1422
1423 SWIGRUNTIME void
1424 PySwigObject_dealloc(PyObject *v)
1425 {
1426 PySwigObject *sobj = (PySwigObject *) v;
1427 PyObject *next = sobj->next;
1428 if (sobj->own) {
1429 swig_type_info *ty = sobj->ty;
1430 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1431 PyObject *destroy = data ? data->destroy : 0;
1432 if (destroy) {
1433 /* destroy is always a VARARGS method */
1434 PyObject *res;
1435 if (data->delargs) {
1436 /* we need to create a temporal object to carry the destroy operation */
1437 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1438 res = SWIG_Python_CallFunctor(destroy, tmp);
1439 Py_DECREF(tmp);
1440 } else {
1441 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1442 PyObject *mself = PyCFunction_GET_SELF(destroy);
1443 res = ((*meth)(mself, v));
1444 }
1445 Py_XDECREF(res);
1446 } else {
1447 const char *name = SWIG_TypePrettyName(ty);
1448 #if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1449 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1450 #endif
1451 }
1452 }
1453 Py_XDECREF(next);
1454 PyObject_DEL(v);
1455 }
1456
1457 SWIGRUNTIME PyObject*
1458 PySwigObject_append(PyObject* v, PyObject* next)
1459 {
1460 PySwigObject *sobj = (PySwigObject *) v;
1461 #ifndef METH_O
1462 PyObject *tmp = 0;
1463 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1464 next = tmp;
1465 #endif
1466 if (!PySwigObject_Check(next)) {
1467 return NULL;
1468 }
1469 sobj->next = next;
1470 Py_INCREF(next);
1471 return SWIG_Py_Void();
1472 }
1473
1474 SWIGRUNTIME PyObject*
1475 #ifdef METH_NOARGS
1476 PySwigObject_next(PyObject* v)
1477 #else
1478 PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1479 #endif
1480 {
1481 PySwigObject *sobj = (PySwigObject *) v;
1482 if (sobj->next) {
1483 Py_INCREF(sobj->next);
1484 return sobj->next;
1485 } else {
1486 return SWIG_Py_Void();
1487 }
1488 }
1489
1490 SWIGINTERN PyObject*
1491 #ifdef METH_NOARGS
1492 PySwigObject_disown(PyObject *v)
1493 #else
1494 PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1495 #endif
1496 {
1497 PySwigObject *sobj = (PySwigObject *)v;
1498 sobj->own = 0;
1499 return SWIG_Py_Void();
1500 }
1501
1502 SWIGINTERN PyObject*
1503 #ifdef METH_NOARGS
1504 PySwigObject_acquire(PyObject *v)
1505 #else
1506 PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1507 #endif
1508 {
1509 PySwigObject *sobj = (PySwigObject *)v;
1510 sobj->own = SWIG_POINTER_OWN;
1511 return SWIG_Py_Void();
1512 }
1513
1514 SWIGINTERN PyObject*
1515 PySwigObject_own(PyObject *v, PyObject *args)
1516 {
1517 PyObject *val = 0;
1518 #if (PY_VERSION_HEX < 0x02020000)
1519 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1520 #else
1521 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1522 #endif
1523 {
1524 return NULL;
1525 }
1526 else
1527 {
1528 PySwigObject *sobj = (PySwigObject *)v;
1529 PyObject *obj = PyBool_FromLong(sobj->own);
1530 if (val) {
1531 #ifdef METH_NOARGS
1532 if (PyObject_IsTrue(val)) {
1533 PySwigObject_acquire(v);
1534 } else {
1535 PySwigObject_disown(v);
1536 }
1537 #else
1538 if (PyObject_IsTrue(val)) {
1539 PySwigObject_acquire(v,args);
1540 } else {
1541 PySwigObject_disown(v,args);
1542 }
1543 #endif
1544 }
1545 return obj;
1546 }
1547 }
1548
1549 #ifdef METH_O
1550 static PyMethodDef
1551 swigobject_methods[] = {
1552 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1553 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1554 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1555 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1556 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1557 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1558 {0, 0, 0, 0}
1559 };
1560 #else
1561 static PyMethodDef
1562 swigobject_methods[] = {
1563 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1564 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1565 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1566 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1567 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1568 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1569 {0, 0, 0, 0}
1570 };
1571 #endif
1572
1573 #if PY_VERSION_HEX < 0x02020000
1574 SWIGINTERN PyObject *
1575 PySwigObject_getattr(PySwigObject *sobj,char *name)
1576 {
1577 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1578 }
1579 #endif
1580
1581 SWIGRUNTIME PyTypeObject*
1582 _PySwigObject_type(void) {
1583 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1584
1585 static PyNumberMethods PySwigObject_as_number = {
1586 (binaryfunc)0, /*nb_add*/
1587 (binaryfunc)0, /*nb_subtract*/
1588 (binaryfunc)0, /*nb_multiply*/
1589 (binaryfunc)0, /*nb_divide*/
1590 (binaryfunc)0, /*nb_remainder*/
1591 (binaryfunc)0, /*nb_divmod*/
1592 (ternaryfunc)0,/*nb_power*/
1593 (unaryfunc)0, /*nb_negative*/
1594 (unaryfunc)0, /*nb_positive*/
1595 (unaryfunc)0, /*nb_absolute*/
1596 (inquiry)0, /*nb_nonzero*/
1597 0, /*nb_invert*/
1598 0, /*nb_lshift*/
1599 0, /*nb_rshift*/
1600 0, /*nb_and*/
1601 0, /*nb_xor*/
1602 0, /*nb_or*/
1603 (coercion)0, /*nb_coerce*/
1604 (unaryfunc)PySwigObject_long, /*nb_int*/
1605 (unaryfunc)PySwigObject_long, /*nb_long*/
1606 (unaryfunc)0, /*nb_float*/
1607 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1608 (unaryfunc)PySwigObject_hex, /*nb_hex*/
1609 #if PY_VERSION_HEX >= 0x02020000
1610 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
1611 #elif PY_VERSION_HEX >= 0x02000000
1612 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
1613 #endif
1614 };
1615
1616 static PyTypeObject pyswigobject_type;
1617 static int type_init = 0;
1618 if (!type_init) {
1619 const PyTypeObject tmp
1620 = {
1621 PyObject_HEAD_INIT(NULL)
1622 0, /* ob_size */
1623 (char *)"PySwigObject", /* tp_name */
1624 sizeof(PySwigObject), /* tp_basicsize */
1625 0, /* tp_itemsize */
1626 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1627 (printfunc)PySwigObject_print, /* tp_print */
1628 #if PY_VERSION_HEX < 0x02020000
1629 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1630 #else
1631 (getattrfunc)0, /* tp_getattr */
1632 #endif
1633 (setattrfunc)0, /* tp_setattr */
1634 (cmpfunc)PySwigObject_compare, /* tp_compare */
1635 (reprfunc)PySwigObject_repr, /* tp_repr */
1636 &PySwigObject_as_number, /* tp_as_number */
1637 0, /* tp_as_sequence */
1638 0, /* tp_as_mapping */
1639 (hashfunc)0, /* tp_hash */
1640 (ternaryfunc)0, /* tp_call */
1641 (reprfunc)PySwigObject_str, /* tp_str */
1642 PyObject_GenericGetAttr, /* tp_getattro */
1643 0, /* tp_setattro */
1644 0, /* tp_as_buffer */
1645 Py_TPFLAGS_DEFAULT, /* tp_flags */
1646 swigobject_doc, /* tp_doc */
1647 0, /* tp_traverse */
1648 0, /* tp_clear */
1649 0, /* tp_richcompare */
1650 0, /* tp_weaklistoffset */
1651 #if PY_VERSION_HEX >= 0x02020000
1652 0, /* tp_iter */
1653 0, /* tp_iternext */
1654 swigobject_methods, /* tp_methods */
1655 0, /* tp_members */
1656 0, /* tp_getset */
1657 0, /* tp_base */
1658 0, /* tp_dict */
1659 0, /* tp_descr_get */
1660 0, /* tp_descr_set */
1661 0, /* tp_dictoffset */
1662 0, /* tp_init */
1663 0, /* tp_alloc */
1664 0, /* tp_new */
1665 0, /* tp_free */
1666 0, /* tp_is_gc */
1667 0, /* tp_bases */
1668 0, /* tp_mro */
1669 0, /* tp_cache */
1670 0, /* tp_subclasses */
1671 0, /* tp_weaklist */
1672 #endif
1673 #if PY_VERSION_HEX >= 0x02030000
1674 0, /* tp_del */
1675 #endif
1676 #ifdef COUNT_ALLOCS
1677 0,0,0,0 /* tp_alloc -> tp_next */
1678 #endif
1679 };
1680 pyswigobject_type = tmp;
1681 pyswigobject_type.ob_type = &PyType_Type;
1682 type_init = 1;
1683 }
1684 return &pyswigobject_type;
1685 }
1686
1687 SWIGRUNTIME PyObject *
1688 PySwigObject_New(void *ptr, swig_type_info *ty, int own)
1689 {
1690 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1691 if (sobj) {
1692 sobj->ptr = ptr;
1693 sobj->ty = ty;
1694 sobj->own = own;
1695 sobj->next = 0;
1696 }
1697 return (PyObject *)sobj;
1698 }
1699
1700 /* -----------------------------------------------------------------------------
1701 * Implements a simple Swig Packed type, and use it instead of string
1702 * ----------------------------------------------------------------------------- */
1703
1704 typedef struct {
1705 PyObject_HEAD
1706 void *pack;
1707 swig_type_info *ty;
1708 size_t size;
1709 } PySwigPacked;
1710
1711 SWIGRUNTIME int
1712 PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1713 {
1714 char result[SWIG_BUFFER_SIZE];
1715 fputs("<Swig Packed ", fp);
1716 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1717 fputs("at ", fp);
1718 fputs(result, fp);
1719 }
1720 fputs(v->ty->name,fp);
1721 fputs(">", fp);
1722 return 0;
1723 }
1724
1725 SWIGRUNTIME PyObject *
1726 PySwigPacked_repr(PySwigPacked *v)
1727 {
1728 char result[SWIG_BUFFER_SIZE];
1729 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
1731 } else {
1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
1733 }
1734 }
1735
1736 SWIGRUNTIME PyObject *
1737 PySwigPacked_str(PySwigPacked *v)
1738 {
1739 char result[SWIG_BUFFER_SIZE];
1740 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1741 return PyString_FromFormat("%s%s", result, v->ty->name);
1742 } else {
1743 return PyString_FromString(v->ty->name);
1744 }
1745 }
1746
1747 SWIGRUNTIME int
1748 PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
1749 {
1750 size_t i = v->size;
1751 size_t j = w->size;
1752 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1753 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
1754 }
1755
1756 SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
1757
1758 SWIGRUNTIME PyTypeObject*
1759 PySwigPacked_type(void) {
1760 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1761 return type;
1762 }
1763
1764 SWIGRUNTIMEINLINE int
1765 PySwigPacked_Check(PyObject *op) {
1766 return ((op)->ob_type == _PySwigPacked_type())
1767 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1768 }
1769
1770 SWIGRUNTIME void
1771 PySwigPacked_dealloc(PyObject *v)
1772 {
1773 if (PySwigPacked_Check(v)) {
1774 PySwigPacked *sobj = (PySwigPacked *) v;
1775 free(sobj->pack);
1776 }
1777 PyObject_DEL(v);
1778 }
1779
1780 SWIGRUNTIME PyTypeObject*
1781 _PySwigPacked_type(void) {
1782 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1783 static PyTypeObject pyswigpacked_type;
1784 static int type_init = 0;
1785 if (!type_init) {
1786 const PyTypeObject tmp
1787 = {
1788 PyObject_HEAD_INIT(NULL)
1789 0, /* ob_size */
1790 (char *)"PySwigPacked", /* tp_name */
1791 sizeof(PySwigPacked), /* tp_basicsize */
1792 0, /* tp_itemsize */
1793 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1794 (printfunc)PySwigPacked_print, /* tp_print */
1795 (getattrfunc)0, /* tp_getattr */
1796 (setattrfunc)0, /* tp_setattr */
1797 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1798 (reprfunc)PySwigPacked_repr, /* tp_repr */
1799 0, /* tp_as_number */
1800 0, /* tp_as_sequence */
1801 0, /* tp_as_mapping */
1802 (hashfunc)0, /* tp_hash */
1803 (ternaryfunc)0, /* tp_call */
1804 (reprfunc)PySwigPacked_str, /* tp_str */
1805 PyObject_GenericGetAttr, /* tp_getattro */
1806 0, /* tp_setattro */
1807 0, /* tp_as_buffer */
1808 Py_TPFLAGS_DEFAULT, /* tp_flags */
1809 swigpacked_doc, /* tp_doc */
1810 0, /* tp_traverse */
1811 0, /* tp_clear */
1812 0, /* tp_richcompare */
1813 0, /* tp_weaklistoffset */
1814 #if PY_VERSION_HEX >= 0x02020000
1815 0, /* tp_iter */
1816 0, /* tp_iternext */
1817 0, /* tp_methods */
1818 0, /* tp_members */
1819 0, /* tp_getset */
1820 0, /* tp_base */
1821 0, /* tp_dict */
1822 0, /* tp_descr_get */
1823 0, /* tp_descr_set */
1824 0, /* tp_dictoffset */
1825 0, /* tp_init */
1826 0, /* tp_alloc */
1827 0, /* tp_new */
1828 0, /* tp_free */
1829 0, /* tp_is_gc */
1830 0, /* tp_bases */
1831 0, /* tp_mro */
1832 0, /* tp_cache */
1833 0, /* tp_subclasses */
1834 0, /* tp_weaklist */
1835 #endif
1836 #if PY_VERSION_HEX >= 0x02030000
1837 0, /* tp_del */
1838 #endif
1839 #ifdef COUNT_ALLOCS
1840 0,0,0,0 /* tp_alloc -> tp_next */
1841 #endif
1842 };
1843 pyswigpacked_type = tmp;
1844 pyswigpacked_type.ob_type = &PyType_Type;
1845 type_init = 1;
1846 }
1847 return &pyswigpacked_type;
1848 }
1849
1850 SWIGRUNTIME PyObject *
1851 PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
1852 {
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
1855 void *pack = malloc(size);
1856 if (pack) {
1857 memcpy(pack, ptr, size);
1858 sobj->pack = pack;
1859 sobj->ty = ty;
1860 sobj->size = size;
1861 } else {
1862 PyObject_DEL((PyObject *) sobj);
1863 sobj = 0;
1864 }
1865 }
1866 return (PyObject *) sobj;
1867 }
1868
1869 SWIGRUNTIME swig_type_info *
1870 PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1871 {
1872 if (PySwigPacked_Check(obj)) {
1873 PySwigPacked *sobj = (PySwigPacked *)obj;
1874 if (sobj->size != size) return 0;
1875 memcpy(ptr, sobj->pack, size);
1876 return sobj->ty;
1877 } else {
1878 return 0;
1879 }
1880 }
1881
1882 /* -----------------------------------------------------------------------------
1883 * pointers/data manipulation
1884 * ----------------------------------------------------------------------------- */
1885
1886 SWIGRUNTIMEINLINE PyObject *
1887 _SWIG_This(void)
1888 {
1889 return PyString_FromString("this");
1890 }
1891
1892 SWIGRUNTIME PyObject *
1893 SWIG_This(void)
1894 {
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897 }
1898
1899 /* #define SWIG_PYTHON_SLOW_GETSET_THIS */
1900
1901 SWIGRUNTIME PySwigObject *
1902 SWIG_Python_GetSwigThis(PyObject *pyobj)
1903 {
1904 if (PySwigObject_Check(pyobj)) {
1905 return (PySwigObject *) pyobj;
1906 } else {
1907 PyObject *obj = 0;
1908 #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1909 if (PyInstance_Check(pyobj)) {
1910 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1911 } else {
1912 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1913 if (dictptr != NULL) {
1914 PyObject *dict = *dictptr;
1915 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1916 } else {
1917 #ifdef PyWeakref_CheckProxy
1918 if (PyWeakref_CheckProxy(pyobj)) {
1919 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1920 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1921 }
1922 #endif
1923 obj = PyObject_GetAttr(pyobj,SWIG_This());
1924 if (obj) {
1925 Py_DECREF(obj);
1926 } else {
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
1929 }
1930 }
1931 }
1932 #else
1933 obj = PyObject_GetAttr(pyobj,SWIG_This());
1934 if (obj) {
1935 Py_DECREF(obj);
1936 } else {
1937 if (PyErr_Occurred()) PyErr_Clear();
1938 return 0;
1939 }
1940 #endif
1941 if (obj && !PySwigObject_Check(obj)) {
1942 /* a PyObject is called 'this', try to get the 'real this'
1943 PySwigObject from it */
1944 return SWIG_Python_GetSwigThis(obj);
1945 }
1946 return (PySwigObject *)obj;
1947 }
1948 }
1949
1950 /* Acquire a pointer value */
1951
1952 SWIGRUNTIME int
1953 SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1954 if (own) {
1955 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1956 if (sobj) {
1957 int oldown = sobj->own;
1958 sobj->own = own;
1959 return oldown;
1960 }
1961 }
1962 return 0;
1963 }
1964
1965 /* Convert a pointer value */
1966
1967 SWIGRUNTIME int
1968 SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1969 if (!obj) return SWIG_ERROR;
1970 if (obj == Py_None) {
1971 if (ptr) *ptr = 0;
1972 return SWIG_OK;
1973 } else {
1974 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1975 while (sobj) {
1976 void *vptr = sobj->ptr;
1977 if (ty) {
1978 swig_type_info *to = sobj->ty;
1979 if (to == ty) {
1980 /* no type cast needed */
1981 if (ptr) *ptr = vptr;
1982 break;
1983 } else {
1984 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1985 if (!tc) {
1986 sobj = (PySwigObject *)sobj->next;
1987 } else {
1988 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1989 break;
1990 }
1991 }
1992 } else {
1993 if (ptr) *ptr = vptr;
1994 break;
1995 }
1996 }
1997 if (sobj) {
1998 if (own) *own = sobj->own;
1999 if (flags & SWIG_POINTER_DISOWN) {
2000 sobj->own = 0;
2001 }
2002 return SWIG_OK;
2003 } else {
2004 int res = SWIG_ERROR;
2005 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2006 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2007 if (data && !data->implicitconv) {
2008 PyObject *klass = data->klass;
2009 if (klass) {
2010 PyObject *impconv;
2011 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2012 impconv = SWIG_Python_CallFunctor(klass, obj);
2013 data->implicitconv = 0;
2014 if (PyErr_Occurred()) {
2015 PyErr_Clear();
2016 impconv = 0;
2017 }
2018 if (impconv) {
2019 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2020 if (iobj) {
2021 void *vptr;
2022 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2023 if (SWIG_IsOK(res)) {
2024 if (ptr) {
2025 *ptr = vptr;
2026 /* transfer the ownership to 'ptr' */
2027 iobj->own = 0;
2028 res = SWIG_AddCast(res);
2029 res = SWIG_AddNewMask(res);
2030 } else {
2031 res = SWIG_AddCast(res);
2032 }
2033 }
2034 }
2035 Py_DECREF(impconv);
2036 }
2037 }
2038 }
2039 }
2040 return res;
2041 }
2042 }
2043 }
2044
2045 /* Convert a function ptr value */
2046
2047 SWIGRUNTIME int
2048 SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2049 if (!PyCFunction_Check(obj)) {
2050 return SWIG_ConvertPtr(obj, ptr, ty, 0);
2051 } else {
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2056 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2057 if (desc) {
2058 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2059 if (!desc) return SWIG_ERROR;
2060 }
2061 if (ty) {
2062 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2063 if (!tc) return SWIG_ERROR;
2064 *ptr = SWIG_TypeCast(tc,vptr);
2065 } else {
2066 *ptr = vptr;
2067 }
2068 return SWIG_OK;
2069 }
2070 }
2071
2072 /* Convert a packed value value */
2073
2074 SWIGRUNTIME int
2075 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2076 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2077 if (!to) return SWIG_ERROR;
2078 if (ty) {
2079 if (to != ty) {
2080 /* check type cast? */
2081 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2082 if (!tc) return SWIG_ERROR;
2083 }
2084 }
2085 return SWIG_OK;
2086 }
2087
2088 /* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
2091
2092 /*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095 */
2096
2097 SWIGRUNTIME PyObject*
2098 SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2099 {
2100 #if (PY_VERSION_HEX >= 0x02020000)
2101 PyObject *inst = 0;
2102 PyObject *newraw = data->newraw;
2103 if (newraw) {
2104 inst = PyObject_Call(newraw, data->newargs, NULL);
2105 if (inst) {
2106 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2107 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2108 if (dictptr != NULL) {
2109 PyObject *dict = *dictptr;
2110 if (dict == NULL) {
2111 dict = PyDict_New();
2112 *dictptr = dict;
2113 PyDict_SetItem(dict, SWIG_This(), swig_this);
2114 }
2115 }
2116 #else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119 #endif
2120 }
2121 } else {
2122 PyObject *dict = PyDict_New();
2123 PyDict_SetItem(dict, SWIG_This(), swig_this);
2124 inst = PyInstance_NewRaw(data->newargs, dict);
2125 Py_DECREF(dict);
2126 }
2127 return inst;
2128 #else
2129 #if (PY_VERSION_HEX >= 0x02010000)
2130 PyObject *inst;
2131 PyObject *dict = PyDict_New();
2132 PyDict_SetItem(dict, SWIG_This(), swig_this);
2133 inst = PyInstance_NewRaw(data->newargs, dict);
2134 Py_DECREF(dict);
2135 return (PyObject *) inst;
2136 #else
2137 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2138 if (inst == NULL) {
2139 return NULL;
2140 }
2141 inst->in_class = (PyClassObject *)data->newargs;
2142 Py_INCREF(inst->in_class);
2143 inst->in_dict = PyDict_New();
2144 if (inst->in_dict == NULL) {
2145 Py_DECREF(inst);
2146 return NULL;
2147 }
2148 #ifdef Py_TPFLAGS_HAVE_WEAKREFS
2149 inst->in_weakreflist = NULL;
2150 #endif
2151 #ifdef Py_TPFLAGS_GC
2152 PyObject_GC_Init(inst);
2153 #endif
2154 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2155 return (PyObject *) inst;
2156 #endif
2157 #endif
2158 }
2159
2160 SWIGRUNTIME void
2161 SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2162 {
2163 PyObject *dict;
2164 #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2165 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2166 if (dictptr != NULL) {
2167 dict = *dictptr;
2168 if (dict == NULL) {
2169 dict = PyDict_New();
2170 *dictptr = dict;
2171 }
2172 PyDict_SetItem(dict, SWIG_This(), swig_this);
2173 return;
2174 }
2175 #endif
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179 }
2180
2181
2182 SWIGINTERN PyObject *
2183 SWIG_Python_InitShadowInstance(PyObject *args) {
2184 PyObject *obj[2];
2185 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2186 return NULL;
2187 } else {
2188 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2189 if (sthis) {
2190 PySwigObject_append((PyObject*) sthis, obj[1]);
2191 } else {
2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
2193 }
2194 return SWIG_Py_Void();
2195 }
2196 }
2197
2198 /* Create a new pointer object */
2199
2200 SWIGRUNTIME PyObject *
2201 SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
2202 if (!ptr) {
2203 return SWIG_Py_Void();
2204 } else {
2205 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2206 PyObject *robj = PySwigObject_New(ptr, type, own);
2207 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2208 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2209 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2210 if (inst) {
2211 Py_DECREF(robj);
2212 robj = inst;
2213 }
2214 }
2215 return robj;
2216 }
2217 }
2218
2219 /* Create a new packed object */
2220
2221 SWIGRUNTIMEINLINE PyObject *
2222 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
2223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2224 }
2225
2226 /* -----------------------------------------------------------------------------*
2227 * Get type list
2228 * -----------------------------------------------------------------------------*/
2229
2230 #ifdef SWIG_LINK_RUNTIME
2231 void *SWIG_ReturnGlobalTypeList(void *);
2232 #endif
2233
2234 SWIGRUNTIME swig_module_info *
2235 SWIG_Python_GetModule(void) {
2236 static void *type_pointer = (void *)0;
2237 /* first check if module already created */
2238 if (!type_pointer) {
2239 #ifdef SWIG_LINK_RUNTIME
2240 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2241 #else
2242 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2243 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2244 if (PyErr_Occurred()) {
2245 PyErr_Clear();
2246 type_pointer = (void *)0;
2247 }
2248 #endif
2249 }
2250 return (swig_module_info *) type_pointer;
2251 }
2252
2253 #if PY_MAJOR_VERSION < 2
2254 /* PyModule_AddObject function was introduced in Python 2.0. The following function
2255 is copied out of Python/modsupport.c in python version 2.3.4 */
2256 SWIGINTERN int
2257 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2258 {
2259 PyObject *dict;
2260 if (!PyModule_Check(m)) {
2261 PyErr_SetString(PyExc_TypeError,
2262 "PyModule_AddObject() needs module as first arg");
2263 return SWIG_ERROR;
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
2268 return SWIG_ERROR;
2269 }
2270
2271 dict = PyModule_GetDict(m);
2272 if (dict == NULL) {
2273 /* Internal error -- modules must have a dict! */
2274 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2275 PyModule_GetName(m));
2276 return SWIG_ERROR;
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
2279 return SWIG_ERROR;
2280 Py_DECREF(o);
2281 return SWIG_OK;
2282 }
2283 #endif
2284
2285 SWIGRUNTIME void
2286 SWIG_Python_DestroyModule(void *vptr)
2287 {
2288 swig_module_info *swig_module = (swig_module_info *) vptr;
2289 swig_type_info **types = swig_module->types;
2290 size_t i;
2291 for (i =0; i < swig_module->size; ++i) {
2292 swig_type_info *ty = types[i];
2293 if (ty->owndata) {
2294 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2295 if (data) PySwigClientData_Del(data);
2296 }
2297 }
2298 Py_DECREF(SWIG_This());
2299 }
2300
2301 SWIGRUNTIME void
2302 SWIG_Python_SetModule(swig_module_info *swig_module) {
2303 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2304
2305 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2306 swig_empty_runtime_method_table);
2307 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
2308 if (pointer && module) {
2309 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
2310 } else {
2311 Py_XDECREF(pointer);
2312 }
2313 }
2314
2315 /* The python cached type query */
2316 SWIGRUNTIME PyObject *
2317 SWIG_Python_TypeCache() {
2318 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2319 return cache;
2320 }
2321
2322 SWIGRUNTIME swig_type_info *
2323 SWIG_Python_TypeQuery(const char *type)
2324 {
2325 PyObject *cache = SWIG_Python_TypeCache();
2326 PyObject *key = PyString_FromString(type);
2327 PyObject *obj = PyDict_GetItem(cache, key);
2328 swig_type_info *descriptor;
2329 if (obj) {
2330 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2331 } else {
2332 swig_module_info *swig_module = SWIG_Python_GetModule();
2333 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2334 if (descriptor) {
2335 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2336 PyDict_SetItem(cache, key, obj);
2337 Py_DECREF(obj);
2338 }
2339 }
2340 Py_DECREF(key);
2341 return descriptor;
2342 }
2343
2344 /*
2345 For backward compatibility only
2346 */
2347 #define SWIG_POINTER_EXCEPTION 0
2348 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2349 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2350
2351 SWIGRUNTIME int
2352 SWIG_Python_AddErrMesg(const char* mesg, int infront)
2353 {
2354 if (PyErr_Occurred()) {
2355 PyObject *type = 0;
2356 PyObject *value = 0;
2357 PyObject *traceback = 0;
2358 PyErr_Fetch(&type, &value, &traceback);
2359 if (value) {
2360 PyObject *old_str = PyObject_Str(value);
2361 Py_XINCREF(type);
2362 PyErr_Clear();
2363 if (infront) {
2364 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2365 } else {
2366 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2367 }
2368 Py_DECREF(old_str);
2369 }
2370 return 1;
2371 } else {
2372 return 0;
2373 }
2374 }
2375
2376 SWIGRUNTIME int
2377 SWIG_Python_ArgFail(int argnum)
2378 {
2379 if (PyErr_Occurred()) {
2380 /* add information about failing argument */
2381 char mesg[256];
2382 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2383 return SWIG_Python_AddErrMesg(mesg, 1);
2384 } else {
2385 return 0;
2386 }
2387 }
2388
2389 SWIGRUNTIMEINLINE const char *
2390 PySwigObject_GetDesc(PyObject *self)
2391 {
2392 PySwigObject *v = (PySwigObject *)self;
2393 swig_type_info *ty = v ? v->ty : 0;
2394 return ty ? ty->str : (char*)"";
2395 }
2396
2397 SWIGRUNTIME void
2398 SWIG_Python_TypeError(const char *type, PyObject *obj)
2399 {
2400 if (type) {
2401 #if defined(SWIG_COBJECT_TYPES)
2402 if (obj && PySwigObject_Check(obj)) {
2403 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2404 if (otype) {
2405 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2406 type, otype);
2407 return;
2408 }
2409 } else
2410 #endif
2411 {
2412 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2413 if (otype) {
2414 PyObject *str = PyObject_Str(obj);
2415 const char *cstr = str ? PyString_AsString(str) : 0;
2416 if (cstr) {
2417 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2418 type, otype, cstr);
2419 } else {
2420 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2421 type, otype);
2422 }
2423 Py_XDECREF(str);
2424 return;
2425 }
2426 }
2427 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2428 } else {
2429 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2430 }
2431 }
2432
2433
2434 /* Convert a pointer value, signal an exception on a type mismatch */
2435 SWIGRUNTIME void *
2436 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2437 void *result;
2438 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2439 PyErr_Clear();
2440 if (flags & SWIG_POINTER_EXCEPTION) {
2441 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2442 SWIG_Python_ArgFail(argnum);
2443 }
2444 }
2445 return result;
2446 }
2447
2448
2449 #ifdef __cplusplus
2450 #if 0
2451 { /* cc-mode */
2452 #endif
2453 }
2454 #endif
2455
2456
2457
2458 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2459
2460 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2461
2462
2463
2464 /* -------- TYPES TABLE (BEGIN) -------- */
2465
2466 #define SWIGTYPE_p_buffer swig_types[0]
2467 #define SWIGTYPE_p_char swig_types[1]
2468 #define SWIGTYPE_p_double swig_types[2]
2469 #define SWIGTYPE_p_form_ops_t swig_types[3]
2470 #define SWIGTYPE_p_int swig_types[4]
2471 #define SWIGTYPE_p_unsigned_char swig_types[5]
2472 #define SWIGTYPE_p_unsigned_int swig_types[6]
2473 #define SWIGTYPE_p_unsigned_long swig_types[7]
2474 #define SWIGTYPE_p_wxANIHandler swig_types[8]
2475 #define SWIGTYPE_p_wxAcceleratorTable swig_types[9]
2476 #define SWIGTYPE_p_wxActivateEvent swig_types[10]
2477 #define SWIGTYPE_p_wxAlphaPixelData swig_types[11]
2478 #define SWIGTYPE_p_wxAlphaPixelData_Accessor swig_types[12]
2479 #define SWIGTYPE_p_wxBMPHandler swig_types[13]
2480 #define SWIGTYPE_p_wxBitmap swig_types[14]
2481 #define SWIGTYPE_p_wxBoxSizer swig_types[15]
2482 #define SWIGTYPE_p_wxBrush swig_types[16]
2483 #define SWIGTYPE_p_wxBrushList swig_types[17]
2484 #define SWIGTYPE_p_wxBufferedDC swig_types[18]
2485 #define SWIGTYPE_p_wxBufferedPaintDC swig_types[19]
2486 #define SWIGTYPE_p_wxCURHandler swig_types[20]
2487 #define SWIGTYPE_p_wxChar swig_types[21]
2488 #define SWIGTYPE_p_wxChildFocusEvent swig_types[22]
2489 #define SWIGTYPE_p_wxClientDC swig_types[23]
2490 #define SWIGTYPE_p_wxClipboardTextEvent swig_types[24]
2491 #define SWIGTYPE_p_wxCloseEvent swig_types[25]
2492 #define SWIGTYPE_p_wxColour swig_types[26]
2493 #define SWIGTYPE_p_wxColourDatabase swig_types[27]
2494 #define SWIGTYPE_p_wxCommandEvent swig_types[28]
2495 #define SWIGTYPE_p_wxContextMenuEvent swig_types[29]
2496 #define SWIGTYPE_p_wxControl swig_types[30]
2497 #define SWIGTYPE_p_wxControlWithItems swig_types[31]
2498 #define SWIGTYPE_p_wxCursor swig_types[32]
2499 #define SWIGTYPE_p_wxDC swig_types[33]
2500 #define SWIGTYPE_p_wxDash swig_types[34]
2501 #define SWIGTYPE_p_wxDateEvent swig_types[35]
2502 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[36]
2503 #define SWIGTYPE_p_wxDropFilesEvent swig_types[37]
2504 #define SWIGTYPE_p_wxDuplexMode swig_types[38]
2505 #define SWIGTYPE_p_wxEffects swig_types[39]
2506 #define SWIGTYPE_p_wxEncodingConverter swig_types[40]
2507 #define SWIGTYPE_p_wxEraseEvent swig_types[41]
2508 #define SWIGTYPE_p_wxEvent swig_types[42]
2509 #define SWIGTYPE_p_wxEvtHandler swig_types[43]
2510 #define SWIGTYPE_p_wxFSFile swig_types[44]
2511 #define SWIGTYPE_p_wxFileSystem swig_types[45]
2512 #define SWIGTYPE_p_wxFlexGridSizer swig_types[46]
2513 #define SWIGTYPE_p_wxFocusEvent swig_types[47]
2514 #define SWIGTYPE_p_wxFont swig_types[48]
2515 #define SWIGTYPE_p_wxFontList swig_types[49]
2516 #define SWIGTYPE_p_wxFontMapper swig_types[50]
2517 #define SWIGTYPE_p_wxGBSizerItem swig_types[51]
2518 #define SWIGTYPE_p_wxGDIObjListBase swig_types[52]
2519 #define SWIGTYPE_p_wxGDIObject swig_types[53]
2520 #define SWIGTYPE_p_wxGIFHandler swig_types[54]
2521 #define SWIGTYPE_p_wxGridBagSizer swig_types[55]
2522 #define SWIGTYPE_p_wxGridSizer swig_types[56]
2523 #define SWIGTYPE_p_wxICOHandler swig_types[57]
2524 #define SWIGTYPE_p_wxIcon swig_types[58]
2525 #define SWIGTYPE_p_wxIconBundle swig_types[59]
2526 #define SWIGTYPE_p_wxIconLocation swig_types[60]
2527 #define SWIGTYPE_p_wxIconizeEvent swig_types[61]
2528 #define SWIGTYPE_p_wxIdleEvent swig_types[62]
2529 #define SWIGTYPE_p_wxImage swig_types[63]
2530 #define SWIGTYPE_p_wxImageHandler swig_types[64]
2531 #define SWIGTYPE_p_wxImageList swig_types[65]
2532 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[66]
2533 #define SWIGTYPE_p_wxInitDialogEvent swig_types[67]
2534 #define SWIGTYPE_p_wxJPEGHandler swig_types[68]
2535 #define SWIGTYPE_p_wxKeyEvent swig_types[69]
2536 #define SWIGTYPE_p_wxLanguageInfo swig_types[70]
2537 #define SWIGTYPE_p_wxLayoutConstraints swig_types[71]
2538 #define SWIGTYPE_p_wxLocale swig_types[72]
2539 #define SWIGTYPE_p_wxMask swig_types[73]
2540 #define SWIGTYPE_p_wxMaximizeEvent swig_types[74]
2541 #define SWIGTYPE_p_wxMemoryDC swig_types[75]
2542 #define SWIGTYPE_p_wxMenu swig_types[76]
2543 #define SWIGTYPE_p_wxMenuBar swig_types[77]
2544 #define SWIGTYPE_p_wxMenuEvent swig_types[78]
2545 #define SWIGTYPE_p_wxMenuItem swig_types[79]
2546 #define SWIGTYPE_p_wxMetaFile swig_types[80]
2547 #define SWIGTYPE_p_wxMetaFileDC swig_types[81]
2548 #define SWIGTYPE_p_wxMirrorDC swig_types[82]
2549 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[83]
2550 #define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[84]
2551 #define SWIGTYPE_p_wxMouseEvent swig_types[85]
2552 #define SWIGTYPE_p_wxMoveEvent swig_types[86]
2553 #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[87]
2554 #define SWIGTYPE_p_wxNativeFontInfo swig_types[88]
2555 #define SWIGTYPE_p_wxNativePixelData swig_types[89]
2556 #define SWIGTYPE_p_wxNativePixelData_Accessor swig_types[90]
2557 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[91]
2558 #define SWIGTYPE_p_wxNcPaintEvent swig_types[92]
2559 #define SWIGTYPE_p_wxNotifyEvent swig_types[93]
2560 #define SWIGTYPE_p_wxObject swig_types[94]
2561 #define SWIGTYPE_p_wxPCXHandler swig_types[95]
2562 #define SWIGTYPE_p_wxPNGHandler swig_types[96]
2563 #define SWIGTYPE_p_wxPNMHandler swig_types[97]
2564 #define SWIGTYPE_p_wxPaintDC swig_types[98]
2565 #define SWIGTYPE_p_wxPaintEvent swig_types[99]
2566 #define SWIGTYPE_p_wxPalette swig_types[100]
2567 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[101]
2568 #define SWIGTYPE_p_wxPaperSize swig_types[102]
2569 #define SWIGTYPE_p_wxPen swig_types[103]
2570 #define SWIGTYPE_p_wxPenList swig_types[104]
2571 #define SWIGTYPE_p_wxPixelDataBase swig_types[105]
2572 #define SWIGTYPE_p_wxPoint swig_types[106]
2573 #define SWIGTYPE_p_wxPostScriptDC swig_types[107]
2574 #define SWIGTYPE_p_wxPrintData swig_types[108]
2575 #define SWIGTYPE_p_wxPrinterDC swig_types[109]
2576 #define SWIGTYPE_p_wxPseudoDC swig_types[110]
2577 #define SWIGTYPE_p_wxPyApp swig_types[111]
2578 #define SWIGTYPE_p_wxPyCommandEvent swig_types[112]
2579 #define SWIGTYPE_p_wxPyEvent swig_types[113]
2580 #define SWIGTYPE_p_wxPyFontEnumerator swig_types[114]
2581 #define SWIGTYPE_p_wxPyImageHandler swig_types[115]
2582 #define SWIGTYPE_p_wxPyLocale swig_types[116]
2583 #define SWIGTYPE_p_wxPySizer swig_types[117]
2584 #define SWIGTYPE_p_wxPyValidator swig_types[118]
2585 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[119]
2586 #define SWIGTYPE_p_wxRect swig_types[120]
2587 #define SWIGTYPE_p_wxRegion swig_types[121]
2588 #define SWIGTYPE_p_wxRegionIterator swig_types[122]
2589 #define SWIGTYPE_p_wxRendererNative swig_types[123]
2590 #define SWIGTYPE_p_wxRendererVersion swig_types[124]
2591 #define SWIGTYPE_p_wxScreenDC swig_types[125]
2592 #define SWIGTYPE_p_wxScrollEvent swig_types[126]
2593 #define SWIGTYPE_p_wxScrollWinEvent swig_types[127]
2594 #define SWIGTYPE_p_wxSetCursorEvent swig_types[128]
2595 #define SWIGTYPE_p_wxShowEvent swig_types[129]
2596 #define SWIGTYPE_p_wxSize swig_types[130]
2597 #define SWIGTYPE_p_wxSizeEvent swig_types[131]
2598 #define SWIGTYPE_p_wxSizer swig_types[132]
2599 #define SWIGTYPE_p_wxSizerItem swig_types[133]
2600 #define SWIGTYPE_p_wxSplitterRenderParams swig_types[134]
2601 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[135]
2602 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[136]
2603 #define SWIGTYPE_p_wxStockGDI swig_types[137]
2604 #define SWIGTYPE_p_wxString swig_types[138]
2605 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[139]
2606 #define SWIGTYPE_p_wxTIFFHandler swig_types[140]
2607 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[141]
2608 #define SWIGTYPE_p_wxValidator swig_types[142]
2609 #define SWIGTYPE_p_wxWindow swig_types[143]
2610 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[144]
2611 #define SWIGTYPE_p_wxWindowDC swig_types[145]
2612 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[146]
2613 #define SWIGTYPE_p_wxXPMHandler swig_types[147]
2614 static swig_type_info *swig_types[149];
2615 static swig_module_info swig_module = {swig_types, 148, 0, 0, 0, 0};
2616 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2617 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2618
2619 /* -------- TYPES TABLE (END) -------- */
2620
2621 #if (PY_VERSION_HEX <= 0x02000000)
2622 # if !defined(SWIG_PYTHON_CLASSIC)
2623 # error "This python version requires to use swig with the '-classic' option"
2624 # endif
2625 #endif
2626 #if (PY_VERSION_HEX <= 0x02020000)
2627 # error "This python version requires to use swig with the '-nomodern' option"
2628 #endif
2629 #if (PY_VERSION_HEX <= 0x02020000)
2630 # error "This python version requires to use swig with the '-nomodernargs' option"
2631 #endif
2632 #ifndef METH_O
2633 # error "This python version requires to use swig with the '-nofastunpack' option"
2634 #endif
2635
2636 /*-----------------------------------------------
2637 @(target):= _gdi_.so
2638 ------------------------------------------------*/
2639 #define SWIG_init init_gdi_
2640
2641 #define SWIG_name "_gdi_"
2642
2643 #define SWIGVERSION 0x010329
2644
2645
2646 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2647 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2648
2649
2650 #include <stdexcept>
2651
2652
2653 namespace swig {
2654 class PyObject_ptr {
2655 protected:
2656 PyObject *_obj;
2657
2658 public:
2659 PyObject_ptr() :_obj(0)
2660 {
2661 }
2662
2663 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2664 {
2665 Py_XINCREF(_obj);
2666 }
2667
2668 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2669 {
2670 if (initial_ref) Py_XINCREF(_obj);
2671 }
2672
2673 PyObject_ptr & operator=(const PyObject_ptr& item)
2674 {
2675 Py_XINCREF(item._obj);
2676 Py_XDECREF(_obj);
2677 _obj = item._obj;
2678 return *this;
2679 }
2680
2681 ~PyObject_ptr()
2682 {
2683 Py_XDECREF(_obj);
2684 }
2685
2686 operator PyObject *() const
2687 {
2688 return _obj;
2689 }
2690
2691 PyObject *operator->() const
2692 {
2693 return _obj;
2694 }
2695 };
2696 }
2697
2698
2699 namespace swig {
2700 struct PyObject_var : PyObject_ptr {
2701 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2702
2703 PyObject_var & operator = (PyObject* obj)
2704 {
2705 Py_XDECREF(_obj);
2706 _obj = obj;
2707 return *this;
2708 }
2709 };
2710 }
2711
2712
2713 #include "wx/wxPython/wxPython.h"
2714 #include "wx/wxPython/pyclasses.h"
2715
2716
2717 static const wxString wxPyEmptyString(wxEmptyString);
2718
2719 #define SWIG_From_long PyInt_FromLong
2720
2721
2722 SWIGINTERNINLINE PyObject *
2723 SWIG_From_int (int value)
2724 {
2725 return SWIG_From_long (value);
2726 }
2727
2728
2729 #include <limits.h>
2730 #ifndef LLONG_MIN
2731 # define LLONG_MIN LONG_LONG_MIN
2732 #endif
2733 #ifndef LLONG_MAX
2734 # define LLONG_MAX LONG_LONG_MAX
2735 #endif
2736 #ifndef ULLONG_MAX
2737 # define ULLONG_MAX ULONG_LONG_MAX
2738 #endif
2739
2740
2741 SWIGINTERN int
2742 SWIG_AsVal_long (PyObject* obj, long* val)
2743 {
2744 if (PyNumber_Check(obj)) {
2745 if (val) *val = PyInt_AsLong(obj);
2746 return SWIG_OK;
2747 }
2748 return SWIG_TypeError;
2749 }
2750
2751
2752 SWIGINTERN int
2753 SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2754 {
2755 long v = 0;
2756 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2757 return SWIG_TypeError;
2758 }
2759 else if (val)
2760 *val = (unsigned long)v;
2761 return SWIG_OK;
2762 }
2763
2764
2765 SWIGINTERN int
2766 SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2767 {
2768 unsigned long v;
2769 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2770 if (SWIG_IsOK(res)) {
2771 if ((v > UCHAR_MAX)) {
2772 return SWIG_OverflowError;
2773 } else {
2774 if (val) *val = static_cast< unsigned char >(v);
2775 }
2776 }
2777 return res;
2778 }
2779
2780
2781 SWIGINTERNINLINE PyObject*
2782 SWIG_From_unsigned_SS_long (unsigned long value)
2783 {
2784 return (value > LONG_MAX) ?
2785 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2786 }
2787
2788
2789 SWIGINTERNINLINE PyObject *
2790 SWIG_From_unsigned_SS_char (unsigned char value)
2791 {
2792 return SWIG_From_unsigned_SS_long (value);
2793 }
2794
2795 SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){
2796 wxColour temp, *obj = &temp;
2797 if ( other == Py_None ) return false;
2798 if ( ! wxColour_helper(other, &obj) ) {
2799 PyErr_Clear();
2800 return false;
2801 }
2802 return self->operator==(*obj);
2803 }
2804 SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){
2805 wxColour temp, *obj = &temp;
2806 if ( other == Py_None ) return true;
2807 if ( ! wxColour_helper(other, &obj)) {
2808 PyErr_Clear();
2809 return true;
2810 }
2811 return self->operator!=(*obj);
2812 }
2813
2814 SWIGINTERN int
2815 SWIG_AsVal_bool (PyObject *obj, bool *val)
2816 {
2817 if (obj == Py_True) {
2818 if (val) *val = true;
2819 return SWIG_OK;
2820 } else if (obj == Py_False) {
2821 if (val) *val = false;
2822 return SWIG_OK;
2823 } else {
2824 long v = 0;
2825 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2826 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2827 return res;
2828 }
2829 }
2830
2831 SWIGINTERN PyObject *wxColour_Get(wxColour *self,bool includeAlpha=false){
2832 PyObject* rv = PyTuple_New(includeAlpha ? 4 : 3);
2833 int red = -1;
2834 int green = -1;
2835 int blue = -1;
2836 int alpha = wxALPHA_OPAQUE;
2837 if (self->Ok()) {
2838 red = self->Red();
2839 green = self->Green();
2840 blue = self->Blue();
2841 alpha = self->Alpha();
2842 }
2843 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2844 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2845 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
2846 if (includeAlpha)
2847 PyTuple_SetItem(rv, 3, PyInt_FromLong(alpha));
2848 return rv;
2849 }
2850 SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
2851 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2852 }
2853
2854 SWIGINTERN int
2855 SWIG_AsVal_int (PyObject * obj, int *val)
2856 {
2857 long v;
2858 int res = SWIG_AsVal_long (obj, &v);
2859 if (SWIG_IsOK(res)) {
2860 if ((v < INT_MIN || v > INT_MAX)) {
2861 return SWIG_OverflowError;
2862 } else {
2863 if (val) *val = static_cast< int >(v);
2864 }
2865 }
2866 return res;
2867 }
2868
2869 SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
2870 wxDash* dashes;
2871 int count = self->GetDashes(&dashes);
2872 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2873 PyObject* retval = PyList_New(0);
2874 for (int x=0; x<count; x++) {
2875 PyObject* pyint = PyInt_FromLong(dashes[x]);
2876 PyList_Append(retval, pyint);
2877 Py_DECREF(pyint);
2878 }
2879 wxPyEndBlockThreads(blocked);
2880 return retval;
2881 }
2882 SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
2883 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2884 int size = PyList_Size(pyDashes);
2885 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
2886
2887 // black magic warning! The array of wxDashes needs to exist as
2888 // long as the pen does because wxPen does not copy the array. So
2889 // stick a copy in a Python string object and attach it to _self,
2890 // and then call SetDashes with a pointer to that array. Then
2891 // when the Python pen object is destroyed the array will be
2892 // cleaned up too.
2893 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2894 PyObject_SetAttrString(_self, "_dashes", strDashes);
2895
2896 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2897 delete [] dashes;
2898 Py_DECREF(strDashes);
2899 wxPyEndBlockThreads(blocked);
2900 }
2901 SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
2902 SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
2903
2904 SWIGINTERNINLINE PyObject *
2905 SWIG_From_short (short value)
2906 {
2907 return SWIG_From_long (value);
2908 }
2909
2910
2911 SWIGINTERN int
2912 SWIG_AsVal_short (PyObject * obj, short *val)
2913 {
2914 long v;
2915 int res = SWIG_AsVal_long (obj, &v);
2916 if (SWIG_IsOK(res)) {
2917 if ((v < SHRT_MIN || v > SHRT_MAX)) {
2918 return SWIG_OverflowError;
2919 } else {
2920 if (val) *val = static_cast< short >(v);
2921 }
2922 }
2923 return res;
2924 }
2925
2926
2927 #include <wx/rawbmp.h>
2928
2929
2930 #include <wx/image.h>
2931
2932 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2933 char** cArray = NULL;
2934 int count;
2935
2936 if (!PyList_Check(listOfStrings)) {
2937 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2938 return NULL;
2939 }
2940 count = PyList_Size(listOfStrings);
2941 cArray = new char*[count];
2942
2943 for(int x=0; x<count; x++) {
2944 // TODO: Need some validation and error checking here
2945 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2946 }
2947 return cArray;
2948 }
2949
2950
2951 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
2952 char** cArray = NULL;
2953 wxBitmap* bmp;
2954
2955 cArray = ConvertListOfStrings(listOfStrings);
2956 if (! cArray)
2957 return NULL;
2958 bmp = new wxBitmap(cArray);
2959 delete [] cArray;
2960 return bmp;
2961 }
2962 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
2963 char* buf;
2964 Py_ssize_t length;
2965 PyString_AsStringAndSize(bits, &buf, &length);
2966 return new wxBitmap(buf, width, height, depth);
2967 }
2968 SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
2969 wxSize size(self->GetWidth(), self->GetHeight());
2970 return size;
2971 }
2972 SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
2973 wxMask *mask = new wxMask(*self, colour);
2974 self->SetMask(mask);
2975 }
2976 SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
2977 self->SetWidth(size.x);
2978 self->SetHeight(size.y);
2979 }
2980 SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : false; }
2981 SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : true; }
2982
2983 // See http://tinyurl.com/e5adr for what premultiplying alpha means. It
2984 // appears to me that the other platforms are already doing it, so I'll just
2985 // automatically do it for wxMSW here.
2986 #ifdef __WXMSW__
2987 #define wxPy_premultiply(p, a) ((p) * (a) / 256)
2988 #define wxPy_unpremultiply(p, a) ((a) ? ((p) * 256 / (a)) : (p))
2989 #else
2990 #define wxPy_premultiply(p, a) (p)
2991 #define wxPy_unpremultiply(p, a) (p)
2992 #endif
2993
2994
2995 wxBitmap* _BitmapFromBufferAlpha(int width, int height,
2996 buffer data, int DATASIZE,
2997 buffer alpha, int ALPHASIZE)
2998 {
2999 if (DATASIZE != width*height*3) {
3000 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3001 return NULL;
3002 }
3003
3004 if (ALPHASIZE != width*height) {
3005 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
3006 return NULL;
3007 }
3008
3009 wxBitmap* bmp = new wxBitmap(width, height, 32);
3010 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3011 if (! pixData) {
3012 // raise an exception...
3013 wxPyErr_SetString(PyExc_RuntimeError,
3014 "Failed to gain raw access to bitmap data.");
3015 return NULL;
3016 }
3017
3018 pixData.UseAlpha();
3019 wxAlphaPixelData::Iterator p(pixData);
3020 for (int y=0; y<height; y++) {
3021 wxAlphaPixelData::Iterator rowStart = p;
3022 for (int x=0; x<width; x++) {
3023 byte a = *(alpha++);
3024 p.Red() = wxPy_premultiply(*(data++), a);
3025 p.Green() = wxPy_premultiply(*(data++), a);
3026 p.Blue() = wxPy_premultiply(*(data++), a);
3027 p.Alpha() = a;
3028 ++p;
3029 }
3030 p = rowStart;
3031 p.OffsetY(pixData, 1);
3032 }
3033 return bmp;
3034 }
3035
3036 wxBitmap* _BitmapFromBuffer(int width, int height, buffer data, int DATASIZE)
3037 {
3038 if (DATASIZE != width*height*3) {
3039 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3040 return NULL;
3041 }
3042
3043 wxBitmap* bmp = new wxBitmap(width, height, 24);
3044 wxNativePixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3045 if (! pixData) {
3046 // raise an exception...
3047 wxPyErr_SetString(PyExc_RuntimeError,
3048 "Failed to gain raw access to bitmap data.");
3049 return NULL;
3050 }
3051
3052 wxNativePixelData::Iterator p(pixData);
3053 for (int y=0; y<height; y++) {
3054 wxNativePixelData::Iterator rowStart = p;
3055 for (int x=0; x<width; x++) {
3056 p.Red() = *(data++);
3057 p.Green() = *(data++);
3058 p.Blue() = *(data++);
3059 ++p;
3060 }
3061 p = rowStart;
3062 p.OffsetY(pixData, 1);
3063 }
3064 return bmp;
3065 }
3066
3067
3068 wxBitmap* _BitmapFromBufferRGBA(int width, int height, buffer data, int DATASIZE)
3069 {
3070 if (DATASIZE != width*height*4) {
3071 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3072 return NULL;
3073 }
3074
3075 wxBitmap* bmp = new wxBitmap(width, height, 32);
3076 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3077 if (! pixData) {
3078 // raise an exception...
3079 wxPyErr_SetString(PyExc_RuntimeError,
3080 "Failed to gain raw access to bitmap data.");
3081 return NULL;
3082 }
3083
3084 pixData.UseAlpha();
3085 wxAlphaPixelData::Iterator p(pixData);
3086 for (int y=0; y<height; y++) {
3087 wxAlphaPixelData::Iterator rowStart = p;
3088 for (int x=0; x<width; x++) {
3089 byte a = data[3];
3090 p.Red() = wxPy_premultiply(*(data++), a);
3091 p.Green() = wxPy_premultiply(*(data++), a);
3092 p.Blue() = wxPy_premultiply(*(data++), a);
3093 p.Alpha() = a; data++;
3094 ++p;
3095 }
3096 p = rowStart;
3097 p.OffsetY(pixData, 1);
3098 }
3099 return bmp;
3100 }
3101
3102
3103 typedef wxNativePixelData::Iterator wxNativePixelData_Accessor;
3104
3105 SWIGINTERN bool wxNativePixelData___nonzero__(wxNativePixelData *self){ return self->operator bool(); }
3106 SWIGINTERN void wxNativePixelData_Accessor_nextPixel(wxNativePixelData_Accessor *self){ ++(*self); }
3107 SWIGINTERN void wxNativePixelData_Accessor_Set(wxNativePixelData_Accessor *self,byte red,byte green,byte blue){
3108 self->Red() = red;
3109 self->Green() = green;
3110 self->Blue() = blue;
3111 }
3112 SWIGINTERN PyObject *wxNativePixelData_Accessor_Get(wxNativePixelData_Accessor *self){
3113 PyObject* rv = PyTuple_New(3);
3114 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
3115 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
3116 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
3117 return rv;
3118 }
3119
3120 typedef wxAlphaPixelData::Iterator wxAlphaPixelData_Accessor;
3121
3122 SWIGINTERN bool wxAlphaPixelData___nonzero__(wxAlphaPixelData *self){ return self->operator bool(); }
3123 SWIGINTERN void wxAlphaPixelData_Accessor_nextPixel(wxAlphaPixelData_Accessor *self){ ++(*self); }
3124 SWIGINTERN void wxAlphaPixelData_Accessor_Set(wxAlphaPixelData_Accessor *self,byte red,byte green,byte blue,byte alpha){
3125 self->Red() = wxPy_premultiply(red, alpha);
3126 self->Green() = wxPy_premultiply(green, alpha);
3127 self->Blue() = wxPy_premultiply(blue, alpha);
3128 self->Alpha() = alpha;
3129 }
3130 SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *self){
3131 PyObject* rv = PyTuple_New(4);
3132 int red = self->Red();
3133 int green = self->Green();
3134 int blue = self->Blue();
3135 int alpha = self->Alpha();
3136
3137 PyTuple_SetItem(rv, 0, PyInt_FromLong( wxPy_unpremultiply(red, alpha) ));
3138 PyTuple_SetItem(rv, 1, PyInt_FromLong( wxPy_unpremultiply(green, alpha) ));
3139 PyTuple_SetItem(rv, 2, PyInt_FromLong( wxPy_unpremultiply(blue, alpha) ));
3140 PyTuple_SetItem(rv, 3, PyInt_FromLong( alpha ));
3141 return rv;
3142 }
3143 SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
3144 if ( !colour.Ok() )
3145 return new wxMask(bitmap, *wxBLACK);
3146 else
3147 return new wxMask(bitmap, colour);
3148 }
3149
3150 #include <wx/iconbndl.h>
3151
3152 SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
3153 wxIcon* icon = new wxIcon();
3154 icon->CopyFromBitmap(bmp);
3155 return icon;
3156 }
3157 SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
3158 char** cArray = NULL;
3159 wxIcon* icon;
3160
3161 cArray = ConvertListOfStrings(listOfStrings);
3162 if (! cArray)
3163 return NULL;
3164 icon = new wxIcon(cArray);
3165 delete [] cArray;
3166 return icon;
3167 }
3168 SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
3169
3170
3171
3172 return new wxIconLocation(*filename);
3173
3174 }
3175 SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
3176
3177
3178
3179 // do nothing
3180
3181 }
3182 SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
3183
3184
3185
3186 return -1;
3187
3188 }
3189 SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
3190 #ifdef __WXGTK__
3191 wxImage img(cursorName, type);
3192 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
3193 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
3194 return new wxCursor(img);
3195 #else
3196 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
3197 #endif
3198 }
3199
3200
3201 SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
3202 (*self) ++;
3203 }
3204 SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
3205 return self->operator bool();
3206 }
3207
3208 #include <wx/fontutil.h>
3209 #include <wx/fontmap.h>
3210 #include <wx/fontenum.h>
3211
3212 SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
3213 return self->ToString();
3214 }
3215
3216 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
3217 static wxNativeEncodingInfo info;
3218 if ( wxGetNativeFontEncoding(encoding, &info) )
3219 return &info;
3220 else
3221 return NULL;
3222 }
3223
3224
3225 SWIGINTERNINLINE PyObject *
3226 SWIG_From_size_t (size_t value)
3227 {
3228 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3229 }
3230
3231
3232 SWIGINTERNINLINE int
3233 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3234 {
3235 unsigned long v;
3236 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3237 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3238 return res;
3239 }
3240
3241 SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
3242 wxFontEncoding alt_enc;
3243 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3244 return PyInt_FromLong(alt_enc);
3245 else {
3246 Py_INCREF(Py_None);
3247 return Py_None;
3248 }
3249 }
3250 SWIGINTERN wxFont *new_wxFont(wxString const &info){
3251 wxNativeFontInfo nfi;
3252 nfi.FromString(info);
3253 return new wxFont(nfi);
3254 }
3255 SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3256 return wxFont::New(pointSize, family, flags, face, encoding);
3257 }
3258 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,int family,int style,int weight,bool underlined=false,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3259 return wxFontBase::New(pixelSize, family,
3260 style, weight, underlined,
3261 face, encoding);
3262 }
3263 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3264 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3265 }
3266 SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3267 SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
3268
3269 class wxPyFontEnumerator : public wxFontEnumerator {
3270 public:
3271 wxPyFontEnumerator() {}
3272 ~wxPyFontEnumerator() {}
3273
3274 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3275 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
3276
3277 PYPRIVATE;
3278 };
3279
3280 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3281 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
3282
3283
3284 SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){
3285 PyObject* ret;
3286 wxArrayString arr = wxFontEnumerator::GetEncodings();
3287 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3288 ret = wxArrayString2PyList_helper(arr);
3289 wxPyEndBlockThreads(blocked);
3290 return ret;
3291 }
3292 SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){
3293 PyObject* ret;
3294 wxArrayString arr = wxFontEnumerator::GetFacenames();
3295 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3296 ret = wxArrayString2PyList_helper(arr);
3297 wxPyEndBlockThreads(blocked);
3298 return ret;
3299 }
3300
3301 #include <locale.h>
3302
3303 SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3304 wxLocale* loc;
3305 if (language == -1)
3306 loc = new wxLocale();
3307 else
3308 loc = new wxLocale(language, flags);
3309 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3310 // for the floating point conversions and such to work right.
3311 #if PY_VERSION_HEX < 0x02040000
3312 setlocale(LC_NUMERIC, "C");
3313 #endif
3314 return loc;
3315 }
3316 SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
3317 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
3318 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3319 // for the floating point conversions and such to work right.
3320 #if PY_VERSION_HEX < 0x02040000
3321 setlocale(LC_NUMERIC, "C");
3322 #endif
3323 return rc;
3324 }
3325 SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3326 bool rc = self->Init(language, flags);
3327 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3328 // for the floating point conversions and such to work right.
3329 #if PY_VERSION_HEX < 0x02040000
3330 setlocale(LC_NUMERIC, "C");
3331 #endif
3332 return rc;
3333 }
3334
3335 class wxPyLocale : public wxLocale
3336 {
3337 public:
3338 wxPyLocale();
3339
3340 wxPyLocale(const wxChar *szName, // name (for messages)
3341 const wxChar *szShort = (const wxChar *) NULL, // dir prefix (for msg files)
3342 const wxChar *szLocale = (const wxChar *) NULL, // locale (for setlocale)
3343 bool bLoadDefault = true, // preload wxstd.mo?
3344 bool bConvertEncoding = false); // convert Win<->Unix if necessary?
3345
3346 wxPyLocale(int language, // wxLanguage id or custom language
3347 int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING);
3348
3349 ~wxPyLocale();
3350
3351 virtual const wxChar *GetString(const wxChar *szOrigString,
3352 const wxChar *szDomain = NULL) const;
3353 virtual const wxChar *GetString(const wxChar *szOrigString,
3354 const wxChar *szOrigString2, size_t n,
3355 const wxChar *szDomain = NULL) const;
3356
3357 virtual wxChar *GetSingularString(const wxChar *szOrigString,
3358 const wxChar *szDomain = NULL) const;
3359 virtual wxChar *GetPluralString(const wxChar *szOrigString,
3360 const wxChar *szOrigString2, size_t n,
3361 const wxChar *szDomain = NULL) const;
3362
3363 PYPRIVATE;
3364 private:
3365 DECLARE_NO_COPY_CLASS(wxPyLocale)
3366 };
3367
3368 wxPyLocale::wxPyLocale() : wxLocale()
3369 {
3370 }
3371
3372 wxPyLocale::wxPyLocale(const wxChar *szName, // name (for messages)
3373 const wxChar *szShort, // dir prefix (for msg files)
3374 const wxChar *szLocale, // locale (for setlocale)
3375 bool bLoadDefault, // preload wxstd.mo?
3376 bool bConvertEncoding) // convert Win<->Unix if necessary?
3377 : wxLocale(szName, szShort, szLocale, bLoadDefault, bConvertEncoding)
3378 {
3379 }
3380
3381 wxPyLocale::wxPyLocale(int language, // wxLanguage id or custom language
3382 int flags) : wxLocale(language, flags)
3383 {
3384 }
3385
3386 wxPyLocale::~wxPyLocale()
3387 {
3388 }
3389
3390 const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3391 const wxChar *szDomain) const
3392 {
3393 wxChar *str = GetSingularString(szOrigString, szDomain);
3394 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szDomain);
3395 }
3396
3397 const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3398 const wxChar *szOrigString2, size_t n,
3399 const wxChar *szDomain) const
3400 {
3401 wxChar *str = GetPluralString(szOrigString, szOrigString2, n, szDomain);
3402 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szOrigString2, n, szDomain);
3403 }
3404
3405 wxChar *wxPyLocale::GetSingularString(const wxChar *szOrigString,
3406 const wxChar *szDomain) const
3407 {
3408 bool found;
3409 static wxString str;
3410 str = _T("error in translation"); // when the first if condition is true but the second if condition is not we do not want to return the previously queried string.
3411 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3412 if((found=wxPyCBH_findCallback(m_myInst, "GetSingularString"))) {
3413 PyObject* param1 = wx2PyString(szOrigString);
3414 PyObject* param2 = wx2PyString(szDomain);
3415 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OO)", param1, param2));
3416 Py_DECREF(param1);
3417 Py_DECREF(param2);
3418 if (ret) {
3419 str = Py2wxString(ret);
3420 Py_DECREF(ret);
3421 }
3422 }
3423 wxPyEndBlockThreads(blocked);
3424 return (found ? (wxChar*)str.c_str() : NULL);
3425 }
3426
3427 wxChar *wxPyLocale::GetPluralString(const wxChar *szOrigString,
3428 const wxChar *szOrigString2, size_t n,
3429 const wxChar *szDomain) const
3430 {
3431 bool found;
3432 static wxString str;
3433 str = _T("error in translation"); // when the first if condition is true but the second if condition is not we do not want to return the previously queried string.
3434 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3435 if((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) {
3436 PyObject* param1 = wx2PyString(szOrigString);
3437 PyObject* param2 = wx2PyString(szOrigString2);
3438 PyObject* param4 = wx2PyString(szDomain);
3439 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOiO)", param1, param2, (int)n, param4));
3440 Py_DECREF(param1);
3441 Py_DECREF(param2);
3442 Py_DECREF(param4);
3443 if( ret) {
3444 str = Py2wxString(ret);
3445 Py_DECREF(ret);
3446 }
3447 }
3448 wxPyEndBlockThreads(blocked);
3449 return (found ? (wxChar*)str.c_str() : NULL);
3450 }
3451
3452 SWIGINTERN wxPyLocale *new_wxPyLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3453 wxPyLocale* loc;
3454 if (language == -1)
3455 loc = new wxPyLocale();
3456 else
3457 loc = new wxPyLocale(language, flags);
3458 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3459 // for the floating point conversions and such to work right.
3460 #if PY_VERSION_HEX < 0x02040000
3461 setlocale(LC_NUMERIC, "C");
3462 #endif
3463 return loc;
3464 }
3465
3466 #include "wx/wxPython/pydrawxxx.h"
3467
3468 SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
3469 wxColour col;
3470 self->GetPixel(x, y, &col);
3471 return col;
3472 }
3473 SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
3474 wxColour col;
3475 self->GetPixel(pt, &col);
3476 return col;
3477 }
3478
3479 SWIGINTERN int
3480 SWIG_AsVal_double (PyObject *obj, double* val)
3481 {
3482 if (PyNumber_Check(obj)) {
3483 if (val) *val = PyFloat_AsDouble(obj);
3484 return SWIG_OK;
3485 }
3486 return SWIG_TypeError;
3487 }
3488
3489 SWIGINTERN wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){
3490 wxRect rv;
3491 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3492 return rv;
3493 }
3494 SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
3495 wxRect rect;
3496 self->GetClippingBox(rect);
3497 return rect;
3498 }
3499 SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
3500 wxArrayInt widths;
3501 self->GetPartialTextExtents(text, widths);
3502 return widths;
3503 }
3504
3505 #define SWIG_From_double PyFloat_FromDouble
3506
3507 SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
3508 self->SetLogicalOrigin(point.x, point.y);
3509 }
3510 SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
3511 self->SetDeviceOrigin(point.x, point.y);
3512 }
3513 SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
3514 self->CalcBoundingBox(point.x, point.y);
3515 }
3516 SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3517 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3518 }
3519 SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3520 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3521 }
3522 SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3523 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3524 }
3525 SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3526 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3527 }
3528 SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3529 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3530 }
3531 SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
3532 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3533 }
3534
3535 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3536 *x1 = dc->MinX();
3537 *y1 = dc->MinY();
3538 *x2 = dc->MaxX();
3539 *y2 = dc->MaxY();
3540 }
3541
3542
3543 #include <wx/dcbuffer.h>
3544
3545
3546 #include <wx/dcps.h>
3547
3548
3549 #include <wx/metafile.h>
3550
3551
3552
3553 SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
3554 self->AddColour(name, wxColour(red, green, blue));
3555 }
3556
3557 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3558 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3559 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3560 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3561
3562
3563 #include <wx/effects.h>
3564
3565
3566 #include "wx/renderer.h"
3567
3568
3569 SWIGINTERNINLINE PyObject*
3570 SWIG_From_bool (bool value)
3571 {
3572 return PyBool_FromLong(value ? 1 : 0);
3573 }
3574
3575
3576 #include "wx/wxPython/pseudodc.h"
3577
3578 SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){
3579 wxRect rect;
3580 self->GetIdBounds(id, rect);
3581 return rect;
3582 }
3583 #ifdef __cplusplus
3584 extern "C" {
3585 #endif
3586 SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3587 PyObject *resultobj = 0;
3588 wxGDIObject *result = 0 ;
3589
3590 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
3591 {
3592 if (!wxPyCheckForApp()) SWIG_fail;
3593 PyThreadState* __tstate = wxPyBeginAllowThreads();
3594 result = (wxGDIObject *)new wxGDIObject();
3595 wxPyEndAllowThreads(__tstate);
3596 if (PyErr_Occurred()) SWIG_fail;
3597 }
3598 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
3599 return resultobj;
3600 fail:
3601 return NULL;
3602 }
3603
3604
3605 SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3606 PyObject *resultobj = 0;
3607 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3608 void *argp1 = 0 ;
3609 int res1 = 0 ;
3610 PyObject *swig_obj[1] ;
3611
3612 if (!args) SWIG_fail;
3613 swig_obj[0] = args;
3614 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
3615 if (!SWIG_IsOK(res1)) {
3616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3617 }
3618 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3619 {
3620 PyThreadState* __tstate = wxPyBeginAllowThreads();
3621 delete arg1;
3622
3623 wxPyEndAllowThreads(__tstate);
3624 if (PyErr_Occurred()) SWIG_fail;
3625 }
3626 resultobj = SWIG_Py_Void();
3627 return resultobj;
3628 fail:
3629 return NULL;
3630 }
3631
3632
3633 SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3634 PyObject *resultobj = 0;
3635 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3636 bool result;
3637 void *argp1 = 0 ;
3638 int res1 = 0 ;
3639 PyObject *swig_obj[1] ;
3640
3641 if (!args) SWIG_fail;
3642 swig_obj[0] = args;
3643 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
3644 if (!SWIG_IsOK(res1)) {
3645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3646 }
3647 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3648 {
3649 PyThreadState* __tstate = wxPyBeginAllowThreads();
3650 result = (bool)(arg1)->IsNull();
3651 wxPyEndAllowThreads(__tstate);
3652 if (PyErr_Occurred()) SWIG_fail;
3653 }
3654 {
3655 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3656 }
3657 return resultobj;
3658 fail:
3659 return NULL;
3660 }
3661
3662
3663 SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3664 PyObject *obj;
3665 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3666 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
3667 return SWIG_Py_Void();
3668 }
3669
3670 SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3671 return SWIG_Python_InitShadowInstance(args);
3672 }
3673
3674 SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3675 PyObject *resultobj = 0;
3676 byte arg1 = (byte) 0 ;
3677 byte arg2 = (byte) 0 ;
3678 byte arg3 = (byte) 0 ;
3679 byte arg4 = (byte) wxALPHA_OPAQUE ;
3680 wxColour *result = 0 ;
3681 unsigned char val1 ;
3682 int ecode1 = 0 ;
3683 unsigned char val2 ;
3684 int ecode2 = 0 ;
3685 unsigned char val3 ;
3686 int ecode3 = 0 ;
3687 unsigned char val4 ;
3688 int ecode4 = 0 ;
3689 PyObject * obj0 = 0 ;
3690 PyObject * obj1 = 0 ;
3691 PyObject * obj2 = 0 ;
3692 PyObject * obj3 = 0 ;
3693 char * kwnames[] = {
3694 (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
3695 };
3696
3697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
3698 if (obj0) {
3699 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
3700 if (!SWIG_IsOK(ecode1)) {
3701 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
3702 }
3703 arg1 = static_cast< byte >(val1);
3704 }
3705 if (obj1) {
3706 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
3707 if (!SWIG_IsOK(ecode2)) {
3708 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
3709 }
3710 arg2 = static_cast< byte >(val2);
3711 }
3712 if (obj2) {
3713 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
3714 if (!SWIG_IsOK(ecode3)) {
3715 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
3716 }
3717 arg3 = static_cast< byte >(val3);
3718 }
3719 if (obj3) {
3720 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
3721 if (!SWIG_IsOK(ecode4)) {
3722 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'");
3723 }
3724 arg4 = static_cast< byte >(val4);
3725 }
3726 {
3727 PyThreadState* __tstate = wxPyBeginAllowThreads();
3728 result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4);
3729 wxPyEndAllowThreads(__tstate);
3730 if (PyErr_Occurred()) SWIG_fail;
3731 }
3732 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
3733 return resultobj;
3734 fail:
3735 return NULL;
3736 }
3737
3738
3739 SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3740 PyObject *resultobj = 0;
3741 wxString *arg1 = 0 ;
3742 wxColour *result = 0 ;
3743 bool temp1 = false ;
3744 PyObject * obj0 = 0 ;
3745 char * kwnames[] = {
3746 (char *) "colorName", NULL
3747 };
3748
3749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
3750 {
3751 arg1 = wxString_in_helper(obj0);
3752 if (arg1 == NULL) SWIG_fail;
3753 temp1 = true;
3754 }
3755 {
3756 if (!wxPyCheckForApp()) SWIG_fail;
3757 PyThreadState* __tstate = wxPyBeginAllowThreads();
3758 result = (wxColour *)new wxColour((wxString const &)*arg1);
3759 wxPyEndAllowThreads(__tstate);
3760 if (PyErr_Occurred()) SWIG_fail;
3761 }
3762 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3763 {
3764 if (temp1)
3765 delete arg1;
3766 }
3767 return resultobj;
3768 fail:
3769 {
3770 if (temp1)
3771 delete arg1;
3772 }
3773 return NULL;
3774 }
3775
3776
3777 SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3778 PyObject *resultobj = 0;
3779 unsigned long arg1 ;
3780 wxColour *result = 0 ;
3781 unsigned long val1 ;
3782 int ecode1 = 0 ;
3783 PyObject * obj0 = 0 ;
3784 char * kwnames[] = {
3785 (char *) "colRGB", NULL
3786 };
3787
3788 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
3789 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
3790 if (!SWIG_IsOK(ecode1)) {
3791 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
3792 }
3793 arg1 = static_cast< unsigned long >(val1);
3794 {
3795 PyThreadState* __tstate = wxPyBeginAllowThreads();
3796 result = (wxColour *)new wxColour(arg1);
3797 wxPyEndAllowThreads(__tstate);
3798 if (PyErr_Occurred()) SWIG_fail;
3799 }
3800 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3801 return resultobj;
3802 fail:
3803 return NULL;
3804 }
3805
3806
3807 SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3808 PyObject *resultobj = 0;
3809 wxColour *arg1 = (wxColour *) 0 ;
3810 void *argp1 = 0 ;
3811 int res1 = 0 ;
3812 PyObject *swig_obj[1] ;
3813
3814 if (!args) SWIG_fail;
3815 swig_obj[0] = args;
3816 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
3817 if (!SWIG_IsOK(res1)) {
3818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
3819 }
3820 arg1 = reinterpret_cast< wxColour * >(argp1);
3821 {
3822 PyThreadState* __tstate = wxPyBeginAllowThreads();
3823 delete arg1;
3824
3825 wxPyEndAllowThreads(__tstate);
3826 if (PyErr_Occurred()) SWIG_fail;
3827 }
3828 resultobj = SWIG_Py_Void();
3829 return resultobj;
3830 fail:
3831 return NULL;
3832 }
3833
3834
3835 SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3836 PyObject *resultobj = 0;
3837 wxColour *arg1 = (wxColour *) 0 ;
3838 byte result;
3839 void *argp1 = 0 ;
3840 int res1 = 0 ;
3841 PyObject *swig_obj[1] ;
3842
3843 if (!args) SWIG_fail;
3844 swig_obj[0] = args;
3845 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3846 if (!SWIG_IsOK(res1)) {
3847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
3848 }
3849 arg1 = reinterpret_cast< wxColour * >(argp1);
3850 {
3851 PyThreadState* __tstate = wxPyBeginAllowThreads();
3852 result = (byte)(arg1)->Red();
3853 wxPyEndAllowThreads(__tstate);
3854 if (PyErr_Occurred()) SWIG_fail;
3855 }
3856 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3857 return resultobj;
3858 fail:
3859 return NULL;
3860 }
3861
3862
3863 SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3864 PyObject *resultobj = 0;
3865 wxColour *arg1 = (wxColour *) 0 ;
3866 byte result;
3867 void *argp1 = 0 ;
3868 int res1 = 0 ;
3869 PyObject *swig_obj[1] ;
3870
3871 if (!args) SWIG_fail;
3872 swig_obj[0] = args;
3873 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3874 if (!SWIG_IsOK(res1)) {
3875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
3876 }
3877 arg1 = reinterpret_cast< wxColour * >(argp1);
3878 {
3879 PyThreadState* __tstate = wxPyBeginAllowThreads();
3880 result = (byte)(arg1)->Green();
3881 wxPyEndAllowThreads(__tstate);
3882 if (PyErr_Occurred()) SWIG_fail;
3883 }
3884 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3885 return resultobj;
3886 fail:
3887 return NULL;
3888 }
3889
3890
3891 SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3892 PyObject *resultobj = 0;
3893 wxColour *arg1 = (wxColour *) 0 ;
3894 byte result;
3895 void *argp1 = 0 ;
3896 int res1 = 0 ;
3897 PyObject *swig_obj[1] ;
3898
3899 if (!args) SWIG_fail;
3900 swig_obj[0] = args;
3901 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3902 if (!SWIG_IsOK(res1)) {
3903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
3904 }
3905 arg1 = reinterpret_cast< wxColour * >(argp1);
3906 {
3907 PyThreadState* __tstate = wxPyBeginAllowThreads();
3908 result = (byte)(arg1)->Blue();
3909 wxPyEndAllowThreads(__tstate);
3910 if (PyErr_Occurred()) SWIG_fail;
3911 }
3912 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3913 return resultobj;
3914 fail:
3915 return NULL;
3916 }
3917
3918
3919 SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3920 PyObject *resultobj = 0;
3921 wxColour *arg1 = (wxColour *) 0 ;
3922 byte result;
3923 void *argp1 = 0 ;
3924 int res1 = 0 ;
3925 PyObject *swig_obj[1] ;
3926
3927 if (!args) SWIG_fail;
3928 swig_obj[0] = args;
3929 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3930 if (!SWIG_IsOK(res1)) {
3931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'");
3932 }
3933 arg1 = reinterpret_cast< wxColour * >(argp1);
3934 {
3935 PyThreadState* __tstate = wxPyBeginAllowThreads();
3936 result = (byte)(arg1)->Alpha();
3937 wxPyEndAllowThreads(__tstate);
3938 if (PyErr_Occurred()) SWIG_fail;
3939 }
3940 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3941 return resultobj;
3942 fail:
3943 return NULL;
3944 }
3945
3946
3947 SWIGINTERN PyObject *_wrap_Colour_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3948 PyObject *resultobj = 0;
3949 wxColour *arg1 = (wxColour *) 0 ;
3950 bool result;
3951 void *argp1 = 0 ;
3952 int res1 = 0 ;
3953 PyObject *swig_obj[1] ;
3954
3955 if (!args) SWIG_fail;
3956 swig_obj[0] = args;
3957 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3958 if (!SWIG_IsOK(res1)) {
3959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Ok" "', expected argument " "1"" of type '" "wxColour *""'");
3960 }
3961 arg1 = reinterpret_cast< wxColour * >(argp1);
3962 {
3963 PyThreadState* __tstate = wxPyBeginAllowThreads();
3964 result = (bool)(arg1)->Ok();
3965 wxPyEndAllowThreads(__tstate);
3966 if (PyErr_Occurred()) SWIG_fail;
3967 }
3968 {
3969 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3970 }
3971 return resultobj;
3972 fail:
3973 return NULL;
3974 }
3975
3976
3977 SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3978 PyObject *resultobj = 0;
3979 wxColour *arg1 = (wxColour *) 0 ;
3980 byte arg2 ;
3981 byte arg3 ;
3982 byte arg4 ;
3983 byte arg5 = (byte) wxALPHA_OPAQUE ;
3984 void *argp1 = 0 ;
3985 int res1 = 0 ;
3986 unsigned char val2 ;
3987 int ecode2 = 0 ;
3988 unsigned char val3 ;
3989 int ecode3 = 0 ;
3990 unsigned char val4 ;
3991 int ecode4 = 0 ;
3992 unsigned char val5 ;
3993 int ecode5 = 0 ;
3994 PyObject * obj0 = 0 ;
3995 PyObject * obj1 = 0 ;
3996 PyObject * obj2 = 0 ;
3997 PyObject * obj3 = 0 ;
3998 PyObject * obj4 = 0 ;
3999 char * kwnames[] = {
4000 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
4001 };
4002
4003 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
4004 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4005 if (!SWIG_IsOK(res1)) {
4006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
4007 }
4008 arg1 = reinterpret_cast< wxColour * >(argp1);
4009 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4010 if (!SWIG_IsOK(ecode2)) {
4011 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
4012 }
4013 arg2 = static_cast< byte >(val2);
4014 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4015 if (!SWIG_IsOK(ecode3)) {
4016 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
4017 }
4018 arg3 = static_cast< byte >(val3);
4019 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4020 if (!SWIG_IsOK(ecode4)) {
4021 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
4022 }
4023 arg4 = static_cast< byte >(val4);
4024 if (obj4) {
4025 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
4026 if (!SWIG_IsOK(ecode5)) {
4027 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'");
4028 }
4029 arg5 = static_cast< byte >(val5);
4030 }
4031 {
4032 PyThreadState* __tstate = wxPyBeginAllowThreads();
4033 (arg1)->Set(arg2,arg3,arg4,arg5);
4034 wxPyEndAllowThreads(__tstate);
4035 if (PyErr_Occurred()) SWIG_fail;
4036 }
4037 resultobj = SWIG_Py_Void();
4038 return resultobj;
4039 fail:
4040 return NULL;
4041 }
4042
4043
4044 SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4045 PyObject *resultobj = 0;
4046 wxColour *arg1 = (wxColour *) 0 ;
4047 unsigned long arg2 ;
4048 void *argp1 = 0 ;
4049 int res1 = 0 ;
4050 unsigned long val2 ;
4051 int ecode2 = 0 ;
4052 PyObject * obj0 = 0 ;
4053 PyObject * obj1 = 0 ;
4054 char * kwnames[] = {
4055 (char *) "self",(char *) "colRGB", NULL
4056 };
4057
4058 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4059 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4060 if (!SWIG_IsOK(res1)) {
4061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4062 }
4063 arg1 = reinterpret_cast< wxColour * >(argp1);
4064 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
4065 if (!SWIG_IsOK(ecode2)) {
4066 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
4067 }
4068 arg2 = static_cast< unsigned long >(val2);
4069 {
4070 PyThreadState* __tstate = wxPyBeginAllowThreads();
4071 (arg1)->Set(arg2);
4072 wxPyEndAllowThreads(__tstate);
4073 if (PyErr_Occurred()) SWIG_fail;
4074 }
4075 resultobj = SWIG_Py_Void();
4076 return resultobj;
4077 fail:
4078 return NULL;
4079 }
4080
4081
4082 SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4083 PyObject *resultobj = 0;
4084 wxColour *arg1 = (wxColour *) 0 ;
4085 wxString *arg2 = 0 ;
4086 void *argp1 = 0 ;
4087 int res1 = 0 ;
4088 bool temp2 = false ;
4089 PyObject * obj0 = 0 ;
4090 PyObject * obj1 = 0 ;
4091 char * kwnames[] = {
4092 (char *) "self",(char *) "colourName", NULL
4093 };
4094
4095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
4096 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4097 if (!SWIG_IsOK(res1)) {
4098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
4099 }
4100 arg1 = reinterpret_cast< wxColour * >(argp1);
4101 {
4102 arg2 = wxString_in_helper(obj1);
4103 if (arg2 == NULL) SWIG_fail;
4104 temp2 = true;
4105 }
4106 {
4107 PyThreadState* __tstate = wxPyBeginAllowThreads();
4108 (arg1)->InitFromName((wxString const &)*arg2);
4109 wxPyEndAllowThreads(__tstate);
4110 if (PyErr_Occurred()) SWIG_fail;
4111 }
4112 resultobj = SWIG_Py_Void();
4113 {
4114 if (temp2)
4115 delete arg2;
4116 }
4117 return resultobj;
4118 fail:
4119 {
4120 if (temp2)
4121 delete arg2;
4122 }
4123 return NULL;
4124 }
4125
4126
4127 SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4128 PyObject *resultobj = 0;
4129 wxColour *arg1 = (wxColour *) 0 ;
4130 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
4131 wxString result;
4132 void *argp1 = 0 ;
4133 int res1 = 0 ;
4134 long val2 ;
4135 int ecode2 = 0 ;
4136 PyObject * obj0 = 0 ;
4137 PyObject * obj1 = 0 ;
4138 char * kwnames[] = {
4139 (char *) "self",(char *) "flags", NULL
4140 };
4141
4142 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
4143 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4144 if (!SWIG_IsOK(res1)) {
4145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
4146 }
4147 arg1 = reinterpret_cast< wxColour * >(argp1);
4148 if (obj1) {
4149 ecode2 = SWIG_AsVal_long(obj1, &val2);
4150 if (!SWIG_IsOK(ecode2)) {
4151 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
4152 }
4153 arg2 = static_cast< long >(val2);
4154 }
4155 {
4156 PyThreadState* __tstate = wxPyBeginAllowThreads();
4157 result = ((wxColour const *)arg1)->GetAsString(arg2);
4158 wxPyEndAllowThreads(__tstate);
4159 if (PyErr_Occurred()) SWIG_fail;
4160 }
4161 {
4162 #if wxUSE_UNICODE
4163 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4164 #else
4165 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4166 #endif
4167 }
4168 return resultobj;
4169 fail:
4170 return NULL;
4171 }
4172
4173
4174 SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4175 PyObject *resultobj = 0;
4176 wxColour *arg1 = (wxColour *) 0 ;
4177 long 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_wxColour, 0 | 0 );
4185 if (!SWIG_IsOK(res1)) {
4186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
4187 }
4188 arg1 = reinterpret_cast< wxColour * >(argp1);
4189 {
4190 PyThreadState* __tstate = wxPyBeginAllowThreads();
4191 result = (long)((wxColour const *)arg1)->GetPixel();
4192 wxPyEndAllowThreads(__tstate);
4193 if (PyErr_Occurred()) SWIG_fail;
4194 }
4195 resultobj = SWIG_From_long(static_cast< long >(result));
4196 return resultobj;
4197 fail:
4198 return NULL;
4199 }
4200
4201
4202 SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4203 PyObject *resultobj = 0;
4204 wxColour *arg1 = (wxColour *) 0 ;
4205 PyObject *arg2 = (PyObject *) 0 ;
4206 bool result;
4207 void *argp1 = 0 ;
4208 int res1 = 0 ;
4209 PyObject * obj0 = 0 ;
4210 PyObject * obj1 = 0 ;
4211 char * kwnames[] = {
4212 (char *) "self",(char *) "other", NULL
4213 };
4214
4215 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4216 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4217 if (!SWIG_IsOK(res1)) {
4218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
4219 }
4220 arg1 = reinterpret_cast< wxColour * >(argp1);
4221 arg2 = obj1;
4222 {
4223 result = (bool)wxColour___eq__(arg1,arg2);
4224 if (PyErr_Occurred()) SWIG_fail;
4225 }
4226 {
4227 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4228 }
4229 return resultobj;
4230 fail:
4231 return NULL;
4232 }
4233
4234
4235 SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4236 PyObject *resultobj = 0;
4237 wxColour *arg1 = (wxColour *) 0 ;
4238 PyObject *arg2 = (PyObject *) 0 ;
4239 bool result;
4240 void *argp1 = 0 ;
4241 int res1 = 0 ;
4242 PyObject * obj0 = 0 ;
4243 PyObject * obj1 = 0 ;
4244 char * kwnames[] = {
4245 (char *) "self",(char *) "other", NULL
4246 };
4247
4248 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4249 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4250 if (!SWIG_IsOK(res1)) {
4251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
4252 }
4253 arg1 = reinterpret_cast< wxColour * >(argp1);
4254 arg2 = obj1;
4255 {
4256 result = (bool)wxColour___ne__(arg1,arg2);
4257 if (PyErr_Occurred()) SWIG_fail;
4258 }
4259 {
4260 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4261 }
4262 return resultobj;
4263 fail:
4264 return NULL;
4265 }
4266
4267
4268 SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4269 PyObject *resultobj = 0;
4270 wxColour *arg1 = (wxColour *) 0 ;
4271 bool arg2 = (bool) false ;
4272 PyObject *result = 0 ;
4273 void *argp1 = 0 ;
4274 int res1 = 0 ;
4275 bool val2 ;
4276 int ecode2 = 0 ;
4277 PyObject * obj0 = 0 ;
4278 PyObject * obj1 = 0 ;
4279 char * kwnames[] = {
4280 (char *) "self",(char *) "includeAlpha", NULL
4281 };
4282
4283 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail;
4284 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4285 if (!SWIG_IsOK(res1)) {
4286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
4287 }
4288 arg1 = reinterpret_cast< wxColour * >(argp1);
4289 if (obj1) {
4290 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4291 if (!SWIG_IsOK(ecode2)) {
4292 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'");
4293 }
4294 arg2 = static_cast< bool >(val2);
4295 }
4296 {
4297 result = (PyObject *)wxColour_Get(arg1,arg2);
4298 if (PyErr_Occurred()) SWIG_fail;
4299 }
4300 resultobj = result;
4301 return resultobj;
4302 fail:
4303 return NULL;
4304 }
4305
4306
4307 SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4308 PyObject *resultobj = 0;
4309 wxColour *arg1 = (wxColour *) 0 ;
4310 unsigned long result;
4311 void *argp1 = 0 ;
4312 int res1 = 0 ;
4313 PyObject *swig_obj[1] ;
4314
4315 if (!args) SWIG_fail;
4316 swig_obj[0] = args;
4317 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4318 if (!SWIG_IsOK(res1)) {
4319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4320 }
4321 arg1 = reinterpret_cast< wxColour * >(argp1);
4322 {
4323 result = (unsigned long)wxColour_GetRGB(arg1);
4324 if (PyErr_Occurred()) SWIG_fail;
4325 }
4326 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
4327 return resultobj;
4328 fail:
4329 return NULL;
4330 }
4331
4332
4333 SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4334 PyObject *obj;
4335 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4336 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
4337 return SWIG_Py_Void();
4338 }
4339
4340 SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4341 return SWIG_Python_InitShadowInstance(args);
4342 }
4343
4344 SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4345 PyObject *resultobj = 0;
4346 int arg1 ;
4347 unsigned char *arg2 = (unsigned char *) 0 ;
4348 unsigned char *arg3 = (unsigned char *) 0 ;
4349 unsigned char *arg4 = (unsigned char *) 0 ;
4350 wxPalette *result = 0 ;
4351 int val1 ;
4352 int ecode1 = 0 ;
4353 void *argp2 = 0 ;
4354 int res2 = 0 ;
4355 void *argp3 = 0 ;
4356 int res3 = 0 ;
4357 void *argp4 = 0 ;
4358 int res4 = 0 ;
4359 PyObject * obj0 = 0 ;
4360 PyObject * obj1 = 0 ;
4361 PyObject * obj2 = 0 ;
4362 PyObject * obj3 = 0 ;
4363 char * kwnames[] = {
4364 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
4365 };
4366
4367 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4368 ecode1 = SWIG_AsVal_int(obj0, &val1);
4369 if (!SWIG_IsOK(ecode1)) {
4370 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
4371 }
4372 arg1 = static_cast< int >(val1);
4373 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
4374 if (!SWIG_IsOK(res2)) {
4375 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
4376 }
4377 arg2 = reinterpret_cast< unsigned char * >(argp2);
4378 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
4379 if (!SWIG_IsOK(res3)) {
4380 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4381 }
4382 arg3 = reinterpret_cast< unsigned char * >(argp3);
4383 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4384 if (!SWIG_IsOK(res4)) {
4385 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4386 }
4387 arg4 = reinterpret_cast< unsigned char * >(argp4);
4388 {
4389 if (!wxPyCheckForApp()) SWIG_fail;
4390 PyThreadState* __tstate = wxPyBeginAllowThreads();
4391 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4392 wxPyEndAllowThreads(__tstate);
4393 if (PyErr_Occurred()) SWIG_fail;
4394 }
4395 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4396 return resultobj;
4397 fail:
4398 return NULL;
4399 }
4400
4401
4402 SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4403 PyObject *resultobj = 0;
4404 wxPalette *arg1 = (wxPalette *) 0 ;
4405 void *argp1 = 0 ;
4406 int res1 = 0 ;
4407 PyObject *swig_obj[1] ;
4408
4409 if (!args) SWIG_fail;
4410 swig_obj[0] = args;
4411 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4412 if (!SWIG_IsOK(res1)) {
4413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4414 }
4415 arg1 = reinterpret_cast< wxPalette * >(argp1);
4416 {
4417 PyThreadState* __tstate = wxPyBeginAllowThreads();
4418 delete arg1;
4419
4420 wxPyEndAllowThreads(__tstate);
4421 if (PyErr_Occurred()) SWIG_fail;
4422 }
4423 resultobj = SWIG_Py_Void();
4424 return resultobj;
4425 fail:
4426 return NULL;
4427 }
4428
4429
4430 SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4431 PyObject *resultobj = 0;
4432 wxPalette *arg1 = (wxPalette *) 0 ;
4433 byte arg2 ;
4434 byte arg3 ;
4435 byte arg4 ;
4436 int result;
4437 void *argp1 = 0 ;
4438 int res1 = 0 ;
4439 unsigned char val2 ;
4440 int ecode2 = 0 ;
4441 unsigned char val3 ;
4442 int ecode3 = 0 ;
4443 unsigned char val4 ;
4444 int ecode4 = 0 ;
4445 PyObject * obj0 = 0 ;
4446 PyObject * obj1 = 0 ;
4447 PyObject * obj2 = 0 ;
4448 PyObject * obj3 = 0 ;
4449 char * kwnames[] = {
4450 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4451 };
4452
4453 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4454 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4455 if (!SWIG_IsOK(res1)) {
4456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4457 }
4458 arg1 = reinterpret_cast< wxPalette * >(argp1);
4459 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4460 if (!SWIG_IsOK(ecode2)) {
4461 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4462 }
4463 arg2 = static_cast< byte >(val2);
4464 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4465 if (!SWIG_IsOK(ecode3)) {
4466 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4467 }
4468 arg3 = static_cast< byte >(val3);
4469 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4470 if (!SWIG_IsOK(ecode4)) {
4471 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4472 }
4473 arg4 = static_cast< byte >(val4);
4474 {
4475 PyThreadState* __tstate = wxPyBeginAllowThreads();
4476 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4477 wxPyEndAllowThreads(__tstate);
4478 if (PyErr_Occurred()) SWIG_fail;
4479 }
4480 resultobj = SWIG_From_int(static_cast< int >(result));
4481 return resultobj;
4482 fail:
4483 return NULL;
4484 }
4485
4486
4487 SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4488 PyObject *resultobj = 0;
4489 wxPalette *arg1 = (wxPalette *) 0 ;
4490 int arg2 ;
4491 byte *arg3 = (byte *) 0 ;
4492 byte *arg4 = (byte *) 0 ;
4493 byte *arg5 = (byte *) 0 ;
4494 bool result;
4495 void *argp1 = 0 ;
4496 int res1 = 0 ;
4497 int val2 ;
4498 int ecode2 = 0 ;
4499 byte temp3 ;
4500 int res3 = SWIG_TMPOBJ ;
4501 byte temp4 ;
4502 int res4 = SWIG_TMPOBJ ;
4503 byte temp5 ;
4504 int res5 = SWIG_TMPOBJ ;
4505 PyObject * obj0 = 0 ;
4506 PyObject * obj1 = 0 ;
4507 char * kwnames[] = {
4508 (char *) "self",(char *) "pixel", NULL
4509 };
4510
4511 arg3 = &temp3;
4512 arg4 = &temp4;
4513 arg5 = &temp5;
4514 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4515 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4516 if (!SWIG_IsOK(res1)) {
4517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4518 }
4519 arg1 = reinterpret_cast< wxPalette * >(argp1);
4520 ecode2 = SWIG_AsVal_int(obj1, &val2);
4521 if (!SWIG_IsOK(ecode2)) {
4522 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4523 }
4524 arg2 = static_cast< int >(val2);
4525 {
4526 PyThreadState* __tstate = wxPyBeginAllowThreads();
4527 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4528 wxPyEndAllowThreads(__tstate);
4529 if (PyErr_Occurred()) SWIG_fail;
4530 }
4531 {
4532 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4533 }
4534 if (SWIG_IsTmpObj(res3)) {
4535 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4536 } else {
4537 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4538 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4539 }
4540 if (SWIG_IsTmpObj(res4)) {
4541 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4542 } else {
4543 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4544 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4545 }
4546 if (SWIG_IsTmpObj(res5)) {
4547 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4548 } else {
4549 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4550 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4551 }
4552 return resultobj;
4553 fail:
4554 return NULL;
4555 }
4556
4557
4558 SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4559 PyObject *resultobj = 0;
4560 wxPalette *arg1 = (wxPalette *) 0 ;
4561 int result;
4562 void *argp1 = 0 ;
4563 int res1 = 0 ;
4564 PyObject *swig_obj[1] ;
4565
4566 if (!args) SWIG_fail;
4567 swig_obj[0] = args;
4568 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4569 if (!SWIG_IsOK(res1)) {
4570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4571 }
4572 arg1 = reinterpret_cast< wxPalette * >(argp1);
4573 {
4574 PyThreadState* __tstate = wxPyBeginAllowThreads();
4575 result = (int)((wxPalette const *)arg1)->GetColoursCount();
4576 wxPyEndAllowThreads(__tstate);
4577 if (PyErr_Occurred()) SWIG_fail;
4578 }
4579 resultobj = SWIG_From_int(static_cast< int >(result));
4580 return resultobj;
4581 fail:
4582 return NULL;
4583 }
4584
4585
4586 SWIGINTERN PyObject *_wrap_Palette_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4587 PyObject *resultobj = 0;
4588 wxPalette *arg1 = (wxPalette *) 0 ;
4589 bool result;
4590 void *argp1 = 0 ;
4591 int res1 = 0 ;
4592 PyObject *swig_obj[1] ;
4593
4594 if (!args) SWIG_fail;
4595 swig_obj[0] = args;
4596 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4597 if (!SWIG_IsOK(res1)) {
4598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_Ok" "', expected argument " "1"" of type '" "wxPalette *""'");
4599 }
4600 arg1 = reinterpret_cast< wxPalette * >(argp1);
4601 {
4602 PyThreadState* __tstate = wxPyBeginAllowThreads();
4603 result = (bool)(arg1)->Ok();
4604 wxPyEndAllowThreads(__tstate);
4605 if (PyErr_Occurred()) SWIG_fail;
4606 }
4607 {
4608 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4609 }
4610 return resultobj;
4611 fail:
4612 return NULL;
4613 }
4614
4615
4616 SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4617 PyObject *obj;
4618 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4619 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
4620 return SWIG_Py_Void();
4621 }
4622
4623 SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4624 return SWIG_Python_InitShadowInstance(args);
4625 }
4626
4627 SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4628 PyObject *resultobj = 0;
4629 wxColour *arg1 = 0 ;
4630 int arg2 = (int) 1 ;
4631 int arg3 = (int) wxSOLID ;
4632 wxPen *result = 0 ;
4633 wxColour temp1 ;
4634 int val2 ;
4635 int ecode2 = 0 ;
4636 int val3 ;
4637 int ecode3 = 0 ;
4638 PyObject * obj0 = 0 ;
4639 PyObject * obj1 = 0 ;
4640 PyObject * obj2 = 0 ;
4641 char * kwnames[] = {
4642 (char *) "colour",(char *) "width",(char *) "style", NULL
4643 };
4644
4645 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4646 {
4647 arg1 = &temp1;
4648 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
4649 }
4650 if (obj1) {
4651 ecode2 = SWIG_AsVal_int(obj1, &val2);
4652 if (!SWIG_IsOK(ecode2)) {
4653 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
4654 }
4655 arg2 = static_cast< int >(val2);
4656 }
4657 if (obj2) {
4658 ecode3 = SWIG_AsVal_int(obj2, &val3);
4659 if (!SWIG_IsOK(ecode3)) {
4660 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
4661 }
4662 arg3 = static_cast< int >(val3);
4663 }
4664 {
4665 if (!wxPyCheckForApp()) SWIG_fail;
4666 PyThreadState* __tstate = wxPyBeginAllowThreads();
4667 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
4668 wxPyEndAllowThreads(__tstate);
4669 if (PyErr_Occurred()) SWIG_fail;
4670 }
4671 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
4672 return resultobj;
4673 fail:
4674 return NULL;
4675 }
4676
4677
4678 SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4679 PyObject *resultobj = 0;
4680 wxPen *arg1 = (wxPen *) 0 ;
4681 void *argp1 = 0 ;
4682 int res1 = 0 ;
4683 PyObject *swig_obj[1] ;
4684
4685 if (!args) SWIG_fail;
4686 swig_obj[0] = args;
4687 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
4688 if (!SWIG_IsOK(res1)) {
4689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
4690 }
4691 arg1 = reinterpret_cast< wxPen * >(argp1);
4692 {
4693 PyThreadState* __tstate = wxPyBeginAllowThreads();
4694 delete arg1;
4695
4696 wxPyEndAllowThreads(__tstate);
4697 if (PyErr_Occurred()) SWIG_fail;
4698 }
4699 resultobj = SWIG_Py_Void();
4700 return resultobj;
4701 fail:
4702 return NULL;
4703 }
4704
4705
4706 SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4707 PyObject *resultobj = 0;
4708 wxPen *arg1 = (wxPen *) 0 ;
4709 int result;
4710 void *argp1 = 0 ;
4711 int res1 = 0 ;
4712 PyObject *swig_obj[1] ;
4713
4714 if (!args) SWIG_fail;
4715 swig_obj[0] = args;
4716 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4717 if (!SWIG_IsOK(res1)) {
4718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4719 }
4720 arg1 = reinterpret_cast< wxPen * >(argp1);
4721 {
4722 PyThreadState* __tstate = wxPyBeginAllowThreads();
4723 result = (int)(arg1)->GetCap();
4724 wxPyEndAllowThreads(__tstate);
4725 if (PyErr_Occurred()) SWIG_fail;
4726 }
4727 resultobj = SWIG_From_int(static_cast< int >(result));
4728 return resultobj;
4729 fail:
4730 return NULL;
4731 }
4732
4733
4734 SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4735 PyObject *resultobj = 0;
4736 wxPen *arg1 = (wxPen *) 0 ;
4737 wxColour result;
4738 void *argp1 = 0 ;
4739 int res1 = 0 ;
4740 PyObject *swig_obj[1] ;
4741
4742 if (!args) SWIG_fail;
4743 swig_obj[0] = args;
4744 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4745 if (!SWIG_IsOK(res1)) {
4746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4747 }
4748 arg1 = reinterpret_cast< wxPen * >(argp1);
4749 {
4750 PyThreadState* __tstate = wxPyBeginAllowThreads();
4751 result = (arg1)->GetColour();
4752 wxPyEndAllowThreads(__tstate);
4753 if (PyErr_Occurred()) SWIG_fail;
4754 }
4755 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4756 return resultobj;
4757 fail:
4758 return NULL;
4759 }
4760
4761
4762 SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4763 PyObject *resultobj = 0;
4764 wxPen *arg1 = (wxPen *) 0 ;
4765 int result;
4766 void *argp1 = 0 ;
4767 int res1 = 0 ;
4768 PyObject *swig_obj[1] ;
4769
4770 if (!args) SWIG_fail;
4771 swig_obj[0] = args;
4772 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4773 if (!SWIG_IsOK(res1)) {
4774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4775 }
4776 arg1 = reinterpret_cast< wxPen * >(argp1);
4777 {
4778 PyThreadState* __tstate = wxPyBeginAllowThreads();
4779 result = (int)(arg1)->GetJoin();
4780 wxPyEndAllowThreads(__tstate);
4781 if (PyErr_Occurred()) SWIG_fail;
4782 }
4783 resultobj = SWIG_From_int(static_cast< int >(result));
4784 return resultobj;
4785 fail:
4786 return NULL;
4787 }
4788
4789
4790 SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4791 PyObject *resultobj = 0;
4792 wxPen *arg1 = (wxPen *) 0 ;
4793 int result;
4794 void *argp1 = 0 ;
4795 int res1 = 0 ;
4796 PyObject *swig_obj[1] ;
4797
4798 if (!args) SWIG_fail;
4799 swig_obj[0] = args;
4800 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4801 if (!SWIG_IsOK(res1)) {
4802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
4803 }
4804 arg1 = reinterpret_cast< wxPen * >(argp1);
4805 {
4806 PyThreadState* __tstate = wxPyBeginAllowThreads();
4807 result = (int)(arg1)->GetStyle();
4808 wxPyEndAllowThreads(__tstate);
4809 if (PyErr_Occurred()) SWIG_fail;
4810 }
4811 resultobj = SWIG_From_int(static_cast< int >(result));
4812 return resultobj;
4813 fail:
4814 return NULL;
4815 }
4816
4817
4818 SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4819 PyObject *resultobj = 0;
4820 wxPen *arg1 = (wxPen *) 0 ;
4821 int result;
4822 void *argp1 = 0 ;
4823 int res1 = 0 ;
4824 PyObject *swig_obj[1] ;
4825
4826 if (!args) SWIG_fail;
4827 swig_obj[0] = args;
4828 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4829 if (!SWIG_IsOK(res1)) {
4830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
4831 }
4832 arg1 = reinterpret_cast< wxPen * >(argp1);
4833 {
4834 PyThreadState* __tstate = wxPyBeginAllowThreads();
4835 result = (int)(arg1)->GetWidth();
4836 wxPyEndAllowThreads(__tstate);
4837 if (PyErr_Occurred()) SWIG_fail;
4838 }
4839 resultobj = SWIG_From_int(static_cast< int >(result));
4840 return resultobj;
4841 fail:
4842 return NULL;
4843 }
4844
4845
4846 SWIGINTERN PyObject *_wrap_Pen_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4847 PyObject *resultobj = 0;
4848 wxPen *arg1 = (wxPen *) 0 ;
4849 bool result;
4850 void *argp1 = 0 ;
4851 int res1 = 0 ;
4852 PyObject *swig_obj[1] ;
4853
4854 if (!args) SWIG_fail;
4855 swig_obj[0] = args;
4856 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4857 if (!SWIG_IsOK(res1)) {
4858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_Ok" "', expected argument " "1"" of type '" "wxPen *""'");
4859 }
4860 arg1 = reinterpret_cast< wxPen * >(argp1);
4861 {
4862 PyThreadState* __tstate = wxPyBeginAllowThreads();
4863 result = (bool)(arg1)->Ok();
4864 wxPyEndAllowThreads(__tstate);
4865 if (PyErr_Occurred()) SWIG_fail;
4866 }
4867 {
4868 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4869 }
4870 return resultobj;
4871 fail:
4872 return NULL;
4873 }
4874
4875
4876 SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4877 PyObject *resultobj = 0;
4878 wxPen *arg1 = (wxPen *) 0 ;
4879 int arg2 ;
4880 void *argp1 = 0 ;
4881 int res1 = 0 ;
4882 int val2 ;
4883 int ecode2 = 0 ;
4884 PyObject * obj0 = 0 ;
4885 PyObject * obj1 = 0 ;
4886 char * kwnames[] = {
4887 (char *) "self",(char *) "cap_style", NULL
4888 };
4889
4890 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
4891 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4892 if (!SWIG_IsOK(res1)) {
4893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4894 }
4895 arg1 = reinterpret_cast< wxPen * >(argp1);
4896 ecode2 = SWIG_AsVal_int(obj1, &val2);
4897 if (!SWIG_IsOK(ecode2)) {
4898 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
4899 }
4900 arg2 = static_cast< int >(val2);
4901 {
4902 PyThreadState* __tstate = wxPyBeginAllowThreads();
4903 (arg1)->SetCap(arg2);
4904 wxPyEndAllowThreads(__tstate);
4905 if (PyErr_Occurred()) SWIG_fail;
4906 }
4907 resultobj = SWIG_Py_Void();
4908 return resultobj;
4909 fail:
4910 return NULL;
4911 }
4912
4913
4914 SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4915 PyObject *resultobj = 0;
4916 wxPen *arg1 = (wxPen *) 0 ;
4917 wxColour *arg2 = 0 ;
4918 void *argp1 = 0 ;
4919 int res1 = 0 ;
4920 wxColour temp2 ;
4921 PyObject * obj0 = 0 ;
4922 PyObject * obj1 = 0 ;
4923 char * kwnames[] = {
4924 (char *) "self",(char *) "colour", NULL
4925 };
4926
4927 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
4928 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4929 if (!SWIG_IsOK(res1)) {
4930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4931 }
4932 arg1 = reinterpret_cast< wxPen * >(argp1);
4933 {
4934 arg2 = &temp2;
4935 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
4936 }
4937 {
4938 PyThreadState* __tstate = wxPyBeginAllowThreads();
4939 (arg1)->SetColour(*arg2);
4940 wxPyEndAllowThreads(__tstate);
4941 if (PyErr_Occurred()) SWIG_fail;
4942 }
4943 resultobj = SWIG_Py_Void();
4944 return resultobj;
4945 fail:
4946 return NULL;
4947 }
4948
4949
4950 SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4951 PyObject *resultobj = 0;
4952 wxPen *arg1 = (wxPen *) 0 ;
4953 int arg2 ;
4954 void *argp1 = 0 ;
4955 int res1 = 0 ;
4956 int val2 ;
4957 int ecode2 = 0 ;
4958 PyObject * obj0 = 0 ;
4959 PyObject * obj1 = 0 ;
4960 char * kwnames[] = {
4961 (char *) "self",(char *) "join_style", NULL
4962 };
4963
4964 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
4965 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4966 if (!SWIG_IsOK(res1)) {
4967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4968 }
4969 arg1 = reinterpret_cast< wxPen * >(argp1);
4970 ecode2 = SWIG_AsVal_int(obj1, &val2);
4971 if (!SWIG_IsOK(ecode2)) {
4972 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
4973 }
4974 arg2 = static_cast< int >(val2);
4975 {
4976 PyThreadState* __tstate = wxPyBeginAllowThreads();
4977 (arg1)->SetJoin(arg2);
4978 wxPyEndAllowThreads(__tstate);
4979 if (PyErr_Occurred()) SWIG_fail;
4980 }
4981 resultobj = SWIG_Py_Void();
4982 return resultobj;
4983 fail:
4984 return NULL;
4985 }
4986
4987
4988 SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4989 PyObject *resultobj = 0;
4990 wxPen *arg1 = (wxPen *) 0 ;
4991 int arg2 ;
4992 void *argp1 = 0 ;
4993 int res1 = 0 ;
4994 int val2 ;
4995 int ecode2 = 0 ;
4996 PyObject * obj0 = 0 ;
4997 PyObject * obj1 = 0 ;
4998 char * kwnames[] = {
4999 (char *) "self",(char *) "style", NULL
5000 };
5001
5002 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5003 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5004 if (!SWIG_IsOK(res1)) {
5005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5006 }
5007 arg1 = reinterpret_cast< wxPen * >(argp1);
5008 ecode2 = SWIG_AsVal_int(obj1, &val2);
5009 if (!SWIG_IsOK(ecode2)) {
5010 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
5011 }
5012 arg2 = static_cast< int >(val2);
5013 {
5014 PyThreadState* __tstate = wxPyBeginAllowThreads();
5015 (arg1)->SetStyle(arg2);
5016 wxPyEndAllowThreads(__tstate);
5017 if (PyErr_Occurred()) SWIG_fail;
5018 }
5019 resultobj = SWIG_Py_Void();
5020 return resultobj;
5021 fail:
5022 return NULL;
5023 }
5024
5025
5026 SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5027 PyObject *resultobj = 0;
5028 wxPen *arg1 = (wxPen *) 0 ;
5029 int arg2 ;
5030 void *argp1 = 0 ;
5031 int res1 = 0 ;
5032 int val2 ;
5033 int ecode2 = 0 ;
5034 PyObject * obj0 = 0 ;
5035 PyObject * obj1 = 0 ;
5036 char * kwnames[] = {
5037 (char *) "self",(char *) "width", NULL
5038 };
5039
5040 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
5041 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5042 if (!SWIG_IsOK(res1)) {
5043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5044 }
5045 arg1 = reinterpret_cast< wxPen * >(argp1);
5046 ecode2 = SWIG_AsVal_int(obj1, &val2);
5047 if (!SWIG_IsOK(ecode2)) {
5048 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
5049 }
5050 arg2 = static_cast< int >(val2);
5051 {
5052 PyThreadState* __tstate = wxPyBeginAllowThreads();
5053 (arg1)->SetWidth(arg2);
5054 wxPyEndAllowThreads(__tstate);
5055 if (PyErr_Occurred()) SWIG_fail;
5056 }
5057 resultobj = SWIG_Py_Void();
5058 return resultobj;
5059 fail:
5060 return NULL;
5061 }
5062
5063
5064 SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5065 PyObject *resultobj = 0;
5066 wxPen *arg1 = (wxPen *) 0 ;
5067 int arg2 ;
5068 wxDash *arg3 = (wxDash *) 0 ;
5069 void *argp1 = 0 ;
5070 int res1 = 0 ;
5071 PyObject * obj0 = 0 ;
5072 PyObject * obj1 = 0 ;
5073 char * kwnames[] = {
5074 (char *) "self",(char *) "dashes", NULL
5075 };
5076
5077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
5078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5079 if (!SWIG_IsOK(res1)) {
5080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5081 }
5082 arg1 = reinterpret_cast< wxPen * >(argp1);
5083 {
5084 arg2 = PyList_Size(obj1);
5085 arg3 = (wxDash*)byte_LIST_helper(obj1);
5086 if (arg3 == NULL) SWIG_fail;
5087 }
5088 {
5089 PyThreadState* __tstate = wxPyBeginAllowThreads();
5090 (arg1)->SetDashes(arg2,arg3);
5091 wxPyEndAllowThreads(__tstate);
5092 if (PyErr_Occurred()) SWIG_fail;
5093 }
5094 resultobj = SWIG_Py_Void();
5095 {
5096 if (arg3) delete [] arg3;
5097 }
5098 return resultobj;
5099 fail:
5100 {
5101 if (arg3) delete [] arg3;
5102 }
5103 return NULL;
5104 }
5105
5106
5107 SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5108 PyObject *resultobj = 0;
5109 wxPen *arg1 = (wxPen *) 0 ;
5110 PyObject *result = 0 ;
5111 void *argp1 = 0 ;
5112 int res1 = 0 ;
5113 PyObject *swig_obj[1] ;
5114
5115 if (!args) SWIG_fail;
5116 swig_obj[0] = args;
5117 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5118 if (!SWIG_IsOK(res1)) {
5119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5120 }
5121 arg1 = reinterpret_cast< wxPen * >(argp1);
5122 {
5123 PyThreadState* __tstate = wxPyBeginAllowThreads();
5124 result = (PyObject *)wxPen_GetDashes(arg1);
5125 wxPyEndAllowThreads(__tstate);
5126 if (PyErr_Occurred()) SWIG_fail;
5127 }
5128 resultobj = result;
5129 return resultobj;
5130 fail:
5131 return NULL;
5132 }
5133
5134
5135 SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5136 PyObject *resultobj = 0;
5137 wxPen *arg1 = (wxPen *) 0 ;
5138 PyObject *arg2 = (PyObject *) 0 ;
5139 PyObject *arg3 = (PyObject *) 0 ;
5140 void *argp1 = 0 ;
5141 int res1 = 0 ;
5142 PyObject * obj0 = 0 ;
5143 PyObject * obj1 = 0 ;
5144 PyObject * obj2 = 0 ;
5145 char * kwnames[] = {
5146 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
5147 };
5148
5149 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5150 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5151 if (!SWIG_IsOK(res1)) {
5152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5153 }
5154 arg1 = reinterpret_cast< wxPen * >(argp1);
5155 arg2 = obj1;
5156 arg3 = obj2;
5157 {
5158 PyThreadState* __tstate = wxPyBeginAllowThreads();
5159 wxPen__SetDashes(arg1,arg2,arg3);
5160 wxPyEndAllowThreads(__tstate);
5161 if (PyErr_Occurred()) SWIG_fail;
5162 }
5163 resultobj = SWIG_Py_Void();
5164 return resultobj;
5165 fail:
5166 return NULL;
5167 }
5168
5169
5170 SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5171 PyObject *resultobj = 0;
5172 wxPen *arg1 = (wxPen *) 0 ;
5173 wxPen *arg2 = (wxPen *) 0 ;
5174 bool result;
5175 void *argp1 = 0 ;
5176 int res1 = 0 ;
5177 void *argp2 = 0 ;
5178 int res2 = 0 ;
5179 PyObject * obj0 = 0 ;
5180 PyObject * obj1 = 0 ;
5181 char * kwnames[] = {
5182 (char *) "self",(char *) "other", NULL
5183 };
5184
5185 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
5186 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5187 if (!SWIG_IsOK(res1)) {
5188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
5189 }
5190 arg1 = reinterpret_cast< wxPen * >(argp1);
5191 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5192 if (!SWIG_IsOK(res2)) {
5193 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
5194 }
5195 arg2 = reinterpret_cast< wxPen * >(argp2);
5196 {
5197 PyThreadState* __tstate = wxPyBeginAllowThreads();
5198 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
5199 wxPyEndAllowThreads(__tstate);
5200 if (PyErr_Occurred()) SWIG_fail;
5201 }
5202 {
5203 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5204 }
5205 return resultobj;
5206 fail:
5207 return NULL;
5208 }
5209
5210
5211 SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5212 PyObject *resultobj = 0;
5213 wxPen *arg1 = (wxPen *) 0 ;
5214 wxPen *arg2 = (wxPen *) 0 ;
5215 bool result;
5216 void *argp1 = 0 ;
5217 int res1 = 0 ;
5218 void *argp2 = 0 ;
5219 int res2 = 0 ;
5220 PyObject * obj0 = 0 ;
5221 PyObject * obj1 = 0 ;
5222 char * kwnames[] = {
5223 (char *) "self",(char *) "other", NULL
5224 };
5225
5226 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
5227 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5228 if (!SWIG_IsOK(res1)) {
5229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
5230 }
5231 arg1 = reinterpret_cast< wxPen * >(argp1);
5232 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5233 if (!SWIG_IsOK(res2)) {
5234 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
5235 }
5236 arg2 = reinterpret_cast< wxPen * >(argp2);
5237 {
5238 PyThreadState* __tstate = wxPyBeginAllowThreads();
5239 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
5240 wxPyEndAllowThreads(__tstate);
5241 if (PyErr_Occurred()) SWIG_fail;
5242 }
5243 {
5244 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5245 }
5246 return resultobj;
5247 fail:
5248 return NULL;
5249 }
5250
5251
5252 SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5253 PyObject *obj;
5254 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5255 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
5256 return SWIG_Py_Void();
5257 }
5258
5259 SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5260 return SWIG_Python_InitShadowInstance(args);
5261 }
5262
5263 SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5264 PyObject *resultobj = 0;
5265 wxColour *arg1 = 0 ;
5266 int arg2 = (int) wxSOLID ;
5267 wxBrush *result = 0 ;
5268 wxColour temp1 ;
5269 int val2 ;
5270 int ecode2 = 0 ;
5271 PyObject * obj0 = 0 ;
5272 PyObject * obj1 = 0 ;
5273 char * kwnames[] = {
5274 (char *) "colour",(char *) "style", NULL
5275 };
5276
5277 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
5278 {
5279 arg1 = &temp1;
5280 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5281 }
5282 if (obj1) {
5283 ecode2 = SWIG_AsVal_int(obj1, &val2);
5284 if (!SWIG_IsOK(ecode2)) {
5285 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
5286 }
5287 arg2 = static_cast< int >(val2);
5288 }
5289 {
5290 if (!wxPyCheckForApp()) SWIG_fail;
5291 PyThreadState* __tstate = wxPyBeginAllowThreads();
5292 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
5293 wxPyEndAllowThreads(__tstate);
5294 if (PyErr_Occurred()) SWIG_fail;
5295 }
5296 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
5297 return resultobj;
5298 fail:
5299 return NULL;
5300 }
5301
5302
5303 SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5304 PyObject *resultobj = 0;
5305 wxBitmap *arg1 = 0 ;
5306 wxBrush *result = 0 ;
5307 void *argp1 = 0 ;
5308 int res1 = 0 ;
5309 PyObject * obj0 = 0 ;
5310 char * kwnames[] = {
5311 (char *) "stippleBitmap", NULL
5312 };
5313
5314 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
5315 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
5316 if (!SWIG_IsOK(res1)) {
5317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5318 }
5319 if (!argp1) {
5320 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5321 }
5322 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5323 {
5324 if (!wxPyCheckForApp()) SWIG_fail;
5325 PyThreadState* __tstate = wxPyBeginAllowThreads();
5326 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
5327 wxPyEndAllowThreads(__tstate);
5328 if (PyErr_Occurred()) SWIG_fail;
5329 }
5330 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
5331 return resultobj;
5332 fail:
5333 return NULL;
5334 }
5335
5336
5337 SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5338 PyObject *resultobj = 0;
5339 wxBrush *arg1 = (wxBrush *) 0 ;
5340 void *argp1 = 0 ;
5341 int res1 = 0 ;
5342 PyObject *swig_obj[1] ;
5343
5344 if (!args) SWIG_fail;
5345 swig_obj[0] = args;
5346 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5347 if (!SWIG_IsOK(res1)) {
5348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5349 }
5350 arg1 = reinterpret_cast< wxBrush * >(argp1);
5351 {
5352 PyThreadState* __tstate = wxPyBeginAllowThreads();
5353 delete arg1;
5354
5355 wxPyEndAllowThreads(__tstate);
5356 if (PyErr_Occurred()) SWIG_fail;
5357 }
5358 resultobj = SWIG_Py_Void();
5359 return resultobj;
5360 fail:
5361 return NULL;
5362 }
5363
5364
5365 SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5366 PyObject *resultobj = 0;
5367 wxBrush *arg1 = (wxBrush *) 0 ;
5368 wxColour *arg2 = 0 ;
5369 void *argp1 = 0 ;
5370 int res1 = 0 ;
5371 wxColour temp2 ;
5372 PyObject * obj0 = 0 ;
5373 PyObject * obj1 = 0 ;
5374 char * kwnames[] = {
5375 (char *) "self",(char *) "col", NULL
5376 };
5377
5378 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5379 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5380 if (!SWIG_IsOK(res1)) {
5381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5382 }
5383 arg1 = reinterpret_cast< wxBrush * >(argp1);
5384 {
5385 arg2 = &temp2;
5386 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5387 }
5388 {
5389 PyThreadState* __tstate = wxPyBeginAllowThreads();
5390 (arg1)->SetColour((wxColour const &)*arg2);
5391 wxPyEndAllowThreads(__tstate);
5392 if (PyErr_Occurred()) SWIG_fail;
5393 }
5394 resultobj = SWIG_Py_Void();
5395 return resultobj;
5396 fail:
5397 return NULL;
5398 }
5399
5400
5401 SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5402 PyObject *resultobj = 0;
5403 wxBrush *arg1 = (wxBrush *) 0 ;
5404 int arg2 ;
5405 void *argp1 = 0 ;
5406 int res1 = 0 ;
5407 int val2 ;
5408 int ecode2 = 0 ;
5409 PyObject * obj0 = 0 ;
5410 PyObject * obj1 = 0 ;
5411 char * kwnames[] = {
5412 (char *) "self",(char *) "style", NULL
5413 };
5414
5415 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5416 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5417 if (!SWIG_IsOK(res1)) {
5418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5419 }
5420 arg1 = reinterpret_cast< wxBrush * >(argp1);
5421 ecode2 = SWIG_AsVal_int(obj1, &val2);
5422 if (!SWIG_IsOK(ecode2)) {
5423 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5424 }
5425 arg2 = static_cast< int >(val2);
5426 {
5427 PyThreadState* __tstate = wxPyBeginAllowThreads();
5428 (arg1)->SetStyle(arg2);
5429 wxPyEndAllowThreads(__tstate);
5430 if (PyErr_Occurred()) SWIG_fail;
5431 }
5432 resultobj = SWIG_Py_Void();
5433 return resultobj;
5434 fail:
5435 return NULL;
5436 }
5437
5438
5439 SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5440 PyObject *resultobj = 0;
5441 wxBrush *arg1 = (wxBrush *) 0 ;
5442 wxBitmap *arg2 = 0 ;
5443 void *argp1 = 0 ;
5444 int res1 = 0 ;
5445 void *argp2 = 0 ;
5446 int res2 = 0 ;
5447 PyObject * obj0 = 0 ;
5448 PyObject * obj1 = 0 ;
5449 char * kwnames[] = {
5450 (char *) "self",(char *) "stipple", NULL
5451 };
5452
5453 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5454 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5455 if (!SWIG_IsOK(res1)) {
5456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5457 }
5458 arg1 = reinterpret_cast< wxBrush * >(argp1);
5459 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5460 if (!SWIG_IsOK(res2)) {
5461 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5462 }
5463 if (!argp2) {
5464 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5465 }
5466 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5467 {
5468 PyThreadState* __tstate = wxPyBeginAllowThreads();
5469 (arg1)->SetStipple((wxBitmap const &)*arg2);
5470 wxPyEndAllowThreads(__tstate);
5471 if (PyErr_Occurred()) SWIG_fail;
5472 }
5473 resultobj = SWIG_Py_Void();
5474 return resultobj;
5475 fail:
5476 return NULL;
5477 }
5478
5479
5480 SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5481 PyObject *resultobj = 0;
5482 wxBrush *arg1 = (wxBrush *) 0 ;
5483 wxColour result;
5484 void *argp1 = 0 ;
5485 int res1 = 0 ;
5486 PyObject *swig_obj[1] ;
5487
5488 if (!args) SWIG_fail;
5489 swig_obj[0] = args;
5490 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5491 if (!SWIG_IsOK(res1)) {
5492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5493 }
5494 arg1 = reinterpret_cast< wxBrush * >(argp1);
5495 {
5496 PyThreadState* __tstate = wxPyBeginAllowThreads();
5497 result = ((wxBrush const *)arg1)->GetColour();
5498 wxPyEndAllowThreads(__tstate);
5499 if (PyErr_Occurred()) SWIG_fail;
5500 }
5501 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5502 return resultobj;
5503 fail:
5504 return NULL;
5505 }
5506
5507
5508 SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5509 PyObject *resultobj = 0;
5510 wxBrush *arg1 = (wxBrush *) 0 ;
5511 int result;
5512 void *argp1 = 0 ;
5513 int res1 = 0 ;
5514 PyObject *swig_obj[1] ;
5515
5516 if (!args) SWIG_fail;
5517 swig_obj[0] = args;
5518 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5519 if (!SWIG_IsOK(res1)) {
5520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5521 }
5522 arg1 = reinterpret_cast< wxBrush * >(argp1);
5523 {
5524 PyThreadState* __tstate = wxPyBeginAllowThreads();
5525 result = (int)((wxBrush const *)arg1)->GetStyle();
5526 wxPyEndAllowThreads(__tstate);
5527 if (PyErr_Occurred()) SWIG_fail;
5528 }
5529 resultobj = SWIG_From_int(static_cast< int >(result));
5530 return resultobj;
5531 fail:
5532 return NULL;
5533 }
5534
5535
5536 SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5537 PyObject *resultobj = 0;
5538 wxBrush *arg1 = (wxBrush *) 0 ;
5539 wxBitmap *result = 0 ;
5540 void *argp1 = 0 ;
5541 int res1 = 0 ;
5542 PyObject *swig_obj[1] ;
5543
5544 if (!args) SWIG_fail;
5545 swig_obj[0] = args;
5546 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5547 if (!SWIG_IsOK(res1)) {
5548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
5549 }
5550 arg1 = reinterpret_cast< wxBrush * >(argp1);
5551 {
5552 PyThreadState* __tstate = wxPyBeginAllowThreads();
5553 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
5554 wxPyEndAllowThreads(__tstate);
5555 if (PyErr_Occurred()) SWIG_fail;
5556 }
5557 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5558 return resultobj;
5559 fail:
5560 return NULL;
5561 }
5562
5563
5564 SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5565 PyObject *resultobj = 0;
5566 wxBrush *arg1 = (wxBrush *) 0 ;
5567 bool result;
5568 void *argp1 = 0 ;
5569 int res1 = 0 ;
5570 PyObject *swig_obj[1] ;
5571
5572 if (!args) SWIG_fail;
5573 swig_obj[0] = args;
5574 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5575 if (!SWIG_IsOK(res1)) {
5576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
5577 }
5578 arg1 = reinterpret_cast< wxBrush * >(argp1);
5579 {
5580 PyThreadState* __tstate = wxPyBeginAllowThreads();
5581 result = (bool)((wxBrush const *)arg1)->IsHatch();
5582 wxPyEndAllowThreads(__tstate);
5583 if (PyErr_Occurred()) SWIG_fail;
5584 }
5585 {
5586 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5587 }
5588 return resultobj;
5589 fail:
5590 return NULL;
5591 }
5592
5593
5594 SWIGINTERN PyObject *_wrap_Brush_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5595 PyObject *resultobj = 0;
5596 wxBrush *arg1 = (wxBrush *) 0 ;
5597 bool result;
5598 void *argp1 = 0 ;
5599 int res1 = 0 ;
5600 PyObject *swig_obj[1] ;
5601
5602 if (!args) SWIG_fail;
5603 swig_obj[0] = args;
5604 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5605 if (!SWIG_IsOK(res1)) {
5606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_Ok" "', expected argument " "1"" of type '" "wxBrush *""'");
5607 }
5608 arg1 = reinterpret_cast< wxBrush * >(argp1);
5609 {
5610 PyThreadState* __tstate = wxPyBeginAllowThreads();
5611 result = (bool)(arg1)->Ok();
5612 wxPyEndAllowThreads(__tstate);
5613 if (PyErr_Occurred()) SWIG_fail;
5614 }
5615 {
5616 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5617 }
5618 return resultobj;
5619 fail:
5620 return NULL;
5621 }
5622
5623
5624 SWIGINTERN PyObject *_wrap_Brush_MacGetTheme(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5625 PyObject *resultobj = 0;
5626 wxBrush *arg1 = (wxBrush *) 0 ;
5627 short result;
5628 void *argp1 = 0 ;
5629 int res1 = 0 ;
5630 PyObject *swig_obj[1] ;
5631
5632 if (!args) SWIG_fail;
5633 swig_obj[0] = args;
5634 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5635 if (!SWIG_IsOK(res1)) {
5636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_MacGetTheme" "', expected argument " "1"" of type '" "wxBrush *""'");
5637 }
5638 arg1 = reinterpret_cast< wxBrush * >(argp1);
5639 {
5640 PyThreadState* __tstate = wxPyBeginAllowThreads();
5641 result = (short)(arg1)->MacGetTheme();
5642 wxPyEndAllowThreads(__tstate);
5643 if (PyErr_Occurred()) SWIG_fail;
5644 }
5645 resultobj = SWIG_From_short(static_cast< short >(result));
5646 return resultobj;
5647 fail:
5648 return NULL;
5649 }
5650
5651
5652 SWIGINTERN PyObject *_wrap_Brush_MacSetTheme(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5653 PyObject *resultobj = 0;
5654 wxBrush *arg1 = (wxBrush *) 0 ;
5655 short arg2 ;
5656 void *argp1 = 0 ;
5657 int res1 = 0 ;
5658 short val2 ;
5659 int ecode2 = 0 ;
5660 PyObject * obj0 = 0 ;
5661 PyObject * obj1 = 0 ;
5662 char * kwnames[] = {
5663 (char *) "self",(char *) "macThemeBrush", NULL
5664 };
5665
5666 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_MacSetTheme",kwnames,&obj0,&obj1)) SWIG_fail;
5667 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5668 if (!SWIG_IsOK(res1)) {
5669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_MacSetTheme" "', expected argument " "1"" of type '" "wxBrush *""'");
5670 }
5671 arg1 = reinterpret_cast< wxBrush * >(argp1);
5672 ecode2 = SWIG_AsVal_short(obj1, &val2);
5673 if (!SWIG_IsOK(ecode2)) {
5674 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_MacSetTheme" "', expected argument " "2"" of type '" "short""'");
5675 }
5676 arg2 = static_cast< short >(val2);
5677 {
5678 PyThreadState* __tstate = wxPyBeginAllowThreads();
5679 (arg1)->MacSetTheme(arg2);
5680 wxPyEndAllowThreads(__tstate);
5681 if (PyErr_Occurred()) SWIG_fail;
5682 }
5683 resultobj = SWIG_Py_Void();
5684 return resultobj;
5685 fail:
5686 return NULL;
5687 }
5688
5689
5690 SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5691 PyObject *obj;
5692 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5693 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
5694 return SWIG_Py_Void();
5695 }
5696
5697 SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5698 return SWIG_Python_InitShadowInstance(args);
5699 }
5700
5701 SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5702 PyObject *resultobj = 0;
5703 wxString *arg1 = 0 ;
5704 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
5705 wxBitmap *result = 0 ;
5706 bool temp1 = false ;
5707 int val2 ;
5708 int ecode2 = 0 ;
5709 PyObject * obj0 = 0 ;
5710 PyObject * obj1 = 0 ;
5711 char * kwnames[] = {
5712 (char *) "name",(char *) "type", NULL
5713 };
5714
5715 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
5716 {
5717 arg1 = wxString_in_helper(obj0);
5718 if (arg1 == NULL) SWIG_fail;
5719 temp1 = true;
5720 }
5721 if (obj1) {
5722 ecode2 = SWIG_AsVal_int(obj1, &val2);
5723 if (!SWIG_IsOK(ecode2)) {
5724 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
5725 }
5726 arg2 = static_cast< wxBitmapType >(val2);
5727 }
5728 {
5729 if (!wxPyCheckForApp()) SWIG_fail;
5730 PyThreadState* __tstate = wxPyBeginAllowThreads();
5731 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
5732 wxPyEndAllowThreads(__tstate);
5733 if (PyErr_Occurred()) SWIG_fail;
5734 }
5735 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
5736 {
5737 if (temp1)
5738 delete arg1;
5739 }
5740 return resultobj;
5741 fail:
5742 {
5743 if (temp1)
5744 delete arg1;
5745 }
5746 return NULL;
5747 }
5748
5749
5750 SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5751 PyObject *resultobj = 0;
5752 wxBitmap *arg1 = (wxBitmap *) 0 ;
5753 void *argp1 = 0 ;
5754 int res1 = 0 ;
5755 PyObject *swig_obj[1] ;
5756
5757 if (!args) SWIG_fail;
5758 swig_obj[0] = args;
5759 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
5760 if (!SWIG_IsOK(res1)) {
5761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
5762 }
5763 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5764 {
5765 delete arg1;
5766
5767 if (PyErr_Occurred()) SWIG_fail;
5768 }
5769 resultobj = SWIG_Py_Void();
5770 return resultobj;
5771 fail:
5772 return NULL;
5773 }
5774
5775
5776 SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5777 PyObject *resultobj = 0;
5778 int arg1 ;
5779 int arg2 ;
5780 int arg3 = (int) -1 ;
5781 wxBitmap *result = 0 ;
5782 int val1 ;
5783 int ecode1 = 0 ;
5784 int val2 ;
5785 int ecode2 = 0 ;
5786 int val3 ;
5787 int ecode3 = 0 ;
5788 PyObject * obj0 = 0 ;
5789 PyObject * obj1 = 0 ;
5790 PyObject * obj2 = 0 ;
5791 char * kwnames[] = {
5792 (char *) "width",(char *) "height",(char *) "depth", NULL
5793 };
5794
5795 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5796 ecode1 = SWIG_AsVal_int(obj0, &val1);
5797 if (!SWIG_IsOK(ecode1)) {
5798 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
5799 }
5800 arg1 = static_cast< int >(val1);
5801 ecode2 = SWIG_AsVal_int(obj1, &val2);
5802 if (!SWIG_IsOK(ecode2)) {
5803 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
5804 }
5805 arg2 = static_cast< int >(val2);
5806 if (obj2) {
5807 ecode3 = SWIG_AsVal_int(obj2, &val3);
5808 if (!SWIG_IsOK(ecode3)) {
5809 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
5810 }
5811 arg3 = static_cast< int >(val3);
5812 }
5813 {
5814 if (!wxPyCheckForApp()) SWIG_fail;
5815 PyThreadState* __tstate = wxPyBeginAllowThreads();
5816 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
5817 wxPyEndAllowThreads(__tstate);
5818 if (PyErr_Occurred()) SWIG_fail;
5819 }
5820 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5821 return resultobj;
5822 fail:
5823 return NULL;
5824 }
5825
5826
5827 SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5828 PyObject *resultobj = 0;
5829 wxIcon *arg1 = 0 ;
5830 wxBitmap *result = 0 ;
5831 void *argp1 = 0 ;
5832 int res1 = 0 ;
5833 PyObject * obj0 = 0 ;
5834 char * kwnames[] = {
5835 (char *) "icon", NULL
5836 };
5837
5838 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
5839 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
5840 if (!SWIG_IsOK(res1)) {
5841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5842 }
5843 if (!argp1) {
5844 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5845 }
5846 arg1 = reinterpret_cast< wxIcon * >(argp1);
5847 {
5848 if (!wxPyCheckForApp()) SWIG_fail;
5849 PyThreadState* __tstate = wxPyBeginAllowThreads();
5850 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
5851 wxPyEndAllowThreads(__tstate);
5852 if (PyErr_Occurred()) SWIG_fail;
5853 }
5854 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5855 return resultobj;
5856 fail:
5857 return NULL;
5858 }
5859
5860
5861 SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5862 PyObject *resultobj = 0;
5863 wxImage *arg1 = 0 ;
5864 int arg2 = (int) -1 ;
5865 wxBitmap *result = 0 ;
5866 void *argp1 = 0 ;
5867 int res1 = 0 ;
5868 int val2 ;
5869 int ecode2 = 0 ;
5870 PyObject * obj0 = 0 ;
5871 PyObject * obj1 = 0 ;
5872 char * kwnames[] = {
5873 (char *) "image",(char *) "depth", NULL
5874 };
5875
5876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
5877 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
5878 if (!SWIG_IsOK(res1)) {
5879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
5880 }
5881 if (!argp1) {
5882 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
5883 }
5884 arg1 = reinterpret_cast< wxImage * >(argp1);
5885 if (obj1) {
5886 ecode2 = SWIG_AsVal_int(obj1, &val2);
5887 if (!SWIG_IsOK(ecode2)) {
5888 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
5889 }
5890 arg2 = static_cast< int >(val2);
5891 }
5892 {
5893 if (!wxPyCheckForApp()) SWIG_fail;
5894 PyThreadState* __tstate = wxPyBeginAllowThreads();
5895 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
5896 wxPyEndAllowThreads(__tstate);
5897 if (PyErr_Occurred()) SWIG_fail;
5898 }
5899 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5900 return resultobj;
5901 fail:
5902 return NULL;
5903 }
5904
5905
5906 SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5907 PyObject *resultobj = 0;
5908 PyObject *arg1 = (PyObject *) 0 ;
5909 wxBitmap *result = 0 ;
5910 PyObject * obj0 = 0 ;
5911 char * kwnames[] = {
5912 (char *) "listOfStrings", NULL
5913 };
5914
5915 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
5916 arg1 = obj0;
5917 {
5918 if (!wxPyCheckForApp()) SWIG_fail;
5919 PyThreadState* __tstate = wxPyBeginAllowThreads();
5920 result = (wxBitmap *)new_wxBitmap(arg1);
5921 wxPyEndAllowThreads(__tstate);
5922 if (PyErr_Occurred()) SWIG_fail;
5923 }
5924 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5925 return resultobj;
5926 fail:
5927 return NULL;
5928 }
5929
5930
5931 SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5932 PyObject *resultobj = 0;
5933 PyObject *arg1 = (PyObject *) 0 ;
5934 int arg2 ;
5935 int arg3 ;
5936 int arg4 = (int) 1 ;
5937 wxBitmap *result = 0 ;
5938 int val2 ;
5939 int ecode2 = 0 ;
5940 int val3 ;
5941 int ecode3 = 0 ;
5942 int val4 ;
5943 int ecode4 = 0 ;
5944 PyObject * obj0 = 0 ;
5945 PyObject * obj1 = 0 ;
5946 PyObject * obj2 = 0 ;
5947 PyObject * obj3 = 0 ;
5948 char * kwnames[] = {
5949 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
5950 };
5951
5952 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
5953 arg1 = obj0;
5954 ecode2 = SWIG_AsVal_int(obj1, &val2);
5955 if (!SWIG_IsOK(ecode2)) {
5956 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
5957 }
5958 arg2 = static_cast< int >(val2);
5959 ecode3 = SWIG_AsVal_int(obj2, &val3);
5960 if (!SWIG_IsOK(ecode3)) {
5961 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
5962 }
5963 arg3 = static_cast< int >(val3);
5964 if (obj3) {
5965 ecode4 = SWIG_AsVal_int(obj3, &val4);
5966 if (!SWIG_IsOK(ecode4)) {
5967 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
5968 }
5969 arg4 = static_cast< int >(val4);
5970 }
5971 {
5972 if (!wxPyCheckForApp()) SWIG_fail;
5973 PyThreadState* __tstate = wxPyBeginAllowThreads();
5974 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
5975 wxPyEndAllowThreads(__tstate);
5976 if (PyErr_Occurred()) SWIG_fail;
5977 }
5978 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5979 return resultobj;
5980 fail:
5981 return NULL;
5982 }
5983
5984
5985 SWIGINTERN PyObject *_wrap_Bitmap_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5986 PyObject *resultobj = 0;
5987 wxBitmap *arg1 = (wxBitmap *) 0 ;
5988 bool result;
5989 void *argp1 = 0 ;
5990 int res1 = 0 ;
5991 PyObject *swig_obj[1] ;
5992
5993 if (!args) SWIG_fail;
5994 swig_obj[0] = args;
5995 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5996 if (!SWIG_IsOK(res1)) {
5997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_Ok" "', expected argument " "1"" of type '" "wxBitmap *""'");
5998 }
5999 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6000 {
6001 result = (bool)(arg1)->Ok();
6002 if (PyErr_Occurred()) SWIG_fail;
6003 }
6004 {
6005 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6006 }
6007 return resultobj;
6008 fail:
6009 return NULL;
6010 }
6011
6012
6013 SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6014 PyObject *resultobj = 0;
6015 wxBitmap *arg1 = (wxBitmap *) 0 ;
6016 int result;
6017 void *argp1 = 0 ;
6018 int res1 = 0 ;
6019 PyObject *swig_obj[1] ;
6020
6021 if (!args) SWIG_fail;
6022 swig_obj[0] = args;
6023 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6024 if (!SWIG_IsOK(res1)) {
6025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6026 }
6027 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6028 {
6029 result = (int)(arg1)->GetWidth();
6030 if (PyErr_Occurred()) SWIG_fail;
6031 }
6032 resultobj = SWIG_From_int(static_cast< int >(result));
6033 return resultobj;
6034 fail:
6035 return NULL;
6036 }
6037
6038
6039 SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6040 PyObject *resultobj = 0;
6041 wxBitmap *arg1 = (wxBitmap *) 0 ;
6042 int result;
6043 void *argp1 = 0 ;
6044 int res1 = 0 ;
6045 PyObject *swig_obj[1] ;
6046
6047 if (!args) SWIG_fail;
6048 swig_obj[0] = args;
6049 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6050 if (!SWIG_IsOK(res1)) {
6051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6052 }
6053 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6054 {
6055 result = (int)(arg1)->GetHeight();
6056 if (PyErr_Occurred()) SWIG_fail;
6057 }
6058 resultobj = SWIG_From_int(static_cast< int >(result));
6059 return resultobj;
6060 fail:
6061 return NULL;
6062 }
6063
6064
6065 SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6066 PyObject *resultobj = 0;
6067 wxBitmap *arg1 = (wxBitmap *) 0 ;
6068 int result;
6069 void *argp1 = 0 ;
6070 int res1 = 0 ;
6071 PyObject *swig_obj[1] ;
6072
6073 if (!args) SWIG_fail;
6074 swig_obj[0] = args;
6075 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6076 if (!SWIG_IsOK(res1)) {
6077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6078 }
6079 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6080 {
6081 result = (int)(arg1)->GetDepth();
6082 if (PyErr_Occurred()) SWIG_fail;
6083 }
6084 resultobj = SWIG_From_int(static_cast< int >(result));
6085 return resultobj;
6086 fail:
6087 return NULL;
6088 }
6089
6090
6091 SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6092 PyObject *resultobj = 0;
6093 wxBitmap *arg1 = (wxBitmap *) 0 ;
6094 wxSize result;
6095 void *argp1 = 0 ;
6096 int res1 = 0 ;
6097 PyObject *swig_obj[1] ;
6098
6099 if (!args) SWIG_fail;
6100 swig_obj[0] = args;
6101 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6102 if (!SWIG_IsOK(res1)) {
6103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6104 }
6105 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6106 {
6107 result = wxBitmap_GetSize(arg1);
6108 if (PyErr_Occurred()) SWIG_fail;
6109 }
6110 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6111 return resultobj;
6112 fail:
6113 return NULL;
6114 }
6115
6116
6117 SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6118 PyObject *resultobj = 0;
6119 wxBitmap *arg1 = (wxBitmap *) 0 ;
6120 SwigValueWrapper<wxImage > result;
6121 void *argp1 = 0 ;
6122 int res1 = 0 ;
6123 PyObject *swig_obj[1] ;
6124
6125 if (!args) SWIG_fail;
6126 swig_obj[0] = args;
6127 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6128 if (!SWIG_IsOK(res1)) {
6129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6130 }
6131 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6132 {
6133 result = ((wxBitmap const *)arg1)->ConvertToImage();
6134 if (PyErr_Occurred()) SWIG_fail;
6135 }
6136 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
6137 return resultobj;
6138 fail:
6139 return NULL;
6140 }
6141
6142
6143 SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6144 PyObject *resultobj = 0;
6145 wxBitmap *arg1 = (wxBitmap *) 0 ;
6146 wxMask *result = 0 ;
6147 void *argp1 = 0 ;
6148 int res1 = 0 ;
6149 PyObject *swig_obj[1] ;
6150
6151 if (!args) SWIG_fail;
6152 swig_obj[0] = args;
6153 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6154 if (!SWIG_IsOK(res1)) {
6155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6156 }
6157 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6158 {
6159 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
6160 if (PyErr_Occurred()) SWIG_fail;
6161 }
6162 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
6163 return resultobj;
6164 fail:
6165 return NULL;
6166 }
6167
6168
6169 SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6170 PyObject *resultobj = 0;
6171 wxBitmap *arg1 = (wxBitmap *) 0 ;
6172 wxMask *arg2 = (wxMask *) 0 ;
6173 void *argp1 = 0 ;
6174 int res1 = 0 ;
6175 int res2 = 0 ;
6176 PyObject * obj0 = 0 ;
6177 PyObject * obj1 = 0 ;
6178 char * kwnames[] = {
6179 (char *) "self",(char *) "mask", NULL
6180 };
6181
6182 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
6183 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6184 if (!SWIG_IsOK(res1)) {
6185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
6186 }
6187 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6188 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6189 if (!SWIG_IsOK(res2)) {
6190 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
6191 }
6192 {
6193 (arg1)->SetMask(arg2);
6194 if (PyErr_Occurred()) SWIG_fail;
6195 }
6196 resultobj = SWIG_Py_Void();
6197 return resultobj;
6198 fail:
6199 return NULL;
6200 }
6201
6202
6203 SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6204 PyObject *resultobj = 0;
6205 wxBitmap *arg1 = (wxBitmap *) 0 ;
6206 wxColour *arg2 = 0 ;
6207 void *argp1 = 0 ;
6208 int res1 = 0 ;
6209 wxColour temp2 ;
6210 PyObject * obj0 = 0 ;
6211 PyObject * obj1 = 0 ;
6212 char * kwnames[] = {
6213 (char *) "self",(char *) "colour", NULL
6214 };
6215
6216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
6217 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6218 if (!SWIG_IsOK(res1)) {
6219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
6220 }
6221 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6222 {
6223 arg2 = &temp2;
6224 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6225 }
6226 {
6227 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
6228 if (PyErr_Occurred()) SWIG_fail;
6229 }
6230 resultobj = SWIG_Py_Void();
6231 return resultobj;
6232 fail:
6233 return NULL;
6234 }
6235
6236
6237 SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6238 PyObject *resultobj = 0;
6239 wxBitmap *arg1 = (wxBitmap *) 0 ;
6240 wxRect *arg2 = 0 ;
6241 SwigValueWrapper<wxBitmap > result;
6242 void *argp1 = 0 ;
6243 int res1 = 0 ;
6244 wxRect temp2 ;
6245 PyObject * obj0 = 0 ;
6246 PyObject * obj1 = 0 ;
6247 char * kwnames[] = {
6248 (char *) "self",(char *) "rect", NULL
6249 };
6250
6251 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6252 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6253 if (!SWIG_IsOK(res1)) {
6254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6255 }
6256 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6257 {
6258 arg2 = &temp2;
6259 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6260 }
6261 {
6262 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
6263 if (PyErr_Occurred()) SWIG_fail;
6264 }
6265 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6266 return resultobj;
6267 fail:
6268 return NULL;
6269 }
6270
6271
6272 SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6273 PyObject *resultobj = 0;
6274 wxBitmap *arg1 = (wxBitmap *) 0 ;
6275 wxString *arg2 = 0 ;
6276 wxBitmapType arg3 ;
6277 wxPalette *arg4 = (wxPalette *) NULL ;
6278 bool result;
6279 void *argp1 = 0 ;
6280 int res1 = 0 ;
6281 bool temp2 = false ;
6282 int val3 ;
6283 int ecode3 = 0 ;
6284 void *argp4 = 0 ;
6285 int res4 = 0 ;
6286 PyObject * obj0 = 0 ;
6287 PyObject * obj1 = 0 ;
6288 PyObject * obj2 = 0 ;
6289 PyObject * obj3 = 0 ;
6290 char * kwnames[] = {
6291 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
6292 };
6293
6294 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6295 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6296 if (!SWIG_IsOK(res1)) {
6297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6298 }
6299 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6300 {
6301 arg2 = wxString_in_helper(obj1);
6302 if (arg2 == NULL) SWIG_fail;
6303 temp2 = true;
6304 }
6305 ecode3 = SWIG_AsVal_int(obj2, &val3);
6306 if (!SWIG_IsOK(ecode3)) {
6307 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6308 }
6309 arg3 = static_cast< wxBitmapType >(val3);
6310 if (obj3) {
6311 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
6312 if (!SWIG_IsOK(res4)) {
6313 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
6314 }
6315 arg4 = reinterpret_cast< wxPalette * >(argp4);
6316 }
6317 {
6318 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
6319 if (PyErr_Occurred()) SWIG_fail;
6320 }
6321 {
6322 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6323 }
6324 {
6325 if (temp2)
6326 delete arg2;
6327 }
6328 return resultobj;
6329 fail:
6330 {
6331 if (temp2)
6332 delete arg2;
6333 }
6334 return NULL;
6335 }
6336
6337
6338 SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6339 PyObject *resultobj = 0;
6340 wxBitmap *arg1 = (wxBitmap *) 0 ;
6341 wxString *arg2 = 0 ;
6342 wxBitmapType arg3 ;
6343 bool result;
6344 void *argp1 = 0 ;
6345 int res1 = 0 ;
6346 bool temp2 = false ;
6347 int val3 ;
6348 int ecode3 = 0 ;
6349 PyObject * obj0 = 0 ;
6350 PyObject * obj1 = 0 ;
6351 PyObject * obj2 = 0 ;
6352 char * kwnames[] = {
6353 (char *) "self",(char *) "name",(char *) "type", NULL
6354 };
6355
6356 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6357 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6358 if (!SWIG_IsOK(res1)) {
6359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6360 }
6361 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6362 {
6363 arg2 = wxString_in_helper(obj1);
6364 if (arg2 == NULL) SWIG_fail;
6365 temp2 = true;
6366 }
6367 ecode3 = SWIG_AsVal_int(obj2, &val3);
6368 if (!SWIG_IsOK(ecode3)) {
6369 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6370 }
6371 arg3 = static_cast< wxBitmapType >(val3);
6372 {
6373 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
6374 if (PyErr_Occurred()) SWIG_fail;
6375 }
6376 {
6377 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6378 }
6379 {
6380 if (temp2)
6381 delete arg2;
6382 }
6383 return resultobj;
6384 fail:
6385 {
6386 if (temp2)
6387 delete arg2;
6388 }
6389 return NULL;
6390 }
6391
6392
6393 SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6394 PyObject *resultobj = 0;
6395 wxBitmap *arg1 = (wxBitmap *) 0 ;
6396 wxPalette *result = 0 ;
6397 void *argp1 = 0 ;
6398 int res1 = 0 ;
6399 PyObject *swig_obj[1] ;
6400
6401 if (!args) SWIG_fail;
6402 swig_obj[0] = args;
6403 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6404 if (!SWIG_IsOK(res1)) {
6405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6406 }
6407 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6408 {
6409 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
6410 if (PyErr_Occurred()) SWIG_fail;
6411 }
6412 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6413 return resultobj;
6414 fail:
6415 return NULL;
6416 }
6417
6418
6419 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6420 PyObject *resultobj = 0;
6421 wxBitmap *arg1 = (wxBitmap *) 0 ;
6422 wxIcon *arg2 = 0 ;
6423 bool result;
6424 void *argp1 = 0 ;
6425 int res1 = 0 ;
6426 void *argp2 = 0 ;
6427 int res2 = 0 ;
6428 PyObject * obj0 = 0 ;
6429 PyObject * obj1 = 0 ;
6430 char * kwnames[] = {
6431 (char *) "self",(char *) "icon", NULL
6432 };
6433
6434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6435 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6436 if (!SWIG_IsOK(res1)) {
6437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6438 }
6439 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6440 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6441 if (!SWIG_IsOK(res2)) {
6442 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6443 }
6444 if (!argp2) {
6445 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6446 }
6447 arg2 = reinterpret_cast< wxIcon * >(argp2);
6448 {
6449 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
6450 if (PyErr_Occurred()) SWIG_fail;
6451 }
6452 {
6453 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6454 }
6455 return resultobj;
6456 fail:
6457 return NULL;
6458 }
6459
6460
6461 SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6462 PyObject *resultobj = 0;
6463 wxBitmap *arg1 = (wxBitmap *) 0 ;
6464 int arg2 ;
6465 void *argp1 = 0 ;
6466 int res1 = 0 ;
6467 int val2 ;
6468 int ecode2 = 0 ;
6469 PyObject * obj0 = 0 ;
6470 PyObject * obj1 = 0 ;
6471 char * kwnames[] = {
6472 (char *) "self",(char *) "height", NULL
6473 };
6474
6475 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6476 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6477 if (!SWIG_IsOK(res1)) {
6478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6479 }
6480 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6481 ecode2 = SWIG_AsVal_int(obj1, &val2);
6482 if (!SWIG_IsOK(ecode2)) {
6483 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6484 }
6485 arg2 = static_cast< int >(val2);
6486 {
6487 (arg1)->SetHeight(arg2);
6488 if (PyErr_Occurred()) SWIG_fail;
6489 }
6490 resultobj = SWIG_Py_Void();
6491 return resultobj;
6492 fail:
6493 return NULL;
6494 }
6495
6496
6497 SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6498 PyObject *resultobj = 0;
6499 wxBitmap *arg1 = (wxBitmap *) 0 ;
6500 int arg2 ;
6501 void *argp1 = 0 ;
6502 int res1 = 0 ;
6503 int val2 ;
6504 int ecode2 = 0 ;
6505 PyObject * obj0 = 0 ;
6506 PyObject * obj1 = 0 ;
6507 char * kwnames[] = {
6508 (char *) "self",(char *) "width", NULL
6509 };
6510
6511 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6512 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6513 if (!SWIG_IsOK(res1)) {
6514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6515 }
6516 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6517 ecode2 = SWIG_AsVal_int(obj1, &val2);
6518 if (!SWIG_IsOK(ecode2)) {
6519 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6520 }
6521 arg2 = static_cast< int >(val2);
6522 {
6523 (arg1)->SetWidth(arg2);
6524 if (PyErr_Occurred()) SWIG_fail;
6525 }
6526 resultobj = SWIG_Py_Void();
6527 return resultobj;
6528 fail:
6529 return NULL;
6530 }
6531
6532
6533 SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6534 PyObject *resultobj = 0;
6535 wxBitmap *arg1 = (wxBitmap *) 0 ;
6536 int arg2 ;
6537 void *argp1 = 0 ;
6538 int res1 = 0 ;
6539 int val2 ;
6540 int ecode2 = 0 ;
6541 PyObject * obj0 = 0 ;
6542 PyObject * obj1 = 0 ;
6543 char * kwnames[] = {
6544 (char *) "self",(char *) "depth", NULL
6545 };
6546
6547 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6548 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6549 if (!SWIG_IsOK(res1)) {
6550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6551 }
6552 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6553 ecode2 = SWIG_AsVal_int(obj1, &val2);
6554 if (!SWIG_IsOK(ecode2)) {
6555 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6556 }
6557 arg2 = static_cast< int >(val2);
6558 {
6559 (arg1)->SetDepth(arg2);
6560 if (PyErr_Occurred()) SWIG_fail;
6561 }
6562 resultobj = SWIG_Py_Void();
6563 return resultobj;
6564 fail:
6565 return NULL;
6566 }
6567
6568
6569 SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6570 PyObject *resultobj = 0;
6571 wxBitmap *arg1 = (wxBitmap *) 0 ;
6572 wxSize *arg2 = 0 ;
6573 void *argp1 = 0 ;
6574 int res1 = 0 ;
6575 wxSize temp2 ;
6576 PyObject * obj0 = 0 ;
6577 PyObject * obj1 = 0 ;
6578 char * kwnames[] = {
6579 (char *) "self",(char *) "size", NULL
6580 };
6581
6582 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
6583 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6584 if (!SWIG_IsOK(res1)) {
6585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6586 }
6587 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6588 {
6589 arg2 = &temp2;
6590 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6591 }
6592 {
6593 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
6594 if (PyErr_Occurred()) SWIG_fail;
6595 }
6596 resultobj = SWIG_Py_Void();
6597 return resultobj;
6598 fail:
6599 return NULL;
6600 }
6601
6602
6603 SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6604 PyObject *resultobj = 0;
6605 wxBitmap *arg1 = (wxBitmap *) 0 ;
6606 wxBitmap *arg2 = (wxBitmap *) 0 ;
6607 bool result;
6608 void *argp1 = 0 ;
6609 int res1 = 0 ;
6610 void *argp2 = 0 ;
6611 int res2 = 0 ;
6612 PyObject * obj0 = 0 ;
6613 PyObject * obj1 = 0 ;
6614 char * kwnames[] = {
6615 (char *) "self",(char *) "other", NULL
6616 };
6617
6618 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
6619 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6620 if (!SWIG_IsOK(res1)) {
6621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6622 }
6623 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6624 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6625 if (!SWIG_IsOK(res2)) {
6626 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6627 }
6628 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6629 {
6630 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
6631 if (PyErr_Occurred()) SWIG_fail;
6632 }
6633 {
6634 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6635 }
6636 return resultobj;
6637 fail:
6638 return NULL;
6639 }
6640
6641
6642 SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6643 PyObject *resultobj = 0;
6644 wxBitmap *arg1 = (wxBitmap *) 0 ;
6645 wxBitmap *arg2 = (wxBitmap *) 0 ;
6646 bool result;
6647 void *argp1 = 0 ;
6648 int res1 = 0 ;
6649 void *argp2 = 0 ;
6650 int res2 = 0 ;
6651 PyObject * obj0 = 0 ;
6652 PyObject * obj1 = 0 ;
6653 char * kwnames[] = {
6654 (char *) "self",(char *) "other", NULL
6655 };
6656
6657 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
6658 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6659 if (!SWIG_IsOK(res1)) {
6660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6661 }
6662 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6663 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6664 if (!SWIG_IsOK(res2)) {
6665 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6666 }
6667 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6668 {
6669 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
6670 if (PyErr_Occurred()) SWIG_fail;
6671 }
6672 {
6673 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6674 }
6675 return resultobj;
6676 fail:
6677 return NULL;
6678 }
6679
6680
6681 SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6682 PyObject *obj;
6683 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6684 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
6685 return SWIG_Py_Void();
6686 }
6687
6688 SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6689 return SWIG_Python_InitShadowInstance(args);
6690 }
6691
6692 SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6693 PyObject *resultobj = 0;
6694 int arg1 ;
6695 int arg2 ;
6696 buffer arg3 ;
6697 int arg4 ;
6698 buffer arg5 ;
6699 int arg6 ;
6700 wxBitmap *result = 0 ;
6701 int val1 ;
6702 int ecode1 = 0 ;
6703 int val2 ;
6704 int ecode2 = 0 ;
6705 PyObject * obj0 = 0 ;
6706 PyObject * obj1 = 0 ;
6707 PyObject * obj2 = 0 ;
6708 PyObject * obj3 = 0 ;
6709 char * kwnames[] = {
6710 (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
6711 };
6712
6713 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6714 ecode1 = SWIG_AsVal_int(obj0, &val1);
6715 if (!SWIG_IsOK(ecode1)) {
6716 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'");
6717 }
6718 arg1 = static_cast< int >(val1);
6719 ecode2 = SWIG_AsVal_int(obj1, &val2);
6720 if (!SWIG_IsOK(ecode2)) {
6721 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'");
6722 }
6723 arg2 = static_cast< int >(val2);
6724 {
6725 if (obj2 != Py_None) {
6726 if (!PyArg_Parse(obj2, "t#", &arg3, &arg4)) SWIG_fail;
6727 }
6728 }
6729 {
6730 if (obj3 != Py_None) {
6731 if (!PyArg_Parse(obj3, "t#", &arg5, &arg6)) SWIG_fail;
6732 }
6733 }
6734 {
6735 result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6);
6736 if (PyErr_Occurred()) SWIG_fail;
6737 }
6738 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6739 return resultobj;
6740 fail:
6741 return NULL;
6742 }
6743
6744
6745 SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6746 PyObject *resultobj = 0;
6747 int arg1 ;
6748 int arg2 ;
6749 buffer arg3 ;
6750 int arg4 ;
6751 wxBitmap *result = 0 ;
6752 int val1 ;
6753 int ecode1 = 0 ;
6754 int val2 ;
6755 int ecode2 = 0 ;
6756 PyObject * obj0 = 0 ;
6757 PyObject * obj1 = 0 ;
6758 PyObject * obj2 = 0 ;
6759 char * kwnames[] = {
6760 (char *) "width",(char *) "height",(char *) "data", NULL
6761 };
6762
6763 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6764 ecode1 = SWIG_AsVal_int(obj0, &val1);
6765 if (!SWIG_IsOK(ecode1)) {
6766 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'");
6767 }
6768 arg1 = static_cast< int >(val1);
6769 ecode2 = SWIG_AsVal_int(obj1, &val2);
6770 if (!SWIG_IsOK(ecode2)) {
6771 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'");
6772 }
6773 arg2 = static_cast< int >(val2);
6774 {
6775 if (obj2 != Py_None) {
6776 if (!PyArg_Parse(obj2, "t#", &arg3, &arg4)) SWIG_fail;
6777 }
6778 }
6779 {
6780 result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4);
6781 if (PyErr_Occurred()) SWIG_fail;
6782 }
6783 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6784 return resultobj;
6785 fail:
6786 return NULL;
6787 }
6788
6789
6790 SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6791 PyObject *resultobj = 0;
6792 int arg1 ;
6793 int arg2 ;
6794 buffer arg3 ;
6795 int arg4 ;
6796 wxBitmap *result = 0 ;
6797 int val1 ;
6798 int ecode1 = 0 ;
6799 int val2 ;
6800 int ecode2 = 0 ;
6801 PyObject * obj0 = 0 ;
6802 PyObject * obj1 = 0 ;
6803 PyObject * obj2 = 0 ;
6804 char * kwnames[] = {
6805 (char *) "width",(char *) "height",(char *) "data", NULL
6806 };
6807
6808 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6809 ecode1 = SWIG_AsVal_int(obj0, &val1);
6810 if (!SWIG_IsOK(ecode1)) {
6811 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'");
6812 }
6813 arg1 = static_cast< int >(val1);
6814 ecode2 = SWIG_AsVal_int(obj1, &val2);
6815 if (!SWIG_IsOK(ecode2)) {
6816 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'");
6817 }
6818 arg2 = static_cast< int >(val2);
6819 {
6820 if (obj2 != Py_None) {
6821 if (!PyArg_Parse(obj2, "t#", &arg3, &arg4)) SWIG_fail;
6822 }
6823 }
6824 {
6825 result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4);
6826 if (PyErr_Occurred()) SWIG_fail;
6827 }
6828 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6829 return resultobj;
6830 fail:
6831 return NULL;
6832 }
6833
6834
6835 SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6836 PyObject *resultobj = 0;
6837 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
6838 wxPoint result;
6839 void *argp1 = 0 ;
6840 int res1 = 0 ;
6841 PyObject *swig_obj[1] ;
6842
6843 if (!args) SWIG_fail;
6844 swig_obj[0] = args;
6845 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
6846 if (!SWIG_IsOK(res1)) {
6847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
6848 }
6849 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
6850 {
6851 result = ((wxPixelDataBase const *)arg1)->GetOrigin();
6852 if (PyErr_Occurred()) SWIG_fail;
6853 }
6854 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
6855 return resultobj;
6856 fail:
6857 return NULL;
6858 }
6859
6860
6861 SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6862 PyObject *resultobj = 0;
6863 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
6864 int result;
6865 void *argp1 = 0 ;
6866 int res1 = 0 ;
6867 PyObject *swig_obj[1] ;
6868
6869 if (!args) SWIG_fail;
6870 swig_obj[0] = args;
6871 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
6872 if (!SWIG_IsOK(res1)) {
6873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
6874 }
6875 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
6876 {
6877 result = (int)((wxPixelDataBase const *)arg1)->GetWidth();
6878 if (PyErr_Occurred()) SWIG_fail;
6879 }
6880 resultobj = SWIG_From_int(static_cast< int >(result));
6881 return resultobj;
6882 fail:
6883 return NULL;
6884 }
6885
6886
6887 SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6888 PyObject *resultobj = 0;
6889 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
6890 int result;
6891 void *argp1 = 0 ;
6892 int res1 = 0 ;
6893 PyObject *swig_obj[1] ;
6894
6895 if (!args) SWIG_fail;
6896 swig_obj[0] = args;
6897 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
6898 if (!SWIG_IsOK(res1)) {
6899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
6900 }
6901 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
6902 {
6903 result = (int)((wxPixelDataBase const *)arg1)->GetHeight();
6904 if (PyErr_Occurred()) SWIG_fail;
6905 }
6906 resultobj = SWIG_From_int(static_cast< int >(result));
6907 return resultobj;
6908 fail:
6909 return NULL;
6910 }
6911
6912
6913 SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6914 PyObject *resultobj = 0;
6915 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
6916 wxSize result;
6917 void *argp1 = 0 ;
6918 int res1 = 0 ;
6919 PyObject *swig_obj[1] ;
6920
6921 if (!args) SWIG_fail;
6922 swig_obj[0] = args;
6923 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
6924 if (!SWIG_IsOK(res1)) {
6925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
6926 }
6927 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
6928 {
6929 result = ((wxPixelDataBase const *)arg1)->GetSize();
6930 if (PyErr_Occurred()) SWIG_fail;
6931 }
6932 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6933 return resultobj;
6934 fail:
6935 return NULL;
6936 }
6937
6938
6939 SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6940 PyObject *resultobj = 0;
6941 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
6942 int result;
6943 void *argp1 = 0 ;
6944 int res1 = 0 ;
6945 PyObject *swig_obj[1] ;
6946
6947 if (!args) SWIG_fail;
6948 swig_obj[0] = args;
6949 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
6950 if (!SWIG_IsOK(res1)) {
6951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
6952 }
6953 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
6954 {
6955 result = (int)((wxPixelDataBase const *)arg1)->GetRowStride();
6956 if (PyErr_Occurred()) SWIG_fail;
6957 }
6958 resultobj = SWIG_From_int(static_cast< int >(result));
6959 return resultobj;
6960 fail:
6961 return NULL;
6962 }
6963
6964
6965 SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6966 PyObject *obj;
6967 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6968 SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj));
6969 return SWIG_Py_Void();
6970 }
6971
6972 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
6973 PyObject *resultobj = 0;
6974 wxBitmap *arg1 = 0 ;
6975 wxNativePixelData *result = 0 ;
6976 void *argp1 = 0 ;
6977 int res1 = 0 ;
6978
6979 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
6980 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
6981 if (!SWIG_IsOK(res1)) {
6982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
6983 }
6984 if (!argp1) {
6985 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
6986 }
6987 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6988 {
6989 result = (wxNativePixelData *)new wxNativePixelData(*arg1);
6990 if (PyErr_Occurred()) SWIG_fail;
6991 }
6992 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
6993 return resultobj;
6994 fail:
6995 return NULL;
6996 }
6997
6998
6999 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7000 PyObject *resultobj = 0;
7001 wxBitmap *arg1 = 0 ;
7002 wxRect *arg2 = 0 ;
7003 wxNativePixelData *result = 0 ;
7004 void *argp1 = 0 ;
7005 int res1 = 0 ;
7006 wxRect temp2 ;
7007
7008 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7009 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7010 if (!SWIG_IsOK(res1)) {
7011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7012 }
7013 if (!argp1) {
7014 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7015 }
7016 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7017 {
7018 arg2 = &temp2;
7019 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7020 }
7021 {
7022 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2);
7023 if (PyErr_Occurred()) SWIG_fail;
7024 }
7025 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7026 return resultobj;
7027 fail:
7028 return NULL;
7029 }
7030
7031
7032 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7033 PyObject *resultobj = 0;
7034 wxBitmap *arg1 = 0 ;
7035 wxPoint *arg2 = 0 ;
7036 wxSize *arg3 = 0 ;
7037 wxNativePixelData *result = 0 ;
7038 void *argp1 = 0 ;
7039 int res1 = 0 ;
7040 wxPoint temp2 ;
7041 wxSize temp3 ;
7042
7043 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7044 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7045 if (!SWIG_IsOK(res1)) {
7046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7047 }
7048 if (!argp1) {
7049 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7050 }
7051 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7052 {
7053 arg2 = &temp2;
7054 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7055 }
7056 {
7057 arg3 = &temp3;
7058 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7059 }
7060 {
7061 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7062 if (PyErr_Occurred()) SWIG_fail;
7063 }
7064 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7065 return resultobj;
7066 fail:
7067 return NULL;
7068 }
7069
7070
7071 SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) {
7072 int argc;
7073 PyObject *argv[4];
7074
7075 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail;
7076 --argc;
7077 if (argc == 1) {
7078 return _wrap_new_NativePixelData__SWIG_0(self, argc, argv);
7079 }
7080 if (argc == 2) {
7081 return _wrap_new_NativePixelData__SWIG_1(self, argc, argv);
7082 }
7083 if (argc == 3) {
7084 return _wrap_new_NativePixelData__SWIG_2(self, argc, argv);
7085 }
7086
7087 fail:
7088 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'");
7089 return NULL;
7090 }
7091
7092
7093 SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7094 PyObject *resultobj = 0;
7095 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7096 void *argp1 = 0 ;
7097 int res1 = 0 ;
7098 PyObject *swig_obj[1] ;
7099
7100 if (!args) SWIG_fail;
7101 swig_obj[0] = args;
7102 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 );
7103 if (!SWIG_IsOK(res1)) {
7104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7105 }
7106 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7107 {
7108 delete arg1;
7109
7110 if (PyErr_Occurred()) SWIG_fail;
7111 }
7112 resultobj = SWIG_Py_Void();
7113 return resultobj;
7114 fail:
7115 return NULL;
7116 }
7117
7118
7119 SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7120 PyObject *resultobj = 0;
7121 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7122 wxNativePixelData_Accessor result;
7123 void *argp1 = 0 ;
7124 int res1 = 0 ;
7125 PyObject *swig_obj[1] ;
7126
7127 if (!args) SWIG_fail;
7128 swig_obj[0] = args;
7129 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7130 if (!SWIG_IsOK(res1)) {
7131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'");
7132 }
7133 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7134 {
7135 result = ((wxNativePixelData const *)arg1)->GetPixels();
7136 if (PyErr_Occurred()) SWIG_fail;
7137 }
7138 resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 );
7139 return resultobj;
7140 fail:
7141 return NULL;
7142 }
7143
7144
7145 SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7146 PyObject *resultobj = 0;
7147 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7148 void *argp1 = 0 ;
7149 int res1 = 0 ;
7150 PyObject *swig_obj[1] ;
7151
7152 if (!args) SWIG_fail;
7153 swig_obj[0] = args;
7154 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7155 if (!SWIG_IsOK(res1)) {
7156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7157 }
7158 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7159 {
7160 (arg1)->UseAlpha();
7161 if (PyErr_Occurred()) SWIG_fail;
7162 }
7163 resultobj = SWIG_Py_Void();
7164 return resultobj;
7165 fail:
7166 return NULL;
7167 }
7168
7169
7170 SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7171 PyObject *resultobj = 0;
7172 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7173 bool result;
7174 void *argp1 = 0 ;
7175 int res1 = 0 ;
7176 PyObject *swig_obj[1] ;
7177
7178 if (!args) SWIG_fail;
7179 swig_obj[0] = args;
7180 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7181 if (!SWIG_IsOK(res1)) {
7182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7183 }
7184 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7185 {
7186 result = (bool)wxNativePixelData___nonzero__(arg1);
7187 if (PyErr_Occurred()) SWIG_fail;
7188 }
7189 {
7190 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7191 }
7192 return resultobj;
7193 fail:
7194 return NULL;
7195 }
7196
7197
7198 SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7199 PyObject *obj;
7200 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7201 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj));
7202 return SWIG_Py_Void();
7203 }
7204
7205 SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7206 return SWIG_Python_InitShadowInstance(args);
7207 }
7208
7209 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7210 PyObject *resultobj = 0;
7211 wxNativePixelData *arg1 = 0 ;
7212 wxNativePixelData_Accessor *result = 0 ;
7213 void *argp1 = 0 ;
7214 int res1 = 0 ;
7215
7216 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7217 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 );
7218 if (!SWIG_IsOK(res1)) {
7219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7220 }
7221 if (!argp1) {
7222 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7223 }
7224 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7225 {
7226 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1);
7227 if (PyErr_Occurred()) SWIG_fail;
7228 }
7229 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7230 return resultobj;
7231 fail:
7232 return NULL;
7233 }
7234
7235
7236 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7237 PyObject *resultobj = 0;
7238 wxBitmap *arg1 = 0 ;
7239 wxNativePixelData *arg2 = 0 ;
7240 wxNativePixelData_Accessor *result = 0 ;
7241 void *argp1 = 0 ;
7242 int res1 = 0 ;
7243 void *argp2 = 0 ;
7244 int res2 = 0 ;
7245
7246 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7247 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7248 if (!SWIG_IsOK(res1)) {
7249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7250 }
7251 if (!argp1) {
7252 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7253 }
7254 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7255 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 );
7256 if (!SWIG_IsOK(res2)) {
7257 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7258 }
7259 if (!argp2) {
7260 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7261 }
7262 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7263 {
7264 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2);
7265 if (PyErr_Occurred()) SWIG_fail;
7266 }
7267 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7268 return resultobj;
7269 fail:
7270 return NULL;
7271 }
7272
7273
7274 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
7275 PyObject *resultobj = 0;
7276 wxNativePixelData_Accessor *result = 0 ;
7277
7278 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
7279 {
7280 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor();
7281 if (PyErr_Occurred()) SWIG_fail;
7282 }
7283 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7284 return resultobj;
7285 fail:
7286 return NULL;
7287 }
7288
7289
7290 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) {
7291 int argc;
7292 PyObject *argv[3];
7293
7294 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail;
7295 --argc;
7296 if (argc == 0) {
7297 return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv);
7298 }
7299 if (argc == 1) {
7300 return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv);
7301 }
7302 if (argc == 2) {
7303 return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv);
7304 }
7305
7306 fail:
7307 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'");
7308 return NULL;
7309 }
7310
7311
7312 SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7313 PyObject *resultobj = 0;
7314 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7315 void *argp1 = 0 ;
7316 int res1 = 0 ;
7317 PyObject *swig_obj[1] ;
7318
7319 if (!args) SWIG_fail;
7320 swig_obj[0] = args;
7321 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
7322 if (!SWIG_IsOK(res1)) {
7323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7324 }
7325 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7326 {
7327 delete arg1;
7328
7329 if (PyErr_Occurred()) SWIG_fail;
7330 }
7331 resultobj = SWIG_Py_Void();
7332 return resultobj;
7333 fail:
7334 return NULL;
7335 }
7336
7337
7338 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7339 PyObject *resultobj = 0;
7340 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7341 wxNativePixelData *arg2 = 0 ;
7342 void *argp1 = 0 ;
7343 int res1 = 0 ;
7344 void *argp2 = 0 ;
7345 int res2 = 0 ;
7346 PyObject * obj0 = 0 ;
7347 PyObject * obj1 = 0 ;
7348 char * kwnames[] = {
7349 (char *) "self",(char *) "data", NULL
7350 };
7351
7352 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
7353 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7354 if (!SWIG_IsOK(res1)) {
7355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7356 }
7357 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7358 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7359 if (!SWIG_IsOK(res2)) {
7360 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7361 }
7362 if (!argp2) {
7363 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7364 }
7365 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7366 {
7367 (arg1)->Reset((wxNativePixelData const &)*arg2);
7368 if (PyErr_Occurred()) SWIG_fail;
7369 }
7370 resultobj = SWIG_Py_Void();
7371 return resultobj;
7372 fail:
7373 return NULL;
7374 }
7375
7376
7377 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7378 PyObject *resultobj = 0;
7379 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7380 bool result;
7381 void *argp1 = 0 ;
7382 int res1 = 0 ;
7383 PyObject *swig_obj[1] ;
7384
7385 if (!args) SWIG_fail;
7386 swig_obj[0] = args;
7387 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7388 if (!SWIG_IsOK(res1)) {
7389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'");
7390 }
7391 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7392 {
7393 result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk();
7394 if (PyErr_Occurred()) SWIG_fail;
7395 }
7396 {
7397 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7398 }
7399 return resultobj;
7400 fail:
7401 return NULL;
7402 }
7403
7404
7405 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7406 PyObject *resultobj = 0;
7407 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7408 void *argp1 = 0 ;
7409 int res1 = 0 ;
7410 PyObject *swig_obj[1] ;
7411
7412 if (!args) SWIG_fail;
7413 swig_obj[0] = args;
7414 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7415 if (!SWIG_IsOK(res1)) {
7416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7417 }
7418 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7419 {
7420 wxNativePixelData_Accessor_nextPixel(arg1);
7421 if (PyErr_Occurred()) SWIG_fail;
7422 }
7423 resultobj = SWIG_Py_Void();
7424 return resultobj;
7425 fail:
7426 return NULL;
7427 }
7428
7429
7430 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7431 PyObject *resultobj = 0;
7432 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7433 wxNativePixelData *arg2 = 0 ;
7434 int arg3 ;
7435 int arg4 ;
7436 void *argp1 = 0 ;
7437 int res1 = 0 ;
7438 void *argp2 = 0 ;
7439 int res2 = 0 ;
7440 int val3 ;
7441 int ecode3 = 0 ;
7442 int val4 ;
7443 int ecode4 = 0 ;
7444 PyObject * obj0 = 0 ;
7445 PyObject * obj1 = 0 ;
7446 PyObject * obj2 = 0 ;
7447 PyObject * obj3 = 0 ;
7448 char * kwnames[] = {
7449 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7450 };
7451
7452 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7453 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7454 if (!SWIG_IsOK(res1)) {
7455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7456 }
7457 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7458 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7459 if (!SWIG_IsOK(res2)) {
7460 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7461 }
7462 if (!argp2) {
7463 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7464 }
7465 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7466 ecode3 = SWIG_AsVal_int(obj2, &val3);
7467 if (!SWIG_IsOK(ecode3)) {
7468 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
7469 }
7470 arg3 = static_cast< int >(val3);
7471 ecode4 = SWIG_AsVal_int(obj3, &val4);
7472 if (!SWIG_IsOK(ecode4)) {
7473 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
7474 }
7475 arg4 = static_cast< int >(val4);
7476 {
7477 (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4);
7478 if (PyErr_Occurred()) SWIG_fail;
7479 }
7480 resultobj = SWIG_Py_Void();
7481 return resultobj;
7482 fail:
7483 return NULL;
7484 }
7485
7486
7487 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7488 PyObject *resultobj = 0;
7489 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7490 wxNativePixelData *arg2 = 0 ;
7491 int arg3 ;
7492 void *argp1 = 0 ;
7493 int res1 = 0 ;
7494 void *argp2 = 0 ;
7495 int res2 = 0 ;
7496 int val3 ;
7497 int ecode3 = 0 ;
7498 PyObject * obj0 = 0 ;
7499 PyObject * obj1 = 0 ;
7500 PyObject * obj2 = 0 ;
7501 char * kwnames[] = {
7502 (char *) "self",(char *) "data",(char *) "x", NULL
7503 };
7504
7505 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7506 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7507 if (!SWIG_IsOK(res1)) {
7508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7509 }
7510 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7511 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7512 if (!SWIG_IsOK(res2)) {
7513 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7514 }
7515 if (!argp2) {
7516 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7517 }
7518 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7519 ecode3 = SWIG_AsVal_int(obj2, &val3);
7520 if (!SWIG_IsOK(ecode3)) {
7521 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
7522 }
7523 arg3 = static_cast< int >(val3);
7524 {
7525 (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3);
7526 if (PyErr_Occurred()) SWIG_fail;
7527 }
7528 resultobj = SWIG_Py_Void();
7529 return resultobj;
7530 fail:
7531 return NULL;
7532 }
7533
7534
7535 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7536 PyObject *resultobj = 0;
7537 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7538 wxNativePixelData *arg2 = 0 ;
7539 int arg3 ;
7540 void *argp1 = 0 ;
7541 int res1 = 0 ;
7542 void *argp2 = 0 ;
7543 int res2 = 0 ;
7544 int val3 ;
7545 int ecode3 = 0 ;
7546 PyObject * obj0 = 0 ;
7547 PyObject * obj1 = 0 ;
7548 PyObject * obj2 = 0 ;
7549 char * kwnames[] = {
7550 (char *) "self",(char *) "data",(char *) "y", NULL
7551 };
7552
7553 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7554 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7555 if (!SWIG_IsOK(res1)) {
7556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7557 }
7558 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7559 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7560 if (!SWIG_IsOK(res2)) {
7561 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7562 }
7563 if (!argp2) {
7564 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7565 }
7566 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7567 ecode3 = SWIG_AsVal_int(obj2, &val3);
7568 if (!SWIG_IsOK(ecode3)) {
7569 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
7570 }
7571 arg3 = static_cast< int >(val3);
7572 {
7573 (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3);
7574 if (PyErr_Occurred()) SWIG_fail;
7575 }
7576 resultobj = SWIG_Py_Void();
7577 return resultobj;
7578 fail:
7579 return NULL;
7580 }
7581
7582
7583 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7584 PyObject *resultobj = 0;
7585 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7586 wxNativePixelData *arg2 = 0 ;
7587 int arg3 ;
7588 int arg4 ;
7589 void *argp1 = 0 ;
7590 int res1 = 0 ;
7591 void *argp2 = 0 ;
7592 int res2 = 0 ;
7593 int val3 ;
7594 int ecode3 = 0 ;
7595 int val4 ;
7596 int ecode4 = 0 ;
7597 PyObject * obj0 = 0 ;
7598 PyObject * obj1 = 0 ;
7599 PyObject * obj2 = 0 ;
7600 PyObject * obj3 = 0 ;
7601 char * kwnames[] = {
7602 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7603 };
7604
7605 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7606 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7607 if (!SWIG_IsOK(res1)) {
7608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7609 }
7610 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7611 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7612 if (!SWIG_IsOK(res2)) {
7613 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7614 }
7615 if (!argp2) {
7616 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7617 }
7618 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7619 ecode3 = SWIG_AsVal_int(obj2, &val3);
7620 if (!SWIG_IsOK(ecode3)) {
7621 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
7622 }
7623 arg3 = static_cast< int >(val3);
7624 ecode4 = SWIG_AsVal_int(obj3, &val4);
7625 if (!SWIG_IsOK(ecode4)) {
7626 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
7627 }
7628 arg4 = static_cast< int >(val4);
7629 {
7630 (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4);
7631 if (PyErr_Occurred()) SWIG_fail;
7632 }
7633 resultobj = SWIG_Py_Void();
7634 return resultobj;
7635 fail:
7636 return NULL;
7637 }
7638
7639
7640 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7641 PyObject *resultobj = 0;
7642 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7643 byte arg2 ;
7644 byte arg3 ;
7645 byte arg4 ;
7646 void *argp1 = 0 ;
7647 int res1 = 0 ;
7648 unsigned char val2 ;
7649 int ecode2 = 0 ;
7650 unsigned char val3 ;
7651 int ecode3 = 0 ;
7652 unsigned char val4 ;
7653 int ecode4 = 0 ;
7654 PyObject * obj0 = 0 ;
7655 PyObject * obj1 = 0 ;
7656 PyObject * obj2 = 0 ;
7657 PyObject * obj3 = 0 ;
7658 char * kwnames[] = {
7659 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
7660 };
7661
7662 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7663 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7664 if (!SWIG_IsOK(res1)) {
7665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7666 }
7667 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7668 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
7669 if (!SWIG_IsOK(ecode2)) {
7670 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
7671 }
7672 arg2 = static_cast< byte >(val2);
7673 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
7674 if (!SWIG_IsOK(ecode3)) {
7675 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
7676 }
7677 arg3 = static_cast< byte >(val3);
7678 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
7679 if (!SWIG_IsOK(ecode4)) {
7680 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
7681 }
7682 arg4 = static_cast< byte >(val4);
7683 {
7684 wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4);
7685 if (PyErr_Occurred()) SWIG_fail;
7686 }
7687 resultobj = SWIG_Py_Void();
7688 return resultobj;
7689 fail:
7690 return NULL;
7691 }
7692
7693
7694 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7695 PyObject *resultobj = 0;
7696 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7697 PyObject *result = 0 ;
7698 void *argp1 = 0 ;
7699 int res1 = 0 ;
7700 PyObject *swig_obj[1] ;
7701
7702 if (!args) SWIG_fail;
7703 swig_obj[0] = args;
7704 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7705 if (!SWIG_IsOK(res1)) {
7706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7707 }
7708 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7709 {
7710 result = (PyObject *)wxNativePixelData_Accessor_Get(arg1);
7711 if (PyErr_Occurred()) SWIG_fail;
7712 }
7713 resultobj = result;
7714 return resultobj;
7715 fail:
7716 return NULL;
7717 }
7718
7719
7720 SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7721 PyObject *obj;
7722 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7723 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj));
7724 return SWIG_Py_Void();
7725 }
7726
7727 SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7728 return SWIG_Python_InitShadowInstance(args);
7729 }
7730
7731 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7732 PyObject *resultobj = 0;
7733 wxBitmap *arg1 = 0 ;
7734 wxAlphaPixelData *result = 0 ;
7735 void *argp1 = 0 ;
7736 int res1 = 0 ;
7737
7738 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7739 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7740 if (!SWIG_IsOK(res1)) {
7741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7742 }
7743 if (!argp1) {
7744 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7745 }
7746 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7747 {
7748 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1);
7749 if (PyErr_Occurred()) SWIG_fail;
7750 }
7751 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
7752 return resultobj;
7753 fail:
7754 return NULL;
7755 }
7756
7757
7758 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7759 PyObject *resultobj = 0;
7760 wxBitmap *arg1 = 0 ;
7761 wxRect *arg2 = 0 ;
7762 wxAlphaPixelData *result = 0 ;
7763 void *argp1 = 0 ;
7764 int res1 = 0 ;
7765 wxRect temp2 ;
7766
7767 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7768 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7769 if (!SWIG_IsOK(res1)) {
7770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7771 }
7772 if (!argp1) {
7773 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7774 }
7775 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7776 {
7777 arg2 = &temp2;
7778 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7779 }
7780 {
7781 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2);
7782 if (PyErr_Occurred()) SWIG_fail;
7783 }
7784 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
7785 return resultobj;
7786 fail:
7787 return NULL;
7788 }
7789
7790
7791 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7792 PyObject *resultobj = 0;
7793 wxBitmap *arg1 = 0 ;
7794 wxPoint *arg2 = 0 ;
7795 wxSize *arg3 = 0 ;
7796 wxAlphaPixelData *result = 0 ;
7797 void *argp1 = 0 ;
7798 int res1 = 0 ;
7799 wxPoint temp2 ;
7800 wxSize temp3 ;
7801
7802 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7803 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7804 if (!SWIG_IsOK(res1)) {
7805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7806 }
7807 if (!argp1) {
7808 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7809 }
7810 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7811 {
7812 arg2 = &temp2;
7813 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7814 }
7815 {
7816 arg3 = &temp3;
7817 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7818 }
7819 {
7820 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7821 if (PyErr_Occurred()) SWIG_fail;
7822 }
7823 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
7824 return resultobj;
7825 fail:
7826 return NULL;
7827 }
7828
7829
7830 SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) {
7831 int argc;
7832 PyObject *argv[4];
7833
7834 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail;
7835 --argc;
7836 if (argc == 1) {
7837 return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv);
7838 }
7839 if (argc == 2) {
7840 return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv);
7841 }
7842 if (argc == 3) {
7843 return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv);
7844 }
7845
7846 fail:
7847 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'");
7848 return NULL;
7849 }
7850
7851
7852 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7853 PyObject *resultobj = 0;
7854 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
7855 void *argp1 = 0 ;
7856 int res1 = 0 ;
7857 PyObject *swig_obj[1] ;
7858
7859 if (!args) SWIG_fail;
7860 swig_obj[0] = args;
7861 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 );
7862 if (!SWIG_IsOK(res1)) {
7863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
7864 }
7865 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
7866 {
7867 delete arg1;
7868
7869 if (PyErr_Occurred()) SWIG_fail;
7870 }
7871 resultobj = SWIG_Py_Void();
7872 return resultobj;
7873 fail:
7874 return NULL;
7875 }
7876
7877
7878 SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7879 PyObject *resultobj = 0;
7880 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
7881 wxAlphaPixelData_Accessor result;
7882 void *argp1 = 0 ;
7883 int res1 = 0 ;
7884 PyObject *swig_obj[1] ;
7885
7886 if (!args) SWIG_fail;
7887 swig_obj[0] = args;
7888 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
7889 if (!SWIG_IsOK(res1)) {
7890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'");
7891 }
7892 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
7893 {
7894 result = ((wxAlphaPixelData const *)arg1)->GetPixels();
7895 if (PyErr_Occurred()) SWIG_fail;
7896 }
7897 resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 );
7898 return resultobj;
7899 fail:
7900 return NULL;
7901 }
7902
7903
7904 SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7905 PyObject *resultobj = 0;
7906 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
7907 void *argp1 = 0 ;
7908 int res1 = 0 ;
7909 PyObject *swig_obj[1] ;
7910
7911 if (!args) SWIG_fail;
7912 swig_obj[0] = args;
7913 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
7914 if (!SWIG_IsOK(res1)) {
7915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
7916 }
7917 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
7918 {
7919 (arg1)->UseAlpha();
7920 if (PyErr_Occurred()) SWIG_fail;
7921 }
7922 resultobj = SWIG_Py_Void();
7923 return resultobj;
7924 fail:
7925 return NULL;
7926 }
7927
7928
7929 SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7930 PyObject *resultobj = 0;
7931 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
7932 bool result;
7933 void *argp1 = 0 ;
7934 int res1 = 0 ;
7935 PyObject *swig_obj[1] ;
7936
7937 if (!args) SWIG_fail;
7938 swig_obj[0] = args;
7939 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
7940 if (!SWIG_IsOK(res1)) {
7941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
7942 }
7943 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
7944 {
7945 result = (bool)wxAlphaPixelData___nonzero__(arg1);
7946 if (PyErr_Occurred()) SWIG_fail;
7947 }
7948 {
7949 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7950 }
7951 return resultobj;
7952 fail:
7953 return NULL;
7954 }
7955
7956
7957 SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7958 PyObject *obj;
7959 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7960 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj));
7961 return SWIG_Py_Void();
7962 }
7963
7964 SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7965 return SWIG_Python_InitShadowInstance(args);
7966 }
7967
7968 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7969 PyObject *resultobj = 0;
7970 wxAlphaPixelData *arg1 = 0 ;
7971 wxAlphaPixelData_Accessor *result = 0 ;
7972 void *argp1 = 0 ;
7973 int res1 = 0 ;
7974
7975 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7976 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 );
7977 if (!SWIG_IsOK(res1)) {
7978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
7979 }
7980 if (!argp1) {
7981 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
7982 }
7983 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
7984 {
7985 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1);
7986 if (PyErr_Occurred()) SWIG_fail;
7987 }
7988 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
7989 return resultobj;
7990 fail:
7991 return NULL;
7992 }
7993
7994
7995 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7996 PyObject *resultobj = 0;
7997 wxBitmap *arg1 = 0 ;
7998 wxAlphaPixelData *arg2 = 0 ;
7999 wxAlphaPixelData_Accessor *result = 0 ;
8000 void *argp1 = 0 ;
8001 int res1 = 0 ;
8002 void *argp2 = 0 ;
8003 int res2 = 0 ;
8004
8005 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8006 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8007 if (!SWIG_IsOK(res1)) {
8008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8009 }
8010 if (!argp1) {
8011 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8012 }
8013 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8014 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 );
8015 if (!SWIG_IsOK(res2)) {
8016 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8017 }
8018 if (!argp2) {
8019 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8020 }
8021 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8022 {
8023 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2);
8024 if (PyErr_Occurred()) SWIG_fail;
8025 }
8026 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8027 return resultobj;
8028 fail:
8029 return NULL;
8030 }
8031
8032
8033 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
8034 PyObject *resultobj = 0;
8035 wxAlphaPixelData_Accessor *result = 0 ;
8036
8037 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
8038 {
8039 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor();
8040 if (PyErr_Occurred()) SWIG_fail;
8041 }
8042 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8043 return resultobj;
8044 fail:
8045 return NULL;
8046 }
8047
8048
8049 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) {
8050 int argc;
8051 PyObject *argv[3];
8052
8053 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail;
8054 --argc;
8055 if (argc == 0) {
8056 return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv);
8057 }
8058 if (argc == 1) {
8059 return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv);
8060 }
8061 if (argc == 2) {
8062 return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv);
8063 }
8064
8065 fail:
8066 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'");
8067 return NULL;
8068 }
8069
8070
8071 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8072 PyObject *resultobj = 0;
8073 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8074 void *argp1 = 0 ;
8075 int res1 = 0 ;
8076 PyObject *swig_obj[1] ;
8077
8078 if (!args) SWIG_fail;
8079 swig_obj[0] = args;
8080 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
8081 if (!SWIG_IsOK(res1)) {
8082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8083 }
8084 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8085 {
8086 delete arg1;
8087
8088 if (PyErr_Occurred()) SWIG_fail;
8089 }
8090 resultobj = SWIG_Py_Void();
8091 return resultobj;
8092 fail:
8093 return NULL;
8094 }
8095
8096
8097 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8098 PyObject *resultobj = 0;
8099 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8100 wxAlphaPixelData *arg2 = 0 ;
8101 void *argp1 = 0 ;
8102 int res1 = 0 ;
8103 void *argp2 = 0 ;
8104 int res2 = 0 ;
8105 PyObject * obj0 = 0 ;
8106 PyObject * obj1 = 0 ;
8107 char * kwnames[] = {
8108 (char *) "self",(char *) "data", NULL
8109 };
8110
8111 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
8112 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8113 if (!SWIG_IsOK(res1)) {
8114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8115 }
8116 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8117 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8118 if (!SWIG_IsOK(res2)) {
8119 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8120 }
8121 if (!argp2) {
8122 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8123 }
8124 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8125 {
8126 (arg1)->Reset((wxAlphaPixelData const &)*arg2);
8127 if (PyErr_Occurred()) SWIG_fail;
8128 }
8129 resultobj = SWIG_Py_Void();
8130 return resultobj;
8131 fail:
8132 return NULL;
8133 }
8134
8135
8136 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8137 PyObject *resultobj = 0;
8138 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8139 bool result;
8140 void *argp1 = 0 ;
8141 int res1 = 0 ;
8142 PyObject *swig_obj[1] ;
8143
8144 if (!args) SWIG_fail;
8145 swig_obj[0] = args;
8146 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8147 if (!SWIG_IsOK(res1)) {
8148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'");
8149 }
8150 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8151 {
8152 result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk();
8153 if (PyErr_Occurred()) SWIG_fail;
8154 }
8155 {
8156 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8157 }
8158 return resultobj;
8159 fail:
8160 return NULL;
8161 }
8162
8163
8164 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8165 PyObject *resultobj = 0;
8166 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8167 void *argp1 = 0 ;
8168 int res1 = 0 ;
8169 PyObject *swig_obj[1] ;
8170
8171 if (!args) SWIG_fail;
8172 swig_obj[0] = args;
8173 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8174 if (!SWIG_IsOK(res1)) {
8175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8176 }
8177 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8178 {
8179 wxAlphaPixelData_Accessor_nextPixel(arg1);
8180 if (PyErr_Occurred()) SWIG_fail;
8181 }
8182 resultobj = SWIG_Py_Void();
8183 return resultobj;
8184 fail:
8185 return NULL;
8186 }
8187
8188
8189 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8190 PyObject *resultobj = 0;
8191 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8192 wxAlphaPixelData *arg2 = 0 ;
8193 int arg3 ;
8194 int arg4 ;
8195 void *argp1 = 0 ;
8196 int res1 = 0 ;
8197 void *argp2 = 0 ;
8198 int res2 = 0 ;
8199 int val3 ;
8200 int ecode3 = 0 ;
8201 int val4 ;
8202 int ecode4 = 0 ;
8203 PyObject * obj0 = 0 ;
8204 PyObject * obj1 = 0 ;
8205 PyObject * obj2 = 0 ;
8206 PyObject * obj3 = 0 ;
8207 char * kwnames[] = {
8208 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8209 };
8210
8211 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8212 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8213 if (!SWIG_IsOK(res1)) {
8214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8215 }
8216 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8217 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8218 if (!SWIG_IsOK(res2)) {
8219 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8220 }
8221 if (!argp2) {
8222 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8223 }
8224 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8225 ecode3 = SWIG_AsVal_int(obj2, &val3);
8226 if (!SWIG_IsOK(ecode3)) {
8227 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8228 }
8229 arg3 = static_cast< int >(val3);
8230 ecode4 = SWIG_AsVal_int(obj3, &val4);
8231 if (!SWIG_IsOK(ecode4)) {
8232 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8233 }
8234 arg4 = static_cast< int >(val4);
8235 {
8236 (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4);
8237 if (PyErr_Occurred()) SWIG_fail;
8238 }
8239 resultobj = SWIG_Py_Void();
8240 return resultobj;
8241 fail:
8242 return NULL;
8243 }
8244
8245
8246 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8247 PyObject *resultobj = 0;
8248 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8249 wxAlphaPixelData *arg2 = 0 ;
8250 int arg3 ;
8251 void *argp1 = 0 ;
8252 int res1 = 0 ;
8253 void *argp2 = 0 ;
8254 int res2 = 0 ;
8255 int val3 ;
8256 int ecode3 = 0 ;
8257 PyObject * obj0 = 0 ;
8258 PyObject * obj1 = 0 ;
8259 PyObject * obj2 = 0 ;
8260 char * kwnames[] = {
8261 (char *) "self",(char *) "data",(char *) "x", NULL
8262 };
8263
8264 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8265 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8266 if (!SWIG_IsOK(res1)) {
8267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8268 }
8269 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8270 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8271 if (!SWIG_IsOK(res2)) {
8272 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8273 }
8274 if (!argp2) {
8275 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8276 }
8277 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8278 ecode3 = SWIG_AsVal_int(obj2, &val3);
8279 if (!SWIG_IsOK(ecode3)) {
8280 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8281 }
8282 arg3 = static_cast< int >(val3);
8283 {
8284 (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3);
8285 if (PyErr_Occurred()) SWIG_fail;
8286 }
8287 resultobj = SWIG_Py_Void();
8288 return resultobj;
8289 fail:
8290 return NULL;
8291 }
8292
8293
8294 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8295 PyObject *resultobj = 0;
8296 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8297 wxAlphaPixelData *arg2 = 0 ;
8298 int arg3 ;
8299 void *argp1 = 0 ;
8300 int res1 = 0 ;
8301 void *argp2 = 0 ;
8302 int res2 = 0 ;
8303 int val3 ;
8304 int ecode3 = 0 ;
8305 PyObject * obj0 = 0 ;
8306 PyObject * obj1 = 0 ;
8307 PyObject * obj2 = 0 ;
8308 char * kwnames[] = {
8309 (char *) "self",(char *) "data",(char *) "y", NULL
8310 };
8311
8312 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8313 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8314 if (!SWIG_IsOK(res1)) {
8315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8316 }
8317 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8318 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8319 if (!SWIG_IsOK(res2)) {
8320 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8321 }
8322 if (!argp2) {
8323 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8324 }
8325 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8326 ecode3 = SWIG_AsVal_int(obj2, &val3);
8327 if (!SWIG_IsOK(ecode3)) {
8328 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8329 }
8330 arg3 = static_cast< int >(val3);
8331 {
8332 (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3);
8333 if (PyErr_Occurred()) SWIG_fail;
8334 }
8335 resultobj = SWIG_Py_Void();
8336 return resultobj;
8337 fail:
8338 return NULL;
8339 }
8340
8341
8342 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8343 PyObject *resultobj = 0;
8344 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8345 wxAlphaPixelData *arg2 = 0 ;
8346 int arg3 ;
8347 int arg4 ;
8348 void *argp1 = 0 ;
8349 int res1 = 0 ;
8350 void *argp2 = 0 ;
8351 int res2 = 0 ;
8352 int val3 ;
8353 int ecode3 = 0 ;
8354 int val4 ;
8355 int ecode4 = 0 ;
8356 PyObject * obj0 = 0 ;
8357 PyObject * obj1 = 0 ;
8358 PyObject * obj2 = 0 ;
8359 PyObject * obj3 = 0 ;
8360 char * kwnames[] = {
8361 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8362 };
8363
8364 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8365 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8366 if (!SWIG_IsOK(res1)) {
8367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8368 }
8369 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8370 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8371 if (!SWIG_IsOK(res2)) {
8372 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8373 }
8374 if (!argp2) {
8375 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8376 }
8377 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8378 ecode3 = SWIG_AsVal_int(obj2, &val3);
8379 if (!SWIG_IsOK(ecode3)) {
8380 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8381 }
8382 arg3 = static_cast< int >(val3);
8383 ecode4 = SWIG_AsVal_int(obj3, &val4);
8384 if (!SWIG_IsOK(ecode4)) {
8385 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8386 }
8387 arg4 = static_cast< int >(val4);
8388 {
8389 (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4);
8390 if (PyErr_Occurred()) SWIG_fail;
8391 }
8392 resultobj = SWIG_Py_Void();
8393 return resultobj;
8394 fail:
8395 return NULL;
8396 }
8397
8398
8399 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8400 PyObject *resultobj = 0;
8401 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8402 byte arg2 ;
8403 byte arg3 ;
8404 byte arg4 ;
8405 byte arg5 ;
8406 void *argp1 = 0 ;
8407 int res1 = 0 ;
8408 unsigned char val2 ;
8409 int ecode2 = 0 ;
8410 unsigned char val3 ;
8411 int ecode3 = 0 ;
8412 unsigned char val4 ;
8413 int ecode4 = 0 ;
8414 unsigned char val5 ;
8415 int ecode5 = 0 ;
8416 PyObject * obj0 = 0 ;
8417 PyObject * obj1 = 0 ;
8418 PyObject * obj2 = 0 ;
8419 PyObject * obj3 = 0 ;
8420 PyObject * obj4 = 0 ;
8421 char * kwnames[] = {
8422 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
8423 };
8424
8425 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8426 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8427 if (!SWIG_IsOK(res1)) {
8428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8429 }
8430 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8431 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8432 if (!SWIG_IsOK(ecode2)) {
8433 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8434 }
8435 arg2 = static_cast< byte >(val2);
8436 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8437 if (!SWIG_IsOK(ecode3)) {
8438 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8439 }
8440 arg3 = static_cast< byte >(val3);
8441 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8442 if (!SWIG_IsOK(ecode4)) {
8443 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8444 }
8445 arg4 = static_cast< byte >(val4);
8446 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
8447 if (!SWIG_IsOK(ecode5)) {
8448 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'");
8449 }
8450 arg5 = static_cast< byte >(val5);
8451 {
8452 wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5);
8453 if (PyErr_Occurred()) SWIG_fail;
8454 }
8455 resultobj = SWIG_Py_Void();
8456 return resultobj;
8457 fail:
8458 return NULL;
8459 }
8460
8461
8462 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8463 PyObject *resultobj = 0;
8464 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8465 PyObject *result = 0 ;
8466 void *argp1 = 0 ;
8467 int res1 = 0 ;
8468 PyObject *swig_obj[1] ;
8469
8470 if (!args) SWIG_fail;
8471 swig_obj[0] = args;
8472 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8473 if (!SWIG_IsOK(res1)) {
8474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8475 }
8476 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8477 {
8478 result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1);
8479 if (PyErr_Occurred()) SWIG_fail;
8480 }
8481 resultobj = result;
8482 return resultobj;
8483 fail:
8484 return NULL;
8485 }
8486
8487
8488 SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8489 PyObject *obj;
8490 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8491 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj));
8492 return SWIG_Py_Void();
8493 }
8494
8495 SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8496 return SWIG_Python_InitShadowInstance(args);
8497 }
8498
8499 SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8500 PyObject *resultobj = 0;
8501 wxBitmap *arg1 = 0 ;
8502 wxColour const &arg2_defvalue = wxNullColour ;
8503 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
8504 wxMask *result = 0 ;
8505 void *argp1 = 0 ;
8506 int res1 = 0 ;
8507 wxColour temp2 ;
8508 PyObject * obj0 = 0 ;
8509 PyObject * obj1 = 0 ;
8510 char * kwnames[] = {
8511 (char *) "bitmap",(char *) "colour", NULL
8512 };
8513
8514 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
8515 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8516 if (!SWIG_IsOK(res1)) {
8517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8518 }
8519 if (!argp1) {
8520 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8521 }
8522 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8523 if (obj1) {
8524 {
8525 arg2 = &temp2;
8526 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
8527 }
8528 }
8529 {
8530 if (!wxPyCheckForApp()) SWIG_fail;
8531 PyThreadState* __tstate = wxPyBeginAllowThreads();
8532 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
8533 wxPyEndAllowThreads(__tstate);
8534 if (PyErr_Occurred()) SWIG_fail;
8535 }
8536 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
8537 return resultobj;
8538 fail:
8539 return NULL;
8540 }
8541
8542
8543 SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8544 PyObject *resultobj = 0;
8545 wxMask *arg1 = (wxMask *) 0 ;
8546 void *argp1 = 0 ;
8547 int res1 = 0 ;
8548 PyObject *swig_obj[1] ;
8549
8550 if (!args) SWIG_fail;
8551 swig_obj[0] = args;
8552 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
8553 if (!SWIG_IsOK(res1)) {
8554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
8555 }
8556 arg1 = reinterpret_cast< wxMask * >(argp1);
8557 {
8558 delete arg1;
8559
8560 if (PyErr_Occurred()) SWIG_fail;
8561 }
8562 resultobj = SWIG_Py_Void();
8563 return resultobj;
8564 fail:
8565 return NULL;
8566 }
8567
8568
8569 SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8570 PyObject *obj;
8571 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8572 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
8573 return SWIG_Py_Void();
8574 }
8575
8576 SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8577 return SWIG_Python_InitShadowInstance(args);
8578 }
8579
8580 SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8581 PyObject *resultobj = 0;
8582 wxString *arg1 = 0 ;
8583 wxBitmapType arg2 ;
8584 int arg3 = (int) -1 ;
8585 int arg4 = (int) -1 ;
8586 wxIcon *result = 0 ;
8587 bool temp1 = false ;
8588 int val2 ;
8589 int ecode2 = 0 ;
8590 int val3 ;
8591 int ecode3 = 0 ;
8592 int val4 ;
8593 int ecode4 = 0 ;
8594 PyObject * obj0 = 0 ;
8595 PyObject * obj1 = 0 ;
8596 PyObject * obj2 = 0 ;
8597 PyObject * obj3 = 0 ;
8598 char * kwnames[] = {
8599 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
8600 };
8601
8602 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8603 {
8604 arg1 = wxString_in_helper(obj0);
8605 if (arg1 == NULL) SWIG_fail;
8606 temp1 = true;
8607 }
8608 ecode2 = SWIG_AsVal_int(obj1, &val2);
8609 if (!SWIG_IsOK(ecode2)) {
8610 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
8611 }
8612 arg2 = static_cast< wxBitmapType >(val2);
8613 if (obj2) {
8614 ecode3 = SWIG_AsVal_int(obj2, &val3);
8615 if (!SWIG_IsOK(ecode3)) {
8616 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
8617 }
8618 arg3 = static_cast< int >(val3);
8619 }
8620 if (obj3) {
8621 ecode4 = SWIG_AsVal_int(obj3, &val4);
8622 if (!SWIG_IsOK(ecode4)) {
8623 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
8624 }
8625 arg4 = static_cast< int >(val4);
8626 }
8627 {
8628 if (!wxPyCheckForApp()) SWIG_fail;
8629 PyThreadState* __tstate = wxPyBeginAllowThreads();
8630 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
8631 wxPyEndAllowThreads(__tstate);
8632 if (PyErr_Occurred()) SWIG_fail;
8633 }
8634 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
8635 {
8636 if (temp1)
8637 delete arg1;
8638 }
8639 return resultobj;
8640 fail:
8641 {
8642 if (temp1)
8643 delete arg1;
8644 }
8645 return NULL;
8646 }
8647
8648
8649 SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8650 PyObject *resultobj = 0;
8651 wxIcon *arg1 = (wxIcon *) 0 ;
8652 void *argp1 = 0 ;
8653 int res1 = 0 ;
8654 PyObject *swig_obj[1] ;
8655
8656 if (!args) SWIG_fail;
8657 swig_obj[0] = args;
8658 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
8659 if (!SWIG_IsOK(res1)) {
8660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
8661 }
8662 arg1 = reinterpret_cast< wxIcon * >(argp1);
8663 {
8664 PyThreadState* __tstate = wxPyBeginAllowThreads();
8665 delete arg1;
8666
8667 wxPyEndAllowThreads(__tstate);
8668 if (PyErr_Occurred()) SWIG_fail;
8669 }
8670 resultobj = SWIG_Py_Void();
8671 return resultobj;
8672 fail:
8673 return NULL;
8674 }
8675
8676
8677 SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8678 PyObject *resultobj = 0;
8679 wxIcon *result = 0 ;
8680
8681 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
8682 {
8683 if (!wxPyCheckForApp()) SWIG_fail;
8684 PyThreadState* __tstate = wxPyBeginAllowThreads();
8685 result = (wxIcon *)new wxIcon();
8686 wxPyEndAllowThreads(__tstate);
8687 if (PyErr_Occurred()) SWIG_fail;
8688 }
8689 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8690 return resultobj;
8691 fail:
8692 return NULL;
8693 }
8694
8695
8696 SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8697 PyObject *resultobj = 0;
8698 wxIconLocation *arg1 = 0 ;
8699 wxIcon *result = 0 ;
8700 void *argp1 = 0 ;
8701 int res1 = 0 ;
8702 PyObject * obj0 = 0 ;
8703 char * kwnames[] = {
8704 (char *) "loc", NULL
8705 };
8706
8707 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
8708 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
8709 if (!SWIG_IsOK(res1)) {
8710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
8711 }
8712 if (!argp1) {
8713 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
8714 }
8715 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
8716 {
8717 if (!wxPyCheckForApp()) SWIG_fail;
8718 PyThreadState* __tstate = wxPyBeginAllowThreads();
8719 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
8720 wxPyEndAllowThreads(__tstate);
8721 if (PyErr_Occurred()) SWIG_fail;
8722 }
8723 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8724 return resultobj;
8725 fail:
8726 return NULL;
8727 }
8728
8729
8730 SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8731 PyObject *resultobj = 0;
8732 wxBitmap *arg1 = 0 ;
8733 wxIcon *result = 0 ;
8734 void *argp1 = 0 ;
8735 int res1 = 0 ;
8736 PyObject * obj0 = 0 ;
8737 char * kwnames[] = {
8738 (char *) "bmp", NULL
8739 };
8740
8741 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
8742 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8743 if (!SWIG_IsOK(res1)) {
8744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8745 }
8746 if (!argp1) {
8747 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8748 }
8749 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8750 {
8751 if (!wxPyCheckForApp()) SWIG_fail;
8752 PyThreadState* __tstate = wxPyBeginAllowThreads();
8753 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
8754 wxPyEndAllowThreads(__tstate);
8755 if (PyErr_Occurred()) SWIG_fail;
8756 }
8757 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8758 return resultobj;
8759 fail:
8760 return NULL;
8761 }
8762
8763
8764 SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8765 PyObject *resultobj = 0;
8766 PyObject *arg1 = (PyObject *) 0 ;
8767 wxIcon *result = 0 ;
8768 PyObject * obj0 = 0 ;
8769 char * kwnames[] = {
8770 (char *) "listOfStrings", NULL
8771 };
8772
8773 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
8774 arg1 = obj0;
8775 {
8776 if (!wxPyCheckForApp()) SWIG_fail;
8777 PyThreadState* __tstate = wxPyBeginAllowThreads();
8778 result = (wxIcon *)new_wxIcon(arg1);
8779 wxPyEndAllowThreads(__tstate);
8780 if (PyErr_Occurred()) SWIG_fail;
8781 }
8782 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8783 return resultobj;
8784 fail:
8785 return NULL;
8786 }
8787
8788
8789 SWIGINTERN PyObject *_wrap_Icon_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8790 PyObject *resultobj = 0;
8791 wxIcon *arg1 = (wxIcon *) 0 ;
8792 bool result;
8793 void *argp1 = 0 ;
8794 int res1 = 0 ;
8795 PyObject *swig_obj[1] ;
8796
8797 if (!args) SWIG_fail;
8798 swig_obj[0] = args;
8799 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8800 if (!SWIG_IsOK(res1)) {
8801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_Ok" "', expected argument " "1"" of type '" "wxIcon *""'");
8802 }
8803 arg1 = reinterpret_cast< wxIcon * >(argp1);
8804 {
8805 PyThreadState* __tstate = wxPyBeginAllowThreads();
8806 result = (bool)(arg1)->Ok();
8807 wxPyEndAllowThreads(__tstate);
8808 if (PyErr_Occurred()) SWIG_fail;
8809 }
8810 {
8811 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8812 }
8813 return resultobj;
8814 fail:
8815 return NULL;
8816 }
8817
8818
8819 SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8820 PyObject *resultobj = 0;
8821 wxIcon *arg1 = (wxIcon *) 0 ;
8822 int result;
8823 void *argp1 = 0 ;
8824 int res1 = 0 ;
8825 PyObject *swig_obj[1] ;
8826
8827 if (!args) SWIG_fail;
8828 swig_obj[0] = args;
8829 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8830 if (!SWIG_IsOK(res1)) {
8831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
8832 }
8833 arg1 = reinterpret_cast< wxIcon * >(argp1);
8834 {
8835 PyThreadState* __tstate = wxPyBeginAllowThreads();
8836 result = (int)(arg1)->GetWidth();
8837 wxPyEndAllowThreads(__tstate);
8838 if (PyErr_Occurred()) SWIG_fail;
8839 }
8840 resultobj = SWIG_From_int(static_cast< int >(result));
8841 return resultobj;
8842 fail:
8843 return NULL;
8844 }
8845
8846
8847 SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8848 PyObject *resultobj = 0;
8849 wxIcon *arg1 = (wxIcon *) 0 ;
8850 int result;
8851 void *argp1 = 0 ;
8852 int res1 = 0 ;
8853 PyObject *swig_obj[1] ;
8854
8855 if (!args) SWIG_fail;
8856 swig_obj[0] = args;
8857 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8858 if (!SWIG_IsOK(res1)) {
8859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
8860 }
8861 arg1 = reinterpret_cast< wxIcon * >(argp1);
8862 {
8863 PyThreadState* __tstate = wxPyBeginAllowThreads();
8864 result = (int)(arg1)->GetHeight();
8865 wxPyEndAllowThreads(__tstate);
8866 if (PyErr_Occurred()) SWIG_fail;
8867 }
8868 resultobj = SWIG_From_int(static_cast< int >(result));
8869 return resultobj;
8870 fail:
8871 return NULL;
8872 }
8873
8874
8875 SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8876 PyObject *resultobj = 0;
8877 wxIcon *arg1 = (wxIcon *) 0 ;
8878 int result;
8879 void *argp1 = 0 ;
8880 int res1 = 0 ;
8881 PyObject *swig_obj[1] ;
8882
8883 if (!args) SWIG_fail;
8884 swig_obj[0] = args;
8885 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8886 if (!SWIG_IsOK(res1)) {
8887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
8888 }
8889 arg1 = reinterpret_cast< wxIcon * >(argp1);
8890 {
8891 PyThreadState* __tstate = wxPyBeginAllowThreads();
8892 result = (int)(arg1)->GetDepth();
8893 wxPyEndAllowThreads(__tstate);
8894 if (PyErr_Occurred()) SWIG_fail;
8895 }
8896 resultobj = SWIG_From_int(static_cast< int >(result));
8897 return resultobj;
8898 fail:
8899 return NULL;
8900 }
8901
8902
8903 SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8904 PyObject *resultobj = 0;
8905 wxIcon *arg1 = (wxIcon *) 0 ;
8906 int arg2 ;
8907 void *argp1 = 0 ;
8908 int res1 = 0 ;
8909 int val2 ;
8910 int ecode2 = 0 ;
8911 PyObject * obj0 = 0 ;
8912 PyObject * obj1 = 0 ;
8913 char * kwnames[] = {
8914 (char *) "self",(char *) "w", NULL
8915 };
8916
8917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
8918 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8919 if (!SWIG_IsOK(res1)) {
8920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
8921 }
8922 arg1 = reinterpret_cast< wxIcon * >(argp1);
8923 ecode2 = SWIG_AsVal_int(obj1, &val2);
8924 if (!SWIG_IsOK(ecode2)) {
8925 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
8926 }
8927 arg2 = static_cast< int >(val2);
8928 {
8929 PyThreadState* __tstate = wxPyBeginAllowThreads();
8930 (arg1)->SetWidth(arg2);
8931 wxPyEndAllowThreads(__tstate);
8932 if (PyErr_Occurred()) SWIG_fail;
8933 }
8934 resultobj = SWIG_Py_Void();
8935 return resultobj;
8936 fail:
8937 return NULL;
8938 }
8939
8940
8941 SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8942 PyObject *resultobj = 0;
8943 wxIcon *arg1 = (wxIcon *) 0 ;
8944 int arg2 ;
8945 void *argp1 = 0 ;
8946 int res1 = 0 ;
8947 int val2 ;
8948 int ecode2 = 0 ;
8949 PyObject * obj0 = 0 ;
8950 PyObject * obj1 = 0 ;
8951 char * kwnames[] = {
8952 (char *) "self",(char *) "h", NULL
8953 };
8954
8955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
8956 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8957 if (!SWIG_IsOK(res1)) {
8958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
8959 }
8960 arg1 = reinterpret_cast< wxIcon * >(argp1);
8961 ecode2 = SWIG_AsVal_int(obj1, &val2);
8962 if (!SWIG_IsOK(ecode2)) {
8963 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
8964 }
8965 arg2 = static_cast< int >(val2);
8966 {
8967 PyThreadState* __tstate = wxPyBeginAllowThreads();
8968 (arg1)->SetHeight(arg2);
8969 wxPyEndAllowThreads(__tstate);
8970 if (PyErr_Occurred()) SWIG_fail;
8971 }
8972 resultobj = SWIG_Py_Void();
8973 return resultobj;
8974 fail:
8975 return NULL;
8976 }
8977
8978
8979 SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8980 PyObject *resultobj = 0;
8981 wxIcon *arg1 = (wxIcon *) 0 ;
8982 int arg2 ;
8983 void *argp1 = 0 ;
8984 int res1 = 0 ;
8985 int val2 ;
8986 int ecode2 = 0 ;
8987 PyObject * obj0 = 0 ;
8988 PyObject * obj1 = 0 ;
8989 char * kwnames[] = {
8990 (char *) "self",(char *) "d", NULL
8991 };
8992
8993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
8994 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8995 if (!SWIG_IsOK(res1)) {
8996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
8997 }
8998 arg1 = reinterpret_cast< wxIcon * >(argp1);
8999 ecode2 = SWIG_AsVal_int(obj1, &val2);
9000 if (!SWIG_IsOK(ecode2)) {
9001 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
9002 }
9003 arg2 = static_cast< int >(val2);
9004 {
9005 PyThreadState* __tstate = wxPyBeginAllowThreads();
9006 (arg1)->SetDepth(arg2);
9007 wxPyEndAllowThreads(__tstate);
9008 if (PyErr_Occurred()) SWIG_fail;
9009 }
9010 resultobj = SWIG_Py_Void();
9011 return resultobj;
9012 fail:
9013 return NULL;
9014 }
9015
9016
9017 SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9018 PyObject *resultobj = 0;
9019 wxIcon *arg1 = (wxIcon *) 0 ;
9020 wxBitmap *arg2 = 0 ;
9021 void *argp1 = 0 ;
9022 int res1 = 0 ;
9023 void *argp2 = 0 ;
9024 int res2 = 0 ;
9025 PyObject * obj0 = 0 ;
9026 PyObject * obj1 = 0 ;
9027 char * kwnames[] = {
9028 (char *) "self",(char *) "bmp", NULL
9029 };
9030
9031 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9032 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9033 if (!SWIG_IsOK(res1)) {
9034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
9035 }
9036 arg1 = reinterpret_cast< wxIcon * >(argp1);
9037 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9038 if (!SWIG_IsOK(res2)) {
9039 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9040 }
9041 if (!argp2) {
9042 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9043 }
9044 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9045 {
9046 PyThreadState* __tstate = wxPyBeginAllowThreads();
9047 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
9048 wxPyEndAllowThreads(__tstate);
9049 if (PyErr_Occurred()) SWIG_fail;
9050 }
9051 resultobj = SWIG_Py_Void();
9052 return resultobj;
9053 fail:
9054 return NULL;
9055 }
9056
9057
9058 SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9059 PyObject *obj;
9060 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9061 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
9062 return SWIG_Py_Void();
9063 }
9064
9065 SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9066 return SWIG_Python_InitShadowInstance(args);
9067 }
9068
9069 SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9070 PyObject *resultobj = 0;
9071 wxString *arg1 = (wxString *) &wxPyEmptyString ;
9072 int arg2 = (int) 0 ;
9073 wxIconLocation *result = 0 ;
9074 bool temp1 = false ;
9075 int val2 ;
9076 int ecode2 = 0 ;
9077 PyObject * obj0 = 0 ;
9078 PyObject * obj1 = 0 ;
9079 char * kwnames[] = {
9080 (char *) "filename",(char *) "num", NULL
9081 };
9082
9083 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
9084 if (obj0) {
9085 {
9086 arg1 = wxString_in_helper(obj0);
9087 if (arg1 == NULL) SWIG_fail;
9088 temp1 = true;
9089 }
9090 }
9091 if (obj1) {
9092 ecode2 = SWIG_AsVal_int(obj1, &val2);
9093 if (!SWIG_IsOK(ecode2)) {
9094 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
9095 }
9096 arg2 = static_cast< int >(val2);
9097 }
9098 {
9099 PyThreadState* __tstate = wxPyBeginAllowThreads();
9100 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
9101 wxPyEndAllowThreads(__tstate);
9102 if (PyErr_Occurred()) SWIG_fail;
9103 }
9104 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
9105 {
9106 if (temp1)
9107 delete arg1;
9108 }
9109 return resultobj;
9110 fail:
9111 {
9112 if (temp1)
9113 delete arg1;
9114 }
9115 return NULL;
9116 }
9117
9118
9119 SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9120 PyObject *resultobj = 0;
9121 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9122 void *argp1 = 0 ;
9123 int res1 = 0 ;
9124 PyObject *swig_obj[1] ;
9125
9126 if (!args) SWIG_fail;
9127 swig_obj[0] = args;
9128 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
9129 if (!SWIG_IsOK(res1)) {
9130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9131 }
9132 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9133 {
9134 PyThreadState* __tstate = wxPyBeginAllowThreads();
9135 delete arg1;
9136
9137 wxPyEndAllowThreads(__tstate);
9138 if (PyErr_Occurred()) SWIG_fail;
9139 }
9140 resultobj = SWIG_Py_Void();
9141 return resultobj;
9142 fail:
9143 return NULL;
9144 }
9145
9146
9147 SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9148 PyObject *resultobj = 0;
9149 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9150 bool result;
9151 void *argp1 = 0 ;
9152 int res1 = 0 ;
9153 PyObject *swig_obj[1] ;
9154
9155 if (!args) SWIG_fail;
9156 swig_obj[0] = args;
9157 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9158 if (!SWIG_IsOK(res1)) {
9159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9160 }
9161 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9162 {
9163 PyThreadState* __tstate = wxPyBeginAllowThreads();
9164 result = (bool)((wxIconLocation const *)arg1)->IsOk();
9165 wxPyEndAllowThreads(__tstate);
9166 if (PyErr_Occurred()) SWIG_fail;
9167 }
9168 {
9169 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9170 }
9171 return resultobj;
9172 fail:
9173 return NULL;
9174 }
9175
9176
9177 SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9178 PyObject *resultobj = 0;
9179 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9180 wxString *arg2 = 0 ;
9181 void *argp1 = 0 ;
9182 int res1 = 0 ;
9183 bool temp2 = false ;
9184 PyObject * obj0 = 0 ;
9185 PyObject * obj1 = 0 ;
9186 char * kwnames[] = {
9187 (char *) "self",(char *) "filename", NULL
9188 };
9189
9190 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
9191 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9192 if (!SWIG_IsOK(res1)) {
9193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9194 }
9195 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9196 {
9197 arg2 = wxString_in_helper(obj1);
9198 if (arg2 == NULL) SWIG_fail;
9199 temp2 = true;
9200 }
9201 {
9202 PyThreadState* __tstate = wxPyBeginAllowThreads();
9203 (arg1)->SetFileName((wxString const &)*arg2);
9204 wxPyEndAllowThreads(__tstate);
9205 if (PyErr_Occurred()) SWIG_fail;
9206 }
9207 resultobj = SWIG_Py_Void();
9208 {
9209 if (temp2)
9210 delete arg2;
9211 }
9212 return resultobj;
9213 fail:
9214 {
9215 if (temp2)
9216 delete arg2;
9217 }
9218 return NULL;
9219 }
9220
9221
9222 SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9223 PyObject *resultobj = 0;
9224 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9225 wxString *result = 0 ;
9226 void *argp1 = 0 ;
9227 int res1 = 0 ;
9228 PyObject *swig_obj[1] ;
9229
9230 if (!args) SWIG_fail;
9231 swig_obj[0] = args;
9232 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9233 if (!SWIG_IsOK(res1)) {
9234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9235 }
9236 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9237 {
9238 PyThreadState* __tstate = wxPyBeginAllowThreads();
9239 {
9240 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
9241 result = (wxString *) &_result_ref;
9242 }
9243 wxPyEndAllowThreads(__tstate);
9244 if (PyErr_Occurred()) SWIG_fail;
9245 }
9246 {
9247 #if wxUSE_UNICODE
9248 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9249 #else
9250 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9251 #endif
9252 }
9253 return resultobj;
9254 fail:
9255 return NULL;
9256 }
9257
9258
9259 SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9260 PyObject *resultobj = 0;
9261 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9262 int arg2 ;
9263 void *argp1 = 0 ;
9264 int res1 = 0 ;
9265 int val2 ;
9266 int ecode2 = 0 ;
9267 PyObject * obj0 = 0 ;
9268 PyObject * obj1 = 0 ;
9269 char * kwnames[] = {
9270 (char *) "self",(char *) "num", NULL
9271 };
9272
9273 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
9274 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9275 if (!SWIG_IsOK(res1)) {
9276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9277 }
9278 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9279 ecode2 = SWIG_AsVal_int(obj1, &val2);
9280 if (!SWIG_IsOK(ecode2)) {
9281 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
9282 }
9283 arg2 = static_cast< int >(val2);
9284 {
9285 PyThreadState* __tstate = wxPyBeginAllowThreads();
9286 wxIconLocation_SetIndex(arg1,arg2);
9287 wxPyEndAllowThreads(__tstate);
9288 if (PyErr_Occurred()) SWIG_fail;
9289 }
9290 resultobj = SWIG_Py_Void();
9291 return resultobj;
9292 fail:
9293 return NULL;
9294 }
9295
9296
9297 SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9298 PyObject *resultobj = 0;
9299 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9300 int result;
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_wxIconLocation, 0 | 0 );
9308 if (!SWIG_IsOK(res1)) {
9309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9310 }
9311 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9312 {
9313 PyThreadState* __tstate = wxPyBeginAllowThreads();
9314 result = (int)wxIconLocation_GetIndex(arg1);
9315 wxPyEndAllowThreads(__tstate);
9316 if (PyErr_Occurred()) SWIG_fail;
9317 }
9318 resultobj = SWIG_From_int(static_cast< int >(result));
9319 return resultobj;
9320 fail:
9321 return NULL;
9322 }
9323
9324
9325 SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9326 PyObject *obj;
9327 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9328 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
9329 return SWIG_Py_Void();
9330 }
9331
9332 SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9333 return SWIG_Python_InitShadowInstance(args);
9334 }
9335
9336 SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9337 PyObject *resultobj = 0;
9338 wxIconBundle *result = 0 ;
9339
9340 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
9341 {
9342 PyThreadState* __tstate = wxPyBeginAllowThreads();
9343 result = (wxIconBundle *)new wxIconBundle();
9344 wxPyEndAllowThreads(__tstate);
9345 if (PyErr_Occurred()) SWIG_fail;
9346 }
9347 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
9348 return resultobj;
9349 fail:
9350 return NULL;
9351 }
9352
9353
9354 SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9355 PyObject *resultobj = 0;
9356 wxString *arg1 = 0 ;
9357 long arg2 ;
9358 wxIconBundle *result = 0 ;
9359 bool temp1 = false ;
9360 long val2 ;
9361 int ecode2 = 0 ;
9362 PyObject * obj0 = 0 ;
9363 PyObject * obj1 = 0 ;
9364 char * kwnames[] = {
9365 (char *) "file",(char *) "type", NULL
9366 };
9367
9368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
9369 {
9370 arg1 = wxString_in_helper(obj0);
9371 if (arg1 == NULL) SWIG_fail;
9372 temp1 = true;
9373 }
9374 ecode2 = SWIG_AsVal_long(obj1, &val2);
9375 if (!SWIG_IsOK(ecode2)) {
9376 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
9377 }
9378 arg2 = static_cast< long >(val2);
9379 {
9380 PyThreadState* __tstate = wxPyBeginAllowThreads();
9381 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
9382 wxPyEndAllowThreads(__tstate);
9383 if (PyErr_Occurred()) SWIG_fail;
9384 }
9385 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9386 {
9387 if (temp1)
9388 delete arg1;
9389 }
9390 return resultobj;
9391 fail:
9392 {
9393 if (temp1)
9394 delete arg1;
9395 }
9396 return NULL;
9397 }
9398
9399
9400 SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9401 PyObject *resultobj = 0;
9402 wxIcon *arg1 = 0 ;
9403 wxIconBundle *result = 0 ;
9404 void *argp1 = 0 ;
9405 int res1 = 0 ;
9406 PyObject * obj0 = 0 ;
9407 char * kwnames[] = {
9408 (char *) "icon", NULL
9409 };
9410
9411 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
9412 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
9413 if (!SWIG_IsOK(res1)) {
9414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9415 }
9416 if (!argp1) {
9417 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9418 }
9419 arg1 = reinterpret_cast< wxIcon * >(argp1);
9420 {
9421 PyThreadState* __tstate = wxPyBeginAllowThreads();
9422 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
9423 wxPyEndAllowThreads(__tstate);
9424 if (PyErr_Occurred()) SWIG_fail;
9425 }
9426 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9427 return resultobj;
9428 fail:
9429 return NULL;
9430 }
9431
9432
9433 SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9434 PyObject *resultobj = 0;
9435 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9436 void *argp1 = 0 ;
9437 int res1 = 0 ;
9438 PyObject *swig_obj[1] ;
9439
9440 if (!args) SWIG_fail;
9441 swig_obj[0] = args;
9442 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
9443 if (!SWIG_IsOK(res1)) {
9444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9445 }
9446 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9447 {
9448 PyThreadState* __tstate = wxPyBeginAllowThreads();
9449 delete arg1;
9450
9451 wxPyEndAllowThreads(__tstate);
9452 if (PyErr_Occurred()) SWIG_fail;
9453 }
9454 resultobj = SWIG_Py_Void();
9455 return resultobj;
9456 fail:
9457 return NULL;
9458 }
9459
9460
9461 SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9462 PyObject *resultobj = 0;
9463 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9464 wxIcon *arg2 = 0 ;
9465 void *argp1 = 0 ;
9466 int res1 = 0 ;
9467 void *argp2 = 0 ;
9468 int res2 = 0 ;
9469 PyObject * obj0 = 0 ;
9470 PyObject * obj1 = 0 ;
9471 char * kwnames[] = {
9472 (char *) "self",(char *) "icon", NULL
9473 };
9474
9475 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9476 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9477 if (!SWIG_IsOK(res1)) {
9478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9479 }
9480 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9481 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
9482 if (!SWIG_IsOK(res2)) {
9483 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9484 }
9485 if (!argp2) {
9486 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9487 }
9488 arg2 = reinterpret_cast< wxIcon * >(argp2);
9489 {
9490 PyThreadState* __tstate = wxPyBeginAllowThreads();
9491 (arg1)->AddIcon((wxIcon const &)*arg2);
9492 wxPyEndAllowThreads(__tstate);
9493 if (PyErr_Occurred()) SWIG_fail;
9494 }
9495 resultobj = SWIG_Py_Void();
9496 return resultobj;
9497 fail:
9498 return NULL;
9499 }
9500
9501
9502 SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9503 PyObject *resultobj = 0;
9504 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9505 wxString *arg2 = 0 ;
9506 long arg3 ;
9507 void *argp1 = 0 ;
9508 int res1 = 0 ;
9509 bool temp2 = false ;
9510 long val3 ;
9511 int ecode3 = 0 ;
9512 PyObject * obj0 = 0 ;
9513 PyObject * obj1 = 0 ;
9514 PyObject * obj2 = 0 ;
9515 char * kwnames[] = {
9516 (char *) "self",(char *) "file",(char *) "type", NULL
9517 };
9518
9519 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9520 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9521 if (!SWIG_IsOK(res1)) {
9522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9523 }
9524 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9525 {
9526 arg2 = wxString_in_helper(obj1);
9527 if (arg2 == NULL) SWIG_fail;
9528 temp2 = true;
9529 }
9530 ecode3 = SWIG_AsVal_long(obj2, &val3);
9531 if (!SWIG_IsOK(ecode3)) {
9532 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
9533 }
9534 arg3 = static_cast< long >(val3);
9535 {
9536 PyThreadState* __tstate = wxPyBeginAllowThreads();
9537 (arg1)->AddIcon((wxString const &)*arg2,arg3);
9538 wxPyEndAllowThreads(__tstate);
9539 if (PyErr_Occurred()) SWIG_fail;
9540 }
9541 resultobj = SWIG_Py_Void();
9542 {
9543 if (temp2)
9544 delete arg2;
9545 }
9546 return resultobj;
9547 fail:
9548 {
9549 if (temp2)
9550 delete arg2;
9551 }
9552 return NULL;
9553 }
9554
9555
9556 SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9557 PyObject *resultobj = 0;
9558 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9559 wxSize *arg2 = 0 ;
9560 wxIcon *result = 0 ;
9561 void *argp1 = 0 ;
9562 int res1 = 0 ;
9563 wxSize temp2 ;
9564 PyObject * obj0 = 0 ;
9565 PyObject * obj1 = 0 ;
9566 char * kwnames[] = {
9567 (char *) "self",(char *) "size", NULL
9568 };
9569
9570 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9571 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9572 if (!SWIG_IsOK(res1)) {
9573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
9574 }
9575 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9576 {
9577 arg2 = &temp2;
9578 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
9579 }
9580 {
9581 PyThreadState* __tstate = wxPyBeginAllowThreads();
9582 {
9583 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
9584 result = (wxIcon *) &_result_ref;
9585 }
9586 wxPyEndAllowThreads(__tstate);
9587 if (PyErr_Occurred()) SWIG_fail;
9588 }
9589 {
9590 wxIcon* resultptr = new wxIcon(*result);
9591 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
9592 }
9593 return resultobj;
9594 fail:
9595 return NULL;
9596 }
9597
9598
9599 SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9600 PyObject *obj;
9601 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9602 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
9603 return SWIG_Py_Void();
9604 }
9605
9606 SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9607 return SWIG_Python_InitShadowInstance(args);
9608 }
9609
9610 SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9611 PyObject *resultobj = 0;
9612 wxString *arg1 = 0 ;
9613 long arg2 ;
9614 int arg3 = (int) 0 ;
9615 int arg4 = (int) 0 ;
9616 wxCursor *result = 0 ;
9617 bool temp1 = false ;
9618 long val2 ;
9619 int ecode2 = 0 ;
9620 int val3 ;
9621 int ecode3 = 0 ;
9622 int val4 ;
9623 int ecode4 = 0 ;
9624 PyObject * obj0 = 0 ;
9625 PyObject * obj1 = 0 ;
9626 PyObject * obj2 = 0 ;
9627 PyObject * obj3 = 0 ;
9628 char * kwnames[] = {
9629 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
9630 };
9631
9632 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9633 {
9634 arg1 = wxString_in_helper(obj0);
9635 if (arg1 == NULL) SWIG_fail;
9636 temp1 = true;
9637 }
9638 ecode2 = SWIG_AsVal_long(obj1, &val2);
9639 if (!SWIG_IsOK(ecode2)) {
9640 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
9641 }
9642 arg2 = static_cast< long >(val2);
9643 if (obj2) {
9644 ecode3 = SWIG_AsVal_int(obj2, &val3);
9645 if (!SWIG_IsOK(ecode3)) {
9646 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
9647 }
9648 arg3 = static_cast< int >(val3);
9649 }
9650 if (obj3) {
9651 ecode4 = SWIG_AsVal_int(obj3, &val4);
9652 if (!SWIG_IsOK(ecode4)) {
9653 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
9654 }
9655 arg4 = static_cast< int >(val4);
9656 }
9657 {
9658 if (!wxPyCheckForApp()) SWIG_fail;
9659 PyThreadState* __tstate = wxPyBeginAllowThreads();
9660 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
9661 wxPyEndAllowThreads(__tstate);
9662 if (PyErr_Occurred()) SWIG_fail;
9663 }
9664 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
9665 {
9666 if (temp1)
9667 delete arg1;
9668 }
9669 return resultobj;
9670 fail:
9671 {
9672 if (temp1)
9673 delete arg1;
9674 }
9675 return NULL;
9676 }
9677
9678
9679 SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9680 PyObject *resultobj = 0;
9681 wxCursor *arg1 = (wxCursor *) 0 ;
9682 void *argp1 = 0 ;
9683 int res1 = 0 ;
9684 PyObject *swig_obj[1] ;
9685
9686 if (!args) SWIG_fail;
9687 swig_obj[0] = args;
9688 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
9689 if (!SWIG_IsOK(res1)) {
9690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
9691 }
9692 arg1 = reinterpret_cast< wxCursor * >(argp1);
9693 {
9694 PyThreadState* __tstate = wxPyBeginAllowThreads();
9695 delete arg1;
9696
9697 wxPyEndAllowThreads(__tstate);
9698 if (PyErr_Occurred()) SWIG_fail;
9699 }
9700 resultobj = SWIG_Py_Void();
9701 return resultobj;
9702 fail:
9703 return NULL;
9704 }
9705
9706
9707 SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9708 PyObject *resultobj = 0;
9709 int arg1 ;
9710 wxCursor *result = 0 ;
9711 int val1 ;
9712 int ecode1 = 0 ;
9713 PyObject * obj0 = 0 ;
9714 char * kwnames[] = {
9715 (char *) "id", NULL
9716 };
9717
9718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
9719 ecode1 = SWIG_AsVal_int(obj0, &val1);
9720 if (!SWIG_IsOK(ecode1)) {
9721 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
9722 }
9723 arg1 = static_cast< int >(val1);
9724 {
9725 if (!wxPyCheckForApp()) SWIG_fail;
9726 PyThreadState* __tstate = wxPyBeginAllowThreads();
9727 result = (wxCursor *)new wxCursor(arg1);
9728 wxPyEndAllowThreads(__tstate);
9729 if (PyErr_Occurred()) SWIG_fail;
9730 }
9731 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
9732 return resultobj;
9733 fail:
9734 return NULL;
9735 }
9736
9737
9738 SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9739 PyObject *resultobj = 0;
9740 wxImage *arg1 = 0 ;
9741 wxCursor *result = 0 ;
9742 void *argp1 = 0 ;
9743 int res1 = 0 ;
9744 PyObject * obj0 = 0 ;
9745 char * kwnames[] = {
9746 (char *) "image", NULL
9747 };
9748
9749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
9750 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
9751 if (!SWIG_IsOK(res1)) {
9752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
9753 }
9754 if (!argp1) {
9755 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
9756 }
9757 arg1 = reinterpret_cast< wxImage * >(argp1);
9758 {
9759 if (!wxPyCheckForApp()) SWIG_fail;
9760 PyThreadState* __tstate = wxPyBeginAllowThreads();
9761 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
9762 wxPyEndAllowThreads(__tstate);
9763 if (PyErr_Occurred()) SWIG_fail;
9764 }
9765 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
9766 return resultobj;
9767 fail:
9768 return NULL;
9769 }
9770
9771
9772 SWIGINTERN PyObject *_wrap_Cursor_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9773 PyObject *resultobj = 0;
9774 wxCursor *arg1 = (wxCursor *) 0 ;
9775 bool result;
9776 void *argp1 = 0 ;
9777 int res1 = 0 ;
9778 PyObject *swig_obj[1] ;
9779
9780 if (!args) SWIG_fail;
9781 swig_obj[0] = args;
9782 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
9783 if (!SWIG_IsOK(res1)) {
9784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_Ok" "', expected argument " "1"" of type '" "wxCursor *""'");
9785 }
9786 arg1 = reinterpret_cast< wxCursor * >(argp1);
9787 {
9788 PyThreadState* __tstate = wxPyBeginAllowThreads();
9789 result = (bool)(arg1)->Ok();
9790 wxPyEndAllowThreads(__tstate);
9791 if (PyErr_Occurred()) SWIG_fail;
9792 }
9793 {
9794 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9795 }
9796 return resultobj;
9797 fail:
9798 return NULL;
9799 }
9800
9801
9802 SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9803 PyObject *obj;
9804 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9805 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
9806 return SWIG_Py_Void();
9807 }
9808
9809 SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9810 return SWIG_Python_InitShadowInstance(args);
9811 }
9812
9813 SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9814 PyObject *resultobj = 0;
9815 int arg1 = (int) 0 ;
9816 int arg2 = (int) 0 ;
9817 int arg3 = (int) 0 ;
9818 int arg4 = (int) 0 ;
9819 wxRegion *result = 0 ;
9820 int val1 ;
9821 int ecode1 = 0 ;
9822 int val2 ;
9823 int ecode2 = 0 ;
9824 int val3 ;
9825 int ecode3 = 0 ;
9826 int val4 ;
9827 int ecode4 = 0 ;
9828 PyObject * obj0 = 0 ;
9829 PyObject * obj1 = 0 ;
9830 PyObject * obj2 = 0 ;
9831 PyObject * obj3 = 0 ;
9832 char * kwnames[] = {
9833 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
9834 };
9835
9836 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9837 if (obj0) {
9838 ecode1 = SWIG_AsVal_int(obj0, &val1);
9839 if (!SWIG_IsOK(ecode1)) {
9840 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
9841 }
9842 arg1 = static_cast< int >(val1);
9843 }
9844 if (obj1) {
9845 ecode2 = SWIG_AsVal_int(obj1, &val2);
9846 if (!SWIG_IsOK(ecode2)) {
9847 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
9848 }
9849 arg2 = static_cast< int >(val2);
9850 }
9851 if (obj2) {
9852 ecode3 = SWIG_AsVal_int(obj2, &val3);
9853 if (!SWIG_IsOK(ecode3)) {
9854 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
9855 }
9856 arg3 = static_cast< int >(val3);
9857 }
9858 if (obj3) {
9859 ecode4 = SWIG_AsVal_int(obj3, &val4);
9860 if (!SWIG_IsOK(ecode4)) {
9861 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
9862 }
9863 arg4 = static_cast< int >(val4);
9864 }
9865 {
9866 if (!wxPyCheckForApp()) SWIG_fail;
9867 PyThreadState* __tstate = wxPyBeginAllowThreads();
9868 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
9869 wxPyEndAllowThreads(__tstate);
9870 if (PyErr_Occurred()) SWIG_fail;
9871 }
9872 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
9873 return resultobj;
9874 fail:
9875 return NULL;
9876 }
9877
9878
9879 SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9880 PyObject *resultobj = 0;
9881 wxBitmap *arg1 = 0 ;
9882 wxRegion *result = 0 ;
9883 void *argp1 = 0 ;
9884 int res1 = 0 ;
9885 PyObject * obj0 = 0 ;
9886 char * kwnames[] = {
9887 (char *) "bmp", NULL
9888 };
9889
9890 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
9891 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9892 if (!SWIG_IsOK(res1)) {
9893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9894 }
9895 if (!argp1) {
9896 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9897 }
9898 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9899 {
9900 if (!wxPyCheckForApp()) SWIG_fail;
9901 PyThreadState* __tstate = wxPyBeginAllowThreads();
9902 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
9903 wxPyEndAllowThreads(__tstate);
9904 if (PyErr_Occurred()) SWIG_fail;
9905 }
9906 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
9907 return resultobj;
9908 fail:
9909 return NULL;
9910 }
9911
9912
9913 SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9914 PyObject *resultobj = 0;
9915 wxBitmap *arg1 = 0 ;
9916 wxColour *arg2 = 0 ;
9917 int arg3 = (int) 0 ;
9918 wxRegion *result = 0 ;
9919 void *argp1 = 0 ;
9920 int res1 = 0 ;
9921 wxColour temp2 ;
9922 int val3 ;
9923 int ecode3 = 0 ;
9924 PyObject * obj0 = 0 ;
9925 PyObject * obj1 = 0 ;
9926 PyObject * obj2 = 0 ;
9927 char * kwnames[] = {
9928 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
9929 };
9930
9931 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9932 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9933 if (!SWIG_IsOK(res1)) {
9934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9935 }
9936 if (!argp1) {
9937 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9938 }
9939 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9940 {
9941 arg2 = &temp2;
9942 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
9943 }
9944 if (obj2) {
9945 ecode3 = SWIG_AsVal_int(obj2, &val3);
9946 if (!SWIG_IsOK(ecode3)) {
9947 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
9948 }
9949 arg3 = static_cast< int >(val3);
9950 }
9951 {
9952 if (!wxPyCheckForApp()) SWIG_fail;
9953 PyThreadState* __tstate = wxPyBeginAllowThreads();
9954 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
9955 wxPyEndAllowThreads(__tstate);
9956 if (PyErr_Occurred()) SWIG_fail;
9957 }
9958 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
9959 return resultobj;
9960 fail:
9961 return NULL;
9962 }
9963
9964
9965 SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9966 PyObject *resultobj = 0;
9967 int arg1 ;
9968 wxPoint *arg2 = (wxPoint *) 0 ;
9969 int arg3 = (int) wxWINDING_RULE ;
9970 wxRegion *result = 0 ;
9971 int val3 ;
9972 int ecode3 = 0 ;
9973 PyObject * obj0 = 0 ;
9974 PyObject * obj1 = 0 ;
9975 char * kwnames[] = {
9976 (char *) "points",(char *) "fillStyle", NULL
9977 };
9978
9979 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
9980 {
9981 arg2 = wxPoint_LIST_helper(obj0, &arg1);
9982 if (arg2 == NULL) SWIG_fail;
9983 }
9984 if (obj1) {
9985 ecode3 = SWIG_AsVal_int(obj1, &val3);
9986 if (!SWIG_IsOK(ecode3)) {
9987 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
9988 }
9989 arg3 = static_cast< int >(val3);
9990 }
9991 {
9992 if (!wxPyCheckForApp()) SWIG_fail;
9993 PyThreadState* __tstate = wxPyBeginAllowThreads();
9994 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
9995 wxPyEndAllowThreads(__tstate);
9996 if (PyErr_Occurred()) SWIG_fail;
9997 }
9998 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
9999 {
10000 if (arg2) delete [] arg2;
10001 }
10002 return resultobj;
10003 fail:
10004 {
10005 if (arg2) delete [] arg2;
10006 }
10007 return NULL;
10008 }
10009
10010
10011 SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10012 PyObject *resultobj = 0;
10013 wxRegion *arg1 = (wxRegion *) 0 ;
10014 void *argp1 = 0 ;
10015 int res1 = 0 ;
10016 PyObject *swig_obj[1] ;
10017
10018 if (!args) SWIG_fail;
10019 swig_obj[0] = args;
10020 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
10021 if (!SWIG_IsOK(res1)) {
10022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
10023 }
10024 arg1 = reinterpret_cast< wxRegion * >(argp1);
10025 {
10026 PyThreadState* __tstate = wxPyBeginAllowThreads();
10027 delete arg1;
10028
10029 wxPyEndAllowThreads(__tstate);
10030 if (PyErr_Occurred()) SWIG_fail;
10031 }
10032 resultobj = SWIG_Py_Void();
10033 return resultobj;
10034 fail:
10035 return NULL;
10036 }
10037
10038
10039 SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10040 PyObject *resultobj = 0;
10041 wxRegion *arg1 = (wxRegion *) 0 ;
10042 void *argp1 = 0 ;
10043 int res1 = 0 ;
10044 PyObject *swig_obj[1] ;
10045
10046 if (!args) SWIG_fail;
10047 swig_obj[0] = args;
10048 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10049 if (!SWIG_IsOK(res1)) {
10050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
10051 }
10052 arg1 = reinterpret_cast< wxRegion * >(argp1);
10053 {
10054 PyThreadState* __tstate = wxPyBeginAllowThreads();
10055 (arg1)->Clear();
10056 wxPyEndAllowThreads(__tstate);
10057 if (PyErr_Occurred()) SWIG_fail;
10058 }
10059 resultobj = SWIG_Py_Void();
10060 return resultobj;
10061 fail:
10062 return NULL;
10063 }
10064
10065
10066 SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10067 PyObject *resultobj = 0;
10068 wxRegion *arg1 = (wxRegion *) 0 ;
10069 int arg2 ;
10070 int arg3 ;
10071 bool result;
10072 void *argp1 = 0 ;
10073 int res1 = 0 ;
10074 int val2 ;
10075 int ecode2 = 0 ;
10076 int val3 ;
10077 int ecode3 = 0 ;
10078 PyObject * obj0 = 0 ;
10079 PyObject * obj1 = 0 ;
10080 PyObject * obj2 = 0 ;
10081 char * kwnames[] = {
10082 (char *) "self",(char *) "x",(char *) "y", NULL
10083 };
10084
10085 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10086 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10087 if (!SWIG_IsOK(res1)) {
10088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
10089 }
10090 arg1 = reinterpret_cast< wxRegion * >(argp1);
10091 ecode2 = SWIG_AsVal_int(obj1, &val2);
10092 if (!SWIG_IsOK(ecode2)) {
10093 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
10094 }
10095 arg2 = static_cast< int >(val2);
10096 ecode3 = SWIG_AsVal_int(obj2, &val3);
10097 if (!SWIG_IsOK(ecode3)) {
10098 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
10099 }
10100 arg3 = static_cast< int >(val3);
10101 {
10102 PyThreadState* __tstate = wxPyBeginAllowThreads();
10103 result = (bool)(arg1)->Offset(arg2,arg3);
10104 wxPyEndAllowThreads(__tstate);
10105 if (PyErr_Occurred()) SWIG_fail;
10106 }
10107 {
10108 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10109 }
10110 return resultobj;
10111 fail:
10112 return NULL;
10113 }
10114
10115
10116 SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10117 PyObject *resultobj = 0;
10118 wxRegion *arg1 = (wxRegion *) 0 ;
10119 int arg2 ;
10120 int arg3 ;
10121 wxRegionContain result;
10122 void *argp1 = 0 ;
10123 int res1 = 0 ;
10124 int val2 ;
10125 int ecode2 = 0 ;
10126 int val3 ;
10127 int ecode3 = 0 ;
10128 PyObject * obj0 = 0 ;
10129 PyObject * obj1 = 0 ;
10130 PyObject * obj2 = 0 ;
10131 char * kwnames[] = {
10132 (char *) "self",(char *) "x",(char *) "y", NULL
10133 };
10134
10135 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10136 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10137 if (!SWIG_IsOK(res1)) {
10138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
10139 }
10140 arg1 = reinterpret_cast< wxRegion * >(argp1);
10141 ecode2 = SWIG_AsVal_int(obj1, &val2);
10142 if (!SWIG_IsOK(ecode2)) {
10143 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
10144 }
10145 arg2 = static_cast< int >(val2);
10146 ecode3 = SWIG_AsVal_int(obj2, &val3);
10147 if (!SWIG_IsOK(ecode3)) {
10148 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
10149 }
10150 arg3 = static_cast< int >(val3);
10151 {
10152 PyThreadState* __tstate = wxPyBeginAllowThreads();
10153 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
10154 wxPyEndAllowThreads(__tstate);
10155 if (PyErr_Occurred()) SWIG_fail;
10156 }
10157 resultobj = SWIG_From_int(static_cast< int >(result));
10158 return resultobj;
10159 fail:
10160 return NULL;
10161 }
10162
10163
10164 SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10165 PyObject *resultobj = 0;
10166 wxRegion *arg1 = (wxRegion *) 0 ;
10167 wxPoint *arg2 = 0 ;
10168 wxRegionContain result;
10169 void *argp1 = 0 ;
10170 int res1 = 0 ;
10171 wxPoint temp2 ;
10172 PyObject * obj0 = 0 ;
10173 PyObject * obj1 = 0 ;
10174 char * kwnames[] = {
10175 (char *) "self",(char *) "pt", NULL
10176 };
10177
10178 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
10179 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10180 if (!SWIG_IsOK(res1)) {
10181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
10182 }
10183 arg1 = reinterpret_cast< wxRegion * >(argp1);
10184 {
10185 arg2 = &temp2;
10186 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10187 }
10188 {
10189 PyThreadState* __tstate = wxPyBeginAllowThreads();
10190 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
10191 wxPyEndAllowThreads(__tstate);
10192 if (PyErr_Occurred()) SWIG_fail;
10193 }
10194 resultobj = SWIG_From_int(static_cast< int >(result));
10195 return resultobj;
10196 fail:
10197 return NULL;
10198 }
10199
10200
10201 SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10202 PyObject *resultobj = 0;
10203 wxRegion *arg1 = (wxRegion *) 0 ;
10204 wxRect *arg2 = 0 ;
10205 wxRegionContain result;
10206 void *argp1 = 0 ;
10207 int res1 = 0 ;
10208 wxRect temp2 ;
10209 PyObject * obj0 = 0 ;
10210 PyObject * obj1 = 0 ;
10211 char * kwnames[] = {
10212 (char *) "self",(char *) "rect", NULL
10213 };
10214
10215 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
10216 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10217 if (!SWIG_IsOK(res1)) {
10218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10219 }
10220 arg1 = reinterpret_cast< wxRegion * >(argp1);
10221 {
10222 arg2 = &temp2;
10223 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10224 }
10225 {
10226 PyThreadState* __tstate = wxPyBeginAllowThreads();
10227 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
10228 wxPyEndAllowThreads(__tstate);
10229 if (PyErr_Occurred()) SWIG_fail;
10230 }
10231 resultobj = SWIG_From_int(static_cast< int >(result));
10232 return resultobj;
10233 fail:
10234 return NULL;
10235 }
10236
10237
10238 SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10239 PyObject *resultobj = 0;
10240 wxRegion *arg1 = (wxRegion *) 0 ;
10241 int arg2 ;
10242 int arg3 ;
10243 int arg4 ;
10244 int arg5 ;
10245 wxRegionContain result;
10246 void *argp1 = 0 ;
10247 int res1 = 0 ;
10248 int val2 ;
10249 int ecode2 = 0 ;
10250 int val3 ;
10251 int ecode3 = 0 ;
10252 int val4 ;
10253 int ecode4 = 0 ;
10254 int val5 ;
10255 int ecode5 = 0 ;
10256 PyObject * obj0 = 0 ;
10257 PyObject * obj1 = 0 ;
10258 PyObject * obj2 = 0 ;
10259 PyObject * obj3 = 0 ;
10260 PyObject * obj4 = 0 ;
10261 char * kwnames[] = {
10262 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
10263 };
10264
10265 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10266 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10267 if (!SWIG_IsOK(res1)) {
10268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
10269 }
10270 arg1 = reinterpret_cast< wxRegion * >(argp1);
10271 ecode2 = SWIG_AsVal_int(obj1, &val2);
10272 if (!SWIG_IsOK(ecode2)) {
10273 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
10274 }
10275 arg2 = static_cast< int >(val2);
10276 ecode3 = SWIG_AsVal_int(obj2, &val3);
10277 if (!SWIG_IsOK(ecode3)) {
10278 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
10279 }
10280 arg3 = static_cast< int >(val3);
10281 ecode4 = SWIG_AsVal_int(obj3, &val4);
10282 if (!SWIG_IsOK(ecode4)) {
10283 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
10284 }
10285 arg4 = static_cast< int >(val4);
10286 ecode5 = SWIG_AsVal_int(obj4, &val5);
10287 if (!SWIG_IsOK(ecode5)) {
10288 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
10289 }
10290 arg5 = static_cast< int >(val5);
10291 {
10292 PyThreadState* __tstate = wxPyBeginAllowThreads();
10293 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
10294 wxPyEndAllowThreads(__tstate);
10295 if (PyErr_Occurred()) SWIG_fail;
10296 }
10297 resultobj = SWIG_From_int(static_cast< int >(result));
10298 return resultobj;
10299 fail:
10300 return NULL;
10301 }
10302
10303
10304 SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10305 PyObject *resultobj = 0;
10306 wxRegion *arg1 = (wxRegion *) 0 ;
10307 wxRect result;
10308 void *argp1 = 0 ;
10309 int res1 = 0 ;
10310 PyObject *swig_obj[1] ;
10311
10312 if (!args) SWIG_fail;
10313 swig_obj[0] = args;
10314 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10315 if (!SWIG_IsOK(res1)) {
10316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
10317 }
10318 arg1 = reinterpret_cast< wxRegion * >(argp1);
10319 {
10320 PyThreadState* __tstate = wxPyBeginAllowThreads();
10321 result = (arg1)->GetBox();
10322 wxPyEndAllowThreads(__tstate);
10323 if (PyErr_Occurred()) SWIG_fail;
10324 }
10325 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
10326 return resultobj;
10327 fail:
10328 return NULL;
10329 }
10330
10331
10332 SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10333 PyObject *resultobj = 0;
10334 wxRegion *arg1 = (wxRegion *) 0 ;
10335 int arg2 ;
10336 int arg3 ;
10337 int arg4 ;
10338 int arg5 ;
10339 bool result;
10340 void *argp1 = 0 ;
10341 int res1 = 0 ;
10342 int val2 ;
10343 int ecode2 = 0 ;
10344 int val3 ;
10345 int ecode3 = 0 ;
10346 int val4 ;
10347 int ecode4 = 0 ;
10348 int val5 ;
10349 int ecode5 = 0 ;
10350 PyObject * obj0 = 0 ;
10351 PyObject * obj1 = 0 ;
10352 PyObject * obj2 = 0 ;
10353 PyObject * obj3 = 0 ;
10354 PyObject * obj4 = 0 ;
10355 char * kwnames[] = {
10356 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10357 };
10358
10359 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10360 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10361 if (!SWIG_IsOK(res1)) {
10362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
10363 }
10364 arg1 = reinterpret_cast< wxRegion * >(argp1);
10365 ecode2 = SWIG_AsVal_int(obj1, &val2);
10366 if (!SWIG_IsOK(ecode2)) {
10367 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
10368 }
10369 arg2 = static_cast< int >(val2);
10370 ecode3 = SWIG_AsVal_int(obj2, &val3);
10371 if (!SWIG_IsOK(ecode3)) {
10372 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
10373 }
10374 arg3 = static_cast< int >(val3);
10375 ecode4 = SWIG_AsVal_int(obj3, &val4);
10376 if (!SWIG_IsOK(ecode4)) {
10377 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
10378 }
10379 arg4 = static_cast< int >(val4);
10380 ecode5 = SWIG_AsVal_int(obj4, &val5);
10381 if (!SWIG_IsOK(ecode5)) {
10382 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
10383 }
10384 arg5 = static_cast< int >(val5);
10385 {
10386 PyThreadState* __tstate = wxPyBeginAllowThreads();
10387 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
10388 wxPyEndAllowThreads(__tstate);
10389 if (PyErr_Occurred()) SWIG_fail;
10390 }
10391 {
10392 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10393 }
10394 return resultobj;
10395 fail:
10396 return NULL;
10397 }
10398
10399
10400 SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10401 PyObject *resultobj = 0;
10402 wxRegion *arg1 = (wxRegion *) 0 ;
10403 wxRect *arg2 = 0 ;
10404 bool result;
10405 void *argp1 = 0 ;
10406 int res1 = 0 ;
10407 wxRect temp2 ;
10408 PyObject * obj0 = 0 ;
10409 PyObject * obj1 = 0 ;
10410 char * kwnames[] = {
10411 (char *) "self",(char *) "rect", NULL
10412 };
10413
10414 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
10415 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10416 if (!SWIG_IsOK(res1)) {
10417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10418 }
10419 arg1 = reinterpret_cast< wxRegion * >(argp1);
10420 {
10421 arg2 = &temp2;
10422 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10423 }
10424 {
10425 PyThreadState* __tstate = wxPyBeginAllowThreads();
10426 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
10427 wxPyEndAllowThreads(__tstate);
10428 if (PyErr_Occurred()) SWIG_fail;
10429 }
10430 {
10431 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10432 }
10433 return resultobj;
10434 fail:
10435 return NULL;
10436 }
10437
10438
10439 SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10440 PyObject *resultobj = 0;
10441 wxRegion *arg1 = (wxRegion *) 0 ;
10442 wxRegion *arg2 = 0 ;
10443 bool result;
10444 void *argp1 = 0 ;
10445 int res1 = 0 ;
10446 void *argp2 = 0 ;
10447 int res2 = 0 ;
10448 PyObject * obj0 = 0 ;
10449 PyObject * obj1 = 0 ;
10450 char * kwnames[] = {
10451 (char *) "self",(char *) "region", NULL
10452 };
10453
10454 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10455 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10456 if (!SWIG_IsOK(res1)) {
10457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10458 }
10459 arg1 = reinterpret_cast< wxRegion * >(argp1);
10460 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10461 if (!SWIG_IsOK(res2)) {
10462 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10463 }
10464 if (!argp2) {
10465 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10466 }
10467 arg2 = reinterpret_cast< wxRegion * >(argp2);
10468 {
10469 PyThreadState* __tstate = wxPyBeginAllowThreads();
10470 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
10471 wxPyEndAllowThreads(__tstate);
10472 if (PyErr_Occurred()) SWIG_fail;
10473 }
10474 {
10475 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10476 }
10477 return resultobj;
10478 fail:
10479 return NULL;
10480 }
10481
10482
10483 SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10484 PyObject *resultobj = 0;
10485 wxRegion *arg1 = (wxRegion *) 0 ;
10486 bool result;
10487 void *argp1 = 0 ;
10488 int res1 = 0 ;
10489 PyObject *swig_obj[1] ;
10490
10491 if (!args) SWIG_fail;
10492 swig_obj[0] = args;
10493 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10494 if (!SWIG_IsOK(res1)) {
10495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
10496 }
10497 arg1 = reinterpret_cast< wxRegion * >(argp1);
10498 {
10499 PyThreadState* __tstate = wxPyBeginAllowThreads();
10500 result = (bool)(arg1)->IsEmpty();
10501 wxPyEndAllowThreads(__tstate);
10502 if (PyErr_Occurred()) SWIG_fail;
10503 }
10504 {
10505 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10506 }
10507 return resultobj;
10508 fail:
10509 return NULL;
10510 }
10511
10512
10513 SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10514 PyObject *resultobj = 0;
10515 wxRegion *arg1 = (wxRegion *) 0 ;
10516 int arg2 ;
10517 int arg3 ;
10518 int arg4 ;
10519 int arg5 ;
10520 bool result;
10521 void *argp1 = 0 ;
10522 int res1 = 0 ;
10523 int val2 ;
10524 int ecode2 = 0 ;
10525 int val3 ;
10526 int ecode3 = 0 ;
10527 int val4 ;
10528 int ecode4 = 0 ;
10529 int val5 ;
10530 int ecode5 = 0 ;
10531 PyObject * obj0 = 0 ;
10532 PyObject * obj1 = 0 ;
10533 PyObject * obj2 = 0 ;
10534 PyObject * obj3 = 0 ;
10535 PyObject * obj4 = 0 ;
10536 char * kwnames[] = {
10537 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10538 };
10539
10540 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10541 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10542 if (!SWIG_IsOK(res1)) {
10543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
10544 }
10545 arg1 = reinterpret_cast< wxRegion * >(argp1);
10546 ecode2 = SWIG_AsVal_int(obj1, &val2);
10547 if (!SWIG_IsOK(ecode2)) {
10548 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
10549 }
10550 arg2 = static_cast< int >(val2);
10551 ecode3 = SWIG_AsVal_int(obj2, &val3);
10552 if (!SWIG_IsOK(ecode3)) {
10553 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
10554 }
10555 arg3 = static_cast< int >(val3);
10556 ecode4 = SWIG_AsVal_int(obj3, &val4);
10557 if (!SWIG_IsOK(ecode4)) {
10558 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
10559 }
10560 arg4 = static_cast< int >(val4);
10561 ecode5 = SWIG_AsVal_int(obj4, &val5);
10562 if (!SWIG_IsOK(ecode5)) {
10563 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
10564 }
10565 arg5 = static_cast< int >(val5);
10566 {
10567 PyThreadState* __tstate = wxPyBeginAllowThreads();
10568 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
10569 wxPyEndAllowThreads(__tstate);
10570 if (PyErr_Occurred()) SWIG_fail;
10571 }
10572 {
10573 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10574 }
10575 return resultobj;
10576 fail:
10577 return NULL;
10578 }
10579
10580
10581 SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10582 PyObject *resultobj = 0;
10583 wxRegion *arg1 = (wxRegion *) 0 ;
10584 wxRect *arg2 = 0 ;
10585 bool result;
10586 void *argp1 = 0 ;
10587 int res1 = 0 ;
10588 wxRect temp2 ;
10589 PyObject * obj0 = 0 ;
10590 PyObject * obj1 = 0 ;
10591 char * kwnames[] = {
10592 (char *) "self",(char *) "rect", NULL
10593 };
10594
10595 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
10596 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10597 if (!SWIG_IsOK(res1)) {
10598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10599 }
10600 arg1 = reinterpret_cast< wxRegion * >(argp1);
10601 {
10602 arg2 = &temp2;
10603 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10604 }
10605 {
10606 PyThreadState* __tstate = wxPyBeginAllowThreads();
10607 result = (bool)(arg1)->Union((wxRect const &)*arg2);
10608 wxPyEndAllowThreads(__tstate);
10609 if (PyErr_Occurred()) SWIG_fail;
10610 }
10611 {
10612 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10613 }
10614 return resultobj;
10615 fail:
10616 return NULL;
10617 }
10618
10619
10620 SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10621 PyObject *resultobj = 0;
10622 wxRegion *arg1 = (wxRegion *) 0 ;
10623 wxRegion *arg2 = 0 ;
10624 bool result;
10625 void *argp1 = 0 ;
10626 int res1 = 0 ;
10627 void *argp2 = 0 ;
10628 int res2 = 0 ;
10629 PyObject * obj0 = 0 ;
10630 PyObject * obj1 = 0 ;
10631 char * kwnames[] = {
10632 (char *) "self",(char *) "region", NULL
10633 };
10634
10635 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10636 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10637 if (!SWIG_IsOK(res1)) {
10638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10639 }
10640 arg1 = reinterpret_cast< wxRegion * >(argp1);
10641 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10642 if (!SWIG_IsOK(res2)) {
10643 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10644 }
10645 if (!argp2) {
10646 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10647 }
10648 arg2 = reinterpret_cast< wxRegion * >(argp2);
10649 {
10650 PyThreadState* __tstate = wxPyBeginAllowThreads();
10651 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
10652 wxPyEndAllowThreads(__tstate);
10653 if (PyErr_Occurred()) SWIG_fail;
10654 }
10655 {
10656 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10657 }
10658 return resultobj;
10659 fail:
10660 return NULL;
10661 }
10662
10663
10664 SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10665 PyObject *resultobj = 0;
10666 wxRegion *arg1 = (wxRegion *) 0 ;
10667 int arg2 ;
10668 int arg3 ;
10669 int arg4 ;
10670 int arg5 ;
10671 bool result;
10672 void *argp1 = 0 ;
10673 int res1 = 0 ;
10674 int val2 ;
10675 int ecode2 = 0 ;
10676 int val3 ;
10677 int ecode3 = 0 ;
10678 int val4 ;
10679 int ecode4 = 0 ;
10680 int val5 ;
10681 int ecode5 = 0 ;
10682 PyObject * obj0 = 0 ;
10683 PyObject * obj1 = 0 ;
10684 PyObject * obj2 = 0 ;
10685 PyObject * obj3 = 0 ;
10686 PyObject * obj4 = 0 ;
10687 char * kwnames[] = {
10688 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10689 };
10690
10691 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10692 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10693 if (!SWIG_IsOK(res1)) {
10694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
10695 }
10696 arg1 = reinterpret_cast< wxRegion * >(argp1);
10697 ecode2 = SWIG_AsVal_int(obj1, &val2);
10698 if (!SWIG_IsOK(ecode2)) {
10699 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
10700 }
10701 arg2 = static_cast< int >(val2);
10702 ecode3 = SWIG_AsVal_int(obj2, &val3);
10703 if (!SWIG_IsOK(ecode3)) {
10704 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
10705 }
10706 arg3 = static_cast< int >(val3);
10707 ecode4 = SWIG_AsVal_int(obj3, &val4);
10708 if (!SWIG_IsOK(ecode4)) {
10709 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
10710 }
10711 arg4 = static_cast< int >(val4);
10712 ecode5 = SWIG_AsVal_int(obj4, &val5);
10713 if (!SWIG_IsOK(ecode5)) {
10714 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
10715 }
10716 arg5 = static_cast< int >(val5);
10717 {
10718 PyThreadState* __tstate = wxPyBeginAllowThreads();
10719 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
10720 wxPyEndAllowThreads(__tstate);
10721 if (PyErr_Occurred()) SWIG_fail;
10722 }
10723 {
10724 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10725 }
10726 return resultobj;
10727 fail:
10728 return NULL;
10729 }
10730
10731
10732 SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10733 PyObject *resultobj = 0;
10734 wxRegion *arg1 = (wxRegion *) 0 ;
10735 wxRect *arg2 = 0 ;
10736 bool result;
10737 void *argp1 = 0 ;
10738 int res1 = 0 ;
10739 wxRect temp2 ;
10740 PyObject * obj0 = 0 ;
10741 PyObject * obj1 = 0 ;
10742 char * kwnames[] = {
10743 (char *) "self",(char *) "rect", NULL
10744 };
10745
10746 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
10747 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10748 if (!SWIG_IsOK(res1)) {
10749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10750 }
10751 arg1 = reinterpret_cast< wxRegion * >(argp1);
10752 {
10753 arg2 = &temp2;
10754 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10755 }
10756 {
10757 PyThreadState* __tstate = wxPyBeginAllowThreads();
10758 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
10759 wxPyEndAllowThreads(__tstate);
10760 if (PyErr_Occurred()) SWIG_fail;
10761 }
10762 {
10763 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10764 }
10765 return resultobj;
10766 fail:
10767 return NULL;
10768 }
10769
10770
10771 SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10772 PyObject *resultobj = 0;
10773 wxRegion *arg1 = (wxRegion *) 0 ;
10774 wxRegion *arg2 = 0 ;
10775 bool result;
10776 void *argp1 = 0 ;
10777 int res1 = 0 ;
10778 void *argp2 = 0 ;
10779 int res2 = 0 ;
10780 PyObject * obj0 = 0 ;
10781 PyObject * obj1 = 0 ;
10782 char * kwnames[] = {
10783 (char *) "self",(char *) "region", NULL
10784 };
10785
10786 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10787 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10788 if (!SWIG_IsOK(res1)) {
10789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10790 }
10791 arg1 = reinterpret_cast< wxRegion * >(argp1);
10792 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10793 if (!SWIG_IsOK(res2)) {
10794 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10795 }
10796 if (!argp2) {
10797 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10798 }
10799 arg2 = reinterpret_cast< wxRegion * >(argp2);
10800 {
10801 PyThreadState* __tstate = wxPyBeginAllowThreads();
10802 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
10803 wxPyEndAllowThreads(__tstate);
10804 if (PyErr_Occurred()) SWIG_fail;
10805 }
10806 {
10807 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10808 }
10809 return resultobj;
10810 fail:
10811 return NULL;
10812 }
10813
10814
10815 SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10816 PyObject *resultobj = 0;
10817 wxRegion *arg1 = (wxRegion *) 0 ;
10818 int arg2 ;
10819 int arg3 ;
10820 int arg4 ;
10821 int arg5 ;
10822 bool result;
10823 void *argp1 = 0 ;
10824 int res1 = 0 ;
10825 int val2 ;
10826 int ecode2 = 0 ;
10827 int val3 ;
10828 int ecode3 = 0 ;
10829 int val4 ;
10830 int ecode4 = 0 ;
10831 int val5 ;
10832 int ecode5 = 0 ;
10833 PyObject * obj0 = 0 ;
10834 PyObject * obj1 = 0 ;
10835 PyObject * obj2 = 0 ;
10836 PyObject * obj3 = 0 ;
10837 PyObject * obj4 = 0 ;
10838 char * kwnames[] = {
10839 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10840 };
10841
10842 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10843 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10844 if (!SWIG_IsOK(res1)) {
10845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
10846 }
10847 arg1 = reinterpret_cast< wxRegion * >(argp1);
10848 ecode2 = SWIG_AsVal_int(obj1, &val2);
10849 if (!SWIG_IsOK(ecode2)) {
10850 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
10851 }
10852 arg2 = static_cast< int >(val2);
10853 ecode3 = SWIG_AsVal_int(obj2, &val3);
10854 if (!SWIG_IsOK(ecode3)) {
10855 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
10856 }
10857 arg3 = static_cast< int >(val3);
10858 ecode4 = SWIG_AsVal_int(obj3, &val4);
10859 if (!SWIG_IsOK(ecode4)) {
10860 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
10861 }
10862 arg4 = static_cast< int >(val4);
10863 ecode5 = SWIG_AsVal_int(obj4, &val5);
10864 if (!SWIG_IsOK(ecode5)) {
10865 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
10866 }
10867 arg5 = static_cast< int >(val5);
10868 {
10869 PyThreadState* __tstate = wxPyBeginAllowThreads();
10870 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
10871 wxPyEndAllowThreads(__tstate);
10872 if (PyErr_Occurred()) SWIG_fail;
10873 }
10874 {
10875 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10876 }
10877 return resultobj;
10878 fail:
10879 return NULL;
10880 }
10881
10882
10883 SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10884 PyObject *resultobj = 0;
10885 wxRegion *arg1 = (wxRegion *) 0 ;
10886 wxRect *arg2 = 0 ;
10887 bool result;
10888 void *argp1 = 0 ;
10889 int res1 = 0 ;
10890 wxRect temp2 ;
10891 PyObject * obj0 = 0 ;
10892 PyObject * obj1 = 0 ;
10893 char * kwnames[] = {
10894 (char *) "self",(char *) "rect", NULL
10895 };
10896
10897 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
10898 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10899 if (!SWIG_IsOK(res1)) {
10900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10901 }
10902 arg1 = reinterpret_cast< wxRegion * >(argp1);
10903 {
10904 arg2 = &temp2;
10905 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10906 }
10907 {
10908 PyThreadState* __tstate = wxPyBeginAllowThreads();
10909 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
10910 wxPyEndAllowThreads(__tstate);
10911 if (PyErr_Occurred()) SWIG_fail;
10912 }
10913 {
10914 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10915 }
10916 return resultobj;
10917 fail:
10918 return NULL;
10919 }
10920
10921
10922 SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10923 PyObject *resultobj = 0;
10924 wxRegion *arg1 = (wxRegion *) 0 ;
10925 wxRegion *arg2 = 0 ;
10926 bool result;
10927 void *argp1 = 0 ;
10928 int res1 = 0 ;
10929 void *argp2 = 0 ;
10930 int res2 = 0 ;
10931 PyObject * obj0 = 0 ;
10932 PyObject * obj1 = 0 ;
10933 char * kwnames[] = {
10934 (char *) "self",(char *) "region", NULL
10935 };
10936
10937 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10938 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10939 if (!SWIG_IsOK(res1)) {
10940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10941 }
10942 arg1 = reinterpret_cast< wxRegion * >(argp1);
10943 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10944 if (!SWIG_IsOK(res2)) {
10945 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10946 }
10947 if (!argp2) {
10948 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10949 }
10950 arg2 = reinterpret_cast< wxRegion * >(argp2);
10951 {
10952 PyThreadState* __tstate = wxPyBeginAllowThreads();
10953 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
10954 wxPyEndAllowThreads(__tstate);
10955 if (PyErr_Occurred()) SWIG_fail;
10956 }
10957 {
10958 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10959 }
10960 return resultobj;
10961 fail:
10962 return NULL;
10963 }
10964
10965
10966 SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10967 PyObject *resultobj = 0;
10968 wxRegion *arg1 = (wxRegion *) 0 ;
10969 SwigValueWrapper<wxBitmap > result;
10970 void *argp1 = 0 ;
10971 int res1 = 0 ;
10972 PyObject *swig_obj[1] ;
10973
10974 if (!args) SWIG_fail;
10975 swig_obj[0] = args;
10976 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10977 if (!SWIG_IsOK(res1)) {
10978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
10979 }
10980 arg1 = reinterpret_cast< wxRegion * >(argp1);
10981 {
10982 PyThreadState* __tstate = wxPyBeginAllowThreads();
10983 result = (arg1)->ConvertToBitmap();
10984 wxPyEndAllowThreads(__tstate);
10985 if (PyErr_Occurred()) SWIG_fail;
10986 }
10987 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
10988 return resultobj;
10989 fail:
10990 return NULL;
10991 }
10992
10993
10994 SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10995 PyObject *resultobj = 0;
10996 wxRegion *arg1 = (wxRegion *) 0 ;
10997 wxBitmap *arg2 = 0 ;
10998 bool result;
10999 void *argp1 = 0 ;
11000 int res1 = 0 ;
11001 void *argp2 = 0 ;
11002 int res2 = 0 ;
11003 PyObject * obj0 = 0 ;
11004 PyObject * obj1 = 0 ;
11005 char * kwnames[] = {
11006 (char *) "self",(char *) "bmp", NULL
11007 };
11008
11009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
11010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11011 if (!SWIG_IsOK(res1)) {
11012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11013 }
11014 arg1 = reinterpret_cast< wxRegion * >(argp1);
11015 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11016 if (!SWIG_IsOK(res2)) {
11017 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11018 }
11019 if (!argp2) {
11020 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11021 }
11022 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11023 {
11024 PyThreadState* __tstate = wxPyBeginAllowThreads();
11025 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
11026 wxPyEndAllowThreads(__tstate);
11027 if (PyErr_Occurred()) SWIG_fail;
11028 }
11029 {
11030 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11031 }
11032 return resultobj;
11033 fail:
11034 return NULL;
11035 }
11036
11037
11038 SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11039 PyObject *resultobj = 0;
11040 wxRegion *arg1 = (wxRegion *) 0 ;
11041 wxBitmap *arg2 = 0 ;
11042 wxColour *arg3 = 0 ;
11043 int arg4 = (int) 0 ;
11044 bool result;
11045 void *argp1 = 0 ;
11046 int res1 = 0 ;
11047 void *argp2 = 0 ;
11048 int res2 = 0 ;
11049 wxColour temp3 ;
11050 int val4 ;
11051 int ecode4 = 0 ;
11052 PyObject * obj0 = 0 ;
11053 PyObject * obj1 = 0 ;
11054 PyObject * obj2 = 0 ;
11055 PyObject * obj3 = 0 ;
11056 char * kwnames[] = {
11057 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
11058 };
11059
11060 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
11061 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11062 if (!SWIG_IsOK(res1)) {
11063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
11064 }
11065 arg1 = reinterpret_cast< wxRegion * >(argp1);
11066 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11067 if (!SWIG_IsOK(res2)) {
11068 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11069 }
11070 if (!argp2) {
11071 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11072 }
11073 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11074 {
11075 arg3 = &temp3;
11076 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
11077 }
11078 if (obj3) {
11079 ecode4 = SWIG_AsVal_int(obj3, &val4);
11080 if (!SWIG_IsOK(ecode4)) {
11081 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
11082 }
11083 arg4 = static_cast< int >(val4);
11084 }
11085 {
11086 PyThreadState* __tstate = wxPyBeginAllowThreads();
11087 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
11088 wxPyEndAllowThreads(__tstate);
11089 if (PyErr_Occurred()) SWIG_fail;
11090 }
11091 {
11092 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11093 }
11094 return resultobj;
11095 fail:
11096 return NULL;
11097 }
11098
11099
11100 SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11101 PyObject *obj;
11102 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11103 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
11104 return SWIG_Py_Void();
11105 }
11106
11107 SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11108 return SWIG_Python_InitShadowInstance(args);
11109 }
11110
11111 SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11112 PyObject *resultobj = 0;
11113 wxRegion *arg1 = 0 ;
11114 wxRegionIterator *result = 0 ;
11115 void *argp1 = 0 ;
11116 int res1 = 0 ;
11117 PyObject * obj0 = 0 ;
11118 char * kwnames[] = {
11119 (char *) "region", NULL
11120 };
11121
11122 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
11123 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
11124 if (!SWIG_IsOK(res1)) {
11125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11126 }
11127 if (!argp1) {
11128 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11129 }
11130 arg1 = reinterpret_cast< wxRegion * >(argp1);
11131 {
11132 if (!wxPyCheckForApp()) SWIG_fail;
11133 PyThreadState* __tstate = wxPyBeginAllowThreads();
11134 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
11135 wxPyEndAllowThreads(__tstate);
11136 if (PyErr_Occurred()) SWIG_fail;
11137 }
11138 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
11139 return resultobj;
11140 fail:
11141 return NULL;
11142 }
11143
11144
11145 SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11146 PyObject *resultobj = 0;
11147 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11148 void *argp1 = 0 ;
11149 int res1 = 0 ;
11150 PyObject *swig_obj[1] ;
11151
11152 if (!args) SWIG_fail;
11153 swig_obj[0] = args;
11154 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
11155 if (!SWIG_IsOK(res1)) {
11156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11157 }
11158 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11159 {
11160 PyThreadState* __tstate = wxPyBeginAllowThreads();
11161 delete arg1;
11162
11163 wxPyEndAllowThreads(__tstate);
11164 if (PyErr_Occurred()) SWIG_fail;
11165 }
11166 resultobj = SWIG_Py_Void();
11167 return resultobj;
11168 fail:
11169 return NULL;
11170 }
11171
11172
11173 SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11174 PyObject *resultobj = 0;
11175 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11176 int result;
11177 void *argp1 = 0 ;
11178 int res1 = 0 ;
11179 PyObject *swig_obj[1] ;
11180
11181 if (!args) SWIG_fail;
11182 swig_obj[0] = args;
11183 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11184 if (!SWIG_IsOK(res1)) {
11185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11186 }
11187 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11188 {
11189 PyThreadState* __tstate = wxPyBeginAllowThreads();
11190 result = (int)(arg1)->GetX();
11191 wxPyEndAllowThreads(__tstate);
11192 if (PyErr_Occurred()) SWIG_fail;
11193 }
11194 resultobj = SWIG_From_int(static_cast< int >(result));
11195 return resultobj;
11196 fail:
11197 return NULL;
11198 }
11199
11200
11201 SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11202 PyObject *resultobj = 0;
11203 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11204 int result;
11205 void *argp1 = 0 ;
11206 int res1 = 0 ;
11207 PyObject *swig_obj[1] ;
11208
11209 if (!args) SWIG_fail;
11210 swig_obj[0] = args;
11211 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11212 if (!SWIG_IsOK(res1)) {
11213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11214 }
11215 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11216 {
11217 PyThreadState* __tstate = wxPyBeginAllowThreads();
11218 result = (int)(arg1)->GetY();
11219 wxPyEndAllowThreads(__tstate);
11220 if (PyErr_Occurred()) SWIG_fail;
11221 }
11222 resultobj = SWIG_From_int(static_cast< int >(result));
11223 return resultobj;
11224 fail:
11225 return NULL;
11226 }
11227
11228
11229 SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11230 PyObject *resultobj = 0;
11231 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11232 int result;
11233 void *argp1 = 0 ;
11234 int res1 = 0 ;
11235 PyObject *swig_obj[1] ;
11236
11237 if (!args) SWIG_fail;
11238 swig_obj[0] = args;
11239 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11240 if (!SWIG_IsOK(res1)) {
11241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11242 }
11243 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11244 {
11245 PyThreadState* __tstate = wxPyBeginAllowThreads();
11246 result = (int)(arg1)->GetW();
11247 wxPyEndAllowThreads(__tstate);
11248 if (PyErr_Occurred()) SWIG_fail;
11249 }
11250 resultobj = SWIG_From_int(static_cast< int >(result));
11251 return resultobj;
11252 fail:
11253 return NULL;
11254 }
11255
11256
11257 SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11258 PyObject *resultobj = 0;
11259 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11260 int result;
11261 void *argp1 = 0 ;
11262 int res1 = 0 ;
11263 PyObject *swig_obj[1] ;
11264
11265 if (!args) SWIG_fail;
11266 swig_obj[0] = args;
11267 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11268 if (!SWIG_IsOK(res1)) {
11269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11270 }
11271 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11272 {
11273 PyThreadState* __tstate = wxPyBeginAllowThreads();
11274 result = (int)(arg1)->GetWidth();
11275 wxPyEndAllowThreads(__tstate);
11276 if (PyErr_Occurred()) SWIG_fail;
11277 }
11278 resultobj = SWIG_From_int(static_cast< int >(result));
11279 return resultobj;
11280 fail:
11281 return NULL;
11282 }
11283
11284
11285 SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11286 PyObject *resultobj = 0;
11287 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11288 int result;
11289 void *argp1 = 0 ;
11290 int res1 = 0 ;
11291 PyObject *swig_obj[1] ;
11292
11293 if (!args) SWIG_fail;
11294 swig_obj[0] = args;
11295 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11296 if (!SWIG_IsOK(res1)) {
11297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11298 }
11299 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11300 {
11301 PyThreadState* __tstate = wxPyBeginAllowThreads();
11302 result = (int)(arg1)->GetH();
11303 wxPyEndAllowThreads(__tstate);
11304 if (PyErr_Occurred()) SWIG_fail;
11305 }
11306 resultobj = SWIG_From_int(static_cast< int >(result));
11307 return resultobj;
11308 fail:
11309 return NULL;
11310 }
11311
11312
11313 SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11314 PyObject *resultobj = 0;
11315 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11316 int result;
11317 void *argp1 = 0 ;
11318 int res1 = 0 ;
11319 PyObject *swig_obj[1] ;
11320
11321 if (!args) SWIG_fail;
11322 swig_obj[0] = args;
11323 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11324 if (!SWIG_IsOK(res1)) {
11325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11326 }
11327 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11328 {
11329 PyThreadState* __tstate = wxPyBeginAllowThreads();
11330 result = (int)(arg1)->GetHeight();
11331 wxPyEndAllowThreads(__tstate);
11332 if (PyErr_Occurred()) SWIG_fail;
11333 }
11334 resultobj = SWIG_From_int(static_cast< int >(result));
11335 return resultobj;
11336 fail:
11337 return NULL;
11338 }
11339
11340
11341 SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11342 PyObject *resultobj = 0;
11343 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11344 wxRect result;
11345 void *argp1 = 0 ;
11346 int res1 = 0 ;
11347 PyObject *swig_obj[1] ;
11348
11349 if (!args) SWIG_fail;
11350 swig_obj[0] = args;
11351 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11352 if (!SWIG_IsOK(res1)) {
11353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11354 }
11355 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11356 {
11357 PyThreadState* __tstate = wxPyBeginAllowThreads();
11358 result = (arg1)->GetRect();
11359 wxPyEndAllowThreads(__tstate);
11360 if (PyErr_Occurred()) SWIG_fail;
11361 }
11362 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
11363 return resultobj;
11364 fail:
11365 return NULL;
11366 }
11367
11368
11369 SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11370 PyObject *resultobj = 0;
11371 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11372 bool result;
11373 void *argp1 = 0 ;
11374 int res1 = 0 ;
11375 PyObject *swig_obj[1] ;
11376
11377 if (!args) SWIG_fail;
11378 swig_obj[0] = args;
11379 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11380 if (!SWIG_IsOK(res1)) {
11381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11382 }
11383 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11384 {
11385 PyThreadState* __tstate = wxPyBeginAllowThreads();
11386 result = (bool)(arg1)->HaveRects();
11387 wxPyEndAllowThreads(__tstate);
11388 if (PyErr_Occurred()) SWIG_fail;
11389 }
11390 {
11391 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11392 }
11393 return resultobj;
11394 fail:
11395 return NULL;
11396 }
11397
11398
11399 SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11400 PyObject *resultobj = 0;
11401 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11402 void *argp1 = 0 ;
11403 int res1 = 0 ;
11404 PyObject *swig_obj[1] ;
11405
11406 if (!args) SWIG_fail;
11407 swig_obj[0] = args;
11408 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11409 if (!SWIG_IsOK(res1)) {
11410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11411 }
11412 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11413 {
11414 PyThreadState* __tstate = wxPyBeginAllowThreads();
11415 (arg1)->Reset();
11416 wxPyEndAllowThreads(__tstate);
11417 if (PyErr_Occurred()) SWIG_fail;
11418 }
11419 resultobj = SWIG_Py_Void();
11420 return resultobj;
11421 fail:
11422 return NULL;
11423 }
11424
11425
11426 SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11427 PyObject *resultobj = 0;
11428 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11429 void *argp1 = 0 ;
11430 int res1 = 0 ;
11431 PyObject *swig_obj[1] ;
11432
11433 if (!args) SWIG_fail;
11434 swig_obj[0] = args;
11435 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11436 if (!SWIG_IsOK(res1)) {
11437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11438 }
11439 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11440 {
11441 PyThreadState* __tstate = wxPyBeginAllowThreads();
11442 wxRegionIterator_Next(arg1);
11443 wxPyEndAllowThreads(__tstate);
11444 if (PyErr_Occurred()) SWIG_fail;
11445 }
11446 resultobj = SWIG_Py_Void();
11447 return resultobj;
11448 fail:
11449 return NULL;
11450 }
11451
11452
11453 SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11454 PyObject *resultobj = 0;
11455 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11456 bool result;
11457 void *argp1 = 0 ;
11458 int res1 = 0 ;
11459 PyObject *swig_obj[1] ;
11460
11461 if (!args) SWIG_fail;
11462 swig_obj[0] = args;
11463 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11464 if (!SWIG_IsOK(res1)) {
11465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11466 }
11467 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11468 {
11469 PyThreadState* __tstate = wxPyBeginAllowThreads();
11470 result = (bool)wxRegionIterator___nonzero__(arg1);
11471 wxPyEndAllowThreads(__tstate);
11472 if (PyErr_Occurred()) SWIG_fail;
11473 }
11474 {
11475 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11476 }
11477 return resultobj;
11478 fail:
11479 return NULL;
11480 }
11481
11482
11483 SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11484 PyObject *obj;
11485 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11486 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
11487 return SWIG_Py_Void();
11488 }
11489
11490 SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11491 return SWIG_Python_InitShadowInstance(args);
11492 }
11493
11494 SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11495 PyObject *resultobj = 0;
11496 wxNativeFontInfo *result = 0 ;
11497
11498 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
11499 {
11500 PyThreadState* __tstate = wxPyBeginAllowThreads();
11501 result = (wxNativeFontInfo *)new wxNativeFontInfo();
11502 wxPyEndAllowThreads(__tstate);
11503 if (PyErr_Occurred()) SWIG_fail;
11504 }
11505 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
11506 return resultobj;
11507 fail:
11508 return NULL;
11509 }
11510
11511
11512 SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11513 PyObject *resultobj = 0;
11514 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11515 void *argp1 = 0 ;
11516 int res1 = 0 ;
11517 PyObject *swig_obj[1] ;
11518
11519 if (!args) SWIG_fail;
11520 swig_obj[0] = args;
11521 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
11522 if (!SWIG_IsOK(res1)) {
11523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11524 }
11525 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11526 {
11527 PyThreadState* __tstate = wxPyBeginAllowThreads();
11528 delete arg1;
11529
11530 wxPyEndAllowThreads(__tstate);
11531 if (PyErr_Occurred()) SWIG_fail;
11532 }
11533 resultobj = SWIG_Py_Void();
11534 return resultobj;
11535 fail:
11536 return NULL;
11537 }
11538
11539
11540 SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11541 PyObject *resultobj = 0;
11542 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11543 void *argp1 = 0 ;
11544 int res1 = 0 ;
11545 PyObject *swig_obj[1] ;
11546
11547 if (!args) SWIG_fail;
11548 swig_obj[0] = args;
11549 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11550 if (!SWIG_IsOK(res1)) {
11551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11552 }
11553 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11554 {
11555 PyThreadState* __tstate = wxPyBeginAllowThreads();
11556 (arg1)->Init();
11557 wxPyEndAllowThreads(__tstate);
11558 if (PyErr_Occurred()) SWIG_fail;
11559 }
11560 resultobj = SWIG_Py_Void();
11561 return resultobj;
11562 fail:
11563 return NULL;
11564 }
11565
11566
11567 SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11568 PyObject *resultobj = 0;
11569 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11570 wxFont *arg2 = 0 ;
11571 void *argp1 = 0 ;
11572 int res1 = 0 ;
11573 void *argp2 = 0 ;
11574 int res2 = 0 ;
11575 PyObject * obj0 = 0 ;
11576 PyObject * obj1 = 0 ;
11577 char * kwnames[] = {
11578 (char *) "self",(char *) "font", NULL
11579 };
11580
11581 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
11582 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11583 if (!SWIG_IsOK(res1)) {
11584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11585 }
11586 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11587 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
11588 if (!SWIG_IsOK(res2)) {
11589 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
11590 }
11591 if (!argp2) {
11592 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
11593 }
11594 arg2 = reinterpret_cast< wxFont * >(argp2);
11595 {
11596 PyThreadState* __tstate = wxPyBeginAllowThreads();
11597 (arg1)->InitFromFont((wxFont const &)*arg2);
11598 wxPyEndAllowThreads(__tstate);
11599 if (PyErr_Occurred()) SWIG_fail;
11600 }
11601 resultobj = SWIG_Py_Void();
11602 return resultobj;
11603 fail:
11604 return NULL;
11605 }
11606
11607
11608 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11609 PyObject *resultobj = 0;
11610 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11611 int result;
11612 void *argp1 = 0 ;
11613 int res1 = 0 ;
11614 PyObject *swig_obj[1] ;
11615
11616 if (!args) SWIG_fail;
11617 swig_obj[0] = args;
11618 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11619 if (!SWIG_IsOK(res1)) {
11620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11621 }
11622 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11623 {
11624 PyThreadState* __tstate = wxPyBeginAllowThreads();
11625 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
11626 wxPyEndAllowThreads(__tstate);
11627 if (PyErr_Occurred()) SWIG_fail;
11628 }
11629 resultobj = SWIG_From_int(static_cast< int >(result));
11630 return resultobj;
11631 fail:
11632 return NULL;
11633 }
11634
11635
11636 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11637 PyObject *resultobj = 0;
11638 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11639 wxFontStyle result;
11640 void *argp1 = 0 ;
11641 int res1 = 0 ;
11642 PyObject *swig_obj[1] ;
11643
11644 if (!args) SWIG_fail;
11645 swig_obj[0] = args;
11646 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11647 if (!SWIG_IsOK(res1)) {
11648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11649 }
11650 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11651 {
11652 PyThreadState* __tstate = wxPyBeginAllowThreads();
11653 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
11654 wxPyEndAllowThreads(__tstate);
11655 if (PyErr_Occurred()) SWIG_fail;
11656 }
11657 resultobj = SWIG_From_int(static_cast< int >(result));
11658 return resultobj;
11659 fail:
11660 return NULL;
11661 }
11662
11663
11664 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11665 PyObject *resultobj = 0;
11666 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11667 wxFontWeight result;
11668 void *argp1 = 0 ;
11669 int res1 = 0 ;
11670 PyObject *swig_obj[1] ;
11671
11672 if (!args) SWIG_fail;
11673 swig_obj[0] = args;
11674 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11675 if (!SWIG_IsOK(res1)) {
11676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11677 }
11678 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11679 {
11680 PyThreadState* __tstate = wxPyBeginAllowThreads();
11681 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
11682 wxPyEndAllowThreads(__tstate);
11683 if (PyErr_Occurred()) SWIG_fail;
11684 }
11685 resultobj = SWIG_From_int(static_cast< int >(result));
11686 return resultobj;
11687 fail:
11688 return NULL;
11689 }
11690
11691
11692 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11693 PyObject *resultobj = 0;
11694 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11695 bool result;
11696 void *argp1 = 0 ;
11697 int res1 = 0 ;
11698 PyObject *swig_obj[1] ;
11699
11700 if (!args) SWIG_fail;
11701 swig_obj[0] = args;
11702 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11703 if (!SWIG_IsOK(res1)) {
11704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11705 }
11706 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11707 {
11708 PyThreadState* __tstate = wxPyBeginAllowThreads();
11709 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
11710 wxPyEndAllowThreads(__tstate);
11711 if (PyErr_Occurred()) SWIG_fail;
11712 }
11713 {
11714 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11715 }
11716 return resultobj;
11717 fail:
11718 return NULL;
11719 }
11720
11721
11722 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11723 PyObject *resultobj = 0;
11724 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11725 wxString result;
11726 void *argp1 = 0 ;
11727 int res1 = 0 ;
11728 PyObject *swig_obj[1] ;
11729
11730 if (!args) SWIG_fail;
11731 swig_obj[0] = args;
11732 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11733 if (!SWIG_IsOK(res1)) {
11734 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11735 }
11736 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11737 {
11738 PyThreadState* __tstate = wxPyBeginAllowThreads();
11739 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
11740 wxPyEndAllowThreads(__tstate);
11741 if (PyErr_Occurred()) SWIG_fail;
11742 }
11743 {
11744 #if wxUSE_UNICODE
11745 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11746 #else
11747 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11748 #endif
11749 }
11750 return resultobj;
11751 fail:
11752 return NULL;
11753 }
11754
11755
11756 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11757 PyObject *resultobj = 0;
11758 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11759 wxFontFamily result;
11760 void *argp1 = 0 ;
11761 int res1 = 0 ;
11762 PyObject *swig_obj[1] ;
11763
11764 if (!args) SWIG_fail;
11765 swig_obj[0] = args;
11766 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11767 if (!SWIG_IsOK(res1)) {
11768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11769 }
11770 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11771 {
11772 PyThreadState* __tstate = wxPyBeginAllowThreads();
11773 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
11774 wxPyEndAllowThreads(__tstate);
11775 if (PyErr_Occurred()) SWIG_fail;
11776 }
11777 resultobj = SWIG_From_int(static_cast< int >(result));
11778 return resultobj;
11779 fail:
11780 return NULL;
11781 }
11782
11783
11784 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11785 PyObject *resultobj = 0;
11786 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11787 wxFontEncoding result;
11788 void *argp1 = 0 ;
11789 int res1 = 0 ;
11790 PyObject *swig_obj[1] ;
11791
11792 if (!args) SWIG_fail;
11793 swig_obj[0] = args;
11794 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11795 if (!SWIG_IsOK(res1)) {
11796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11797 }
11798 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11799 {
11800 PyThreadState* __tstate = wxPyBeginAllowThreads();
11801 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
11802 wxPyEndAllowThreads(__tstate);
11803 if (PyErr_Occurred()) SWIG_fail;
11804 }
11805 resultobj = SWIG_From_int(static_cast< int >(result));
11806 return resultobj;
11807 fail:
11808 return NULL;
11809 }
11810
11811
11812 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11813 PyObject *resultobj = 0;
11814 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11815 int arg2 ;
11816 void *argp1 = 0 ;
11817 int res1 = 0 ;
11818 int val2 ;
11819 int ecode2 = 0 ;
11820 PyObject * obj0 = 0 ;
11821 PyObject * obj1 = 0 ;
11822 char * kwnames[] = {
11823 (char *) "self",(char *) "pointsize", NULL
11824 };
11825
11826 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
11827 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11828 if (!SWIG_IsOK(res1)) {
11829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11830 }
11831 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11832 ecode2 = SWIG_AsVal_int(obj1, &val2);
11833 if (!SWIG_IsOK(ecode2)) {
11834 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
11835 }
11836 arg2 = static_cast< int >(val2);
11837 {
11838 PyThreadState* __tstate = wxPyBeginAllowThreads();
11839 (arg1)->SetPointSize(arg2);
11840 wxPyEndAllowThreads(__tstate);
11841 if (PyErr_Occurred()) SWIG_fail;
11842 }
11843 resultobj = SWIG_Py_Void();
11844 return resultobj;
11845 fail:
11846 return NULL;
11847 }
11848
11849
11850 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11851 PyObject *resultobj = 0;
11852 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11853 wxFontStyle arg2 ;
11854 void *argp1 = 0 ;
11855 int res1 = 0 ;
11856 int val2 ;
11857 int ecode2 = 0 ;
11858 PyObject * obj0 = 0 ;
11859 PyObject * obj1 = 0 ;
11860 char * kwnames[] = {
11861 (char *) "self",(char *) "style", NULL
11862 };
11863
11864 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
11865 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11866 if (!SWIG_IsOK(res1)) {
11867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11868 }
11869 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11870 ecode2 = SWIG_AsVal_int(obj1, &val2);
11871 if (!SWIG_IsOK(ecode2)) {
11872 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
11873 }
11874 arg2 = static_cast< wxFontStyle >(val2);
11875 {
11876 PyThreadState* __tstate = wxPyBeginAllowThreads();
11877 (arg1)->SetStyle(arg2);
11878 wxPyEndAllowThreads(__tstate);
11879 if (PyErr_Occurred()) SWIG_fail;
11880 }
11881 resultobj = SWIG_Py_Void();
11882 return resultobj;
11883 fail:
11884 return NULL;
11885 }
11886
11887
11888 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11889 PyObject *resultobj = 0;
11890 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11891 wxFontWeight arg2 ;
11892 void *argp1 = 0 ;
11893 int res1 = 0 ;
11894 int val2 ;
11895 int ecode2 = 0 ;
11896 PyObject * obj0 = 0 ;
11897 PyObject * obj1 = 0 ;
11898 char * kwnames[] = {
11899 (char *) "self",(char *) "weight", NULL
11900 };
11901
11902 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
11903 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11904 if (!SWIG_IsOK(res1)) {
11905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11906 }
11907 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11908 ecode2 = SWIG_AsVal_int(obj1, &val2);
11909 if (!SWIG_IsOK(ecode2)) {
11910 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
11911 }
11912 arg2 = static_cast< wxFontWeight >(val2);
11913 {
11914 PyThreadState* __tstate = wxPyBeginAllowThreads();
11915 (arg1)->SetWeight(arg2);
11916 wxPyEndAllowThreads(__tstate);
11917 if (PyErr_Occurred()) SWIG_fail;
11918 }
11919 resultobj = SWIG_Py_Void();
11920 return resultobj;
11921 fail:
11922 return NULL;
11923 }
11924
11925
11926 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11927 PyObject *resultobj = 0;
11928 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11929 bool arg2 ;
11930 void *argp1 = 0 ;
11931 int res1 = 0 ;
11932 bool val2 ;
11933 int ecode2 = 0 ;
11934 PyObject * obj0 = 0 ;
11935 PyObject * obj1 = 0 ;
11936 char * kwnames[] = {
11937 (char *) "self",(char *) "underlined", NULL
11938 };
11939
11940 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
11941 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11942 if (!SWIG_IsOK(res1)) {
11943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11944 }
11945 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11946 ecode2 = SWIG_AsVal_bool(obj1, &val2);
11947 if (!SWIG_IsOK(ecode2)) {
11948 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
11949 }
11950 arg2 = static_cast< bool >(val2);
11951 {
11952 PyThreadState* __tstate = wxPyBeginAllowThreads();
11953 (arg1)->SetUnderlined(arg2);
11954 wxPyEndAllowThreads(__tstate);
11955 if (PyErr_Occurred()) SWIG_fail;
11956 }
11957 resultobj = SWIG_Py_Void();
11958 return resultobj;
11959 fail:
11960 return NULL;
11961 }
11962
11963
11964 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11965 PyObject *resultobj = 0;
11966 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11967 wxString arg2 ;
11968 bool result;
11969 void *argp1 = 0 ;
11970 int res1 = 0 ;
11971 PyObject * obj0 = 0 ;
11972 PyObject * obj1 = 0 ;
11973 char * kwnames[] = {
11974 (char *) "self",(char *) "facename", NULL
11975 };
11976
11977 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
11978 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11979 if (!SWIG_IsOK(res1)) {
11980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11981 }
11982 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11983 {
11984 wxString* sptr = wxString_in_helper(obj1);
11985 if (sptr == NULL) SWIG_fail;
11986 arg2 = *sptr;
11987 delete sptr;
11988 }
11989 {
11990 PyThreadState* __tstate = wxPyBeginAllowThreads();
11991 result = (bool)(arg1)->SetFaceName(arg2);
11992 wxPyEndAllowThreads(__tstate);
11993 if (PyErr_Occurred()) SWIG_fail;
11994 }
11995 {
11996 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11997 }
11998 return resultobj;
11999 fail:
12000 return NULL;
12001 }
12002
12003
12004 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12005 PyObject *resultobj = 0;
12006 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12007 wxFontFamily arg2 ;
12008 void *argp1 = 0 ;
12009 int res1 = 0 ;
12010 int val2 ;
12011 int ecode2 = 0 ;
12012 PyObject * obj0 = 0 ;
12013 PyObject * obj1 = 0 ;
12014 char * kwnames[] = {
12015 (char *) "self",(char *) "family", NULL
12016 };
12017
12018 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
12019 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12020 if (!SWIG_IsOK(res1)) {
12021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12022 }
12023 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12024 ecode2 = SWIG_AsVal_int(obj1, &val2);
12025 if (!SWIG_IsOK(ecode2)) {
12026 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
12027 }
12028 arg2 = static_cast< wxFontFamily >(val2);
12029 {
12030 PyThreadState* __tstate = wxPyBeginAllowThreads();
12031 (arg1)->SetFamily(arg2);
12032 wxPyEndAllowThreads(__tstate);
12033 if (PyErr_Occurred()) SWIG_fail;
12034 }
12035 resultobj = SWIG_Py_Void();
12036 return resultobj;
12037 fail:
12038 return NULL;
12039 }
12040
12041
12042 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12043 PyObject *resultobj = 0;
12044 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12045 wxFontEncoding arg2 ;
12046 void *argp1 = 0 ;
12047 int res1 = 0 ;
12048 int val2 ;
12049 int ecode2 = 0 ;
12050 PyObject * obj0 = 0 ;
12051 PyObject * obj1 = 0 ;
12052 char * kwnames[] = {
12053 (char *) "self",(char *) "encoding", NULL
12054 };
12055
12056 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
12057 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12058 if (!SWIG_IsOK(res1)) {
12059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12060 }
12061 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12062 ecode2 = SWIG_AsVal_int(obj1, &val2);
12063 if (!SWIG_IsOK(ecode2)) {
12064 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12065 }
12066 arg2 = static_cast< wxFontEncoding >(val2);
12067 {
12068 PyThreadState* __tstate = wxPyBeginAllowThreads();
12069 (arg1)->SetEncoding(arg2);
12070 wxPyEndAllowThreads(__tstate);
12071 if (PyErr_Occurred()) SWIG_fail;
12072 }
12073 resultobj = SWIG_Py_Void();
12074 return resultobj;
12075 fail:
12076 return NULL;
12077 }
12078
12079
12080 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12081 PyObject *resultobj = 0;
12082 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12083 wxString *arg2 = 0 ;
12084 bool result;
12085 void *argp1 = 0 ;
12086 int res1 = 0 ;
12087 bool temp2 = false ;
12088 PyObject * obj0 = 0 ;
12089 PyObject * obj1 = 0 ;
12090 char * kwnames[] = {
12091 (char *) "self",(char *) "s", NULL
12092 };
12093
12094 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12095 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12096 if (!SWIG_IsOK(res1)) {
12097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12098 }
12099 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12100 {
12101 arg2 = wxString_in_helper(obj1);
12102 if (arg2 == NULL) SWIG_fail;
12103 temp2 = true;
12104 }
12105 {
12106 PyThreadState* __tstate = wxPyBeginAllowThreads();
12107 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12108 wxPyEndAllowThreads(__tstate);
12109 if (PyErr_Occurred()) SWIG_fail;
12110 }
12111 {
12112 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12113 }
12114 {
12115 if (temp2)
12116 delete arg2;
12117 }
12118 return resultobj;
12119 fail:
12120 {
12121 if (temp2)
12122 delete arg2;
12123 }
12124 return NULL;
12125 }
12126
12127
12128 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12129 PyObject *resultobj = 0;
12130 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12131 wxString result;
12132 void *argp1 = 0 ;
12133 int res1 = 0 ;
12134 PyObject *swig_obj[1] ;
12135
12136 if (!args) SWIG_fail;
12137 swig_obj[0] = args;
12138 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12139 if (!SWIG_IsOK(res1)) {
12140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12141 }
12142 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12143 {
12144 PyThreadState* __tstate = wxPyBeginAllowThreads();
12145 result = ((wxNativeFontInfo const *)arg1)->ToString();
12146 wxPyEndAllowThreads(__tstate);
12147 if (PyErr_Occurred()) SWIG_fail;
12148 }
12149 {
12150 #if wxUSE_UNICODE
12151 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12152 #else
12153 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12154 #endif
12155 }
12156 return resultobj;
12157 fail:
12158 return NULL;
12159 }
12160
12161
12162 SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12163 PyObject *resultobj = 0;
12164 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12165 wxString result;
12166 void *argp1 = 0 ;
12167 int res1 = 0 ;
12168 PyObject *swig_obj[1] ;
12169
12170 if (!args) SWIG_fail;
12171 swig_obj[0] = args;
12172 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12173 if (!SWIG_IsOK(res1)) {
12174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12175 }
12176 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12177 {
12178 PyThreadState* __tstate = wxPyBeginAllowThreads();
12179 result = wxNativeFontInfo___str__(arg1);
12180 wxPyEndAllowThreads(__tstate);
12181 if (PyErr_Occurred()) SWIG_fail;
12182 }
12183 {
12184 #if wxUSE_UNICODE
12185 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12186 #else
12187 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12188 #endif
12189 }
12190 return resultobj;
12191 fail:
12192 return NULL;
12193 }
12194
12195
12196 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12197 PyObject *resultobj = 0;
12198 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12199 wxString *arg2 = 0 ;
12200 bool result;
12201 void *argp1 = 0 ;
12202 int res1 = 0 ;
12203 bool temp2 = false ;
12204 PyObject * obj0 = 0 ;
12205 PyObject * obj1 = 0 ;
12206 char * kwnames[] = {
12207 (char *) "self",(char *) "s", NULL
12208 };
12209
12210 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
12211 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12212 if (!SWIG_IsOK(res1)) {
12213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12214 }
12215 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12216 {
12217 arg2 = wxString_in_helper(obj1);
12218 if (arg2 == NULL) SWIG_fail;
12219 temp2 = true;
12220 }
12221 {
12222 PyThreadState* __tstate = wxPyBeginAllowThreads();
12223 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
12224 wxPyEndAllowThreads(__tstate);
12225 if (PyErr_Occurred()) SWIG_fail;
12226 }
12227 {
12228 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12229 }
12230 {
12231 if (temp2)
12232 delete arg2;
12233 }
12234 return resultobj;
12235 fail:
12236 {
12237 if (temp2)
12238 delete arg2;
12239 }
12240 return NULL;
12241 }
12242
12243
12244 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12245 PyObject *resultobj = 0;
12246 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12247 wxString result;
12248 void *argp1 = 0 ;
12249 int res1 = 0 ;
12250 PyObject *swig_obj[1] ;
12251
12252 if (!args) SWIG_fail;
12253 swig_obj[0] = args;
12254 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12255 if (!SWIG_IsOK(res1)) {
12256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12257 }
12258 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12259 {
12260 PyThreadState* __tstate = wxPyBeginAllowThreads();
12261 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
12262 wxPyEndAllowThreads(__tstate);
12263 if (PyErr_Occurred()) SWIG_fail;
12264 }
12265 {
12266 #if wxUSE_UNICODE
12267 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12268 #else
12269 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12270 #endif
12271 }
12272 return resultobj;
12273 fail:
12274 return NULL;
12275 }
12276
12277
12278 SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12279 PyObject *obj;
12280 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12281 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
12282 return SWIG_Py_Void();
12283 }
12284
12285 SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12286 return SWIG_Python_InitShadowInstance(args);
12287 }
12288
12289 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12290 PyObject *resultobj = 0;
12291 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12292 wxString *arg2 = (wxString *) 0 ;
12293 void *argp1 = 0 ;
12294 int res1 = 0 ;
12295 bool temp2 = false ;
12296 PyObject *swig_obj[2] ;
12297
12298 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
12299 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12300 if (!SWIG_IsOK(res1)) {
12301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12302 }
12303 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12304 {
12305 arg2 = wxString_in_helper(swig_obj[1]);
12306 if (arg2 == NULL) SWIG_fail;
12307 temp2 = true;
12308 }
12309 if (arg1) (arg1)->facename = *arg2;
12310
12311 resultobj = SWIG_Py_Void();
12312 {
12313 if (temp2)
12314 delete arg2;
12315 }
12316 return resultobj;
12317 fail:
12318 {
12319 if (temp2)
12320 delete arg2;
12321 }
12322 return NULL;
12323 }
12324
12325
12326 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12327 PyObject *resultobj = 0;
12328 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12329 wxString *result = 0 ;
12330 void *argp1 = 0 ;
12331 int res1 = 0 ;
12332 PyObject *swig_obj[1] ;
12333
12334 if (!args) SWIG_fail;
12335 swig_obj[0] = args;
12336 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12337 if (!SWIG_IsOK(res1)) {
12338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12339 }
12340 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12341 result = (wxString *)& ((arg1)->facename);
12342 {
12343 #if wxUSE_UNICODE
12344 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12345 #else
12346 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12347 #endif
12348 }
12349 return resultobj;
12350 fail:
12351 return NULL;
12352 }
12353
12354
12355 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12356 PyObject *resultobj = 0;
12357 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12358 wxFontEncoding arg2 ;
12359 void *argp1 = 0 ;
12360 int res1 = 0 ;
12361 int val2 ;
12362 int ecode2 = 0 ;
12363 PyObject *swig_obj[2] ;
12364
12365 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
12366 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12367 if (!SWIG_IsOK(res1)) {
12368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12369 }
12370 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12371 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
12372 if (!SWIG_IsOK(ecode2)) {
12373 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12374 }
12375 arg2 = static_cast< wxFontEncoding >(val2);
12376 if (arg1) (arg1)->encoding = arg2;
12377
12378 resultobj = SWIG_Py_Void();
12379 return resultobj;
12380 fail:
12381 return NULL;
12382 }
12383
12384
12385 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12386 PyObject *resultobj = 0;
12387 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12388 wxFontEncoding result;
12389 void *argp1 = 0 ;
12390 int res1 = 0 ;
12391 PyObject *swig_obj[1] ;
12392
12393 if (!args) SWIG_fail;
12394 swig_obj[0] = args;
12395 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12396 if (!SWIG_IsOK(res1)) {
12397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12398 }
12399 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12400 result = (wxFontEncoding) ((arg1)->encoding);
12401 resultobj = SWIG_From_int(static_cast< int >(result));
12402 return resultobj;
12403 fail:
12404 return NULL;
12405 }
12406
12407
12408 SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12409 PyObject *resultobj = 0;
12410 wxNativeEncodingInfo *result = 0 ;
12411
12412 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
12413 {
12414 PyThreadState* __tstate = wxPyBeginAllowThreads();
12415 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
12416 wxPyEndAllowThreads(__tstate);
12417 if (PyErr_Occurred()) SWIG_fail;
12418 }
12419 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
12420 return resultobj;
12421 fail:
12422 return NULL;
12423 }
12424
12425
12426 SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12427 PyObject *resultobj = 0;
12428 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12429 void *argp1 = 0 ;
12430 int res1 = 0 ;
12431 PyObject *swig_obj[1] ;
12432
12433 if (!args) SWIG_fail;
12434 swig_obj[0] = args;
12435 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
12436 if (!SWIG_IsOK(res1)) {
12437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12438 }
12439 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12440 {
12441 PyThreadState* __tstate = wxPyBeginAllowThreads();
12442 delete arg1;
12443
12444 wxPyEndAllowThreads(__tstate);
12445 if (PyErr_Occurred()) SWIG_fail;
12446 }
12447 resultobj = SWIG_Py_Void();
12448 return resultobj;
12449 fail:
12450 return NULL;
12451 }
12452
12453
12454 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12455 PyObject *resultobj = 0;
12456 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12457 wxString *arg2 = 0 ;
12458 bool result;
12459 void *argp1 = 0 ;
12460 int res1 = 0 ;
12461 bool temp2 = false ;
12462 PyObject * obj0 = 0 ;
12463 PyObject * obj1 = 0 ;
12464 char * kwnames[] = {
12465 (char *) "self",(char *) "s", NULL
12466 };
12467
12468 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12469 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12470 if (!SWIG_IsOK(res1)) {
12471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12472 }
12473 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12474 {
12475 arg2 = wxString_in_helper(obj1);
12476 if (arg2 == NULL) SWIG_fail;
12477 temp2 = true;
12478 }
12479 {
12480 PyThreadState* __tstate = wxPyBeginAllowThreads();
12481 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12482 wxPyEndAllowThreads(__tstate);
12483 if (PyErr_Occurred()) SWIG_fail;
12484 }
12485 {
12486 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12487 }
12488 {
12489 if (temp2)
12490 delete arg2;
12491 }
12492 return resultobj;
12493 fail:
12494 {
12495 if (temp2)
12496 delete arg2;
12497 }
12498 return NULL;
12499 }
12500
12501
12502 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12503 PyObject *resultobj = 0;
12504 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12505 wxString result;
12506 void *argp1 = 0 ;
12507 int res1 = 0 ;
12508 PyObject *swig_obj[1] ;
12509
12510 if (!args) SWIG_fail;
12511 swig_obj[0] = args;
12512 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12513 if (!SWIG_IsOK(res1)) {
12514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
12515 }
12516 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12517 {
12518 PyThreadState* __tstate = wxPyBeginAllowThreads();
12519 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
12520 wxPyEndAllowThreads(__tstate);
12521 if (PyErr_Occurred()) SWIG_fail;
12522 }
12523 {
12524 #if wxUSE_UNICODE
12525 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12526 #else
12527 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12528 #endif
12529 }
12530 return resultobj;
12531 fail:
12532 return NULL;
12533 }
12534
12535
12536 SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12537 PyObject *obj;
12538 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12539 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
12540 return SWIG_Py_Void();
12541 }
12542
12543 SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12544 return SWIG_Python_InitShadowInstance(args);
12545 }
12546
12547 SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12548 PyObject *resultobj = 0;
12549 wxFontEncoding arg1 ;
12550 wxNativeEncodingInfo *result = 0 ;
12551 int val1 ;
12552 int ecode1 = 0 ;
12553 PyObject * obj0 = 0 ;
12554 char * kwnames[] = {
12555 (char *) "encoding", NULL
12556 };
12557
12558 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
12559 ecode1 = SWIG_AsVal_int(obj0, &val1);
12560 if (!SWIG_IsOK(ecode1)) {
12561 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
12562 }
12563 arg1 = static_cast< wxFontEncoding >(val1);
12564 {
12565 PyThreadState* __tstate = wxPyBeginAllowThreads();
12566 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
12567 wxPyEndAllowThreads(__tstate);
12568 if (PyErr_Occurred()) SWIG_fail;
12569 }
12570 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12571 return resultobj;
12572 fail:
12573 return NULL;
12574 }
12575
12576
12577 SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12578 PyObject *resultobj = 0;
12579 wxNativeEncodingInfo *arg1 = 0 ;
12580 bool result;
12581 void *argp1 = 0 ;
12582 int res1 = 0 ;
12583 PyObject * obj0 = 0 ;
12584 char * kwnames[] = {
12585 (char *) "info", NULL
12586 };
12587
12588 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
12589 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
12590 if (!SWIG_IsOK(res1)) {
12591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
12592 }
12593 if (!argp1) {
12594 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
12595 }
12596 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12597 {
12598 PyThreadState* __tstate = wxPyBeginAllowThreads();
12599 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
12600 wxPyEndAllowThreads(__tstate);
12601 if (PyErr_Occurred()) SWIG_fail;
12602 }
12603 {
12604 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12605 }
12606 return resultobj;
12607 fail:
12608 return NULL;
12609 }
12610
12611
12612 SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12613 PyObject *resultobj = 0;
12614 wxFontMapper *result = 0 ;
12615
12616 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
12617 {
12618 PyThreadState* __tstate = wxPyBeginAllowThreads();
12619 result = (wxFontMapper *)new wxFontMapper();
12620 wxPyEndAllowThreads(__tstate);
12621 if (PyErr_Occurred()) SWIG_fail;
12622 }
12623 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
12624 return resultobj;
12625 fail:
12626 return NULL;
12627 }
12628
12629
12630 SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12631 PyObject *resultobj = 0;
12632 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
12633 void *argp1 = 0 ;
12634 int res1 = 0 ;
12635 PyObject *swig_obj[1] ;
12636
12637 if (!args) SWIG_fail;
12638 swig_obj[0] = args;
12639 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
12640 if (!SWIG_IsOK(res1)) {
12641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
12642 }
12643 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
12644 {
12645 PyThreadState* __tstate = wxPyBeginAllowThreads();
12646 delete arg1;
12647
12648 wxPyEndAllowThreads(__tstate);
12649 if (PyErr_Occurred()) SWIG_fail;
12650 }
12651 resultobj = SWIG_Py_Void();
12652 return resultobj;
12653 fail:
12654 return NULL;
12655 }
12656
12657
12658 SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12659 PyObject *resultobj = 0;
12660 wxFontMapper *result = 0 ;
12661
12662 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
12663 {
12664 PyThreadState* __tstate = wxPyBeginAllowThreads();
12665 result = (wxFontMapper *)wxFontMapper::Get();
12666 wxPyEndAllowThreads(__tstate);
12667 if (PyErr_Occurred()) SWIG_fail;
12668 }
12669 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
12670 return resultobj;
12671 fail:
12672 return NULL;
12673 }
12674
12675
12676 SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12677 PyObject *resultobj = 0;
12678 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
12679 wxFontMapper *result = 0 ;
12680 void *argp1 = 0 ;
12681 int res1 = 0 ;
12682 PyObject * obj0 = 0 ;
12683 char * kwnames[] = {
12684 (char *) "mapper", NULL
12685 };
12686
12687 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
12688 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
12689 if (!SWIG_IsOK(res1)) {
12690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
12691 }
12692 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
12693 {
12694 PyThreadState* __tstate = wxPyBeginAllowThreads();
12695 result = (wxFontMapper *)wxFontMapper::Set(arg1);
12696 wxPyEndAllowThreads(__tstate);
12697 if (PyErr_Occurred()) SWIG_fail;
12698 }
12699 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
12700 return resultobj;
12701 fail:
12702 return NULL;
12703 }
12704
12705
12706 SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12707 PyObject *resultobj = 0;
12708 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
12709 wxString *arg2 = 0 ;
12710 bool arg3 = (bool) true ;
12711 wxFontEncoding result;
12712 void *argp1 = 0 ;
12713 int res1 = 0 ;
12714 bool temp2 = false ;
12715 bool val3 ;
12716 int ecode3 = 0 ;
12717 PyObject * obj0 = 0 ;
12718 PyObject * obj1 = 0 ;
12719 PyObject * obj2 = 0 ;
12720 char * kwnames[] = {
12721 (char *) "self",(char *) "charset",(char *) "interactive", NULL
12722 };
12723
12724 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12725 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
12726 if (!SWIG_IsOK(res1)) {
12727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
12728 }
12729 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
12730 {
12731 arg2 = wxString_in_helper(obj1);
12732 if (arg2 == NULL) SWIG_fail;
12733 temp2 = true;
12734 }
12735 if (obj2) {
12736 ecode3 = SWIG_AsVal_bool(obj2, &val3);
12737 if (!SWIG_IsOK(ecode3)) {
12738 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
12739 }
12740 arg3 = static_cast< bool >(val3);
12741 }
12742 {
12743 PyThreadState* __tstate = wxPyBeginAllowThreads();
12744 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
12745 wxPyEndAllowThreads(__tstate);
12746 if (PyErr_Occurred()) SWIG_fail;
12747 }
12748 resultobj = SWIG_From_int(static_cast< int >(result));
12749 {
12750 if (temp2)
12751 delete arg2;
12752 }
12753 return resultobj;
12754 fail:
12755 {
12756 if (temp2)
12757 delete arg2;
12758 }
12759 return NULL;
12760 }
12761
12762
12763 SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12764 PyObject *resultobj = 0;
12765 size_t result;
12766
12767 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
12768 {
12769 PyThreadState* __tstate = wxPyBeginAllowThreads();
12770 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
12771 wxPyEndAllowThreads(__tstate);
12772 if (PyErr_Occurred()) SWIG_fail;
12773 }
12774 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
12775 return resultobj;
12776 fail:
12777 return NULL;
12778 }
12779
12780
12781 SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12782 PyObject *resultobj = 0;
12783 size_t arg1 ;
12784 wxFontEncoding result;
12785 size_t val1 ;
12786 int ecode1 = 0 ;
12787 PyObject * obj0 = 0 ;
12788 char * kwnames[] = {
12789 (char *) "n", NULL
12790 };
12791
12792 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
12793 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
12794 if (!SWIG_IsOK(ecode1)) {
12795 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
12796 }
12797 arg1 = static_cast< size_t >(val1);
12798 {
12799 PyThreadState* __tstate = wxPyBeginAllowThreads();
12800 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
12801 wxPyEndAllowThreads(__tstate);
12802 if (PyErr_Occurred()) SWIG_fail;
12803 }
12804 resultobj = SWIG_From_int(static_cast< int >(result));
12805 return resultobj;
12806 fail:
12807 return NULL;
12808 }
12809
12810
12811 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12812 PyObject *resultobj = 0;
12813 wxFontEncoding arg1 ;
12814 wxString result;
12815 int val1 ;
12816 int ecode1 = 0 ;
12817 PyObject * obj0 = 0 ;
12818 char * kwnames[] = {
12819 (char *) "encoding", NULL
12820 };
12821
12822 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
12823 ecode1 = SWIG_AsVal_int(obj0, &val1);
12824 if (!SWIG_IsOK(ecode1)) {
12825 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
12826 }
12827 arg1 = static_cast< wxFontEncoding >(val1);
12828 {
12829 PyThreadState* __tstate = wxPyBeginAllowThreads();
12830 result = wxFontMapper::GetEncodingName(arg1);
12831 wxPyEndAllowThreads(__tstate);
12832 if (PyErr_Occurred()) SWIG_fail;
12833 }
12834 {
12835 #if wxUSE_UNICODE
12836 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12837 #else
12838 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12839 #endif
12840 }
12841 return resultobj;
12842 fail:
12843 return NULL;
12844 }
12845
12846
12847 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12848 PyObject *resultobj = 0;
12849 wxFontEncoding arg1 ;
12850 wxString result;
12851 int val1 ;
12852 int ecode1 = 0 ;
12853 PyObject * obj0 = 0 ;
12854 char * kwnames[] = {
12855 (char *) "encoding", NULL
12856 };
12857
12858 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
12859 ecode1 = SWIG_AsVal_int(obj0, &val1);
12860 if (!SWIG_IsOK(ecode1)) {
12861 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
12862 }
12863 arg1 = static_cast< wxFontEncoding >(val1);
12864 {
12865 PyThreadState* __tstate = wxPyBeginAllowThreads();
12866 result = wxFontMapper::GetEncodingDescription(arg1);
12867 wxPyEndAllowThreads(__tstate);
12868 if (PyErr_Occurred()) SWIG_fail;
12869 }
12870 {
12871 #if wxUSE_UNICODE
12872 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12873 #else
12874 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12875 #endif
12876 }
12877 return resultobj;
12878 fail:
12879 return NULL;
12880 }
12881
12882
12883 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12884 PyObject *resultobj = 0;
12885 wxString *arg1 = 0 ;
12886 wxFontEncoding result;
12887 bool temp1 = false ;
12888 PyObject * obj0 = 0 ;
12889 char * kwnames[] = {
12890 (char *) "name", NULL
12891 };
12892
12893 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
12894 {
12895 arg1 = wxString_in_helper(obj0);
12896 if (arg1 == NULL) SWIG_fail;
12897 temp1 = true;
12898 }
12899 {
12900 PyThreadState* __tstate = wxPyBeginAllowThreads();
12901 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
12902 wxPyEndAllowThreads(__tstate);
12903 if (PyErr_Occurred()) SWIG_fail;
12904 }
12905 resultobj = SWIG_From_int(static_cast< int >(result));
12906 {
12907 if (temp1)
12908 delete arg1;
12909 }
12910 return resultobj;
12911 fail:
12912 {
12913 if (temp1)
12914 delete arg1;
12915 }
12916 return NULL;
12917 }
12918
12919
12920 SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12921 PyObject *resultobj = 0;
12922 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
12923 wxString *arg2 = 0 ;
12924 void *argp1 = 0 ;
12925 int res1 = 0 ;
12926 bool temp2 = false ;
12927 PyObject * obj0 = 0 ;
12928 PyObject * obj1 = 0 ;
12929 char * kwnames[] = {
12930 (char *) "self",(char *) "prefix", NULL
12931 };
12932
12933 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
12934 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
12935 if (!SWIG_IsOK(res1)) {
12936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
12937 }
12938 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
12939 {
12940 arg2 = wxString_in_helper(obj1);
12941 if (arg2 == NULL) SWIG_fail;
12942 temp2 = true;
12943 }
12944 {
12945 PyThreadState* __tstate = wxPyBeginAllowThreads();
12946 (arg1)->SetConfigPath((wxString const &)*arg2);
12947 wxPyEndAllowThreads(__tstate);
12948 if (PyErr_Occurred()) SWIG_fail;
12949 }
12950 resultobj = SWIG_Py_Void();
12951 {
12952 if (temp2)
12953 delete arg2;
12954 }
12955 return resultobj;
12956 fail:
12957 {
12958 if (temp2)
12959 delete arg2;
12960 }
12961 return NULL;
12962 }
12963
12964
12965 SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12966 PyObject *resultobj = 0;
12967 wxString result;
12968
12969 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
12970 {
12971 PyThreadState* __tstate = wxPyBeginAllowThreads();
12972 result = wxFontMapper::GetDefaultConfigPath();
12973 wxPyEndAllowThreads(__tstate);
12974 if (PyErr_Occurred()) SWIG_fail;
12975 }
12976 {
12977 #if wxUSE_UNICODE
12978 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12979 #else
12980 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12981 #endif
12982 }
12983 return resultobj;
12984 fail:
12985 return NULL;
12986 }
12987
12988
12989 SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12990 PyObject *resultobj = 0;
12991 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
12992 wxFontEncoding arg2 ;
12993 wxString const &arg3_defvalue = wxPyEmptyString ;
12994 wxString *arg3 = (wxString *) &arg3_defvalue ;
12995 bool arg4 = (bool) true ;
12996 PyObject *result = 0 ;
12997 void *argp1 = 0 ;
12998 int res1 = 0 ;
12999 int val2 ;
13000 int ecode2 = 0 ;
13001 bool temp3 = false ;
13002 bool val4 ;
13003 int ecode4 = 0 ;
13004 PyObject * obj0 = 0 ;
13005 PyObject * obj1 = 0 ;
13006 PyObject * obj2 = 0 ;
13007 PyObject * obj3 = 0 ;
13008 char * kwnames[] = {
13009 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
13010 };
13011
13012 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13013 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13014 if (!SWIG_IsOK(res1)) {
13015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13016 }
13017 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13018 ecode2 = SWIG_AsVal_int(obj1, &val2);
13019 if (!SWIG_IsOK(ecode2)) {
13020 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13021 }
13022 arg2 = static_cast< wxFontEncoding >(val2);
13023 if (obj2) {
13024 {
13025 arg3 = wxString_in_helper(obj2);
13026 if (arg3 == NULL) SWIG_fail;
13027 temp3 = true;
13028 }
13029 }
13030 if (obj3) {
13031 ecode4 = SWIG_AsVal_bool(obj3, &val4);
13032 if (!SWIG_IsOK(ecode4)) {
13033 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
13034 }
13035 arg4 = static_cast< bool >(val4);
13036 }
13037 {
13038 PyThreadState* __tstate = wxPyBeginAllowThreads();
13039 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
13040 wxPyEndAllowThreads(__tstate);
13041 if (PyErr_Occurred()) SWIG_fail;
13042 }
13043 resultobj = result;
13044 {
13045 if (temp3)
13046 delete arg3;
13047 }
13048 return resultobj;
13049 fail:
13050 {
13051 if (temp3)
13052 delete arg3;
13053 }
13054 return NULL;
13055 }
13056
13057
13058 SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13059 PyObject *resultobj = 0;
13060 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13061 wxFontEncoding arg2 ;
13062 wxString const &arg3_defvalue = wxPyEmptyString ;
13063 wxString *arg3 = (wxString *) &arg3_defvalue ;
13064 bool result;
13065 void *argp1 = 0 ;
13066 int res1 = 0 ;
13067 int val2 ;
13068 int ecode2 = 0 ;
13069 bool temp3 = false ;
13070 PyObject * obj0 = 0 ;
13071 PyObject * obj1 = 0 ;
13072 PyObject * obj2 = 0 ;
13073 char * kwnames[] = {
13074 (char *) "self",(char *) "encoding",(char *) "facename", NULL
13075 };
13076
13077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13079 if (!SWIG_IsOK(res1)) {
13080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13081 }
13082 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13083 ecode2 = SWIG_AsVal_int(obj1, &val2);
13084 if (!SWIG_IsOK(ecode2)) {
13085 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13086 }
13087 arg2 = static_cast< wxFontEncoding >(val2);
13088 if (obj2) {
13089 {
13090 arg3 = wxString_in_helper(obj2);
13091 if (arg3 == NULL) SWIG_fail;
13092 temp3 = true;
13093 }
13094 }
13095 {
13096 PyThreadState* __tstate = wxPyBeginAllowThreads();
13097 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
13098 wxPyEndAllowThreads(__tstate);
13099 if (PyErr_Occurred()) SWIG_fail;
13100 }
13101 {
13102 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13103 }
13104 {
13105 if (temp3)
13106 delete arg3;
13107 }
13108 return resultobj;
13109 fail:
13110 {
13111 if (temp3)
13112 delete arg3;
13113 }
13114 return NULL;
13115 }
13116
13117
13118 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13119 PyObject *resultobj = 0;
13120 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13121 wxWindow *arg2 = (wxWindow *) 0 ;
13122 void *argp1 = 0 ;
13123 int res1 = 0 ;
13124 void *argp2 = 0 ;
13125 int res2 = 0 ;
13126 PyObject * obj0 = 0 ;
13127 PyObject * obj1 = 0 ;
13128 char * kwnames[] = {
13129 (char *) "self",(char *) "parent", NULL
13130 };
13131
13132 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
13133 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13134 if (!SWIG_IsOK(res1)) {
13135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13136 }
13137 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13138 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
13139 if (!SWIG_IsOK(res2)) {
13140 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
13141 }
13142 arg2 = reinterpret_cast< wxWindow * >(argp2);
13143 {
13144 PyThreadState* __tstate = wxPyBeginAllowThreads();
13145 (arg1)->SetDialogParent(arg2);
13146 wxPyEndAllowThreads(__tstate);
13147 if (PyErr_Occurred()) SWIG_fail;
13148 }
13149 resultobj = SWIG_Py_Void();
13150 return resultobj;
13151 fail:
13152 return NULL;
13153 }
13154
13155
13156 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13157 PyObject *resultobj = 0;
13158 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13159 wxString *arg2 = 0 ;
13160 void *argp1 = 0 ;
13161 int res1 = 0 ;
13162 bool temp2 = false ;
13163 PyObject * obj0 = 0 ;
13164 PyObject * obj1 = 0 ;
13165 char * kwnames[] = {
13166 (char *) "self",(char *) "title", NULL
13167 };
13168
13169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
13170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13171 if (!SWIG_IsOK(res1)) {
13172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13173 }
13174 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13175 {
13176 arg2 = wxString_in_helper(obj1);
13177 if (arg2 == NULL) SWIG_fail;
13178 temp2 = true;
13179 }
13180 {
13181 PyThreadState* __tstate = wxPyBeginAllowThreads();
13182 (arg1)->SetDialogTitle((wxString const &)*arg2);
13183 wxPyEndAllowThreads(__tstate);
13184 if (PyErr_Occurred()) SWIG_fail;
13185 }
13186 resultobj = SWIG_Py_Void();
13187 {
13188 if (temp2)
13189 delete arg2;
13190 }
13191 return resultobj;
13192 fail:
13193 {
13194 if (temp2)
13195 delete arg2;
13196 }
13197 return NULL;
13198 }
13199
13200
13201 SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13202 PyObject *obj;
13203 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13204 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
13205 return SWIG_Py_Void();
13206 }
13207
13208 SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13209 return SWIG_Python_InitShadowInstance(args);
13210 }
13211
13212 SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13213 PyObject *resultobj = 0;
13214 int arg1 ;
13215 int arg2 ;
13216 int arg3 ;
13217 int arg4 ;
13218 bool arg5 = (bool) false ;
13219 wxString const &arg6_defvalue = wxPyEmptyString ;
13220 wxString *arg6 = (wxString *) &arg6_defvalue ;
13221 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13222 wxFont *result = 0 ;
13223 int val1 ;
13224 int ecode1 = 0 ;
13225 int val2 ;
13226 int ecode2 = 0 ;
13227 int val3 ;
13228 int ecode3 = 0 ;
13229 int val4 ;
13230 int ecode4 = 0 ;
13231 bool val5 ;
13232 int ecode5 = 0 ;
13233 bool temp6 = false ;
13234 int val7 ;
13235 int ecode7 = 0 ;
13236 PyObject * obj0 = 0 ;
13237 PyObject * obj1 = 0 ;
13238 PyObject * obj2 = 0 ;
13239 PyObject * obj3 = 0 ;
13240 PyObject * obj4 = 0 ;
13241 PyObject * obj5 = 0 ;
13242 PyObject * obj6 = 0 ;
13243 char * kwnames[] = {
13244 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
13245 };
13246
13247 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13248 ecode1 = SWIG_AsVal_int(obj0, &val1);
13249 if (!SWIG_IsOK(ecode1)) {
13250 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
13251 }
13252 arg1 = static_cast< int >(val1);
13253 ecode2 = SWIG_AsVal_int(obj1, &val2);
13254 if (!SWIG_IsOK(ecode2)) {
13255 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
13256 }
13257 arg2 = static_cast< int >(val2);
13258 ecode3 = SWIG_AsVal_int(obj2, &val3);
13259 if (!SWIG_IsOK(ecode3)) {
13260 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
13261 }
13262 arg3 = static_cast< int >(val3);
13263 ecode4 = SWIG_AsVal_int(obj3, &val4);
13264 if (!SWIG_IsOK(ecode4)) {
13265 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
13266 }
13267 arg4 = static_cast< int >(val4);
13268 if (obj4) {
13269 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13270 if (!SWIG_IsOK(ecode5)) {
13271 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
13272 }
13273 arg5 = static_cast< bool >(val5);
13274 }
13275 if (obj5) {
13276 {
13277 arg6 = wxString_in_helper(obj5);
13278 if (arg6 == NULL) SWIG_fail;
13279 temp6 = true;
13280 }
13281 }
13282 if (obj6) {
13283 ecode7 = SWIG_AsVal_int(obj6, &val7);
13284 if (!SWIG_IsOK(ecode7)) {
13285 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
13286 }
13287 arg7 = static_cast< wxFontEncoding >(val7);
13288 }
13289 {
13290 if (!wxPyCheckForApp()) SWIG_fail;
13291 PyThreadState* __tstate = wxPyBeginAllowThreads();
13292 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
13293 wxPyEndAllowThreads(__tstate);
13294 if (PyErr_Occurred()) SWIG_fail;
13295 }
13296 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
13297 {
13298 if (temp6)
13299 delete arg6;
13300 }
13301 return resultobj;
13302 fail:
13303 {
13304 if (temp6)
13305 delete arg6;
13306 }
13307 return NULL;
13308 }
13309
13310
13311 SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13312 PyObject *resultobj = 0;
13313 wxFont *arg1 = (wxFont *) 0 ;
13314 void *argp1 = 0 ;
13315 int res1 = 0 ;
13316 PyObject *swig_obj[1] ;
13317
13318 if (!args) SWIG_fail;
13319 swig_obj[0] = args;
13320 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
13321 if (!SWIG_IsOK(res1)) {
13322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
13323 }
13324 arg1 = reinterpret_cast< wxFont * >(argp1);
13325 {
13326 PyThreadState* __tstate = wxPyBeginAllowThreads();
13327 delete arg1;
13328
13329 wxPyEndAllowThreads(__tstate);
13330 if (PyErr_Occurred()) SWIG_fail;
13331 }
13332 resultobj = SWIG_Py_Void();
13333 return resultobj;
13334 fail:
13335 return NULL;
13336 }
13337
13338
13339 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13340 PyObject *resultobj = 0;
13341 wxNativeFontInfo *arg1 = 0 ;
13342 wxFont *result = 0 ;
13343 void *argp1 = 0 ;
13344 int res1 = 0 ;
13345 PyObject * obj0 = 0 ;
13346 char * kwnames[] = {
13347 (char *) "info", NULL
13348 };
13349
13350 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
13351 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
13352 if (!SWIG_IsOK(res1)) {
13353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13354 }
13355 if (!argp1) {
13356 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13357 }
13358 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13359 {
13360 if (!wxPyCheckForApp()) SWIG_fail;
13361 PyThreadState* __tstate = wxPyBeginAllowThreads();
13362 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
13363 wxPyEndAllowThreads(__tstate);
13364 if (PyErr_Occurred()) SWIG_fail;
13365 }
13366 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13367 return resultobj;
13368 fail:
13369 return NULL;
13370 }
13371
13372
13373 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13374 PyObject *resultobj = 0;
13375 wxString *arg1 = 0 ;
13376 wxFont *result = 0 ;
13377 bool temp1 = false ;
13378 PyObject * obj0 = 0 ;
13379 char * kwnames[] = {
13380 (char *) "info", NULL
13381 };
13382
13383 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
13384 {
13385 arg1 = wxString_in_helper(obj0);
13386 if (arg1 == NULL) SWIG_fail;
13387 temp1 = true;
13388 }
13389 {
13390 if (!wxPyCheckForApp()) SWIG_fail;
13391 PyThreadState* __tstate = wxPyBeginAllowThreads();
13392 result = (wxFont *)new_wxFont((wxString const &)*arg1);
13393 wxPyEndAllowThreads(__tstate);
13394 if (PyErr_Occurred()) SWIG_fail;
13395 }
13396 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13397 {
13398 if (temp1)
13399 delete arg1;
13400 }
13401 return resultobj;
13402 fail:
13403 {
13404 if (temp1)
13405 delete arg1;
13406 }
13407 return NULL;
13408 }
13409
13410
13411 SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13412 PyObject *resultobj = 0;
13413 int arg1 ;
13414 wxFontFamily arg2 ;
13415 int arg3 = (int) wxFONTFLAG_DEFAULT ;
13416 wxString const &arg4_defvalue = wxPyEmptyString ;
13417 wxString *arg4 = (wxString *) &arg4_defvalue ;
13418 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13419 wxFont *result = 0 ;
13420 int val1 ;
13421 int ecode1 = 0 ;
13422 int val2 ;
13423 int ecode2 = 0 ;
13424 int val3 ;
13425 int ecode3 = 0 ;
13426 bool temp4 = false ;
13427 int val5 ;
13428 int ecode5 = 0 ;
13429 PyObject * obj0 = 0 ;
13430 PyObject * obj1 = 0 ;
13431 PyObject * obj2 = 0 ;
13432 PyObject * obj3 = 0 ;
13433 PyObject * obj4 = 0 ;
13434 char * kwnames[] = {
13435 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
13436 };
13437
13438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
13439 ecode1 = SWIG_AsVal_int(obj0, &val1);
13440 if (!SWIG_IsOK(ecode1)) {
13441 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
13442 }
13443 arg1 = static_cast< int >(val1);
13444 ecode2 = SWIG_AsVal_int(obj1, &val2);
13445 if (!SWIG_IsOK(ecode2)) {
13446 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
13447 }
13448 arg2 = static_cast< wxFontFamily >(val2);
13449 if (obj2) {
13450 ecode3 = SWIG_AsVal_int(obj2, &val3);
13451 if (!SWIG_IsOK(ecode3)) {
13452 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
13453 }
13454 arg3 = static_cast< int >(val3);
13455 }
13456 if (obj3) {
13457 {
13458 arg4 = wxString_in_helper(obj3);
13459 if (arg4 == NULL) SWIG_fail;
13460 temp4 = true;
13461 }
13462 }
13463 if (obj4) {
13464 ecode5 = SWIG_AsVal_int(obj4, &val5);
13465 if (!SWIG_IsOK(ecode5)) {
13466 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
13467 }
13468 arg5 = static_cast< wxFontEncoding >(val5);
13469 }
13470 {
13471 if (!wxPyCheckForApp()) SWIG_fail;
13472 PyThreadState* __tstate = wxPyBeginAllowThreads();
13473 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
13474 wxPyEndAllowThreads(__tstate);
13475 if (PyErr_Occurred()) SWIG_fail;
13476 }
13477 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13478 {
13479 if (temp4)
13480 delete arg4;
13481 }
13482 return resultobj;
13483 fail:
13484 {
13485 if (temp4)
13486 delete arg4;
13487 }
13488 return NULL;
13489 }
13490
13491
13492 SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13493 PyObject *resultobj = 0;
13494 wxSize *arg1 = 0 ;
13495 int arg2 ;
13496 int arg3 ;
13497 int arg4 ;
13498 bool arg5 = (bool) false ;
13499 wxString const &arg6_defvalue = wxEmptyString ;
13500 wxString *arg6 = (wxString *) &arg6_defvalue ;
13501 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13502 wxFont *result = 0 ;
13503 wxSize temp1 ;
13504 int val2 ;
13505 int ecode2 = 0 ;
13506 int val3 ;
13507 int ecode3 = 0 ;
13508 int val4 ;
13509 int ecode4 = 0 ;
13510 bool val5 ;
13511 int ecode5 = 0 ;
13512 bool temp6 = false ;
13513 int val7 ;
13514 int ecode7 = 0 ;
13515 PyObject * obj0 = 0 ;
13516 PyObject * obj1 = 0 ;
13517 PyObject * obj2 = 0 ;
13518 PyObject * obj3 = 0 ;
13519 PyObject * obj4 = 0 ;
13520 PyObject * obj5 = 0 ;
13521 PyObject * obj6 = 0 ;
13522 char * kwnames[] = {
13523 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
13524 };
13525
13526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13527 {
13528 arg1 = &temp1;
13529 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
13530 }
13531 ecode2 = SWIG_AsVal_int(obj1, &val2);
13532 if (!SWIG_IsOK(ecode2)) {
13533 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
13534 }
13535 arg2 = static_cast< int >(val2);
13536 ecode3 = SWIG_AsVal_int(obj2, &val3);
13537 if (!SWIG_IsOK(ecode3)) {
13538 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
13539 }
13540 arg3 = static_cast< int >(val3);
13541 ecode4 = SWIG_AsVal_int(obj3, &val4);
13542 if (!SWIG_IsOK(ecode4)) {
13543 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
13544 }
13545 arg4 = static_cast< int >(val4);
13546 if (obj4) {
13547 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13548 if (!SWIG_IsOK(ecode5)) {
13549 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
13550 }
13551 arg5 = static_cast< bool >(val5);
13552 }
13553 if (obj5) {
13554 {
13555 arg6 = wxString_in_helper(obj5);
13556 if (arg6 == NULL) SWIG_fail;
13557 temp6 = true;
13558 }
13559 }
13560 if (obj6) {
13561 ecode7 = SWIG_AsVal_int(obj6, &val7);
13562 if (!SWIG_IsOK(ecode7)) {
13563 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
13564 }
13565 arg7 = static_cast< wxFontEncoding >(val7);
13566 }
13567 {
13568 if (!wxPyCheckForApp()) SWIG_fail;
13569 PyThreadState* __tstate = wxPyBeginAllowThreads();
13570 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
13571 wxPyEndAllowThreads(__tstate);
13572 if (PyErr_Occurred()) SWIG_fail;
13573 }
13574 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13575 {
13576 if (temp6)
13577 delete arg6;
13578 }
13579 return resultobj;
13580 fail:
13581 {
13582 if (temp6)
13583 delete arg6;
13584 }
13585 return NULL;
13586 }
13587
13588
13589 SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13590 PyObject *resultobj = 0;
13591 wxSize *arg1 = 0 ;
13592 wxFontFamily arg2 ;
13593 int arg3 = (int) wxFONTFLAG_DEFAULT ;
13594 wxString const &arg4_defvalue = wxEmptyString ;
13595 wxString *arg4 = (wxString *) &arg4_defvalue ;
13596 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13597 wxFont *result = 0 ;
13598 wxSize temp1 ;
13599 int val2 ;
13600 int ecode2 = 0 ;
13601 int val3 ;
13602 int ecode3 = 0 ;
13603 bool temp4 = false ;
13604 int val5 ;
13605 int ecode5 = 0 ;
13606 PyObject * obj0 = 0 ;
13607 PyObject * obj1 = 0 ;
13608 PyObject * obj2 = 0 ;
13609 PyObject * obj3 = 0 ;
13610 PyObject * obj4 = 0 ;
13611 char * kwnames[] = {
13612 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
13613 };
13614
13615 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
13616 {
13617 arg1 = &temp1;
13618 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
13619 }
13620 ecode2 = SWIG_AsVal_int(obj1, &val2);
13621 if (!SWIG_IsOK(ecode2)) {
13622 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
13623 }
13624 arg2 = static_cast< wxFontFamily >(val2);
13625 if (obj2) {
13626 ecode3 = SWIG_AsVal_int(obj2, &val3);
13627 if (!SWIG_IsOK(ecode3)) {
13628 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
13629 }
13630 arg3 = static_cast< int >(val3);
13631 }
13632 if (obj3) {
13633 {
13634 arg4 = wxString_in_helper(obj3);
13635 if (arg4 == NULL) SWIG_fail;
13636 temp4 = true;
13637 }
13638 }
13639 if (obj4) {
13640 ecode5 = SWIG_AsVal_int(obj4, &val5);
13641 if (!SWIG_IsOK(ecode5)) {
13642 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
13643 }
13644 arg5 = static_cast< wxFontEncoding >(val5);
13645 }
13646 {
13647 if (!wxPyCheckForApp()) SWIG_fail;
13648 PyThreadState* __tstate = wxPyBeginAllowThreads();
13649 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
13650 wxPyEndAllowThreads(__tstate);
13651 if (PyErr_Occurred()) SWIG_fail;
13652 }
13653 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13654 {
13655 if (temp4)
13656 delete arg4;
13657 }
13658 return resultobj;
13659 fail:
13660 {
13661 if (temp4)
13662 delete arg4;
13663 }
13664 return NULL;
13665 }
13666
13667
13668 SWIGINTERN PyObject *_wrap_Font_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13669 PyObject *resultobj = 0;
13670 wxFont *arg1 = (wxFont *) 0 ;
13671 bool result;
13672 void *argp1 = 0 ;
13673 int res1 = 0 ;
13674 PyObject *swig_obj[1] ;
13675
13676 if (!args) SWIG_fail;
13677 swig_obj[0] = args;
13678 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13679 if (!SWIG_IsOK(res1)) {
13680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_Ok" "', expected argument " "1"" of type '" "wxFont const *""'");
13681 }
13682 arg1 = reinterpret_cast< wxFont * >(argp1);
13683 {
13684 PyThreadState* __tstate = wxPyBeginAllowThreads();
13685 result = (bool)((wxFont const *)arg1)->Ok();
13686 wxPyEndAllowThreads(__tstate);
13687 if (PyErr_Occurred()) SWIG_fail;
13688 }
13689 {
13690 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13691 }
13692 return resultobj;
13693 fail:
13694 return NULL;
13695 }
13696
13697
13698 SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13699 PyObject *resultobj = 0;
13700 wxFont *arg1 = (wxFont *) 0 ;
13701 wxFont *arg2 = (wxFont *) 0 ;
13702 bool result;
13703 void *argp1 = 0 ;
13704 int res1 = 0 ;
13705 void *argp2 = 0 ;
13706 int res2 = 0 ;
13707 PyObject * obj0 = 0 ;
13708 PyObject * obj1 = 0 ;
13709 char * kwnames[] = {
13710 (char *) "self",(char *) "other", NULL
13711 };
13712
13713 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
13714 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13715 if (!SWIG_IsOK(res1)) {
13716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
13717 }
13718 arg1 = reinterpret_cast< wxFont * >(argp1);
13719 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
13720 if (!SWIG_IsOK(res2)) {
13721 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
13722 }
13723 arg2 = reinterpret_cast< wxFont * >(argp2);
13724 {
13725 PyThreadState* __tstate = wxPyBeginAllowThreads();
13726 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
13727 wxPyEndAllowThreads(__tstate);
13728 if (PyErr_Occurred()) SWIG_fail;
13729 }
13730 {
13731 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13732 }
13733 return resultobj;
13734 fail:
13735 return NULL;
13736 }
13737
13738
13739 SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13740 PyObject *resultobj = 0;
13741 wxFont *arg1 = (wxFont *) 0 ;
13742 wxFont *arg2 = (wxFont *) 0 ;
13743 bool result;
13744 void *argp1 = 0 ;
13745 int res1 = 0 ;
13746 void *argp2 = 0 ;
13747 int res2 = 0 ;
13748 PyObject * obj0 = 0 ;
13749 PyObject * obj1 = 0 ;
13750 char * kwnames[] = {
13751 (char *) "self",(char *) "other", NULL
13752 };
13753
13754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
13755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13756 if (!SWIG_IsOK(res1)) {
13757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
13758 }
13759 arg1 = reinterpret_cast< wxFont * >(argp1);
13760 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
13761 if (!SWIG_IsOK(res2)) {
13762 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
13763 }
13764 arg2 = reinterpret_cast< wxFont * >(argp2);
13765 {
13766 PyThreadState* __tstate = wxPyBeginAllowThreads();
13767 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
13768 wxPyEndAllowThreads(__tstate);
13769 if (PyErr_Occurred()) SWIG_fail;
13770 }
13771 {
13772 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13773 }
13774 return resultobj;
13775 fail:
13776 return NULL;
13777 }
13778
13779
13780 SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13781 PyObject *resultobj = 0;
13782 wxFont *arg1 = (wxFont *) 0 ;
13783 int result;
13784 void *argp1 = 0 ;
13785 int res1 = 0 ;
13786 PyObject *swig_obj[1] ;
13787
13788 if (!args) SWIG_fail;
13789 swig_obj[0] = args;
13790 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13791 if (!SWIG_IsOK(res1)) {
13792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
13793 }
13794 arg1 = reinterpret_cast< wxFont * >(argp1);
13795 {
13796 PyThreadState* __tstate = wxPyBeginAllowThreads();
13797 result = (int)((wxFont const *)arg1)->GetPointSize();
13798 wxPyEndAllowThreads(__tstate);
13799 if (PyErr_Occurred()) SWIG_fail;
13800 }
13801 resultobj = SWIG_From_int(static_cast< int >(result));
13802 return resultobj;
13803 fail:
13804 return NULL;
13805 }
13806
13807
13808 SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13809 PyObject *resultobj = 0;
13810 wxFont *arg1 = (wxFont *) 0 ;
13811 wxSize result;
13812 void *argp1 = 0 ;
13813 int res1 = 0 ;
13814 PyObject *swig_obj[1] ;
13815
13816 if (!args) SWIG_fail;
13817 swig_obj[0] = args;
13818 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13819 if (!SWIG_IsOK(res1)) {
13820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
13821 }
13822 arg1 = reinterpret_cast< wxFont * >(argp1);
13823 {
13824 PyThreadState* __tstate = wxPyBeginAllowThreads();
13825 result = ((wxFont const *)arg1)->GetPixelSize();
13826 wxPyEndAllowThreads(__tstate);
13827 if (PyErr_Occurred()) SWIG_fail;
13828 }
13829 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
13830 return resultobj;
13831 fail:
13832 return NULL;
13833 }
13834
13835
13836 SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13837 PyObject *resultobj = 0;
13838 wxFont *arg1 = (wxFont *) 0 ;
13839 bool result;
13840 void *argp1 = 0 ;
13841 int res1 = 0 ;
13842 PyObject *swig_obj[1] ;
13843
13844 if (!args) SWIG_fail;
13845 swig_obj[0] = args;
13846 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13847 if (!SWIG_IsOK(res1)) {
13848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
13849 }
13850 arg1 = reinterpret_cast< wxFont * >(argp1);
13851 {
13852 PyThreadState* __tstate = wxPyBeginAllowThreads();
13853 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
13854 wxPyEndAllowThreads(__tstate);
13855 if (PyErr_Occurred()) SWIG_fail;
13856 }
13857 {
13858 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13859 }
13860 return resultobj;
13861 fail:
13862 return NULL;
13863 }
13864
13865
13866 SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13867 PyObject *resultobj = 0;
13868 wxFont *arg1 = (wxFont *) 0 ;
13869 int result;
13870 void *argp1 = 0 ;
13871 int res1 = 0 ;
13872 PyObject *swig_obj[1] ;
13873
13874 if (!args) SWIG_fail;
13875 swig_obj[0] = args;
13876 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13877 if (!SWIG_IsOK(res1)) {
13878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
13879 }
13880 arg1 = reinterpret_cast< wxFont * >(argp1);
13881 {
13882 PyThreadState* __tstate = wxPyBeginAllowThreads();
13883 result = (int)((wxFont const *)arg1)->GetFamily();
13884 wxPyEndAllowThreads(__tstate);
13885 if (PyErr_Occurred()) SWIG_fail;
13886 }
13887 resultobj = SWIG_From_int(static_cast< int >(result));
13888 return resultobj;
13889 fail:
13890 return NULL;
13891 }
13892
13893
13894 SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13895 PyObject *resultobj = 0;
13896 wxFont *arg1 = (wxFont *) 0 ;
13897 int result;
13898 void *argp1 = 0 ;
13899 int res1 = 0 ;
13900 PyObject *swig_obj[1] ;
13901
13902 if (!args) SWIG_fail;
13903 swig_obj[0] = args;
13904 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13905 if (!SWIG_IsOK(res1)) {
13906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
13907 }
13908 arg1 = reinterpret_cast< wxFont * >(argp1);
13909 {
13910 PyThreadState* __tstate = wxPyBeginAllowThreads();
13911 result = (int)((wxFont const *)arg1)->GetStyle();
13912 wxPyEndAllowThreads(__tstate);
13913 if (PyErr_Occurred()) SWIG_fail;
13914 }
13915 resultobj = SWIG_From_int(static_cast< int >(result));
13916 return resultobj;
13917 fail:
13918 return NULL;
13919 }
13920
13921
13922 SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13923 PyObject *resultobj = 0;
13924 wxFont *arg1 = (wxFont *) 0 ;
13925 int result;
13926 void *argp1 = 0 ;
13927 int res1 = 0 ;
13928 PyObject *swig_obj[1] ;
13929
13930 if (!args) SWIG_fail;
13931 swig_obj[0] = args;
13932 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13933 if (!SWIG_IsOK(res1)) {
13934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
13935 }
13936 arg1 = reinterpret_cast< wxFont * >(argp1);
13937 {
13938 PyThreadState* __tstate = wxPyBeginAllowThreads();
13939 result = (int)((wxFont const *)arg1)->GetWeight();
13940 wxPyEndAllowThreads(__tstate);
13941 if (PyErr_Occurred()) SWIG_fail;
13942 }
13943 resultobj = SWIG_From_int(static_cast< int >(result));
13944 return resultobj;
13945 fail:
13946 return NULL;
13947 }
13948
13949
13950 SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13951 PyObject *resultobj = 0;
13952 wxFont *arg1 = (wxFont *) 0 ;
13953 bool result;
13954 void *argp1 = 0 ;
13955 int res1 = 0 ;
13956 PyObject *swig_obj[1] ;
13957
13958 if (!args) SWIG_fail;
13959 swig_obj[0] = args;
13960 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13961 if (!SWIG_IsOK(res1)) {
13962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
13963 }
13964 arg1 = reinterpret_cast< wxFont * >(argp1);
13965 {
13966 PyThreadState* __tstate = wxPyBeginAllowThreads();
13967 result = (bool)((wxFont const *)arg1)->GetUnderlined();
13968 wxPyEndAllowThreads(__tstate);
13969 if (PyErr_Occurred()) SWIG_fail;
13970 }
13971 {
13972 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13973 }
13974 return resultobj;
13975 fail:
13976 return NULL;
13977 }
13978
13979
13980 SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13981 PyObject *resultobj = 0;
13982 wxFont *arg1 = (wxFont *) 0 ;
13983 wxString result;
13984 void *argp1 = 0 ;
13985 int res1 = 0 ;
13986 PyObject *swig_obj[1] ;
13987
13988 if (!args) SWIG_fail;
13989 swig_obj[0] = args;
13990 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13991 if (!SWIG_IsOK(res1)) {
13992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
13993 }
13994 arg1 = reinterpret_cast< wxFont * >(argp1);
13995 {
13996 PyThreadState* __tstate = wxPyBeginAllowThreads();
13997 result = ((wxFont const *)arg1)->GetFaceName();
13998 wxPyEndAllowThreads(__tstate);
13999 if (PyErr_Occurred()) SWIG_fail;
14000 }
14001 {
14002 #if wxUSE_UNICODE
14003 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14004 #else
14005 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14006 #endif
14007 }
14008 return resultobj;
14009 fail:
14010 return NULL;
14011 }
14012
14013
14014 SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14015 PyObject *resultobj = 0;
14016 wxFont *arg1 = (wxFont *) 0 ;
14017 wxFontEncoding result;
14018 void *argp1 = 0 ;
14019 int res1 = 0 ;
14020 PyObject *swig_obj[1] ;
14021
14022 if (!args) SWIG_fail;
14023 swig_obj[0] = args;
14024 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14025 if (!SWIG_IsOK(res1)) {
14026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
14027 }
14028 arg1 = reinterpret_cast< wxFont * >(argp1);
14029 {
14030 PyThreadState* __tstate = wxPyBeginAllowThreads();
14031 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
14032 wxPyEndAllowThreads(__tstate);
14033 if (PyErr_Occurred()) SWIG_fail;
14034 }
14035 resultobj = SWIG_From_int(static_cast< int >(result));
14036 return resultobj;
14037 fail:
14038 return NULL;
14039 }
14040
14041
14042 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14043 PyObject *resultobj = 0;
14044 wxFont *arg1 = (wxFont *) 0 ;
14045 wxNativeFontInfo *result = 0 ;
14046 void *argp1 = 0 ;
14047 int res1 = 0 ;
14048 PyObject *swig_obj[1] ;
14049
14050 if (!args) SWIG_fail;
14051 swig_obj[0] = args;
14052 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14053 if (!SWIG_IsOK(res1)) {
14054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
14055 }
14056 arg1 = reinterpret_cast< wxFont * >(argp1);
14057 {
14058 PyThreadState* __tstate = wxPyBeginAllowThreads();
14059 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
14060 wxPyEndAllowThreads(__tstate);
14061 if (PyErr_Occurred()) SWIG_fail;
14062 }
14063 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
14064 return resultobj;
14065 fail:
14066 return NULL;
14067 }
14068
14069
14070 SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14071 PyObject *resultobj = 0;
14072 wxFont *arg1 = (wxFont *) 0 ;
14073 bool result;
14074 void *argp1 = 0 ;
14075 int res1 = 0 ;
14076 PyObject *swig_obj[1] ;
14077
14078 if (!args) SWIG_fail;
14079 swig_obj[0] = args;
14080 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14081 if (!SWIG_IsOK(res1)) {
14082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
14083 }
14084 arg1 = reinterpret_cast< wxFont * >(argp1);
14085 {
14086 PyThreadState* __tstate = wxPyBeginAllowThreads();
14087 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
14088 wxPyEndAllowThreads(__tstate);
14089 if (PyErr_Occurred()) SWIG_fail;
14090 }
14091 {
14092 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14093 }
14094 return resultobj;
14095 fail:
14096 return NULL;
14097 }
14098
14099
14100 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14101 PyObject *resultobj = 0;
14102 wxFont *arg1 = (wxFont *) 0 ;
14103 wxString result;
14104 void *argp1 = 0 ;
14105 int res1 = 0 ;
14106 PyObject *swig_obj[1] ;
14107
14108 if (!args) SWIG_fail;
14109 swig_obj[0] = args;
14110 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14111 if (!SWIG_IsOK(res1)) {
14112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14113 }
14114 arg1 = reinterpret_cast< wxFont * >(argp1);
14115 {
14116 PyThreadState* __tstate = wxPyBeginAllowThreads();
14117 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
14118 wxPyEndAllowThreads(__tstate);
14119 if (PyErr_Occurred()) SWIG_fail;
14120 }
14121 {
14122 #if wxUSE_UNICODE
14123 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14124 #else
14125 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14126 #endif
14127 }
14128 return resultobj;
14129 fail:
14130 return NULL;
14131 }
14132
14133
14134 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14135 PyObject *resultobj = 0;
14136 wxFont *arg1 = (wxFont *) 0 ;
14137 wxString result;
14138 void *argp1 = 0 ;
14139 int res1 = 0 ;
14140 PyObject *swig_obj[1] ;
14141
14142 if (!args) SWIG_fail;
14143 swig_obj[0] = args;
14144 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14145 if (!SWIG_IsOK(res1)) {
14146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14147 }
14148 arg1 = reinterpret_cast< wxFont * >(argp1);
14149 {
14150 PyThreadState* __tstate = wxPyBeginAllowThreads();
14151 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
14152 wxPyEndAllowThreads(__tstate);
14153 if (PyErr_Occurred()) SWIG_fail;
14154 }
14155 {
14156 #if wxUSE_UNICODE
14157 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14158 #else
14159 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14160 #endif
14161 }
14162 return resultobj;
14163 fail:
14164 return NULL;
14165 }
14166
14167
14168 SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14169 PyObject *resultobj = 0;
14170 wxFont *arg1 = (wxFont *) 0 ;
14171 int arg2 ;
14172 void *argp1 = 0 ;
14173 int res1 = 0 ;
14174 int val2 ;
14175 int ecode2 = 0 ;
14176 PyObject * obj0 = 0 ;
14177 PyObject * obj1 = 0 ;
14178 char * kwnames[] = {
14179 (char *) "self",(char *) "pointSize", NULL
14180 };
14181
14182 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
14183 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14184 if (!SWIG_IsOK(res1)) {
14185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
14186 }
14187 arg1 = reinterpret_cast< wxFont * >(argp1);
14188 ecode2 = SWIG_AsVal_int(obj1, &val2);
14189 if (!SWIG_IsOK(ecode2)) {
14190 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
14191 }
14192 arg2 = static_cast< int >(val2);
14193 {
14194 PyThreadState* __tstate = wxPyBeginAllowThreads();
14195 (arg1)->SetPointSize(arg2);
14196 wxPyEndAllowThreads(__tstate);
14197 if (PyErr_Occurred()) SWIG_fail;
14198 }
14199 resultobj = SWIG_Py_Void();
14200 return resultobj;
14201 fail:
14202 return NULL;
14203 }
14204
14205
14206 SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14207 PyObject *resultobj = 0;
14208 wxFont *arg1 = (wxFont *) 0 ;
14209 wxSize *arg2 = 0 ;
14210 void *argp1 = 0 ;
14211 int res1 = 0 ;
14212 wxSize temp2 ;
14213 PyObject * obj0 = 0 ;
14214 PyObject * obj1 = 0 ;
14215 char * kwnames[] = {
14216 (char *) "self",(char *) "pixelSize", NULL
14217 };
14218
14219 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
14220 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14221 if (!SWIG_IsOK(res1)) {
14222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
14223 }
14224 arg1 = reinterpret_cast< wxFont * >(argp1);
14225 {
14226 arg2 = &temp2;
14227 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14228 }
14229 {
14230 PyThreadState* __tstate = wxPyBeginAllowThreads();
14231 (arg1)->SetPixelSize((wxSize const &)*arg2);
14232 wxPyEndAllowThreads(__tstate);
14233 if (PyErr_Occurred()) SWIG_fail;
14234 }
14235 resultobj = SWIG_Py_Void();
14236 return resultobj;
14237 fail:
14238 return NULL;
14239 }
14240
14241
14242 SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14243 PyObject *resultobj = 0;
14244 wxFont *arg1 = (wxFont *) 0 ;
14245 int arg2 ;
14246 void *argp1 = 0 ;
14247 int res1 = 0 ;
14248 int val2 ;
14249 int ecode2 = 0 ;
14250 PyObject * obj0 = 0 ;
14251 PyObject * obj1 = 0 ;
14252 char * kwnames[] = {
14253 (char *) "self",(char *) "family", NULL
14254 };
14255
14256 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
14257 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14258 if (!SWIG_IsOK(res1)) {
14259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
14260 }
14261 arg1 = reinterpret_cast< wxFont * >(argp1);
14262 ecode2 = SWIG_AsVal_int(obj1, &val2);
14263 if (!SWIG_IsOK(ecode2)) {
14264 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
14265 }
14266 arg2 = static_cast< int >(val2);
14267 {
14268 PyThreadState* __tstate = wxPyBeginAllowThreads();
14269 (arg1)->SetFamily(arg2);
14270 wxPyEndAllowThreads(__tstate);
14271 if (PyErr_Occurred()) SWIG_fail;
14272 }
14273 resultobj = SWIG_Py_Void();
14274 return resultobj;
14275 fail:
14276 return NULL;
14277 }
14278
14279
14280 SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14281 PyObject *resultobj = 0;
14282 wxFont *arg1 = (wxFont *) 0 ;
14283 int arg2 ;
14284 void *argp1 = 0 ;
14285 int res1 = 0 ;
14286 int val2 ;
14287 int ecode2 = 0 ;
14288 PyObject * obj0 = 0 ;
14289 PyObject * obj1 = 0 ;
14290 char * kwnames[] = {
14291 (char *) "self",(char *) "style", NULL
14292 };
14293
14294 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
14295 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14296 if (!SWIG_IsOK(res1)) {
14297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
14298 }
14299 arg1 = reinterpret_cast< wxFont * >(argp1);
14300 ecode2 = SWIG_AsVal_int(obj1, &val2);
14301 if (!SWIG_IsOK(ecode2)) {
14302 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
14303 }
14304 arg2 = static_cast< int >(val2);
14305 {
14306 PyThreadState* __tstate = wxPyBeginAllowThreads();
14307 (arg1)->SetStyle(arg2);
14308 wxPyEndAllowThreads(__tstate);
14309 if (PyErr_Occurred()) SWIG_fail;
14310 }
14311 resultobj = SWIG_Py_Void();
14312 return resultobj;
14313 fail:
14314 return NULL;
14315 }
14316
14317
14318 SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14319 PyObject *resultobj = 0;
14320 wxFont *arg1 = (wxFont *) 0 ;
14321 int arg2 ;
14322 void *argp1 = 0 ;
14323 int res1 = 0 ;
14324 int val2 ;
14325 int ecode2 = 0 ;
14326 PyObject * obj0 = 0 ;
14327 PyObject * obj1 = 0 ;
14328 char * kwnames[] = {
14329 (char *) "self",(char *) "weight", NULL
14330 };
14331
14332 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
14333 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14334 if (!SWIG_IsOK(res1)) {
14335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
14336 }
14337 arg1 = reinterpret_cast< wxFont * >(argp1);
14338 ecode2 = SWIG_AsVal_int(obj1, &val2);
14339 if (!SWIG_IsOK(ecode2)) {
14340 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
14341 }
14342 arg2 = static_cast< int >(val2);
14343 {
14344 PyThreadState* __tstate = wxPyBeginAllowThreads();
14345 (arg1)->SetWeight(arg2);
14346 wxPyEndAllowThreads(__tstate);
14347 if (PyErr_Occurred()) SWIG_fail;
14348 }
14349 resultobj = SWIG_Py_Void();
14350 return resultobj;
14351 fail:
14352 return NULL;
14353 }
14354
14355
14356 SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14357 PyObject *resultobj = 0;
14358 wxFont *arg1 = (wxFont *) 0 ;
14359 wxString *arg2 = 0 ;
14360 bool result;
14361 void *argp1 = 0 ;
14362 int res1 = 0 ;
14363 bool temp2 = false ;
14364 PyObject * obj0 = 0 ;
14365 PyObject * obj1 = 0 ;
14366 char * kwnames[] = {
14367 (char *) "self",(char *) "faceName", NULL
14368 };
14369
14370 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
14371 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14372 if (!SWIG_IsOK(res1)) {
14373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
14374 }
14375 arg1 = reinterpret_cast< wxFont * >(argp1);
14376 {
14377 arg2 = wxString_in_helper(obj1);
14378 if (arg2 == NULL) SWIG_fail;
14379 temp2 = true;
14380 }
14381 {
14382 PyThreadState* __tstate = wxPyBeginAllowThreads();
14383 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
14384 wxPyEndAllowThreads(__tstate);
14385 if (PyErr_Occurred()) SWIG_fail;
14386 }
14387 {
14388 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14389 }
14390 {
14391 if (temp2)
14392 delete arg2;
14393 }
14394 return resultobj;
14395 fail:
14396 {
14397 if (temp2)
14398 delete arg2;
14399 }
14400 return NULL;
14401 }
14402
14403
14404 SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14405 PyObject *resultobj = 0;
14406 wxFont *arg1 = (wxFont *) 0 ;
14407 bool arg2 ;
14408 void *argp1 = 0 ;
14409 int res1 = 0 ;
14410 bool val2 ;
14411 int ecode2 = 0 ;
14412 PyObject * obj0 = 0 ;
14413 PyObject * obj1 = 0 ;
14414 char * kwnames[] = {
14415 (char *) "self",(char *) "underlined", NULL
14416 };
14417
14418 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
14419 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14420 if (!SWIG_IsOK(res1)) {
14421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
14422 }
14423 arg1 = reinterpret_cast< wxFont * >(argp1);
14424 ecode2 = SWIG_AsVal_bool(obj1, &val2);
14425 if (!SWIG_IsOK(ecode2)) {
14426 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
14427 }
14428 arg2 = static_cast< bool >(val2);
14429 {
14430 PyThreadState* __tstate = wxPyBeginAllowThreads();
14431 (arg1)->SetUnderlined(arg2);
14432 wxPyEndAllowThreads(__tstate);
14433 if (PyErr_Occurred()) SWIG_fail;
14434 }
14435 resultobj = SWIG_Py_Void();
14436 return resultobj;
14437 fail:
14438 return NULL;
14439 }
14440
14441
14442 SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14443 PyObject *resultobj = 0;
14444 wxFont *arg1 = (wxFont *) 0 ;
14445 wxFontEncoding arg2 ;
14446 void *argp1 = 0 ;
14447 int res1 = 0 ;
14448 int val2 ;
14449 int ecode2 = 0 ;
14450 PyObject * obj0 = 0 ;
14451 PyObject * obj1 = 0 ;
14452 char * kwnames[] = {
14453 (char *) "self",(char *) "encoding", NULL
14454 };
14455
14456 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
14457 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14458 if (!SWIG_IsOK(res1)) {
14459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
14460 }
14461 arg1 = reinterpret_cast< wxFont * >(argp1);
14462 ecode2 = SWIG_AsVal_int(obj1, &val2);
14463 if (!SWIG_IsOK(ecode2)) {
14464 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14465 }
14466 arg2 = static_cast< wxFontEncoding >(val2);
14467 {
14468 PyThreadState* __tstate = wxPyBeginAllowThreads();
14469 (arg1)->SetEncoding(arg2);
14470 wxPyEndAllowThreads(__tstate);
14471 if (PyErr_Occurred()) SWIG_fail;
14472 }
14473 resultobj = SWIG_Py_Void();
14474 return resultobj;
14475 fail:
14476 return NULL;
14477 }
14478
14479
14480 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14481 PyObject *resultobj = 0;
14482 wxFont *arg1 = (wxFont *) 0 ;
14483 wxNativeFontInfo *arg2 = 0 ;
14484 void *argp1 = 0 ;
14485 int res1 = 0 ;
14486 void *argp2 = 0 ;
14487 int res2 = 0 ;
14488 PyObject * obj0 = 0 ;
14489 PyObject * obj1 = 0 ;
14490 char * kwnames[] = {
14491 (char *) "self",(char *) "info", NULL
14492 };
14493
14494 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
14495 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14496 if (!SWIG_IsOK(res1)) {
14497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
14498 }
14499 arg1 = reinterpret_cast< wxFont * >(argp1);
14500 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
14501 if (!SWIG_IsOK(res2)) {
14502 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
14503 }
14504 if (!argp2) {
14505 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
14506 }
14507 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
14508 {
14509 PyThreadState* __tstate = wxPyBeginAllowThreads();
14510 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
14511 wxPyEndAllowThreads(__tstate);
14512 if (PyErr_Occurred()) SWIG_fail;
14513 }
14514 resultobj = SWIG_Py_Void();
14515 return resultobj;
14516 fail:
14517 return NULL;
14518 }
14519
14520
14521 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14522 PyObject *resultobj = 0;
14523 wxFont *arg1 = (wxFont *) 0 ;
14524 wxString *arg2 = 0 ;
14525 bool result;
14526 void *argp1 = 0 ;
14527 int res1 = 0 ;
14528 bool temp2 = false ;
14529 PyObject * obj0 = 0 ;
14530 PyObject * obj1 = 0 ;
14531 char * kwnames[] = {
14532 (char *) "self",(char *) "info", NULL
14533 };
14534
14535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
14536 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14537 if (!SWIG_IsOK(res1)) {
14538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
14539 }
14540 arg1 = reinterpret_cast< wxFont * >(argp1);
14541 {
14542 arg2 = wxString_in_helper(obj1);
14543 if (arg2 == NULL) SWIG_fail;
14544 temp2 = true;
14545 }
14546 {
14547 PyThreadState* __tstate = wxPyBeginAllowThreads();
14548 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
14549 wxPyEndAllowThreads(__tstate);
14550 if (PyErr_Occurred()) SWIG_fail;
14551 }
14552 {
14553 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14554 }
14555 {
14556 if (temp2)
14557 delete arg2;
14558 }
14559 return resultobj;
14560 fail:
14561 {
14562 if (temp2)
14563 delete arg2;
14564 }
14565 return NULL;
14566 }
14567
14568
14569 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14570 PyObject *resultobj = 0;
14571 wxFont *arg1 = (wxFont *) 0 ;
14572 wxString *arg2 = 0 ;
14573 bool result;
14574 void *argp1 = 0 ;
14575 int res1 = 0 ;
14576 bool temp2 = false ;
14577 PyObject * obj0 = 0 ;
14578 PyObject * obj1 = 0 ;
14579 char * kwnames[] = {
14580 (char *) "self",(char *) "info", NULL
14581 };
14582
14583 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
14584 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14585 if (!SWIG_IsOK(res1)) {
14586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
14587 }
14588 arg1 = reinterpret_cast< wxFont * >(argp1);
14589 {
14590 arg2 = wxString_in_helper(obj1);
14591 if (arg2 == NULL) SWIG_fail;
14592 temp2 = true;
14593 }
14594 {
14595 PyThreadState* __tstate = wxPyBeginAllowThreads();
14596 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
14597 wxPyEndAllowThreads(__tstate);
14598 if (PyErr_Occurred()) SWIG_fail;
14599 }
14600 {
14601 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14602 }
14603 {
14604 if (temp2)
14605 delete arg2;
14606 }
14607 return resultobj;
14608 fail:
14609 {
14610 if (temp2)
14611 delete arg2;
14612 }
14613 return NULL;
14614 }
14615
14616
14617 SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14618 PyObject *resultobj = 0;
14619 wxFont *arg1 = (wxFont *) 0 ;
14620 wxString result;
14621 void *argp1 = 0 ;
14622 int res1 = 0 ;
14623 PyObject *swig_obj[1] ;
14624
14625 if (!args) SWIG_fail;
14626 swig_obj[0] = args;
14627 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14628 if (!SWIG_IsOK(res1)) {
14629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
14630 }
14631 arg1 = reinterpret_cast< wxFont * >(argp1);
14632 {
14633 PyThreadState* __tstate = wxPyBeginAllowThreads();
14634 result = ((wxFont const *)arg1)->GetFamilyString();
14635 wxPyEndAllowThreads(__tstate);
14636 if (PyErr_Occurred()) SWIG_fail;
14637 }
14638 {
14639 #if wxUSE_UNICODE
14640 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14641 #else
14642 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14643 #endif
14644 }
14645 return resultobj;
14646 fail:
14647 return NULL;
14648 }
14649
14650
14651 SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14652 PyObject *resultobj = 0;
14653 wxFont *arg1 = (wxFont *) 0 ;
14654 wxString result;
14655 void *argp1 = 0 ;
14656 int res1 = 0 ;
14657 PyObject *swig_obj[1] ;
14658
14659 if (!args) SWIG_fail;
14660 swig_obj[0] = args;
14661 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14662 if (!SWIG_IsOK(res1)) {
14663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
14664 }
14665 arg1 = reinterpret_cast< wxFont * >(argp1);
14666 {
14667 PyThreadState* __tstate = wxPyBeginAllowThreads();
14668 result = ((wxFont const *)arg1)->GetStyleString();
14669 wxPyEndAllowThreads(__tstate);
14670 if (PyErr_Occurred()) SWIG_fail;
14671 }
14672 {
14673 #if wxUSE_UNICODE
14674 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14675 #else
14676 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14677 #endif
14678 }
14679 return resultobj;
14680 fail:
14681 return NULL;
14682 }
14683
14684
14685 SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14686 PyObject *resultobj = 0;
14687 wxFont *arg1 = (wxFont *) 0 ;
14688 wxString result;
14689 void *argp1 = 0 ;
14690 int res1 = 0 ;
14691 PyObject *swig_obj[1] ;
14692
14693 if (!args) SWIG_fail;
14694 swig_obj[0] = args;
14695 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14696 if (!SWIG_IsOK(res1)) {
14697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
14698 }
14699 arg1 = reinterpret_cast< wxFont * >(argp1);
14700 {
14701 PyThreadState* __tstate = wxPyBeginAllowThreads();
14702 result = ((wxFont const *)arg1)->GetWeightString();
14703 wxPyEndAllowThreads(__tstate);
14704 if (PyErr_Occurred()) SWIG_fail;
14705 }
14706 {
14707 #if wxUSE_UNICODE
14708 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14709 #else
14710 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14711 #endif
14712 }
14713 return resultobj;
14714 fail:
14715 return NULL;
14716 }
14717
14718
14719 SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14720 PyObject *resultobj = 0;
14721 wxFont *arg1 = (wxFont *) 0 ;
14722 bool arg2 = (bool) true ;
14723 void *argp1 = 0 ;
14724 int res1 = 0 ;
14725 bool val2 ;
14726 int ecode2 = 0 ;
14727 PyObject * obj0 = 0 ;
14728 PyObject * obj1 = 0 ;
14729 char * kwnames[] = {
14730 (char *) "self",(char *) "no", NULL
14731 };
14732
14733 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
14734 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14735 if (!SWIG_IsOK(res1)) {
14736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
14737 }
14738 arg1 = reinterpret_cast< wxFont * >(argp1);
14739 if (obj1) {
14740 ecode2 = SWIG_AsVal_bool(obj1, &val2);
14741 if (!SWIG_IsOK(ecode2)) {
14742 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
14743 }
14744 arg2 = static_cast< bool >(val2);
14745 }
14746 {
14747 PyThreadState* __tstate = wxPyBeginAllowThreads();
14748 (arg1)->SetNoAntiAliasing(arg2);
14749 wxPyEndAllowThreads(__tstate);
14750 if (PyErr_Occurred()) SWIG_fail;
14751 }
14752 resultobj = SWIG_Py_Void();
14753 return resultobj;
14754 fail:
14755 return NULL;
14756 }
14757
14758
14759 SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14760 PyObject *resultobj = 0;
14761 wxFont *arg1 = (wxFont *) 0 ;
14762 bool result;
14763 void *argp1 = 0 ;
14764 int res1 = 0 ;
14765 PyObject *swig_obj[1] ;
14766
14767 if (!args) SWIG_fail;
14768 swig_obj[0] = args;
14769 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14770 if (!SWIG_IsOK(res1)) {
14771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
14772 }
14773 arg1 = reinterpret_cast< wxFont * >(argp1);
14774 {
14775 PyThreadState* __tstate = wxPyBeginAllowThreads();
14776 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
14777 wxPyEndAllowThreads(__tstate);
14778 if (PyErr_Occurred()) SWIG_fail;
14779 }
14780 {
14781 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14782 }
14783 return resultobj;
14784 fail:
14785 return NULL;
14786 }
14787
14788
14789 SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14790 PyObject *resultobj = 0;
14791 wxFontEncoding result;
14792
14793 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
14794 {
14795 if (!wxPyCheckForApp()) SWIG_fail;
14796 PyThreadState* __tstate = wxPyBeginAllowThreads();
14797 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
14798 wxPyEndAllowThreads(__tstate);
14799 if (PyErr_Occurred()) SWIG_fail;
14800 }
14801 resultobj = SWIG_From_int(static_cast< int >(result));
14802 return resultobj;
14803 fail:
14804 return NULL;
14805 }
14806
14807
14808 SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14809 PyObject *resultobj = 0;
14810 wxFontEncoding arg1 ;
14811 int val1 ;
14812 int ecode1 = 0 ;
14813 PyObject * obj0 = 0 ;
14814 char * kwnames[] = {
14815 (char *) "encoding", NULL
14816 };
14817
14818 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
14819 ecode1 = SWIG_AsVal_int(obj0, &val1);
14820 if (!SWIG_IsOK(ecode1)) {
14821 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
14822 }
14823 arg1 = static_cast< wxFontEncoding >(val1);
14824 {
14825 if (!wxPyCheckForApp()) SWIG_fail;
14826 PyThreadState* __tstate = wxPyBeginAllowThreads();
14827 wxFont::SetDefaultEncoding(arg1);
14828 wxPyEndAllowThreads(__tstate);
14829 if (PyErr_Occurred()) SWIG_fail;
14830 }
14831 resultobj = SWIG_Py_Void();
14832 return resultobj;
14833 fail:
14834 return NULL;
14835 }
14836
14837
14838 SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14839 PyObject *obj;
14840 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14841 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
14842 return SWIG_Py_Void();
14843 }
14844
14845 SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14846 return SWIG_Python_InitShadowInstance(args);
14847 }
14848
14849 SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14850 PyObject *resultobj = 0;
14851 wxPyFontEnumerator *result = 0 ;
14852
14853 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
14854 {
14855 if (!wxPyCheckForApp()) SWIG_fail;
14856 PyThreadState* __tstate = wxPyBeginAllowThreads();
14857 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
14858 wxPyEndAllowThreads(__tstate);
14859 if (PyErr_Occurred()) SWIG_fail;
14860 }
14861 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
14862 return resultobj;
14863 fail:
14864 return NULL;
14865 }
14866
14867
14868 SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14869 PyObject *resultobj = 0;
14870 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
14871 void *argp1 = 0 ;
14872 int res1 = 0 ;
14873 PyObject *swig_obj[1] ;
14874
14875 if (!args) SWIG_fail;
14876 swig_obj[0] = args;
14877 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
14878 if (!SWIG_IsOK(res1)) {
14879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
14880 }
14881 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
14882 {
14883 PyThreadState* __tstate = wxPyBeginAllowThreads();
14884 delete arg1;
14885
14886 wxPyEndAllowThreads(__tstate);
14887 if (PyErr_Occurred()) SWIG_fail;
14888 }
14889 resultobj = SWIG_Py_Void();
14890 return resultobj;
14891 fail:
14892 return NULL;
14893 }
14894
14895
14896 SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14897 PyObject *resultobj = 0;
14898 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
14899 PyObject *arg2 = (PyObject *) 0 ;
14900 PyObject *arg3 = (PyObject *) 0 ;
14901 bool arg4 ;
14902 void *argp1 = 0 ;
14903 int res1 = 0 ;
14904 bool val4 ;
14905 int ecode4 = 0 ;
14906 PyObject * obj0 = 0 ;
14907 PyObject * obj1 = 0 ;
14908 PyObject * obj2 = 0 ;
14909 PyObject * obj3 = 0 ;
14910 char * kwnames[] = {
14911 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
14912 };
14913
14914 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14915 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
14916 if (!SWIG_IsOK(res1)) {
14917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
14918 }
14919 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
14920 arg2 = obj1;
14921 arg3 = obj2;
14922 ecode4 = SWIG_AsVal_bool(obj3, &val4);
14923 if (!SWIG_IsOK(ecode4)) {
14924 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'");
14925 }
14926 arg4 = static_cast< bool >(val4);
14927 {
14928 PyThreadState* __tstate = wxPyBeginAllowThreads();
14929 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
14930 wxPyEndAllowThreads(__tstate);
14931 if (PyErr_Occurred()) SWIG_fail;
14932 }
14933 resultobj = SWIG_Py_Void();
14934 return resultobj;
14935 fail:
14936 return NULL;
14937 }
14938
14939
14940 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14941 PyObject *resultobj = 0;
14942 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
14943 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
14944 bool arg3 = (bool) false ;
14945 bool result;
14946 void *argp1 = 0 ;
14947 int res1 = 0 ;
14948 int val2 ;
14949 int ecode2 = 0 ;
14950 bool val3 ;
14951 int ecode3 = 0 ;
14952 PyObject * obj0 = 0 ;
14953 PyObject * obj1 = 0 ;
14954 PyObject * obj2 = 0 ;
14955 char * kwnames[] = {
14956 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
14957 };
14958
14959 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14960 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
14961 if (!SWIG_IsOK(res1)) {
14962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
14963 }
14964 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
14965 if (obj1) {
14966 ecode2 = SWIG_AsVal_int(obj1, &val2);
14967 if (!SWIG_IsOK(ecode2)) {
14968 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14969 }
14970 arg2 = static_cast< wxFontEncoding >(val2);
14971 }
14972 if (obj2) {
14973 ecode3 = SWIG_AsVal_bool(obj2, &val3);
14974 if (!SWIG_IsOK(ecode3)) {
14975 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
14976 }
14977 arg3 = static_cast< bool >(val3);
14978 }
14979 {
14980 PyThreadState* __tstate = wxPyBeginAllowThreads();
14981 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
14982 wxPyEndAllowThreads(__tstate);
14983 if (PyErr_Occurred()) SWIG_fail;
14984 }
14985 {
14986 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14987 }
14988 return resultobj;
14989 fail:
14990 return NULL;
14991 }
14992
14993
14994 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14995 PyObject *resultobj = 0;
14996 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
14997 wxString const &arg2_defvalue = wxPyEmptyString ;
14998 wxString *arg2 = (wxString *) &arg2_defvalue ;
14999 bool result;
15000 void *argp1 = 0 ;
15001 int res1 = 0 ;
15002 bool temp2 = false ;
15003 PyObject * obj0 = 0 ;
15004 PyObject * obj1 = 0 ;
15005 char * kwnames[] = {
15006 (char *) "self",(char *) "facename", NULL
15007 };
15008
15009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
15010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15011 if (!SWIG_IsOK(res1)) {
15012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15013 }
15014 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15015 if (obj1) {
15016 {
15017 arg2 = wxString_in_helper(obj1);
15018 if (arg2 == NULL) SWIG_fail;
15019 temp2 = true;
15020 }
15021 }
15022 {
15023 PyThreadState* __tstate = wxPyBeginAllowThreads();
15024 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
15025 wxPyEndAllowThreads(__tstate);
15026 if (PyErr_Occurred()) SWIG_fail;
15027 }
15028 {
15029 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15030 }
15031 {
15032 if (temp2)
15033 delete arg2;
15034 }
15035 return resultobj;
15036 fail:
15037 {
15038 if (temp2)
15039 delete arg2;
15040 }
15041 return NULL;
15042 }
15043
15044
15045 SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15046 PyObject *resultobj = 0;
15047 PyObject *result = 0 ;
15048
15049 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
15050 {
15051 PyThreadState* __tstate = wxPyBeginAllowThreads();
15052 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
15053 wxPyEndAllowThreads(__tstate);
15054 if (PyErr_Occurred()) SWIG_fail;
15055 }
15056 resultobj = result;
15057 return resultobj;
15058 fail:
15059 return NULL;
15060 }
15061
15062
15063 SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15064 PyObject *resultobj = 0;
15065 PyObject *result = 0 ;
15066
15067 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
15068 {
15069 PyThreadState* __tstate = wxPyBeginAllowThreads();
15070 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
15071 wxPyEndAllowThreads(__tstate);
15072 if (PyErr_Occurred()) SWIG_fail;
15073 }
15074 resultobj = result;
15075 return resultobj;
15076 fail:
15077 return NULL;
15078 }
15079
15080
15081 SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15082 PyObject *resultobj = 0;
15083 wxString *arg1 = 0 ;
15084 bool result;
15085 bool temp1 = false ;
15086 PyObject * obj0 = 0 ;
15087 char * kwnames[] = {
15088 (char *) "str", NULL
15089 };
15090
15091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
15092 {
15093 arg1 = wxString_in_helper(obj0);
15094 if (arg1 == NULL) SWIG_fail;
15095 temp1 = true;
15096 }
15097 {
15098 PyThreadState* __tstate = wxPyBeginAllowThreads();
15099 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
15100 wxPyEndAllowThreads(__tstate);
15101 if (PyErr_Occurred()) SWIG_fail;
15102 }
15103 {
15104 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15105 }
15106 {
15107 if (temp1)
15108 delete arg1;
15109 }
15110 return resultobj;
15111 fail:
15112 {
15113 if (temp1)
15114 delete arg1;
15115 }
15116 return NULL;
15117 }
15118
15119
15120 SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15121 PyObject *obj;
15122 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15123 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
15124 return SWIG_Py_Void();
15125 }
15126
15127 SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15128 return SWIG_Python_InitShadowInstance(args);
15129 }
15130
15131 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15132 PyObject *resultobj = 0;
15133 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15134 int arg2 ;
15135 void *argp1 = 0 ;
15136 int res1 = 0 ;
15137 int val2 ;
15138 int ecode2 = 0 ;
15139 PyObject *swig_obj[2] ;
15140
15141 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
15142 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15143 if (!SWIG_IsOK(res1)) {
15144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15145 }
15146 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15147 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
15148 if (!SWIG_IsOK(ecode2)) {
15149 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
15150 }
15151 arg2 = static_cast< int >(val2);
15152 if (arg1) (arg1)->Language = arg2;
15153
15154 resultobj = SWIG_Py_Void();
15155 return resultobj;
15156 fail:
15157 return NULL;
15158 }
15159
15160
15161 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15162 PyObject *resultobj = 0;
15163 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15164 int result;
15165 void *argp1 = 0 ;
15166 int res1 = 0 ;
15167 PyObject *swig_obj[1] ;
15168
15169 if (!args) SWIG_fail;
15170 swig_obj[0] = args;
15171 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15172 if (!SWIG_IsOK(res1)) {
15173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15174 }
15175 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15176 result = (int) ((arg1)->Language);
15177 resultobj = SWIG_From_int(static_cast< int >(result));
15178 return resultobj;
15179 fail:
15180 return NULL;
15181 }
15182
15183
15184 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15185 PyObject *resultobj = 0;
15186 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15187 wxString *arg2 = (wxString *) 0 ;
15188 void *argp1 = 0 ;
15189 int res1 = 0 ;
15190 bool temp2 = false ;
15191 PyObject *swig_obj[2] ;
15192
15193 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
15194 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15195 if (!SWIG_IsOK(res1)) {
15196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15197 }
15198 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15199 {
15200 arg2 = wxString_in_helper(swig_obj[1]);
15201 if (arg2 == NULL) SWIG_fail;
15202 temp2 = true;
15203 }
15204 if (arg1) (arg1)->CanonicalName = *arg2;
15205
15206 resultobj = SWIG_Py_Void();
15207 {
15208 if (temp2)
15209 delete arg2;
15210 }
15211 return resultobj;
15212 fail:
15213 {
15214 if (temp2)
15215 delete arg2;
15216 }
15217 return NULL;
15218 }
15219
15220
15221 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15222 PyObject *resultobj = 0;
15223 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15224 wxString *result = 0 ;
15225 void *argp1 = 0 ;
15226 int res1 = 0 ;
15227 PyObject *swig_obj[1] ;
15228
15229 if (!args) SWIG_fail;
15230 swig_obj[0] = args;
15231 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15232 if (!SWIG_IsOK(res1)) {
15233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15234 }
15235 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15236 result = (wxString *)& ((arg1)->CanonicalName);
15237 {
15238 #if wxUSE_UNICODE
15239 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15240 #else
15241 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15242 #endif
15243 }
15244 return resultobj;
15245 fail:
15246 return NULL;
15247 }
15248
15249
15250 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15251 PyObject *resultobj = 0;
15252 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15253 wxString *arg2 = (wxString *) 0 ;
15254 void *argp1 = 0 ;
15255 int res1 = 0 ;
15256 bool temp2 = false ;
15257 PyObject *swig_obj[2] ;
15258
15259 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
15260 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15261 if (!SWIG_IsOK(res1)) {
15262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15263 }
15264 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15265 {
15266 arg2 = wxString_in_helper(swig_obj[1]);
15267 if (arg2 == NULL) SWIG_fail;
15268 temp2 = true;
15269 }
15270 if (arg1) (arg1)->Description = *arg2;
15271
15272 resultobj = SWIG_Py_Void();
15273 {
15274 if (temp2)
15275 delete arg2;
15276 }
15277 return resultobj;
15278 fail:
15279 {
15280 if (temp2)
15281 delete arg2;
15282 }
15283 return NULL;
15284 }
15285
15286
15287 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15288 PyObject *resultobj = 0;
15289 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15290 wxString *result = 0 ;
15291 void *argp1 = 0 ;
15292 int res1 = 0 ;
15293 PyObject *swig_obj[1] ;
15294
15295 if (!args) SWIG_fail;
15296 swig_obj[0] = args;
15297 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15298 if (!SWIG_IsOK(res1)) {
15299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15300 }
15301 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15302 result = (wxString *)& ((arg1)->Description);
15303 {
15304 #if wxUSE_UNICODE
15305 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15306 #else
15307 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15308 #endif
15309 }
15310 return resultobj;
15311 fail:
15312 return NULL;
15313 }
15314
15315
15316 SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15317 PyObject *obj;
15318 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15319 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
15320 return SWIG_Py_Void();
15321 }
15322
15323 SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15324 PyObject *resultobj = 0;
15325 int arg1 = (int) -1 ;
15326 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
15327 wxLocale *result = 0 ;
15328 int val1 ;
15329 int ecode1 = 0 ;
15330 int val2 ;
15331 int ecode2 = 0 ;
15332 PyObject * obj0 = 0 ;
15333 PyObject * obj1 = 0 ;
15334 char * kwnames[] = {
15335 (char *) "language",(char *) "flags", NULL
15336 };
15337
15338 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
15339 if (obj0) {
15340 ecode1 = SWIG_AsVal_int(obj0, &val1);
15341 if (!SWIG_IsOK(ecode1)) {
15342 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
15343 }
15344 arg1 = static_cast< int >(val1);
15345 }
15346 if (obj1) {
15347 ecode2 = SWIG_AsVal_int(obj1, &val2);
15348 if (!SWIG_IsOK(ecode2)) {
15349 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
15350 }
15351 arg2 = static_cast< int >(val2);
15352 }
15353 {
15354 PyThreadState* __tstate = wxPyBeginAllowThreads();
15355 result = (wxLocale *)new_wxLocale(arg1,arg2);
15356 wxPyEndAllowThreads(__tstate);
15357 if (PyErr_Occurred()) SWIG_fail;
15358 }
15359 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
15360 return resultobj;
15361 fail:
15362 return NULL;
15363 }
15364
15365
15366 SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15367 PyObject *resultobj = 0;
15368 wxLocale *arg1 = (wxLocale *) 0 ;
15369 void *argp1 = 0 ;
15370 int res1 = 0 ;
15371 PyObject *swig_obj[1] ;
15372
15373 if (!args) SWIG_fail;
15374 swig_obj[0] = args;
15375 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
15376 if (!SWIG_IsOK(res1)) {
15377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
15378 }
15379 arg1 = reinterpret_cast< wxLocale * >(argp1);
15380 {
15381 PyThreadState* __tstate = wxPyBeginAllowThreads();
15382 delete arg1;
15383
15384 wxPyEndAllowThreads(__tstate);
15385 if (PyErr_Occurred()) SWIG_fail;
15386 }
15387 resultobj = SWIG_Py_Void();
15388 return resultobj;
15389 fail:
15390 return NULL;
15391 }
15392
15393
15394 SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15395 PyObject *resultobj = 0;
15396 wxLocale *arg1 = (wxLocale *) 0 ;
15397 wxString *arg2 = 0 ;
15398 wxString const &arg3_defvalue = wxPyEmptyString ;
15399 wxString *arg3 = (wxString *) &arg3_defvalue ;
15400 wxString const &arg4_defvalue = wxPyEmptyString ;
15401 wxString *arg4 = (wxString *) &arg4_defvalue ;
15402 bool arg5 = (bool) true ;
15403 bool arg6 = (bool) false ;
15404 bool result;
15405 void *argp1 = 0 ;
15406 int res1 = 0 ;
15407 bool temp2 = false ;
15408 bool temp3 = false ;
15409 bool temp4 = false ;
15410 bool val5 ;
15411 int ecode5 = 0 ;
15412 bool val6 ;
15413 int ecode6 = 0 ;
15414 PyObject * obj0 = 0 ;
15415 PyObject * obj1 = 0 ;
15416 PyObject * obj2 = 0 ;
15417 PyObject * obj3 = 0 ;
15418 PyObject * obj4 = 0 ;
15419 PyObject * obj5 = 0 ;
15420 char * kwnames[] = {
15421 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
15422 };
15423
15424 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
15425 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15426 if (!SWIG_IsOK(res1)) {
15427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
15428 }
15429 arg1 = reinterpret_cast< wxLocale * >(argp1);
15430 {
15431 arg2 = wxString_in_helper(obj1);
15432 if (arg2 == NULL) SWIG_fail;
15433 temp2 = true;
15434 }
15435 if (obj2) {
15436 {
15437 arg3 = wxString_in_helper(obj2);
15438 if (arg3 == NULL) SWIG_fail;
15439 temp3 = true;
15440 }
15441 }
15442 if (obj3) {
15443 {
15444 arg4 = wxString_in_helper(obj3);
15445 if (arg4 == NULL) SWIG_fail;
15446 temp4 = true;
15447 }
15448 }
15449 if (obj4) {
15450 ecode5 = SWIG_AsVal_bool(obj4, &val5);
15451 if (!SWIG_IsOK(ecode5)) {
15452 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
15453 }
15454 arg5 = static_cast< bool >(val5);
15455 }
15456 if (obj5) {
15457 ecode6 = SWIG_AsVal_bool(obj5, &val6);
15458 if (!SWIG_IsOK(ecode6)) {
15459 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
15460 }
15461 arg6 = static_cast< bool >(val6);
15462 }
15463 {
15464 PyThreadState* __tstate = wxPyBeginAllowThreads();
15465 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
15466 wxPyEndAllowThreads(__tstate);
15467 if (PyErr_Occurred()) SWIG_fail;
15468 }
15469 {
15470 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15471 }
15472 {
15473 if (temp2)
15474 delete arg2;
15475 }
15476 {
15477 if (temp3)
15478 delete arg3;
15479 }
15480 {
15481 if (temp4)
15482 delete arg4;
15483 }
15484 return resultobj;
15485 fail:
15486 {
15487 if (temp2)
15488 delete arg2;
15489 }
15490 {
15491 if (temp3)
15492 delete arg3;
15493 }
15494 {
15495 if (temp4)
15496 delete arg4;
15497 }
15498 return NULL;
15499 }
15500
15501
15502 SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15503 PyObject *resultobj = 0;
15504 wxLocale *arg1 = (wxLocale *) 0 ;
15505 int arg2 = (int) wxLANGUAGE_DEFAULT ;
15506 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
15507 bool result;
15508 void *argp1 = 0 ;
15509 int res1 = 0 ;
15510 int val2 ;
15511 int ecode2 = 0 ;
15512 int val3 ;
15513 int ecode3 = 0 ;
15514 PyObject * obj0 = 0 ;
15515 PyObject * obj1 = 0 ;
15516 PyObject * obj2 = 0 ;
15517 char * kwnames[] = {
15518 (char *) "self",(char *) "language",(char *) "flags", NULL
15519 };
15520
15521 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15522 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15523 if (!SWIG_IsOK(res1)) {
15524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
15525 }
15526 arg1 = reinterpret_cast< wxLocale * >(argp1);
15527 if (obj1) {
15528 ecode2 = SWIG_AsVal_int(obj1, &val2);
15529 if (!SWIG_IsOK(ecode2)) {
15530 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
15531 }
15532 arg2 = static_cast< int >(val2);
15533 }
15534 if (obj2) {
15535 ecode3 = SWIG_AsVal_int(obj2, &val3);
15536 if (!SWIG_IsOK(ecode3)) {
15537 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
15538 }
15539 arg3 = static_cast< int >(val3);
15540 }
15541 {
15542 PyThreadState* __tstate = wxPyBeginAllowThreads();
15543 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
15544 wxPyEndAllowThreads(__tstate);
15545 if (PyErr_Occurred()) SWIG_fail;
15546 }
15547 {
15548 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15549 }
15550 return resultobj;
15551 fail:
15552 return NULL;
15553 }
15554
15555
15556 SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15557 PyObject *resultobj = 0;
15558 int result;
15559
15560 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
15561 {
15562 PyThreadState* __tstate = wxPyBeginAllowThreads();
15563 result = (int)wxLocale::GetSystemLanguage();
15564 wxPyEndAllowThreads(__tstate);
15565 if (PyErr_Occurred()) SWIG_fail;
15566 }
15567 resultobj = SWIG_From_int(static_cast< int >(result));
15568 return resultobj;
15569 fail:
15570 return NULL;
15571 }
15572
15573
15574 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15575 PyObject *resultobj = 0;
15576 wxFontEncoding result;
15577
15578 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
15579 {
15580 PyThreadState* __tstate = wxPyBeginAllowThreads();
15581 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
15582 wxPyEndAllowThreads(__tstate);
15583 if (PyErr_Occurred()) SWIG_fail;
15584 }
15585 resultobj = SWIG_From_int(static_cast< int >(result));
15586 return resultobj;
15587 fail:
15588 return NULL;
15589 }
15590
15591
15592 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15593 PyObject *resultobj = 0;
15594 wxString result;
15595
15596 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
15597 {
15598 PyThreadState* __tstate = wxPyBeginAllowThreads();
15599 result = wxLocale::GetSystemEncodingName();
15600 wxPyEndAllowThreads(__tstate);
15601 if (PyErr_Occurred()) SWIG_fail;
15602 }
15603 {
15604 #if wxUSE_UNICODE
15605 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15606 #else
15607 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15608 #endif
15609 }
15610 return resultobj;
15611 fail:
15612 return NULL;
15613 }
15614
15615
15616 SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15617 PyObject *resultobj = 0;
15618 wxLocale *arg1 = (wxLocale *) 0 ;
15619 bool result;
15620 void *argp1 = 0 ;
15621 int res1 = 0 ;
15622 PyObject *swig_obj[1] ;
15623
15624 if (!args) SWIG_fail;
15625 swig_obj[0] = args;
15626 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15627 if (!SWIG_IsOK(res1)) {
15628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
15629 }
15630 arg1 = reinterpret_cast< wxLocale * >(argp1);
15631 {
15632 PyThreadState* __tstate = wxPyBeginAllowThreads();
15633 result = (bool)((wxLocale const *)arg1)->IsOk();
15634 wxPyEndAllowThreads(__tstate);
15635 if (PyErr_Occurred()) SWIG_fail;
15636 }
15637 {
15638 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15639 }
15640 return resultobj;
15641 fail:
15642 return NULL;
15643 }
15644
15645
15646 SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15647 PyObject *resultobj = 0;
15648 wxLocale *arg1 = (wxLocale *) 0 ;
15649 wxString result;
15650 void *argp1 = 0 ;
15651 int res1 = 0 ;
15652 PyObject *swig_obj[1] ;
15653
15654 if (!args) SWIG_fail;
15655 swig_obj[0] = args;
15656 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15657 if (!SWIG_IsOK(res1)) {
15658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
15659 }
15660 arg1 = reinterpret_cast< wxLocale * >(argp1);
15661 {
15662 PyThreadState* __tstate = wxPyBeginAllowThreads();
15663 result = ((wxLocale const *)arg1)->GetLocale();
15664 wxPyEndAllowThreads(__tstate);
15665 if (PyErr_Occurred()) SWIG_fail;
15666 }
15667 {
15668 #if wxUSE_UNICODE
15669 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15670 #else
15671 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15672 #endif
15673 }
15674 return resultobj;
15675 fail:
15676 return NULL;
15677 }
15678
15679
15680 SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15681 PyObject *resultobj = 0;
15682 wxLocale *arg1 = (wxLocale *) 0 ;
15683 int result;
15684 void *argp1 = 0 ;
15685 int res1 = 0 ;
15686 PyObject *swig_obj[1] ;
15687
15688 if (!args) SWIG_fail;
15689 swig_obj[0] = args;
15690 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15691 if (!SWIG_IsOK(res1)) {
15692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
15693 }
15694 arg1 = reinterpret_cast< wxLocale * >(argp1);
15695 {
15696 PyThreadState* __tstate = wxPyBeginAllowThreads();
15697 result = (int)((wxLocale const *)arg1)->GetLanguage();
15698 wxPyEndAllowThreads(__tstate);
15699 if (PyErr_Occurred()) SWIG_fail;
15700 }
15701 resultobj = SWIG_From_int(static_cast< int >(result));
15702 return resultobj;
15703 fail:
15704 return NULL;
15705 }
15706
15707
15708 SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15709 PyObject *resultobj = 0;
15710 wxLocale *arg1 = (wxLocale *) 0 ;
15711 wxString result;
15712 void *argp1 = 0 ;
15713 int res1 = 0 ;
15714 PyObject *swig_obj[1] ;
15715
15716 if (!args) SWIG_fail;
15717 swig_obj[0] = args;
15718 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15719 if (!SWIG_IsOK(res1)) {
15720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
15721 }
15722 arg1 = reinterpret_cast< wxLocale * >(argp1);
15723 {
15724 PyThreadState* __tstate = wxPyBeginAllowThreads();
15725 result = ((wxLocale const *)arg1)->GetSysName();
15726 wxPyEndAllowThreads(__tstate);
15727 if (PyErr_Occurred()) SWIG_fail;
15728 }
15729 {
15730 #if wxUSE_UNICODE
15731 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15732 #else
15733 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15734 #endif
15735 }
15736 return resultobj;
15737 fail:
15738 return NULL;
15739 }
15740
15741
15742 SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15743 PyObject *resultobj = 0;
15744 wxLocale *arg1 = (wxLocale *) 0 ;
15745 wxString result;
15746 void *argp1 = 0 ;
15747 int res1 = 0 ;
15748 PyObject *swig_obj[1] ;
15749
15750 if (!args) SWIG_fail;
15751 swig_obj[0] = args;
15752 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15753 if (!SWIG_IsOK(res1)) {
15754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
15755 }
15756 arg1 = reinterpret_cast< wxLocale * >(argp1);
15757 {
15758 PyThreadState* __tstate = wxPyBeginAllowThreads();
15759 result = ((wxLocale const *)arg1)->GetCanonicalName();
15760 wxPyEndAllowThreads(__tstate);
15761 if (PyErr_Occurred()) SWIG_fail;
15762 }
15763 {
15764 #if wxUSE_UNICODE
15765 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15766 #else
15767 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15768 #endif
15769 }
15770 return resultobj;
15771 fail:
15772 return NULL;
15773 }
15774
15775
15776 SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15777 PyObject *resultobj = 0;
15778 wxString *arg1 = 0 ;
15779 bool temp1 = false ;
15780 PyObject * obj0 = 0 ;
15781 char * kwnames[] = {
15782 (char *) "prefix", NULL
15783 };
15784
15785 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
15786 {
15787 arg1 = wxString_in_helper(obj0);
15788 if (arg1 == NULL) SWIG_fail;
15789 temp1 = true;
15790 }
15791 {
15792 PyThreadState* __tstate = wxPyBeginAllowThreads();
15793 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
15794 wxPyEndAllowThreads(__tstate);
15795 if (PyErr_Occurred()) SWIG_fail;
15796 }
15797 resultobj = SWIG_Py_Void();
15798 {
15799 if (temp1)
15800 delete arg1;
15801 }
15802 return resultobj;
15803 fail:
15804 {
15805 if (temp1)
15806 delete arg1;
15807 }
15808 return NULL;
15809 }
15810
15811
15812 SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15813 PyObject *resultobj = 0;
15814 wxLocale *arg1 = (wxLocale *) 0 ;
15815 wxString *arg2 = 0 ;
15816 bool result;
15817 void *argp1 = 0 ;
15818 int res1 = 0 ;
15819 bool temp2 = false ;
15820 PyObject * obj0 = 0 ;
15821 PyObject * obj1 = 0 ;
15822 char * kwnames[] = {
15823 (char *) "self",(char *) "szDomain", NULL
15824 };
15825
15826 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
15827 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15828 if (!SWIG_IsOK(res1)) {
15829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
15830 }
15831 arg1 = reinterpret_cast< wxLocale * >(argp1);
15832 {
15833 arg2 = wxString_in_helper(obj1);
15834 if (arg2 == NULL) SWIG_fail;
15835 temp2 = true;
15836 }
15837 {
15838 PyThreadState* __tstate = wxPyBeginAllowThreads();
15839 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
15840 wxPyEndAllowThreads(__tstate);
15841 if (PyErr_Occurred()) SWIG_fail;
15842 }
15843 {
15844 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15845 }
15846 {
15847 if (temp2)
15848 delete arg2;
15849 }
15850 return resultobj;
15851 fail:
15852 {
15853 if (temp2)
15854 delete arg2;
15855 }
15856 return NULL;
15857 }
15858
15859
15860 SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15861 PyObject *resultobj = 0;
15862 wxLocale *arg1 = (wxLocale *) 0 ;
15863 wxString *arg2 = 0 ;
15864 bool result;
15865 void *argp1 = 0 ;
15866 int res1 = 0 ;
15867 bool temp2 = false ;
15868 PyObject * obj0 = 0 ;
15869 PyObject * obj1 = 0 ;
15870 char * kwnames[] = {
15871 (char *) "self",(char *) "szDomain", NULL
15872 };
15873
15874 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
15875 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15876 if (!SWIG_IsOK(res1)) {
15877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
15878 }
15879 arg1 = reinterpret_cast< wxLocale * >(argp1);
15880 {
15881 arg2 = wxString_in_helper(obj1);
15882 if (arg2 == NULL) SWIG_fail;
15883 temp2 = true;
15884 }
15885 {
15886 PyThreadState* __tstate = wxPyBeginAllowThreads();
15887 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
15888 wxPyEndAllowThreads(__tstate);
15889 if (PyErr_Occurred()) SWIG_fail;
15890 }
15891 {
15892 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15893 }
15894 {
15895 if (temp2)
15896 delete arg2;
15897 }
15898 return resultobj;
15899 fail:
15900 {
15901 if (temp2)
15902 delete arg2;
15903 }
15904 return NULL;
15905 }
15906
15907
15908 SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15909 PyObject *resultobj = 0;
15910 int arg1 ;
15911 wxLanguageInfo *result = 0 ;
15912 int val1 ;
15913 int ecode1 = 0 ;
15914 PyObject * obj0 = 0 ;
15915 char * kwnames[] = {
15916 (char *) "lang", NULL
15917 };
15918
15919 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
15920 ecode1 = SWIG_AsVal_int(obj0, &val1);
15921 if (!SWIG_IsOK(ecode1)) {
15922 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
15923 }
15924 arg1 = static_cast< int >(val1);
15925 {
15926 PyThreadState* __tstate = wxPyBeginAllowThreads();
15927 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
15928 wxPyEndAllowThreads(__tstate);
15929 if (PyErr_Occurred()) SWIG_fail;
15930 }
15931 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15932 return resultobj;
15933 fail:
15934 return NULL;
15935 }
15936
15937
15938 SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15939 PyObject *resultobj = 0;
15940 int arg1 ;
15941 wxString result;
15942 int val1 ;
15943 int ecode1 = 0 ;
15944 PyObject * obj0 = 0 ;
15945 char * kwnames[] = {
15946 (char *) "lang", NULL
15947 };
15948
15949 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
15950 ecode1 = SWIG_AsVal_int(obj0, &val1);
15951 if (!SWIG_IsOK(ecode1)) {
15952 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
15953 }
15954 arg1 = static_cast< int >(val1);
15955 {
15956 PyThreadState* __tstate = wxPyBeginAllowThreads();
15957 result = wxLocale::GetLanguageName(arg1);
15958 wxPyEndAllowThreads(__tstate);
15959 if (PyErr_Occurred()) SWIG_fail;
15960 }
15961 {
15962 #if wxUSE_UNICODE
15963 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15964 #else
15965 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15966 #endif
15967 }
15968 return resultobj;
15969 fail:
15970 return NULL;
15971 }
15972
15973
15974 SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15975 PyObject *resultobj = 0;
15976 wxString *arg1 = 0 ;
15977 wxLanguageInfo *result = 0 ;
15978 bool temp1 = false ;
15979 PyObject * obj0 = 0 ;
15980 char * kwnames[] = {
15981 (char *) "locale", NULL
15982 };
15983
15984 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
15985 {
15986 arg1 = wxString_in_helper(obj0);
15987 if (arg1 == NULL) SWIG_fail;
15988 temp1 = true;
15989 }
15990 {
15991 PyThreadState* __tstate = wxPyBeginAllowThreads();
15992 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
15993 wxPyEndAllowThreads(__tstate);
15994 if (PyErr_Occurred()) SWIG_fail;
15995 }
15996 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15997 {
15998 if (temp1)
15999 delete arg1;
16000 }
16001 return resultobj;
16002 fail:
16003 {
16004 if (temp1)
16005 delete arg1;
16006 }
16007 return NULL;
16008 }
16009
16010
16011 SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16012 PyObject *resultobj = 0;
16013 wxLanguageInfo *arg1 = 0 ;
16014 void *argp1 = 0 ;
16015 int res1 = 0 ;
16016 PyObject * obj0 = 0 ;
16017 char * kwnames[] = {
16018 (char *) "info", NULL
16019 };
16020
16021 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
16022 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
16023 if (!SWIG_IsOK(res1)) {
16024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16025 }
16026 if (!argp1) {
16027 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16028 }
16029 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16030 {
16031 PyThreadState* __tstate = wxPyBeginAllowThreads();
16032 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
16033 wxPyEndAllowThreads(__tstate);
16034 if (PyErr_Occurred()) SWIG_fail;
16035 }
16036 resultobj = SWIG_Py_Void();
16037 return resultobj;
16038 fail:
16039 return NULL;
16040 }
16041
16042
16043 SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16044 PyObject *resultobj = 0;
16045 wxLocale *arg1 = (wxLocale *) 0 ;
16046 wxString *arg2 = 0 ;
16047 wxString const &arg3_defvalue = wxPyEmptyString ;
16048 wxString *arg3 = (wxString *) &arg3_defvalue ;
16049 wxString result;
16050 void *argp1 = 0 ;
16051 int res1 = 0 ;
16052 bool temp2 = false ;
16053 bool temp3 = false ;
16054 PyObject * obj0 = 0 ;
16055 PyObject * obj1 = 0 ;
16056 PyObject * obj2 = 0 ;
16057 char * kwnames[] = {
16058 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16059 };
16060
16061 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16062 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16063 if (!SWIG_IsOK(res1)) {
16064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
16065 }
16066 arg1 = reinterpret_cast< wxLocale * >(argp1);
16067 {
16068 arg2 = wxString_in_helper(obj1);
16069 if (arg2 == NULL) SWIG_fail;
16070 temp2 = true;
16071 }
16072 if (obj2) {
16073 {
16074 arg3 = wxString_in_helper(obj2);
16075 if (arg3 == NULL) SWIG_fail;
16076 temp3 = true;
16077 }
16078 }
16079 {
16080 PyThreadState* __tstate = wxPyBeginAllowThreads();
16081 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
16082 wxPyEndAllowThreads(__tstate);
16083 if (PyErr_Occurred()) SWIG_fail;
16084 }
16085 {
16086 #if wxUSE_UNICODE
16087 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16088 #else
16089 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16090 #endif
16091 }
16092 {
16093 if (temp2)
16094 delete arg2;
16095 }
16096 {
16097 if (temp3)
16098 delete arg3;
16099 }
16100 return resultobj;
16101 fail:
16102 {
16103 if (temp2)
16104 delete arg2;
16105 }
16106 {
16107 if (temp3)
16108 delete arg3;
16109 }
16110 return NULL;
16111 }
16112
16113
16114 SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16115 PyObject *resultobj = 0;
16116 wxLocale *arg1 = (wxLocale *) 0 ;
16117 wxString *result = 0 ;
16118 void *argp1 = 0 ;
16119 int res1 = 0 ;
16120 PyObject *swig_obj[1] ;
16121
16122 if (!args) SWIG_fail;
16123 swig_obj[0] = args;
16124 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16125 if (!SWIG_IsOK(res1)) {
16126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16127 }
16128 arg1 = reinterpret_cast< wxLocale * >(argp1);
16129 {
16130 PyThreadState* __tstate = wxPyBeginAllowThreads();
16131 {
16132 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
16133 result = (wxString *) &_result_ref;
16134 }
16135 wxPyEndAllowThreads(__tstate);
16136 if (PyErr_Occurred()) SWIG_fail;
16137 }
16138 {
16139 #if wxUSE_UNICODE
16140 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16141 #else
16142 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16143 #endif
16144 }
16145 return resultobj;
16146 fail:
16147 return NULL;
16148 }
16149
16150
16151 SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16152 PyObject *obj;
16153 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16154 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
16155 return SWIG_Py_Void();
16156 }
16157
16158 SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16159 return SWIG_Python_InitShadowInstance(args);
16160 }
16161
16162 SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16163 PyObject *resultobj = 0;
16164 int arg1 = (int) -1 ;
16165 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16166 wxPyLocale *result = 0 ;
16167 int val1 ;
16168 int ecode1 = 0 ;
16169 int val2 ;
16170 int ecode2 = 0 ;
16171 PyObject * obj0 = 0 ;
16172 PyObject * obj1 = 0 ;
16173 char * kwnames[] = {
16174 (char *) "language",(char *) "flags", NULL
16175 };
16176
16177 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail;
16178 if (obj0) {
16179 ecode1 = SWIG_AsVal_int(obj0, &val1);
16180 if (!SWIG_IsOK(ecode1)) {
16181 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'");
16182 }
16183 arg1 = static_cast< int >(val1);
16184 }
16185 if (obj1) {
16186 ecode2 = SWIG_AsVal_int(obj1, &val2);
16187 if (!SWIG_IsOK(ecode2)) {
16188 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'");
16189 }
16190 arg2 = static_cast< int >(val2);
16191 }
16192 {
16193 PyThreadState* __tstate = wxPyBeginAllowThreads();
16194 result = (wxPyLocale *)new_wxPyLocale(arg1,arg2);
16195 wxPyEndAllowThreads(__tstate);
16196 if (PyErr_Occurred()) SWIG_fail;
16197 }
16198 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 );
16199 return resultobj;
16200 fail:
16201 return NULL;
16202 }
16203
16204
16205 SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16206 PyObject *resultobj = 0;
16207 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16208 void *argp1 = 0 ;
16209 int res1 = 0 ;
16210 PyObject *swig_obj[1] ;
16211
16212 if (!args) SWIG_fail;
16213 swig_obj[0] = args;
16214 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 );
16215 if (!SWIG_IsOK(res1)) {
16216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'");
16217 }
16218 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16219 {
16220 PyThreadState* __tstate = wxPyBeginAllowThreads();
16221 delete arg1;
16222
16223 wxPyEndAllowThreads(__tstate);
16224 if (PyErr_Occurred()) SWIG_fail;
16225 }
16226 resultobj = SWIG_Py_Void();
16227 return resultobj;
16228 fail:
16229 return NULL;
16230 }
16231
16232
16233 SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16234 PyObject *resultobj = 0;
16235 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16236 PyObject *arg2 = (PyObject *) 0 ;
16237 PyObject *arg3 = (PyObject *) 0 ;
16238 void *argp1 = 0 ;
16239 int res1 = 0 ;
16240 PyObject * obj0 = 0 ;
16241 PyObject * obj1 = 0 ;
16242 PyObject * obj2 = 0 ;
16243 char * kwnames[] = {
16244 (char *) "self",(char *) "self",(char *) "_class", NULL
16245 };
16246
16247 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16248 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
16249 if (!SWIG_IsOK(res1)) {
16250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'");
16251 }
16252 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16253 arg2 = obj1;
16254 arg3 = obj2;
16255 {
16256 PyThreadState* __tstate = wxPyBeginAllowThreads();
16257 (arg1)->_setCallbackInfo(arg2,arg3);
16258 wxPyEndAllowThreads(__tstate);
16259 if (PyErr_Occurred()) SWIG_fail;
16260 }
16261 resultobj = SWIG_Py_Void();
16262 return resultobj;
16263 fail:
16264 return NULL;
16265 }
16266
16267
16268 SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16269 PyObject *resultobj = 0;
16270 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16271 wxChar *arg2 = (wxChar *) 0 ;
16272 wxChar *arg3 = (wxChar *) NULL ;
16273 wxChar *result = 0 ;
16274 void *argp1 = 0 ;
16275 int res1 = 0 ;
16276 void *argp2 = 0 ;
16277 int res2 = 0 ;
16278 void *argp3 = 0 ;
16279 int res3 = 0 ;
16280 PyObject * obj0 = 0 ;
16281 PyObject * obj1 = 0 ;
16282 PyObject * obj2 = 0 ;
16283 char * kwnames[] = {
16284 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16285 };
16286
16287 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16288 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
16289 if (!SWIG_IsOK(res1)) {
16290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
16291 }
16292 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16293 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16294 if (!SWIG_IsOK(res2)) {
16295 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetSingularString" "', expected argument " "2"" of type '" "wxChar const *""'");
16296 }
16297 arg2 = reinterpret_cast< wxChar * >(argp2);
16298 if (obj2) {
16299 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16300 if (!SWIG_IsOK(res3)) {
16301 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetSingularString" "', expected argument " "3"" of type '" "wxChar const *""'");
16302 }
16303 arg3 = reinterpret_cast< wxChar * >(argp3);
16304 }
16305 {
16306 PyThreadState* __tstate = wxPyBeginAllowThreads();
16307 result = (wxChar *)((wxPyLocale const *)arg1)->GetSingularString((wxChar const *)arg2,(wxChar const *)arg3);
16308 wxPyEndAllowThreads(__tstate);
16309 if (PyErr_Occurred()) SWIG_fail;
16310 }
16311 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
16312 return resultobj;
16313 fail:
16314 return NULL;
16315 }
16316
16317
16318 SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16319 PyObject *resultobj = 0;
16320 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16321 wxChar *arg2 = (wxChar *) 0 ;
16322 wxChar *arg3 = (wxChar *) 0 ;
16323 size_t arg4 ;
16324 wxChar *arg5 = (wxChar *) NULL ;
16325 wxChar *result = 0 ;
16326 void *argp1 = 0 ;
16327 int res1 = 0 ;
16328 void *argp2 = 0 ;
16329 int res2 = 0 ;
16330 void *argp3 = 0 ;
16331 int res3 = 0 ;
16332 size_t val4 ;
16333 int ecode4 = 0 ;
16334 void *argp5 = 0 ;
16335 int res5 = 0 ;
16336 PyObject * obj0 = 0 ;
16337 PyObject * obj1 = 0 ;
16338 PyObject * obj2 = 0 ;
16339 PyObject * obj3 = 0 ;
16340 PyObject * obj4 = 0 ;
16341 char * kwnames[] = {
16342 (char *) "self",(char *) "szOrigString",(char *) "szOrigString2",(char *) "n",(char *) "szDomain", NULL
16343 };
16344
16345 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16346 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
16347 if (!SWIG_IsOK(res1)) {
16348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
16349 }
16350 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16351 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16352 if (!SWIG_IsOK(res2)) {
16353 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetPluralString" "', expected argument " "2"" of type '" "wxChar const *""'");
16354 }
16355 arg2 = reinterpret_cast< wxChar * >(argp2);
16356 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16357 if (!SWIG_IsOK(res3)) {
16358 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetPluralString" "', expected argument " "3"" of type '" "wxChar const *""'");
16359 }
16360 arg3 = reinterpret_cast< wxChar * >(argp3);
16361 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
16362 if (!SWIG_IsOK(ecode4)) {
16363 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'");
16364 }
16365 arg4 = static_cast< size_t >(val4);
16366 if (obj4) {
16367 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxChar, 0 | 0 );
16368 if (!SWIG_IsOK(res5)) {
16369 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PyLocale_GetPluralString" "', expected argument " "5"" of type '" "wxChar const *""'");
16370 }
16371 arg5 = reinterpret_cast< wxChar * >(argp5);
16372 }
16373 {
16374 PyThreadState* __tstate = wxPyBeginAllowThreads();
16375 result = (wxChar *)((wxPyLocale const *)arg1)->GetPluralString((wxChar const *)arg2,(wxChar const *)arg3,arg4,(wxChar const *)arg5);
16376 wxPyEndAllowThreads(__tstate);
16377 if (PyErr_Occurred()) SWIG_fail;
16378 }
16379 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
16380 return resultobj;
16381 fail:
16382 return NULL;
16383 }
16384
16385
16386 SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16387 PyObject *obj;
16388 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16389 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj));
16390 return SWIG_Py_Void();
16391 }
16392
16393 SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16394 return SWIG_Python_InitShadowInstance(args);
16395 }
16396
16397 SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16398 PyObject *resultobj = 0;
16399 wxLocale *result = 0 ;
16400
16401 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
16402 {
16403 PyThreadState* __tstate = wxPyBeginAllowThreads();
16404 result = (wxLocale *)wxGetLocale();
16405 wxPyEndAllowThreads(__tstate);
16406 if (PyErr_Occurred()) SWIG_fail;
16407 }
16408 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
16409 return resultobj;
16410 fail:
16411 return NULL;
16412 }
16413
16414
16415 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16416 PyObject *resultobj = 0;
16417 wxString *arg1 = 0 ;
16418 wxString result;
16419 bool temp1 = false ;
16420
16421 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
16422 {
16423 arg1 = wxString_in_helper(swig_obj[0]);
16424 if (arg1 == NULL) SWIG_fail;
16425 temp1 = true;
16426 }
16427 {
16428 PyThreadState* __tstate = wxPyBeginAllowThreads();
16429 result = wxGetTranslation((wxString const &)*arg1);
16430 wxPyEndAllowThreads(__tstate);
16431 if (PyErr_Occurred()) SWIG_fail;
16432 }
16433 {
16434 #if wxUSE_UNICODE
16435 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16436 #else
16437 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16438 #endif
16439 }
16440 {
16441 if (temp1)
16442 delete arg1;
16443 }
16444 return resultobj;
16445 fail:
16446 {
16447 if (temp1)
16448 delete arg1;
16449 }
16450 return NULL;
16451 }
16452
16453
16454 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16455 PyObject *resultobj = 0;
16456 wxString *arg1 = 0 ;
16457 wxString *arg2 = 0 ;
16458 wxString result;
16459 bool temp1 = false ;
16460 bool temp2 = false ;
16461
16462 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
16463 {
16464 arg1 = wxString_in_helper(swig_obj[0]);
16465 if (arg1 == NULL) SWIG_fail;
16466 temp1 = true;
16467 }
16468 {
16469 arg2 = wxString_in_helper(swig_obj[1]);
16470 if (arg2 == NULL) SWIG_fail;
16471 temp2 = true;
16472 }
16473 {
16474 PyThreadState* __tstate = wxPyBeginAllowThreads();
16475 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2);
16476 wxPyEndAllowThreads(__tstate);
16477 if (PyErr_Occurred()) SWIG_fail;
16478 }
16479 {
16480 #if wxUSE_UNICODE
16481 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16482 #else
16483 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16484 #endif
16485 }
16486 {
16487 if (temp1)
16488 delete arg1;
16489 }
16490 {
16491 if (temp2)
16492 delete arg2;
16493 }
16494 return resultobj;
16495 fail:
16496 {
16497 if (temp1)
16498 delete arg1;
16499 }
16500 {
16501 if (temp2)
16502 delete arg2;
16503 }
16504 return NULL;
16505 }
16506
16507
16508 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16509 PyObject *resultobj = 0;
16510 wxString *arg1 = 0 ;
16511 wxString *arg2 = 0 ;
16512 size_t arg3 ;
16513 wxString result;
16514 bool temp1 = false ;
16515 bool temp2 = false ;
16516 size_t val3 ;
16517 int ecode3 = 0 ;
16518
16519 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
16520 {
16521 arg1 = wxString_in_helper(swig_obj[0]);
16522 if (arg1 == NULL) SWIG_fail;
16523 temp1 = true;
16524 }
16525 {
16526 arg2 = wxString_in_helper(swig_obj[1]);
16527 if (arg2 == NULL) SWIG_fail;
16528 temp2 = true;
16529 }
16530 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
16531 if (!SWIG_IsOK(ecode3)) {
16532 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
16533 }
16534 arg3 = static_cast< size_t >(val3);
16535 {
16536 PyThreadState* __tstate = wxPyBeginAllowThreads();
16537 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
16538 wxPyEndAllowThreads(__tstate);
16539 if (PyErr_Occurred()) SWIG_fail;
16540 }
16541 {
16542 #if wxUSE_UNICODE
16543 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16544 #else
16545 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16546 #endif
16547 }
16548 {
16549 if (temp1)
16550 delete arg1;
16551 }
16552 {
16553 if (temp2)
16554 delete arg2;
16555 }
16556 return resultobj;
16557 fail:
16558 {
16559 if (temp1)
16560 delete arg1;
16561 }
16562 {
16563 if (temp2)
16564 delete arg2;
16565 }
16566 return NULL;
16567 }
16568
16569
16570 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16571 PyObject *resultobj = 0;
16572 wxString *arg1 = 0 ;
16573 wxString *arg2 = 0 ;
16574 size_t arg3 ;
16575 wxString *arg4 = 0 ;
16576 wxString result;
16577 bool temp1 = false ;
16578 bool temp2 = false ;
16579 size_t val3 ;
16580 int ecode3 = 0 ;
16581 bool temp4 = false ;
16582
16583 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
16584 {
16585 arg1 = wxString_in_helper(swig_obj[0]);
16586 if (arg1 == NULL) SWIG_fail;
16587 temp1 = true;
16588 }
16589 {
16590 arg2 = wxString_in_helper(swig_obj[1]);
16591 if (arg2 == NULL) SWIG_fail;
16592 temp2 = true;
16593 }
16594 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
16595 if (!SWIG_IsOK(ecode3)) {
16596 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
16597 }
16598 arg3 = static_cast< size_t >(val3);
16599 {
16600 arg4 = wxString_in_helper(swig_obj[3]);
16601 if (arg4 == NULL) SWIG_fail;
16602 temp4 = true;
16603 }
16604 {
16605 PyThreadState* __tstate = wxPyBeginAllowThreads();
16606 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4);
16607 wxPyEndAllowThreads(__tstate);
16608 if (PyErr_Occurred()) SWIG_fail;
16609 }
16610 {
16611 #if wxUSE_UNICODE
16612 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16613 #else
16614 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16615 #endif
16616 }
16617 {
16618 if (temp1)
16619 delete arg1;
16620 }
16621 {
16622 if (temp2)
16623 delete arg2;
16624 }
16625 {
16626 if (temp4)
16627 delete arg4;
16628 }
16629 return resultobj;
16630 fail:
16631 {
16632 if (temp1)
16633 delete arg1;
16634 }
16635 {
16636 if (temp2)
16637 delete arg2;
16638 }
16639 {
16640 if (temp4)
16641 delete arg4;
16642 }
16643 return NULL;
16644 }
16645
16646
16647 SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
16648 int argc;
16649 PyObject *argv[5];
16650
16651 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail;
16652 --argc;
16653 if (argc == 1) {
16654 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
16655 }
16656 if (argc == 2) {
16657 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
16658 }
16659 if (argc == 3) {
16660 return _wrap_GetTranslation__SWIG_2(self, argc, argv);
16661 }
16662 if (argc == 4) {
16663 return _wrap_GetTranslation__SWIG_3(self, argc, argv);
16664 }
16665
16666 fail:
16667 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
16668 return NULL;
16669 }
16670
16671
16672 SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16673 PyObject *resultobj = 0;
16674 wxEncodingConverter *result = 0 ;
16675
16676 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
16677 {
16678 PyThreadState* __tstate = wxPyBeginAllowThreads();
16679 result = (wxEncodingConverter *)new wxEncodingConverter();
16680 wxPyEndAllowThreads(__tstate);
16681 if (PyErr_Occurred()) SWIG_fail;
16682 }
16683 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
16684 return resultobj;
16685 fail:
16686 return NULL;
16687 }
16688
16689
16690 SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16691 PyObject *resultobj = 0;
16692 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
16693 void *argp1 = 0 ;
16694 int res1 = 0 ;
16695 PyObject *swig_obj[1] ;
16696
16697 if (!args) SWIG_fail;
16698 swig_obj[0] = args;
16699 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
16700 if (!SWIG_IsOK(res1)) {
16701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
16702 }
16703 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
16704 {
16705 PyThreadState* __tstate = wxPyBeginAllowThreads();
16706 delete arg1;
16707
16708 wxPyEndAllowThreads(__tstate);
16709 if (PyErr_Occurred()) SWIG_fail;
16710 }
16711 resultobj = SWIG_Py_Void();
16712 return resultobj;
16713 fail:
16714 return NULL;
16715 }
16716
16717
16718 SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16719 PyObject *resultobj = 0;
16720 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
16721 wxFontEncoding arg2 ;
16722 wxFontEncoding arg3 ;
16723 int arg4 = (int) wxCONVERT_STRICT ;
16724 bool result;
16725 void *argp1 = 0 ;
16726 int res1 = 0 ;
16727 int val2 ;
16728 int ecode2 = 0 ;
16729 int val3 ;
16730 int ecode3 = 0 ;
16731 int val4 ;
16732 int ecode4 = 0 ;
16733 PyObject * obj0 = 0 ;
16734 PyObject * obj1 = 0 ;
16735 PyObject * obj2 = 0 ;
16736 PyObject * obj3 = 0 ;
16737 char * kwnames[] = {
16738 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
16739 };
16740
16741 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16742 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
16743 if (!SWIG_IsOK(res1)) {
16744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
16745 }
16746 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
16747 ecode2 = SWIG_AsVal_int(obj1, &val2);
16748 if (!SWIG_IsOK(ecode2)) {
16749 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
16750 }
16751 arg2 = static_cast< wxFontEncoding >(val2);
16752 ecode3 = SWIG_AsVal_int(obj2, &val3);
16753 if (!SWIG_IsOK(ecode3)) {
16754 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
16755 }
16756 arg3 = static_cast< wxFontEncoding >(val3);
16757 if (obj3) {
16758 ecode4 = SWIG_AsVal_int(obj3, &val4);
16759 if (!SWIG_IsOK(ecode4)) {
16760 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
16761 }
16762 arg4 = static_cast< int >(val4);
16763 }
16764 {
16765 PyThreadState* __tstate = wxPyBeginAllowThreads();
16766 result = (bool)(arg1)->Init(arg2,arg3,arg4);
16767 wxPyEndAllowThreads(__tstate);
16768 if (PyErr_Occurred()) SWIG_fail;
16769 }
16770 {
16771 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16772 }
16773 return resultobj;
16774 fail:
16775 return NULL;
16776 }
16777
16778
16779 SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16780 PyObject *resultobj = 0;
16781 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
16782 wxString *arg2 = 0 ;
16783 wxString result;
16784 void *argp1 = 0 ;
16785 int res1 = 0 ;
16786 bool temp2 = false ;
16787 PyObject * obj0 = 0 ;
16788 PyObject * obj1 = 0 ;
16789 char * kwnames[] = {
16790 (char *) "self",(char *) "input", NULL
16791 };
16792
16793 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
16794 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
16795 if (!SWIG_IsOK(res1)) {
16796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
16797 }
16798 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
16799 {
16800 arg2 = wxString_in_helper(obj1);
16801 if (arg2 == NULL) SWIG_fail;
16802 temp2 = true;
16803 }
16804 {
16805 PyThreadState* __tstate = wxPyBeginAllowThreads();
16806 result = (arg1)->Convert((wxString const &)*arg2);
16807 wxPyEndAllowThreads(__tstate);
16808 if (PyErr_Occurred()) SWIG_fail;
16809 }
16810 {
16811 #if wxUSE_UNICODE
16812 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16813 #else
16814 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16815 #endif
16816 }
16817 {
16818 if (temp2)
16819 delete arg2;
16820 }
16821 return resultobj;
16822 fail:
16823 {
16824 if (temp2)
16825 delete arg2;
16826 }
16827 return NULL;
16828 }
16829
16830
16831 SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16832 PyObject *resultobj = 0;
16833 wxFontEncoding arg1 ;
16834 int arg2 = (int) wxPLATFORM_CURRENT ;
16835 wxFontEncodingArray result;
16836 int val1 ;
16837 int ecode1 = 0 ;
16838 int val2 ;
16839 int ecode2 = 0 ;
16840 PyObject * obj0 = 0 ;
16841 PyObject * obj1 = 0 ;
16842 char * kwnames[] = {
16843 (char *) "enc",(char *) "platform", NULL
16844 };
16845
16846 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
16847 ecode1 = SWIG_AsVal_int(obj0, &val1);
16848 if (!SWIG_IsOK(ecode1)) {
16849 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
16850 }
16851 arg1 = static_cast< wxFontEncoding >(val1);
16852 if (obj1) {
16853 ecode2 = SWIG_AsVal_int(obj1, &val2);
16854 if (!SWIG_IsOK(ecode2)) {
16855 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
16856 }
16857 arg2 = static_cast< int >(val2);
16858 }
16859 {
16860 PyThreadState* __tstate = wxPyBeginAllowThreads();
16861 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
16862 wxPyEndAllowThreads(__tstate);
16863 if (PyErr_Occurred()) SWIG_fail;
16864 }
16865 {
16866 resultobj = PyList_New(0);
16867 for (size_t i=0; i < (&result)->GetCount(); i++) {
16868 PyObject* number = PyInt_FromLong((&result)->Item(i));
16869 PyList_Append(resultobj, number);
16870 Py_DECREF(number);
16871 }
16872 }
16873 return resultobj;
16874 fail:
16875 return NULL;
16876 }
16877
16878
16879 SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16880 PyObject *resultobj = 0;
16881 wxFontEncoding arg1 ;
16882 wxFontEncodingArray result;
16883 int val1 ;
16884 int ecode1 = 0 ;
16885 PyObject * obj0 = 0 ;
16886 char * kwnames[] = {
16887 (char *) "enc", NULL
16888 };
16889
16890 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
16891 ecode1 = SWIG_AsVal_int(obj0, &val1);
16892 if (!SWIG_IsOK(ecode1)) {
16893 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
16894 }
16895 arg1 = static_cast< wxFontEncoding >(val1);
16896 {
16897 PyThreadState* __tstate = wxPyBeginAllowThreads();
16898 result = wxEncodingConverter::GetAllEquivalents(arg1);
16899 wxPyEndAllowThreads(__tstate);
16900 if (PyErr_Occurred()) SWIG_fail;
16901 }
16902 {
16903 resultobj = PyList_New(0);
16904 for (size_t i=0; i < (&result)->GetCount(); i++) {
16905 PyObject* number = PyInt_FromLong((&result)->Item(i));
16906 PyList_Append(resultobj, number);
16907 Py_DECREF(number);
16908 }
16909 }
16910 return resultobj;
16911 fail:
16912 return NULL;
16913 }
16914
16915
16916 SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16917 PyObject *resultobj = 0;
16918 wxFontEncoding arg1 ;
16919 wxFontEncoding arg2 ;
16920 bool result;
16921 int val1 ;
16922 int ecode1 = 0 ;
16923 int val2 ;
16924 int ecode2 = 0 ;
16925 PyObject * obj0 = 0 ;
16926 PyObject * obj1 = 0 ;
16927 char * kwnames[] = {
16928 (char *) "encIn",(char *) "encOut", NULL
16929 };
16930
16931 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
16932 ecode1 = SWIG_AsVal_int(obj0, &val1);
16933 if (!SWIG_IsOK(ecode1)) {
16934 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
16935 }
16936 arg1 = static_cast< wxFontEncoding >(val1);
16937 ecode2 = SWIG_AsVal_int(obj1, &val2);
16938 if (!SWIG_IsOK(ecode2)) {
16939 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
16940 }
16941 arg2 = static_cast< wxFontEncoding >(val2);
16942 {
16943 PyThreadState* __tstate = wxPyBeginAllowThreads();
16944 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
16945 wxPyEndAllowThreads(__tstate);
16946 if (PyErr_Occurred()) SWIG_fail;
16947 }
16948 {
16949 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16950 }
16951 return resultobj;
16952 fail:
16953 return NULL;
16954 }
16955
16956
16957 SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16958 PyObject *obj;
16959 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16960 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
16961 return SWIG_Py_Void();
16962 }
16963
16964 SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16965 return SWIG_Python_InitShadowInstance(args);
16966 }
16967
16968 SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16969 PyObject *resultobj = 0;
16970 wxDC *arg1 = (wxDC *) 0 ;
16971 void *argp1 = 0 ;
16972 int res1 = 0 ;
16973 PyObject *swig_obj[1] ;
16974
16975 if (!args) SWIG_fail;
16976 swig_obj[0] = args;
16977 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
16978 if (!SWIG_IsOK(res1)) {
16979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
16980 }
16981 arg1 = reinterpret_cast< wxDC * >(argp1);
16982 {
16983 PyThreadState* __tstate = wxPyBeginAllowThreads();
16984 delete arg1;
16985
16986 wxPyEndAllowThreads(__tstate);
16987 if (PyErr_Occurred()) SWIG_fail;
16988 }
16989 resultobj = SWIG_Py_Void();
16990 return resultobj;
16991 fail:
16992 return NULL;
16993 }
16994
16995
16996 SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16997 PyObject *resultobj = 0;
16998 wxDC *arg1 = (wxDC *) 0 ;
16999 int arg2 ;
17000 int arg3 ;
17001 wxColour *arg4 = 0 ;
17002 int arg5 = (int) wxFLOOD_SURFACE ;
17003 bool result;
17004 void *argp1 = 0 ;
17005 int res1 = 0 ;
17006 int val2 ;
17007 int ecode2 = 0 ;
17008 int val3 ;
17009 int ecode3 = 0 ;
17010 wxColour temp4 ;
17011 int val5 ;
17012 int ecode5 = 0 ;
17013 PyObject * obj0 = 0 ;
17014 PyObject * obj1 = 0 ;
17015 PyObject * obj2 = 0 ;
17016 PyObject * obj3 = 0 ;
17017 PyObject * obj4 = 0 ;
17018 char * kwnames[] = {
17019 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
17020 };
17021
17022 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17023 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17024 if (!SWIG_IsOK(res1)) {
17025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
17026 }
17027 arg1 = reinterpret_cast< wxDC * >(argp1);
17028 ecode2 = SWIG_AsVal_int(obj1, &val2);
17029 if (!SWIG_IsOK(ecode2)) {
17030 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
17031 }
17032 arg2 = static_cast< int >(val2);
17033 ecode3 = SWIG_AsVal_int(obj2, &val3);
17034 if (!SWIG_IsOK(ecode3)) {
17035 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
17036 }
17037 arg3 = static_cast< int >(val3);
17038 {
17039 arg4 = &temp4;
17040 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17041 }
17042 if (obj4) {
17043 ecode5 = SWIG_AsVal_int(obj4, &val5);
17044 if (!SWIG_IsOK(ecode5)) {
17045 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
17046 }
17047 arg5 = static_cast< int >(val5);
17048 }
17049 {
17050 PyThreadState* __tstate = wxPyBeginAllowThreads();
17051 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
17052 wxPyEndAllowThreads(__tstate);
17053 if (PyErr_Occurred()) SWIG_fail;
17054 }
17055 {
17056 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17057 }
17058 return resultobj;
17059 fail:
17060 return NULL;
17061 }
17062
17063
17064 SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17065 PyObject *resultobj = 0;
17066 wxDC *arg1 = (wxDC *) 0 ;
17067 wxPoint *arg2 = 0 ;
17068 wxColour *arg3 = 0 ;
17069 int arg4 = (int) wxFLOOD_SURFACE ;
17070 bool result;
17071 void *argp1 = 0 ;
17072 int res1 = 0 ;
17073 wxPoint temp2 ;
17074 wxColour temp3 ;
17075 int val4 ;
17076 int ecode4 = 0 ;
17077 PyObject * obj0 = 0 ;
17078 PyObject * obj1 = 0 ;
17079 PyObject * obj2 = 0 ;
17080 PyObject * obj3 = 0 ;
17081 char * kwnames[] = {
17082 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
17083 };
17084
17085 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17086 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17087 if (!SWIG_IsOK(res1)) {
17088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17089 }
17090 arg1 = reinterpret_cast< wxDC * >(argp1);
17091 {
17092 arg2 = &temp2;
17093 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17094 }
17095 {
17096 arg3 = &temp3;
17097 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17098 }
17099 if (obj3) {
17100 ecode4 = SWIG_AsVal_int(obj3, &val4);
17101 if (!SWIG_IsOK(ecode4)) {
17102 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
17103 }
17104 arg4 = static_cast< int >(val4);
17105 }
17106 {
17107 PyThreadState* __tstate = wxPyBeginAllowThreads();
17108 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
17109 wxPyEndAllowThreads(__tstate);
17110 if (PyErr_Occurred()) SWIG_fail;
17111 }
17112 {
17113 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17114 }
17115 return resultobj;
17116 fail:
17117 return NULL;
17118 }
17119
17120
17121 SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17122 PyObject *resultobj = 0;
17123 wxDC *arg1 = (wxDC *) 0 ;
17124 wxRect *arg2 = 0 ;
17125 wxColour *arg3 = 0 ;
17126 wxColour *arg4 = 0 ;
17127 wxPoint *arg5 = 0 ;
17128 void *argp1 = 0 ;
17129 int res1 = 0 ;
17130 wxRect temp2 ;
17131 wxColour temp3 ;
17132 wxColour temp4 ;
17133 wxPoint temp5 ;
17134 PyObject * obj0 = 0 ;
17135 PyObject * obj1 = 0 ;
17136 PyObject * obj2 = 0 ;
17137 PyObject * obj3 = 0 ;
17138 PyObject * obj4 = 0 ;
17139 char * kwnames[] = {
17140 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
17141 };
17142
17143 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17144 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17145 if (!SWIG_IsOK(res1)) {
17146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
17147 }
17148 arg1 = reinterpret_cast< wxDC * >(argp1);
17149 {
17150 arg2 = &temp2;
17151 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17152 }
17153 {
17154 arg3 = &temp3;
17155 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17156 }
17157 {
17158 arg4 = &temp4;
17159 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17160 }
17161 {
17162 arg5 = &temp5;
17163 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17164 }
17165 {
17166 PyThreadState* __tstate = wxPyBeginAllowThreads();
17167 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
17168 wxPyEndAllowThreads(__tstate);
17169 if (PyErr_Occurred()) SWIG_fail;
17170 }
17171 resultobj = SWIG_Py_Void();
17172 return resultobj;
17173 fail:
17174 return NULL;
17175 }
17176
17177
17178 SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17179 PyObject *resultobj = 0;
17180 wxDC *arg1 = (wxDC *) 0 ;
17181 wxRect *arg2 = 0 ;
17182 wxColour *arg3 = 0 ;
17183 wxColour *arg4 = 0 ;
17184 wxDirection arg5 = (wxDirection) wxEAST ;
17185 void *argp1 = 0 ;
17186 int res1 = 0 ;
17187 wxRect temp2 ;
17188 wxColour temp3 ;
17189 wxColour temp4 ;
17190 int val5 ;
17191 int ecode5 = 0 ;
17192 PyObject * obj0 = 0 ;
17193 PyObject * obj1 = 0 ;
17194 PyObject * obj2 = 0 ;
17195 PyObject * obj3 = 0 ;
17196 PyObject * obj4 = 0 ;
17197 char * kwnames[] = {
17198 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
17199 };
17200
17201 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17202 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17203 if (!SWIG_IsOK(res1)) {
17204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
17205 }
17206 arg1 = reinterpret_cast< wxDC * >(argp1);
17207 {
17208 arg2 = &temp2;
17209 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17210 }
17211 {
17212 arg3 = &temp3;
17213 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17214 }
17215 {
17216 arg4 = &temp4;
17217 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17218 }
17219 if (obj4) {
17220 ecode5 = SWIG_AsVal_int(obj4, &val5);
17221 if (!SWIG_IsOK(ecode5)) {
17222 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
17223 }
17224 arg5 = static_cast< wxDirection >(val5);
17225 }
17226 {
17227 PyThreadState* __tstate = wxPyBeginAllowThreads();
17228 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
17229 wxPyEndAllowThreads(__tstate);
17230 if (PyErr_Occurred()) SWIG_fail;
17231 }
17232 resultobj = SWIG_Py_Void();
17233 return resultobj;
17234 fail:
17235 return NULL;
17236 }
17237
17238
17239 SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17240 PyObject *resultobj = 0;
17241 wxDC *arg1 = (wxDC *) 0 ;
17242 int arg2 ;
17243 int arg3 ;
17244 wxColour result;
17245 void *argp1 = 0 ;
17246 int res1 = 0 ;
17247 int val2 ;
17248 int ecode2 = 0 ;
17249 int val3 ;
17250 int ecode3 = 0 ;
17251 PyObject * obj0 = 0 ;
17252 PyObject * obj1 = 0 ;
17253 PyObject * obj2 = 0 ;
17254 char * kwnames[] = {
17255 (char *) "self",(char *) "x",(char *) "y", NULL
17256 };
17257
17258 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17259 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17260 if (!SWIG_IsOK(res1)) {
17261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
17262 }
17263 arg1 = reinterpret_cast< wxDC * >(argp1);
17264 ecode2 = SWIG_AsVal_int(obj1, &val2);
17265 if (!SWIG_IsOK(ecode2)) {
17266 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
17267 }
17268 arg2 = static_cast< int >(val2);
17269 ecode3 = SWIG_AsVal_int(obj2, &val3);
17270 if (!SWIG_IsOK(ecode3)) {
17271 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
17272 }
17273 arg3 = static_cast< int >(val3);
17274 {
17275 PyThreadState* __tstate = wxPyBeginAllowThreads();
17276 result = wxDC_GetPixel(arg1,arg2,arg3);
17277 wxPyEndAllowThreads(__tstate);
17278 if (PyErr_Occurred()) SWIG_fail;
17279 }
17280 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17281 return resultobj;
17282 fail:
17283 return NULL;
17284 }
17285
17286
17287 SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17288 PyObject *resultobj = 0;
17289 wxDC *arg1 = (wxDC *) 0 ;
17290 wxPoint *arg2 = 0 ;
17291 wxColour result;
17292 void *argp1 = 0 ;
17293 int res1 = 0 ;
17294 wxPoint temp2 ;
17295 PyObject * obj0 = 0 ;
17296 PyObject * obj1 = 0 ;
17297 char * kwnames[] = {
17298 (char *) "self",(char *) "pt", NULL
17299 };
17300
17301 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
17302 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17303 if (!SWIG_IsOK(res1)) {
17304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17305 }
17306 arg1 = reinterpret_cast< wxDC * >(argp1);
17307 {
17308 arg2 = &temp2;
17309 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17310 }
17311 {
17312 PyThreadState* __tstate = wxPyBeginAllowThreads();
17313 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
17314 wxPyEndAllowThreads(__tstate);
17315 if (PyErr_Occurred()) SWIG_fail;
17316 }
17317 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17318 return resultobj;
17319 fail:
17320 return NULL;
17321 }
17322
17323
17324 SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17325 PyObject *resultobj = 0;
17326 wxDC *arg1 = (wxDC *) 0 ;
17327 int arg2 ;
17328 int arg3 ;
17329 int arg4 ;
17330 int arg5 ;
17331 void *argp1 = 0 ;
17332 int res1 = 0 ;
17333 int val2 ;
17334 int ecode2 = 0 ;
17335 int val3 ;
17336 int ecode3 = 0 ;
17337 int val4 ;
17338 int ecode4 = 0 ;
17339 int val5 ;
17340 int ecode5 = 0 ;
17341 PyObject * obj0 = 0 ;
17342 PyObject * obj1 = 0 ;
17343 PyObject * obj2 = 0 ;
17344 PyObject * obj3 = 0 ;
17345 PyObject * obj4 = 0 ;
17346 char * kwnames[] = {
17347 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
17348 };
17349
17350 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17351 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17352 if (!SWIG_IsOK(res1)) {
17353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
17354 }
17355 arg1 = reinterpret_cast< wxDC * >(argp1);
17356 ecode2 = SWIG_AsVal_int(obj1, &val2);
17357 if (!SWIG_IsOK(ecode2)) {
17358 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
17359 }
17360 arg2 = static_cast< int >(val2);
17361 ecode3 = SWIG_AsVal_int(obj2, &val3);
17362 if (!SWIG_IsOK(ecode3)) {
17363 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
17364 }
17365 arg3 = static_cast< int >(val3);
17366 ecode4 = SWIG_AsVal_int(obj3, &val4);
17367 if (!SWIG_IsOK(ecode4)) {
17368 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
17369 }
17370 arg4 = static_cast< int >(val4);
17371 ecode5 = SWIG_AsVal_int(obj4, &val5);
17372 if (!SWIG_IsOK(ecode5)) {
17373 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
17374 }
17375 arg5 = static_cast< int >(val5);
17376 {
17377 PyThreadState* __tstate = wxPyBeginAllowThreads();
17378 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
17379 wxPyEndAllowThreads(__tstate);
17380 if (PyErr_Occurred()) SWIG_fail;
17381 }
17382 resultobj = SWIG_Py_Void();
17383 return resultobj;
17384 fail:
17385 return NULL;
17386 }
17387
17388
17389 SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17390 PyObject *resultobj = 0;
17391 wxDC *arg1 = (wxDC *) 0 ;
17392 wxPoint *arg2 = 0 ;
17393 wxPoint *arg3 = 0 ;
17394 void *argp1 = 0 ;
17395 int res1 = 0 ;
17396 wxPoint temp2 ;
17397 wxPoint temp3 ;
17398 PyObject * obj0 = 0 ;
17399 PyObject * obj1 = 0 ;
17400 PyObject * obj2 = 0 ;
17401 char * kwnames[] = {
17402 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
17403 };
17404
17405 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17406 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17407 if (!SWIG_IsOK(res1)) {
17408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
17409 }
17410 arg1 = reinterpret_cast< wxDC * >(argp1);
17411 {
17412 arg2 = &temp2;
17413 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17414 }
17415 {
17416 arg3 = &temp3;
17417 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
17418 }
17419 {
17420 PyThreadState* __tstate = wxPyBeginAllowThreads();
17421 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
17422 wxPyEndAllowThreads(__tstate);
17423 if (PyErr_Occurred()) SWIG_fail;
17424 }
17425 resultobj = SWIG_Py_Void();
17426 return resultobj;
17427 fail:
17428 return NULL;
17429 }
17430
17431
17432 SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17433 PyObject *resultobj = 0;
17434 wxDC *arg1 = (wxDC *) 0 ;
17435 int arg2 ;
17436 int arg3 ;
17437 void *argp1 = 0 ;
17438 int res1 = 0 ;
17439 int val2 ;
17440 int ecode2 = 0 ;
17441 int val3 ;
17442 int ecode3 = 0 ;
17443 PyObject * obj0 = 0 ;
17444 PyObject * obj1 = 0 ;
17445 PyObject * obj2 = 0 ;
17446 char * kwnames[] = {
17447 (char *) "self",(char *) "x",(char *) "y", NULL
17448 };
17449
17450 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) 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_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
17454 }
17455 arg1 = reinterpret_cast< wxDC * >(argp1);
17456 ecode2 = SWIG_AsVal_int(obj1, &val2);
17457 if (!SWIG_IsOK(ecode2)) {
17458 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
17459 }
17460 arg2 = static_cast< int >(val2);
17461 ecode3 = SWIG_AsVal_int(obj2, &val3);
17462 if (!SWIG_IsOK(ecode3)) {
17463 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
17464 }
17465 arg3 = static_cast< int >(val3);
17466 {
17467 PyThreadState* __tstate = wxPyBeginAllowThreads();
17468 (arg1)->CrossHair(arg2,arg3);
17469 wxPyEndAllowThreads(__tstate);
17470 if (PyErr_Occurred()) SWIG_fail;
17471 }
17472 resultobj = SWIG_Py_Void();
17473 return resultobj;
17474 fail:
17475 return NULL;
17476 }
17477
17478
17479 SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17480 PyObject *resultobj = 0;
17481 wxDC *arg1 = (wxDC *) 0 ;
17482 wxPoint *arg2 = 0 ;
17483 void *argp1 = 0 ;
17484 int res1 = 0 ;
17485 wxPoint temp2 ;
17486 PyObject * obj0 = 0 ;
17487 PyObject * obj1 = 0 ;
17488 char * kwnames[] = {
17489 (char *) "self",(char *) "pt", NULL
17490 };
17491
17492 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
17493 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17494 if (!SWIG_IsOK(res1)) {
17495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17496 }
17497 arg1 = reinterpret_cast< wxDC * >(argp1);
17498 {
17499 arg2 = &temp2;
17500 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17501 }
17502 {
17503 PyThreadState* __tstate = wxPyBeginAllowThreads();
17504 (arg1)->CrossHair((wxPoint const &)*arg2);
17505 wxPyEndAllowThreads(__tstate);
17506 if (PyErr_Occurred()) SWIG_fail;
17507 }
17508 resultobj = SWIG_Py_Void();
17509 return resultobj;
17510 fail:
17511 return NULL;
17512 }
17513
17514
17515 SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17516 PyObject *resultobj = 0;
17517 wxDC *arg1 = (wxDC *) 0 ;
17518 int arg2 ;
17519 int arg3 ;
17520 int arg4 ;
17521 int arg5 ;
17522 int arg6 ;
17523 int arg7 ;
17524 void *argp1 = 0 ;
17525 int res1 = 0 ;
17526 int val2 ;
17527 int ecode2 = 0 ;
17528 int val3 ;
17529 int ecode3 = 0 ;
17530 int val4 ;
17531 int ecode4 = 0 ;
17532 int val5 ;
17533 int ecode5 = 0 ;
17534 int val6 ;
17535 int ecode6 = 0 ;
17536 int val7 ;
17537 int ecode7 = 0 ;
17538 PyObject * obj0 = 0 ;
17539 PyObject * obj1 = 0 ;
17540 PyObject * obj2 = 0 ;
17541 PyObject * obj3 = 0 ;
17542 PyObject * obj4 = 0 ;
17543 PyObject * obj5 = 0 ;
17544 PyObject * obj6 = 0 ;
17545 char * kwnames[] = {
17546 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
17547 };
17548
17549 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
17550 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17551 if (!SWIG_IsOK(res1)) {
17552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
17553 }
17554 arg1 = reinterpret_cast< wxDC * >(argp1);
17555 ecode2 = SWIG_AsVal_int(obj1, &val2);
17556 if (!SWIG_IsOK(ecode2)) {
17557 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
17558 }
17559 arg2 = static_cast< int >(val2);
17560 ecode3 = SWIG_AsVal_int(obj2, &val3);
17561 if (!SWIG_IsOK(ecode3)) {
17562 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
17563 }
17564 arg3 = static_cast< int >(val3);
17565 ecode4 = SWIG_AsVal_int(obj3, &val4);
17566 if (!SWIG_IsOK(ecode4)) {
17567 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
17568 }
17569 arg4 = static_cast< int >(val4);
17570 ecode5 = SWIG_AsVal_int(obj4, &val5);
17571 if (!SWIG_IsOK(ecode5)) {
17572 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
17573 }
17574 arg5 = static_cast< int >(val5);
17575 ecode6 = SWIG_AsVal_int(obj5, &val6);
17576 if (!SWIG_IsOK(ecode6)) {
17577 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
17578 }
17579 arg6 = static_cast< int >(val6);
17580 ecode7 = SWIG_AsVal_int(obj6, &val7);
17581 if (!SWIG_IsOK(ecode7)) {
17582 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
17583 }
17584 arg7 = static_cast< int >(val7);
17585 {
17586 PyThreadState* __tstate = wxPyBeginAllowThreads();
17587 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
17588 wxPyEndAllowThreads(__tstate);
17589 if (PyErr_Occurred()) SWIG_fail;
17590 }
17591 resultobj = SWIG_Py_Void();
17592 return resultobj;
17593 fail:
17594 return NULL;
17595 }
17596
17597
17598 SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17599 PyObject *resultobj = 0;
17600 wxDC *arg1 = (wxDC *) 0 ;
17601 wxPoint *arg2 = 0 ;
17602 wxPoint *arg3 = 0 ;
17603 wxPoint *arg4 = 0 ;
17604 void *argp1 = 0 ;
17605 int res1 = 0 ;
17606 wxPoint temp2 ;
17607 wxPoint temp3 ;
17608 wxPoint temp4 ;
17609 PyObject * obj0 = 0 ;
17610 PyObject * obj1 = 0 ;
17611 PyObject * obj2 = 0 ;
17612 PyObject * obj3 = 0 ;
17613 char * kwnames[] = {
17614 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
17615 };
17616
17617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17618 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17619 if (!SWIG_IsOK(res1)) {
17620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17621 }
17622 arg1 = reinterpret_cast< wxDC * >(argp1);
17623 {
17624 arg2 = &temp2;
17625 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17626 }
17627 {
17628 arg3 = &temp3;
17629 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
17630 }
17631 {
17632 arg4 = &temp4;
17633 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
17634 }
17635 {
17636 PyThreadState* __tstate = wxPyBeginAllowThreads();
17637 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
17638 wxPyEndAllowThreads(__tstate);
17639 if (PyErr_Occurred()) SWIG_fail;
17640 }
17641 resultobj = SWIG_Py_Void();
17642 return resultobj;
17643 fail:
17644 return NULL;
17645 }
17646
17647
17648 SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17649 PyObject *resultobj = 0;
17650 wxDC *arg1 = (wxDC *) 0 ;
17651 int arg2 ;
17652 int arg3 ;
17653 int arg4 ;
17654 int arg5 ;
17655 void *argp1 = 0 ;
17656 int res1 = 0 ;
17657 int val2 ;
17658 int ecode2 = 0 ;
17659 int val3 ;
17660 int ecode3 = 0 ;
17661 int val4 ;
17662 int ecode4 = 0 ;
17663 int val5 ;
17664 int ecode5 = 0 ;
17665 PyObject * obj0 = 0 ;
17666 PyObject * obj1 = 0 ;
17667 PyObject * obj2 = 0 ;
17668 PyObject * obj3 = 0 ;
17669 PyObject * obj4 = 0 ;
17670 char * kwnames[] = {
17671 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
17672 };
17673
17674 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17675 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17676 if (!SWIG_IsOK(res1)) {
17677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
17678 }
17679 arg1 = reinterpret_cast< wxDC * >(argp1);
17680 ecode2 = SWIG_AsVal_int(obj1, &val2);
17681 if (!SWIG_IsOK(ecode2)) {
17682 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
17683 }
17684 arg2 = static_cast< int >(val2);
17685 ecode3 = SWIG_AsVal_int(obj2, &val3);
17686 if (!SWIG_IsOK(ecode3)) {
17687 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
17688 }
17689 arg3 = static_cast< int >(val3);
17690 ecode4 = SWIG_AsVal_int(obj3, &val4);
17691 if (!SWIG_IsOK(ecode4)) {
17692 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
17693 }
17694 arg4 = static_cast< int >(val4);
17695 ecode5 = SWIG_AsVal_int(obj4, &val5);
17696 if (!SWIG_IsOK(ecode5)) {
17697 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
17698 }
17699 arg5 = static_cast< int >(val5);
17700 {
17701 PyThreadState* __tstate = wxPyBeginAllowThreads();
17702 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
17703 wxPyEndAllowThreads(__tstate);
17704 if (PyErr_Occurred()) SWIG_fail;
17705 }
17706 resultobj = SWIG_Py_Void();
17707 return resultobj;
17708 fail:
17709 return NULL;
17710 }
17711
17712
17713 SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17714 PyObject *resultobj = 0;
17715 wxDC *arg1 = (wxDC *) 0 ;
17716 wxRect *arg2 = 0 ;
17717 void *argp1 = 0 ;
17718 int res1 = 0 ;
17719 wxRect temp2 ;
17720 PyObject * obj0 = 0 ;
17721 PyObject * obj1 = 0 ;
17722 char * kwnames[] = {
17723 (char *) "self",(char *) "rect", NULL
17724 };
17725
17726 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
17727 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17728 if (!SWIG_IsOK(res1)) {
17729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
17730 }
17731 arg1 = reinterpret_cast< wxDC * >(argp1);
17732 {
17733 arg2 = &temp2;
17734 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17735 }
17736 {
17737 PyThreadState* __tstate = wxPyBeginAllowThreads();
17738 (arg1)->DrawCheckMark((wxRect const &)*arg2);
17739 wxPyEndAllowThreads(__tstate);
17740 if (PyErr_Occurred()) SWIG_fail;
17741 }
17742 resultobj = SWIG_Py_Void();
17743 return resultobj;
17744 fail:
17745 return NULL;
17746 }
17747
17748
17749 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17750 PyObject *resultobj = 0;
17751 wxDC *arg1 = (wxDC *) 0 ;
17752 int arg2 ;
17753 int arg3 ;
17754 int arg4 ;
17755 int arg5 ;
17756 double arg6 ;
17757 double arg7 ;
17758 void *argp1 = 0 ;
17759 int res1 = 0 ;
17760 int val2 ;
17761 int ecode2 = 0 ;
17762 int val3 ;
17763 int ecode3 = 0 ;
17764 int val4 ;
17765 int ecode4 = 0 ;
17766 int val5 ;
17767 int ecode5 = 0 ;
17768 double val6 ;
17769 int ecode6 = 0 ;
17770 double val7 ;
17771 int ecode7 = 0 ;
17772 PyObject * obj0 = 0 ;
17773 PyObject * obj1 = 0 ;
17774 PyObject * obj2 = 0 ;
17775 PyObject * obj3 = 0 ;
17776 PyObject * obj4 = 0 ;
17777 PyObject * obj5 = 0 ;
17778 PyObject * obj6 = 0 ;
17779 char * kwnames[] = {
17780 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
17781 };
17782
17783 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
17784 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17785 if (!SWIG_IsOK(res1)) {
17786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
17787 }
17788 arg1 = reinterpret_cast< wxDC * >(argp1);
17789 ecode2 = SWIG_AsVal_int(obj1, &val2);
17790 if (!SWIG_IsOK(ecode2)) {
17791 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
17792 }
17793 arg2 = static_cast< int >(val2);
17794 ecode3 = SWIG_AsVal_int(obj2, &val3);
17795 if (!SWIG_IsOK(ecode3)) {
17796 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
17797 }
17798 arg3 = static_cast< int >(val3);
17799 ecode4 = SWIG_AsVal_int(obj3, &val4);
17800 if (!SWIG_IsOK(ecode4)) {
17801 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
17802 }
17803 arg4 = static_cast< int >(val4);
17804 ecode5 = SWIG_AsVal_int(obj4, &val5);
17805 if (!SWIG_IsOK(ecode5)) {
17806 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
17807 }
17808 arg5 = static_cast< int >(val5);
17809 ecode6 = SWIG_AsVal_double(obj5, &val6);
17810 if (!SWIG_IsOK(ecode6)) {
17811 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
17812 }
17813 arg6 = static_cast< double >(val6);
17814 ecode7 = SWIG_AsVal_double(obj6, &val7);
17815 if (!SWIG_IsOK(ecode7)) {
17816 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
17817 }
17818 arg7 = static_cast< double >(val7);
17819 {
17820 PyThreadState* __tstate = wxPyBeginAllowThreads();
17821 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
17822 wxPyEndAllowThreads(__tstate);
17823 if (PyErr_Occurred()) SWIG_fail;
17824 }
17825 resultobj = SWIG_Py_Void();
17826 return resultobj;
17827 fail:
17828 return NULL;
17829 }
17830
17831
17832 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17833 PyObject *resultobj = 0;
17834 wxDC *arg1 = (wxDC *) 0 ;
17835 wxPoint *arg2 = 0 ;
17836 wxSize *arg3 = 0 ;
17837 double arg4 ;
17838 double arg5 ;
17839 void *argp1 = 0 ;
17840 int res1 = 0 ;
17841 wxPoint temp2 ;
17842 wxSize temp3 ;
17843 double val4 ;
17844 int ecode4 = 0 ;
17845 double val5 ;
17846 int ecode5 = 0 ;
17847 PyObject * obj0 = 0 ;
17848 PyObject * obj1 = 0 ;
17849 PyObject * obj2 = 0 ;
17850 PyObject * obj3 = 0 ;
17851 PyObject * obj4 = 0 ;
17852 char * kwnames[] = {
17853 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
17854 };
17855
17856 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17857 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17858 if (!SWIG_IsOK(res1)) {
17859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
17860 }
17861 arg1 = reinterpret_cast< wxDC * >(argp1);
17862 {
17863 arg2 = &temp2;
17864 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17865 }
17866 {
17867 arg3 = &temp3;
17868 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
17869 }
17870 ecode4 = SWIG_AsVal_double(obj3, &val4);
17871 if (!SWIG_IsOK(ecode4)) {
17872 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
17873 }
17874 arg4 = static_cast< double >(val4);
17875 ecode5 = SWIG_AsVal_double(obj4, &val5);
17876 if (!SWIG_IsOK(ecode5)) {
17877 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
17878 }
17879 arg5 = static_cast< double >(val5);
17880 {
17881 PyThreadState* __tstate = wxPyBeginAllowThreads();
17882 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
17883 wxPyEndAllowThreads(__tstate);
17884 if (PyErr_Occurred()) SWIG_fail;
17885 }
17886 resultobj = SWIG_Py_Void();
17887 return resultobj;
17888 fail:
17889 return NULL;
17890 }
17891
17892
17893 SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17894 PyObject *resultobj = 0;
17895 wxDC *arg1 = (wxDC *) 0 ;
17896 int arg2 ;
17897 int arg3 ;
17898 void *argp1 = 0 ;
17899 int res1 = 0 ;
17900 int val2 ;
17901 int ecode2 = 0 ;
17902 int val3 ;
17903 int ecode3 = 0 ;
17904 PyObject * obj0 = 0 ;
17905 PyObject * obj1 = 0 ;
17906 PyObject * obj2 = 0 ;
17907 char * kwnames[] = {
17908 (char *) "self",(char *) "x",(char *) "y", NULL
17909 };
17910
17911 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17912 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17913 if (!SWIG_IsOK(res1)) {
17914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17915 }
17916 arg1 = reinterpret_cast< wxDC * >(argp1);
17917 ecode2 = SWIG_AsVal_int(obj1, &val2);
17918 if (!SWIG_IsOK(ecode2)) {
17919 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
17920 }
17921 arg2 = static_cast< int >(val2);
17922 ecode3 = SWIG_AsVal_int(obj2, &val3);
17923 if (!SWIG_IsOK(ecode3)) {
17924 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
17925 }
17926 arg3 = static_cast< int >(val3);
17927 {
17928 PyThreadState* __tstate = wxPyBeginAllowThreads();
17929 (arg1)->DrawPoint(arg2,arg3);
17930 wxPyEndAllowThreads(__tstate);
17931 if (PyErr_Occurred()) SWIG_fail;
17932 }
17933 resultobj = SWIG_Py_Void();
17934 return resultobj;
17935 fail:
17936 return NULL;
17937 }
17938
17939
17940 SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17941 PyObject *resultobj = 0;
17942 wxDC *arg1 = (wxDC *) 0 ;
17943 wxPoint *arg2 = 0 ;
17944 void *argp1 = 0 ;
17945 int res1 = 0 ;
17946 wxPoint temp2 ;
17947 PyObject * obj0 = 0 ;
17948 PyObject * obj1 = 0 ;
17949 char * kwnames[] = {
17950 (char *) "self",(char *) "pt", NULL
17951 };
17952
17953 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
17954 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17955 if (!SWIG_IsOK(res1)) {
17956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17957 }
17958 arg1 = reinterpret_cast< wxDC * >(argp1);
17959 {
17960 arg2 = &temp2;
17961 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17962 }
17963 {
17964 PyThreadState* __tstate = wxPyBeginAllowThreads();
17965 (arg1)->DrawPoint((wxPoint const &)*arg2);
17966 wxPyEndAllowThreads(__tstate);
17967 if (PyErr_Occurred()) SWIG_fail;
17968 }
17969 resultobj = SWIG_Py_Void();
17970 return resultobj;
17971 fail:
17972 return NULL;
17973 }
17974
17975
17976 SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17977 PyObject *resultobj = 0;
17978 wxDC *arg1 = (wxDC *) 0 ;
17979 int arg2 ;
17980 int arg3 ;
17981 int arg4 ;
17982 int arg5 ;
17983 void *argp1 = 0 ;
17984 int res1 = 0 ;
17985 int val2 ;
17986 int ecode2 = 0 ;
17987 int val3 ;
17988 int ecode3 = 0 ;
17989 int val4 ;
17990 int ecode4 = 0 ;
17991 int val5 ;
17992 int ecode5 = 0 ;
17993 PyObject * obj0 = 0 ;
17994 PyObject * obj1 = 0 ;
17995 PyObject * obj2 = 0 ;
17996 PyObject * obj3 = 0 ;
17997 PyObject * obj4 = 0 ;
17998 char * kwnames[] = {
17999 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18000 };
18001
18002 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18003 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18004 if (!SWIG_IsOK(res1)) {
18005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18006 }
18007 arg1 = reinterpret_cast< wxDC * >(argp1);
18008 ecode2 = SWIG_AsVal_int(obj1, &val2);
18009 if (!SWIG_IsOK(ecode2)) {
18010 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
18011 }
18012 arg2 = static_cast< int >(val2);
18013 ecode3 = SWIG_AsVal_int(obj2, &val3);
18014 if (!SWIG_IsOK(ecode3)) {
18015 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
18016 }
18017 arg3 = static_cast< int >(val3);
18018 ecode4 = SWIG_AsVal_int(obj3, &val4);
18019 if (!SWIG_IsOK(ecode4)) {
18020 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
18021 }
18022 arg4 = static_cast< int >(val4);
18023 ecode5 = SWIG_AsVal_int(obj4, &val5);
18024 if (!SWIG_IsOK(ecode5)) {
18025 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
18026 }
18027 arg5 = static_cast< int >(val5);
18028 {
18029 PyThreadState* __tstate = wxPyBeginAllowThreads();
18030 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
18031 wxPyEndAllowThreads(__tstate);
18032 if (PyErr_Occurred()) SWIG_fail;
18033 }
18034 resultobj = SWIG_Py_Void();
18035 return resultobj;
18036 fail:
18037 return NULL;
18038 }
18039
18040
18041 SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18042 PyObject *resultobj = 0;
18043 wxDC *arg1 = (wxDC *) 0 ;
18044 wxRect *arg2 = 0 ;
18045 void *argp1 = 0 ;
18046 int res1 = 0 ;
18047 wxRect temp2 ;
18048 PyObject * obj0 = 0 ;
18049 PyObject * obj1 = 0 ;
18050 char * kwnames[] = {
18051 (char *) "self",(char *) "rect", NULL
18052 };
18053
18054 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
18055 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18056 if (!SWIG_IsOK(res1)) {
18057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18058 }
18059 arg1 = reinterpret_cast< wxDC * >(argp1);
18060 {
18061 arg2 = &temp2;
18062 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18063 }
18064 {
18065 PyThreadState* __tstate = wxPyBeginAllowThreads();
18066 (arg1)->DrawRectangle((wxRect const &)*arg2);
18067 wxPyEndAllowThreads(__tstate);
18068 if (PyErr_Occurred()) SWIG_fail;
18069 }
18070 resultobj = SWIG_Py_Void();
18071 return resultobj;
18072 fail:
18073 return NULL;
18074 }
18075
18076
18077 SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18078 PyObject *resultobj = 0;
18079 wxDC *arg1 = (wxDC *) 0 ;
18080 wxPoint *arg2 = 0 ;
18081 wxSize *arg3 = 0 ;
18082 void *argp1 = 0 ;
18083 int res1 = 0 ;
18084 wxPoint temp2 ;
18085 wxSize temp3 ;
18086 PyObject * obj0 = 0 ;
18087 PyObject * obj1 = 0 ;
18088 PyObject * obj2 = 0 ;
18089 char * kwnames[] = {
18090 (char *) "self",(char *) "pt",(char *) "sz", NULL
18091 };
18092
18093 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18094 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18095 if (!SWIG_IsOK(res1)) {
18096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18097 }
18098 arg1 = reinterpret_cast< wxDC * >(argp1);
18099 {
18100 arg2 = &temp2;
18101 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18102 }
18103 {
18104 arg3 = &temp3;
18105 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18106 }
18107 {
18108 PyThreadState* __tstate = wxPyBeginAllowThreads();
18109 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
18110 wxPyEndAllowThreads(__tstate);
18111 if (PyErr_Occurred()) SWIG_fail;
18112 }
18113 resultobj = SWIG_Py_Void();
18114 return resultobj;
18115 fail:
18116 return NULL;
18117 }
18118
18119
18120 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18121 PyObject *resultobj = 0;
18122 wxDC *arg1 = (wxDC *) 0 ;
18123 int arg2 ;
18124 int arg3 ;
18125 int arg4 ;
18126 int arg5 ;
18127 double arg6 ;
18128 void *argp1 = 0 ;
18129 int res1 = 0 ;
18130 int val2 ;
18131 int ecode2 = 0 ;
18132 int val3 ;
18133 int ecode3 = 0 ;
18134 int val4 ;
18135 int ecode4 = 0 ;
18136 int val5 ;
18137 int ecode5 = 0 ;
18138 double val6 ;
18139 int ecode6 = 0 ;
18140 PyObject * obj0 = 0 ;
18141 PyObject * obj1 = 0 ;
18142 PyObject * obj2 = 0 ;
18143 PyObject * obj3 = 0 ;
18144 PyObject * obj4 = 0 ;
18145 PyObject * obj5 = 0 ;
18146 char * kwnames[] = {
18147 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
18148 };
18149
18150 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
18151 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18152 if (!SWIG_IsOK(res1)) {
18153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18154 }
18155 arg1 = reinterpret_cast< wxDC * >(argp1);
18156 ecode2 = SWIG_AsVal_int(obj1, &val2);
18157 if (!SWIG_IsOK(ecode2)) {
18158 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
18159 }
18160 arg2 = static_cast< int >(val2);
18161 ecode3 = SWIG_AsVal_int(obj2, &val3);
18162 if (!SWIG_IsOK(ecode3)) {
18163 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
18164 }
18165 arg3 = static_cast< int >(val3);
18166 ecode4 = SWIG_AsVal_int(obj3, &val4);
18167 if (!SWIG_IsOK(ecode4)) {
18168 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
18169 }
18170 arg4 = static_cast< int >(val4);
18171 ecode5 = SWIG_AsVal_int(obj4, &val5);
18172 if (!SWIG_IsOK(ecode5)) {
18173 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
18174 }
18175 arg5 = static_cast< int >(val5);
18176 ecode6 = SWIG_AsVal_double(obj5, &val6);
18177 if (!SWIG_IsOK(ecode6)) {
18178 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
18179 }
18180 arg6 = static_cast< double >(val6);
18181 {
18182 PyThreadState* __tstate = wxPyBeginAllowThreads();
18183 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
18184 wxPyEndAllowThreads(__tstate);
18185 if (PyErr_Occurred()) SWIG_fail;
18186 }
18187 resultobj = SWIG_Py_Void();
18188 return resultobj;
18189 fail:
18190 return NULL;
18191 }
18192
18193
18194 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18195 PyObject *resultobj = 0;
18196 wxDC *arg1 = (wxDC *) 0 ;
18197 wxRect *arg2 = 0 ;
18198 double arg3 ;
18199 void *argp1 = 0 ;
18200 int res1 = 0 ;
18201 wxRect temp2 ;
18202 double val3 ;
18203 int ecode3 = 0 ;
18204 PyObject * obj0 = 0 ;
18205 PyObject * obj1 = 0 ;
18206 PyObject * obj2 = 0 ;
18207 char * kwnames[] = {
18208 (char *) "self",(char *) "r",(char *) "radius", NULL
18209 };
18210
18211 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18212 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18213 if (!SWIG_IsOK(res1)) {
18214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18215 }
18216 arg1 = reinterpret_cast< wxDC * >(argp1);
18217 {
18218 arg2 = &temp2;
18219 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18220 }
18221 ecode3 = SWIG_AsVal_double(obj2, &val3);
18222 if (!SWIG_IsOK(ecode3)) {
18223 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
18224 }
18225 arg3 = static_cast< double >(val3);
18226 {
18227 PyThreadState* __tstate = wxPyBeginAllowThreads();
18228 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
18229 wxPyEndAllowThreads(__tstate);
18230 if (PyErr_Occurred()) SWIG_fail;
18231 }
18232 resultobj = SWIG_Py_Void();
18233 return resultobj;
18234 fail:
18235 return NULL;
18236 }
18237
18238
18239 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18240 PyObject *resultobj = 0;
18241 wxDC *arg1 = (wxDC *) 0 ;
18242 wxPoint *arg2 = 0 ;
18243 wxSize *arg3 = 0 ;
18244 double arg4 ;
18245 void *argp1 = 0 ;
18246 int res1 = 0 ;
18247 wxPoint temp2 ;
18248 wxSize temp3 ;
18249 double val4 ;
18250 int ecode4 = 0 ;
18251 PyObject * obj0 = 0 ;
18252 PyObject * obj1 = 0 ;
18253 PyObject * obj2 = 0 ;
18254 PyObject * obj3 = 0 ;
18255 char * kwnames[] = {
18256 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
18257 };
18258
18259 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18260 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18261 if (!SWIG_IsOK(res1)) {
18262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18263 }
18264 arg1 = reinterpret_cast< wxDC * >(argp1);
18265 {
18266 arg2 = &temp2;
18267 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18268 }
18269 {
18270 arg3 = &temp3;
18271 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18272 }
18273 ecode4 = SWIG_AsVal_double(obj3, &val4);
18274 if (!SWIG_IsOK(ecode4)) {
18275 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
18276 }
18277 arg4 = static_cast< double >(val4);
18278 {
18279 PyThreadState* __tstate = wxPyBeginAllowThreads();
18280 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
18281 wxPyEndAllowThreads(__tstate);
18282 if (PyErr_Occurred()) SWIG_fail;
18283 }
18284 resultobj = SWIG_Py_Void();
18285 return resultobj;
18286 fail:
18287 return NULL;
18288 }
18289
18290
18291 SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18292 PyObject *resultobj = 0;
18293 wxDC *arg1 = (wxDC *) 0 ;
18294 int arg2 ;
18295 int arg3 ;
18296 int arg4 ;
18297 void *argp1 = 0 ;
18298 int res1 = 0 ;
18299 int val2 ;
18300 int ecode2 = 0 ;
18301 int val3 ;
18302 int ecode3 = 0 ;
18303 int val4 ;
18304 int ecode4 = 0 ;
18305 PyObject * obj0 = 0 ;
18306 PyObject * obj1 = 0 ;
18307 PyObject * obj2 = 0 ;
18308 PyObject * obj3 = 0 ;
18309 char * kwnames[] = {
18310 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
18311 };
18312
18313 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18314 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18315 if (!SWIG_IsOK(res1)) {
18316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
18317 }
18318 arg1 = reinterpret_cast< wxDC * >(argp1);
18319 ecode2 = SWIG_AsVal_int(obj1, &val2);
18320 if (!SWIG_IsOK(ecode2)) {
18321 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
18322 }
18323 arg2 = static_cast< int >(val2);
18324 ecode3 = SWIG_AsVal_int(obj2, &val3);
18325 if (!SWIG_IsOK(ecode3)) {
18326 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
18327 }
18328 arg3 = static_cast< int >(val3);
18329 ecode4 = SWIG_AsVal_int(obj3, &val4);
18330 if (!SWIG_IsOK(ecode4)) {
18331 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
18332 }
18333 arg4 = static_cast< int >(val4);
18334 {
18335 PyThreadState* __tstate = wxPyBeginAllowThreads();
18336 (arg1)->DrawCircle(arg2,arg3,arg4);
18337 wxPyEndAllowThreads(__tstate);
18338 if (PyErr_Occurred()) SWIG_fail;
18339 }
18340 resultobj = SWIG_Py_Void();
18341 return resultobj;
18342 fail:
18343 return NULL;
18344 }
18345
18346
18347 SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18348 PyObject *resultobj = 0;
18349 wxDC *arg1 = (wxDC *) 0 ;
18350 wxPoint *arg2 = 0 ;
18351 int arg3 ;
18352 void *argp1 = 0 ;
18353 int res1 = 0 ;
18354 wxPoint temp2 ;
18355 int val3 ;
18356 int ecode3 = 0 ;
18357 PyObject * obj0 = 0 ;
18358 PyObject * obj1 = 0 ;
18359 PyObject * obj2 = 0 ;
18360 char * kwnames[] = {
18361 (char *) "self",(char *) "pt",(char *) "radius", NULL
18362 };
18363
18364 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18365 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18366 if (!SWIG_IsOK(res1)) {
18367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
18368 }
18369 arg1 = reinterpret_cast< wxDC * >(argp1);
18370 {
18371 arg2 = &temp2;
18372 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18373 }
18374 ecode3 = SWIG_AsVal_int(obj2, &val3);
18375 if (!SWIG_IsOK(ecode3)) {
18376 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
18377 }
18378 arg3 = static_cast< int >(val3);
18379 {
18380 PyThreadState* __tstate = wxPyBeginAllowThreads();
18381 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
18382 wxPyEndAllowThreads(__tstate);
18383 if (PyErr_Occurred()) SWIG_fail;
18384 }
18385 resultobj = SWIG_Py_Void();
18386 return resultobj;
18387 fail:
18388 return NULL;
18389 }
18390
18391
18392 SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18393 PyObject *resultobj = 0;
18394 wxDC *arg1 = (wxDC *) 0 ;
18395 int arg2 ;
18396 int arg3 ;
18397 int arg4 ;
18398 int arg5 ;
18399 void *argp1 = 0 ;
18400 int res1 = 0 ;
18401 int val2 ;
18402 int ecode2 = 0 ;
18403 int val3 ;
18404 int ecode3 = 0 ;
18405 int val4 ;
18406 int ecode4 = 0 ;
18407 int val5 ;
18408 int ecode5 = 0 ;
18409 PyObject * obj0 = 0 ;
18410 PyObject * obj1 = 0 ;
18411 PyObject * obj2 = 0 ;
18412 PyObject * obj3 = 0 ;
18413 PyObject * obj4 = 0 ;
18414 char * kwnames[] = {
18415 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18416 };
18417
18418 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18419 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18420 if (!SWIG_IsOK(res1)) {
18421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
18422 }
18423 arg1 = reinterpret_cast< wxDC * >(argp1);
18424 ecode2 = SWIG_AsVal_int(obj1, &val2);
18425 if (!SWIG_IsOK(ecode2)) {
18426 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
18427 }
18428 arg2 = static_cast< int >(val2);
18429 ecode3 = SWIG_AsVal_int(obj2, &val3);
18430 if (!SWIG_IsOK(ecode3)) {
18431 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
18432 }
18433 arg3 = static_cast< int >(val3);
18434 ecode4 = SWIG_AsVal_int(obj3, &val4);
18435 if (!SWIG_IsOK(ecode4)) {
18436 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
18437 }
18438 arg4 = static_cast< int >(val4);
18439 ecode5 = SWIG_AsVal_int(obj4, &val5);
18440 if (!SWIG_IsOK(ecode5)) {
18441 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
18442 }
18443 arg5 = static_cast< int >(val5);
18444 {
18445 PyThreadState* __tstate = wxPyBeginAllowThreads();
18446 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
18447 wxPyEndAllowThreads(__tstate);
18448 if (PyErr_Occurred()) SWIG_fail;
18449 }
18450 resultobj = SWIG_Py_Void();
18451 return resultobj;
18452 fail:
18453 return NULL;
18454 }
18455
18456
18457 SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18458 PyObject *resultobj = 0;
18459 wxDC *arg1 = (wxDC *) 0 ;
18460 wxRect *arg2 = 0 ;
18461 void *argp1 = 0 ;
18462 int res1 = 0 ;
18463 wxRect temp2 ;
18464 PyObject * obj0 = 0 ;
18465 PyObject * obj1 = 0 ;
18466 char * kwnames[] = {
18467 (char *) "self",(char *) "rect", NULL
18468 };
18469
18470 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
18471 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18472 if (!SWIG_IsOK(res1)) {
18473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
18474 }
18475 arg1 = reinterpret_cast< wxDC * >(argp1);
18476 {
18477 arg2 = &temp2;
18478 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18479 }
18480 {
18481 PyThreadState* __tstate = wxPyBeginAllowThreads();
18482 (arg1)->DrawEllipse((wxRect const &)*arg2);
18483 wxPyEndAllowThreads(__tstate);
18484 if (PyErr_Occurred()) SWIG_fail;
18485 }
18486 resultobj = SWIG_Py_Void();
18487 return resultobj;
18488 fail:
18489 return NULL;
18490 }
18491
18492
18493 SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18494 PyObject *resultobj = 0;
18495 wxDC *arg1 = (wxDC *) 0 ;
18496 wxPoint *arg2 = 0 ;
18497 wxSize *arg3 = 0 ;
18498 void *argp1 = 0 ;
18499 int res1 = 0 ;
18500 wxPoint temp2 ;
18501 wxSize temp3 ;
18502 PyObject * obj0 = 0 ;
18503 PyObject * obj1 = 0 ;
18504 PyObject * obj2 = 0 ;
18505 char * kwnames[] = {
18506 (char *) "self",(char *) "pt",(char *) "sz", NULL
18507 };
18508
18509 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18510 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18511 if (!SWIG_IsOK(res1)) {
18512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18513 }
18514 arg1 = reinterpret_cast< wxDC * >(argp1);
18515 {
18516 arg2 = &temp2;
18517 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18518 }
18519 {
18520 arg3 = &temp3;
18521 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18522 }
18523 {
18524 PyThreadState* __tstate = wxPyBeginAllowThreads();
18525 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
18526 wxPyEndAllowThreads(__tstate);
18527 if (PyErr_Occurred()) SWIG_fail;
18528 }
18529 resultobj = SWIG_Py_Void();
18530 return resultobj;
18531 fail:
18532 return NULL;
18533 }
18534
18535
18536 SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18537 PyObject *resultobj = 0;
18538 wxDC *arg1 = (wxDC *) 0 ;
18539 wxIcon *arg2 = 0 ;
18540 int arg3 ;
18541 int arg4 ;
18542 void *argp1 = 0 ;
18543 int res1 = 0 ;
18544 void *argp2 = 0 ;
18545 int res2 = 0 ;
18546 int val3 ;
18547 int ecode3 = 0 ;
18548 int val4 ;
18549 int ecode4 = 0 ;
18550 PyObject * obj0 = 0 ;
18551 PyObject * obj1 = 0 ;
18552 PyObject * obj2 = 0 ;
18553 PyObject * obj3 = 0 ;
18554 char * kwnames[] = {
18555 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
18556 };
18557
18558 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18559 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18560 if (!SWIG_IsOK(res1)) {
18561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
18562 }
18563 arg1 = reinterpret_cast< wxDC * >(argp1);
18564 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
18565 if (!SWIG_IsOK(res2)) {
18566 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
18567 }
18568 if (!argp2) {
18569 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
18570 }
18571 arg2 = reinterpret_cast< wxIcon * >(argp2);
18572 ecode3 = SWIG_AsVal_int(obj2, &val3);
18573 if (!SWIG_IsOK(ecode3)) {
18574 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
18575 }
18576 arg3 = static_cast< int >(val3);
18577 ecode4 = SWIG_AsVal_int(obj3, &val4);
18578 if (!SWIG_IsOK(ecode4)) {
18579 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
18580 }
18581 arg4 = static_cast< int >(val4);
18582 {
18583 PyThreadState* __tstate = wxPyBeginAllowThreads();
18584 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
18585 wxPyEndAllowThreads(__tstate);
18586 if (PyErr_Occurred()) SWIG_fail;
18587 }
18588 resultobj = SWIG_Py_Void();
18589 return resultobj;
18590 fail:
18591 return NULL;
18592 }
18593
18594
18595 SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18596 PyObject *resultobj = 0;
18597 wxDC *arg1 = (wxDC *) 0 ;
18598 wxIcon *arg2 = 0 ;
18599 wxPoint *arg3 = 0 ;
18600 void *argp1 = 0 ;
18601 int res1 = 0 ;
18602 void *argp2 = 0 ;
18603 int res2 = 0 ;
18604 wxPoint temp3 ;
18605 PyObject * obj0 = 0 ;
18606 PyObject * obj1 = 0 ;
18607 PyObject * obj2 = 0 ;
18608 char * kwnames[] = {
18609 (char *) "self",(char *) "icon",(char *) "pt", NULL
18610 };
18611
18612 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18613 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18614 if (!SWIG_IsOK(res1)) {
18615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18616 }
18617 arg1 = reinterpret_cast< wxDC * >(argp1);
18618 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
18619 if (!SWIG_IsOK(res2)) {
18620 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
18621 }
18622 if (!argp2) {
18623 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
18624 }
18625 arg2 = reinterpret_cast< wxIcon * >(argp2);
18626 {
18627 arg3 = &temp3;
18628 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18629 }
18630 {
18631 PyThreadState* __tstate = wxPyBeginAllowThreads();
18632 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
18633 wxPyEndAllowThreads(__tstate);
18634 if (PyErr_Occurred()) SWIG_fail;
18635 }
18636 resultobj = SWIG_Py_Void();
18637 return resultobj;
18638 fail:
18639 return NULL;
18640 }
18641
18642
18643 SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18644 PyObject *resultobj = 0;
18645 wxDC *arg1 = (wxDC *) 0 ;
18646 wxBitmap *arg2 = 0 ;
18647 int arg3 ;
18648 int arg4 ;
18649 bool arg5 = (bool) false ;
18650 void *argp1 = 0 ;
18651 int res1 = 0 ;
18652 void *argp2 = 0 ;
18653 int res2 = 0 ;
18654 int val3 ;
18655 int ecode3 = 0 ;
18656 int val4 ;
18657 int ecode4 = 0 ;
18658 bool val5 ;
18659 int ecode5 = 0 ;
18660 PyObject * obj0 = 0 ;
18661 PyObject * obj1 = 0 ;
18662 PyObject * obj2 = 0 ;
18663 PyObject * obj3 = 0 ;
18664 PyObject * obj4 = 0 ;
18665 char * kwnames[] = {
18666 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
18667 };
18668
18669 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18670 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18671 if (!SWIG_IsOK(res1)) {
18672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
18673 }
18674 arg1 = reinterpret_cast< wxDC * >(argp1);
18675 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
18676 if (!SWIG_IsOK(res2)) {
18677 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18678 }
18679 if (!argp2) {
18680 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18681 }
18682 arg2 = reinterpret_cast< wxBitmap * >(argp2);
18683 ecode3 = SWIG_AsVal_int(obj2, &val3);
18684 if (!SWIG_IsOK(ecode3)) {
18685 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
18686 }
18687 arg3 = static_cast< int >(val3);
18688 ecode4 = SWIG_AsVal_int(obj3, &val4);
18689 if (!SWIG_IsOK(ecode4)) {
18690 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
18691 }
18692 arg4 = static_cast< int >(val4);
18693 if (obj4) {
18694 ecode5 = SWIG_AsVal_bool(obj4, &val5);
18695 if (!SWIG_IsOK(ecode5)) {
18696 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
18697 }
18698 arg5 = static_cast< bool >(val5);
18699 }
18700 {
18701 PyThreadState* __tstate = wxPyBeginAllowThreads();
18702 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
18703 wxPyEndAllowThreads(__tstate);
18704 if (PyErr_Occurred()) SWIG_fail;
18705 }
18706 resultobj = SWIG_Py_Void();
18707 return resultobj;
18708 fail:
18709 return NULL;
18710 }
18711
18712
18713 SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18714 PyObject *resultobj = 0;
18715 wxDC *arg1 = (wxDC *) 0 ;
18716 wxBitmap *arg2 = 0 ;
18717 wxPoint *arg3 = 0 ;
18718 bool arg4 = (bool) false ;
18719 void *argp1 = 0 ;
18720 int res1 = 0 ;
18721 void *argp2 = 0 ;
18722 int res2 = 0 ;
18723 wxPoint temp3 ;
18724 bool val4 ;
18725 int ecode4 = 0 ;
18726 PyObject * obj0 = 0 ;
18727 PyObject * obj1 = 0 ;
18728 PyObject * obj2 = 0 ;
18729 PyObject * obj3 = 0 ;
18730 char * kwnames[] = {
18731 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
18732 };
18733
18734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18735 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18736 if (!SWIG_IsOK(res1)) {
18737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18738 }
18739 arg1 = reinterpret_cast< wxDC * >(argp1);
18740 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
18741 if (!SWIG_IsOK(res2)) {
18742 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18743 }
18744 if (!argp2) {
18745 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18746 }
18747 arg2 = reinterpret_cast< wxBitmap * >(argp2);
18748 {
18749 arg3 = &temp3;
18750 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18751 }
18752 if (obj3) {
18753 ecode4 = SWIG_AsVal_bool(obj3, &val4);
18754 if (!SWIG_IsOK(ecode4)) {
18755 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
18756 }
18757 arg4 = static_cast< bool >(val4);
18758 }
18759 {
18760 PyThreadState* __tstate = wxPyBeginAllowThreads();
18761 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
18762 wxPyEndAllowThreads(__tstate);
18763 if (PyErr_Occurred()) SWIG_fail;
18764 }
18765 resultobj = SWIG_Py_Void();
18766 return resultobj;
18767 fail:
18768 return NULL;
18769 }
18770
18771
18772 SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18773 PyObject *resultobj = 0;
18774 wxDC *arg1 = (wxDC *) 0 ;
18775 wxString *arg2 = 0 ;
18776 int arg3 ;
18777 int arg4 ;
18778 void *argp1 = 0 ;
18779 int res1 = 0 ;
18780 bool temp2 = false ;
18781 int val3 ;
18782 int ecode3 = 0 ;
18783 int val4 ;
18784 int ecode4 = 0 ;
18785 PyObject * obj0 = 0 ;
18786 PyObject * obj1 = 0 ;
18787 PyObject * obj2 = 0 ;
18788 PyObject * obj3 = 0 ;
18789 char * kwnames[] = {
18790 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
18791 };
18792
18793 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18794 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18795 if (!SWIG_IsOK(res1)) {
18796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
18797 }
18798 arg1 = reinterpret_cast< wxDC * >(argp1);
18799 {
18800 arg2 = wxString_in_helper(obj1);
18801 if (arg2 == NULL) SWIG_fail;
18802 temp2 = true;
18803 }
18804 ecode3 = SWIG_AsVal_int(obj2, &val3);
18805 if (!SWIG_IsOK(ecode3)) {
18806 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
18807 }
18808 arg3 = static_cast< int >(val3);
18809 ecode4 = SWIG_AsVal_int(obj3, &val4);
18810 if (!SWIG_IsOK(ecode4)) {
18811 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
18812 }
18813 arg4 = static_cast< int >(val4);
18814 {
18815 PyThreadState* __tstate = wxPyBeginAllowThreads();
18816 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
18817 wxPyEndAllowThreads(__tstate);
18818 if (PyErr_Occurred()) SWIG_fail;
18819 }
18820 resultobj = SWIG_Py_Void();
18821 {
18822 if (temp2)
18823 delete arg2;
18824 }
18825 return resultobj;
18826 fail:
18827 {
18828 if (temp2)
18829 delete arg2;
18830 }
18831 return NULL;
18832 }
18833
18834
18835 SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18836 PyObject *resultobj = 0;
18837 wxDC *arg1 = (wxDC *) 0 ;
18838 wxString *arg2 = 0 ;
18839 wxPoint *arg3 = 0 ;
18840 void *argp1 = 0 ;
18841 int res1 = 0 ;
18842 bool temp2 = false ;
18843 wxPoint temp3 ;
18844 PyObject * obj0 = 0 ;
18845 PyObject * obj1 = 0 ;
18846 PyObject * obj2 = 0 ;
18847 char * kwnames[] = {
18848 (char *) "self",(char *) "text",(char *) "pt", NULL
18849 };
18850
18851 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18852 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18853 if (!SWIG_IsOK(res1)) {
18854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18855 }
18856 arg1 = reinterpret_cast< wxDC * >(argp1);
18857 {
18858 arg2 = wxString_in_helper(obj1);
18859 if (arg2 == NULL) SWIG_fail;
18860 temp2 = true;
18861 }
18862 {
18863 arg3 = &temp3;
18864 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18865 }
18866 {
18867 PyThreadState* __tstate = wxPyBeginAllowThreads();
18868 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
18869 wxPyEndAllowThreads(__tstate);
18870 if (PyErr_Occurred()) SWIG_fail;
18871 }
18872 resultobj = SWIG_Py_Void();
18873 {
18874 if (temp2)
18875 delete arg2;
18876 }
18877 return resultobj;
18878 fail:
18879 {
18880 if (temp2)
18881 delete arg2;
18882 }
18883 return NULL;
18884 }
18885
18886
18887 SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18888 PyObject *resultobj = 0;
18889 wxDC *arg1 = (wxDC *) 0 ;
18890 wxString *arg2 = 0 ;
18891 int arg3 ;
18892 int arg4 ;
18893 double arg5 ;
18894 void *argp1 = 0 ;
18895 int res1 = 0 ;
18896 bool temp2 = false ;
18897 int val3 ;
18898 int ecode3 = 0 ;
18899 int val4 ;
18900 int ecode4 = 0 ;
18901 double val5 ;
18902 int ecode5 = 0 ;
18903 PyObject * obj0 = 0 ;
18904 PyObject * obj1 = 0 ;
18905 PyObject * obj2 = 0 ;
18906 PyObject * obj3 = 0 ;
18907 PyObject * obj4 = 0 ;
18908 char * kwnames[] = {
18909 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
18910 };
18911
18912 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18913 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18914 if (!SWIG_IsOK(res1)) {
18915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
18916 }
18917 arg1 = reinterpret_cast< wxDC * >(argp1);
18918 {
18919 arg2 = wxString_in_helper(obj1);
18920 if (arg2 == NULL) SWIG_fail;
18921 temp2 = true;
18922 }
18923 ecode3 = SWIG_AsVal_int(obj2, &val3);
18924 if (!SWIG_IsOK(ecode3)) {
18925 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
18926 }
18927 arg3 = static_cast< int >(val3);
18928 ecode4 = SWIG_AsVal_int(obj3, &val4);
18929 if (!SWIG_IsOK(ecode4)) {
18930 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
18931 }
18932 arg4 = static_cast< int >(val4);
18933 ecode5 = SWIG_AsVal_double(obj4, &val5);
18934 if (!SWIG_IsOK(ecode5)) {
18935 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
18936 }
18937 arg5 = static_cast< double >(val5);
18938 {
18939 PyThreadState* __tstate = wxPyBeginAllowThreads();
18940 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
18941 wxPyEndAllowThreads(__tstate);
18942 if (PyErr_Occurred()) SWIG_fail;
18943 }
18944 resultobj = SWIG_Py_Void();
18945 {
18946 if (temp2)
18947 delete arg2;
18948 }
18949 return resultobj;
18950 fail:
18951 {
18952 if (temp2)
18953 delete arg2;
18954 }
18955 return NULL;
18956 }
18957
18958
18959 SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18960 PyObject *resultobj = 0;
18961 wxDC *arg1 = (wxDC *) 0 ;
18962 wxString *arg2 = 0 ;
18963 wxPoint *arg3 = 0 ;
18964 double arg4 ;
18965 void *argp1 = 0 ;
18966 int res1 = 0 ;
18967 bool temp2 = false ;
18968 wxPoint temp3 ;
18969 double val4 ;
18970 int ecode4 = 0 ;
18971 PyObject * obj0 = 0 ;
18972 PyObject * obj1 = 0 ;
18973 PyObject * obj2 = 0 ;
18974 PyObject * obj3 = 0 ;
18975 char * kwnames[] = {
18976 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
18977 };
18978
18979 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18980 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18981 if (!SWIG_IsOK(res1)) {
18982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18983 }
18984 arg1 = reinterpret_cast< wxDC * >(argp1);
18985 {
18986 arg2 = wxString_in_helper(obj1);
18987 if (arg2 == NULL) SWIG_fail;
18988 temp2 = true;
18989 }
18990 {
18991 arg3 = &temp3;
18992 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18993 }
18994 ecode4 = SWIG_AsVal_double(obj3, &val4);
18995 if (!SWIG_IsOK(ecode4)) {
18996 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
18997 }
18998 arg4 = static_cast< double >(val4);
18999 {
19000 PyThreadState* __tstate = wxPyBeginAllowThreads();
19001 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
19002 wxPyEndAllowThreads(__tstate);
19003 if (PyErr_Occurred()) SWIG_fail;
19004 }
19005 resultobj = SWIG_Py_Void();
19006 {
19007 if (temp2)
19008 delete arg2;
19009 }
19010 return resultobj;
19011 fail:
19012 {
19013 if (temp2)
19014 delete arg2;
19015 }
19016 return NULL;
19017 }
19018
19019
19020 SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19021 PyObject *resultobj = 0;
19022 wxDC *arg1 = (wxDC *) 0 ;
19023 int arg2 ;
19024 int arg3 ;
19025 int arg4 ;
19026 int arg5 ;
19027 wxDC *arg6 = (wxDC *) 0 ;
19028 int arg7 ;
19029 int arg8 ;
19030 int arg9 = (int) wxCOPY ;
19031 bool arg10 = (bool) false ;
19032 int arg11 = (int) -1 ;
19033 int arg12 = (int) -1 ;
19034 bool result;
19035 void *argp1 = 0 ;
19036 int res1 = 0 ;
19037 int val2 ;
19038 int ecode2 = 0 ;
19039 int val3 ;
19040 int ecode3 = 0 ;
19041 int val4 ;
19042 int ecode4 = 0 ;
19043 int val5 ;
19044 int ecode5 = 0 ;
19045 void *argp6 = 0 ;
19046 int res6 = 0 ;
19047 int val7 ;
19048 int ecode7 = 0 ;
19049 int val8 ;
19050 int ecode8 = 0 ;
19051 int val9 ;
19052 int ecode9 = 0 ;
19053 bool val10 ;
19054 int ecode10 = 0 ;
19055 int val11 ;
19056 int ecode11 = 0 ;
19057 int val12 ;
19058 int ecode12 = 0 ;
19059 PyObject * obj0 = 0 ;
19060 PyObject * obj1 = 0 ;
19061 PyObject * obj2 = 0 ;
19062 PyObject * obj3 = 0 ;
19063 PyObject * obj4 = 0 ;
19064 PyObject * obj5 = 0 ;
19065 PyObject * obj6 = 0 ;
19066 PyObject * obj7 = 0 ;
19067 PyObject * obj8 = 0 ;
19068 PyObject * obj9 = 0 ;
19069 PyObject * obj10 = 0 ;
19070 PyObject * obj11 = 0 ;
19071 char * kwnames[] = {
19072 (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
19073 };
19074
19075 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;
19076 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19077 if (!SWIG_IsOK(res1)) {
19078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
19079 }
19080 arg1 = reinterpret_cast< wxDC * >(argp1);
19081 ecode2 = SWIG_AsVal_int(obj1, &val2);
19082 if (!SWIG_IsOK(ecode2)) {
19083 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
19084 }
19085 arg2 = static_cast< int >(val2);
19086 ecode3 = SWIG_AsVal_int(obj2, &val3);
19087 if (!SWIG_IsOK(ecode3)) {
19088 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
19089 }
19090 arg3 = static_cast< int >(val3);
19091 ecode4 = SWIG_AsVal_int(obj3, &val4);
19092 if (!SWIG_IsOK(ecode4)) {
19093 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
19094 }
19095 arg4 = static_cast< int >(val4);
19096 ecode5 = SWIG_AsVal_int(obj4, &val5);
19097 if (!SWIG_IsOK(ecode5)) {
19098 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
19099 }
19100 arg5 = static_cast< int >(val5);
19101 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
19102 if (!SWIG_IsOK(res6)) {
19103 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
19104 }
19105 arg6 = reinterpret_cast< wxDC * >(argp6);
19106 ecode7 = SWIG_AsVal_int(obj6, &val7);
19107 if (!SWIG_IsOK(ecode7)) {
19108 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
19109 }
19110 arg7 = static_cast< int >(val7);
19111 ecode8 = SWIG_AsVal_int(obj7, &val8);
19112 if (!SWIG_IsOK(ecode8)) {
19113 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
19114 }
19115 arg8 = static_cast< int >(val8);
19116 if (obj8) {
19117 ecode9 = SWIG_AsVal_int(obj8, &val9);
19118 if (!SWIG_IsOK(ecode9)) {
19119 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
19120 }
19121 arg9 = static_cast< int >(val9);
19122 }
19123 if (obj9) {
19124 ecode10 = SWIG_AsVal_bool(obj9, &val10);
19125 if (!SWIG_IsOK(ecode10)) {
19126 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
19127 }
19128 arg10 = static_cast< bool >(val10);
19129 }
19130 if (obj10) {
19131 ecode11 = SWIG_AsVal_int(obj10, &val11);
19132 if (!SWIG_IsOK(ecode11)) {
19133 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
19134 }
19135 arg11 = static_cast< int >(val11);
19136 }
19137 if (obj11) {
19138 ecode12 = SWIG_AsVal_int(obj11, &val12);
19139 if (!SWIG_IsOK(ecode12)) {
19140 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
19141 }
19142 arg12 = static_cast< int >(val12);
19143 }
19144 {
19145 PyThreadState* __tstate = wxPyBeginAllowThreads();
19146 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
19147 wxPyEndAllowThreads(__tstate);
19148 if (PyErr_Occurred()) SWIG_fail;
19149 }
19150 {
19151 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19152 }
19153 return resultobj;
19154 fail:
19155 return NULL;
19156 }
19157
19158
19159 SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19160 PyObject *resultobj = 0;
19161 wxDC *arg1 = (wxDC *) 0 ;
19162 wxPoint *arg2 = 0 ;
19163 wxSize *arg3 = 0 ;
19164 wxDC *arg4 = (wxDC *) 0 ;
19165 wxPoint *arg5 = 0 ;
19166 int arg6 = (int) wxCOPY ;
19167 bool arg7 = (bool) false ;
19168 wxPoint const &arg8_defvalue = wxDefaultPosition ;
19169 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
19170 bool result;
19171 void *argp1 = 0 ;
19172 int res1 = 0 ;
19173 wxPoint temp2 ;
19174 wxSize temp3 ;
19175 void *argp4 = 0 ;
19176 int res4 = 0 ;
19177 wxPoint temp5 ;
19178 int val6 ;
19179 int ecode6 = 0 ;
19180 bool val7 ;
19181 int ecode7 = 0 ;
19182 wxPoint temp8 ;
19183 PyObject * obj0 = 0 ;
19184 PyObject * obj1 = 0 ;
19185 PyObject * obj2 = 0 ;
19186 PyObject * obj3 = 0 ;
19187 PyObject * obj4 = 0 ;
19188 PyObject * obj5 = 0 ;
19189 PyObject * obj6 = 0 ;
19190 PyObject * obj7 = 0 ;
19191 char * kwnames[] = {
19192 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
19193 };
19194
19195 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) 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_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19199 }
19200 arg1 = reinterpret_cast< wxDC * >(argp1);
19201 {
19202 arg2 = &temp2;
19203 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19204 }
19205 {
19206 arg3 = &temp3;
19207 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19208 }
19209 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
19210 if (!SWIG_IsOK(res4)) {
19211 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
19212 }
19213 arg4 = reinterpret_cast< wxDC * >(argp4);
19214 {
19215 arg5 = &temp5;
19216 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
19217 }
19218 if (obj5) {
19219 ecode6 = SWIG_AsVal_int(obj5, &val6);
19220 if (!SWIG_IsOK(ecode6)) {
19221 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
19222 }
19223 arg6 = static_cast< int >(val6);
19224 }
19225 if (obj6) {
19226 ecode7 = SWIG_AsVal_bool(obj6, &val7);
19227 if (!SWIG_IsOK(ecode7)) {
19228 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
19229 }
19230 arg7 = static_cast< bool >(val7);
19231 }
19232 if (obj7) {
19233 {
19234 arg8 = &temp8;
19235 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
19236 }
19237 }
19238 {
19239 PyThreadState* __tstate = wxPyBeginAllowThreads();
19240 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
19241 wxPyEndAllowThreads(__tstate);
19242 if (PyErr_Occurred()) SWIG_fail;
19243 }
19244 {
19245 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19246 }
19247 return resultobj;
19248 fail:
19249 return NULL;
19250 }
19251
19252
19253 SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19254 PyObject *resultobj = 0;
19255 wxDC *arg1 = (wxDC *) 0 ;
19256 int arg2 ;
19257 int arg3 ;
19258 int arg4 ;
19259 int arg5 ;
19260 void *argp1 = 0 ;
19261 int res1 = 0 ;
19262 int val2 ;
19263 int ecode2 = 0 ;
19264 int val3 ;
19265 int ecode3 = 0 ;
19266 int val4 ;
19267 int ecode4 = 0 ;
19268 int val5 ;
19269 int ecode5 = 0 ;
19270 PyObject * obj0 = 0 ;
19271 PyObject * obj1 = 0 ;
19272 PyObject * obj2 = 0 ;
19273 PyObject * obj3 = 0 ;
19274 PyObject * obj4 = 0 ;
19275 char * kwnames[] = {
19276 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19277 };
19278
19279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19281 if (!SWIG_IsOK(res1)) {
19282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19283 }
19284 arg1 = reinterpret_cast< wxDC * >(argp1);
19285 ecode2 = SWIG_AsVal_int(obj1, &val2);
19286 if (!SWIG_IsOK(ecode2)) {
19287 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
19288 }
19289 arg2 = static_cast< int >(val2);
19290 ecode3 = SWIG_AsVal_int(obj2, &val3);
19291 if (!SWIG_IsOK(ecode3)) {
19292 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
19293 }
19294 arg3 = static_cast< int >(val3);
19295 ecode4 = SWIG_AsVal_int(obj3, &val4);
19296 if (!SWIG_IsOK(ecode4)) {
19297 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
19298 }
19299 arg4 = static_cast< int >(val4);
19300 ecode5 = SWIG_AsVal_int(obj4, &val5);
19301 if (!SWIG_IsOK(ecode5)) {
19302 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
19303 }
19304 arg5 = static_cast< int >(val5);
19305 {
19306 PyThreadState* __tstate = wxPyBeginAllowThreads();
19307 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
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_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19319 PyObject *resultobj = 0;
19320 wxDC *arg1 = (wxDC *) 0 ;
19321 wxPoint *arg2 = 0 ;
19322 wxSize *arg3 = 0 ;
19323 void *argp1 = 0 ;
19324 int res1 = 0 ;
19325 wxPoint temp2 ;
19326 wxSize temp3 ;
19327 PyObject * obj0 = 0 ;
19328 PyObject * obj1 = 0 ;
19329 PyObject * obj2 = 0 ;
19330 char * kwnames[] = {
19331 (char *) "self",(char *) "pt",(char *) "sz", NULL
19332 };
19333
19334 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19335 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19336 if (!SWIG_IsOK(res1)) {
19337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19338 }
19339 arg1 = reinterpret_cast< wxDC * >(argp1);
19340 {
19341 arg2 = &temp2;
19342 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19343 }
19344 {
19345 arg3 = &temp3;
19346 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19347 }
19348 {
19349 PyThreadState* __tstate = wxPyBeginAllowThreads();
19350 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
19351 wxPyEndAllowThreads(__tstate);
19352 if (PyErr_Occurred()) SWIG_fail;
19353 }
19354 resultobj = SWIG_Py_Void();
19355 return resultobj;
19356 fail:
19357 return NULL;
19358 }
19359
19360
19361 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19362 PyObject *resultobj = 0;
19363 wxDC *arg1 = (wxDC *) 0 ;
19364 wxRegion *arg2 = 0 ;
19365 void *argp1 = 0 ;
19366 int res1 = 0 ;
19367 void *argp2 = 0 ;
19368 int res2 = 0 ;
19369 PyObject * obj0 = 0 ;
19370 PyObject * obj1 = 0 ;
19371 char * kwnames[] = {
19372 (char *) "self",(char *) "region", NULL
19373 };
19374
19375 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
19376 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19377 if (!SWIG_IsOK(res1)) {
19378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19379 }
19380 arg1 = reinterpret_cast< wxDC * >(argp1);
19381 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
19382 if (!SWIG_IsOK(res2)) {
19383 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
19384 }
19385 if (!argp2) {
19386 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
19387 }
19388 arg2 = reinterpret_cast< wxRegion * >(argp2);
19389 {
19390 PyThreadState* __tstate = wxPyBeginAllowThreads();
19391 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
19392 wxPyEndAllowThreads(__tstate);
19393 if (PyErr_Occurred()) SWIG_fail;
19394 }
19395 resultobj = SWIG_Py_Void();
19396 return resultobj;
19397 fail:
19398 return NULL;
19399 }
19400
19401
19402 SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19403 PyObject *resultobj = 0;
19404 wxDC *arg1 = (wxDC *) 0 ;
19405 wxRect *arg2 = 0 ;
19406 void *argp1 = 0 ;
19407 int res1 = 0 ;
19408 wxRect temp2 ;
19409 PyObject * obj0 = 0 ;
19410 PyObject * obj1 = 0 ;
19411 char * kwnames[] = {
19412 (char *) "self",(char *) "rect", NULL
19413 };
19414
19415 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
19416 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19417 if (!SWIG_IsOK(res1)) {
19418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
19419 }
19420 arg1 = reinterpret_cast< wxDC * >(argp1);
19421 {
19422 arg2 = &temp2;
19423 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19424 }
19425 {
19426 PyThreadState* __tstate = wxPyBeginAllowThreads();
19427 (arg1)->SetClippingRegion((wxRect const &)*arg2);
19428 wxPyEndAllowThreads(__tstate);
19429 if (PyErr_Occurred()) SWIG_fail;
19430 }
19431 resultobj = SWIG_Py_Void();
19432 return resultobj;
19433 fail:
19434 return NULL;
19435 }
19436
19437
19438 SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19439 PyObject *resultobj = 0;
19440 wxDC *arg1 = (wxDC *) 0 ;
19441 int arg2 ;
19442 wxPoint *arg3 = (wxPoint *) 0 ;
19443 int arg4 = (int) 0 ;
19444 int arg5 = (int) 0 ;
19445 void *argp1 = 0 ;
19446 int res1 = 0 ;
19447 int val4 ;
19448 int ecode4 = 0 ;
19449 int val5 ;
19450 int ecode5 = 0 ;
19451 PyObject * obj0 = 0 ;
19452 PyObject * obj1 = 0 ;
19453 PyObject * obj2 = 0 ;
19454 PyObject * obj3 = 0 ;
19455 char * kwnames[] = {
19456 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
19457 };
19458
19459 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19460 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19461 if (!SWIG_IsOK(res1)) {
19462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
19463 }
19464 arg1 = reinterpret_cast< wxDC * >(argp1);
19465 {
19466 arg3 = wxPoint_LIST_helper(obj1, &arg2);
19467 if (arg3 == NULL) SWIG_fail;
19468 }
19469 if (obj2) {
19470 ecode4 = SWIG_AsVal_int(obj2, &val4);
19471 if (!SWIG_IsOK(ecode4)) {
19472 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
19473 }
19474 arg4 = static_cast< int >(val4);
19475 }
19476 if (obj3) {
19477 ecode5 = SWIG_AsVal_int(obj3, &val5);
19478 if (!SWIG_IsOK(ecode5)) {
19479 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
19480 }
19481 arg5 = static_cast< int >(val5);
19482 }
19483 {
19484 PyThreadState* __tstate = wxPyBeginAllowThreads();
19485 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
19486 wxPyEndAllowThreads(__tstate);
19487 if (PyErr_Occurred()) SWIG_fail;
19488 }
19489 resultobj = SWIG_Py_Void();
19490 {
19491 if (arg3) delete [] arg3;
19492 }
19493 return resultobj;
19494 fail:
19495 {
19496 if (arg3) delete [] arg3;
19497 }
19498 return NULL;
19499 }
19500
19501
19502 SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19503 PyObject *resultobj = 0;
19504 wxDC *arg1 = (wxDC *) 0 ;
19505 int arg2 ;
19506 wxPoint *arg3 = (wxPoint *) 0 ;
19507 int arg4 = (int) 0 ;
19508 int arg5 = (int) 0 ;
19509 int arg6 = (int) wxODDEVEN_RULE ;
19510 void *argp1 = 0 ;
19511 int res1 = 0 ;
19512 int val4 ;
19513 int ecode4 = 0 ;
19514 int val5 ;
19515 int ecode5 = 0 ;
19516 int val6 ;
19517 int ecode6 = 0 ;
19518 PyObject * obj0 = 0 ;
19519 PyObject * obj1 = 0 ;
19520 PyObject * obj2 = 0 ;
19521 PyObject * obj3 = 0 ;
19522 PyObject * obj4 = 0 ;
19523 char * kwnames[] = {
19524 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
19525 };
19526
19527 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19528 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19529 if (!SWIG_IsOK(res1)) {
19530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
19531 }
19532 arg1 = reinterpret_cast< wxDC * >(argp1);
19533 {
19534 arg3 = wxPoint_LIST_helper(obj1, &arg2);
19535 if (arg3 == NULL) SWIG_fail;
19536 }
19537 if (obj2) {
19538 ecode4 = SWIG_AsVal_int(obj2, &val4);
19539 if (!SWIG_IsOK(ecode4)) {
19540 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
19541 }
19542 arg4 = static_cast< int >(val4);
19543 }
19544 if (obj3) {
19545 ecode5 = SWIG_AsVal_int(obj3, &val5);
19546 if (!SWIG_IsOK(ecode5)) {
19547 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
19548 }
19549 arg5 = static_cast< int >(val5);
19550 }
19551 if (obj4) {
19552 ecode6 = SWIG_AsVal_int(obj4, &val6);
19553 if (!SWIG_IsOK(ecode6)) {
19554 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
19555 }
19556 arg6 = static_cast< int >(val6);
19557 }
19558 {
19559 PyThreadState* __tstate = wxPyBeginAllowThreads();
19560 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
19561 wxPyEndAllowThreads(__tstate);
19562 if (PyErr_Occurred()) SWIG_fail;
19563 }
19564 resultobj = SWIG_Py_Void();
19565 {
19566 if (arg3) delete [] arg3;
19567 }
19568 return resultobj;
19569 fail:
19570 {
19571 if (arg3) delete [] arg3;
19572 }
19573 return NULL;
19574 }
19575
19576
19577 SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19578 PyObject *resultobj = 0;
19579 wxDC *arg1 = (wxDC *) 0 ;
19580 wxString *arg2 = 0 ;
19581 wxRect *arg3 = 0 ;
19582 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
19583 int arg5 = (int) -1 ;
19584 void *argp1 = 0 ;
19585 int res1 = 0 ;
19586 bool temp2 = false ;
19587 wxRect temp3 ;
19588 int val4 ;
19589 int ecode4 = 0 ;
19590 int val5 ;
19591 int ecode5 = 0 ;
19592 PyObject * obj0 = 0 ;
19593 PyObject * obj1 = 0 ;
19594 PyObject * obj2 = 0 ;
19595 PyObject * obj3 = 0 ;
19596 PyObject * obj4 = 0 ;
19597 char * kwnames[] = {
19598 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
19599 };
19600
19601 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19602 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19603 if (!SWIG_IsOK(res1)) {
19604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
19605 }
19606 arg1 = reinterpret_cast< wxDC * >(argp1);
19607 {
19608 arg2 = wxString_in_helper(obj1);
19609 if (arg2 == NULL) SWIG_fail;
19610 temp2 = true;
19611 }
19612 {
19613 arg3 = &temp3;
19614 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
19615 }
19616 if (obj3) {
19617 ecode4 = SWIG_AsVal_int(obj3, &val4);
19618 if (!SWIG_IsOK(ecode4)) {
19619 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
19620 }
19621 arg4 = static_cast< int >(val4);
19622 }
19623 if (obj4) {
19624 ecode5 = SWIG_AsVal_int(obj4, &val5);
19625 if (!SWIG_IsOK(ecode5)) {
19626 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
19627 }
19628 arg5 = static_cast< int >(val5);
19629 }
19630 {
19631 PyThreadState* __tstate = wxPyBeginAllowThreads();
19632 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
19633 wxPyEndAllowThreads(__tstate);
19634 if (PyErr_Occurred()) SWIG_fail;
19635 }
19636 resultobj = SWIG_Py_Void();
19637 {
19638 if (temp2)
19639 delete arg2;
19640 }
19641 return resultobj;
19642 fail:
19643 {
19644 if (temp2)
19645 delete arg2;
19646 }
19647 return NULL;
19648 }
19649
19650
19651 SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19652 PyObject *resultobj = 0;
19653 wxDC *arg1 = (wxDC *) 0 ;
19654 wxString *arg2 = 0 ;
19655 wxBitmap *arg3 = 0 ;
19656 wxRect *arg4 = 0 ;
19657 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
19658 int arg6 = (int) -1 ;
19659 wxRect result;
19660 void *argp1 = 0 ;
19661 int res1 = 0 ;
19662 bool temp2 = false ;
19663 void *argp3 = 0 ;
19664 int res3 = 0 ;
19665 wxRect temp4 ;
19666 int val5 ;
19667 int ecode5 = 0 ;
19668 int val6 ;
19669 int ecode6 = 0 ;
19670 PyObject * obj0 = 0 ;
19671 PyObject * obj1 = 0 ;
19672 PyObject * obj2 = 0 ;
19673 PyObject * obj3 = 0 ;
19674 PyObject * obj4 = 0 ;
19675 PyObject * obj5 = 0 ;
19676 char * kwnames[] = {
19677 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
19678 };
19679
19680 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
19681 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19682 if (!SWIG_IsOK(res1)) {
19683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
19684 }
19685 arg1 = reinterpret_cast< wxDC * >(argp1);
19686 {
19687 arg2 = wxString_in_helper(obj1);
19688 if (arg2 == NULL) SWIG_fail;
19689 temp2 = true;
19690 }
19691 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
19692 if (!SWIG_IsOK(res3)) {
19693 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
19694 }
19695 if (!argp3) {
19696 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
19697 }
19698 arg3 = reinterpret_cast< wxBitmap * >(argp3);
19699 {
19700 arg4 = &temp4;
19701 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
19702 }
19703 if (obj4) {
19704 ecode5 = SWIG_AsVal_int(obj4, &val5);
19705 if (!SWIG_IsOK(ecode5)) {
19706 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
19707 }
19708 arg5 = static_cast< int >(val5);
19709 }
19710 if (obj5) {
19711 ecode6 = SWIG_AsVal_int(obj5, &val6);
19712 if (!SWIG_IsOK(ecode6)) {
19713 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
19714 }
19715 arg6 = static_cast< int >(val6);
19716 }
19717 {
19718 PyThreadState* __tstate = wxPyBeginAllowThreads();
19719 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
19720 wxPyEndAllowThreads(__tstate);
19721 if (PyErr_Occurred()) SWIG_fail;
19722 }
19723 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
19724 {
19725 if (temp2)
19726 delete arg2;
19727 }
19728 return resultobj;
19729 fail:
19730 {
19731 if (temp2)
19732 delete arg2;
19733 }
19734 return NULL;
19735 }
19736
19737
19738 SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19739 PyObject *resultobj = 0;
19740 wxDC *arg1 = (wxDC *) 0 ;
19741 int arg2 ;
19742 wxPoint *arg3 = (wxPoint *) 0 ;
19743 void *argp1 = 0 ;
19744 int res1 = 0 ;
19745 PyObject * obj0 = 0 ;
19746 PyObject * obj1 = 0 ;
19747 char * kwnames[] = {
19748 (char *) "self",(char *) "points", NULL
19749 };
19750
19751 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
19752 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19753 if (!SWIG_IsOK(res1)) {
19754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
19755 }
19756 arg1 = reinterpret_cast< wxDC * >(argp1);
19757 {
19758 arg3 = wxPoint_LIST_helper(obj1, &arg2);
19759 if (arg3 == NULL) SWIG_fail;
19760 }
19761 {
19762 PyThreadState* __tstate = wxPyBeginAllowThreads();
19763 (arg1)->DrawSpline(arg2,arg3);
19764 wxPyEndAllowThreads(__tstate);
19765 if (PyErr_Occurred()) SWIG_fail;
19766 }
19767 resultobj = SWIG_Py_Void();
19768 {
19769 if (arg3) delete [] arg3;
19770 }
19771 return resultobj;
19772 fail:
19773 {
19774 if (arg3) delete [] arg3;
19775 }
19776 return NULL;
19777 }
19778
19779
19780 SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19781 PyObject *resultobj = 0;
19782 wxDC *arg1 = (wxDC *) 0 ;
19783 void *argp1 = 0 ;
19784 int res1 = 0 ;
19785 PyObject *swig_obj[1] ;
19786
19787 if (!args) SWIG_fail;
19788 swig_obj[0] = args;
19789 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19790 if (!SWIG_IsOK(res1)) {
19791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
19792 }
19793 arg1 = reinterpret_cast< wxDC * >(argp1);
19794 {
19795 PyThreadState* __tstate = wxPyBeginAllowThreads();
19796 (arg1)->Clear();
19797 wxPyEndAllowThreads(__tstate);
19798 if (PyErr_Occurred()) SWIG_fail;
19799 }
19800 resultobj = SWIG_Py_Void();
19801 return resultobj;
19802 fail:
19803 return NULL;
19804 }
19805
19806
19807 SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19808 PyObject *resultobj = 0;
19809 wxDC *arg1 = (wxDC *) 0 ;
19810 wxString *arg2 = 0 ;
19811 bool result;
19812 void *argp1 = 0 ;
19813 int res1 = 0 ;
19814 bool temp2 = false ;
19815 PyObject * obj0 = 0 ;
19816 PyObject * obj1 = 0 ;
19817 char * kwnames[] = {
19818 (char *) "self",(char *) "message", NULL
19819 };
19820
19821 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
19822 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19823 if (!SWIG_IsOK(res1)) {
19824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
19825 }
19826 arg1 = reinterpret_cast< wxDC * >(argp1);
19827 {
19828 arg2 = wxString_in_helper(obj1);
19829 if (arg2 == NULL) SWIG_fail;
19830 temp2 = true;
19831 }
19832 {
19833 PyThreadState* __tstate = wxPyBeginAllowThreads();
19834 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
19835 wxPyEndAllowThreads(__tstate);
19836 if (PyErr_Occurred()) SWIG_fail;
19837 }
19838 {
19839 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19840 }
19841 {
19842 if (temp2)
19843 delete arg2;
19844 }
19845 return resultobj;
19846 fail:
19847 {
19848 if (temp2)
19849 delete arg2;
19850 }
19851 return NULL;
19852 }
19853
19854
19855 SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19856 PyObject *resultobj = 0;
19857 wxDC *arg1 = (wxDC *) 0 ;
19858 void *argp1 = 0 ;
19859 int res1 = 0 ;
19860 PyObject *swig_obj[1] ;
19861
19862 if (!args) SWIG_fail;
19863 swig_obj[0] = args;
19864 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19865 if (!SWIG_IsOK(res1)) {
19866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
19867 }
19868 arg1 = reinterpret_cast< wxDC * >(argp1);
19869 {
19870 PyThreadState* __tstate = wxPyBeginAllowThreads();
19871 (arg1)->EndDoc();
19872 wxPyEndAllowThreads(__tstate);
19873 if (PyErr_Occurred()) SWIG_fail;
19874 }
19875 resultobj = SWIG_Py_Void();
19876 return resultobj;
19877 fail:
19878 return NULL;
19879 }
19880
19881
19882 SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19883 PyObject *resultobj = 0;
19884 wxDC *arg1 = (wxDC *) 0 ;
19885 void *argp1 = 0 ;
19886 int res1 = 0 ;
19887 PyObject *swig_obj[1] ;
19888
19889 if (!args) SWIG_fail;
19890 swig_obj[0] = args;
19891 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19892 if (!SWIG_IsOK(res1)) {
19893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
19894 }
19895 arg1 = reinterpret_cast< wxDC * >(argp1);
19896 {
19897 PyThreadState* __tstate = wxPyBeginAllowThreads();
19898 (arg1)->StartPage();
19899 wxPyEndAllowThreads(__tstate);
19900 if (PyErr_Occurred()) SWIG_fail;
19901 }
19902 resultobj = SWIG_Py_Void();
19903 return resultobj;
19904 fail:
19905 return NULL;
19906 }
19907
19908
19909 SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19910 PyObject *resultobj = 0;
19911 wxDC *arg1 = (wxDC *) 0 ;
19912 void *argp1 = 0 ;
19913 int res1 = 0 ;
19914 PyObject *swig_obj[1] ;
19915
19916 if (!args) SWIG_fail;
19917 swig_obj[0] = args;
19918 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19919 if (!SWIG_IsOK(res1)) {
19920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
19921 }
19922 arg1 = reinterpret_cast< wxDC * >(argp1);
19923 {
19924 PyThreadState* __tstate = wxPyBeginAllowThreads();
19925 (arg1)->EndPage();
19926 wxPyEndAllowThreads(__tstate);
19927 if (PyErr_Occurred()) SWIG_fail;
19928 }
19929 resultobj = SWIG_Py_Void();
19930 return resultobj;
19931 fail:
19932 return NULL;
19933 }
19934
19935
19936 SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19937 PyObject *resultobj = 0;
19938 wxDC *arg1 = (wxDC *) 0 ;
19939 wxFont *arg2 = 0 ;
19940 void *argp1 = 0 ;
19941 int res1 = 0 ;
19942 void *argp2 = 0 ;
19943 int res2 = 0 ;
19944 PyObject * obj0 = 0 ;
19945 PyObject * obj1 = 0 ;
19946 char * kwnames[] = {
19947 (char *) "self",(char *) "font", NULL
19948 };
19949
19950 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
19951 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19952 if (!SWIG_IsOK(res1)) {
19953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
19954 }
19955 arg1 = reinterpret_cast< wxDC * >(argp1);
19956 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
19957 if (!SWIG_IsOK(res2)) {
19958 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
19959 }
19960 if (!argp2) {
19961 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
19962 }
19963 arg2 = reinterpret_cast< wxFont * >(argp2);
19964 {
19965 PyThreadState* __tstate = wxPyBeginAllowThreads();
19966 (arg1)->SetFont((wxFont const &)*arg2);
19967 wxPyEndAllowThreads(__tstate);
19968 if (PyErr_Occurred()) SWIG_fail;
19969 }
19970 resultobj = SWIG_Py_Void();
19971 return resultobj;
19972 fail:
19973 return NULL;
19974 }
19975
19976
19977 SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19978 PyObject *resultobj = 0;
19979 wxDC *arg1 = (wxDC *) 0 ;
19980 wxPen *arg2 = 0 ;
19981 void *argp1 = 0 ;
19982 int res1 = 0 ;
19983 void *argp2 = 0 ;
19984 int res2 = 0 ;
19985 PyObject * obj0 = 0 ;
19986 PyObject * obj1 = 0 ;
19987 char * kwnames[] = {
19988 (char *) "self",(char *) "pen", NULL
19989 };
19990
19991 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
19992 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19993 if (!SWIG_IsOK(res1)) {
19994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
19995 }
19996 arg1 = reinterpret_cast< wxDC * >(argp1);
19997 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
19998 if (!SWIG_IsOK(res2)) {
19999 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20000 }
20001 if (!argp2) {
20002 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20003 }
20004 arg2 = reinterpret_cast< wxPen * >(argp2);
20005 {
20006 PyThreadState* __tstate = wxPyBeginAllowThreads();
20007 (arg1)->SetPen((wxPen const &)*arg2);
20008 wxPyEndAllowThreads(__tstate);
20009 if (PyErr_Occurred()) SWIG_fail;
20010 }
20011 resultobj = SWIG_Py_Void();
20012 return resultobj;
20013 fail:
20014 return NULL;
20015 }
20016
20017
20018 SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20019 PyObject *resultobj = 0;
20020 wxDC *arg1 = (wxDC *) 0 ;
20021 wxBrush *arg2 = 0 ;
20022 void *argp1 = 0 ;
20023 int res1 = 0 ;
20024 void *argp2 = 0 ;
20025 int res2 = 0 ;
20026 PyObject * obj0 = 0 ;
20027 PyObject * obj1 = 0 ;
20028 char * kwnames[] = {
20029 (char *) "self",(char *) "brush", NULL
20030 };
20031
20032 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
20033 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20034 if (!SWIG_IsOK(res1)) {
20035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
20036 }
20037 arg1 = reinterpret_cast< wxDC * >(argp1);
20038 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20039 if (!SWIG_IsOK(res2)) {
20040 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20041 }
20042 if (!argp2) {
20043 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20044 }
20045 arg2 = reinterpret_cast< wxBrush * >(argp2);
20046 {
20047 PyThreadState* __tstate = wxPyBeginAllowThreads();
20048 (arg1)->SetBrush((wxBrush const &)*arg2);
20049 wxPyEndAllowThreads(__tstate);
20050 if (PyErr_Occurred()) SWIG_fail;
20051 }
20052 resultobj = SWIG_Py_Void();
20053 return resultobj;
20054 fail:
20055 return NULL;
20056 }
20057
20058
20059 SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20060 PyObject *resultobj = 0;
20061 wxDC *arg1 = (wxDC *) 0 ;
20062 wxBrush *arg2 = 0 ;
20063 void *argp1 = 0 ;
20064 int res1 = 0 ;
20065 void *argp2 = 0 ;
20066 int res2 = 0 ;
20067 PyObject * obj0 = 0 ;
20068 PyObject * obj1 = 0 ;
20069 char * kwnames[] = {
20070 (char *) "self",(char *) "brush", NULL
20071 };
20072
20073 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
20074 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20075 if (!SWIG_IsOK(res1)) {
20076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
20077 }
20078 arg1 = reinterpret_cast< wxDC * >(argp1);
20079 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20080 if (!SWIG_IsOK(res2)) {
20081 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20082 }
20083 if (!argp2) {
20084 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20085 }
20086 arg2 = reinterpret_cast< wxBrush * >(argp2);
20087 {
20088 PyThreadState* __tstate = wxPyBeginAllowThreads();
20089 (arg1)->SetBackground((wxBrush const &)*arg2);
20090 wxPyEndAllowThreads(__tstate);
20091 if (PyErr_Occurred()) SWIG_fail;
20092 }
20093 resultobj = SWIG_Py_Void();
20094 return resultobj;
20095 fail:
20096 return NULL;
20097 }
20098
20099
20100 SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20101 PyObject *resultobj = 0;
20102 wxDC *arg1 = (wxDC *) 0 ;
20103 int arg2 ;
20104 void *argp1 = 0 ;
20105 int res1 = 0 ;
20106 int val2 ;
20107 int ecode2 = 0 ;
20108 PyObject * obj0 = 0 ;
20109 PyObject * obj1 = 0 ;
20110 char * kwnames[] = {
20111 (char *) "self",(char *) "mode", NULL
20112 };
20113
20114 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
20115 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20116 if (!SWIG_IsOK(res1)) {
20117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
20118 }
20119 arg1 = reinterpret_cast< wxDC * >(argp1);
20120 ecode2 = SWIG_AsVal_int(obj1, &val2);
20121 if (!SWIG_IsOK(ecode2)) {
20122 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
20123 }
20124 arg2 = static_cast< int >(val2);
20125 {
20126 PyThreadState* __tstate = wxPyBeginAllowThreads();
20127 (arg1)->SetBackgroundMode(arg2);
20128 wxPyEndAllowThreads(__tstate);
20129 if (PyErr_Occurred()) SWIG_fail;
20130 }
20131 resultobj = SWIG_Py_Void();
20132 return resultobj;
20133 fail:
20134 return NULL;
20135 }
20136
20137
20138 SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20139 PyObject *resultobj = 0;
20140 wxDC *arg1 = (wxDC *) 0 ;
20141 wxPalette *arg2 = 0 ;
20142 void *argp1 = 0 ;
20143 int res1 = 0 ;
20144 void *argp2 = 0 ;
20145 int res2 = 0 ;
20146 PyObject * obj0 = 0 ;
20147 PyObject * obj1 = 0 ;
20148 char * kwnames[] = {
20149 (char *) "self",(char *) "palette", NULL
20150 };
20151
20152 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
20153 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20154 if (!SWIG_IsOK(res1)) {
20155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
20156 }
20157 arg1 = reinterpret_cast< wxDC * >(argp1);
20158 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
20159 if (!SWIG_IsOK(res2)) {
20160 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20161 }
20162 if (!argp2) {
20163 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20164 }
20165 arg2 = reinterpret_cast< wxPalette * >(argp2);
20166 {
20167 PyThreadState* __tstate = wxPyBeginAllowThreads();
20168 (arg1)->SetPalette((wxPalette const &)*arg2);
20169 wxPyEndAllowThreads(__tstate);
20170 if (PyErr_Occurred()) SWIG_fail;
20171 }
20172 resultobj = SWIG_Py_Void();
20173 return resultobj;
20174 fail:
20175 return NULL;
20176 }
20177
20178
20179 SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20180 PyObject *resultobj = 0;
20181 wxDC *arg1 = (wxDC *) 0 ;
20182 void *argp1 = 0 ;
20183 int res1 = 0 ;
20184 PyObject *swig_obj[1] ;
20185
20186 if (!args) SWIG_fail;
20187 swig_obj[0] = args;
20188 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20189 if (!SWIG_IsOK(res1)) {
20190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20191 }
20192 arg1 = reinterpret_cast< wxDC * >(argp1);
20193 {
20194 PyThreadState* __tstate = wxPyBeginAllowThreads();
20195 (arg1)->DestroyClippingRegion();
20196 wxPyEndAllowThreads(__tstate);
20197 if (PyErr_Occurred()) SWIG_fail;
20198 }
20199 resultobj = SWIG_Py_Void();
20200 return resultobj;
20201 fail:
20202 return NULL;
20203 }
20204
20205
20206 SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20207 PyObject *resultobj = 0;
20208 wxDC *arg1 = (wxDC *) 0 ;
20209 int *arg2 = (int *) 0 ;
20210 int *arg3 = (int *) 0 ;
20211 int *arg4 = (int *) 0 ;
20212 int *arg5 = (int *) 0 ;
20213 void *argp1 = 0 ;
20214 int res1 = 0 ;
20215 int temp2 ;
20216 int res2 = SWIG_TMPOBJ ;
20217 int temp3 ;
20218 int res3 = SWIG_TMPOBJ ;
20219 int temp4 ;
20220 int res4 = SWIG_TMPOBJ ;
20221 int temp5 ;
20222 int res5 = SWIG_TMPOBJ ;
20223 PyObject *swig_obj[1] ;
20224
20225 arg2 = &temp2;
20226 arg3 = &temp3;
20227 arg4 = &temp4;
20228 arg5 = &temp5;
20229 if (!args) SWIG_fail;
20230 swig_obj[0] = args;
20231 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20232 if (!SWIG_IsOK(res1)) {
20233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
20234 }
20235 arg1 = reinterpret_cast< wxDC * >(argp1);
20236 {
20237 PyThreadState* __tstate = wxPyBeginAllowThreads();
20238 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
20239 wxPyEndAllowThreads(__tstate);
20240 if (PyErr_Occurred()) SWIG_fail;
20241 }
20242 resultobj = SWIG_Py_Void();
20243 if (SWIG_IsTmpObj(res2)) {
20244 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20245 } else {
20246 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20247 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20248 }
20249 if (SWIG_IsTmpObj(res3)) {
20250 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20251 } else {
20252 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20253 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20254 }
20255 if (SWIG_IsTmpObj(res4)) {
20256 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20257 } else {
20258 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20259 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20260 }
20261 if (SWIG_IsTmpObj(res5)) {
20262 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20263 } else {
20264 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20265 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20266 }
20267 return resultobj;
20268 fail:
20269 return NULL;
20270 }
20271
20272
20273 SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20274 PyObject *resultobj = 0;
20275 wxDC *arg1 = (wxDC *) 0 ;
20276 wxRect result;
20277 void *argp1 = 0 ;
20278 int res1 = 0 ;
20279 PyObject *swig_obj[1] ;
20280
20281 if (!args) SWIG_fail;
20282 swig_obj[0] = args;
20283 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20284 if (!SWIG_IsOK(res1)) {
20285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20286 }
20287 arg1 = reinterpret_cast< wxDC * >(argp1);
20288 {
20289 PyThreadState* __tstate = wxPyBeginAllowThreads();
20290 result = wxDC_GetClippingRect(arg1);
20291 wxPyEndAllowThreads(__tstate);
20292 if (PyErr_Occurred()) SWIG_fail;
20293 }
20294 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20295 return resultobj;
20296 fail:
20297 return NULL;
20298 }
20299
20300
20301 SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20302 PyObject *resultobj = 0;
20303 wxDC *arg1 = (wxDC *) 0 ;
20304 int result;
20305 void *argp1 = 0 ;
20306 int res1 = 0 ;
20307 PyObject *swig_obj[1] ;
20308
20309 if (!args) SWIG_fail;
20310 swig_obj[0] = args;
20311 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20312 if (!SWIG_IsOK(res1)) {
20313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
20314 }
20315 arg1 = reinterpret_cast< wxDC * >(argp1);
20316 {
20317 PyThreadState* __tstate = wxPyBeginAllowThreads();
20318 result = (int)((wxDC const *)arg1)->GetCharHeight();
20319 wxPyEndAllowThreads(__tstate);
20320 if (PyErr_Occurred()) SWIG_fail;
20321 }
20322 resultobj = SWIG_From_int(static_cast< int >(result));
20323 return resultobj;
20324 fail:
20325 return NULL;
20326 }
20327
20328
20329 SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20330 PyObject *resultobj = 0;
20331 wxDC *arg1 = (wxDC *) 0 ;
20332 int result;
20333 void *argp1 = 0 ;
20334 int res1 = 0 ;
20335 PyObject *swig_obj[1] ;
20336
20337 if (!args) SWIG_fail;
20338 swig_obj[0] = args;
20339 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20340 if (!SWIG_IsOK(res1)) {
20341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
20342 }
20343 arg1 = reinterpret_cast< wxDC * >(argp1);
20344 {
20345 PyThreadState* __tstate = wxPyBeginAllowThreads();
20346 result = (int)((wxDC const *)arg1)->GetCharWidth();
20347 wxPyEndAllowThreads(__tstate);
20348 if (PyErr_Occurred()) SWIG_fail;
20349 }
20350 resultobj = SWIG_From_int(static_cast< int >(result));
20351 return resultobj;
20352 fail:
20353 return NULL;
20354 }
20355
20356
20357 SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20358 PyObject *resultobj = 0;
20359 wxDC *arg1 = (wxDC *) 0 ;
20360 wxString *arg2 = 0 ;
20361 int *arg3 = (int *) 0 ;
20362 int *arg4 = (int *) 0 ;
20363 void *argp1 = 0 ;
20364 int res1 = 0 ;
20365 bool temp2 = false ;
20366 int temp3 ;
20367 int res3 = SWIG_TMPOBJ ;
20368 int temp4 ;
20369 int res4 = SWIG_TMPOBJ ;
20370 PyObject * obj0 = 0 ;
20371 PyObject * obj1 = 0 ;
20372 char * kwnames[] = {
20373 (char *) "self",(char *) "string", NULL
20374 };
20375
20376 arg3 = &temp3;
20377 arg4 = &temp4;
20378 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
20379 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20380 if (!SWIG_IsOK(res1)) {
20381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20382 }
20383 arg1 = reinterpret_cast< wxDC * >(argp1);
20384 {
20385 arg2 = wxString_in_helper(obj1);
20386 if (arg2 == NULL) SWIG_fail;
20387 temp2 = true;
20388 }
20389 {
20390 PyThreadState* __tstate = wxPyBeginAllowThreads();
20391 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
20392 wxPyEndAllowThreads(__tstate);
20393 if (PyErr_Occurred()) SWIG_fail;
20394 }
20395 resultobj = SWIG_Py_Void();
20396 if (SWIG_IsTmpObj(res3)) {
20397 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20398 } else {
20399 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20400 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20401 }
20402 if (SWIG_IsTmpObj(res4)) {
20403 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20404 } else {
20405 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20406 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20407 }
20408 {
20409 if (temp2)
20410 delete arg2;
20411 }
20412 return resultobj;
20413 fail:
20414 {
20415 if (temp2)
20416 delete arg2;
20417 }
20418 return NULL;
20419 }
20420
20421
20422 SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20423 PyObject *resultobj = 0;
20424 wxDC *arg1 = (wxDC *) 0 ;
20425 wxString *arg2 = 0 ;
20426 int *arg3 = (int *) 0 ;
20427 int *arg4 = (int *) 0 ;
20428 int *arg5 = (int *) 0 ;
20429 int *arg6 = (int *) 0 ;
20430 wxFont *arg7 = (wxFont *) NULL ;
20431 void *argp1 = 0 ;
20432 int res1 = 0 ;
20433 bool temp2 = false ;
20434 int temp3 ;
20435 int res3 = SWIG_TMPOBJ ;
20436 int temp4 ;
20437 int res4 = SWIG_TMPOBJ ;
20438 int temp5 ;
20439 int res5 = SWIG_TMPOBJ ;
20440 int temp6 ;
20441 int res6 = SWIG_TMPOBJ ;
20442 void *argp7 = 0 ;
20443 int res7 = 0 ;
20444 PyObject * obj0 = 0 ;
20445 PyObject * obj1 = 0 ;
20446 PyObject * obj2 = 0 ;
20447 char * kwnames[] = {
20448 (char *) "self",(char *) "string",(char *) "font", NULL
20449 };
20450
20451 arg3 = &temp3;
20452 arg4 = &temp4;
20453 arg5 = &temp5;
20454 arg6 = &temp6;
20455 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20456 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20457 if (!SWIG_IsOK(res1)) {
20458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20459 }
20460 arg1 = reinterpret_cast< wxDC * >(argp1);
20461 {
20462 arg2 = wxString_in_helper(obj1);
20463 if (arg2 == NULL) SWIG_fail;
20464 temp2 = true;
20465 }
20466 if (obj2) {
20467 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
20468 if (!SWIG_IsOK(res7)) {
20469 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
20470 }
20471 arg7 = reinterpret_cast< wxFont * >(argp7);
20472 }
20473 {
20474 PyThreadState* __tstate = wxPyBeginAllowThreads();
20475 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
20476 wxPyEndAllowThreads(__tstate);
20477 if (PyErr_Occurred()) SWIG_fail;
20478 }
20479 resultobj = SWIG_Py_Void();
20480 if (SWIG_IsTmpObj(res3)) {
20481 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20482 } else {
20483 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20484 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20485 }
20486 if (SWIG_IsTmpObj(res4)) {
20487 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20488 } else {
20489 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20490 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20491 }
20492 if (SWIG_IsTmpObj(res5)) {
20493 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20494 } else {
20495 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20496 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20497 }
20498 if (SWIG_IsTmpObj(res6)) {
20499 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
20500 } else {
20501 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20502 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
20503 }
20504 {
20505 if (temp2)
20506 delete arg2;
20507 }
20508 return resultobj;
20509 fail:
20510 {
20511 if (temp2)
20512 delete arg2;
20513 }
20514 return NULL;
20515 }
20516
20517
20518 SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20519 PyObject *resultobj = 0;
20520 wxDC *arg1 = (wxDC *) 0 ;
20521 wxString *arg2 = 0 ;
20522 int *arg3 = (int *) 0 ;
20523 int *arg4 = (int *) 0 ;
20524 int *arg5 = (int *) 0 ;
20525 wxFont *arg6 = (wxFont *) NULL ;
20526 void *argp1 = 0 ;
20527 int res1 = 0 ;
20528 bool temp2 = false ;
20529 int temp3 ;
20530 int res3 = SWIG_TMPOBJ ;
20531 int temp4 ;
20532 int res4 = SWIG_TMPOBJ ;
20533 int temp5 ;
20534 int res5 = SWIG_TMPOBJ ;
20535 void *argp6 = 0 ;
20536 int res6 = 0 ;
20537 PyObject * obj0 = 0 ;
20538 PyObject * obj1 = 0 ;
20539 PyObject * obj2 = 0 ;
20540 char * kwnames[] = {
20541 (char *) "self",(char *) "text",(char *) "font", NULL
20542 };
20543
20544 arg3 = &temp3;
20545 arg4 = &temp4;
20546 arg5 = &temp5;
20547 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20548 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20549 if (!SWIG_IsOK(res1)) {
20550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20551 }
20552 arg1 = reinterpret_cast< wxDC * >(argp1);
20553 {
20554 arg2 = wxString_in_helper(obj1);
20555 if (arg2 == NULL) SWIG_fail;
20556 temp2 = true;
20557 }
20558 if (obj2) {
20559 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
20560 if (!SWIG_IsOK(res6)) {
20561 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
20562 }
20563 arg6 = reinterpret_cast< wxFont * >(argp6);
20564 }
20565 {
20566 PyThreadState* __tstate = wxPyBeginAllowThreads();
20567 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
20568 wxPyEndAllowThreads(__tstate);
20569 if (PyErr_Occurred()) SWIG_fail;
20570 }
20571 resultobj = SWIG_Py_Void();
20572 if (SWIG_IsTmpObj(res3)) {
20573 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20574 } else {
20575 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20576 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20577 }
20578 if (SWIG_IsTmpObj(res4)) {
20579 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20580 } else {
20581 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20582 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20583 }
20584 if (SWIG_IsTmpObj(res5)) {
20585 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20586 } else {
20587 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20588 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20589 }
20590 {
20591 if (temp2)
20592 delete arg2;
20593 }
20594 return resultobj;
20595 fail:
20596 {
20597 if (temp2)
20598 delete arg2;
20599 }
20600 return NULL;
20601 }
20602
20603
20604 SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20605 PyObject *resultobj = 0;
20606 wxDC *arg1 = (wxDC *) 0 ;
20607 wxString *arg2 = 0 ;
20608 wxArrayInt result;
20609 void *argp1 = 0 ;
20610 int res1 = 0 ;
20611 bool temp2 = false ;
20612 PyObject * obj0 = 0 ;
20613 PyObject * obj1 = 0 ;
20614 char * kwnames[] = {
20615 (char *) "self",(char *) "text", NULL
20616 };
20617
20618 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
20619 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20620 if (!SWIG_IsOK(res1)) {
20621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
20622 }
20623 arg1 = reinterpret_cast< wxDC * >(argp1);
20624 {
20625 arg2 = wxString_in_helper(obj1);
20626 if (arg2 == NULL) SWIG_fail;
20627 temp2 = true;
20628 }
20629 {
20630 PyThreadState* __tstate = wxPyBeginAllowThreads();
20631 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
20632 wxPyEndAllowThreads(__tstate);
20633 if (PyErr_Occurred()) SWIG_fail;
20634 }
20635 {
20636 resultobj = PyList_New(0);
20637 size_t idx;
20638 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
20639 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
20640 PyList_Append(resultobj, val);
20641 Py_DECREF(val);
20642 }
20643 }
20644 {
20645 if (temp2)
20646 delete arg2;
20647 }
20648 return resultobj;
20649 fail:
20650 {
20651 if (temp2)
20652 delete arg2;
20653 }
20654 return NULL;
20655 }
20656
20657
20658 SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20659 PyObject *resultobj = 0;
20660 wxDC *arg1 = (wxDC *) 0 ;
20661 wxSize result;
20662 void *argp1 = 0 ;
20663 int res1 = 0 ;
20664 PyObject *swig_obj[1] ;
20665
20666 if (!args) SWIG_fail;
20667 swig_obj[0] = args;
20668 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20669 if (!SWIG_IsOK(res1)) {
20670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
20671 }
20672 arg1 = reinterpret_cast< wxDC * >(argp1);
20673 {
20674 PyThreadState* __tstate = wxPyBeginAllowThreads();
20675 result = (arg1)->GetSize();
20676 wxPyEndAllowThreads(__tstate);
20677 if (PyErr_Occurred()) SWIG_fail;
20678 }
20679 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
20680 return resultobj;
20681 fail:
20682 return NULL;
20683 }
20684
20685
20686 SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20687 PyObject *resultobj = 0;
20688 wxDC *arg1 = (wxDC *) 0 ;
20689 int *arg2 = (int *) 0 ;
20690 int *arg3 = (int *) 0 ;
20691 void *argp1 = 0 ;
20692 int res1 = 0 ;
20693 int temp2 ;
20694 int res2 = SWIG_TMPOBJ ;
20695 int temp3 ;
20696 int res3 = SWIG_TMPOBJ ;
20697 PyObject *swig_obj[1] ;
20698
20699 arg2 = &temp2;
20700 arg3 = &temp3;
20701 if (!args) SWIG_fail;
20702 swig_obj[0] = args;
20703 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20704 if (!SWIG_IsOK(res1)) {
20705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
20706 }
20707 arg1 = reinterpret_cast< wxDC * >(argp1);
20708 {
20709 PyThreadState* __tstate = wxPyBeginAllowThreads();
20710 (arg1)->GetSize(arg2,arg3);
20711 wxPyEndAllowThreads(__tstate);
20712 if (PyErr_Occurred()) SWIG_fail;
20713 }
20714 resultobj = SWIG_Py_Void();
20715 if (SWIG_IsTmpObj(res2)) {
20716 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20717 } else {
20718 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20719 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20720 }
20721 if (SWIG_IsTmpObj(res3)) {
20722 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20723 } else {
20724 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20725 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20726 }
20727 return resultobj;
20728 fail:
20729 return NULL;
20730 }
20731
20732
20733 SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20734 PyObject *resultobj = 0;
20735 wxDC *arg1 = (wxDC *) 0 ;
20736 wxSize result;
20737 void *argp1 = 0 ;
20738 int res1 = 0 ;
20739 PyObject *swig_obj[1] ;
20740
20741 if (!args) SWIG_fail;
20742 swig_obj[0] = args;
20743 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20744 if (!SWIG_IsOK(res1)) {
20745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
20746 }
20747 arg1 = reinterpret_cast< wxDC * >(argp1);
20748 {
20749 PyThreadState* __tstate = wxPyBeginAllowThreads();
20750 result = ((wxDC const *)arg1)->GetSizeMM();
20751 wxPyEndAllowThreads(__tstate);
20752 if (PyErr_Occurred()) SWIG_fail;
20753 }
20754 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
20755 return resultobj;
20756 fail:
20757 return NULL;
20758 }
20759
20760
20761 SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20762 PyObject *resultobj = 0;
20763 wxDC *arg1 = (wxDC *) 0 ;
20764 int *arg2 = (int *) 0 ;
20765 int *arg3 = (int *) 0 ;
20766 void *argp1 = 0 ;
20767 int res1 = 0 ;
20768 int temp2 ;
20769 int res2 = SWIG_TMPOBJ ;
20770 int temp3 ;
20771 int res3 = SWIG_TMPOBJ ;
20772 PyObject *swig_obj[1] ;
20773
20774 arg2 = &temp2;
20775 arg3 = &temp3;
20776 if (!args) SWIG_fail;
20777 swig_obj[0] = args;
20778 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20779 if (!SWIG_IsOK(res1)) {
20780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
20781 }
20782 arg1 = reinterpret_cast< wxDC * >(argp1);
20783 {
20784 PyThreadState* __tstate = wxPyBeginAllowThreads();
20785 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
20786 wxPyEndAllowThreads(__tstate);
20787 if (PyErr_Occurred()) SWIG_fail;
20788 }
20789 resultobj = SWIG_Py_Void();
20790 if (SWIG_IsTmpObj(res2)) {
20791 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20792 } else {
20793 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20794 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20795 }
20796 if (SWIG_IsTmpObj(res3)) {
20797 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20798 } else {
20799 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20800 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20801 }
20802 return resultobj;
20803 fail:
20804 return NULL;
20805 }
20806
20807
20808 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20809 PyObject *resultobj = 0;
20810 wxDC *arg1 = (wxDC *) 0 ;
20811 int arg2 ;
20812 int result;
20813 void *argp1 = 0 ;
20814 int res1 = 0 ;
20815 int val2 ;
20816 int ecode2 = 0 ;
20817 PyObject * obj0 = 0 ;
20818 PyObject * obj1 = 0 ;
20819 char * kwnames[] = {
20820 (char *) "self",(char *) "x", NULL
20821 };
20822
20823 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
20824 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20825 if (!SWIG_IsOK(res1)) {
20826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
20827 }
20828 arg1 = reinterpret_cast< wxDC * >(argp1);
20829 ecode2 = SWIG_AsVal_int(obj1, &val2);
20830 if (!SWIG_IsOK(ecode2)) {
20831 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
20832 }
20833 arg2 = static_cast< int >(val2);
20834 {
20835 PyThreadState* __tstate = wxPyBeginAllowThreads();
20836 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
20837 wxPyEndAllowThreads(__tstate);
20838 if (PyErr_Occurred()) SWIG_fail;
20839 }
20840 resultobj = SWIG_From_int(static_cast< int >(result));
20841 return resultobj;
20842 fail:
20843 return NULL;
20844 }
20845
20846
20847 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20848 PyObject *resultobj = 0;
20849 wxDC *arg1 = (wxDC *) 0 ;
20850 int arg2 ;
20851 int result;
20852 void *argp1 = 0 ;
20853 int res1 = 0 ;
20854 int val2 ;
20855 int ecode2 = 0 ;
20856 PyObject * obj0 = 0 ;
20857 PyObject * obj1 = 0 ;
20858 char * kwnames[] = {
20859 (char *) "self",(char *) "y", NULL
20860 };
20861
20862 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
20863 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20864 if (!SWIG_IsOK(res1)) {
20865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
20866 }
20867 arg1 = reinterpret_cast< wxDC * >(argp1);
20868 ecode2 = SWIG_AsVal_int(obj1, &val2);
20869 if (!SWIG_IsOK(ecode2)) {
20870 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
20871 }
20872 arg2 = static_cast< int >(val2);
20873 {
20874 PyThreadState* __tstate = wxPyBeginAllowThreads();
20875 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
20876 wxPyEndAllowThreads(__tstate);
20877 if (PyErr_Occurred()) SWIG_fail;
20878 }
20879 resultobj = SWIG_From_int(static_cast< int >(result));
20880 return resultobj;
20881 fail:
20882 return NULL;
20883 }
20884
20885
20886 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20887 PyObject *resultobj = 0;
20888 wxDC *arg1 = (wxDC *) 0 ;
20889 int arg2 ;
20890 int result;
20891 void *argp1 = 0 ;
20892 int res1 = 0 ;
20893 int val2 ;
20894 int ecode2 = 0 ;
20895 PyObject * obj0 = 0 ;
20896 PyObject * obj1 = 0 ;
20897 char * kwnames[] = {
20898 (char *) "self",(char *) "x", NULL
20899 };
20900
20901 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
20902 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20903 if (!SWIG_IsOK(res1)) {
20904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
20905 }
20906 arg1 = reinterpret_cast< wxDC * >(argp1);
20907 ecode2 = SWIG_AsVal_int(obj1, &val2);
20908 if (!SWIG_IsOK(ecode2)) {
20909 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
20910 }
20911 arg2 = static_cast< int >(val2);
20912 {
20913 PyThreadState* __tstate = wxPyBeginAllowThreads();
20914 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
20915 wxPyEndAllowThreads(__tstate);
20916 if (PyErr_Occurred()) SWIG_fail;
20917 }
20918 resultobj = SWIG_From_int(static_cast< int >(result));
20919 return resultobj;
20920 fail:
20921 return NULL;
20922 }
20923
20924
20925 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20926 PyObject *resultobj = 0;
20927 wxDC *arg1 = (wxDC *) 0 ;
20928 int arg2 ;
20929 int result;
20930 void *argp1 = 0 ;
20931 int res1 = 0 ;
20932 int val2 ;
20933 int ecode2 = 0 ;
20934 PyObject * obj0 = 0 ;
20935 PyObject * obj1 = 0 ;
20936 char * kwnames[] = {
20937 (char *) "self",(char *) "y", NULL
20938 };
20939
20940 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
20941 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20942 if (!SWIG_IsOK(res1)) {
20943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
20944 }
20945 arg1 = reinterpret_cast< wxDC * >(argp1);
20946 ecode2 = SWIG_AsVal_int(obj1, &val2);
20947 if (!SWIG_IsOK(ecode2)) {
20948 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
20949 }
20950 arg2 = static_cast< int >(val2);
20951 {
20952 PyThreadState* __tstate = wxPyBeginAllowThreads();
20953 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
20954 wxPyEndAllowThreads(__tstate);
20955 if (PyErr_Occurred()) SWIG_fail;
20956 }
20957 resultobj = SWIG_From_int(static_cast< int >(result));
20958 return resultobj;
20959 fail:
20960 return NULL;
20961 }
20962
20963
20964 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20965 PyObject *resultobj = 0;
20966 wxDC *arg1 = (wxDC *) 0 ;
20967 int arg2 ;
20968 int result;
20969 void *argp1 = 0 ;
20970 int res1 = 0 ;
20971 int val2 ;
20972 int ecode2 = 0 ;
20973 PyObject * obj0 = 0 ;
20974 PyObject * obj1 = 0 ;
20975 char * kwnames[] = {
20976 (char *) "self",(char *) "x", NULL
20977 };
20978
20979 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
20980 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20981 if (!SWIG_IsOK(res1)) {
20982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
20983 }
20984 arg1 = reinterpret_cast< wxDC * >(argp1);
20985 ecode2 = SWIG_AsVal_int(obj1, &val2);
20986 if (!SWIG_IsOK(ecode2)) {
20987 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
20988 }
20989 arg2 = static_cast< int >(val2);
20990 {
20991 PyThreadState* __tstate = wxPyBeginAllowThreads();
20992 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
20993 wxPyEndAllowThreads(__tstate);
20994 if (PyErr_Occurred()) SWIG_fail;
20995 }
20996 resultobj = SWIG_From_int(static_cast< int >(result));
20997 return resultobj;
20998 fail:
20999 return NULL;
21000 }
21001
21002
21003 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21004 PyObject *resultobj = 0;
21005 wxDC *arg1 = (wxDC *) 0 ;
21006 int arg2 ;
21007 int result;
21008 void *argp1 = 0 ;
21009 int res1 = 0 ;
21010 int val2 ;
21011 int ecode2 = 0 ;
21012 PyObject * obj0 = 0 ;
21013 PyObject * obj1 = 0 ;
21014 char * kwnames[] = {
21015 (char *) "self",(char *) "y", NULL
21016 };
21017
21018 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
21019 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21020 if (!SWIG_IsOK(res1)) {
21021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
21022 }
21023 arg1 = reinterpret_cast< wxDC * >(argp1);
21024 ecode2 = SWIG_AsVal_int(obj1, &val2);
21025 if (!SWIG_IsOK(ecode2)) {
21026 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
21027 }
21028 arg2 = static_cast< int >(val2);
21029 {
21030 PyThreadState* __tstate = wxPyBeginAllowThreads();
21031 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
21032 wxPyEndAllowThreads(__tstate);
21033 if (PyErr_Occurred()) SWIG_fail;
21034 }
21035 resultobj = SWIG_From_int(static_cast< int >(result));
21036 return resultobj;
21037 fail:
21038 return NULL;
21039 }
21040
21041
21042 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21043 PyObject *resultobj = 0;
21044 wxDC *arg1 = (wxDC *) 0 ;
21045 int arg2 ;
21046 int result;
21047 void *argp1 = 0 ;
21048 int res1 = 0 ;
21049 int val2 ;
21050 int ecode2 = 0 ;
21051 PyObject * obj0 = 0 ;
21052 PyObject * obj1 = 0 ;
21053 char * kwnames[] = {
21054 (char *) "self",(char *) "x", NULL
21055 };
21056
21057 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21058 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21059 if (!SWIG_IsOK(res1)) {
21060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21061 }
21062 arg1 = reinterpret_cast< wxDC * >(argp1);
21063 ecode2 = SWIG_AsVal_int(obj1, &val2);
21064 if (!SWIG_IsOK(ecode2)) {
21065 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
21066 }
21067 arg2 = static_cast< int >(val2);
21068 {
21069 PyThreadState* __tstate = wxPyBeginAllowThreads();
21070 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
21071 wxPyEndAllowThreads(__tstate);
21072 if (PyErr_Occurred()) SWIG_fail;
21073 }
21074 resultobj = SWIG_From_int(static_cast< int >(result));
21075 return resultobj;
21076 fail:
21077 return NULL;
21078 }
21079
21080
21081 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21082 PyObject *resultobj = 0;
21083 wxDC *arg1 = (wxDC *) 0 ;
21084 int arg2 ;
21085 int result;
21086 void *argp1 = 0 ;
21087 int res1 = 0 ;
21088 int val2 ;
21089 int ecode2 = 0 ;
21090 PyObject * obj0 = 0 ;
21091 PyObject * obj1 = 0 ;
21092 char * kwnames[] = {
21093 (char *) "self",(char *) "y", NULL
21094 };
21095
21096 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21097 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21098 if (!SWIG_IsOK(res1)) {
21099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21100 }
21101 arg1 = reinterpret_cast< wxDC * >(argp1);
21102 ecode2 = SWIG_AsVal_int(obj1, &val2);
21103 if (!SWIG_IsOK(ecode2)) {
21104 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
21105 }
21106 arg2 = static_cast< int >(val2);
21107 {
21108 PyThreadState* __tstate = wxPyBeginAllowThreads();
21109 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
21110 wxPyEndAllowThreads(__tstate);
21111 if (PyErr_Occurred()) SWIG_fail;
21112 }
21113 resultobj = SWIG_From_int(static_cast< int >(result));
21114 return resultobj;
21115 fail:
21116 return NULL;
21117 }
21118
21119
21120 SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21121 PyObject *resultobj = 0;
21122 wxDC *arg1 = (wxDC *) 0 ;
21123 bool result;
21124 void *argp1 = 0 ;
21125 int res1 = 0 ;
21126 PyObject *swig_obj[1] ;
21127
21128 if (!args) SWIG_fail;
21129 swig_obj[0] = args;
21130 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21131 if (!SWIG_IsOK(res1)) {
21132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
21133 }
21134 arg1 = reinterpret_cast< wxDC * >(argp1);
21135 {
21136 PyThreadState* __tstate = wxPyBeginAllowThreads();
21137 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
21138 wxPyEndAllowThreads(__tstate);
21139 if (PyErr_Occurred()) SWIG_fail;
21140 }
21141 {
21142 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21143 }
21144 return resultobj;
21145 fail:
21146 return NULL;
21147 }
21148
21149
21150 SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21151 PyObject *resultobj = 0;
21152 wxDC *arg1 = (wxDC *) 0 ;
21153 bool result;
21154 void *argp1 = 0 ;
21155 int res1 = 0 ;
21156 PyObject *swig_obj[1] ;
21157
21158 if (!args) SWIG_fail;
21159 swig_obj[0] = args;
21160 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21161 if (!SWIG_IsOK(res1)) {
21162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
21163 }
21164 arg1 = reinterpret_cast< wxDC * >(argp1);
21165 {
21166 PyThreadState* __tstate = wxPyBeginAllowThreads();
21167 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
21168 wxPyEndAllowThreads(__tstate);
21169 if (PyErr_Occurred()) SWIG_fail;
21170 }
21171 {
21172 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21173 }
21174 return resultobj;
21175 fail:
21176 return NULL;
21177 }
21178
21179
21180 SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21181 PyObject *resultobj = 0;
21182 wxDC *arg1 = (wxDC *) 0 ;
21183 int result;
21184 void *argp1 = 0 ;
21185 int res1 = 0 ;
21186 PyObject *swig_obj[1] ;
21187
21188 if (!args) SWIG_fail;
21189 swig_obj[0] = args;
21190 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21191 if (!SWIG_IsOK(res1)) {
21192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
21193 }
21194 arg1 = reinterpret_cast< wxDC * >(argp1);
21195 {
21196 PyThreadState* __tstate = wxPyBeginAllowThreads();
21197 result = (int)((wxDC const *)arg1)->GetDepth();
21198 wxPyEndAllowThreads(__tstate);
21199 if (PyErr_Occurred()) SWIG_fail;
21200 }
21201 resultobj = SWIG_From_int(static_cast< int >(result));
21202 return resultobj;
21203 fail:
21204 return NULL;
21205 }
21206
21207
21208 SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21209 PyObject *resultobj = 0;
21210 wxDC *arg1 = (wxDC *) 0 ;
21211 wxSize result;
21212 void *argp1 = 0 ;
21213 int res1 = 0 ;
21214 PyObject *swig_obj[1] ;
21215
21216 if (!args) SWIG_fail;
21217 swig_obj[0] = args;
21218 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21219 if (!SWIG_IsOK(res1)) {
21220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
21221 }
21222 arg1 = reinterpret_cast< wxDC * >(argp1);
21223 {
21224 PyThreadState* __tstate = wxPyBeginAllowThreads();
21225 result = ((wxDC const *)arg1)->GetPPI();
21226 wxPyEndAllowThreads(__tstate);
21227 if (PyErr_Occurred()) SWIG_fail;
21228 }
21229 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21230 return resultobj;
21231 fail:
21232 return NULL;
21233 }
21234
21235
21236 SWIGINTERN PyObject *_wrap_DC_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21237 PyObject *resultobj = 0;
21238 wxDC *arg1 = (wxDC *) 0 ;
21239 bool result;
21240 void *argp1 = 0 ;
21241 int res1 = 0 ;
21242 PyObject *swig_obj[1] ;
21243
21244 if (!args) SWIG_fail;
21245 swig_obj[0] = args;
21246 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21247 if (!SWIG_IsOK(res1)) {
21248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Ok" "', expected argument " "1"" of type '" "wxDC const *""'");
21249 }
21250 arg1 = reinterpret_cast< wxDC * >(argp1);
21251 {
21252 PyThreadState* __tstate = wxPyBeginAllowThreads();
21253 result = (bool)((wxDC const *)arg1)->Ok();
21254 wxPyEndAllowThreads(__tstate);
21255 if (PyErr_Occurred()) SWIG_fail;
21256 }
21257 {
21258 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21259 }
21260 return resultobj;
21261 fail:
21262 return NULL;
21263 }
21264
21265
21266 SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21267 PyObject *resultobj = 0;
21268 wxDC *arg1 = (wxDC *) 0 ;
21269 int result;
21270 void *argp1 = 0 ;
21271 int res1 = 0 ;
21272 PyObject *swig_obj[1] ;
21273
21274 if (!args) SWIG_fail;
21275 swig_obj[0] = args;
21276 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21277 if (!SWIG_IsOK(res1)) {
21278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
21279 }
21280 arg1 = reinterpret_cast< wxDC * >(argp1);
21281 {
21282 PyThreadState* __tstate = wxPyBeginAllowThreads();
21283 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
21284 wxPyEndAllowThreads(__tstate);
21285 if (PyErr_Occurred()) SWIG_fail;
21286 }
21287 resultobj = SWIG_From_int(static_cast< int >(result));
21288 return resultobj;
21289 fail:
21290 return NULL;
21291 }
21292
21293
21294 SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21295 PyObject *resultobj = 0;
21296 wxDC *arg1 = (wxDC *) 0 ;
21297 wxBrush *result = 0 ;
21298 void *argp1 = 0 ;
21299 int res1 = 0 ;
21300 PyObject *swig_obj[1] ;
21301
21302 if (!args) SWIG_fail;
21303 swig_obj[0] = args;
21304 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21305 if (!SWIG_IsOK(res1)) {
21306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
21307 }
21308 arg1 = reinterpret_cast< wxDC * >(argp1);
21309 {
21310 PyThreadState* __tstate = wxPyBeginAllowThreads();
21311 {
21312 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
21313 result = (wxBrush *) &_result_ref;
21314 }
21315 wxPyEndAllowThreads(__tstate);
21316 if (PyErr_Occurred()) SWIG_fail;
21317 }
21318 {
21319 wxBrush* resultptr = new wxBrush(*result);
21320 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21321 }
21322 return resultobj;
21323 fail:
21324 return NULL;
21325 }
21326
21327
21328 SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21329 PyObject *resultobj = 0;
21330 wxDC *arg1 = (wxDC *) 0 ;
21331 wxBrush *result = 0 ;
21332 void *argp1 = 0 ;
21333 int res1 = 0 ;
21334 PyObject *swig_obj[1] ;
21335
21336 if (!args) SWIG_fail;
21337 swig_obj[0] = args;
21338 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21339 if (!SWIG_IsOK(res1)) {
21340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
21341 }
21342 arg1 = reinterpret_cast< wxDC * >(argp1);
21343 {
21344 PyThreadState* __tstate = wxPyBeginAllowThreads();
21345 {
21346 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
21347 result = (wxBrush *) &_result_ref;
21348 }
21349 wxPyEndAllowThreads(__tstate);
21350 if (PyErr_Occurred()) SWIG_fail;
21351 }
21352 {
21353 wxBrush* resultptr = new wxBrush(*result);
21354 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21355 }
21356 return resultobj;
21357 fail:
21358 return NULL;
21359 }
21360
21361
21362 SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21363 PyObject *resultobj = 0;
21364 wxDC *arg1 = (wxDC *) 0 ;
21365 wxFont *result = 0 ;
21366 void *argp1 = 0 ;
21367 int res1 = 0 ;
21368 PyObject *swig_obj[1] ;
21369
21370 if (!args) SWIG_fail;
21371 swig_obj[0] = args;
21372 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21373 if (!SWIG_IsOK(res1)) {
21374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
21375 }
21376 arg1 = reinterpret_cast< wxDC * >(argp1);
21377 {
21378 PyThreadState* __tstate = wxPyBeginAllowThreads();
21379 {
21380 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
21381 result = (wxFont *) &_result_ref;
21382 }
21383 wxPyEndAllowThreads(__tstate);
21384 if (PyErr_Occurred()) SWIG_fail;
21385 }
21386 {
21387 wxFont* resultptr = new wxFont(*result);
21388 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
21389 }
21390 return resultobj;
21391 fail:
21392 return NULL;
21393 }
21394
21395
21396 SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21397 PyObject *resultobj = 0;
21398 wxDC *arg1 = (wxDC *) 0 ;
21399 wxPen *result = 0 ;
21400 void *argp1 = 0 ;
21401 int res1 = 0 ;
21402 PyObject *swig_obj[1] ;
21403
21404 if (!args) SWIG_fail;
21405 swig_obj[0] = args;
21406 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21407 if (!SWIG_IsOK(res1)) {
21408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
21409 }
21410 arg1 = reinterpret_cast< wxDC * >(argp1);
21411 {
21412 PyThreadState* __tstate = wxPyBeginAllowThreads();
21413 {
21414 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
21415 result = (wxPen *) &_result_ref;
21416 }
21417 wxPyEndAllowThreads(__tstate);
21418 if (PyErr_Occurred()) SWIG_fail;
21419 }
21420 {
21421 wxPen* resultptr = new wxPen(*result);
21422 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
21423 }
21424 return resultobj;
21425 fail:
21426 return NULL;
21427 }
21428
21429
21430 SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21431 PyObject *resultobj = 0;
21432 wxDC *arg1 = (wxDC *) 0 ;
21433 wxColour *result = 0 ;
21434 void *argp1 = 0 ;
21435 int res1 = 0 ;
21436 PyObject *swig_obj[1] ;
21437
21438 if (!args) SWIG_fail;
21439 swig_obj[0] = args;
21440 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21441 if (!SWIG_IsOK(res1)) {
21442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
21443 }
21444 arg1 = reinterpret_cast< wxDC * >(argp1);
21445 {
21446 PyThreadState* __tstate = wxPyBeginAllowThreads();
21447 {
21448 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
21449 result = (wxColour *) &_result_ref;
21450 }
21451 wxPyEndAllowThreads(__tstate);
21452 if (PyErr_Occurred()) SWIG_fail;
21453 }
21454 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
21455 return resultobj;
21456 fail:
21457 return NULL;
21458 }
21459
21460
21461 SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21462 PyObject *resultobj = 0;
21463 wxDC *arg1 = (wxDC *) 0 ;
21464 wxColour *result = 0 ;
21465 void *argp1 = 0 ;
21466 int res1 = 0 ;
21467 PyObject *swig_obj[1] ;
21468
21469 if (!args) SWIG_fail;
21470 swig_obj[0] = args;
21471 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21472 if (!SWIG_IsOK(res1)) {
21473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
21474 }
21475 arg1 = reinterpret_cast< wxDC * >(argp1);
21476 {
21477 PyThreadState* __tstate = wxPyBeginAllowThreads();
21478 {
21479 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
21480 result = (wxColour *) &_result_ref;
21481 }
21482 wxPyEndAllowThreads(__tstate);
21483 if (PyErr_Occurred()) SWIG_fail;
21484 }
21485 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
21486 return resultobj;
21487 fail:
21488 return NULL;
21489 }
21490
21491
21492 SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21493 PyObject *resultobj = 0;
21494 wxDC *arg1 = (wxDC *) 0 ;
21495 wxColour *arg2 = 0 ;
21496 void *argp1 = 0 ;
21497 int res1 = 0 ;
21498 wxColour temp2 ;
21499 PyObject * obj0 = 0 ;
21500 PyObject * obj1 = 0 ;
21501 char * kwnames[] = {
21502 (char *) "self",(char *) "colour", NULL
21503 };
21504
21505 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
21506 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21507 if (!SWIG_IsOK(res1)) {
21508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
21509 }
21510 arg1 = reinterpret_cast< wxDC * >(argp1);
21511 {
21512 arg2 = &temp2;
21513 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21514 }
21515 {
21516 PyThreadState* __tstate = wxPyBeginAllowThreads();
21517 (arg1)->SetTextForeground((wxColour const &)*arg2);
21518 wxPyEndAllowThreads(__tstate);
21519 if (PyErr_Occurred()) SWIG_fail;
21520 }
21521 resultobj = SWIG_Py_Void();
21522 return resultobj;
21523 fail:
21524 return NULL;
21525 }
21526
21527
21528 SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21529 PyObject *resultobj = 0;
21530 wxDC *arg1 = (wxDC *) 0 ;
21531 wxColour *arg2 = 0 ;
21532 void *argp1 = 0 ;
21533 int res1 = 0 ;
21534 wxColour temp2 ;
21535 PyObject * obj0 = 0 ;
21536 PyObject * obj1 = 0 ;
21537 char * kwnames[] = {
21538 (char *) "self",(char *) "colour", NULL
21539 };
21540
21541 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
21542 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21543 if (!SWIG_IsOK(res1)) {
21544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
21545 }
21546 arg1 = reinterpret_cast< wxDC * >(argp1);
21547 {
21548 arg2 = &temp2;
21549 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21550 }
21551 {
21552 PyThreadState* __tstate = wxPyBeginAllowThreads();
21553 (arg1)->SetTextBackground((wxColour const &)*arg2);
21554 wxPyEndAllowThreads(__tstate);
21555 if (PyErr_Occurred()) SWIG_fail;
21556 }
21557 resultobj = SWIG_Py_Void();
21558 return resultobj;
21559 fail:
21560 return NULL;
21561 }
21562
21563
21564 SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21565 PyObject *resultobj = 0;
21566 wxDC *arg1 = (wxDC *) 0 ;
21567 int result;
21568 void *argp1 = 0 ;
21569 int res1 = 0 ;
21570 PyObject *swig_obj[1] ;
21571
21572 if (!args) SWIG_fail;
21573 swig_obj[0] = args;
21574 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21575 if (!SWIG_IsOK(res1)) {
21576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
21577 }
21578 arg1 = reinterpret_cast< wxDC * >(argp1);
21579 {
21580 PyThreadState* __tstate = wxPyBeginAllowThreads();
21581 result = (int)((wxDC const *)arg1)->GetMapMode();
21582 wxPyEndAllowThreads(__tstate);
21583 if (PyErr_Occurred()) SWIG_fail;
21584 }
21585 resultobj = SWIG_From_int(static_cast< int >(result));
21586 return resultobj;
21587 fail:
21588 return NULL;
21589 }
21590
21591
21592 SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21593 PyObject *resultobj = 0;
21594 wxDC *arg1 = (wxDC *) 0 ;
21595 int arg2 ;
21596 void *argp1 = 0 ;
21597 int res1 = 0 ;
21598 int val2 ;
21599 int ecode2 = 0 ;
21600 PyObject * obj0 = 0 ;
21601 PyObject * obj1 = 0 ;
21602 char * kwnames[] = {
21603 (char *) "self",(char *) "mode", NULL
21604 };
21605
21606 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
21607 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21608 if (!SWIG_IsOK(res1)) {
21609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
21610 }
21611 arg1 = reinterpret_cast< wxDC * >(argp1);
21612 ecode2 = SWIG_AsVal_int(obj1, &val2);
21613 if (!SWIG_IsOK(ecode2)) {
21614 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
21615 }
21616 arg2 = static_cast< int >(val2);
21617 {
21618 PyThreadState* __tstate = wxPyBeginAllowThreads();
21619 (arg1)->SetMapMode(arg2);
21620 wxPyEndAllowThreads(__tstate);
21621 if (PyErr_Occurred()) SWIG_fail;
21622 }
21623 resultobj = SWIG_Py_Void();
21624 return resultobj;
21625 fail:
21626 return NULL;
21627 }
21628
21629
21630 SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21631 PyObject *resultobj = 0;
21632 wxDC *arg1 = (wxDC *) 0 ;
21633 double *arg2 = (double *) 0 ;
21634 double *arg3 = (double *) 0 ;
21635 void *argp1 = 0 ;
21636 int res1 = 0 ;
21637 double temp2 ;
21638 int res2 = SWIG_TMPOBJ ;
21639 double temp3 ;
21640 int res3 = SWIG_TMPOBJ ;
21641 PyObject *swig_obj[1] ;
21642
21643 arg2 = &temp2;
21644 arg3 = &temp3;
21645 if (!args) SWIG_fail;
21646 swig_obj[0] = args;
21647 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21648 if (!SWIG_IsOK(res1)) {
21649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
21650 }
21651 arg1 = reinterpret_cast< wxDC * >(argp1);
21652 {
21653 PyThreadState* __tstate = wxPyBeginAllowThreads();
21654 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
21655 wxPyEndAllowThreads(__tstate);
21656 if (PyErr_Occurred()) SWIG_fail;
21657 }
21658 resultobj = SWIG_Py_Void();
21659 if (SWIG_IsTmpObj(res2)) {
21660 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
21661 } else {
21662 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21663 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
21664 }
21665 if (SWIG_IsTmpObj(res3)) {
21666 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
21667 } else {
21668 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21669 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
21670 }
21671 return resultobj;
21672 fail:
21673 return NULL;
21674 }
21675
21676
21677 SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21678 PyObject *resultobj = 0;
21679 wxDC *arg1 = (wxDC *) 0 ;
21680 double arg2 ;
21681 double arg3 ;
21682 void *argp1 = 0 ;
21683 int res1 = 0 ;
21684 double val2 ;
21685 int ecode2 = 0 ;
21686 double val3 ;
21687 int ecode3 = 0 ;
21688 PyObject * obj0 = 0 ;
21689 PyObject * obj1 = 0 ;
21690 PyObject * obj2 = 0 ;
21691 char * kwnames[] = {
21692 (char *) "self",(char *) "x",(char *) "y", NULL
21693 };
21694
21695 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21696 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21697 if (!SWIG_IsOK(res1)) {
21698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
21699 }
21700 arg1 = reinterpret_cast< wxDC * >(argp1);
21701 ecode2 = SWIG_AsVal_double(obj1, &val2);
21702 if (!SWIG_IsOK(ecode2)) {
21703 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
21704 }
21705 arg2 = static_cast< double >(val2);
21706 ecode3 = SWIG_AsVal_double(obj2, &val3);
21707 if (!SWIG_IsOK(ecode3)) {
21708 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
21709 }
21710 arg3 = static_cast< double >(val3);
21711 {
21712 PyThreadState* __tstate = wxPyBeginAllowThreads();
21713 (arg1)->SetUserScale(arg2,arg3);
21714 wxPyEndAllowThreads(__tstate);
21715 if (PyErr_Occurred()) SWIG_fail;
21716 }
21717 resultobj = SWIG_Py_Void();
21718 return resultobj;
21719 fail:
21720 return NULL;
21721 }
21722
21723
21724 SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21725 PyObject *resultobj = 0;
21726 wxDC *arg1 = (wxDC *) 0 ;
21727 double *arg2 = (double *) 0 ;
21728 double *arg3 = (double *) 0 ;
21729 void *argp1 = 0 ;
21730 int res1 = 0 ;
21731 double temp2 ;
21732 int res2 = SWIG_TMPOBJ ;
21733 double temp3 ;
21734 int res3 = SWIG_TMPOBJ ;
21735 PyObject *swig_obj[1] ;
21736
21737 arg2 = &temp2;
21738 arg3 = &temp3;
21739 if (!args) SWIG_fail;
21740 swig_obj[0] = args;
21741 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21742 if (!SWIG_IsOK(res1)) {
21743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
21744 }
21745 arg1 = reinterpret_cast< wxDC * >(argp1);
21746 {
21747 PyThreadState* __tstate = wxPyBeginAllowThreads();
21748 (arg1)->GetLogicalScale(arg2,arg3);
21749 wxPyEndAllowThreads(__tstate);
21750 if (PyErr_Occurred()) SWIG_fail;
21751 }
21752 resultobj = SWIG_Py_Void();
21753 if (SWIG_IsTmpObj(res2)) {
21754 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
21755 } else {
21756 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21757 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
21758 }
21759 if (SWIG_IsTmpObj(res3)) {
21760 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
21761 } else {
21762 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21763 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
21764 }
21765 return resultobj;
21766 fail:
21767 return NULL;
21768 }
21769
21770
21771 SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21772 PyObject *resultobj = 0;
21773 wxDC *arg1 = (wxDC *) 0 ;
21774 double arg2 ;
21775 double arg3 ;
21776 void *argp1 = 0 ;
21777 int res1 = 0 ;
21778 double val2 ;
21779 int ecode2 = 0 ;
21780 double val3 ;
21781 int ecode3 = 0 ;
21782 PyObject * obj0 = 0 ;
21783 PyObject * obj1 = 0 ;
21784 PyObject * obj2 = 0 ;
21785 char * kwnames[] = {
21786 (char *) "self",(char *) "x",(char *) "y", NULL
21787 };
21788
21789 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21790 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21791 if (!SWIG_IsOK(res1)) {
21792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
21793 }
21794 arg1 = reinterpret_cast< wxDC * >(argp1);
21795 ecode2 = SWIG_AsVal_double(obj1, &val2);
21796 if (!SWIG_IsOK(ecode2)) {
21797 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
21798 }
21799 arg2 = static_cast< double >(val2);
21800 ecode3 = SWIG_AsVal_double(obj2, &val3);
21801 if (!SWIG_IsOK(ecode3)) {
21802 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
21803 }
21804 arg3 = static_cast< double >(val3);
21805 {
21806 PyThreadState* __tstate = wxPyBeginAllowThreads();
21807 (arg1)->SetLogicalScale(arg2,arg3);
21808 wxPyEndAllowThreads(__tstate);
21809 if (PyErr_Occurred()) SWIG_fail;
21810 }
21811 resultobj = SWIG_Py_Void();
21812 return resultobj;
21813 fail:
21814 return NULL;
21815 }
21816
21817
21818 SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21819 PyObject *resultobj = 0;
21820 wxDC *arg1 = (wxDC *) 0 ;
21821 wxPoint result;
21822 void *argp1 = 0 ;
21823 int res1 = 0 ;
21824 PyObject *swig_obj[1] ;
21825
21826 if (!args) SWIG_fail;
21827 swig_obj[0] = args;
21828 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21829 if (!SWIG_IsOK(res1)) {
21830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
21831 }
21832 arg1 = reinterpret_cast< wxDC * >(argp1);
21833 {
21834 PyThreadState* __tstate = wxPyBeginAllowThreads();
21835 result = ((wxDC const *)arg1)->GetLogicalOrigin();
21836 wxPyEndAllowThreads(__tstate);
21837 if (PyErr_Occurred()) SWIG_fail;
21838 }
21839 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
21840 return resultobj;
21841 fail:
21842 return NULL;
21843 }
21844
21845
21846 SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21847 PyObject *resultobj = 0;
21848 wxDC *arg1 = (wxDC *) 0 ;
21849 int *arg2 = (int *) 0 ;
21850 int *arg3 = (int *) 0 ;
21851 void *argp1 = 0 ;
21852 int res1 = 0 ;
21853 int temp2 ;
21854 int res2 = SWIG_TMPOBJ ;
21855 int temp3 ;
21856 int res3 = SWIG_TMPOBJ ;
21857 PyObject *swig_obj[1] ;
21858
21859 arg2 = &temp2;
21860 arg3 = &temp3;
21861 if (!args) SWIG_fail;
21862 swig_obj[0] = args;
21863 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21864 if (!SWIG_IsOK(res1)) {
21865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
21866 }
21867 arg1 = reinterpret_cast< wxDC * >(argp1);
21868 {
21869 PyThreadState* __tstate = wxPyBeginAllowThreads();
21870 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
21871 wxPyEndAllowThreads(__tstate);
21872 if (PyErr_Occurred()) SWIG_fail;
21873 }
21874 resultobj = SWIG_Py_Void();
21875 if (SWIG_IsTmpObj(res2)) {
21876 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21877 } else {
21878 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21879 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21880 }
21881 if (SWIG_IsTmpObj(res3)) {
21882 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21883 } else {
21884 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21885 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21886 }
21887 return resultobj;
21888 fail:
21889 return NULL;
21890 }
21891
21892
21893 SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21894 PyObject *resultobj = 0;
21895 wxDC *arg1 = (wxDC *) 0 ;
21896 int arg2 ;
21897 int arg3 ;
21898 void *argp1 = 0 ;
21899 int res1 = 0 ;
21900 int val2 ;
21901 int ecode2 = 0 ;
21902 int val3 ;
21903 int ecode3 = 0 ;
21904 PyObject * obj0 = 0 ;
21905 PyObject * obj1 = 0 ;
21906 PyObject * obj2 = 0 ;
21907 char * kwnames[] = {
21908 (char *) "self",(char *) "x",(char *) "y", NULL
21909 };
21910
21911 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21912 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21913 if (!SWIG_IsOK(res1)) {
21914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
21915 }
21916 arg1 = reinterpret_cast< wxDC * >(argp1);
21917 ecode2 = SWIG_AsVal_int(obj1, &val2);
21918 if (!SWIG_IsOK(ecode2)) {
21919 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
21920 }
21921 arg2 = static_cast< int >(val2);
21922 ecode3 = SWIG_AsVal_int(obj2, &val3);
21923 if (!SWIG_IsOK(ecode3)) {
21924 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
21925 }
21926 arg3 = static_cast< int >(val3);
21927 {
21928 PyThreadState* __tstate = wxPyBeginAllowThreads();
21929 (arg1)->SetLogicalOrigin(arg2,arg3);
21930 wxPyEndAllowThreads(__tstate);
21931 if (PyErr_Occurred()) SWIG_fail;
21932 }
21933 resultobj = SWIG_Py_Void();
21934 return resultobj;
21935 fail:
21936 return NULL;
21937 }
21938
21939
21940 SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21941 PyObject *resultobj = 0;
21942 wxDC *arg1 = (wxDC *) 0 ;
21943 wxPoint *arg2 = 0 ;
21944 void *argp1 = 0 ;
21945 int res1 = 0 ;
21946 wxPoint temp2 ;
21947 PyObject * obj0 = 0 ;
21948 PyObject * obj1 = 0 ;
21949 char * kwnames[] = {
21950 (char *) "self",(char *) "point", NULL
21951 };
21952
21953 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
21954 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21955 if (!SWIG_IsOK(res1)) {
21956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
21957 }
21958 arg1 = reinterpret_cast< wxDC * >(argp1);
21959 {
21960 arg2 = &temp2;
21961 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
21962 }
21963 {
21964 PyThreadState* __tstate = wxPyBeginAllowThreads();
21965 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
21966 wxPyEndAllowThreads(__tstate);
21967 if (PyErr_Occurred()) SWIG_fail;
21968 }
21969 resultobj = SWIG_Py_Void();
21970 return resultobj;
21971 fail:
21972 return NULL;
21973 }
21974
21975
21976 SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21977 PyObject *resultobj = 0;
21978 wxDC *arg1 = (wxDC *) 0 ;
21979 wxPoint result;
21980 void *argp1 = 0 ;
21981 int res1 = 0 ;
21982 PyObject *swig_obj[1] ;
21983
21984 if (!args) SWIG_fail;
21985 swig_obj[0] = args;
21986 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21987 if (!SWIG_IsOK(res1)) {
21988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
21989 }
21990 arg1 = reinterpret_cast< wxDC * >(argp1);
21991 {
21992 PyThreadState* __tstate = wxPyBeginAllowThreads();
21993 result = ((wxDC const *)arg1)->GetDeviceOrigin();
21994 wxPyEndAllowThreads(__tstate);
21995 if (PyErr_Occurred()) SWIG_fail;
21996 }
21997 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
21998 return resultobj;
21999 fail:
22000 return NULL;
22001 }
22002
22003
22004 SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22005 PyObject *resultobj = 0;
22006 wxDC *arg1 = (wxDC *) 0 ;
22007 int *arg2 = (int *) 0 ;
22008 int *arg3 = (int *) 0 ;
22009 void *argp1 = 0 ;
22010 int res1 = 0 ;
22011 int temp2 ;
22012 int res2 = SWIG_TMPOBJ ;
22013 int temp3 ;
22014 int res3 = SWIG_TMPOBJ ;
22015 PyObject *swig_obj[1] ;
22016
22017 arg2 = &temp2;
22018 arg3 = &temp3;
22019 if (!args) SWIG_fail;
22020 swig_obj[0] = args;
22021 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22022 if (!SWIG_IsOK(res1)) {
22023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22024 }
22025 arg1 = reinterpret_cast< wxDC * >(argp1);
22026 {
22027 PyThreadState* __tstate = wxPyBeginAllowThreads();
22028 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
22029 wxPyEndAllowThreads(__tstate);
22030 if (PyErr_Occurred()) SWIG_fail;
22031 }
22032 resultobj = SWIG_Py_Void();
22033 if (SWIG_IsTmpObj(res2)) {
22034 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22035 } else {
22036 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22037 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22038 }
22039 if (SWIG_IsTmpObj(res3)) {
22040 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22041 } else {
22042 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22043 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22044 }
22045 return resultobj;
22046 fail:
22047 return NULL;
22048 }
22049
22050
22051 SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22052 PyObject *resultobj = 0;
22053 wxDC *arg1 = (wxDC *) 0 ;
22054 int arg2 ;
22055 int arg3 ;
22056 void *argp1 = 0 ;
22057 int res1 = 0 ;
22058 int val2 ;
22059 int ecode2 = 0 ;
22060 int val3 ;
22061 int ecode3 = 0 ;
22062 PyObject * obj0 = 0 ;
22063 PyObject * obj1 = 0 ;
22064 PyObject * obj2 = 0 ;
22065 char * kwnames[] = {
22066 (char *) "self",(char *) "x",(char *) "y", NULL
22067 };
22068
22069 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22070 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22071 if (!SWIG_IsOK(res1)) {
22072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22073 }
22074 arg1 = reinterpret_cast< wxDC * >(argp1);
22075 ecode2 = SWIG_AsVal_int(obj1, &val2);
22076 if (!SWIG_IsOK(ecode2)) {
22077 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
22078 }
22079 arg2 = static_cast< int >(val2);
22080 ecode3 = SWIG_AsVal_int(obj2, &val3);
22081 if (!SWIG_IsOK(ecode3)) {
22082 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
22083 }
22084 arg3 = static_cast< int >(val3);
22085 {
22086 PyThreadState* __tstate = wxPyBeginAllowThreads();
22087 (arg1)->SetDeviceOrigin(arg2,arg3);
22088 wxPyEndAllowThreads(__tstate);
22089 if (PyErr_Occurred()) SWIG_fail;
22090 }
22091 resultobj = SWIG_Py_Void();
22092 return resultobj;
22093 fail:
22094 return NULL;
22095 }
22096
22097
22098 SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22099 PyObject *resultobj = 0;
22100 wxDC *arg1 = (wxDC *) 0 ;
22101 wxPoint *arg2 = 0 ;
22102 void *argp1 = 0 ;
22103 int res1 = 0 ;
22104 wxPoint temp2 ;
22105 PyObject * obj0 = 0 ;
22106 PyObject * obj1 = 0 ;
22107 char * kwnames[] = {
22108 (char *) "self",(char *) "point", NULL
22109 };
22110
22111 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22112 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22113 if (!SWIG_IsOK(res1)) {
22114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22115 }
22116 arg1 = reinterpret_cast< wxDC * >(argp1);
22117 {
22118 arg2 = &temp2;
22119 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22120 }
22121 {
22122 PyThreadState* __tstate = wxPyBeginAllowThreads();
22123 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
22124 wxPyEndAllowThreads(__tstate);
22125 if (PyErr_Occurred()) SWIG_fail;
22126 }
22127 resultobj = SWIG_Py_Void();
22128 return resultobj;
22129 fail:
22130 return NULL;
22131 }
22132
22133
22134 SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22135 PyObject *resultobj = 0;
22136 wxDC *arg1 = (wxDC *) 0 ;
22137 bool arg2 ;
22138 bool arg3 ;
22139 void *argp1 = 0 ;
22140 int res1 = 0 ;
22141 bool val2 ;
22142 int ecode2 = 0 ;
22143 bool val3 ;
22144 int ecode3 = 0 ;
22145 PyObject * obj0 = 0 ;
22146 PyObject * obj1 = 0 ;
22147 PyObject * obj2 = 0 ;
22148 char * kwnames[] = {
22149 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
22150 };
22151
22152 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22153 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22154 if (!SWIG_IsOK(res1)) {
22155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
22156 }
22157 arg1 = reinterpret_cast< wxDC * >(argp1);
22158 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22159 if (!SWIG_IsOK(ecode2)) {
22160 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
22161 }
22162 arg2 = static_cast< bool >(val2);
22163 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22164 if (!SWIG_IsOK(ecode3)) {
22165 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
22166 }
22167 arg3 = static_cast< bool >(val3);
22168 {
22169 PyThreadState* __tstate = wxPyBeginAllowThreads();
22170 (arg1)->SetAxisOrientation(arg2,arg3);
22171 wxPyEndAllowThreads(__tstate);
22172 if (PyErr_Occurred()) SWIG_fail;
22173 }
22174 resultobj = SWIG_Py_Void();
22175 return resultobj;
22176 fail:
22177 return NULL;
22178 }
22179
22180
22181 SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22182 PyObject *resultobj = 0;
22183 wxDC *arg1 = (wxDC *) 0 ;
22184 int result;
22185 void *argp1 = 0 ;
22186 int res1 = 0 ;
22187 PyObject *swig_obj[1] ;
22188
22189 if (!args) SWIG_fail;
22190 swig_obj[0] = args;
22191 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22192 if (!SWIG_IsOK(res1)) {
22193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
22194 }
22195 arg1 = reinterpret_cast< wxDC * >(argp1);
22196 {
22197 PyThreadState* __tstate = wxPyBeginAllowThreads();
22198 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
22199 wxPyEndAllowThreads(__tstate);
22200 if (PyErr_Occurred()) SWIG_fail;
22201 }
22202 resultobj = SWIG_From_int(static_cast< int >(result));
22203 return resultobj;
22204 fail:
22205 return NULL;
22206 }
22207
22208
22209 SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22210 PyObject *resultobj = 0;
22211 wxDC *arg1 = (wxDC *) 0 ;
22212 int arg2 ;
22213 void *argp1 = 0 ;
22214 int res1 = 0 ;
22215 int val2 ;
22216 int ecode2 = 0 ;
22217 PyObject * obj0 = 0 ;
22218 PyObject * obj1 = 0 ;
22219 char * kwnames[] = {
22220 (char *) "self",(char *) "function", NULL
22221 };
22222
22223 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
22224 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22225 if (!SWIG_IsOK(res1)) {
22226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
22227 }
22228 arg1 = reinterpret_cast< wxDC * >(argp1);
22229 ecode2 = SWIG_AsVal_int(obj1, &val2);
22230 if (!SWIG_IsOK(ecode2)) {
22231 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
22232 }
22233 arg2 = static_cast< int >(val2);
22234 {
22235 PyThreadState* __tstate = wxPyBeginAllowThreads();
22236 (arg1)->SetLogicalFunction(arg2);
22237 wxPyEndAllowThreads(__tstate);
22238 if (PyErr_Occurred()) SWIG_fail;
22239 }
22240 resultobj = SWIG_Py_Void();
22241 return resultobj;
22242 fail:
22243 return NULL;
22244 }
22245
22246
22247 SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22248 PyObject *resultobj = 0;
22249 wxDC *arg1 = (wxDC *) 0 ;
22250 void *argp1 = 0 ;
22251 int res1 = 0 ;
22252 PyObject *swig_obj[1] ;
22253
22254 if (!args) SWIG_fail;
22255 swig_obj[0] = args;
22256 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22257 if (!SWIG_IsOK(res1)) {
22258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22259 }
22260 arg1 = reinterpret_cast< wxDC * >(argp1);
22261 {
22262 PyThreadState* __tstate = wxPyBeginAllowThreads();
22263 (arg1)->ComputeScaleAndOrigin();
22264 wxPyEndAllowThreads(__tstate);
22265 if (PyErr_Occurred()) SWIG_fail;
22266 }
22267 resultobj = SWIG_Py_Void();
22268 return resultobj;
22269 fail:
22270 return NULL;
22271 }
22272
22273
22274 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22275 PyObject *resultobj = 0;
22276 wxDC *arg1 = (wxDC *) 0 ;
22277 int arg2 ;
22278 int arg3 ;
22279 void *argp1 = 0 ;
22280 int res1 = 0 ;
22281 int val2 ;
22282 int ecode2 = 0 ;
22283 int val3 ;
22284 int ecode3 = 0 ;
22285 PyObject * obj0 = 0 ;
22286 PyObject * obj1 = 0 ;
22287 PyObject * obj2 = 0 ;
22288 char * kwnames[] = {
22289 (char *) "self",(char *) "x",(char *) "y", NULL
22290 };
22291
22292 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22293 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22294 if (!SWIG_IsOK(res1)) {
22295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22296 }
22297 arg1 = reinterpret_cast< wxDC * >(argp1);
22298 ecode2 = SWIG_AsVal_int(obj1, &val2);
22299 if (!SWIG_IsOK(ecode2)) {
22300 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
22301 }
22302 arg2 = static_cast< int >(val2);
22303 ecode3 = SWIG_AsVal_int(obj2, &val3);
22304 if (!SWIG_IsOK(ecode3)) {
22305 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
22306 }
22307 arg3 = static_cast< int >(val3);
22308 {
22309 PyThreadState* __tstate = wxPyBeginAllowThreads();
22310 (arg1)->CalcBoundingBox(arg2,arg3);
22311 wxPyEndAllowThreads(__tstate);
22312 if (PyErr_Occurred()) SWIG_fail;
22313 }
22314 resultobj = SWIG_Py_Void();
22315 return resultobj;
22316 fail:
22317 return NULL;
22318 }
22319
22320
22321 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22322 PyObject *resultobj = 0;
22323 wxDC *arg1 = (wxDC *) 0 ;
22324 wxPoint *arg2 = 0 ;
22325 void *argp1 = 0 ;
22326 int res1 = 0 ;
22327 wxPoint temp2 ;
22328 PyObject * obj0 = 0 ;
22329 PyObject * obj1 = 0 ;
22330 char * kwnames[] = {
22331 (char *) "self",(char *) "point", NULL
22332 };
22333
22334 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22335 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22336 if (!SWIG_IsOK(res1)) {
22337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22338 }
22339 arg1 = reinterpret_cast< wxDC * >(argp1);
22340 {
22341 arg2 = &temp2;
22342 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22343 }
22344 {
22345 PyThreadState* __tstate = wxPyBeginAllowThreads();
22346 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
22347 wxPyEndAllowThreads(__tstate);
22348 if (PyErr_Occurred()) SWIG_fail;
22349 }
22350 resultobj = SWIG_Py_Void();
22351 return resultobj;
22352 fail:
22353 return NULL;
22354 }
22355
22356
22357 SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22358 PyObject *resultobj = 0;
22359 wxDC *arg1 = (wxDC *) 0 ;
22360 void *argp1 = 0 ;
22361 int res1 = 0 ;
22362 PyObject *swig_obj[1] ;
22363
22364 if (!args) SWIG_fail;
22365 swig_obj[0] = args;
22366 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22367 if (!SWIG_IsOK(res1)) {
22368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22369 }
22370 arg1 = reinterpret_cast< wxDC * >(argp1);
22371 {
22372 PyThreadState* __tstate = wxPyBeginAllowThreads();
22373 (arg1)->ResetBoundingBox();
22374 wxPyEndAllowThreads(__tstate);
22375 if (PyErr_Occurred()) SWIG_fail;
22376 }
22377 resultobj = SWIG_Py_Void();
22378 return resultobj;
22379 fail:
22380 return NULL;
22381 }
22382
22383
22384 SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22385 PyObject *resultobj = 0;
22386 wxDC *arg1 = (wxDC *) 0 ;
22387 int result;
22388 void *argp1 = 0 ;
22389 int res1 = 0 ;
22390 PyObject *swig_obj[1] ;
22391
22392 if (!args) SWIG_fail;
22393 swig_obj[0] = args;
22394 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22395 if (!SWIG_IsOK(res1)) {
22396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
22397 }
22398 arg1 = reinterpret_cast< wxDC * >(argp1);
22399 {
22400 PyThreadState* __tstate = wxPyBeginAllowThreads();
22401 result = (int)((wxDC const *)arg1)->MinX();
22402 wxPyEndAllowThreads(__tstate);
22403 if (PyErr_Occurred()) SWIG_fail;
22404 }
22405 resultobj = SWIG_From_int(static_cast< int >(result));
22406 return resultobj;
22407 fail:
22408 return NULL;
22409 }
22410
22411
22412 SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22413 PyObject *resultobj = 0;
22414 wxDC *arg1 = (wxDC *) 0 ;
22415 int result;
22416 void *argp1 = 0 ;
22417 int res1 = 0 ;
22418 PyObject *swig_obj[1] ;
22419
22420 if (!args) SWIG_fail;
22421 swig_obj[0] = args;
22422 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22423 if (!SWIG_IsOK(res1)) {
22424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
22425 }
22426 arg1 = reinterpret_cast< wxDC * >(argp1);
22427 {
22428 PyThreadState* __tstate = wxPyBeginAllowThreads();
22429 result = (int)((wxDC const *)arg1)->MaxX();
22430 wxPyEndAllowThreads(__tstate);
22431 if (PyErr_Occurred()) SWIG_fail;
22432 }
22433 resultobj = SWIG_From_int(static_cast< int >(result));
22434 return resultobj;
22435 fail:
22436 return NULL;
22437 }
22438
22439
22440 SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22441 PyObject *resultobj = 0;
22442 wxDC *arg1 = (wxDC *) 0 ;
22443 int result;
22444 void *argp1 = 0 ;
22445 int res1 = 0 ;
22446 PyObject *swig_obj[1] ;
22447
22448 if (!args) SWIG_fail;
22449 swig_obj[0] = args;
22450 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22451 if (!SWIG_IsOK(res1)) {
22452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
22453 }
22454 arg1 = reinterpret_cast< wxDC * >(argp1);
22455 {
22456 PyThreadState* __tstate = wxPyBeginAllowThreads();
22457 result = (int)((wxDC const *)arg1)->MinY();
22458 wxPyEndAllowThreads(__tstate);
22459 if (PyErr_Occurred()) SWIG_fail;
22460 }
22461 resultobj = SWIG_From_int(static_cast< int >(result));
22462 return resultobj;
22463 fail:
22464 return NULL;
22465 }
22466
22467
22468 SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22469 PyObject *resultobj = 0;
22470 wxDC *arg1 = (wxDC *) 0 ;
22471 int result;
22472 void *argp1 = 0 ;
22473 int res1 = 0 ;
22474 PyObject *swig_obj[1] ;
22475
22476 if (!args) SWIG_fail;
22477 swig_obj[0] = args;
22478 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22479 if (!SWIG_IsOK(res1)) {
22480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
22481 }
22482 arg1 = reinterpret_cast< wxDC * >(argp1);
22483 {
22484 PyThreadState* __tstate = wxPyBeginAllowThreads();
22485 result = (int)((wxDC const *)arg1)->MaxY();
22486 wxPyEndAllowThreads(__tstate);
22487 if (PyErr_Occurred()) SWIG_fail;
22488 }
22489 resultobj = SWIG_From_int(static_cast< int >(result));
22490 return resultobj;
22491 fail:
22492 return NULL;
22493 }
22494
22495
22496 SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22497 PyObject *resultobj = 0;
22498 wxDC *arg1 = (wxDC *) 0 ;
22499 int *arg2 = (int *) 0 ;
22500 int *arg3 = (int *) 0 ;
22501 int *arg4 = (int *) 0 ;
22502 int *arg5 = (int *) 0 ;
22503 void *argp1 = 0 ;
22504 int res1 = 0 ;
22505 int temp2 ;
22506 int res2 = SWIG_TMPOBJ ;
22507 int temp3 ;
22508 int res3 = SWIG_TMPOBJ ;
22509 int temp4 ;
22510 int res4 = SWIG_TMPOBJ ;
22511 int temp5 ;
22512 int res5 = SWIG_TMPOBJ ;
22513 PyObject *swig_obj[1] ;
22514
22515 arg2 = &temp2;
22516 arg3 = &temp3;
22517 arg4 = &temp4;
22518 arg5 = &temp5;
22519 if (!args) SWIG_fail;
22520 swig_obj[0] = args;
22521 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22522 if (!SWIG_IsOK(res1)) {
22523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22524 }
22525 arg1 = reinterpret_cast< wxDC * >(argp1);
22526 {
22527 PyThreadState* __tstate = wxPyBeginAllowThreads();
22528 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
22529 wxPyEndAllowThreads(__tstate);
22530 if (PyErr_Occurred()) SWIG_fail;
22531 }
22532 resultobj = SWIG_Py_Void();
22533 if (SWIG_IsTmpObj(res2)) {
22534 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22535 } else {
22536 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22537 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22538 }
22539 if (SWIG_IsTmpObj(res3)) {
22540 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22541 } else {
22542 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22543 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22544 }
22545 if (SWIG_IsTmpObj(res4)) {
22546 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
22547 } else {
22548 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22549 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
22550 }
22551 if (SWIG_IsTmpObj(res5)) {
22552 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
22553 } else {
22554 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22555 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
22556 }
22557 return resultobj;
22558 fail:
22559 return NULL;
22560 }
22561
22562
22563 SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22564 PyObject *resultobj = 0;
22565 wxDC *arg1 = (wxDC *) 0 ;
22566 PyObject *arg2 = (PyObject *) 0 ;
22567 PyObject *arg3 = (PyObject *) 0 ;
22568 PyObject *arg4 = (PyObject *) 0 ;
22569 PyObject *result = 0 ;
22570 void *argp1 = 0 ;
22571 int res1 = 0 ;
22572 PyObject * obj0 = 0 ;
22573 PyObject * obj1 = 0 ;
22574 PyObject * obj2 = 0 ;
22575 PyObject * obj3 = 0 ;
22576 char * kwnames[] = {
22577 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22578 };
22579
22580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22581 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22582 if (!SWIG_IsOK(res1)) {
22583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
22584 }
22585 arg1 = reinterpret_cast< wxDC * >(argp1);
22586 arg2 = obj1;
22587 arg3 = obj2;
22588 arg4 = obj3;
22589 {
22590 PyThreadState* __tstate = wxPyBeginAllowThreads();
22591 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
22592 wxPyEndAllowThreads(__tstate);
22593 if (PyErr_Occurred()) SWIG_fail;
22594 }
22595 resultobj = result;
22596 return resultobj;
22597 fail:
22598 return NULL;
22599 }
22600
22601
22602 SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22603 PyObject *resultobj = 0;
22604 wxDC *arg1 = (wxDC *) 0 ;
22605 PyObject *arg2 = (PyObject *) 0 ;
22606 PyObject *arg3 = (PyObject *) 0 ;
22607 PyObject *arg4 = (PyObject *) 0 ;
22608 PyObject *result = 0 ;
22609 void *argp1 = 0 ;
22610 int res1 = 0 ;
22611 PyObject * obj0 = 0 ;
22612 PyObject * obj1 = 0 ;
22613 PyObject * obj2 = 0 ;
22614 PyObject * obj3 = 0 ;
22615 char * kwnames[] = {
22616 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22617 };
22618
22619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22621 if (!SWIG_IsOK(res1)) {
22622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
22623 }
22624 arg1 = reinterpret_cast< wxDC * >(argp1);
22625 arg2 = obj1;
22626 arg3 = obj2;
22627 arg4 = obj3;
22628 {
22629 PyThreadState* __tstate = wxPyBeginAllowThreads();
22630 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
22631 wxPyEndAllowThreads(__tstate);
22632 if (PyErr_Occurred()) SWIG_fail;
22633 }
22634 resultobj = result;
22635 return resultobj;
22636 fail:
22637 return NULL;
22638 }
22639
22640
22641 SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22642 PyObject *resultobj = 0;
22643 wxDC *arg1 = (wxDC *) 0 ;
22644 PyObject *arg2 = (PyObject *) 0 ;
22645 PyObject *arg3 = (PyObject *) 0 ;
22646 PyObject *arg4 = (PyObject *) 0 ;
22647 PyObject *result = 0 ;
22648 void *argp1 = 0 ;
22649 int res1 = 0 ;
22650 PyObject * obj0 = 0 ;
22651 PyObject * obj1 = 0 ;
22652 PyObject * obj2 = 0 ;
22653 PyObject * obj3 = 0 ;
22654 char * kwnames[] = {
22655 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22656 };
22657
22658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22660 if (!SWIG_IsOK(res1)) {
22661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
22662 }
22663 arg1 = reinterpret_cast< wxDC * >(argp1);
22664 arg2 = obj1;
22665 arg3 = obj2;
22666 arg4 = obj3;
22667 {
22668 PyThreadState* __tstate = wxPyBeginAllowThreads();
22669 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
22670 wxPyEndAllowThreads(__tstate);
22671 if (PyErr_Occurred()) SWIG_fail;
22672 }
22673 resultobj = result;
22674 return resultobj;
22675 fail:
22676 return NULL;
22677 }
22678
22679
22680 SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22681 PyObject *resultobj = 0;
22682 wxDC *arg1 = (wxDC *) 0 ;
22683 PyObject *arg2 = (PyObject *) 0 ;
22684 PyObject *arg3 = (PyObject *) 0 ;
22685 PyObject *arg4 = (PyObject *) 0 ;
22686 PyObject *result = 0 ;
22687 void *argp1 = 0 ;
22688 int res1 = 0 ;
22689 PyObject * obj0 = 0 ;
22690 PyObject * obj1 = 0 ;
22691 PyObject * obj2 = 0 ;
22692 PyObject * obj3 = 0 ;
22693 char * kwnames[] = {
22694 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22695 };
22696
22697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22699 if (!SWIG_IsOK(res1)) {
22700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
22701 }
22702 arg1 = reinterpret_cast< wxDC * >(argp1);
22703 arg2 = obj1;
22704 arg3 = obj2;
22705 arg4 = obj3;
22706 {
22707 PyThreadState* __tstate = wxPyBeginAllowThreads();
22708 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
22709 wxPyEndAllowThreads(__tstate);
22710 if (PyErr_Occurred()) SWIG_fail;
22711 }
22712 resultobj = result;
22713 return resultobj;
22714 fail:
22715 return NULL;
22716 }
22717
22718
22719 SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22720 PyObject *resultobj = 0;
22721 wxDC *arg1 = (wxDC *) 0 ;
22722 PyObject *arg2 = (PyObject *) 0 ;
22723 PyObject *arg3 = (PyObject *) 0 ;
22724 PyObject *arg4 = (PyObject *) 0 ;
22725 PyObject *result = 0 ;
22726 void *argp1 = 0 ;
22727 int res1 = 0 ;
22728 PyObject * obj0 = 0 ;
22729 PyObject * obj1 = 0 ;
22730 PyObject * obj2 = 0 ;
22731 PyObject * obj3 = 0 ;
22732 char * kwnames[] = {
22733 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22734 };
22735
22736 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22737 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22738 if (!SWIG_IsOK(res1)) {
22739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
22740 }
22741 arg1 = reinterpret_cast< wxDC * >(argp1);
22742 arg2 = obj1;
22743 arg3 = obj2;
22744 arg4 = obj3;
22745 {
22746 PyThreadState* __tstate = wxPyBeginAllowThreads();
22747 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
22748 wxPyEndAllowThreads(__tstate);
22749 if (PyErr_Occurred()) SWIG_fail;
22750 }
22751 resultobj = result;
22752 return resultobj;
22753 fail:
22754 return NULL;
22755 }
22756
22757
22758 SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22759 PyObject *resultobj = 0;
22760 wxDC *arg1 = (wxDC *) 0 ;
22761 PyObject *arg2 = (PyObject *) 0 ;
22762 PyObject *arg3 = (PyObject *) 0 ;
22763 PyObject *arg4 = (PyObject *) 0 ;
22764 PyObject *arg5 = (PyObject *) 0 ;
22765 PyObject *result = 0 ;
22766 void *argp1 = 0 ;
22767 int res1 = 0 ;
22768 PyObject * obj0 = 0 ;
22769 PyObject * obj1 = 0 ;
22770 PyObject * obj2 = 0 ;
22771 PyObject * obj3 = 0 ;
22772 PyObject * obj4 = 0 ;
22773 char * kwnames[] = {
22774 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
22775 };
22776
22777 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
22778 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22779 if (!SWIG_IsOK(res1)) {
22780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
22781 }
22782 arg1 = reinterpret_cast< wxDC * >(argp1);
22783 arg2 = obj1;
22784 arg3 = obj2;
22785 arg4 = obj3;
22786 arg5 = obj4;
22787 {
22788 PyThreadState* __tstate = wxPyBeginAllowThreads();
22789 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
22790 wxPyEndAllowThreads(__tstate);
22791 if (PyErr_Occurred()) SWIG_fail;
22792 }
22793 resultobj = result;
22794 return resultobj;
22795 fail:
22796 return NULL;
22797 }
22798
22799
22800 SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22801 PyObject *obj;
22802 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22803 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
22804 return SWIG_Py_Void();
22805 }
22806
22807 SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22808 PyObject *resultobj = 0;
22809 wxMemoryDC *result = 0 ;
22810
22811 if (!SWIG_Python_UnpackTuple(args,"new_MemoryDC",0,0,0)) SWIG_fail;
22812 {
22813 if (!wxPyCheckForApp()) SWIG_fail;
22814 PyThreadState* __tstate = wxPyBeginAllowThreads();
22815 result = (wxMemoryDC *)new wxMemoryDC();
22816 wxPyEndAllowThreads(__tstate);
22817 if (PyErr_Occurred()) SWIG_fail;
22818 }
22819 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
22820 return resultobj;
22821 fail:
22822 return NULL;
22823 }
22824
22825
22826 SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22827 PyObject *resultobj = 0;
22828 wxDC *arg1 = (wxDC *) 0 ;
22829 wxMemoryDC *result = 0 ;
22830 void *argp1 = 0 ;
22831 int res1 = 0 ;
22832 PyObject * obj0 = 0 ;
22833 char * kwnames[] = {
22834 (char *) "oldDC", NULL
22835 };
22836
22837 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
22838 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22839 if (!SWIG_IsOK(res1)) {
22840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
22841 }
22842 arg1 = reinterpret_cast< wxDC * >(argp1);
22843 {
22844 if (!wxPyCheckForApp()) SWIG_fail;
22845 PyThreadState* __tstate = wxPyBeginAllowThreads();
22846 result = (wxMemoryDC *)new wxMemoryDC(arg1);
22847 wxPyEndAllowThreads(__tstate);
22848 if (PyErr_Occurred()) SWIG_fail;
22849 }
22850 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
22851 return resultobj;
22852 fail:
22853 return NULL;
22854 }
22855
22856
22857 SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22858 PyObject *resultobj = 0;
22859 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
22860 wxBitmap *arg2 = 0 ;
22861 void *argp1 = 0 ;
22862 int res1 = 0 ;
22863 void *argp2 = 0 ;
22864 int res2 = 0 ;
22865 PyObject * obj0 = 0 ;
22866 PyObject * obj1 = 0 ;
22867 char * kwnames[] = {
22868 (char *) "self",(char *) "bitmap", NULL
22869 };
22870
22871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
22872 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
22873 if (!SWIG_IsOK(res1)) {
22874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
22875 }
22876 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
22877 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
22878 if (!SWIG_IsOK(res2)) {
22879 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
22880 }
22881 if (!argp2) {
22882 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
22883 }
22884 arg2 = reinterpret_cast< wxBitmap * >(argp2);
22885 {
22886 PyThreadState* __tstate = wxPyBeginAllowThreads();
22887 (arg1)->SelectObject((wxBitmap const &)*arg2);
22888 wxPyEndAllowThreads(__tstate);
22889 if (PyErr_Occurred()) SWIG_fail;
22890 }
22891 resultobj = SWIG_Py_Void();
22892 return resultobj;
22893 fail:
22894 return NULL;
22895 }
22896
22897
22898 SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22899 PyObject *obj;
22900 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22901 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
22902 return SWIG_Py_Void();
22903 }
22904
22905 SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22906 return SWIG_Python_InitShadowInstance(args);
22907 }
22908
22909 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
22910 PyObject *resultobj = 0;
22911 wxDC *arg1 = (wxDC *) 0 ;
22912 wxBitmap const &arg2_defvalue = wxNullBitmap ;
22913 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
22914 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
22915 wxBufferedDC *result = 0 ;
22916 void *argp1 = 0 ;
22917 int res1 = 0 ;
22918 void *argp2 = 0 ;
22919 int res2 = 0 ;
22920 int val3 ;
22921 int ecode3 = 0 ;
22922
22923 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
22924 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22925 if (!SWIG_IsOK(res1)) {
22926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
22927 }
22928 arg1 = reinterpret_cast< wxDC * >(argp1);
22929 if (swig_obj[1]) {
22930 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
22931 if (!SWIG_IsOK(res2)) {
22932 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
22933 }
22934 if (!argp2) {
22935 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
22936 }
22937 arg2 = reinterpret_cast< wxBitmap * >(argp2);
22938 }
22939 if (swig_obj[2]) {
22940 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
22941 if (!SWIG_IsOK(ecode3)) {
22942 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
22943 }
22944 arg3 = static_cast< int >(val3);
22945 }
22946 {
22947 if (!wxPyCheckForApp()) SWIG_fail;
22948 PyThreadState* __tstate = wxPyBeginAllowThreads();
22949 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2,arg3);
22950 wxPyEndAllowThreads(__tstate);
22951 if (PyErr_Occurred()) SWIG_fail;
22952 }
22953 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
22954 return resultobj;
22955 fail:
22956 return NULL;
22957 }
22958
22959
22960 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
22961 PyObject *resultobj = 0;
22962 wxDC *arg1 = (wxDC *) 0 ;
22963 wxSize *arg2 = 0 ;
22964 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
22965 wxBufferedDC *result = 0 ;
22966 void *argp1 = 0 ;
22967 int res1 = 0 ;
22968 wxSize temp2 ;
22969 int val3 ;
22970 int ecode3 = 0 ;
22971
22972 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
22973 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22974 if (!SWIG_IsOK(res1)) {
22975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
22976 }
22977 arg1 = reinterpret_cast< wxDC * >(argp1);
22978 {
22979 arg2 = &temp2;
22980 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
22981 }
22982 if (swig_obj[2]) {
22983 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
22984 if (!SWIG_IsOK(ecode3)) {
22985 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
22986 }
22987 arg3 = static_cast< int >(val3);
22988 }
22989 {
22990 if (!wxPyCheckForApp()) SWIG_fail;
22991 PyThreadState* __tstate = wxPyBeginAllowThreads();
22992 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
22993 wxPyEndAllowThreads(__tstate);
22994 if (PyErr_Occurred()) SWIG_fail;
22995 }
22996 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
22997 return resultobj;
22998 fail:
22999 return NULL;
23000 }
23001
23002
23003 SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
23004 int argc;
23005 PyObject *argv[4];
23006
23007 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
23008 --argc;
23009 if ((argc >= 1) && (argc <= 3)) {
23010 int _v = 0;
23011 if (argc > 1) {
23012 {
23013 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxBitmap, 0);
23014 _v = SWIG_CheckState(res);
23015 }
23016 if (!_v) goto check_1;
23017 }
23018 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
23019 }
23020 check_1:
23021
23022 if ((argc >= 2) && (argc <= 3)) {
23023 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
23024 }
23025
23026 fail:
23027 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
23028 return NULL;
23029 }
23030
23031
23032 SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23033 PyObject *resultobj = 0;
23034 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
23035 void *argp1 = 0 ;
23036 int res1 = 0 ;
23037 PyObject *swig_obj[1] ;
23038
23039 if (!args) SWIG_fail;
23040 swig_obj[0] = args;
23041 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
23042 if (!SWIG_IsOK(res1)) {
23043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
23044 }
23045 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
23046 {
23047 PyThreadState* __tstate = wxPyBeginAllowThreads();
23048 delete arg1;
23049
23050 wxPyEndAllowThreads(__tstate);
23051 if (PyErr_Occurred()) SWIG_fail;
23052 }
23053 resultobj = SWIG_Py_Void();
23054 return resultobj;
23055 fail:
23056 return NULL;
23057 }
23058
23059
23060 SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23061 PyObject *resultobj = 0;
23062 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
23063 void *argp1 = 0 ;
23064 int res1 = 0 ;
23065 PyObject *swig_obj[1] ;
23066
23067 if (!args) SWIG_fail;
23068 swig_obj[0] = args;
23069 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
23070 if (!SWIG_IsOK(res1)) {
23071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
23072 }
23073 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
23074 {
23075 PyThreadState* __tstate = wxPyBeginAllowThreads();
23076 (arg1)->UnMask();
23077 wxPyEndAllowThreads(__tstate);
23078 if (PyErr_Occurred()) SWIG_fail;
23079 }
23080 resultobj = SWIG_Py_Void();
23081 return resultobj;
23082 fail:
23083 return NULL;
23084 }
23085
23086
23087 SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23088 PyObject *obj;
23089 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23090 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
23091 return SWIG_Py_Void();
23092 }
23093
23094 SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23095 return SWIG_Python_InitShadowInstance(args);
23096 }
23097
23098 SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23099 PyObject *resultobj = 0;
23100 wxWindow *arg1 = (wxWindow *) 0 ;
23101 wxBitmap const &arg2_defvalue = wxNullBitmap ;
23102 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
23103 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
23104 wxBufferedPaintDC *result = 0 ;
23105 void *argp1 = 0 ;
23106 int res1 = 0 ;
23107 void *argp2 = 0 ;
23108 int res2 = 0 ;
23109 int val3 ;
23110 int ecode3 = 0 ;
23111 PyObject * obj0 = 0 ;
23112 PyObject * obj1 = 0 ;
23113 PyObject * obj2 = 0 ;
23114 char * kwnames[] = {
23115 (char *) "window",(char *) "buffer",(char *) "style", NULL
23116 };
23117
23118 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23119 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23120 if (!SWIG_IsOK(res1)) {
23121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23122 }
23123 arg1 = reinterpret_cast< wxWindow * >(argp1);
23124 if (obj1) {
23125 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23126 if (!SWIG_IsOK(res2)) {
23127 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23128 }
23129 if (!argp2) {
23130 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23131 }
23132 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23133 }
23134 if (obj2) {
23135 ecode3 = SWIG_AsVal_int(obj2, &val3);
23136 if (!SWIG_IsOK(ecode3)) {
23137 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
23138 }
23139 arg3 = static_cast< int >(val3);
23140 }
23141 {
23142 if (!wxPyCheckForApp()) SWIG_fail;
23143 PyThreadState* __tstate = wxPyBeginAllowThreads();
23144 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2,arg3);
23145 wxPyEndAllowThreads(__tstate);
23146 if (PyErr_Occurred()) SWIG_fail;
23147 }
23148 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
23149 return resultobj;
23150 fail:
23151 return NULL;
23152 }
23153
23154
23155 SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23156 PyObject *obj;
23157 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23158 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
23159 return SWIG_Py_Void();
23160 }
23161
23162 SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23163 return SWIG_Python_InitShadowInstance(args);
23164 }
23165
23166 SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23167 PyObject *resultobj = 0;
23168 wxScreenDC *result = 0 ;
23169
23170 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
23171 {
23172 if (!wxPyCheckForApp()) SWIG_fail;
23173 PyThreadState* __tstate = wxPyBeginAllowThreads();
23174 result = (wxScreenDC *)new wxScreenDC();
23175 wxPyEndAllowThreads(__tstate);
23176 if (PyErr_Occurred()) SWIG_fail;
23177 }
23178 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
23179 return resultobj;
23180 fail:
23181 return NULL;
23182 }
23183
23184
23185 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23186 PyObject *resultobj = 0;
23187 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23188 wxWindow *arg2 = (wxWindow *) 0 ;
23189 bool result;
23190 void *argp1 = 0 ;
23191 int res1 = 0 ;
23192 void *argp2 = 0 ;
23193 int res2 = 0 ;
23194 PyObject * obj0 = 0 ;
23195 PyObject * obj1 = 0 ;
23196 char * kwnames[] = {
23197 (char *) "self",(char *) "window", NULL
23198 };
23199
23200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
23201 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23202 if (!SWIG_IsOK(res1)) {
23203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23204 }
23205 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23206 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
23207 if (!SWIG_IsOK(res2)) {
23208 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
23209 }
23210 arg2 = reinterpret_cast< wxWindow * >(argp2);
23211 {
23212 PyThreadState* __tstate = wxPyBeginAllowThreads();
23213 result = (bool)(arg1)->StartDrawingOnTop(arg2);
23214 wxPyEndAllowThreads(__tstate);
23215 if (PyErr_Occurred()) SWIG_fail;
23216 }
23217 {
23218 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23219 }
23220 return resultobj;
23221 fail:
23222 return NULL;
23223 }
23224
23225
23226 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23227 PyObject *resultobj = 0;
23228 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23229 wxRect *arg2 = (wxRect *) NULL ;
23230 bool result;
23231 void *argp1 = 0 ;
23232 int res1 = 0 ;
23233 void *argp2 = 0 ;
23234 int res2 = 0 ;
23235 PyObject * obj0 = 0 ;
23236 PyObject * obj1 = 0 ;
23237 char * kwnames[] = {
23238 (char *) "self",(char *) "rect", NULL
23239 };
23240
23241 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
23242 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23243 if (!SWIG_IsOK(res1)) {
23244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23245 }
23246 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23247 if (obj1) {
23248 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
23249 if (!SWIG_IsOK(res2)) {
23250 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
23251 }
23252 arg2 = reinterpret_cast< wxRect * >(argp2);
23253 }
23254 {
23255 PyThreadState* __tstate = wxPyBeginAllowThreads();
23256 result = (bool)(arg1)->StartDrawingOnTop(arg2);
23257 wxPyEndAllowThreads(__tstate);
23258 if (PyErr_Occurred()) SWIG_fail;
23259 }
23260 {
23261 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23262 }
23263 return resultobj;
23264 fail:
23265 return NULL;
23266 }
23267
23268
23269 SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23270 PyObject *resultobj = 0;
23271 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23272 bool result;
23273 void *argp1 = 0 ;
23274 int res1 = 0 ;
23275 PyObject *swig_obj[1] ;
23276
23277 if (!args) SWIG_fail;
23278 swig_obj[0] = args;
23279 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23280 if (!SWIG_IsOK(res1)) {
23281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23282 }
23283 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23284 {
23285 PyThreadState* __tstate = wxPyBeginAllowThreads();
23286 result = (bool)(arg1)->EndDrawingOnTop();
23287 wxPyEndAllowThreads(__tstate);
23288 if (PyErr_Occurred()) SWIG_fail;
23289 }
23290 {
23291 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23292 }
23293 return resultobj;
23294 fail:
23295 return NULL;
23296 }
23297
23298
23299 SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23300 PyObject *obj;
23301 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23302 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
23303 return SWIG_Py_Void();
23304 }
23305
23306 SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23307 return SWIG_Python_InitShadowInstance(args);
23308 }
23309
23310 SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23311 PyObject *resultobj = 0;
23312 wxWindow *arg1 = (wxWindow *) 0 ;
23313 wxClientDC *result = 0 ;
23314 void *argp1 = 0 ;
23315 int res1 = 0 ;
23316 PyObject * obj0 = 0 ;
23317 char * kwnames[] = {
23318 (char *) "win", NULL
23319 };
23320
23321 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
23322 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23323 if (!SWIG_IsOK(res1)) {
23324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23325 }
23326 arg1 = reinterpret_cast< wxWindow * >(argp1);
23327 {
23328 if (!wxPyCheckForApp()) SWIG_fail;
23329 PyThreadState* __tstate = wxPyBeginAllowThreads();
23330 result = (wxClientDC *)new wxClientDC(arg1);
23331 wxPyEndAllowThreads(__tstate);
23332 if (PyErr_Occurred()) SWIG_fail;
23333 }
23334 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
23335 return resultobj;
23336 fail:
23337 return NULL;
23338 }
23339
23340
23341 SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23342 PyObject *obj;
23343 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23344 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
23345 return SWIG_Py_Void();
23346 }
23347
23348 SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23349 return SWIG_Python_InitShadowInstance(args);
23350 }
23351
23352 SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23353 PyObject *resultobj = 0;
23354 wxWindow *arg1 = (wxWindow *) 0 ;
23355 wxPaintDC *result = 0 ;
23356 void *argp1 = 0 ;
23357 int res1 = 0 ;
23358 PyObject * obj0 = 0 ;
23359 char * kwnames[] = {
23360 (char *) "win", NULL
23361 };
23362
23363 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
23364 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23365 if (!SWIG_IsOK(res1)) {
23366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23367 }
23368 arg1 = reinterpret_cast< wxWindow * >(argp1);
23369 {
23370 if (!wxPyCheckForApp()) SWIG_fail;
23371 PyThreadState* __tstate = wxPyBeginAllowThreads();
23372 result = (wxPaintDC *)new wxPaintDC(arg1);
23373 wxPyEndAllowThreads(__tstate);
23374 if (PyErr_Occurred()) SWIG_fail;
23375 }
23376 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
23377 return resultobj;
23378 fail:
23379 return NULL;
23380 }
23381
23382
23383 SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23384 PyObject *obj;
23385 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23386 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
23387 return SWIG_Py_Void();
23388 }
23389
23390 SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23391 return SWIG_Python_InitShadowInstance(args);
23392 }
23393
23394 SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23395 PyObject *resultobj = 0;
23396 wxWindow *arg1 = (wxWindow *) 0 ;
23397 wxWindowDC *result = 0 ;
23398 void *argp1 = 0 ;
23399 int res1 = 0 ;
23400 PyObject * obj0 = 0 ;
23401 char * kwnames[] = {
23402 (char *) "win", NULL
23403 };
23404
23405 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
23406 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23407 if (!SWIG_IsOK(res1)) {
23408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23409 }
23410 arg1 = reinterpret_cast< wxWindow * >(argp1);
23411 {
23412 if (!wxPyCheckForApp()) SWIG_fail;
23413 PyThreadState* __tstate = wxPyBeginAllowThreads();
23414 result = (wxWindowDC *)new wxWindowDC(arg1);
23415 wxPyEndAllowThreads(__tstate);
23416 if (PyErr_Occurred()) SWIG_fail;
23417 }
23418 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
23419 return resultobj;
23420 fail:
23421 return NULL;
23422 }
23423
23424
23425 SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23426 PyObject *obj;
23427 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23428 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
23429 return SWIG_Py_Void();
23430 }
23431
23432 SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23433 return SWIG_Python_InitShadowInstance(args);
23434 }
23435
23436 SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23437 PyObject *resultobj = 0;
23438 wxDC *arg1 = 0 ;
23439 bool arg2 ;
23440 wxMirrorDC *result = 0 ;
23441 void *argp1 = 0 ;
23442 int res1 = 0 ;
23443 bool val2 ;
23444 int ecode2 = 0 ;
23445 PyObject * obj0 = 0 ;
23446 PyObject * obj1 = 0 ;
23447 char * kwnames[] = {
23448 (char *) "dc",(char *) "mirror", NULL
23449 };
23450
23451 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
23452 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23453 if (!SWIG_IsOK(res1)) {
23454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
23455 }
23456 if (!argp1) {
23457 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
23458 }
23459 arg1 = reinterpret_cast< wxDC * >(argp1);
23460 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23461 if (!SWIG_IsOK(ecode2)) {
23462 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
23463 }
23464 arg2 = static_cast< bool >(val2);
23465 {
23466 if (!wxPyCheckForApp()) SWIG_fail;
23467 PyThreadState* __tstate = wxPyBeginAllowThreads();
23468 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
23469 wxPyEndAllowThreads(__tstate);
23470 if (PyErr_Occurred()) SWIG_fail;
23471 }
23472 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
23473 return resultobj;
23474 fail:
23475 return NULL;
23476 }
23477
23478
23479 SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23480 PyObject *obj;
23481 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23482 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
23483 return SWIG_Py_Void();
23484 }
23485
23486 SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23487 return SWIG_Python_InitShadowInstance(args);
23488 }
23489
23490 SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23491 PyObject *resultobj = 0;
23492 wxPrintData *arg1 = 0 ;
23493 wxPostScriptDC *result = 0 ;
23494 void *argp1 = 0 ;
23495 int res1 = 0 ;
23496 PyObject * obj0 = 0 ;
23497 char * kwnames[] = {
23498 (char *) "printData", NULL
23499 };
23500
23501 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
23502 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
23503 if (!SWIG_IsOK(res1)) {
23504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
23505 }
23506 if (!argp1) {
23507 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
23508 }
23509 arg1 = reinterpret_cast< wxPrintData * >(argp1);
23510 {
23511 if (!wxPyCheckForApp()) SWIG_fail;
23512 PyThreadState* __tstate = wxPyBeginAllowThreads();
23513 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
23514 wxPyEndAllowThreads(__tstate);
23515 if (PyErr_Occurred()) SWIG_fail;
23516 }
23517 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
23518 return resultobj;
23519 fail:
23520 return NULL;
23521 }
23522
23523
23524 SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23525 PyObject *resultobj = 0;
23526 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
23527 wxPrintData *result = 0 ;
23528 void *argp1 = 0 ;
23529 int res1 = 0 ;
23530 PyObject *swig_obj[1] ;
23531
23532 if (!args) SWIG_fail;
23533 swig_obj[0] = args;
23534 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
23535 if (!SWIG_IsOK(res1)) {
23536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
23537 }
23538 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
23539 {
23540 PyThreadState* __tstate = wxPyBeginAllowThreads();
23541 {
23542 wxPrintData &_result_ref = (arg1)->GetPrintData();
23543 result = (wxPrintData *) &_result_ref;
23544 }
23545 wxPyEndAllowThreads(__tstate);
23546 if (PyErr_Occurred()) SWIG_fail;
23547 }
23548 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
23549 return resultobj;
23550 fail:
23551 return NULL;
23552 }
23553
23554
23555 SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23556 PyObject *resultobj = 0;
23557 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
23558 wxPrintData *arg2 = 0 ;
23559 void *argp1 = 0 ;
23560 int res1 = 0 ;
23561 void *argp2 = 0 ;
23562 int res2 = 0 ;
23563 PyObject * obj0 = 0 ;
23564 PyObject * obj1 = 0 ;
23565 char * kwnames[] = {
23566 (char *) "self",(char *) "data", NULL
23567 };
23568
23569 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
23570 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
23571 if (!SWIG_IsOK(res1)) {
23572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
23573 }
23574 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
23575 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
23576 if (!SWIG_IsOK(res2)) {
23577 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
23578 }
23579 if (!argp2) {
23580 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
23581 }
23582 arg2 = reinterpret_cast< wxPrintData * >(argp2);
23583 {
23584 PyThreadState* __tstate = wxPyBeginAllowThreads();
23585 (arg1)->SetPrintData((wxPrintData const &)*arg2);
23586 wxPyEndAllowThreads(__tstate);
23587 if (PyErr_Occurred()) SWIG_fail;
23588 }
23589 resultobj = SWIG_Py_Void();
23590 return resultobj;
23591 fail:
23592 return NULL;
23593 }
23594
23595
23596 SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23597 PyObject *resultobj = 0;
23598 int arg1 ;
23599 int val1 ;
23600 int ecode1 = 0 ;
23601 PyObject * obj0 = 0 ;
23602 char * kwnames[] = {
23603 (char *) "ppi", NULL
23604 };
23605
23606 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
23607 ecode1 = SWIG_AsVal_int(obj0, &val1);
23608 if (!SWIG_IsOK(ecode1)) {
23609 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
23610 }
23611 arg1 = static_cast< int >(val1);
23612 {
23613 PyThreadState* __tstate = wxPyBeginAllowThreads();
23614 wxPostScriptDC::SetResolution(arg1);
23615 wxPyEndAllowThreads(__tstate);
23616 if (PyErr_Occurred()) SWIG_fail;
23617 }
23618 resultobj = SWIG_Py_Void();
23619 return resultobj;
23620 fail:
23621 return NULL;
23622 }
23623
23624
23625 SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23626 PyObject *resultobj = 0;
23627 int result;
23628
23629 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
23630 {
23631 PyThreadState* __tstate = wxPyBeginAllowThreads();
23632 result = (int)wxPostScriptDC::GetResolution();
23633 wxPyEndAllowThreads(__tstate);
23634 if (PyErr_Occurred()) SWIG_fail;
23635 }
23636 resultobj = SWIG_From_int(static_cast< int >(result));
23637 return resultobj;
23638 fail:
23639 return NULL;
23640 }
23641
23642
23643 SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23644 PyObject *obj;
23645 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23646 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
23647 return SWIG_Py_Void();
23648 }
23649
23650 SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23651 return SWIG_Python_InitShadowInstance(args);
23652 }
23653
23654 SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23655 PyObject *resultobj = 0;
23656 wxString const &arg1_defvalue = wxPyEmptyString ;
23657 wxString *arg1 = (wxString *) &arg1_defvalue ;
23658 wxMetaFile *result = 0 ;
23659 bool temp1 = false ;
23660 PyObject * obj0 = 0 ;
23661 char * kwnames[] = {
23662 (char *) "filename", NULL
23663 };
23664
23665 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
23666 if (obj0) {
23667 {
23668 arg1 = wxString_in_helper(obj0);
23669 if (arg1 == NULL) SWIG_fail;
23670 temp1 = true;
23671 }
23672 }
23673 {
23674 if (!wxPyCheckForApp()) SWIG_fail;
23675 PyThreadState* __tstate = wxPyBeginAllowThreads();
23676 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
23677 wxPyEndAllowThreads(__tstate);
23678 if (PyErr_Occurred()) SWIG_fail;
23679 }
23680 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
23681 {
23682 if (temp1)
23683 delete arg1;
23684 }
23685 return resultobj;
23686 fail:
23687 {
23688 if (temp1)
23689 delete arg1;
23690 }
23691 return NULL;
23692 }
23693
23694
23695 SWIGINTERN PyObject *_wrap_delete_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23696 PyObject *resultobj = 0;
23697 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
23698 void *argp1 = 0 ;
23699 int res1 = 0 ;
23700 PyObject *swig_obj[1] ;
23701
23702 if (!args) SWIG_fail;
23703 swig_obj[0] = args;
23704 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, SWIG_POINTER_DISOWN | 0 );
23705 if (!SWIG_IsOK(res1)) {
23706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MetaFile" "', expected argument " "1"" of type '" "wxMetaFile *""'");
23707 }
23708 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
23709 {
23710 PyThreadState* __tstate = wxPyBeginAllowThreads();
23711 delete arg1;
23712
23713 wxPyEndAllowThreads(__tstate);
23714 if (PyErr_Occurred()) SWIG_fail;
23715 }
23716 resultobj = SWIG_Py_Void();
23717 return resultobj;
23718 fail:
23719 return NULL;
23720 }
23721
23722
23723 SWIGINTERN PyObject *_wrap_MetaFile_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23724 PyObject *resultobj = 0;
23725 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
23726 bool result;
23727 void *argp1 = 0 ;
23728 int res1 = 0 ;
23729 PyObject *swig_obj[1] ;
23730
23731 if (!args) SWIG_fail;
23732 swig_obj[0] = args;
23733 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
23734 if (!SWIG_IsOK(res1)) {
23735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_Ok" "', expected argument " "1"" of type '" "wxMetaFile *""'");
23736 }
23737 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
23738 {
23739 PyThreadState* __tstate = wxPyBeginAllowThreads();
23740 result = (bool)(arg1)->Ok();
23741 wxPyEndAllowThreads(__tstate);
23742 if (PyErr_Occurred()) SWIG_fail;
23743 }
23744 {
23745 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23746 }
23747 return resultobj;
23748 fail:
23749 return NULL;
23750 }
23751
23752
23753 SWIGINTERN PyObject *_wrap_MetaFile_SetClipboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23754 PyObject *resultobj = 0;
23755 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
23756 int arg2 = (int) 0 ;
23757 int arg3 = (int) 0 ;
23758 bool result;
23759 void *argp1 = 0 ;
23760 int res1 = 0 ;
23761 int val2 ;
23762 int ecode2 = 0 ;
23763 int val3 ;
23764 int ecode3 = 0 ;
23765 PyObject * obj0 = 0 ;
23766 PyObject * obj1 = 0 ;
23767 PyObject * obj2 = 0 ;
23768 char * kwnames[] = {
23769 (char *) "self",(char *) "width",(char *) "height", NULL
23770 };
23771
23772 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23773 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
23774 if (!SWIG_IsOK(res1)) {
23775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_SetClipboard" "', expected argument " "1"" of type '" "wxMetaFile *""'");
23776 }
23777 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
23778 if (obj1) {
23779 ecode2 = SWIG_AsVal_int(obj1, &val2);
23780 if (!SWIG_IsOK(ecode2)) {
23781 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MetaFile_SetClipboard" "', expected argument " "2"" of type '" "int""'");
23782 }
23783 arg2 = static_cast< int >(val2);
23784 }
23785 if (obj2) {
23786 ecode3 = SWIG_AsVal_int(obj2, &val3);
23787 if (!SWIG_IsOK(ecode3)) {
23788 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MetaFile_SetClipboard" "', expected argument " "3"" of type '" "int""'");
23789 }
23790 arg3 = static_cast< int >(val3);
23791 }
23792 {
23793 PyThreadState* __tstate = wxPyBeginAllowThreads();
23794 result = (bool)(arg1)->SetClipboard(arg2,arg3);
23795 wxPyEndAllowThreads(__tstate);
23796 if (PyErr_Occurred()) SWIG_fail;
23797 }
23798 {
23799 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23800 }
23801 return resultobj;
23802 fail:
23803 return NULL;
23804 }
23805
23806
23807 SWIGINTERN PyObject *_wrap_MetaFile_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23808 PyObject *resultobj = 0;
23809 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
23810 wxSize result;
23811 void *argp1 = 0 ;
23812 int res1 = 0 ;
23813 PyObject *swig_obj[1] ;
23814
23815 if (!args) SWIG_fail;
23816 swig_obj[0] = args;
23817 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
23818 if (!SWIG_IsOK(res1)) {
23819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetSize" "', expected argument " "1"" of type '" "wxMetaFile *""'");
23820 }
23821 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
23822 {
23823 PyThreadState* __tstate = wxPyBeginAllowThreads();
23824 result = (arg1)->GetSize();
23825 wxPyEndAllowThreads(__tstate);
23826 if (PyErr_Occurred()) SWIG_fail;
23827 }
23828 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
23829 return resultobj;
23830 fail:
23831 return NULL;
23832 }
23833
23834
23835 SWIGINTERN PyObject *_wrap_MetaFile_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23836 PyObject *resultobj = 0;
23837 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
23838 int result;
23839 void *argp1 = 0 ;
23840 int res1 = 0 ;
23841 PyObject *swig_obj[1] ;
23842
23843 if (!args) SWIG_fail;
23844 swig_obj[0] = args;
23845 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
23846 if (!SWIG_IsOK(res1)) {
23847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetWidth" "', expected argument " "1"" of type '" "wxMetaFile *""'");
23848 }
23849 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
23850 {
23851 PyThreadState* __tstate = wxPyBeginAllowThreads();
23852 result = (int)(arg1)->GetWidth();
23853 wxPyEndAllowThreads(__tstate);
23854 if (PyErr_Occurred()) SWIG_fail;
23855 }
23856 resultobj = SWIG_From_int(static_cast< int >(result));
23857 return resultobj;
23858 fail:
23859 return NULL;
23860 }
23861
23862
23863 SWIGINTERN PyObject *_wrap_MetaFile_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23864 PyObject *resultobj = 0;
23865 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
23866 int result;
23867 void *argp1 = 0 ;
23868 int res1 = 0 ;
23869 PyObject *swig_obj[1] ;
23870
23871 if (!args) SWIG_fail;
23872 swig_obj[0] = args;
23873 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
23874 if (!SWIG_IsOK(res1)) {
23875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetHeight" "', expected argument " "1"" of type '" "wxMetaFile *""'");
23876 }
23877 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
23878 {
23879 PyThreadState* __tstate = wxPyBeginAllowThreads();
23880 result = (int)(arg1)->GetHeight();
23881 wxPyEndAllowThreads(__tstate);
23882 if (PyErr_Occurred()) SWIG_fail;
23883 }
23884 resultobj = SWIG_From_int(static_cast< int >(result));
23885 return resultobj;
23886 fail:
23887 return NULL;
23888 }
23889
23890
23891 SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23892 PyObject *obj;
23893 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23894 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
23895 return SWIG_Py_Void();
23896 }
23897
23898 SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23899 return SWIG_Python_InitShadowInstance(args);
23900 }
23901
23902 SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23903 PyObject *resultobj = 0;
23904 wxString const &arg1_defvalue = wxPyEmptyString ;
23905 wxString *arg1 = (wxString *) &arg1_defvalue ;
23906 int arg2 = (int) 0 ;
23907 int arg3 = (int) 0 ;
23908 wxString const &arg4_defvalue = wxPyEmptyString ;
23909 wxString *arg4 = (wxString *) &arg4_defvalue ;
23910 wxMetaFileDC *result = 0 ;
23911 bool temp1 = false ;
23912 int val2 ;
23913 int ecode2 = 0 ;
23914 int val3 ;
23915 int ecode3 = 0 ;
23916 bool temp4 = false ;
23917 PyObject * obj0 = 0 ;
23918 PyObject * obj1 = 0 ;
23919 PyObject * obj2 = 0 ;
23920 PyObject * obj3 = 0 ;
23921 char * kwnames[] = {
23922 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
23923 };
23924
23925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23926 if (obj0) {
23927 {
23928 arg1 = wxString_in_helper(obj0);
23929 if (arg1 == NULL) SWIG_fail;
23930 temp1 = true;
23931 }
23932 }
23933 if (obj1) {
23934 ecode2 = SWIG_AsVal_int(obj1, &val2);
23935 if (!SWIG_IsOK(ecode2)) {
23936 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
23937 }
23938 arg2 = static_cast< int >(val2);
23939 }
23940 if (obj2) {
23941 ecode3 = SWIG_AsVal_int(obj2, &val3);
23942 if (!SWIG_IsOK(ecode3)) {
23943 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
23944 }
23945 arg3 = static_cast< int >(val3);
23946 }
23947 if (obj3) {
23948 {
23949 arg4 = wxString_in_helper(obj3);
23950 if (arg4 == NULL) SWIG_fail;
23951 temp4 = true;
23952 }
23953 }
23954 {
23955 if (!wxPyCheckForApp()) SWIG_fail;
23956 PyThreadState* __tstate = wxPyBeginAllowThreads();
23957 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
23958 wxPyEndAllowThreads(__tstate);
23959 if (PyErr_Occurred()) SWIG_fail;
23960 }
23961 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
23962 {
23963 if (temp1)
23964 delete arg1;
23965 }
23966 {
23967 if (temp4)
23968 delete arg4;
23969 }
23970 return resultobj;
23971 fail:
23972 {
23973 if (temp1)
23974 delete arg1;
23975 }
23976 {
23977 if (temp4)
23978 delete arg4;
23979 }
23980 return NULL;
23981 }
23982
23983
23984 SWIGINTERN PyObject *_wrap_MetaFileDC_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23985 PyObject *resultobj = 0;
23986 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
23987 wxMetaFile *result = 0 ;
23988 void *argp1 = 0 ;
23989 int res1 = 0 ;
23990 PyObject *swig_obj[1] ;
23991
23992 if (!args) SWIG_fail;
23993 swig_obj[0] = args;
23994 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFileDC, 0 | 0 );
23995 if (!SWIG_IsOK(res1)) {
23996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFileDC_Close" "', expected argument " "1"" of type '" "wxMetaFileDC *""'");
23997 }
23998 arg1 = reinterpret_cast< wxMetaFileDC * >(argp1);
23999 {
24000 PyThreadState* __tstate = wxPyBeginAllowThreads();
24001 result = (wxMetaFile *)(arg1)->Close();
24002 wxPyEndAllowThreads(__tstate);
24003 if (PyErr_Occurred()) SWIG_fail;
24004 }
24005 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, 0 | 0 );
24006 return resultobj;
24007 fail:
24008 return NULL;
24009 }
24010
24011
24012 SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24013 PyObject *obj;
24014 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24015 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
24016 return SWIG_Py_Void();
24017 }
24018
24019 SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24020 return SWIG_Python_InitShadowInstance(args);
24021 }
24022
24023 SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24024 PyObject *resultobj = 0;
24025 wxPrintData *arg1 = 0 ;
24026 wxPrinterDC *result = 0 ;
24027 void *argp1 = 0 ;
24028 int res1 = 0 ;
24029 PyObject * obj0 = 0 ;
24030 char * kwnames[] = {
24031 (char *) "printData", NULL
24032 };
24033
24034 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
24035 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
24036 if (!SWIG_IsOK(res1)) {
24037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24038 }
24039 if (!argp1) {
24040 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24041 }
24042 arg1 = reinterpret_cast< wxPrintData * >(argp1);
24043 {
24044 if (!wxPyCheckForApp()) SWIG_fail;
24045 PyThreadState* __tstate = wxPyBeginAllowThreads();
24046 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
24047 wxPyEndAllowThreads(__tstate);
24048 if (PyErr_Occurred()) SWIG_fail;
24049 }
24050 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
24051 return resultobj;
24052 fail:
24053 return NULL;
24054 }
24055
24056
24057 SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24058 PyObject *obj;
24059 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24060 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
24061 return SWIG_Py_Void();
24062 }
24063
24064 SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24065 return SWIG_Python_InitShadowInstance(args);
24066 }
24067
24068 SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24069 PyObject *resultobj = 0;
24070 int arg1 ;
24071 int arg2 ;
24072 int arg3 = (int) true ;
24073 int arg4 = (int) 1 ;
24074 wxImageList *result = 0 ;
24075 int val1 ;
24076 int ecode1 = 0 ;
24077 int val2 ;
24078 int ecode2 = 0 ;
24079 int val3 ;
24080 int ecode3 = 0 ;
24081 int val4 ;
24082 int ecode4 = 0 ;
24083 PyObject * obj0 = 0 ;
24084 PyObject * obj1 = 0 ;
24085 PyObject * obj2 = 0 ;
24086 PyObject * obj3 = 0 ;
24087 char * kwnames[] = {
24088 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
24089 };
24090
24091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24092 ecode1 = SWIG_AsVal_int(obj0, &val1);
24093 if (!SWIG_IsOK(ecode1)) {
24094 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
24095 }
24096 arg1 = static_cast< int >(val1);
24097 ecode2 = SWIG_AsVal_int(obj1, &val2);
24098 if (!SWIG_IsOK(ecode2)) {
24099 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
24100 }
24101 arg2 = static_cast< int >(val2);
24102 if (obj2) {
24103 ecode3 = SWIG_AsVal_int(obj2, &val3);
24104 if (!SWIG_IsOK(ecode3)) {
24105 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
24106 }
24107 arg3 = static_cast< int >(val3);
24108 }
24109 if (obj3) {
24110 ecode4 = SWIG_AsVal_int(obj3, &val4);
24111 if (!SWIG_IsOK(ecode4)) {
24112 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
24113 }
24114 arg4 = static_cast< int >(val4);
24115 }
24116 {
24117 if (!wxPyCheckForApp()) SWIG_fail;
24118 PyThreadState* __tstate = wxPyBeginAllowThreads();
24119 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
24120 wxPyEndAllowThreads(__tstate);
24121 if (PyErr_Occurred()) SWIG_fail;
24122 }
24123 {
24124 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW);
24125 }
24126 return resultobj;
24127 fail:
24128 return NULL;
24129 }
24130
24131
24132 SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24133 PyObject *resultobj = 0;
24134 wxImageList *arg1 = (wxImageList *) 0 ;
24135 void *argp1 = 0 ;
24136 int res1 = 0 ;
24137 PyObject *swig_obj[1] ;
24138
24139 if (!args) SWIG_fail;
24140 swig_obj[0] = args;
24141 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
24142 if (!SWIG_IsOK(res1)) {
24143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
24144 }
24145 arg1 = reinterpret_cast< wxImageList * >(argp1);
24146 {
24147 PyThreadState* __tstate = wxPyBeginAllowThreads();
24148 delete arg1;
24149
24150 wxPyEndAllowThreads(__tstate);
24151 if (PyErr_Occurred()) SWIG_fail;
24152 }
24153 resultobj = SWIG_Py_Void();
24154 return resultobj;
24155 fail:
24156 return NULL;
24157 }
24158
24159
24160 SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24161 PyObject *resultobj = 0;
24162 wxImageList *arg1 = (wxImageList *) 0 ;
24163 wxBitmap *arg2 = 0 ;
24164 wxBitmap const &arg3_defvalue = wxNullBitmap ;
24165 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
24166 int result;
24167 void *argp1 = 0 ;
24168 int res1 = 0 ;
24169 void *argp2 = 0 ;
24170 int res2 = 0 ;
24171 void *argp3 = 0 ;
24172 int res3 = 0 ;
24173 PyObject * obj0 = 0 ;
24174 PyObject * obj1 = 0 ;
24175 PyObject * obj2 = 0 ;
24176 char * kwnames[] = {
24177 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
24178 };
24179
24180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24181 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
24182 if (!SWIG_IsOK(res1)) {
24183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
24184 }
24185 arg1 = reinterpret_cast< wxImageList * >(argp1);
24186 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
24187 if (!SWIG_IsOK(res2)) {
24188 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24189 }
24190 if (!argp2) {
24191 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24192 }
24193 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24194 if (obj2) {
24195 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
24196 if (!SWIG_IsOK(res3)) {
24197 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
24198 }
24199 if (!argp3) {
24200 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
24201 }
24202 arg3 = reinterpret_cast< wxBitmap * >(argp3);
24203 }
24204 {
24205 PyThreadState* __tstate = wxPyBeginAllowThreads();
24206 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
24207 wxPyEndAllowThreads(__tstate);
24208 if (PyErr_Occurred()) SWIG_fail;
24209 }
24210 resultobj = SWIG_From_int(static_cast< int >(result));
24211 return resultobj;
24212 fail:
24213 return NULL;
24214 }
24215
24216
24217 SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24218 PyObject *resultobj = 0;
24219 wxImageList *arg1 = (wxImageList *) 0 ;
24220 wxBitmap *arg2 = 0 ;
24221 wxColour *arg3 = 0 ;
24222 int result;
24223 void *argp1 = 0 ;
24224 int res1 = 0 ;
24225 void *argp2 = 0 ;
24226 int res2 = 0 ;
24227 wxColour temp3 ;
24228 PyObject * obj0 = 0 ;
24229 PyObject * obj1 = 0 ;
24230 PyObject * obj2 = 0 ;
24231 char * kwnames[] = {
24232 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
24233 };
24234
24235 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24236 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
24237 if (!SWIG_IsOK(res1)) {
24238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
24239 }
24240 arg1 = reinterpret_cast< wxImageList * >(argp1);
24241 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
24242 if (!SWIG_IsOK(res2)) {
24243 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24244 }
24245 if (!argp2) {
24246 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24247 }
24248 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24249 {
24250 arg3 = &temp3;
24251 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
24252 }
24253 {
24254 PyThreadState* __tstate = wxPyBeginAllowThreads();
24255 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
24256 wxPyEndAllowThreads(__tstate);
24257 if (PyErr_Occurred()) SWIG_fail;
24258 }
24259 resultobj = SWIG_From_int(static_cast< int >(result));
24260 return resultobj;
24261 fail:
24262 return NULL;
24263 }
24264
24265
24266 SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24267 PyObject *resultobj = 0;
24268 wxImageList *arg1 = (wxImageList *) 0 ;
24269 wxIcon *arg2 = 0 ;
24270 int result;
24271 void *argp1 = 0 ;
24272 int res1 = 0 ;
24273 void *argp2 = 0 ;
24274 int res2 = 0 ;
24275 PyObject * obj0 = 0 ;
24276 PyObject * obj1 = 0 ;
24277 char * kwnames[] = {
24278 (char *) "self",(char *) "icon", NULL
24279 };
24280
24281 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
24282 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
24283 if (!SWIG_IsOK(res1)) {
24284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
24285 }
24286 arg1 = reinterpret_cast< wxImageList * >(argp1);
24287 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
24288 if (!SWIG_IsOK(res2)) {
24289 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
24290 }
24291 if (!argp2) {
24292 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
24293 }
24294 arg2 = reinterpret_cast< wxIcon * >(argp2);
24295 {
24296 PyThreadState* __tstate = wxPyBeginAllowThreads();
24297 result = (int)(arg1)->Add((wxIcon const &)*arg2);
24298 wxPyEndAllowThreads(__tstate);
24299 if (PyErr_Occurred()) SWIG_fail;
24300 }
24301 resultobj = SWIG_From_int(static_cast< int >(result));
24302 return resultobj;
24303 fail:
24304 return NULL;
24305 }
24306
24307
24308 SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24309 PyObject *resultobj = 0;
24310 wxImageList *arg1 = (wxImageList *) 0 ;
24311 int arg2 ;
24312 SwigValueWrapper<wxBitmap > result;
24313 void *argp1 = 0 ;
24314 int res1 = 0 ;
24315 int val2 ;
24316 int ecode2 = 0 ;
24317 PyObject * obj0 = 0 ;
24318 PyObject * obj1 = 0 ;
24319 char * kwnames[] = {
24320 (char *) "self",(char *) "index", NULL
24321 };
24322
24323 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
24324 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
24325 if (!SWIG_IsOK(res1)) {
24326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
24327 }
24328 arg1 = reinterpret_cast< wxImageList * >(argp1);
24329 ecode2 = SWIG_AsVal_int(obj1, &val2);
24330 if (!SWIG_IsOK(ecode2)) {
24331 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
24332 }
24333 arg2 = static_cast< int >(val2);
24334 {
24335 PyThreadState* __tstate = wxPyBeginAllowThreads();
24336 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
24337 wxPyEndAllowThreads(__tstate);
24338 if (PyErr_Occurred()) SWIG_fail;
24339 }
24340 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
24341 return resultobj;
24342 fail:
24343 return NULL;
24344 }
24345
24346
24347 SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24348 PyObject *resultobj = 0;
24349 wxImageList *arg1 = (wxImageList *) 0 ;
24350 int arg2 ;
24351 wxIcon result;
24352 void *argp1 = 0 ;
24353 int res1 = 0 ;
24354 int val2 ;
24355 int ecode2 = 0 ;
24356 PyObject * obj0 = 0 ;
24357 PyObject * obj1 = 0 ;
24358 char * kwnames[] = {
24359 (char *) "self",(char *) "index", NULL
24360 };
24361
24362 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
24363 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
24364 if (!SWIG_IsOK(res1)) {
24365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
24366 }
24367 arg1 = reinterpret_cast< wxImageList * >(argp1);
24368 ecode2 = SWIG_AsVal_int(obj1, &val2);
24369 if (!SWIG_IsOK(ecode2)) {
24370 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
24371 }
24372 arg2 = static_cast< int >(val2);
24373 {
24374 PyThreadState* __tstate = wxPyBeginAllowThreads();
24375 result = ((wxImageList const *)arg1)->GetIcon(arg2);
24376 wxPyEndAllowThreads(__tstate);
24377 if (PyErr_Occurred()) SWIG_fail;
24378 }
24379 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
24380 return resultobj;
24381 fail:
24382 return NULL;
24383 }
24384
24385
24386 SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24387 PyObject *resultobj = 0;
24388 wxImageList *arg1 = (wxImageList *) 0 ;
24389 int arg2 ;
24390 wxBitmap *arg3 = 0 ;
24391 wxBitmap const &arg4_defvalue = wxNullBitmap ;
24392 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
24393 bool result;
24394 void *argp1 = 0 ;
24395 int res1 = 0 ;
24396 int val2 ;
24397 int ecode2 = 0 ;
24398 void *argp3 = 0 ;
24399 int res3 = 0 ;
24400 void *argp4 = 0 ;
24401 int res4 = 0 ;
24402 PyObject * obj0 = 0 ;
24403 PyObject * obj1 = 0 ;
24404 PyObject * obj2 = 0 ;
24405 PyObject * obj3 = 0 ;
24406 char * kwnames[] = {
24407 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
24408 };
24409
24410 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24411 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
24412 if (!SWIG_IsOK(res1)) {
24413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
24414 }
24415 arg1 = reinterpret_cast< wxImageList * >(argp1);
24416 ecode2 = SWIG_AsVal_int(obj1, &val2);
24417 if (!SWIG_IsOK(ecode2)) {
24418 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
24419 }
24420 arg2 = static_cast< int >(val2);
24421 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
24422 if (!SWIG_IsOK(res3)) {
24423 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
24424 }
24425 if (!argp3) {
24426 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
24427 }
24428 arg3 = reinterpret_cast< wxBitmap * >(argp3);
24429 if (obj3) {
24430 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
24431 if (!SWIG_IsOK(res4)) {
24432 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
24433 }
24434 if (!argp4) {
24435 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
24436 }
24437 arg4 = reinterpret_cast< wxBitmap * >(argp4);
24438 }
24439 {
24440 PyThreadState* __tstate = wxPyBeginAllowThreads();
24441 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
24442 wxPyEndAllowThreads(__tstate);
24443 if (PyErr_Occurred()) SWIG_fail;
24444 }
24445 {
24446 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24447 }
24448 return resultobj;
24449 fail:
24450 return NULL;
24451 }
24452
24453
24454 SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24455 PyObject *resultobj = 0;
24456 wxImageList *arg1 = (wxImageList *) 0 ;
24457 int arg2 ;
24458 wxDC *arg3 = 0 ;
24459 int arg4 ;
24460 int arg5 ;
24461 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
24462 bool arg7 = (bool) (bool)false ;
24463 bool result;
24464 void *argp1 = 0 ;
24465 int res1 = 0 ;
24466 int val2 ;
24467 int ecode2 = 0 ;
24468 void *argp3 = 0 ;
24469 int res3 = 0 ;
24470 int val4 ;
24471 int ecode4 = 0 ;
24472 int val5 ;
24473 int ecode5 = 0 ;
24474 int val6 ;
24475 int ecode6 = 0 ;
24476 bool val7 ;
24477 int ecode7 = 0 ;
24478 PyObject * obj0 = 0 ;
24479 PyObject * obj1 = 0 ;
24480 PyObject * obj2 = 0 ;
24481 PyObject * obj3 = 0 ;
24482 PyObject * obj4 = 0 ;
24483 PyObject * obj5 = 0 ;
24484 PyObject * obj6 = 0 ;
24485 char * kwnames[] = {
24486 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
24487 };
24488
24489 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
24490 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
24491 if (!SWIG_IsOK(res1)) {
24492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
24493 }
24494 arg1 = reinterpret_cast< wxImageList * >(argp1);
24495 ecode2 = SWIG_AsVal_int(obj1, &val2);
24496 if (!SWIG_IsOK(ecode2)) {
24497 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
24498 }
24499 arg2 = static_cast< int >(val2);
24500 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24501 if (!SWIG_IsOK(res3)) {
24502 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
24503 }
24504 if (!argp3) {
24505 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
24506 }
24507 arg3 = reinterpret_cast< wxDC * >(argp3);
24508 ecode4 = SWIG_AsVal_int(obj3, &val4);
24509 if (!SWIG_IsOK(ecode4)) {
24510 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
24511 }
24512 arg4 = static_cast< int >(val4);
24513 ecode5 = SWIG_AsVal_int(obj4, &val5);
24514 if (!SWIG_IsOK(ecode5)) {
24515 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
24516 }
24517 arg5 = static_cast< int >(val5);
24518 if (obj5) {
24519 ecode6 = SWIG_AsVal_int(obj5, &val6);
24520 if (!SWIG_IsOK(ecode6)) {
24521 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
24522 }
24523 arg6 = static_cast< int >(val6);
24524 }
24525 if (obj6) {
24526 ecode7 = SWIG_AsVal_bool(obj6, &val7);
24527 if (!SWIG_IsOK(ecode7)) {
24528 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
24529 }
24530 arg7 = static_cast< bool >(val7);
24531 }
24532 {
24533 PyThreadState* __tstate = wxPyBeginAllowThreads();
24534 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
24535 wxPyEndAllowThreads(__tstate);
24536 if (PyErr_Occurred()) SWIG_fail;
24537 }
24538 {
24539 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24540 }
24541 return resultobj;
24542 fail:
24543 return NULL;
24544 }
24545
24546
24547 SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24548 PyObject *resultobj = 0;
24549 wxImageList *arg1 = (wxImageList *) 0 ;
24550 int result;
24551 void *argp1 = 0 ;
24552 int res1 = 0 ;
24553 PyObject *swig_obj[1] ;
24554
24555 if (!args) SWIG_fail;
24556 swig_obj[0] = args;
24557 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
24558 if (!SWIG_IsOK(res1)) {
24559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
24560 }
24561 arg1 = reinterpret_cast< wxImageList * >(argp1);
24562 {
24563 PyThreadState* __tstate = wxPyBeginAllowThreads();
24564 result = (int)(arg1)->GetImageCount();
24565 wxPyEndAllowThreads(__tstate);
24566 if (PyErr_Occurred()) SWIG_fail;
24567 }
24568 resultobj = SWIG_From_int(static_cast< int >(result));
24569 return resultobj;
24570 fail:
24571 return NULL;
24572 }
24573
24574
24575 SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24576 PyObject *resultobj = 0;
24577 wxImageList *arg1 = (wxImageList *) 0 ;
24578 int arg2 ;
24579 bool result;
24580 void *argp1 = 0 ;
24581 int res1 = 0 ;
24582 int val2 ;
24583 int ecode2 = 0 ;
24584 PyObject * obj0 = 0 ;
24585 PyObject * obj1 = 0 ;
24586 char * kwnames[] = {
24587 (char *) "self",(char *) "index", NULL
24588 };
24589
24590 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
24591 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
24592 if (!SWIG_IsOK(res1)) {
24593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
24594 }
24595 arg1 = reinterpret_cast< wxImageList * >(argp1);
24596 ecode2 = SWIG_AsVal_int(obj1, &val2);
24597 if (!SWIG_IsOK(ecode2)) {
24598 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
24599 }
24600 arg2 = static_cast< int >(val2);
24601 {
24602 PyThreadState* __tstate = wxPyBeginAllowThreads();
24603 result = (bool)(arg1)->Remove(arg2);
24604 wxPyEndAllowThreads(__tstate);
24605 if (PyErr_Occurred()) SWIG_fail;
24606 }
24607 {
24608 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24609 }
24610 return resultobj;
24611 fail:
24612 return NULL;
24613 }
24614
24615
24616 SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24617 PyObject *resultobj = 0;
24618 wxImageList *arg1 = (wxImageList *) 0 ;
24619 bool result;
24620 void *argp1 = 0 ;
24621 int res1 = 0 ;
24622 PyObject *swig_obj[1] ;
24623
24624 if (!args) SWIG_fail;
24625 swig_obj[0] = args;
24626 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
24627 if (!SWIG_IsOK(res1)) {
24628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
24629 }
24630 arg1 = reinterpret_cast< wxImageList * >(argp1);
24631 {
24632 PyThreadState* __tstate = wxPyBeginAllowThreads();
24633 result = (bool)(arg1)->RemoveAll();
24634 wxPyEndAllowThreads(__tstate);
24635 if (PyErr_Occurred()) SWIG_fail;
24636 }
24637 {
24638 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24639 }
24640 return resultobj;
24641 fail:
24642 return NULL;
24643 }
24644
24645
24646 SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24647 PyObject *resultobj = 0;
24648 wxImageList *arg1 = (wxImageList *) 0 ;
24649 int arg2 ;
24650 int *arg3 = 0 ;
24651 int *arg4 = 0 ;
24652 void *argp1 = 0 ;
24653 int res1 = 0 ;
24654 int val2 ;
24655 int ecode2 = 0 ;
24656 int temp3 ;
24657 int res3 = SWIG_TMPOBJ ;
24658 int temp4 ;
24659 int res4 = SWIG_TMPOBJ ;
24660 PyObject * obj0 = 0 ;
24661 PyObject * obj1 = 0 ;
24662 char * kwnames[] = {
24663 (char *) "self",(char *) "index", NULL
24664 };
24665
24666 arg3 = &temp3;
24667 arg4 = &temp4;
24668 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
24669 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
24670 if (!SWIG_IsOK(res1)) {
24671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
24672 }
24673 arg1 = reinterpret_cast< wxImageList * >(argp1);
24674 ecode2 = SWIG_AsVal_int(obj1, &val2);
24675 if (!SWIG_IsOK(ecode2)) {
24676 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
24677 }
24678 arg2 = static_cast< int >(val2);
24679 {
24680 PyThreadState* __tstate = wxPyBeginAllowThreads();
24681 (arg1)->GetSize(arg2,*arg3,*arg4);
24682 wxPyEndAllowThreads(__tstate);
24683 if (PyErr_Occurred()) SWIG_fail;
24684 }
24685 resultobj = SWIG_Py_Void();
24686 if (SWIG_IsTmpObj(res3)) {
24687 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
24688 } else {
24689 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
24690 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
24691 }
24692 if (SWIG_IsTmpObj(res4)) {
24693 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
24694 } else {
24695 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
24696 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
24697 }
24698 return resultobj;
24699 fail:
24700 return NULL;
24701 }
24702
24703
24704 SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24705 PyObject *obj;
24706 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24707 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
24708 return SWIG_Py_Void();
24709 }
24710
24711 SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24712 return SWIG_Python_InitShadowInstance(args);
24713 }
24714
24715 SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24716 PyObject *resultobj = 0;
24717 wxStockGDI *result = 0 ;
24718
24719 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
24720 {
24721 PyThreadState* __tstate = wxPyBeginAllowThreads();
24722 result = (wxStockGDI *)new wxStockGDI();
24723 wxPyEndAllowThreads(__tstate);
24724 if (PyErr_Occurred()) SWIG_fail;
24725 }
24726 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
24727 return resultobj;
24728 fail:
24729 return NULL;
24730 }
24731
24732
24733 SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24734 PyObject *resultobj = 0;
24735 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
24736 void *argp1 = 0 ;
24737 int res1 = 0 ;
24738 PyObject *swig_obj[1] ;
24739
24740 if (!args) SWIG_fail;
24741 swig_obj[0] = args;
24742 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
24743 if (!SWIG_IsOK(res1)) {
24744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
24745 }
24746 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
24747 {
24748 PyThreadState* __tstate = wxPyBeginAllowThreads();
24749 delete arg1;
24750
24751 wxPyEndAllowThreads(__tstate);
24752 if (PyErr_Occurred()) SWIG_fail;
24753 }
24754 resultobj = SWIG_Py_Void();
24755 return resultobj;
24756 fail:
24757 return NULL;
24758 }
24759
24760
24761 SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24762 PyObject *resultobj = 0;
24763
24764 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
24765 {
24766 PyThreadState* __tstate = wxPyBeginAllowThreads();
24767 wxStockGDI::DeleteAll();
24768 wxPyEndAllowThreads(__tstate);
24769 if (PyErr_Occurred()) SWIG_fail;
24770 }
24771 resultobj = SWIG_Py_Void();
24772 return resultobj;
24773 fail:
24774 return NULL;
24775 }
24776
24777
24778 SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24779 PyObject *resultobj = 0;
24780 wxStockGDI *result = 0 ;
24781
24782 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
24783 {
24784 PyThreadState* __tstate = wxPyBeginAllowThreads();
24785 {
24786 wxStockGDI &_result_ref = wxStockGDI::instance();
24787 result = (wxStockGDI *) &_result_ref;
24788 }
24789 wxPyEndAllowThreads(__tstate);
24790 if (PyErr_Occurred()) SWIG_fail;
24791 }
24792 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
24793 return resultobj;
24794 fail:
24795 return NULL;
24796 }
24797
24798
24799 SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24800 PyObject *resultobj = 0;
24801 wxStockGDI::Item arg1 ;
24802 wxBrush *result = 0 ;
24803 int val1 ;
24804 int ecode1 = 0 ;
24805 PyObject * obj0 = 0 ;
24806 char * kwnames[] = {
24807 (char *) "item", NULL
24808 };
24809
24810 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
24811 ecode1 = SWIG_AsVal_int(obj0, &val1);
24812 if (!SWIG_IsOK(ecode1)) {
24813 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
24814 }
24815 arg1 = static_cast< wxStockGDI::Item >(val1);
24816 {
24817 PyThreadState* __tstate = wxPyBeginAllowThreads();
24818 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
24819 wxPyEndAllowThreads(__tstate);
24820 if (PyErr_Occurred()) SWIG_fail;
24821 }
24822 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
24823 return resultobj;
24824 fail:
24825 return NULL;
24826 }
24827
24828
24829 SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24830 PyObject *resultobj = 0;
24831 wxStockGDI::Item arg1 ;
24832 wxColour *result = 0 ;
24833 int val1 ;
24834 int ecode1 = 0 ;
24835 PyObject * obj0 = 0 ;
24836 char * kwnames[] = {
24837 (char *) "item", NULL
24838 };
24839
24840 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
24841 ecode1 = SWIG_AsVal_int(obj0, &val1);
24842 if (!SWIG_IsOK(ecode1)) {
24843 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
24844 }
24845 arg1 = static_cast< wxStockGDI::Item >(val1);
24846 {
24847 PyThreadState* __tstate = wxPyBeginAllowThreads();
24848 result = (wxColour *)wxStockGDI::GetColour(arg1);
24849 wxPyEndAllowThreads(__tstate);
24850 if (PyErr_Occurred()) SWIG_fail;
24851 }
24852 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
24853 return resultobj;
24854 fail:
24855 return NULL;
24856 }
24857
24858
24859 SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24860 PyObject *resultobj = 0;
24861 wxStockGDI::Item arg1 ;
24862 wxCursor *result = 0 ;
24863 int val1 ;
24864 int ecode1 = 0 ;
24865 PyObject * obj0 = 0 ;
24866 char * kwnames[] = {
24867 (char *) "item", NULL
24868 };
24869
24870 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
24871 ecode1 = SWIG_AsVal_int(obj0, &val1);
24872 if (!SWIG_IsOK(ecode1)) {
24873 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
24874 }
24875 arg1 = static_cast< wxStockGDI::Item >(val1);
24876 {
24877 PyThreadState* __tstate = wxPyBeginAllowThreads();
24878 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
24879 wxPyEndAllowThreads(__tstate);
24880 if (PyErr_Occurred()) SWIG_fail;
24881 }
24882 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
24883 return resultobj;
24884 fail:
24885 return NULL;
24886 }
24887
24888
24889 SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24890 PyObject *resultobj = 0;
24891 wxStockGDI::Item arg1 ;
24892 wxPen *result = 0 ;
24893 int val1 ;
24894 int ecode1 = 0 ;
24895 PyObject * obj0 = 0 ;
24896 char * kwnames[] = {
24897 (char *) "item", NULL
24898 };
24899
24900 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
24901 ecode1 = SWIG_AsVal_int(obj0, &val1);
24902 if (!SWIG_IsOK(ecode1)) {
24903 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
24904 }
24905 arg1 = static_cast< wxStockGDI::Item >(val1);
24906 {
24907 PyThreadState* __tstate = wxPyBeginAllowThreads();
24908 result = (wxPen *)wxStockGDI::GetPen(arg1);
24909 wxPyEndAllowThreads(__tstate);
24910 if (PyErr_Occurred()) SWIG_fail;
24911 }
24912 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
24913 return resultobj;
24914 fail:
24915 return NULL;
24916 }
24917
24918
24919 SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24920 PyObject *resultobj = 0;
24921 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
24922 wxStockGDI::Item arg2 ;
24923 wxFont *result = 0 ;
24924 void *argp1 = 0 ;
24925 int res1 = 0 ;
24926 int val2 ;
24927 int ecode2 = 0 ;
24928 PyObject * obj0 = 0 ;
24929 PyObject * obj1 = 0 ;
24930 char * kwnames[] = {
24931 (char *) "self",(char *) "item", NULL
24932 };
24933
24934 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
24935 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
24936 if (!SWIG_IsOK(res1)) {
24937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
24938 }
24939 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
24940 ecode2 = SWIG_AsVal_int(obj1, &val2);
24941 if (!SWIG_IsOK(ecode2)) {
24942 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
24943 }
24944 arg2 = static_cast< wxStockGDI::Item >(val2);
24945 {
24946 PyThreadState* __tstate = wxPyBeginAllowThreads();
24947 result = (wxFont *)(arg1)->GetFont(arg2);
24948 wxPyEndAllowThreads(__tstate);
24949 if (PyErr_Occurred()) SWIG_fail;
24950 }
24951 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
24952 return resultobj;
24953 fail:
24954 return NULL;
24955 }
24956
24957
24958 SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24959 PyObject *obj;
24960 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24961 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
24962 return SWIG_Py_Void();
24963 }
24964
24965 SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24966 return SWIG_Python_InitShadowInstance(args);
24967 }
24968
24969 SWIGINTERN int NullBitmap_set(PyObject *) {
24970 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
24971 return 1;
24972 }
24973
24974
24975 SWIGINTERN PyObject *NullBitmap_get(void) {
24976 PyObject *pyobj = 0;
24977
24978 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
24979 return pyobj;
24980 }
24981
24982
24983 SWIGINTERN int NullIcon_set(PyObject *) {
24984 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
24985 return 1;
24986 }
24987
24988
24989 SWIGINTERN PyObject *NullIcon_get(void) {
24990 PyObject *pyobj = 0;
24991
24992 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
24993 return pyobj;
24994 }
24995
24996
24997 SWIGINTERN int NullCursor_set(PyObject *) {
24998 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
24999 return 1;
25000 }
25001
25002
25003 SWIGINTERN PyObject *NullCursor_get(void) {
25004 PyObject *pyobj = 0;
25005
25006 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
25007 return pyobj;
25008 }
25009
25010
25011 SWIGINTERN int NullPen_set(PyObject *) {
25012 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
25013 return 1;
25014 }
25015
25016
25017 SWIGINTERN PyObject *NullPen_get(void) {
25018 PyObject *pyobj = 0;
25019
25020 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
25021 return pyobj;
25022 }
25023
25024
25025 SWIGINTERN int NullBrush_set(PyObject *) {
25026 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
25027 return 1;
25028 }
25029
25030
25031 SWIGINTERN PyObject *NullBrush_get(void) {
25032 PyObject *pyobj = 0;
25033
25034 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
25035 return pyobj;
25036 }
25037
25038
25039 SWIGINTERN int NullPalette_set(PyObject *) {
25040 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
25041 return 1;
25042 }
25043
25044
25045 SWIGINTERN PyObject *NullPalette_get(void) {
25046 PyObject *pyobj = 0;
25047
25048 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
25049 return pyobj;
25050 }
25051
25052
25053 SWIGINTERN int NullFont_set(PyObject *) {
25054 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
25055 return 1;
25056 }
25057
25058
25059 SWIGINTERN PyObject *NullFont_get(void) {
25060 PyObject *pyobj = 0;
25061
25062 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
25063 return pyobj;
25064 }
25065
25066
25067 SWIGINTERN int NullColour_set(PyObject *) {
25068 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
25069 return 1;
25070 }
25071
25072
25073 SWIGINTERN PyObject *NullColour_get(void) {
25074 PyObject *pyobj = 0;
25075
25076 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
25077 return pyobj;
25078 }
25079
25080
25081 SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25082 PyObject *resultobj = 0;
25083 wxGDIObjListBase *result = 0 ;
25084
25085 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
25086 {
25087 PyThreadState* __tstate = wxPyBeginAllowThreads();
25088 result = (wxGDIObjListBase *)new wxGDIObjListBase();
25089 wxPyEndAllowThreads(__tstate);
25090 if (PyErr_Occurred()) SWIG_fail;
25091 }
25092 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
25093 return resultobj;
25094 fail:
25095 return NULL;
25096 }
25097
25098
25099 SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25100 PyObject *resultobj = 0;
25101 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
25102 void *argp1 = 0 ;
25103 int res1 = 0 ;
25104 PyObject *swig_obj[1] ;
25105
25106 if (!args) SWIG_fail;
25107 swig_obj[0] = args;
25108 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
25109 if (!SWIG_IsOK(res1)) {
25110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
25111 }
25112 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
25113 {
25114 PyThreadState* __tstate = wxPyBeginAllowThreads();
25115 delete arg1;
25116
25117 wxPyEndAllowThreads(__tstate);
25118 if (PyErr_Occurred()) SWIG_fail;
25119 }
25120 resultobj = SWIG_Py_Void();
25121 return resultobj;
25122 fail:
25123 return NULL;
25124 }
25125
25126
25127 SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25128 PyObject *obj;
25129 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25130 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
25131 return SWIG_Py_Void();
25132 }
25133
25134 SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25135 return SWIG_Python_InitShadowInstance(args);
25136 }
25137
25138 SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25139 PyObject *resultobj = 0;
25140 wxPenList *arg1 = (wxPenList *) 0 ;
25141 wxColour *arg2 = 0 ;
25142 int arg3 ;
25143 int arg4 ;
25144 wxPen *result = 0 ;
25145 void *argp1 = 0 ;
25146 int res1 = 0 ;
25147 wxColour temp2 ;
25148 int val3 ;
25149 int ecode3 = 0 ;
25150 int val4 ;
25151 int ecode4 = 0 ;
25152 PyObject * obj0 = 0 ;
25153 PyObject * obj1 = 0 ;
25154 PyObject * obj2 = 0 ;
25155 PyObject * obj3 = 0 ;
25156 char * kwnames[] = {
25157 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
25158 };
25159
25160 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25161 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
25162 if (!SWIG_IsOK(res1)) {
25163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
25164 }
25165 arg1 = reinterpret_cast< wxPenList * >(argp1);
25166 {
25167 arg2 = &temp2;
25168 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25169 }
25170 ecode3 = SWIG_AsVal_int(obj2, &val3);
25171 if (!SWIG_IsOK(ecode3)) {
25172 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
25173 }
25174 arg3 = static_cast< int >(val3);
25175 ecode4 = SWIG_AsVal_int(obj3, &val4);
25176 if (!SWIG_IsOK(ecode4)) {
25177 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
25178 }
25179 arg4 = static_cast< int >(val4);
25180 {
25181 PyThreadState* __tstate = wxPyBeginAllowThreads();
25182 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
25183 wxPyEndAllowThreads(__tstate);
25184 if (PyErr_Occurred()) SWIG_fail;
25185 }
25186 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
25187 return resultobj;
25188 fail:
25189 return NULL;
25190 }
25191
25192
25193 SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25194 PyObject *resultobj = 0;
25195 wxPenList *arg1 = (wxPenList *) 0 ;
25196 wxPen *arg2 = (wxPen *) 0 ;
25197 void *argp1 = 0 ;
25198 int res1 = 0 ;
25199 void *argp2 = 0 ;
25200 int res2 = 0 ;
25201 PyObject * obj0 = 0 ;
25202 PyObject * obj1 = 0 ;
25203 char * kwnames[] = {
25204 (char *) "self",(char *) "pen", NULL
25205 };
25206
25207 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
25208 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
25209 if (!SWIG_IsOK(res1)) {
25210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
25211 }
25212 arg1 = reinterpret_cast< wxPenList * >(argp1);
25213 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
25214 if (!SWIG_IsOK(res2)) {
25215 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
25216 }
25217 arg2 = reinterpret_cast< wxPen * >(argp2);
25218 {
25219 PyThreadState* __tstate = wxPyBeginAllowThreads();
25220 (arg1)->AddPen(arg2);
25221 wxPyEndAllowThreads(__tstate);
25222 if (PyErr_Occurred()) SWIG_fail;
25223 }
25224 resultobj = SWIG_Py_Void();
25225 return resultobj;
25226 fail:
25227 return NULL;
25228 }
25229
25230
25231 SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25232 PyObject *resultobj = 0;
25233 wxPenList *arg1 = (wxPenList *) 0 ;
25234 wxPen *arg2 = (wxPen *) 0 ;
25235 void *argp1 = 0 ;
25236 int res1 = 0 ;
25237 void *argp2 = 0 ;
25238 int res2 = 0 ;
25239 PyObject * obj0 = 0 ;
25240 PyObject * obj1 = 0 ;
25241 char * kwnames[] = {
25242 (char *) "self",(char *) "pen", NULL
25243 };
25244
25245 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
25246 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
25247 if (!SWIG_IsOK(res1)) {
25248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
25249 }
25250 arg1 = reinterpret_cast< wxPenList * >(argp1);
25251 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
25252 if (!SWIG_IsOK(res2)) {
25253 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
25254 }
25255 arg2 = reinterpret_cast< wxPen * >(argp2);
25256 {
25257 PyThreadState* __tstate = wxPyBeginAllowThreads();
25258 (arg1)->RemovePen(arg2);
25259 wxPyEndAllowThreads(__tstate);
25260 if (PyErr_Occurred()) SWIG_fail;
25261 }
25262 resultobj = SWIG_Py_Void();
25263 return resultobj;
25264 fail:
25265 return NULL;
25266 }
25267
25268
25269 SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25270 PyObject *obj;
25271 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25272 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
25273 return SWIG_Py_Void();
25274 }
25275
25276 SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25277 PyObject *resultobj = 0;
25278 wxBrushList *arg1 = (wxBrushList *) 0 ;
25279 wxColour *arg2 = 0 ;
25280 int arg3 = (int) wxSOLID ;
25281 wxBrush *result = 0 ;
25282 void *argp1 = 0 ;
25283 int res1 = 0 ;
25284 wxColour temp2 ;
25285 int val3 ;
25286 int ecode3 = 0 ;
25287 PyObject * obj0 = 0 ;
25288 PyObject * obj1 = 0 ;
25289 PyObject * obj2 = 0 ;
25290 char * kwnames[] = {
25291 (char *) "self",(char *) "colour",(char *) "style", NULL
25292 };
25293
25294 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25295 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
25296 if (!SWIG_IsOK(res1)) {
25297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
25298 }
25299 arg1 = reinterpret_cast< wxBrushList * >(argp1);
25300 {
25301 arg2 = &temp2;
25302 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25303 }
25304 if (obj2) {
25305 ecode3 = SWIG_AsVal_int(obj2, &val3);
25306 if (!SWIG_IsOK(ecode3)) {
25307 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
25308 }
25309 arg3 = static_cast< int >(val3);
25310 }
25311 {
25312 PyThreadState* __tstate = wxPyBeginAllowThreads();
25313 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
25314 wxPyEndAllowThreads(__tstate);
25315 if (PyErr_Occurred()) SWIG_fail;
25316 }
25317 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
25318 return resultobj;
25319 fail:
25320 return NULL;
25321 }
25322
25323
25324 SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25325 PyObject *resultobj = 0;
25326 wxBrushList *arg1 = (wxBrushList *) 0 ;
25327 wxBrush *arg2 = (wxBrush *) 0 ;
25328 void *argp1 = 0 ;
25329 int res1 = 0 ;
25330 void *argp2 = 0 ;
25331 int res2 = 0 ;
25332 PyObject * obj0 = 0 ;
25333 PyObject * obj1 = 0 ;
25334 char * kwnames[] = {
25335 (char *) "self",(char *) "brush", NULL
25336 };
25337
25338 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
25339 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
25340 if (!SWIG_IsOK(res1)) {
25341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
25342 }
25343 arg1 = reinterpret_cast< wxBrushList * >(argp1);
25344 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
25345 if (!SWIG_IsOK(res2)) {
25346 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
25347 }
25348 arg2 = reinterpret_cast< wxBrush * >(argp2);
25349 {
25350 PyThreadState* __tstate = wxPyBeginAllowThreads();
25351 (arg1)->AddBrush(arg2);
25352 wxPyEndAllowThreads(__tstate);
25353 if (PyErr_Occurred()) SWIG_fail;
25354 }
25355 resultobj = SWIG_Py_Void();
25356 return resultobj;
25357 fail:
25358 return NULL;
25359 }
25360
25361
25362 SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25363 PyObject *resultobj = 0;
25364 wxBrushList *arg1 = (wxBrushList *) 0 ;
25365 wxBrush *arg2 = (wxBrush *) 0 ;
25366 void *argp1 = 0 ;
25367 int res1 = 0 ;
25368 void *argp2 = 0 ;
25369 int res2 = 0 ;
25370 PyObject * obj0 = 0 ;
25371 PyObject * obj1 = 0 ;
25372 char * kwnames[] = {
25373 (char *) "self",(char *) "brush", NULL
25374 };
25375
25376 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
25377 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
25378 if (!SWIG_IsOK(res1)) {
25379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
25380 }
25381 arg1 = reinterpret_cast< wxBrushList * >(argp1);
25382 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
25383 if (!SWIG_IsOK(res2)) {
25384 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
25385 }
25386 arg2 = reinterpret_cast< wxBrush * >(argp2);
25387 {
25388 PyThreadState* __tstate = wxPyBeginAllowThreads();
25389 (arg1)->RemoveBrush(arg2);
25390 wxPyEndAllowThreads(__tstate);
25391 if (PyErr_Occurred()) SWIG_fail;
25392 }
25393 resultobj = SWIG_Py_Void();
25394 return resultobj;
25395 fail:
25396 return NULL;
25397 }
25398
25399
25400 SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25401 PyObject *obj;
25402 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25403 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
25404 return SWIG_Py_Void();
25405 }
25406
25407 SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25408 PyObject *resultobj = 0;
25409 wxFontList *arg1 = (wxFontList *) 0 ;
25410 int arg2 ;
25411 int arg3 ;
25412 int arg4 ;
25413 int arg5 ;
25414 bool arg6 = (bool) false ;
25415 wxString const &arg7_defvalue = wxPyEmptyString ;
25416 wxString *arg7 = (wxString *) &arg7_defvalue ;
25417 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
25418 wxFont *result = 0 ;
25419 void *argp1 = 0 ;
25420 int res1 = 0 ;
25421 int val2 ;
25422 int ecode2 = 0 ;
25423 int val3 ;
25424 int ecode3 = 0 ;
25425 int val4 ;
25426 int ecode4 = 0 ;
25427 int val5 ;
25428 int ecode5 = 0 ;
25429 bool val6 ;
25430 int ecode6 = 0 ;
25431 bool temp7 = false ;
25432 int val8 ;
25433 int ecode8 = 0 ;
25434 PyObject * obj0 = 0 ;
25435 PyObject * obj1 = 0 ;
25436 PyObject * obj2 = 0 ;
25437 PyObject * obj3 = 0 ;
25438 PyObject * obj4 = 0 ;
25439 PyObject * obj5 = 0 ;
25440 PyObject * obj6 = 0 ;
25441 PyObject * obj7 = 0 ;
25442 char * kwnames[] = {
25443 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
25444 };
25445
25446 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
25447 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
25448 if (!SWIG_IsOK(res1)) {
25449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
25450 }
25451 arg1 = reinterpret_cast< wxFontList * >(argp1);
25452 ecode2 = SWIG_AsVal_int(obj1, &val2);
25453 if (!SWIG_IsOK(ecode2)) {
25454 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
25455 }
25456 arg2 = static_cast< int >(val2);
25457 ecode3 = SWIG_AsVal_int(obj2, &val3);
25458 if (!SWIG_IsOK(ecode3)) {
25459 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
25460 }
25461 arg3 = static_cast< int >(val3);
25462 ecode4 = SWIG_AsVal_int(obj3, &val4);
25463 if (!SWIG_IsOK(ecode4)) {
25464 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
25465 }
25466 arg4 = static_cast< int >(val4);
25467 ecode5 = SWIG_AsVal_int(obj4, &val5);
25468 if (!SWIG_IsOK(ecode5)) {
25469 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
25470 }
25471 arg5 = static_cast< int >(val5);
25472 if (obj5) {
25473 ecode6 = SWIG_AsVal_bool(obj5, &val6);
25474 if (!SWIG_IsOK(ecode6)) {
25475 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
25476 }
25477 arg6 = static_cast< bool >(val6);
25478 }
25479 if (obj6) {
25480 {
25481 arg7 = wxString_in_helper(obj6);
25482 if (arg7 == NULL) SWIG_fail;
25483 temp7 = true;
25484 }
25485 }
25486 if (obj7) {
25487 ecode8 = SWIG_AsVal_int(obj7, &val8);
25488 if (!SWIG_IsOK(ecode8)) {
25489 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
25490 }
25491 arg8 = static_cast< wxFontEncoding >(val8);
25492 }
25493 {
25494 PyThreadState* __tstate = wxPyBeginAllowThreads();
25495 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
25496 wxPyEndAllowThreads(__tstate);
25497 if (PyErr_Occurred()) SWIG_fail;
25498 }
25499 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
25500 {
25501 if (temp7)
25502 delete arg7;
25503 }
25504 return resultobj;
25505 fail:
25506 {
25507 if (temp7)
25508 delete arg7;
25509 }
25510 return NULL;
25511 }
25512
25513
25514 SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25515 PyObject *resultobj = 0;
25516 wxFontList *arg1 = (wxFontList *) 0 ;
25517 wxFont *arg2 = (wxFont *) 0 ;
25518 void *argp1 = 0 ;
25519 int res1 = 0 ;
25520 void *argp2 = 0 ;
25521 int res2 = 0 ;
25522 PyObject * obj0 = 0 ;
25523 PyObject * obj1 = 0 ;
25524 char * kwnames[] = {
25525 (char *) "self",(char *) "font", NULL
25526 };
25527
25528 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
25529 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
25530 if (!SWIG_IsOK(res1)) {
25531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
25532 }
25533 arg1 = reinterpret_cast< wxFontList * >(argp1);
25534 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
25535 if (!SWIG_IsOK(res2)) {
25536 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
25537 }
25538 arg2 = reinterpret_cast< wxFont * >(argp2);
25539 {
25540 PyThreadState* __tstate = wxPyBeginAllowThreads();
25541 (arg1)->AddFont(arg2);
25542 wxPyEndAllowThreads(__tstate);
25543 if (PyErr_Occurred()) SWIG_fail;
25544 }
25545 resultobj = SWIG_Py_Void();
25546 return resultobj;
25547 fail:
25548 return NULL;
25549 }
25550
25551
25552 SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25553 PyObject *resultobj = 0;
25554 wxFontList *arg1 = (wxFontList *) 0 ;
25555 wxFont *arg2 = (wxFont *) 0 ;
25556 void *argp1 = 0 ;
25557 int res1 = 0 ;
25558 void *argp2 = 0 ;
25559 int res2 = 0 ;
25560 PyObject * obj0 = 0 ;
25561 PyObject * obj1 = 0 ;
25562 char * kwnames[] = {
25563 (char *) "self",(char *) "font", NULL
25564 };
25565
25566 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
25567 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
25568 if (!SWIG_IsOK(res1)) {
25569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
25570 }
25571 arg1 = reinterpret_cast< wxFontList * >(argp1);
25572 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
25573 if (!SWIG_IsOK(res2)) {
25574 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
25575 }
25576 arg2 = reinterpret_cast< wxFont * >(argp2);
25577 {
25578 PyThreadState* __tstate = wxPyBeginAllowThreads();
25579 (arg1)->RemoveFont(arg2);
25580 wxPyEndAllowThreads(__tstate);
25581 if (PyErr_Occurred()) SWIG_fail;
25582 }
25583 resultobj = SWIG_Py_Void();
25584 return resultobj;
25585 fail:
25586 return NULL;
25587 }
25588
25589
25590 SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25591 PyObject *obj;
25592 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25593 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
25594 return SWIG_Py_Void();
25595 }
25596
25597 SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25598 PyObject *resultobj = 0;
25599 wxColourDatabase *result = 0 ;
25600
25601 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
25602 {
25603 if (!wxPyCheckForApp()) SWIG_fail;
25604 PyThreadState* __tstate = wxPyBeginAllowThreads();
25605 result = (wxColourDatabase *)new wxColourDatabase();
25606 wxPyEndAllowThreads(__tstate);
25607 if (PyErr_Occurred()) SWIG_fail;
25608 }
25609 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
25610 return resultobj;
25611 fail:
25612 return NULL;
25613 }
25614
25615
25616 SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25617 PyObject *resultobj = 0;
25618 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
25619 void *argp1 = 0 ;
25620 int res1 = 0 ;
25621 PyObject *swig_obj[1] ;
25622
25623 if (!args) SWIG_fail;
25624 swig_obj[0] = args;
25625 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
25626 if (!SWIG_IsOK(res1)) {
25627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
25628 }
25629 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
25630 {
25631 PyThreadState* __tstate = wxPyBeginAllowThreads();
25632 delete arg1;
25633
25634 wxPyEndAllowThreads(__tstate);
25635 if (PyErr_Occurred()) SWIG_fail;
25636 }
25637 resultobj = SWIG_Py_Void();
25638 return resultobj;
25639 fail:
25640 return NULL;
25641 }
25642
25643
25644 SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25645 PyObject *resultobj = 0;
25646 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
25647 wxString *arg2 = 0 ;
25648 wxColour result;
25649 void *argp1 = 0 ;
25650 int res1 = 0 ;
25651 bool temp2 = false ;
25652 PyObject * obj0 = 0 ;
25653 PyObject * obj1 = 0 ;
25654 char * kwnames[] = {
25655 (char *) "self",(char *) "name", NULL
25656 };
25657
25658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
25659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
25660 if (!SWIG_IsOK(res1)) {
25661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
25662 }
25663 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
25664 {
25665 arg2 = wxString_in_helper(obj1);
25666 if (arg2 == NULL) SWIG_fail;
25667 temp2 = true;
25668 }
25669 {
25670 PyThreadState* __tstate = wxPyBeginAllowThreads();
25671 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
25672 wxPyEndAllowThreads(__tstate);
25673 if (PyErr_Occurred()) SWIG_fail;
25674 }
25675 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
25676 {
25677 if (temp2)
25678 delete arg2;
25679 }
25680 return resultobj;
25681 fail:
25682 {
25683 if (temp2)
25684 delete arg2;
25685 }
25686 return NULL;
25687 }
25688
25689
25690 SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25691 PyObject *resultobj = 0;
25692 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
25693 wxColour *arg2 = 0 ;
25694 wxString result;
25695 void *argp1 = 0 ;
25696 int res1 = 0 ;
25697 wxColour temp2 ;
25698 PyObject * obj0 = 0 ;
25699 PyObject * obj1 = 0 ;
25700 char * kwnames[] = {
25701 (char *) "self",(char *) "colour", NULL
25702 };
25703
25704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
25705 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
25706 if (!SWIG_IsOK(res1)) {
25707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
25708 }
25709 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
25710 {
25711 arg2 = &temp2;
25712 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25713 }
25714 {
25715 PyThreadState* __tstate = wxPyBeginAllowThreads();
25716 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
25717 wxPyEndAllowThreads(__tstate);
25718 if (PyErr_Occurred()) SWIG_fail;
25719 }
25720 {
25721 #if wxUSE_UNICODE
25722 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25723 #else
25724 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25725 #endif
25726 }
25727 return resultobj;
25728 fail:
25729 return NULL;
25730 }
25731
25732
25733 SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25734 PyObject *resultobj = 0;
25735 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
25736 wxString *arg2 = 0 ;
25737 wxColour *arg3 = 0 ;
25738 void *argp1 = 0 ;
25739 int res1 = 0 ;
25740 bool temp2 = false ;
25741 wxColour temp3 ;
25742 PyObject * obj0 = 0 ;
25743 PyObject * obj1 = 0 ;
25744 PyObject * obj2 = 0 ;
25745 char * kwnames[] = {
25746 (char *) "self",(char *) "name",(char *) "colour", NULL
25747 };
25748
25749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25750 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
25751 if (!SWIG_IsOK(res1)) {
25752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
25753 }
25754 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
25755 {
25756 arg2 = wxString_in_helper(obj1);
25757 if (arg2 == NULL) SWIG_fail;
25758 temp2 = true;
25759 }
25760 {
25761 arg3 = &temp3;
25762 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
25763 }
25764 {
25765 PyThreadState* __tstate = wxPyBeginAllowThreads();
25766 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
25767 wxPyEndAllowThreads(__tstate);
25768 if (PyErr_Occurred()) SWIG_fail;
25769 }
25770 resultobj = SWIG_Py_Void();
25771 {
25772 if (temp2)
25773 delete arg2;
25774 }
25775 return resultobj;
25776 fail:
25777 {
25778 if (temp2)
25779 delete arg2;
25780 }
25781 return NULL;
25782 }
25783
25784
25785 SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25786 PyObject *resultobj = 0;
25787 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
25788 wxString *arg2 = 0 ;
25789 int arg3 ;
25790 int arg4 ;
25791 int arg5 ;
25792 void *argp1 = 0 ;
25793 int res1 = 0 ;
25794 bool temp2 = false ;
25795 int val3 ;
25796 int ecode3 = 0 ;
25797 int val4 ;
25798 int ecode4 = 0 ;
25799 int val5 ;
25800 int ecode5 = 0 ;
25801 PyObject * obj0 = 0 ;
25802 PyObject * obj1 = 0 ;
25803 PyObject * obj2 = 0 ;
25804 PyObject * obj3 = 0 ;
25805 PyObject * obj4 = 0 ;
25806 char * kwnames[] = {
25807 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
25808 };
25809
25810 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25811 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
25812 if (!SWIG_IsOK(res1)) {
25813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
25814 }
25815 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
25816 {
25817 arg2 = wxString_in_helper(obj1);
25818 if (arg2 == NULL) SWIG_fail;
25819 temp2 = true;
25820 }
25821 ecode3 = SWIG_AsVal_int(obj2, &val3);
25822 if (!SWIG_IsOK(ecode3)) {
25823 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
25824 }
25825 arg3 = static_cast< int >(val3);
25826 ecode4 = SWIG_AsVal_int(obj3, &val4);
25827 if (!SWIG_IsOK(ecode4)) {
25828 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
25829 }
25830 arg4 = static_cast< int >(val4);
25831 ecode5 = SWIG_AsVal_int(obj4, &val5);
25832 if (!SWIG_IsOK(ecode5)) {
25833 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
25834 }
25835 arg5 = static_cast< int >(val5);
25836 {
25837 PyThreadState* __tstate = wxPyBeginAllowThreads();
25838 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
25839 wxPyEndAllowThreads(__tstate);
25840 if (PyErr_Occurred()) SWIG_fail;
25841 }
25842 resultobj = SWIG_Py_Void();
25843 {
25844 if (temp2)
25845 delete arg2;
25846 }
25847 return resultobj;
25848 fail:
25849 {
25850 if (temp2)
25851 delete arg2;
25852 }
25853 return NULL;
25854 }
25855
25856
25857 SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25858 PyObject *obj;
25859 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25860 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
25861 return SWIG_Py_Void();
25862 }
25863
25864 SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25865 return SWIG_Python_InitShadowInstance(args);
25866 }
25867
25868 SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25869 PyObject *resultobj = 0;
25870 wxFontList *result = 0 ;
25871
25872 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
25873 {
25874 PyThreadState* __tstate = wxPyBeginAllowThreads();
25875 result = (wxFontList *)_wxPyInitTheFontList();
25876 wxPyEndAllowThreads(__tstate);
25877 if (PyErr_Occurred()) SWIG_fail;
25878 }
25879 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
25880 return resultobj;
25881 fail:
25882 return NULL;
25883 }
25884
25885
25886 SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25887 PyObject *resultobj = 0;
25888 wxPenList *result = 0 ;
25889
25890 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
25891 {
25892 PyThreadState* __tstate = wxPyBeginAllowThreads();
25893 result = (wxPenList *)_wxPyInitThePenList();
25894 wxPyEndAllowThreads(__tstate);
25895 if (PyErr_Occurred()) SWIG_fail;
25896 }
25897 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
25898 return resultobj;
25899 fail:
25900 return NULL;
25901 }
25902
25903
25904 SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25905 PyObject *resultobj = 0;
25906 wxBrushList *result = 0 ;
25907
25908 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
25909 {
25910 PyThreadState* __tstate = wxPyBeginAllowThreads();
25911 result = (wxBrushList *)_wxPyInitTheBrushList();
25912 wxPyEndAllowThreads(__tstate);
25913 if (PyErr_Occurred()) SWIG_fail;
25914 }
25915 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
25916 return resultobj;
25917 fail:
25918 return NULL;
25919 }
25920
25921
25922 SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25923 PyObject *resultobj = 0;
25924 wxColourDatabase *result = 0 ;
25925
25926 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
25927 {
25928 PyThreadState* __tstate = wxPyBeginAllowThreads();
25929 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
25930 wxPyEndAllowThreads(__tstate);
25931 if (PyErr_Occurred()) SWIG_fail;
25932 }
25933 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
25934 return resultobj;
25935 fail:
25936 return NULL;
25937 }
25938
25939
25940 SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25941 PyObject *resultobj = 0;
25942 wxEffects *result = 0 ;
25943
25944 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
25945 {
25946 PyThreadState* __tstate = wxPyBeginAllowThreads();
25947 result = (wxEffects *)new wxEffects();
25948 wxPyEndAllowThreads(__tstate);
25949 if (PyErr_Occurred()) SWIG_fail;
25950 }
25951 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
25952 return resultobj;
25953 fail:
25954 return NULL;
25955 }
25956
25957
25958 SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25959 PyObject *resultobj = 0;
25960 wxEffects *arg1 = (wxEffects *) 0 ;
25961 wxColour result;
25962 void *argp1 = 0 ;
25963 int res1 = 0 ;
25964 PyObject *swig_obj[1] ;
25965
25966 if (!args) SWIG_fail;
25967 swig_obj[0] = args;
25968 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
25969 if (!SWIG_IsOK(res1)) {
25970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
25971 }
25972 arg1 = reinterpret_cast< wxEffects * >(argp1);
25973 {
25974 PyThreadState* __tstate = wxPyBeginAllowThreads();
25975 result = ((wxEffects const *)arg1)->GetHighlightColour();
25976 wxPyEndAllowThreads(__tstate);
25977 if (PyErr_Occurred()) SWIG_fail;
25978 }
25979 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
25980 return resultobj;
25981 fail:
25982 return NULL;
25983 }
25984
25985
25986 SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25987 PyObject *resultobj = 0;
25988 wxEffects *arg1 = (wxEffects *) 0 ;
25989 wxColour result;
25990 void *argp1 = 0 ;
25991 int res1 = 0 ;
25992 PyObject *swig_obj[1] ;
25993
25994 if (!args) SWIG_fail;
25995 swig_obj[0] = args;
25996 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
25997 if (!SWIG_IsOK(res1)) {
25998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
25999 }
26000 arg1 = reinterpret_cast< wxEffects * >(argp1);
26001 {
26002 PyThreadState* __tstate = wxPyBeginAllowThreads();
26003 result = ((wxEffects const *)arg1)->GetLightShadow();
26004 wxPyEndAllowThreads(__tstate);
26005 if (PyErr_Occurred()) SWIG_fail;
26006 }
26007 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26008 return resultobj;
26009 fail:
26010 return NULL;
26011 }
26012
26013
26014 SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26015 PyObject *resultobj = 0;
26016 wxEffects *arg1 = (wxEffects *) 0 ;
26017 wxColour result;
26018 void *argp1 = 0 ;
26019 int res1 = 0 ;
26020 PyObject *swig_obj[1] ;
26021
26022 if (!args) SWIG_fail;
26023 swig_obj[0] = args;
26024 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26025 if (!SWIG_IsOK(res1)) {
26026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
26027 }
26028 arg1 = reinterpret_cast< wxEffects * >(argp1);
26029 {
26030 PyThreadState* __tstate = wxPyBeginAllowThreads();
26031 result = ((wxEffects const *)arg1)->GetFaceColour();
26032 wxPyEndAllowThreads(__tstate);
26033 if (PyErr_Occurred()) SWIG_fail;
26034 }
26035 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26036 return resultobj;
26037 fail:
26038 return NULL;
26039 }
26040
26041
26042 SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26043 PyObject *resultobj = 0;
26044 wxEffects *arg1 = (wxEffects *) 0 ;
26045 wxColour result;
26046 void *argp1 = 0 ;
26047 int res1 = 0 ;
26048 PyObject *swig_obj[1] ;
26049
26050 if (!args) SWIG_fail;
26051 swig_obj[0] = args;
26052 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26053 if (!SWIG_IsOK(res1)) {
26054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
26055 }
26056 arg1 = reinterpret_cast< wxEffects * >(argp1);
26057 {
26058 PyThreadState* __tstate = wxPyBeginAllowThreads();
26059 result = ((wxEffects const *)arg1)->GetMediumShadow();
26060 wxPyEndAllowThreads(__tstate);
26061 if (PyErr_Occurred()) SWIG_fail;
26062 }
26063 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26064 return resultobj;
26065 fail:
26066 return NULL;
26067 }
26068
26069
26070 SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26071 PyObject *resultobj = 0;
26072 wxEffects *arg1 = (wxEffects *) 0 ;
26073 wxColour result;
26074 void *argp1 = 0 ;
26075 int res1 = 0 ;
26076 PyObject *swig_obj[1] ;
26077
26078 if (!args) SWIG_fail;
26079 swig_obj[0] = args;
26080 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26081 if (!SWIG_IsOK(res1)) {
26082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
26083 }
26084 arg1 = reinterpret_cast< wxEffects * >(argp1);
26085 {
26086 PyThreadState* __tstate = wxPyBeginAllowThreads();
26087 result = ((wxEffects const *)arg1)->GetDarkShadow();
26088 wxPyEndAllowThreads(__tstate);
26089 if (PyErr_Occurred()) SWIG_fail;
26090 }
26091 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26092 return resultobj;
26093 fail:
26094 return NULL;
26095 }
26096
26097
26098 SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26099 PyObject *resultobj = 0;
26100 wxEffects *arg1 = (wxEffects *) 0 ;
26101 wxColour *arg2 = 0 ;
26102 void *argp1 = 0 ;
26103 int res1 = 0 ;
26104 wxColour temp2 ;
26105 PyObject * obj0 = 0 ;
26106 PyObject * obj1 = 0 ;
26107 char * kwnames[] = {
26108 (char *) "self",(char *) "c", NULL
26109 };
26110
26111 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
26112 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26113 if (!SWIG_IsOK(res1)) {
26114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
26115 }
26116 arg1 = reinterpret_cast< wxEffects * >(argp1);
26117 {
26118 arg2 = &temp2;
26119 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26120 }
26121 {
26122 PyThreadState* __tstate = wxPyBeginAllowThreads();
26123 (arg1)->SetHighlightColour((wxColour const &)*arg2);
26124 wxPyEndAllowThreads(__tstate);
26125 if (PyErr_Occurred()) SWIG_fail;
26126 }
26127 resultobj = SWIG_Py_Void();
26128 return resultobj;
26129 fail:
26130 return NULL;
26131 }
26132
26133
26134 SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26135 PyObject *resultobj = 0;
26136 wxEffects *arg1 = (wxEffects *) 0 ;
26137 wxColour *arg2 = 0 ;
26138 void *argp1 = 0 ;
26139 int res1 = 0 ;
26140 wxColour temp2 ;
26141 PyObject * obj0 = 0 ;
26142 PyObject * obj1 = 0 ;
26143 char * kwnames[] = {
26144 (char *) "self",(char *) "c", NULL
26145 };
26146
26147 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
26148 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26149 if (!SWIG_IsOK(res1)) {
26150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
26151 }
26152 arg1 = reinterpret_cast< wxEffects * >(argp1);
26153 {
26154 arg2 = &temp2;
26155 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26156 }
26157 {
26158 PyThreadState* __tstate = wxPyBeginAllowThreads();
26159 (arg1)->SetLightShadow((wxColour const &)*arg2);
26160 wxPyEndAllowThreads(__tstate);
26161 if (PyErr_Occurred()) SWIG_fail;
26162 }
26163 resultobj = SWIG_Py_Void();
26164 return resultobj;
26165 fail:
26166 return NULL;
26167 }
26168
26169
26170 SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26171 PyObject *resultobj = 0;
26172 wxEffects *arg1 = (wxEffects *) 0 ;
26173 wxColour *arg2 = 0 ;
26174 void *argp1 = 0 ;
26175 int res1 = 0 ;
26176 wxColour temp2 ;
26177 PyObject * obj0 = 0 ;
26178 PyObject * obj1 = 0 ;
26179 char * kwnames[] = {
26180 (char *) "self",(char *) "c", NULL
26181 };
26182
26183 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
26184 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26185 if (!SWIG_IsOK(res1)) {
26186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
26187 }
26188 arg1 = reinterpret_cast< wxEffects * >(argp1);
26189 {
26190 arg2 = &temp2;
26191 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26192 }
26193 {
26194 PyThreadState* __tstate = wxPyBeginAllowThreads();
26195 (arg1)->SetFaceColour((wxColour const &)*arg2);
26196 wxPyEndAllowThreads(__tstate);
26197 if (PyErr_Occurred()) SWIG_fail;
26198 }
26199 resultobj = SWIG_Py_Void();
26200 return resultobj;
26201 fail:
26202 return NULL;
26203 }
26204
26205
26206 SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26207 PyObject *resultobj = 0;
26208 wxEffects *arg1 = (wxEffects *) 0 ;
26209 wxColour *arg2 = 0 ;
26210 void *argp1 = 0 ;
26211 int res1 = 0 ;
26212 wxColour temp2 ;
26213 PyObject * obj0 = 0 ;
26214 PyObject * obj1 = 0 ;
26215 char * kwnames[] = {
26216 (char *) "self",(char *) "c", NULL
26217 };
26218
26219 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
26220 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26221 if (!SWIG_IsOK(res1)) {
26222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
26223 }
26224 arg1 = reinterpret_cast< wxEffects * >(argp1);
26225 {
26226 arg2 = &temp2;
26227 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26228 }
26229 {
26230 PyThreadState* __tstate = wxPyBeginAllowThreads();
26231 (arg1)->SetMediumShadow((wxColour const &)*arg2);
26232 wxPyEndAllowThreads(__tstate);
26233 if (PyErr_Occurred()) SWIG_fail;
26234 }
26235 resultobj = SWIG_Py_Void();
26236 return resultobj;
26237 fail:
26238 return NULL;
26239 }
26240
26241
26242 SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26243 PyObject *resultobj = 0;
26244 wxEffects *arg1 = (wxEffects *) 0 ;
26245 wxColour *arg2 = 0 ;
26246 void *argp1 = 0 ;
26247 int res1 = 0 ;
26248 wxColour temp2 ;
26249 PyObject * obj0 = 0 ;
26250 PyObject * obj1 = 0 ;
26251 char * kwnames[] = {
26252 (char *) "self",(char *) "c", NULL
26253 };
26254
26255 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
26256 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26257 if (!SWIG_IsOK(res1)) {
26258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
26259 }
26260 arg1 = reinterpret_cast< wxEffects * >(argp1);
26261 {
26262 arg2 = &temp2;
26263 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26264 }
26265 {
26266 PyThreadState* __tstate = wxPyBeginAllowThreads();
26267 (arg1)->SetDarkShadow((wxColour const &)*arg2);
26268 wxPyEndAllowThreads(__tstate);
26269 if (PyErr_Occurred()) SWIG_fail;
26270 }
26271 resultobj = SWIG_Py_Void();
26272 return resultobj;
26273 fail:
26274 return NULL;
26275 }
26276
26277
26278 SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26279 PyObject *resultobj = 0;
26280 wxEffects *arg1 = (wxEffects *) 0 ;
26281 wxColour *arg2 = 0 ;
26282 wxColour *arg3 = 0 ;
26283 wxColour *arg4 = 0 ;
26284 wxColour *arg5 = 0 ;
26285 wxColour *arg6 = 0 ;
26286 void *argp1 = 0 ;
26287 int res1 = 0 ;
26288 wxColour temp2 ;
26289 wxColour temp3 ;
26290 wxColour temp4 ;
26291 wxColour temp5 ;
26292 wxColour temp6 ;
26293 PyObject * obj0 = 0 ;
26294 PyObject * obj1 = 0 ;
26295 PyObject * obj2 = 0 ;
26296 PyObject * obj3 = 0 ;
26297 PyObject * obj4 = 0 ;
26298 PyObject * obj5 = 0 ;
26299 char * kwnames[] = {
26300 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
26301 };
26302
26303 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26304 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26305 if (!SWIG_IsOK(res1)) {
26306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
26307 }
26308 arg1 = reinterpret_cast< wxEffects * >(argp1);
26309 {
26310 arg2 = &temp2;
26311 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26312 }
26313 {
26314 arg3 = &temp3;
26315 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
26316 }
26317 {
26318 arg4 = &temp4;
26319 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
26320 }
26321 {
26322 arg5 = &temp5;
26323 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
26324 }
26325 {
26326 arg6 = &temp6;
26327 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
26328 }
26329 {
26330 PyThreadState* __tstate = wxPyBeginAllowThreads();
26331 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
26332 wxPyEndAllowThreads(__tstate);
26333 if (PyErr_Occurred()) SWIG_fail;
26334 }
26335 resultobj = SWIG_Py_Void();
26336 return resultobj;
26337 fail:
26338 return NULL;
26339 }
26340
26341
26342 SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26343 PyObject *resultobj = 0;
26344 wxEffects *arg1 = (wxEffects *) 0 ;
26345 wxDC *arg2 = 0 ;
26346 wxRect *arg3 = 0 ;
26347 int arg4 = (int) 1 ;
26348 void *argp1 = 0 ;
26349 int res1 = 0 ;
26350 void *argp2 = 0 ;
26351 int res2 = 0 ;
26352 wxRect temp3 ;
26353 int val4 ;
26354 int ecode4 = 0 ;
26355 PyObject * obj0 = 0 ;
26356 PyObject * obj1 = 0 ;
26357 PyObject * obj2 = 0 ;
26358 PyObject * obj3 = 0 ;
26359 char * kwnames[] = {
26360 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
26361 };
26362
26363 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
26364 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26365 if (!SWIG_IsOK(res1)) {
26366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
26367 }
26368 arg1 = reinterpret_cast< wxEffects * >(argp1);
26369 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
26370 if (!SWIG_IsOK(res2)) {
26371 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
26372 }
26373 if (!argp2) {
26374 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
26375 }
26376 arg2 = reinterpret_cast< wxDC * >(argp2);
26377 {
26378 arg3 = &temp3;
26379 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
26380 }
26381 if (obj3) {
26382 ecode4 = SWIG_AsVal_int(obj3, &val4);
26383 if (!SWIG_IsOK(ecode4)) {
26384 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
26385 }
26386 arg4 = static_cast< int >(val4);
26387 }
26388 {
26389 PyThreadState* __tstate = wxPyBeginAllowThreads();
26390 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
26391 wxPyEndAllowThreads(__tstate);
26392 if (PyErr_Occurred()) SWIG_fail;
26393 }
26394 resultobj = SWIG_Py_Void();
26395 return resultobj;
26396 fail:
26397 return NULL;
26398 }
26399
26400
26401 SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26402 PyObject *resultobj = 0;
26403 wxEffects *arg1 = (wxEffects *) 0 ;
26404 wxRect *arg2 = 0 ;
26405 wxDC *arg3 = 0 ;
26406 wxBitmap *arg4 = 0 ;
26407 bool result;
26408 void *argp1 = 0 ;
26409 int res1 = 0 ;
26410 wxRect temp2 ;
26411 void *argp3 = 0 ;
26412 int res3 = 0 ;
26413 void *argp4 = 0 ;
26414 int res4 = 0 ;
26415 PyObject * obj0 = 0 ;
26416 PyObject * obj1 = 0 ;
26417 PyObject * obj2 = 0 ;
26418 PyObject * obj3 = 0 ;
26419 char * kwnames[] = {
26420 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
26421 };
26422
26423 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
26424 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26425 if (!SWIG_IsOK(res1)) {
26426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
26427 }
26428 arg1 = reinterpret_cast< wxEffects * >(argp1);
26429 {
26430 arg2 = &temp2;
26431 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
26432 }
26433 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
26434 if (!SWIG_IsOK(res3)) {
26435 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
26436 }
26437 if (!argp3) {
26438 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
26439 }
26440 arg3 = reinterpret_cast< wxDC * >(argp3);
26441 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
26442 if (!SWIG_IsOK(res4)) {
26443 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
26444 }
26445 if (!argp4) {
26446 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
26447 }
26448 arg4 = reinterpret_cast< wxBitmap * >(argp4);
26449 {
26450 PyThreadState* __tstate = wxPyBeginAllowThreads();
26451 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
26452 wxPyEndAllowThreads(__tstate);
26453 if (PyErr_Occurred()) SWIG_fail;
26454 }
26455 {
26456 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26457 }
26458 return resultobj;
26459 fail:
26460 return NULL;
26461 }
26462
26463
26464 SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26465 PyObject *obj;
26466 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26467 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
26468 return SWIG_Py_Void();
26469 }
26470
26471 SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26472 return SWIG_Python_InitShadowInstance(args);
26473 }
26474
26475 SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26476 PyObject *resultobj = 0;
26477 int arg1 ;
26478 int arg2 ;
26479 bool arg3 ;
26480 wxSplitterRenderParams *result = 0 ;
26481 int val1 ;
26482 int ecode1 = 0 ;
26483 int val2 ;
26484 int ecode2 = 0 ;
26485 bool val3 ;
26486 int ecode3 = 0 ;
26487 PyObject * obj0 = 0 ;
26488 PyObject * obj1 = 0 ;
26489 PyObject * obj2 = 0 ;
26490 char * kwnames[] = {
26491 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
26492 };
26493
26494 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26495 ecode1 = SWIG_AsVal_int(obj0, &val1);
26496 if (!SWIG_IsOK(ecode1)) {
26497 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
26498 }
26499 arg1 = static_cast< int >(val1);
26500 ecode2 = SWIG_AsVal_int(obj1, &val2);
26501 if (!SWIG_IsOK(ecode2)) {
26502 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
26503 }
26504 arg2 = static_cast< int >(val2);
26505 ecode3 = SWIG_AsVal_bool(obj2, &val3);
26506 if (!SWIG_IsOK(ecode3)) {
26507 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
26508 }
26509 arg3 = static_cast< bool >(val3);
26510 {
26511 PyThreadState* __tstate = wxPyBeginAllowThreads();
26512 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
26513 wxPyEndAllowThreads(__tstate);
26514 if (PyErr_Occurred()) SWIG_fail;
26515 }
26516 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
26517 return resultobj;
26518 fail:
26519 return NULL;
26520 }
26521
26522
26523 SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26524 PyObject *resultobj = 0;
26525 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
26526 void *argp1 = 0 ;
26527 int res1 = 0 ;
26528 PyObject *swig_obj[1] ;
26529
26530 if (!args) SWIG_fail;
26531 swig_obj[0] = args;
26532 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
26533 if (!SWIG_IsOK(res1)) {
26534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
26535 }
26536 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
26537 {
26538 PyThreadState* __tstate = wxPyBeginAllowThreads();
26539 delete arg1;
26540
26541 wxPyEndAllowThreads(__tstate);
26542 if (PyErr_Occurred()) SWIG_fail;
26543 }
26544 resultobj = SWIG_Py_Void();
26545 return resultobj;
26546 fail:
26547 return NULL;
26548 }
26549
26550
26551 SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26552 PyObject *resultobj = 0;
26553 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
26554 int result;
26555 void *argp1 = 0 ;
26556 int res1 = 0 ;
26557 PyObject *swig_obj[1] ;
26558
26559 if (!args) SWIG_fail;
26560 swig_obj[0] = args;
26561 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
26562 if (!SWIG_IsOK(res1)) {
26563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
26564 }
26565 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
26566 result = (int)(int) ((arg1)->widthSash);
26567 resultobj = SWIG_From_int(static_cast< int >(result));
26568 return resultobj;
26569 fail:
26570 return NULL;
26571 }
26572
26573
26574 SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26575 PyObject *resultobj = 0;
26576 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
26577 int result;
26578 void *argp1 = 0 ;
26579 int res1 = 0 ;
26580 PyObject *swig_obj[1] ;
26581
26582 if (!args) SWIG_fail;
26583 swig_obj[0] = args;
26584 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
26585 if (!SWIG_IsOK(res1)) {
26586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
26587 }
26588 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
26589 result = (int)(int) ((arg1)->border);
26590 resultobj = SWIG_From_int(static_cast< int >(result));
26591 return resultobj;
26592 fail:
26593 return NULL;
26594 }
26595
26596
26597 SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26598 PyObject *resultobj = 0;
26599 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
26600 bool result;
26601 void *argp1 = 0 ;
26602 int res1 = 0 ;
26603 PyObject *swig_obj[1] ;
26604
26605 if (!args) SWIG_fail;
26606 swig_obj[0] = args;
26607 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
26608 if (!SWIG_IsOK(res1)) {
26609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
26610 }
26611 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
26612 result = (bool)(bool) ((arg1)->isHotSensitive);
26613 resultobj = SWIG_From_bool(static_cast< bool >(result));
26614 return resultobj;
26615 fail:
26616 return NULL;
26617 }
26618
26619
26620 SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26621 PyObject *obj;
26622 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26623 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
26624 return SWIG_Py_Void();
26625 }
26626
26627 SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26628 return SWIG_Python_InitShadowInstance(args);
26629 }
26630
26631 SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26632 PyObject *resultobj = 0;
26633 int arg1 ;
26634 int arg2 ;
26635 wxRendererVersion *result = 0 ;
26636 int val1 ;
26637 int ecode1 = 0 ;
26638 int val2 ;
26639 int ecode2 = 0 ;
26640 PyObject * obj0 = 0 ;
26641 PyObject * obj1 = 0 ;
26642 char * kwnames[] = {
26643 (char *) "version_",(char *) "age_", NULL
26644 };
26645
26646 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
26647 ecode1 = SWIG_AsVal_int(obj0, &val1);
26648 if (!SWIG_IsOK(ecode1)) {
26649 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
26650 }
26651 arg1 = static_cast< int >(val1);
26652 ecode2 = SWIG_AsVal_int(obj1, &val2);
26653 if (!SWIG_IsOK(ecode2)) {
26654 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
26655 }
26656 arg2 = static_cast< int >(val2);
26657 {
26658 PyThreadState* __tstate = wxPyBeginAllowThreads();
26659 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
26660 wxPyEndAllowThreads(__tstate);
26661 if (PyErr_Occurred()) SWIG_fail;
26662 }
26663 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
26664 return resultobj;
26665 fail:
26666 return NULL;
26667 }
26668
26669
26670 SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26671 PyObject *resultobj = 0;
26672 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
26673 void *argp1 = 0 ;
26674 int res1 = 0 ;
26675 PyObject *swig_obj[1] ;
26676
26677 if (!args) SWIG_fail;
26678 swig_obj[0] = args;
26679 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
26680 if (!SWIG_IsOK(res1)) {
26681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
26682 }
26683 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
26684 {
26685 PyThreadState* __tstate = wxPyBeginAllowThreads();
26686 delete arg1;
26687
26688 wxPyEndAllowThreads(__tstate);
26689 if (PyErr_Occurred()) SWIG_fail;
26690 }
26691 resultobj = SWIG_Py_Void();
26692 return resultobj;
26693 fail:
26694 return NULL;
26695 }
26696
26697
26698 SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26699 PyObject *resultobj = 0;
26700 wxRendererVersion *arg1 = 0 ;
26701 bool result;
26702 void *argp1 = 0 ;
26703 int res1 = 0 ;
26704 PyObject * obj0 = 0 ;
26705 char * kwnames[] = {
26706 (char *) "ver", NULL
26707 };
26708
26709 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
26710 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
26711 if (!SWIG_IsOK(res1)) {
26712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
26713 }
26714 if (!argp1) {
26715 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
26716 }
26717 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
26718 {
26719 PyThreadState* __tstate = wxPyBeginAllowThreads();
26720 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
26721 wxPyEndAllowThreads(__tstate);
26722 if (PyErr_Occurred()) SWIG_fail;
26723 }
26724 {
26725 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26726 }
26727 return resultobj;
26728 fail:
26729 return NULL;
26730 }
26731
26732
26733 SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26734 PyObject *resultobj = 0;
26735 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
26736 int result;
26737 void *argp1 = 0 ;
26738 int res1 = 0 ;
26739 PyObject *swig_obj[1] ;
26740
26741 if (!args) SWIG_fail;
26742 swig_obj[0] = args;
26743 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
26744 if (!SWIG_IsOK(res1)) {
26745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
26746 }
26747 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
26748 result = (int)(int) ((arg1)->version);
26749 resultobj = SWIG_From_int(static_cast< int >(result));
26750 return resultobj;
26751 fail:
26752 return NULL;
26753 }
26754
26755
26756 SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26757 PyObject *resultobj = 0;
26758 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
26759 int result;
26760 void *argp1 = 0 ;
26761 int res1 = 0 ;
26762 PyObject *swig_obj[1] ;
26763
26764 if (!args) SWIG_fail;
26765 swig_obj[0] = args;
26766 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
26767 if (!SWIG_IsOK(res1)) {
26768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
26769 }
26770 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
26771 result = (int)(int) ((arg1)->age);
26772 resultobj = SWIG_From_int(static_cast< int >(result));
26773 return resultobj;
26774 fail:
26775 return NULL;
26776 }
26777
26778
26779 SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26780 PyObject *obj;
26781 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26782 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
26783 return SWIG_Py_Void();
26784 }
26785
26786 SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26787 return SWIG_Python_InitShadowInstance(args);
26788 }
26789
26790 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26791 PyObject *resultobj = 0;
26792 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
26793 wxWindow *arg2 = (wxWindow *) 0 ;
26794 wxDC *arg3 = 0 ;
26795 wxRect *arg4 = 0 ;
26796 int arg5 = (int) 0 ;
26797 void *argp1 = 0 ;
26798 int res1 = 0 ;
26799 void *argp2 = 0 ;
26800 int res2 = 0 ;
26801 void *argp3 = 0 ;
26802 int res3 = 0 ;
26803 wxRect temp4 ;
26804 int val5 ;
26805 int ecode5 = 0 ;
26806 PyObject * obj0 = 0 ;
26807 PyObject * obj1 = 0 ;
26808 PyObject * obj2 = 0 ;
26809 PyObject * obj3 = 0 ;
26810 PyObject * obj4 = 0 ;
26811 char * kwnames[] = {
26812 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
26813 };
26814
26815 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26816 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
26817 if (!SWIG_IsOK(res1)) {
26818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
26819 }
26820 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
26821 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
26822 if (!SWIG_IsOK(res2)) {
26823 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
26824 }
26825 arg2 = reinterpret_cast< wxWindow * >(argp2);
26826 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
26827 if (!SWIG_IsOK(res3)) {
26828 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
26829 }
26830 if (!argp3) {
26831 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
26832 }
26833 arg3 = reinterpret_cast< wxDC * >(argp3);
26834 {
26835 arg4 = &temp4;
26836 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
26837 }
26838 if (obj4) {
26839 ecode5 = SWIG_AsVal_int(obj4, &val5);
26840 if (!SWIG_IsOK(ecode5)) {
26841 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
26842 }
26843 arg5 = static_cast< int >(val5);
26844 }
26845 {
26846 PyThreadState* __tstate = wxPyBeginAllowThreads();
26847 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
26848 wxPyEndAllowThreads(__tstate);
26849 if (PyErr_Occurred()) SWIG_fail;
26850 }
26851 resultobj = SWIG_Py_Void();
26852 return resultobj;
26853 fail:
26854 return NULL;
26855 }
26856
26857
26858 SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26859 PyObject *resultobj = 0;
26860 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
26861 wxWindow *arg2 = (wxWindow *) 0 ;
26862 wxDC *arg3 = 0 ;
26863 wxRect *arg4 = 0 ;
26864 int arg5 = (int) 0 ;
26865 void *argp1 = 0 ;
26866 int res1 = 0 ;
26867 void *argp2 = 0 ;
26868 int res2 = 0 ;
26869 void *argp3 = 0 ;
26870 int res3 = 0 ;
26871 wxRect temp4 ;
26872 int val5 ;
26873 int ecode5 = 0 ;
26874 PyObject * obj0 = 0 ;
26875 PyObject * obj1 = 0 ;
26876 PyObject * obj2 = 0 ;
26877 PyObject * obj3 = 0 ;
26878 PyObject * obj4 = 0 ;
26879 char * kwnames[] = {
26880 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
26881 };
26882
26883 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26884 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
26885 if (!SWIG_IsOK(res1)) {
26886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
26887 }
26888 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
26889 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
26890 if (!SWIG_IsOK(res2)) {
26891 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
26892 }
26893 arg2 = reinterpret_cast< wxWindow * >(argp2);
26894 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
26895 if (!SWIG_IsOK(res3)) {
26896 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
26897 }
26898 if (!argp3) {
26899 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
26900 }
26901 arg3 = reinterpret_cast< wxDC * >(argp3);
26902 {
26903 arg4 = &temp4;
26904 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
26905 }
26906 if (obj4) {
26907 ecode5 = SWIG_AsVal_int(obj4, &val5);
26908 if (!SWIG_IsOK(ecode5)) {
26909 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
26910 }
26911 arg5 = static_cast< int >(val5);
26912 }
26913 {
26914 PyThreadState* __tstate = wxPyBeginAllowThreads();
26915 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
26916 wxPyEndAllowThreads(__tstate);
26917 if (PyErr_Occurred()) SWIG_fail;
26918 }
26919 resultobj = SWIG_Py_Void();
26920 return resultobj;
26921 fail:
26922 return NULL;
26923 }
26924
26925
26926 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26927 PyObject *resultobj = 0;
26928 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
26929 wxWindow *arg2 = (wxWindow *) 0 ;
26930 wxDC *arg3 = 0 ;
26931 wxRect *arg4 = 0 ;
26932 int arg5 = (int) 0 ;
26933 void *argp1 = 0 ;
26934 int res1 = 0 ;
26935 void *argp2 = 0 ;
26936 int res2 = 0 ;
26937 void *argp3 = 0 ;
26938 int res3 = 0 ;
26939 wxRect temp4 ;
26940 int val5 ;
26941 int ecode5 = 0 ;
26942 PyObject * obj0 = 0 ;
26943 PyObject * obj1 = 0 ;
26944 PyObject * obj2 = 0 ;
26945 PyObject * obj3 = 0 ;
26946 PyObject * obj4 = 0 ;
26947 char * kwnames[] = {
26948 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
26949 };
26950
26951 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26952 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
26953 if (!SWIG_IsOK(res1)) {
26954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
26955 }
26956 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
26957 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
26958 if (!SWIG_IsOK(res2)) {
26959 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
26960 }
26961 arg2 = reinterpret_cast< wxWindow * >(argp2);
26962 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
26963 if (!SWIG_IsOK(res3)) {
26964 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
26965 }
26966 if (!argp3) {
26967 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
26968 }
26969 arg3 = reinterpret_cast< wxDC * >(argp3);
26970 {
26971 arg4 = &temp4;
26972 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
26973 }
26974 if (obj4) {
26975 ecode5 = SWIG_AsVal_int(obj4, &val5);
26976 if (!SWIG_IsOK(ecode5)) {
26977 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
26978 }
26979 arg5 = static_cast< int >(val5);
26980 }
26981 {
26982 PyThreadState* __tstate = wxPyBeginAllowThreads();
26983 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
26984 wxPyEndAllowThreads(__tstate);
26985 if (PyErr_Occurred()) SWIG_fail;
26986 }
26987 resultobj = SWIG_Py_Void();
26988 return resultobj;
26989 fail:
26990 return NULL;
26991 }
26992
26993
26994 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26995 PyObject *resultobj = 0;
26996 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
26997 wxWindow *arg2 = (wxWindow *) 0 ;
26998 wxDC *arg3 = 0 ;
26999 wxSize *arg4 = 0 ;
27000 int arg5 ;
27001 wxOrientation arg6 ;
27002 int arg7 = (int) 0 ;
27003 void *argp1 = 0 ;
27004 int res1 = 0 ;
27005 void *argp2 = 0 ;
27006 int res2 = 0 ;
27007 void *argp3 = 0 ;
27008 int res3 = 0 ;
27009 wxSize temp4 ;
27010 int val5 ;
27011 int ecode5 = 0 ;
27012 int val6 ;
27013 int ecode6 = 0 ;
27014 int val7 ;
27015 int ecode7 = 0 ;
27016 PyObject * obj0 = 0 ;
27017 PyObject * obj1 = 0 ;
27018 PyObject * obj2 = 0 ;
27019 PyObject * obj3 = 0 ;
27020 PyObject * obj4 = 0 ;
27021 PyObject * obj5 = 0 ;
27022 PyObject * obj6 = 0 ;
27023 char * kwnames[] = {
27024 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
27025 };
27026
27027 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
27028 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
27029 if (!SWIG_IsOK(res1)) {
27030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
27031 }
27032 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
27033 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
27034 if (!SWIG_IsOK(res2)) {
27035 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
27036 }
27037 arg2 = reinterpret_cast< wxWindow * >(argp2);
27038 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
27039 if (!SWIG_IsOK(res3)) {
27040 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
27041 }
27042 if (!argp3) {
27043 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
27044 }
27045 arg3 = reinterpret_cast< wxDC * >(argp3);
27046 {
27047 arg4 = &temp4;
27048 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
27049 }
27050 ecode5 = SWIG_AsVal_int(obj4, &val5);
27051 if (!SWIG_IsOK(ecode5)) {
27052 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
27053 }
27054 arg5 = static_cast< int >(val5);
27055 ecode6 = SWIG_AsVal_int(obj5, &val6);
27056 if (!SWIG_IsOK(ecode6)) {
27057 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
27058 }
27059 arg6 = static_cast< wxOrientation >(val6);
27060 if (obj6) {
27061 ecode7 = SWIG_AsVal_int(obj6, &val7);
27062 if (!SWIG_IsOK(ecode7)) {
27063 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
27064 }
27065 arg7 = static_cast< int >(val7);
27066 }
27067 {
27068 PyThreadState* __tstate = wxPyBeginAllowThreads();
27069 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
27070 wxPyEndAllowThreads(__tstate);
27071 if (PyErr_Occurred()) SWIG_fail;
27072 }
27073 resultobj = SWIG_Py_Void();
27074 return resultobj;
27075 fail:
27076 return NULL;
27077 }
27078
27079
27080 SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27081 PyObject *resultobj = 0;
27082 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
27083 wxWindow *arg2 = (wxWindow *) 0 ;
27084 wxDC *arg3 = 0 ;
27085 wxRect *arg4 = 0 ;
27086 int arg5 = (int) 0 ;
27087 void *argp1 = 0 ;
27088 int res1 = 0 ;
27089 void *argp2 = 0 ;
27090 int res2 = 0 ;
27091 void *argp3 = 0 ;
27092 int res3 = 0 ;
27093 wxRect temp4 ;
27094 int val5 ;
27095 int ecode5 = 0 ;
27096 PyObject * obj0 = 0 ;
27097 PyObject * obj1 = 0 ;
27098 PyObject * obj2 = 0 ;
27099 PyObject * obj3 = 0 ;
27100 PyObject * obj4 = 0 ;
27101 char * kwnames[] = {
27102 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
27103 };
27104
27105 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27106 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
27107 if (!SWIG_IsOK(res1)) {
27108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
27109 }
27110 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
27111 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
27112 if (!SWIG_IsOK(res2)) {
27113 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
27114 }
27115 arg2 = reinterpret_cast< wxWindow * >(argp2);
27116 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
27117 if (!SWIG_IsOK(res3)) {
27118 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
27119 }
27120 if (!argp3) {
27121 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
27122 }
27123 arg3 = reinterpret_cast< wxDC * >(argp3);
27124 {
27125 arg4 = &temp4;
27126 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
27127 }
27128 if (obj4) {
27129 ecode5 = SWIG_AsVal_int(obj4, &val5);
27130 if (!SWIG_IsOK(ecode5)) {
27131 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
27132 }
27133 arg5 = static_cast< int >(val5);
27134 }
27135 {
27136 PyThreadState* __tstate = wxPyBeginAllowThreads();
27137 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
27138 wxPyEndAllowThreads(__tstate);
27139 if (PyErr_Occurred()) SWIG_fail;
27140 }
27141 resultobj = SWIG_Py_Void();
27142 return resultobj;
27143 fail:
27144 return NULL;
27145 }
27146
27147
27148 SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27149 PyObject *resultobj = 0;
27150 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
27151 wxWindow *arg2 = (wxWindow *) 0 ;
27152 wxDC *arg3 = 0 ;
27153 wxRect *arg4 = 0 ;
27154 int arg5 = (int) 0 ;
27155 void *argp1 = 0 ;
27156 int res1 = 0 ;
27157 void *argp2 = 0 ;
27158 int res2 = 0 ;
27159 void *argp3 = 0 ;
27160 int res3 = 0 ;
27161 wxRect temp4 ;
27162 int val5 ;
27163 int ecode5 = 0 ;
27164 PyObject * obj0 = 0 ;
27165 PyObject * obj1 = 0 ;
27166 PyObject * obj2 = 0 ;
27167 PyObject * obj3 = 0 ;
27168 PyObject * obj4 = 0 ;
27169 char * kwnames[] = {
27170 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
27171 };
27172
27173 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27174 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
27175 if (!SWIG_IsOK(res1)) {
27176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
27177 }
27178 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
27179 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
27180 if (!SWIG_IsOK(res2)) {
27181 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
27182 }
27183 arg2 = reinterpret_cast< wxWindow * >(argp2);
27184 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
27185 if (!SWIG_IsOK(res3)) {
27186 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
27187 }
27188 if (!argp3) {
27189 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
27190 }
27191 arg3 = reinterpret_cast< wxDC * >(argp3);
27192 {
27193 arg4 = &temp4;
27194 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
27195 }
27196 if (obj4) {
27197 ecode5 = SWIG_AsVal_int(obj4, &val5);
27198 if (!SWIG_IsOK(ecode5)) {
27199 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
27200 }
27201 arg5 = static_cast< int >(val5);
27202 }
27203 {
27204 PyThreadState* __tstate = wxPyBeginAllowThreads();
27205 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
27206 wxPyEndAllowThreads(__tstate);
27207 if (PyErr_Occurred()) SWIG_fail;
27208 }
27209 resultobj = SWIG_Py_Void();
27210 return resultobj;
27211 fail:
27212 return NULL;
27213 }
27214
27215
27216 SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27217 PyObject *resultobj = 0;
27218 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
27219 wxWindow *arg2 = (wxWindow *) 0 ;
27220 wxDC *arg3 = 0 ;
27221 wxRect *arg4 = 0 ;
27222 int arg5 = (int) 0 ;
27223 void *argp1 = 0 ;
27224 int res1 = 0 ;
27225 void *argp2 = 0 ;
27226 int res2 = 0 ;
27227 void *argp3 = 0 ;
27228 int res3 = 0 ;
27229 wxRect temp4 ;
27230 int val5 ;
27231 int ecode5 = 0 ;
27232 PyObject * obj0 = 0 ;
27233 PyObject * obj1 = 0 ;
27234 PyObject * obj2 = 0 ;
27235 PyObject * obj3 = 0 ;
27236 PyObject * obj4 = 0 ;
27237 char * kwnames[] = {
27238 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
27239 };
27240
27241 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27242 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
27243 if (!SWIG_IsOK(res1)) {
27244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
27245 }
27246 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
27247 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
27248 if (!SWIG_IsOK(res2)) {
27249 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
27250 }
27251 arg2 = reinterpret_cast< wxWindow * >(argp2);
27252 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
27253 if (!SWIG_IsOK(res3)) {
27254 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
27255 }
27256 if (!argp3) {
27257 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
27258 }
27259 arg3 = reinterpret_cast< wxDC * >(argp3);
27260 {
27261 arg4 = &temp4;
27262 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
27263 }
27264 if (obj4) {
27265 ecode5 = SWIG_AsVal_int(obj4, &val5);
27266 if (!SWIG_IsOK(ecode5)) {
27267 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
27268 }
27269 arg5 = static_cast< int >(val5);
27270 }
27271 {
27272 PyThreadState* __tstate = wxPyBeginAllowThreads();
27273 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
27274 wxPyEndAllowThreads(__tstate);
27275 if (PyErr_Occurred()) SWIG_fail;
27276 }
27277 resultobj = SWIG_Py_Void();
27278 return resultobj;
27279 fail:
27280 return NULL;
27281 }
27282
27283
27284 SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27285 PyObject *resultobj = 0;
27286 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
27287 wxWindow *arg2 = (wxWindow *) 0 ;
27288 wxDC *arg3 = 0 ;
27289 wxRect *arg4 = 0 ;
27290 int arg5 = (int) 0 ;
27291 void *argp1 = 0 ;
27292 int res1 = 0 ;
27293 void *argp2 = 0 ;
27294 int res2 = 0 ;
27295 void *argp3 = 0 ;
27296 int res3 = 0 ;
27297 wxRect temp4 ;
27298 int val5 ;
27299 int ecode5 = 0 ;
27300 PyObject * obj0 = 0 ;
27301 PyObject * obj1 = 0 ;
27302 PyObject * obj2 = 0 ;
27303 PyObject * obj3 = 0 ;
27304 PyObject * obj4 = 0 ;
27305 char * kwnames[] = {
27306 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
27307 };
27308
27309 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27310 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
27311 if (!SWIG_IsOK(res1)) {
27312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
27313 }
27314 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
27315 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
27316 if (!SWIG_IsOK(res2)) {
27317 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
27318 }
27319 arg2 = reinterpret_cast< wxWindow * >(argp2);
27320 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
27321 if (!SWIG_IsOK(res3)) {
27322 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
27323 }
27324 if (!argp3) {
27325 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
27326 }
27327 arg3 = reinterpret_cast< wxDC * >(argp3);
27328 {
27329 arg4 = &temp4;
27330 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
27331 }
27332 if (obj4) {
27333 ecode5 = SWIG_AsVal_int(obj4, &val5);
27334 if (!SWIG_IsOK(ecode5)) {
27335 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
27336 }
27337 arg5 = static_cast< int >(val5);
27338 }
27339 {
27340 PyThreadState* __tstate = wxPyBeginAllowThreads();
27341 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
27342 wxPyEndAllowThreads(__tstate);
27343 if (PyErr_Occurred()) SWIG_fail;
27344 }
27345 resultobj = SWIG_Py_Void();
27346 return resultobj;
27347 fail:
27348 return NULL;
27349 }
27350
27351
27352 SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27353 PyObject *resultobj = 0;
27354 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
27355 wxWindow *arg2 = (wxWindow *) 0 ;
27356 wxDC *arg3 = 0 ;
27357 wxRect *arg4 = 0 ;
27358 int arg5 = (int) 0 ;
27359 void *argp1 = 0 ;
27360 int res1 = 0 ;
27361 void *argp2 = 0 ;
27362 int res2 = 0 ;
27363 void *argp3 = 0 ;
27364 int res3 = 0 ;
27365 wxRect temp4 ;
27366 int val5 ;
27367 int ecode5 = 0 ;
27368 PyObject * obj0 = 0 ;
27369 PyObject * obj1 = 0 ;
27370 PyObject * obj2 = 0 ;
27371 PyObject * obj3 = 0 ;
27372 PyObject * obj4 = 0 ;
27373 char * kwnames[] = {
27374 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
27375 };
27376
27377 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27378 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
27379 if (!SWIG_IsOK(res1)) {
27380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
27381 }
27382 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
27383 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
27384 if (!SWIG_IsOK(res2)) {
27385 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
27386 }
27387 arg2 = reinterpret_cast< wxWindow * >(argp2);
27388 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
27389 if (!SWIG_IsOK(res3)) {
27390 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
27391 }
27392 if (!argp3) {
27393 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
27394 }
27395 arg3 = reinterpret_cast< wxDC * >(argp3);
27396 {
27397 arg4 = &temp4;
27398 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
27399 }
27400 if (obj4) {
27401 ecode5 = SWIG_AsVal_int(obj4, &val5);
27402 if (!SWIG_IsOK(ecode5)) {
27403 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
27404 }
27405 arg5 = static_cast< int >(val5);
27406 }
27407 {
27408 PyThreadState* __tstate = wxPyBeginAllowThreads();
27409 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
27410 wxPyEndAllowThreads(__tstate);
27411 if (PyErr_Occurred()) SWIG_fail;
27412 }
27413 resultobj = SWIG_Py_Void();
27414 return resultobj;
27415 fail:
27416 return NULL;
27417 }
27418
27419
27420 SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27421 PyObject *resultobj = 0;
27422 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
27423 wxWindow *arg2 = (wxWindow *) 0 ;
27424 SwigValueWrapper<wxSplitterRenderParams > result;
27425 void *argp1 = 0 ;
27426 int res1 = 0 ;
27427 void *argp2 = 0 ;
27428 int res2 = 0 ;
27429 PyObject * obj0 = 0 ;
27430 PyObject * obj1 = 0 ;
27431 char * kwnames[] = {
27432 (char *) "self",(char *) "win", NULL
27433 };
27434
27435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
27436 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
27437 if (!SWIG_IsOK(res1)) {
27438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
27439 }
27440 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
27441 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
27442 if (!SWIG_IsOK(res2)) {
27443 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
27444 }
27445 arg2 = reinterpret_cast< wxWindow * >(argp2);
27446 {
27447 PyThreadState* __tstate = wxPyBeginAllowThreads();
27448 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
27449 wxPyEndAllowThreads(__tstate);
27450 if (PyErr_Occurred()) SWIG_fail;
27451 }
27452 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
27453 return resultobj;
27454 fail:
27455 return NULL;
27456 }
27457
27458
27459 SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27460 PyObject *resultobj = 0;
27461 wxRendererNative *result = 0 ;
27462
27463 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
27464 {
27465 if (!wxPyCheckForApp()) SWIG_fail;
27466 PyThreadState* __tstate = wxPyBeginAllowThreads();
27467 {
27468 wxRendererNative &_result_ref = wxRendererNative::Get();
27469 result = (wxRendererNative *) &_result_ref;
27470 }
27471 wxPyEndAllowThreads(__tstate);
27472 if (PyErr_Occurred()) SWIG_fail;
27473 }
27474 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
27475 return resultobj;
27476 fail:
27477 return NULL;
27478 }
27479
27480
27481 SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27482 PyObject *resultobj = 0;
27483 wxRendererNative *result = 0 ;
27484
27485 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
27486 {
27487 if (!wxPyCheckForApp()) SWIG_fail;
27488 PyThreadState* __tstate = wxPyBeginAllowThreads();
27489 {
27490 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
27491 result = (wxRendererNative *) &_result_ref;
27492 }
27493 wxPyEndAllowThreads(__tstate);
27494 if (PyErr_Occurred()) SWIG_fail;
27495 }
27496 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
27497 return resultobj;
27498 fail:
27499 return NULL;
27500 }
27501
27502
27503 SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27504 PyObject *resultobj = 0;
27505 wxRendererNative *result = 0 ;
27506
27507 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
27508 {
27509 if (!wxPyCheckForApp()) SWIG_fail;
27510 PyThreadState* __tstate = wxPyBeginAllowThreads();
27511 {
27512 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
27513 result = (wxRendererNative *) &_result_ref;
27514 }
27515 wxPyEndAllowThreads(__tstate);
27516 if (PyErr_Occurred()) SWIG_fail;
27517 }
27518 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
27519 return resultobj;
27520 fail:
27521 return NULL;
27522 }
27523
27524
27525 SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27526 PyObject *resultobj = 0;
27527 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
27528 wxRendererNative *result = 0 ;
27529 void *argp1 = 0 ;
27530 int res1 = 0 ;
27531 PyObject * obj0 = 0 ;
27532 char * kwnames[] = {
27533 (char *) "renderer", NULL
27534 };
27535
27536 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
27537 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
27538 if (!SWIG_IsOK(res1)) {
27539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
27540 }
27541 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
27542 {
27543 if (!wxPyCheckForApp()) SWIG_fail;
27544 PyThreadState* __tstate = wxPyBeginAllowThreads();
27545 result = (wxRendererNative *)wxRendererNative::Set(arg1);
27546 wxPyEndAllowThreads(__tstate);
27547 if (PyErr_Occurred()) SWIG_fail;
27548 }
27549 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
27550 return resultobj;
27551 fail:
27552 return NULL;
27553 }
27554
27555
27556 SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27557 PyObject *resultobj = 0;
27558 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
27559 SwigValueWrapper<wxRendererVersion > result;
27560 void *argp1 = 0 ;
27561 int res1 = 0 ;
27562 PyObject *swig_obj[1] ;
27563
27564 if (!args) SWIG_fail;
27565 swig_obj[0] = args;
27566 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
27567 if (!SWIG_IsOK(res1)) {
27568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
27569 }
27570 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
27571 {
27572 PyThreadState* __tstate = wxPyBeginAllowThreads();
27573 result = ((wxRendererNative const *)arg1)->GetVersion();
27574 wxPyEndAllowThreads(__tstate);
27575 if (PyErr_Occurred()) SWIG_fail;
27576 }
27577 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
27578 return resultobj;
27579 fail:
27580 return NULL;
27581 }
27582
27583
27584 SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27585 PyObject *obj;
27586 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27587 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
27588 return SWIG_Py_Void();
27589 }
27590
27591 SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27592 PyObject *resultobj = 0;
27593 wxPseudoDC *result = 0 ;
27594
27595 if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail;
27596 {
27597 PyThreadState* __tstate = wxPyBeginAllowThreads();
27598 result = (wxPseudoDC *)new wxPseudoDC();
27599 wxPyEndAllowThreads(__tstate);
27600 if (PyErr_Occurred()) SWIG_fail;
27601 }
27602 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 );
27603 return resultobj;
27604 fail:
27605 return NULL;
27606 }
27607
27608
27609 SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27610 PyObject *resultobj = 0;
27611 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27612 void *argp1 = 0 ;
27613 int res1 = 0 ;
27614 PyObject *swig_obj[1] ;
27615
27616 if (!args) SWIG_fail;
27617 swig_obj[0] = args;
27618 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27619 if (!SWIG_IsOK(res1)) {
27620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27621 }
27622 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27623 {
27624 PyThreadState* __tstate = wxPyBeginAllowThreads();
27625 (arg1)->BeginDrawing();
27626 wxPyEndAllowThreads(__tstate);
27627 if (PyErr_Occurred()) SWIG_fail;
27628 }
27629 resultobj = SWIG_Py_Void();
27630 return resultobj;
27631 fail:
27632 return NULL;
27633 }
27634
27635
27636 SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27637 PyObject *resultobj = 0;
27638 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27639 void *argp1 = 0 ;
27640 int res1 = 0 ;
27641 PyObject *swig_obj[1] ;
27642
27643 if (!args) SWIG_fail;
27644 swig_obj[0] = args;
27645 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27646 if (!SWIG_IsOK(res1)) {
27647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27648 }
27649 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27650 {
27651 PyThreadState* __tstate = wxPyBeginAllowThreads();
27652 (arg1)->EndDrawing();
27653 wxPyEndAllowThreads(__tstate);
27654 if (PyErr_Occurred()) SWIG_fail;
27655 }
27656 resultobj = SWIG_Py_Void();
27657 return resultobj;
27658 fail:
27659 return NULL;
27660 }
27661
27662
27663 SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27664 PyObject *resultobj = 0;
27665 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27666 void *argp1 = 0 ;
27667 int res1 = 0 ;
27668 PyObject *swig_obj[1] ;
27669
27670 if (!args) SWIG_fail;
27671 swig_obj[0] = args;
27672 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 );
27673 if (!SWIG_IsOK(res1)) {
27674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27675 }
27676 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27677 {
27678 PyThreadState* __tstate = wxPyBeginAllowThreads();
27679 delete arg1;
27680
27681 wxPyEndAllowThreads(__tstate);
27682 if (PyErr_Occurred()) SWIG_fail;
27683 }
27684 resultobj = SWIG_Py_Void();
27685 return resultobj;
27686 fail:
27687 return NULL;
27688 }
27689
27690
27691 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27692 PyObject *resultobj = 0;
27693 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27694 void *argp1 = 0 ;
27695 int res1 = 0 ;
27696 PyObject *swig_obj[1] ;
27697
27698 if (!args) SWIG_fail;
27699 swig_obj[0] = args;
27700 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27701 if (!SWIG_IsOK(res1)) {
27702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27703 }
27704 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27705 {
27706 PyThreadState* __tstate = wxPyBeginAllowThreads();
27707 (arg1)->RemoveAll();
27708 wxPyEndAllowThreads(__tstate);
27709 if (PyErr_Occurred()) SWIG_fail;
27710 }
27711 resultobj = SWIG_Py_Void();
27712 return resultobj;
27713 fail:
27714 return NULL;
27715 }
27716
27717
27718 SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27719 PyObject *resultobj = 0;
27720 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27721 int result;
27722 void *argp1 = 0 ;
27723 int res1 = 0 ;
27724 PyObject *swig_obj[1] ;
27725
27726 if (!args) SWIG_fail;
27727 swig_obj[0] = args;
27728 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27729 if (!SWIG_IsOK(res1)) {
27730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27731 }
27732 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27733 {
27734 PyThreadState* __tstate = wxPyBeginAllowThreads();
27735 result = (int)(arg1)->GetLen();
27736 wxPyEndAllowThreads(__tstate);
27737 if (PyErr_Occurred()) SWIG_fail;
27738 }
27739 resultobj = SWIG_From_int(static_cast< int >(result));
27740 return resultobj;
27741 fail:
27742 return NULL;
27743 }
27744
27745
27746 SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27747 PyObject *resultobj = 0;
27748 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27749 int arg2 ;
27750 void *argp1 = 0 ;
27751 int res1 = 0 ;
27752 int val2 ;
27753 int ecode2 = 0 ;
27754 PyObject * obj0 = 0 ;
27755 PyObject * obj1 = 0 ;
27756 char * kwnames[] = {
27757 (char *) "self",(char *) "id", NULL
27758 };
27759
27760 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
27761 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27762 if (!SWIG_IsOK(res1)) {
27763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27764 }
27765 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27766 ecode2 = SWIG_AsVal_int(obj1, &val2);
27767 if (!SWIG_IsOK(ecode2)) {
27768 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'");
27769 }
27770 arg2 = static_cast< int >(val2);
27771 {
27772 PyThreadState* __tstate = wxPyBeginAllowThreads();
27773 (arg1)->SetId(arg2);
27774 wxPyEndAllowThreads(__tstate);
27775 if (PyErr_Occurred()) SWIG_fail;
27776 }
27777 resultobj = SWIG_Py_Void();
27778 return resultobj;
27779 fail:
27780 return NULL;
27781 }
27782
27783
27784 SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27785 PyObject *resultobj = 0;
27786 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27787 int arg2 ;
27788 void *argp1 = 0 ;
27789 int res1 = 0 ;
27790 int val2 ;
27791 int ecode2 = 0 ;
27792 PyObject * obj0 = 0 ;
27793 PyObject * obj1 = 0 ;
27794 char * kwnames[] = {
27795 (char *) "self",(char *) "id", NULL
27796 };
27797
27798 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail;
27799 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27800 if (!SWIG_IsOK(res1)) {
27801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27802 }
27803 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27804 ecode2 = SWIG_AsVal_int(obj1, &val2);
27805 if (!SWIG_IsOK(ecode2)) {
27806 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'");
27807 }
27808 arg2 = static_cast< int >(val2);
27809 {
27810 PyThreadState* __tstate = wxPyBeginAllowThreads();
27811 (arg1)->ClearId(arg2);
27812 wxPyEndAllowThreads(__tstate);
27813 if (PyErr_Occurred()) SWIG_fail;
27814 }
27815 resultobj = SWIG_Py_Void();
27816 return resultobj;
27817 fail:
27818 return NULL;
27819 }
27820
27821
27822 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27823 PyObject *resultobj = 0;
27824 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27825 int arg2 ;
27826 void *argp1 = 0 ;
27827 int res1 = 0 ;
27828 int val2 ;
27829 int ecode2 = 0 ;
27830 PyObject * obj0 = 0 ;
27831 PyObject * obj1 = 0 ;
27832 char * kwnames[] = {
27833 (char *) "self",(char *) "id", NULL
27834 };
27835
27836 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail;
27837 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27838 if (!SWIG_IsOK(res1)) {
27839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27840 }
27841 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27842 ecode2 = SWIG_AsVal_int(obj1, &val2);
27843 if (!SWIG_IsOK(ecode2)) {
27844 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'");
27845 }
27846 arg2 = static_cast< int >(val2);
27847 {
27848 PyThreadState* __tstate = wxPyBeginAllowThreads();
27849 (arg1)->RemoveId(arg2);
27850 wxPyEndAllowThreads(__tstate);
27851 if (PyErr_Occurred()) SWIG_fail;
27852 }
27853 resultobj = SWIG_Py_Void();
27854 return resultobj;
27855 fail:
27856 return NULL;
27857 }
27858
27859
27860 SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27861 PyObject *resultobj = 0;
27862 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27863 int arg2 ;
27864 int arg3 ;
27865 int arg4 ;
27866 void *argp1 = 0 ;
27867 int res1 = 0 ;
27868 int val2 ;
27869 int ecode2 = 0 ;
27870 int val3 ;
27871 int ecode3 = 0 ;
27872 int val4 ;
27873 int ecode4 = 0 ;
27874 PyObject * obj0 = 0 ;
27875 PyObject * obj1 = 0 ;
27876 PyObject * obj2 = 0 ;
27877 PyObject * obj3 = 0 ;
27878 char * kwnames[] = {
27879 (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL
27880 };
27881
27882 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27883 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27884 if (!SWIG_IsOK(res1)) {
27885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27886 }
27887 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27888 ecode2 = SWIG_AsVal_int(obj1, &val2);
27889 if (!SWIG_IsOK(ecode2)) {
27890 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'");
27891 }
27892 arg2 = static_cast< int >(val2);
27893 ecode3 = SWIG_AsVal_int(obj2, &val3);
27894 if (!SWIG_IsOK(ecode3)) {
27895 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'");
27896 }
27897 arg3 = static_cast< int >(val3);
27898 ecode4 = SWIG_AsVal_int(obj3, &val4);
27899 if (!SWIG_IsOK(ecode4)) {
27900 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'");
27901 }
27902 arg4 = static_cast< int >(val4);
27903 {
27904 PyThreadState* __tstate = wxPyBeginAllowThreads();
27905 (arg1)->TranslateId(arg2,arg3,arg4);
27906 wxPyEndAllowThreads(__tstate);
27907 if (PyErr_Occurred()) SWIG_fail;
27908 }
27909 resultobj = SWIG_Py_Void();
27910 return resultobj;
27911 fail:
27912 return NULL;
27913 }
27914
27915
27916 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27917 PyObject *resultobj = 0;
27918 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27919 int arg2 ;
27920 wxDC *arg3 = (wxDC *) 0 ;
27921 void *argp1 = 0 ;
27922 int res1 = 0 ;
27923 int val2 ;
27924 int ecode2 = 0 ;
27925 void *argp3 = 0 ;
27926 int res3 = 0 ;
27927 PyObject * obj0 = 0 ;
27928 PyObject * obj1 = 0 ;
27929 PyObject * obj2 = 0 ;
27930 char * kwnames[] = {
27931 (char *) "self",(char *) "id",(char *) "dc", NULL
27932 };
27933
27934 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27935 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27936 if (!SWIG_IsOK(res1)) {
27937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27938 }
27939 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27940 ecode2 = SWIG_AsVal_int(obj1, &val2);
27941 if (!SWIG_IsOK(ecode2)) {
27942 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'");
27943 }
27944 arg2 = static_cast< int >(val2);
27945 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 );
27946 if (!SWIG_IsOK(res3)) {
27947 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'");
27948 }
27949 arg3 = reinterpret_cast< wxDC * >(argp3);
27950 {
27951 PyThreadState* __tstate = wxPyBeginAllowThreads();
27952 (arg1)->DrawIdToDC(arg2,arg3);
27953 wxPyEndAllowThreads(__tstate);
27954 if (PyErr_Occurred()) SWIG_fail;
27955 }
27956 resultobj = SWIG_Py_Void();
27957 return resultobj;
27958 fail:
27959 return NULL;
27960 }
27961
27962
27963 SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27964 PyObject *resultobj = 0;
27965 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27966 int arg2 ;
27967 wxRect *arg3 = 0 ;
27968 void *argp1 = 0 ;
27969 int res1 = 0 ;
27970 int val2 ;
27971 int ecode2 = 0 ;
27972 wxRect temp3 ;
27973 PyObject * obj0 = 0 ;
27974 PyObject * obj1 = 0 ;
27975 PyObject * obj2 = 0 ;
27976 char * kwnames[] = {
27977 (char *) "self",(char *) "id",(char *) "rect", NULL
27978 };
27979
27980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27981 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27982 if (!SWIG_IsOK(res1)) {
27983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27984 }
27985 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27986 ecode2 = SWIG_AsVal_int(obj1, &val2);
27987 if (!SWIG_IsOK(ecode2)) {
27988 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'");
27989 }
27990 arg2 = static_cast< int >(val2);
27991 {
27992 arg3 = &temp3;
27993 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
27994 }
27995 {
27996 PyThreadState* __tstate = wxPyBeginAllowThreads();
27997 (arg1)->SetIdBounds(arg2,*arg3);
27998 wxPyEndAllowThreads(__tstate);
27999 if (PyErr_Occurred()) SWIG_fail;
28000 }
28001 resultobj = SWIG_Py_Void();
28002 return resultobj;
28003 fail:
28004 return NULL;
28005 }
28006
28007
28008 SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28009 PyObject *resultobj = 0;
28010 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28011 int arg2 ;
28012 wxRect result;
28013 void *argp1 = 0 ;
28014 int res1 = 0 ;
28015 int val2 ;
28016 int ecode2 = 0 ;
28017 PyObject * obj0 = 0 ;
28018 PyObject * obj1 = 0 ;
28019 char * kwnames[] = {
28020 (char *) "self",(char *) "id", NULL
28021 };
28022
28023 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail;
28024 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28025 if (!SWIG_IsOK(res1)) {
28026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28027 }
28028 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28029 ecode2 = SWIG_AsVal_int(obj1, &val2);
28030 if (!SWIG_IsOK(ecode2)) {
28031 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'");
28032 }
28033 arg2 = static_cast< int >(val2);
28034 {
28035 PyThreadState* __tstate = wxPyBeginAllowThreads();
28036 result = wxPseudoDC_GetIdBounds(arg1,arg2);
28037 wxPyEndAllowThreads(__tstate);
28038 if (PyErr_Occurred()) SWIG_fail;
28039 }
28040 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
28041 return resultobj;
28042 fail:
28043 return NULL;
28044 }
28045
28046
28047 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28048 PyObject *resultobj = 0;
28049 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28050 wxDC *arg2 = (wxDC *) 0 ;
28051 wxRect *arg3 = 0 ;
28052 void *argp1 = 0 ;
28053 int res1 = 0 ;
28054 void *argp2 = 0 ;
28055 int res2 = 0 ;
28056 wxRect temp3 ;
28057 PyObject * obj0 = 0 ;
28058 PyObject * obj1 = 0 ;
28059 PyObject * obj2 = 0 ;
28060 char * kwnames[] = {
28061 (char *) "self",(char *) "dc",(char *) "rect", NULL
28062 };
28063
28064 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28065 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28066 if (!SWIG_IsOK(res1)) {
28067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28068 }
28069 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28070 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
28071 if (!SWIG_IsOK(res2)) {
28072 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'");
28073 }
28074 arg2 = reinterpret_cast< wxDC * >(argp2);
28075 {
28076 arg3 = &temp3;
28077 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
28078 }
28079 {
28080 PyThreadState* __tstate = wxPyBeginAllowThreads();
28081 (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3);
28082 wxPyEndAllowThreads(__tstate);
28083 if (PyErr_Occurred()) SWIG_fail;
28084 }
28085 resultobj = SWIG_Py_Void();
28086 return resultobj;
28087 fail:
28088 return NULL;
28089 }
28090
28091
28092 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28093 PyObject *resultobj = 0;
28094 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28095 wxDC *arg2 = (wxDC *) 0 ;
28096 wxRegion *arg3 = 0 ;
28097 void *argp1 = 0 ;
28098 int res1 = 0 ;
28099 void *argp2 = 0 ;
28100 int res2 = 0 ;
28101 void *argp3 = 0 ;
28102 int res3 = 0 ;
28103 PyObject * obj0 = 0 ;
28104 PyObject * obj1 = 0 ;
28105 PyObject * obj2 = 0 ;
28106 char * kwnames[] = {
28107 (char *) "self",(char *) "dc",(char *) "region", NULL
28108 };
28109
28110 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28111 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28112 if (!SWIG_IsOK(res1)) {
28113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28114 }
28115 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28116 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
28117 if (!SWIG_IsOK(res2)) {
28118 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'");
28119 }
28120 arg2 = reinterpret_cast< wxDC * >(argp2);
28121 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0);
28122 if (!SWIG_IsOK(res3)) {
28123 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
28124 }
28125 if (!argp3) {
28126 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
28127 }
28128 arg3 = reinterpret_cast< wxRegion * >(argp3);
28129 {
28130 PyThreadState* __tstate = wxPyBeginAllowThreads();
28131 (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3);
28132 wxPyEndAllowThreads(__tstate);
28133 if (PyErr_Occurred()) SWIG_fail;
28134 }
28135 resultobj = SWIG_Py_Void();
28136 return resultobj;
28137 fail:
28138 return NULL;
28139 }
28140
28141
28142 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28143 PyObject *resultobj = 0;
28144 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28145 wxDC *arg2 = (wxDC *) 0 ;
28146 void *argp1 = 0 ;
28147 int res1 = 0 ;
28148 void *argp2 = 0 ;
28149 int res2 = 0 ;
28150 PyObject * obj0 = 0 ;
28151 PyObject * obj1 = 0 ;
28152 char * kwnames[] = {
28153 (char *) "self",(char *) "dc", NULL
28154 };
28155
28156 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail;
28157 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28158 if (!SWIG_IsOK(res1)) {
28159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28160 }
28161 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28162 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
28163 if (!SWIG_IsOK(res2)) {
28164 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'");
28165 }
28166 arg2 = reinterpret_cast< wxDC * >(argp2);
28167 {
28168 PyThreadState* __tstate = wxPyBeginAllowThreads();
28169 (arg1)->DrawToDC(arg2);
28170 wxPyEndAllowThreads(__tstate);
28171 if (PyErr_Occurred()) SWIG_fail;
28172 }
28173 resultobj = SWIG_Py_Void();
28174 return resultobj;
28175 fail:
28176 return NULL;
28177 }
28178
28179
28180 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28181 PyObject *resultobj = 0;
28182 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28183 int arg2 ;
28184 int arg3 ;
28185 wxColour *arg4 = 0 ;
28186 int arg5 = (int) wxFLOOD_SURFACE ;
28187 void *argp1 = 0 ;
28188 int res1 = 0 ;
28189 int val2 ;
28190 int ecode2 = 0 ;
28191 int val3 ;
28192 int ecode3 = 0 ;
28193 wxColour temp4 ;
28194 int val5 ;
28195 int ecode5 = 0 ;
28196 PyObject * obj0 = 0 ;
28197 PyObject * obj1 = 0 ;
28198 PyObject * obj2 = 0 ;
28199 PyObject * obj3 = 0 ;
28200 PyObject * obj4 = 0 ;
28201 char * kwnames[] = {
28202 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
28203 };
28204
28205 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28206 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28207 if (!SWIG_IsOK(res1)) {
28208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28209 }
28210 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28211 ecode2 = SWIG_AsVal_int(obj1, &val2);
28212 if (!SWIG_IsOK(ecode2)) {
28213 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'");
28214 }
28215 arg2 = static_cast< int >(val2);
28216 ecode3 = SWIG_AsVal_int(obj2, &val3);
28217 if (!SWIG_IsOK(ecode3)) {
28218 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'");
28219 }
28220 arg3 = static_cast< int >(val3);
28221 {
28222 arg4 = &temp4;
28223 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
28224 }
28225 if (obj4) {
28226 ecode5 = SWIG_AsVal_int(obj4, &val5);
28227 if (!SWIG_IsOK(ecode5)) {
28228 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'");
28229 }
28230 arg5 = static_cast< int >(val5);
28231 }
28232 {
28233 PyThreadState* __tstate = wxPyBeginAllowThreads();
28234 (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
28235 wxPyEndAllowThreads(__tstate);
28236 if (PyErr_Occurred()) SWIG_fail;
28237 }
28238 resultobj = SWIG_Py_Void();
28239 return resultobj;
28240 fail:
28241 return NULL;
28242 }
28243
28244
28245 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28246 PyObject *resultobj = 0;
28247 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28248 wxPoint *arg2 = 0 ;
28249 wxColour *arg3 = 0 ;
28250 int arg4 = (int) wxFLOOD_SURFACE ;
28251 void *argp1 = 0 ;
28252 int res1 = 0 ;
28253 wxPoint temp2 ;
28254 wxColour temp3 ;
28255 int val4 ;
28256 int ecode4 = 0 ;
28257 PyObject * obj0 = 0 ;
28258 PyObject * obj1 = 0 ;
28259 PyObject * obj2 = 0 ;
28260 PyObject * obj3 = 0 ;
28261 char * kwnames[] = {
28262 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
28263 };
28264
28265 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
28266 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28267 if (!SWIG_IsOK(res1)) {
28268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28269 }
28270 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28271 {
28272 arg2 = &temp2;
28273 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
28274 }
28275 {
28276 arg3 = &temp3;
28277 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
28278 }
28279 if (obj3) {
28280 ecode4 = SWIG_AsVal_int(obj3, &val4);
28281 if (!SWIG_IsOK(ecode4)) {
28282 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
28283 }
28284 arg4 = static_cast< int >(val4);
28285 }
28286 {
28287 PyThreadState* __tstate = wxPyBeginAllowThreads();
28288 (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
28289 wxPyEndAllowThreads(__tstate);
28290 if (PyErr_Occurred()) SWIG_fail;
28291 }
28292 resultobj = SWIG_Py_Void();
28293 return resultobj;
28294 fail:
28295 return NULL;
28296 }
28297
28298
28299 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28300 PyObject *resultobj = 0;
28301 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28302 int arg2 ;
28303 int arg3 ;
28304 int arg4 ;
28305 int arg5 ;
28306 void *argp1 = 0 ;
28307 int res1 = 0 ;
28308 int val2 ;
28309 int ecode2 = 0 ;
28310 int val3 ;
28311 int ecode3 = 0 ;
28312 int val4 ;
28313 int ecode4 = 0 ;
28314 int val5 ;
28315 int ecode5 = 0 ;
28316 PyObject * obj0 = 0 ;
28317 PyObject * obj1 = 0 ;
28318 PyObject * obj2 = 0 ;
28319 PyObject * obj3 = 0 ;
28320 PyObject * obj4 = 0 ;
28321 char * kwnames[] = {
28322 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
28323 };
28324
28325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28326 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28327 if (!SWIG_IsOK(res1)) {
28328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28329 }
28330 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28331 ecode2 = SWIG_AsVal_int(obj1, &val2);
28332 if (!SWIG_IsOK(ecode2)) {
28333 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'");
28334 }
28335 arg2 = static_cast< int >(val2);
28336 ecode3 = SWIG_AsVal_int(obj2, &val3);
28337 if (!SWIG_IsOK(ecode3)) {
28338 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'");
28339 }
28340 arg3 = static_cast< int >(val3);
28341 ecode4 = SWIG_AsVal_int(obj3, &val4);
28342 if (!SWIG_IsOK(ecode4)) {
28343 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'");
28344 }
28345 arg4 = static_cast< int >(val4);
28346 ecode5 = SWIG_AsVal_int(obj4, &val5);
28347 if (!SWIG_IsOK(ecode5)) {
28348 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'");
28349 }
28350 arg5 = static_cast< int >(val5);
28351 {
28352 PyThreadState* __tstate = wxPyBeginAllowThreads();
28353 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
28354 wxPyEndAllowThreads(__tstate);
28355 if (PyErr_Occurred()) SWIG_fail;
28356 }
28357 resultobj = SWIG_Py_Void();
28358 return resultobj;
28359 fail:
28360 return NULL;
28361 }
28362
28363
28364 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28365 PyObject *resultobj = 0;
28366 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28367 wxPoint *arg2 = 0 ;
28368 wxPoint *arg3 = 0 ;
28369 void *argp1 = 0 ;
28370 int res1 = 0 ;
28371 wxPoint temp2 ;
28372 wxPoint temp3 ;
28373 PyObject * obj0 = 0 ;
28374 PyObject * obj1 = 0 ;
28375 PyObject * obj2 = 0 ;
28376 char * kwnames[] = {
28377 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
28378 };
28379
28380 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28381 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28382 if (!SWIG_IsOK(res1)) {
28383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28384 }
28385 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28386 {
28387 arg2 = &temp2;
28388 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
28389 }
28390 {
28391 arg3 = &temp3;
28392 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
28393 }
28394 {
28395 PyThreadState* __tstate = wxPyBeginAllowThreads();
28396 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
28397 wxPyEndAllowThreads(__tstate);
28398 if (PyErr_Occurred()) SWIG_fail;
28399 }
28400 resultobj = SWIG_Py_Void();
28401 return resultobj;
28402 fail:
28403 return NULL;
28404 }
28405
28406
28407 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28408 PyObject *resultobj = 0;
28409 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28410 int arg2 ;
28411 int arg3 ;
28412 void *argp1 = 0 ;
28413 int res1 = 0 ;
28414 int val2 ;
28415 int ecode2 = 0 ;
28416 int val3 ;
28417 int ecode3 = 0 ;
28418 PyObject * obj0 = 0 ;
28419 PyObject * obj1 = 0 ;
28420 PyObject * obj2 = 0 ;
28421 char * kwnames[] = {
28422 (char *) "self",(char *) "x",(char *) "y", NULL
28423 };
28424
28425 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28426 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28427 if (!SWIG_IsOK(res1)) {
28428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28429 }
28430 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28431 ecode2 = SWIG_AsVal_int(obj1, &val2);
28432 if (!SWIG_IsOK(ecode2)) {
28433 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'");
28434 }
28435 arg2 = static_cast< int >(val2);
28436 ecode3 = SWIG_AsVal_int(obj2, &val3);
28437 if (!SWIG_IsOK(ecode3)) {
28438 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'");
28439 }
28440 arg3 = static_cast< int >(val3);
28441 {
28442 PyThreadState* __tstate = wxPyBeginAllowThreads();
28443 (arg1)->CrossHair(arg2,arg3);
28444 wxPyEndAllowThreads(__tstate);
28445 if (PyErr_Occurred()) SWIG_fail;
28446 }
28447 resultobj = SWIG_Py_Void();
28448 return resultobj;
28449 fail:
28450 return NULL;
28451 }
28452
28453
28454 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28455 PyObject *resultobj = 0;
28456 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28457 wxPoint *arg2 = 0 ;
28458 void *argp1 = 0 ;
28459 int res1 = 0 ;
28460 wxPoint temp2 ;
28461 PyObject * obj0 = 0 ;
28462 PyObject * obj1 = 0 ;
28463 char * kwnames[] = {
28464 (char *) "self",(char *) "pt", NULL
28465 };
28466
28467 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
28468 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28469 if (!SWIG_IsOK(res1)) {
28470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28471 }
28472 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28473 {
28474 arg2 = &temp2;
28475 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
28476 }
28477 {
28478 PyThreadState* __tstate = wxPyBeginAllowThreads();
28479 (arg1)->CrossHair((wxPoint const &)*arg2);
28480 wxPyEndAllowThreads(__tstate);
28481 if (PyErr_Occurred()) SWIG_fail;
28482 }
28483 resultobj = SWIG_Py_Void();
28484 return resultobj;
28485 fail:
28486 return NULL;
28487 }
28488
28489
28490 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28491 PyObject *resultobj = 0;
28492 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28493 int arg2 ;
28494 int arg3 ;
28495 int arg4 ;
28496 int arg5 ;
28497 int arg6 ;
28498 int arg7 ;
28499 void *argp1 = 0 ;
28500 int res1 = 0 ;
28501 int val2 ;
28502 int ecode2 = 0 ;
28503 int val3 ;
28504 int ecode3 = 0 ;
28505 int val4 ;
28506 int ecode4 = 0 ;
28507 int val5 ;
28508 int ecode5 = 0 ;
28509 int val6 ;
28510 int ecode6 = 0 ;
28511 int val7 ;
28512 int ecode7 = 0 ;
28513 PyObject * obj0 = 0 ;
28514 PyObject * obj1 = 0 ;
28515 PyObject * obj2 = 0 ;
28516 PyObject * obj3 = 0 ;
28517 PyObject * obj4 = 0 ;
28518 PyObject * obj5 = 0 ;
28519 PyObject * obj6 = 0 ;
28520 char * kwnames[] = {
28521 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
28522 };
28523
28524 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28525 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28526 if (!SWIG_IsOK(res1)) {
28527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28528 }
28529 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28530 ecode2 = SWIG_AsVal_int(obj1, &val2);
28531 if (!SWIG_IsOK(ecode2)) {
28532 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'");
28533 }
28534 arg2 = static_cast< int >(val2);
28535 ecode3 = SWIG_AsVal_int(obj2, &val3);
28536 if (!SWIG_IsOK(ecode3)) {
28537 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'");
28538 }
28539 arg3 = static_cast< int >(val3);
28540 ecode4 = SWIG_AsVal_int(obj3, &val4);
28541 if (!SWIG_IsOK(ecode4)) {
28542 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'");
28543 }
28544 arg4 = static_cast< int >(val4);
28545 ecode5 = SWIG_AsVal_int(obj4, &val5);
28546 if (!SWIG_IsOK(ecode5)) {
28547 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'");
28548 }
28549 arg5 = static_cast< int >(val5);
28550 ecode6 = SWIG_AsVal_int(obj5, &val6);
28551 if (!SWIG_IsOK(ecode6)) {
28552 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'");
28553 }
28554 arg6 = static_cast< int >(val6);
28555 ecode7 = SWIG_AsVal_int(obj6, &val7);
28556 if (!SWIG_IsOK(ecode7)) {
28557 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'");
28558 }
28559 arg7 = static_cast< int >(val7);
28560 {
28561 PyThreadState* __tstate = wxPyBeginAllowThreads();
28562 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
28563 wxPyEndAllowThreads(__tstate);
28564 if (PyErr_Occurred()) SWIG_fail;
28565 }
28566 resultobj = SWIG_Py_Void();
28567 return resultobj;
28568 fail:
28569 return NULL;
28570 }
28571
28572
28573 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28574 PyObject *resultobj = 0;
28575 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28576 wxPoint *arg2 = 0 ;
28577 wxPoint *arg3 = 0 ;
28578 wxPoint *arg4 = 0 ;
28579 void *argp1 = 0 ;
28580 int res1 = 0 ;
28581 wxPoint temp2 ;
28582 wxPoint temp3 ;
28583 wxPoint temp4 ;
28584 PyObject * obj0 = 0 ;
28585 PyObject * obj1 = 0 ;
28586 PyObject * obj2 = 0 ;
28587 PyObject * obj3 = 0 ;
28588 char * kwnames[] = {
28589 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
28590 };
28591
28592 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
28593 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28594 if (!SWIG_IsOK(res1)) {
28595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28596 }
28597 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28598 {
28599 arg2 = &temp2;
28600 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
28601 }
28602 {
28603 arg3 = &temp3;
28604 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
28605 }
28606 {
28607 arg4 = &temp4;
28608 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
28609 }
28610 {
28611 PyThreadState* __tstate = wxPyBeginAllowThreads();
28612 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
28613 wxPyEndAllowThreads(__tstate);
28614 if (PyErr_Occurred()) SWIG_fail;
28615 }
28616 resultobj = SWIG_Py_Void();
28617 return resultobj;
28618 fail:
28619 return NULL;
28620 }
28621
28622
28623 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28624 PyObject *resultobj = 0;
28625 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28626 int arg2 ;
28627 int arg3 ;
28628 int arg4 ;
28629 int arg5 ;
28630 void *argp1 = 0 ;
28631 int res1 = 0 ;
28632 int val2 ;
28633 int ecode2 = 0 ;
28634 int val3 ;
28635 int ecode3 = 0 ;
28636 int val4 ;
28637 int ecode4 = 0 ;
28638 int val5 ;
28639 int ecode5 = 0 ;
28640 PyObject * obj0 = 0 ;
28641 PyObject * obj1 = 0 ;
28642 PyObject * obj2 = 0 ;
28643 PyObject * obj3 = 0 ;
28644 PyObject * obj4 = 0 ;
28645 char * kwnames[] = {
28646 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
28647 };
28648
28649 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28650 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28651 if (!SWIG_IsOK(res1)) {
28652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28653 }
28654 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28655 ecode2 = SWIG_AsVal_int(obj1, &val2);
28656 if (!SWIG_IsOK(ecode2)) {
28657 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
28658 }
28659 arg2 = static_cast< int >(val2);
28660 ecode3 = SWIG_AsVal_int(obj2, &val3);
28661 if (!SWIG_IsOK(ecode3)) {
28662 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
28663 }
28664 arg3 = static_cast< int >(val3);
28665 ecode4 = SWIG_AsVal_int(obj3, &val4);
28666 if (!SWIG_IsOK(ecode4)) {
28667 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
28668 }
28669 arg4 = static_cast< int >(val4);
28670 ecode5 = SWIG_AsVal_int(obj4, &val5);
28671 if (!SWIG_IsOK(ecode5)) {
28672 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
28673 }
28674 arg5 = static_cast< int >(val5);
28675 {
28676 PyThreadState* __tstate = wxPyBeginAllowThreads();
28677 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
28678 wxPyEndAllowThreads(__tstate);
28679 if (PyErr_Occurred()) SWIG_fail;
28680 }
28681 resultobj = SWIG_Py_Void();
28682 return resultobj;
28683 fail:
28684 return NULL;
28685 }
28686
28687
28688 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28689 PyObject *resultobj = 0;
28690 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28691 wxRect *arg2 = 0 ;
28692 void *argp1 = 0 ;
28693 int res1 = 0 ;
28694 wxRect temp2 ;
28695 PyObject * obj0 = 0 ;
28696 PyObject * obj1 = 0 ;
28697 char * kwnames[] = {
28698 (char *) "self",(char *) "rect", NULL
28699 };
28700
28701 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
28702 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28703 if (!SWIG_IsOK(res1)) {
28704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28705 }
28706 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28707 {
28708 arg2 = &temp2;
28709 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
28710 }
28711 {
28712 PyThreadState* __tstate = wxPyBeginAllowThreads();
28713 (arg1)->DrawCheckMark((wxRect const &)*arg2);
28714 wxPyEndAllowThreads(__tstate);
28715 if (PyErr_Occurred()) SWIG_fail;
28716 }
28717 resultobj = SWIG_Py_Void();
28718 return resultobj;
28719 fail:
28720 return NULL;
28721 }
28722
28723
28724 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28725 PyObject *resultobj = 0;
28726 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28727 int arg2 ;
28728 int arg3 ;
28729 int arg4 ;
28730 int arg5 ;
28731 double arg6 ;
28732 double arg7 ;
28733 void *argp1 = 0 ;
28734 int res1 = 0 ;
28735 int val2 ;
28736 int ecode2 = 0 ;
28737 int val3 ;
28738 int ecode3 = 0 ;
28739 int val4 ;
28740 int ecode4 = 0 ;
28741 int val5 ;
28742 int ecode5 = 0 ;
28743 double val6 ;
28744 int ecode6 = 0 ;
28745 double val7 ;
28746 int ecode7 = 0 ;
28747 PyObject * obj0 = 0 ;
28748 PyObject * obj1 = 0 ;
28749 PyObject * obj2 = 0 ;
28750 PyObject * obj3 = 0 ;
28751 PyObject * obj4 = 0 ;
28752 PyObject * obj5 = 0 ;
28753 PyObject * obj6 = 0 ;
28754 char * kwnames[] = {
28755 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
28756 };
28757
28758 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28759 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28760 if (!SWIG_IsOK(res1)) {
28761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28762 }
28763 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28764 ecode2 = SWIG_AsVal_int(obj1, &val2);
28765 if (!SWIG_IsOK(ecode2)) {
28766 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
28767 }
28768 arg2 = static_cast< int >(val2);
28769 ecode3 = SWIG_AsVal_int(obj2, &val3);
28770 if (!SWIG_IsOK(ecode3)) {
28771 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
28772 }
28773 arg3 = static_cast< int >(val3);
28774 ecode4 = SWIG_AsVal_int(obj3, &val4);
28775 if (!SWIG_IsOK(ecode4)) {
28776 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
28777 }
28778 arg4 = static_cast< int >(val4);
28779 ecode5 = SWIG_AsVal_int(obj4, &val5);
28780 if (!SWIG_IsOK(ecode5)) {
28781 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
28782 }
28783 arg5 = static_cast< int >(val5);
28784 ecode6 = SWIG_AsVal_double(obj5, &val6);
28785 if (!SWIG_IsOK(ecode6)) {
28786 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
28787 }
28788 arg6 = static_cast< double >(val6);
28789 ecode7 = SWIG_AsVal_double(obj6, &val7);
28790 if (!SWIG_IsOK(ecode7)) {
28791 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
28792 }
28793 arg7 = static_cast< double >(val7);
28794 {
28795 PyThreadState* __tstate = wxPyBeginAllowThreads();
28796 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
28797 wxPyEndAllowThreads(__tstate);
28798 if (PyErr_Occurred()) SWIG_fail;
28799 }
28800 resultobj = SWIG_Py_Void();
28801 return resultobj;
28802 fail:
28803 return NULL;
28804 }
28805
28806
28807 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28808 PyObject *resultobj = 0;
28809 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28810 wxPoint *arg2 = 0 ;
28811 wxSize *arg3 = 0 ;
28812 double arg4 ;
28813 double arg5 ;
28814 void *argp1 = 0 ;
28815 int res1 = 0 ;
28816 wxPoint temp2 ;
28817 wxSize temp3 ;
28818 double val4 ;
28819 int ecode4 = 0 ;
28820 double val5 ;
28821 int ecode5 = 0 ;
28822 PyObject * obj0 = 0 ;
28823 PyObject * obj1 = 0 ;
28824 PyObject * obj2 = 0 ;
28825 PyObject * obj3 = 0 ;
28826 PyObject * obj4 = 0 ;
28827 char * kwnames[] = {
28828 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
28829 };
28830
28831 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28832 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28833 if (!SWIG_IsOK(res1)) {
28834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28835 }
28836 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28837 {
28838 arg2 = &temp2;
28839 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
28840 }
28841 {
28842 arg3 = &temp3;
28843 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
28844 }
28845 ecode4 = SWIG_AsVal_double(obj3, &val4);
28846 if (!SWIG_IsOK(ecode4)) {
28847 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
28848 }
28849 arg4 = static_cast< double >(val4);
28850 ecode5 = SWIG_AsVal_double(obj4, &val5);
28851 if (!SWIG_IsOK(ecode5)) {
28852 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
28853 }
28854 arg5 = static_cast< double >(val5);
28855 {
28856 PyThreadState* __tstate = wxPyBeginAllowThreads();
28857 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
28858 wxPyEndAllowThreads(__tstate);
28859 if (PyErr_Occurred()) SWIG_fail;
28860 }
28861 resultobj = SWIG_Py_Void();
28862 return resultobj;
28863 fail:
28864 return NULL;
28865 }
28866
28867
28868 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28869 PyObject *resultobj = 0;
28870 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28871 int arg2 ;
28872 int arg3 ;
28873 void *argp1 = 0 ;
28874 int res1 = 0 ;
28875 int val2 ;
28876 int ecode2 = 0 ;
28877 int val3 ;
28878 int ecode3 = 0 ;
28879 PyObject * obj0 = 0 ;
28880 PyObject * obj1 = 0 ;
28881 PyObject * obj2 = 0 ;
28882 char * kwnames[] = {
28883 (char *) "self",(char *) "x",(char *) "y", NULL
28884 };
28885
28886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28887 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28888 if (!SWIG_IsOK(res1)) {
28889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28890 }
28891 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28892 ecode2 = SWIG_AsVal_int(obj1, &val2);
28893 if (!SWIG_IsOK(ecode2)) {
28894 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
28895 }
28896 arg2 = static_cast< int >(val2);
28897 ecode3 = SWIG_AsVal_int(obj2, &val3);
28898 if (!SWIG_IsOK(ecode3)) {
28899 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
28900 }
28901 arg3 = static_cast< int >(val3);
28902 {
28903 PyThreadState* __tstate = wxPyBeginAllowThreads();
28904 (arg1)->DrawPoint(arg2,arg3);
28905 wxPyEndAllowThreads(__tstate);
28906 if (PyErr_Occurred()) SWIG_fail;
28907 }
28908 resultobj = SWIG_Py_Void();
28909 return resultobj;
28910 fail:
28911 return NULL;
28912 }
28913
28914
28915 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28916 PyObject *resultobj = 0;
28917 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28918 wxPoint *arg2 = 0 ;
28919 void *argp1 = 0 ;
28920 int res1 = 0 ;
28921 wxPoint temp2 ;
28922 PyObject * obj0 = 0 ;
28923 PyObject * obj1 = 0 ;
28924 char * kwnames[] = {
28925 (char *) "self",(char *) "pt", NULL
28926 };
28927
28928 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
28929 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28930 if (!SWIG_IsOK(res1)) {
28931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28932 }
28933 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28934 {
28935 arg2 = &temp2;
28936 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
28937 }
28938 {
28939 PyThreadState* __tstate = wxPyBeginAllowThreads();
28940 (arg1)->DrawPoint((wxPoint const &)*arg2);
28941 wxPyEndAllowThreads(__tstate);
28942 if (PyErr_Occurred()) SWIG_fail;
28943 }
28944 resultobj = SWIG_Py_Void();
28945 return resultobj;
28946 fail:
28947 return NULL;
28948 }
28949
28950
28951 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28952 PyObject *resultobj = 0;
28953 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28954 int arg2 ;
28955 int arg3 ;
28956 int arg4 ;
28957 int arg5 ;
28958 void *argp1 = 0 ;
28959 int res1 = 0 ;
28960 int val2 ;
28961 int ecode2 = 0 ;
28962 int val3 ;
28963 int ecode3 = 0 ;
28964 int val4 ;
28965 int ecode4 = 0 ;
28966 int val5 ;
28967 int ecode5 = 0 ;
28968 PyObject * obj0 = 0 ;
28969 PyObject * obj1 = 0 ;
28970 PyObject * obj2 = 0 ;
28971 PyObject * obj3 = 0 ;
28972 PyObject * obj4 = 0 ;
28973 char * kwnames[] = {
28974 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
28975 };
28976
28977 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28978 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28979 if (!SWIG_IsOK(res1)) {
28980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28981 }
28982 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28983 ecode2 = SWIG_AsVal_int(obj1, &val2);
28984 if (!SWIG_IsOK(ecode2)) {
28985 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
28986 }
28987 arg2 = static_cast< int >(val2);
28988 ecode3 = SWIG_AsVal_int(obj2, &val3);
28989 if (!SWIG_IsOK(ecode3)) {
28990 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
28991 }
28992 arg3 = static_cast< int >(val3);
28993 ecode4 = SWIG_AsVal_int(obj3, &val4);
28994 if (!SWIG_IsOK(ecode4)) {
28995 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
28996 }
28997 arg4 = static_cast< int >(val4);
28998 ecode5 = SWIG_AsVal_int(obj4, &val5);
28999 if (!SWIG_IsOK(ecode5)) {
29000 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
29001 }
29002 arg5 = static_cast< int >(val5);
29003 {
29004 PyThreadState* __tstate = wxPyBeginAllowThreads();
29005 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
29006 wxPyEndAllowThreads(__tstate);
29007 if (PyErr_Occurred()) SWIG_fail;
29008 }
29009 resultobj = SWIG_Py_Void();
29010 return resultobj;
29011 fail:
29012 return NULL;
29013 }
29014
29015
29016 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29017 PyObject *resultobj = 0;
29018 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29019 wxRect *arg2 = 0 ;
29020 void *argp1 = 0 ;
29021 int res1 = 0 ;
29022 wxRect temp2 ;
29023 PyObject * obj0 = 0 ;
29024 PyObject * obj1 = 0 ;
29025 char * kwnames[] = {
29026 (char *) "self",(char *) "rect", NULL
29027 };
29028
29029 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
29030 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29031 if (!SWIG_IsOK(res1)) {
29032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29033 }
29034 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29035 {
29036 arg2 = &temp2;
29037 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
29038 }
29039 {
29040 PyThreadState* __tstate = wxPyBeginAllowThreads();
29041 (arg1)->DrawRectangle((wxRect const &)*arg2);
29042 wxPyEndAllowThreads(__tstate);
29043 if (PyErr_Occurred()) SWIG_fail;
29044 }
29045 resultobj = SWIG_Py_Void();
29046 return resultobj;
29047 fail:
29048 return NULL;
29049 }
29050
29051
29052 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29053 PyObject *resultobj = 0;
29054 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29055 wxPoint *arg2 = 0 ;
29056 wxSize *arg3 = 0 ;
29057 void *argp1 = 0 ;
29058 int res1 = 0 ;
29059 wxPoint temp2 ;
29060 wxSize temp3 ;
29061 PyObject * obj0 = 0 ;
29062 PyObject * obj1 = 0 ;
29063 PyObject * obj2 = 0 ;
29064 char * kwnames[] = {
29065 (char *) "self",(char *) "pt",(char *) "sz", NULL
29066 };
29067
29068 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29069 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29070 if (!SWIG_IsOK(res1)) {
29071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29072 }
29073 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29074 {
29075 arg2 = &temp2;
29076 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29077 }
29078 {
29079 arg3 = &temp3;
29080 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
29081 }
29082 {
29083 PyThreadState* __tstate = wxPyBeginAllowThreads();
29084 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
29085 wxPyEndAllowThreads(__tstate);
29086 if (PyErr_Occurred()) SWIG_fail;
29087 }
29088 resultobj = SWIG_Py_Void();
29089 return resultobj;
29090 fail:
29091 return NULL;
29092 }
29093
29094
29095 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29096 PyObject *resultobj = 0;
29097 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29098 int arg2 ;
29099 int arg3 ;
29100 int arg4 ;
29101 int arg5 ;
29102 double arg6 ;
29103 void *argp1 = 0 ;
29104 int res1 = 0 ;
29105 int val2 ;
29106 int ecode2 = 0 ;
29107 int val3 ;
29108 int ecode3 = 0 ;
29109 int val4 ;
29110 int ecode4 = 0 ;
29111 int val5 ;
29112 int ecode5 = 0 ;
29113 double val6 ;
29114 int ecode6 = 0 ;
29115 PyObject * obj0 = 0 ;
29116 PyObject * obj1 = 0 ;
29117 PyObject * obj2 = 0 ;
29118 PyObject * obj3 = 0 ;
29119 PyObject * obj4 = 0 ;
29120 PyObject * obj5 = 0 ;
29121 char * kwnames[] = {
29122 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
29123 };
29124
29125 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29126 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29127 if (!SWIG_IsOK(res1)) {
29128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29129 }
29130 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29131 ecode2 = SWIG_AsVal_int(obj1, &val2);
29132 if (!SWIG_IsOK(ecode2)) {
29133 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
29134 }
29135 arg2 = static_cast< int >(val2);
29136 ecode3 = SWIG_AsVal_int(obj2, &val3);
29137 if (!SWIG_IsOK(ecode3)) {
29138 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
29139 }
29140 arg3 = static_cast< int >(val3);
29141 ecode4 = SWIG_AsVal_int(obj3, &val4);
29142 if (!SWIG_IsOK(ecode4)) {
29143 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
29144 }
29145 arg4 = static_cast< int >(val4);
29146 ecode5 = SWIG_AsVal_int(obj4, &val5);
29147 if (!SWIG_IsOK(ecode5)) {
29148 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
29149 }
29150 arg5 = static_cast< int >(val5);
29151 ecode6 = SWIG_AsVal_double(obj5, &val6);
29152 if (!SWIG_IsOK(ecode6)) {
29153 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
29154 }
29155 arg6 = static_cast< double >(val6);
29156 {
29157 PyThreadState* __tstate = wxPyBeginAllowThreads();
29158 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
29159 wxPyEndAllowThreads(__tstate);
29160 if (PyErr_Occurred()) SWIG_fail;
29161 }
29162 resultobj = SWIG_Py_Void();
29163 return resultobj;
29164 fail:
29165 return NULL;
29166 }
29167
29168
29169 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29170 PyObject *resultobj = 0;
29171 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29172 wxRect *arg2 = 0 ;
29173 double arg3 ;
29174 void *argp1 = 0 ;
29175 int res1 = 0 ;
29176 wxRect temp2 ;
29177 double val3 ;
29178 int ecode3 = 0 ;
29179 PyObject * obj0 = 0 ;
29180 PyObject * obj1 = 0 ;
29181 PyObject * obj2 = 0 ;
29182 char * kwnames[] = {
29183 (char *) "self",(char *) "r",(char *) "radius", NULL
29184 };
29185
29186 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29187 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29188 if (!SWIG_IsOK(res1)) {
29189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29190 }
29191 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29192 {
29193 arg2 = &temp2;
29194 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
29195 }
29196 ecode3 = SWIG_AsVal_double(obj2, &val3);
29197 if (!SWIG_IsOK(ecode3)) {
29198 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
29199 }
29200 arg3 = static_cast< double >(val3);
29201 {
29202 PyThreadState* __tstate = wxPyBeginAllowThreads();
29203 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
29204 wxPyEndAllowThreads(__tstate);
29205 if (PyErr_Occurred()) SWIG_fail;
29206 }
29207 resultobj = SWIG_Py_Void();
29208 return resultobj;
29209 fail:
29210 return NULL;
29211 }
29212
29213
29214 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29215 PyObject *resultobj = 0;
29216 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29217 wxPoint *arg2 = 0 ;
29218 wxSize *arg3 = 0 ;
29219 double arg4 ;
29220 void *argp1 = 0 ;
29221 int res1 = 0 ;
29222 wxPoint temp2 ;
29223 wxSize temp3 ;
29224 double val4 ;
29225 int ecode4 = 0 ;
29226 PyObject * obj0 = 0 ;
29227 PyObject * obj1 = 0 ;
29228 PyObject * obj2 = 0 ;
29229 PyObject * obj3 = 0 ;
29230 char * kwnames[] = {
29231 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
29232 };
29233
29234 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29235 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29236 if (!SWIG_IsOK(res1)) {
29237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29238 }
29239 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29240 {
29241 arg2 = &temp2;
29242 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29243 }
29244 {
29245 arg3 = &temp3;
29246 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
29247 }
29248 ecode4 = SWIG_AsVal_double(obj3, &val4);
29249 if (!SWIG_IsOK(ecode4)) {
29250 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
29251 }
29252 arg4 = static_cast< double >(val4);
29253 {
29254 PyThreadState* __tstate = wxPyBeginAllowThreads();
29255 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
29256 wxPyEndAllowThreads(__tstate);
29257 if (PyErr_Occurred()) SWIG_fail;
29258 }
29259 resultobj = SWIG_Py_Void();
29260 return resultobj;
29261 fail:
29262 return NULL;
29263 }
29264
29265
29266 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29267 PyObject *resultobj = 0;
29268 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29269 int arg2 ;
29270 int arg3 ;
29271 int arg4 ;
29272 void *argp1 = 0 ;
29273 int res1 = 0 ;
29274 int val2 ;
29275 int ecode2 = 0 ;
29276 int val3 ;
29277 int ecode3 = 0 ;
29278 int val4 ;
29279 int ecode4 = 0 ;
29280 PyObject * obj0 = 0 ;
29281 PyObject * obj1 = 0 ;
29282 PyObject * obj2 = 0 ;
29283 PyObject * obj3 = 0 ;
29284 char * kwnames[] = {
29285 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
29286 };
29287
29288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29290 if (!SWIG_IsOK(res1)) {
29291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29292 }
29293 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29294 ecode2 = SWIG_AsVal_int(obj1, &val2);
29295 if (!SWIG_IsOK(ecode2)) {
29296 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
29297 }
29298 arg2 = static_cast< int >(val2);
29299 ecode3 = SWIG_AsVal_int(obj2, &val3);
29300 if (!SWIG_IsOK(ecode3)) {
29301 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
29302 }
29303 arg3 = static_cast< int >(val3);
29304 ecode4 = SWIG_AsVal_int(obj3, &val4);
29305 if (!SWIG_IsOK(ecode4)) {
29306 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
29307 }
29308 arg4 = static_cast< int >(val4);
29309 {
29310 PyThreadState* __tstate = wxPyBeginAllowThreads();
29311 (arg1)->DrawCircle(arg2,arg3,arg4);
29312 wxPyEndAllowThreads(__tstate);
29313 if (PyErr_Occurred()) SWIG_fail;
29314 }
29315 resultobj = SWIG_Py_Void();
29316 return resultobj;
29317 fail:
29318 return NULL;
29319 }
29320
29321
29322 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29323 PyObject *resultobj = 0;
29324 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29325 wxPoint *arg2 = 0 ;
29326 int arg3 ;
29327 void *argp1 = 0 ;
29328 int res1 = 0 ;
29329 wxPoint temp2 ;
29330 int val3 ;
29331 int ecode3 = 0 ;
29332 PyObject * obj0 = 0 ;
29333 PyObject * obj1 = 0 ;
29334 PyObject * obj2 = 0 ;
29335 char * kwnames[] = {
29336 (char *) "self",(char *) "pt",(char *) "radius", NULL
29337 };
29338
29339 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29340 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29341 if (!SWIG_IsOK(res1)) {
29342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29343 }
29344 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29345 {
29346 arg2 = &temp2;
29347 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29348 }
29349 ecode3 = SWIG_AsVal_int(obj2, &val3);
29350 if (!SWIG_IsOK(ecode3)) {
29351 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
29352 }
29353 arg3 = static_cast< int >(val3);
29354 {
29355 PyThreadState* __tstate = wxPyBeginAllowThreads();
29356 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
29357 wxPyEndAllowThreads(__tstate);
29358 if (PyErr_Occurred()) SWIG_fail;
29359 }
29360 resultobj = SWIG_Py_Void();
29361 return resultobj;
29362 fail:
29363 return NULL;
29364 }
29365
29366
29367 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29368 PyObject *resultobj = 0;
29369 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29370 int arg2 ;
29371 int arg3 ;
29372 int arg4 ;
29373 int arg5 ;
29374 void *argp1 = 0 ;
29375 int res1 = 0 ;
29376 int val2 ;
29377 int ecode2 = 0 ;
29378 int val3 ;
29379 int ecode3 = 0 ;
29380 int val4 ;
29381 int ecode4 = 0 ;
29382 int val5 ;
29383 int ecode5 = 0 ;
29384 PyObject * obj0 = 0 ;
29385 PyObject * obj1 = 0 ;
29386 PyObject * obj2 = 0 ;
29387 PyObject * obj3 = 0 ;
29388 PyObject * obj4 = 0 ;
29389 char * kwnames[] = {
29390 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
29391 };
29392
29393 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29394 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29395 if (!SWIG_IsOK(res1)) {
29396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29397 }
29398 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29399 ecode2 = SWIG_AsVal_int(obj1, &val2);
29400 if (!SWIG_IsOK(ecode2)) {
29401 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
29402 }
29403 arg2 = static_cast< int >(val2);
29404 ecode3 = SWIG_AsVal_int(obj2, &val3);
29405 if (!SWIG_IsOK(ecode3)) {
29406 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
29407 }
29408 arg3 = static_cast< int >(val3);
29409 ecode4 = SWIG_AsVal_int(obj3, &val4);
29410 if (!SWIG_IsOK(ecode4)) {
29411 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
29412 }
29413 arg4 = static_cast< int >(val4);
29414 ecode5 = SWIG_AsVal_int(obj4, &val5);
29415 if (!SWIG_IsOK(ecode5)) {
29416 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
29417 }
29418 arg5 = static_cast< int >(val5);
29419 {
29420 PyThreadState* __tstate = wxPyBeginAllowThreads();
29421 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
29422 wxPyEndAllowThreads(__tstate);
29423 if (PyErr_Occurred()) SWIG_fail;
29424 }
29425 resultobj = SWIG_Py_Void();
29426 return resultobj;
29427 fail:
29428 return NULL;
29429 }
29430
29431
29432 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29433 PyObject *resultobj = 0;
29434 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29435 wxRect *arg2 = 0 ;
29436 void *argp1 = 0 ;
29437 int res1 = 0 ;
29438 wxRect temp2 ;
29439 PyObject * obj0 = 0 ;
29440 PyObject * obj1 = 0 ;
29441 char * kwnames[] = {
29442 (char *) "self",(char *) "rect", NULL
29443 };
29444
29445 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
29446 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29447 if (!SWIG_IsOK(res1)) {
29448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29449 }
29450 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29451 {
29452 arg2 = &temp2;
29453 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
29454 }
29455 {
29456 PyThreadState* __tstate = wxPyBeginAllowThreads();
29457 (arg1)->DrawEllipse((wxRect const &)*arg2);
29458 wxPyEndAllowThreads(__tstate);
29459 if (PyErr_Occurred()) SWIG_fail;
29460 }
29461 resultobj = SWIG_Py_Void();
29462 return resultobj;
29463 fail:
29464 return NULL;
29465 }
29466
29467
29468 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29469 PyObject *resultobj = 0;
29470 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29471 wxPoint *arg2 = 0 ;
29472 wxSize *arg3 = 0 ;
29473 void *argp1 = 0 ;
29474 int res1 = 0 ;
29475 wxPoint temp2 ;
29476 wxSize temp3 ;
29477 PyObject * obj0 = 0 ;
29478 PyObject * obj1 = 0 ;
29479 PyObject * obj2 = 0 ;
29480 char * kwnames[] = {
29481 (char *) "self",(char *) "pt",(char *) "sz", NULL
29482 };
29483
29484 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29485 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29486 if (!SWIG_IsOK(res1)) {
29487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29488 }
29489 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29490 {
29491 arg2 = &temp2;
29492 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29493 }
29494 {
29495 arg3 = &temp3;
29496 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
29497 }
29498 {
29499 PyThreadState* __tstate = wxPyBeginAllowThreads();
29500 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
29501 wxPyEndAllowThreads(__tstate);
29502 if (PyErr_Occurred()) SWIG_fail;
29503 }
29504 resultobj = SWIG_Py_Void();
29505 return resultobj;
29506 fail:
29507 return NULL;
29508 }
29509
29510
29511 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29512 PyObject *resultobj = 0;
29513 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29514 wxIcon *arg2 = 0 ;
29515 int arg3 ;
29516 int arg4 ;
29517 void *argp1 = 0 ;
29518 int res1 = 0 ;
29519 void *argp2 = 0 ;
29520 int res2 = 0 ;
29521 int val3 ;
29522 int ecode3 = 0 ;
29523 int val4 ;
29524 int ecode4 = 0 ;
29525 PyObject * obj0 = 0 ;
29526 PyObject * obj1 = 0 ;
29527 PyObject * obj2 = 0 ;
29528 PyObject * obj3 = 0 ;
29529 char * kwnames[] = {
29530 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
29531 };
29532
29533 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29534 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29535 if (!SWIG_IsOK(res1)) {
29536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29537 }
29538 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29539 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
29540 if (!SWIG_IsOK(res2)) {
29541 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
29542 }
29543 if (!argp2) {
29544 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
29545 }
29546 arg2 = reinterpret_cast< wxIcon * >(argp2);
29547 ecode3 = SWIG_AsVal_int(obj2, &val3);
29548 if (!SWIG_IsOK(ecode3)) {
29549 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
29550 }
29551 arg3 = static_cast< int >(val3);
29552 ecode4 = SWIG_AsVal_int(obj3, &val4);
29553 if (!SWIG_IsOK(ecode4)) {
29554 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
29555 }
29556 arg4 = static_cast< int >(val4);
29557 {
29558 PyThreadState* __tstate = wxPyBeginAllowThreads();
29559 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
29560 wxPyEndAllowThreads(__tstate);
29561 if (PyErr_Occurred()) SWIG_fail;
29562 }
29563 resultobj = SWIG_Py_Void();
29564 return resultobj;
29565 fail:
29566 return NULL;
29567 }
29568
29569
29570 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29571 PyObject *resultobj = 0;
29572 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29573 wxIcon *arg2 = 0 ;
29574 wxPoint *arg3 = 0 ;
29575 void *argp1 = 0 ;
29576 int res1 = 0 ;
29577 void *argp2 = 0 ;
29578 int res2 = 0 ;
29579 wxPoint temp3 ;
29580 PyObject * obj0 = 0 ;
29581 PyObject * obj1 = 0 ;
29582 PyObject * obj2 = 0 ;
29583 char * kwnames[] = {
29584 (char *) "self",(char *) "icon",(char *) "pt", NULL
29585 };
29586
29587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29588 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29589 if (!SWIG_IsOK(res1)) {
29590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29591 }
29592 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29593 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
29594 if (!SWIG_IsOK(res2)) {
29595 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
29596 }
29597 if (!argp2) {
29598 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
29599 }
29600 arg2 = reinterpret_cast< wxIcon * >(argp2);
29601 {
29602 arg3 = &temp3;
29603 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29604 }
29605 {
29606 PyThreadState* __tstate = wxPyBeginAllowThreads();
29607 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
29608 wxPyEndAllowThreads(__tstate);
29609 if (PyErr_Occurred()) SWIG_fail;
29610 }
29611 resultobj = SWIG_Py_Void();
29612 return resultobj;
29613 fail:
29614 return NULL;
29615 }
29616
29617
29618 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29619 PyObject *resultobj = 0;
29620 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29621 wxBitmap *arg2 = 0 ;
29622 int arg3 ;
29623 int arg4 ;
29624 bool arg5 = (bool) false ;
29625 void *argp1 = 0 ;
29626 int res1 = 0 ;
29627 void *argp2 = 0 ;
29628 int res2 = 0 ;
29629 int val3 ;
29630 int ecode3 = 0 ;
29631 int val4 ;
29632 int ecode4 = 0 ;
29633 bool val5 ;
29634 int ecode5 = 0 ;
29635 PyObject * obj0 = 0 ;
29636 PyObject * obj1 = 0 ;
29637 PyObject * obj2 = 0 ;
29638 PyObject * obj3 = 0 ;
29639 PyObject * obj4 = 0 ;
29640 char * kwnames[] = {
29641 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
29642 };
29643
29644 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29645 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29646 if (!SWIG_IsOK(res1)) {
29647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29648 }
29649 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29650 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
29651 if (!SWIG_IsOK(res2)) {
29652 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
29653 }
29654 if (!argp2) {
29655 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
29656 }
29657 arg2 = reinterpret_cast< wxBitmap * >(argp2);
29658 ecode3 = SWIG_AsVal_int(obj2, &val3);
29659 if (!SWIG_IsOK(ecode3)) {
29660 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
29661 }
29662 arg3 = static_cast< int >(val3);
29663 ecode4 = SWIG_AsVal_int(obj3, &val4);
29664 if (!SWIG_IsOK(ecode4)) {
29665 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
29666 }
29667 arg4 = static_cast< int >(val4);
29668 if (obj4) {
29669 ecode5 = SWIG_AsVal_bool(obj4, &val5);
29670 if (!SWIG_IsOK(ecode5)) {
29671 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
29672 }
29673 arg5 = static_cast< bool >(val5);
29674 }
29675 {
29676 PyThreadState* __tstate = wxPyBeginAllowThreads();
29677 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
29678 wxPyEndAllowThreads(__tstate);
29679 if (PyErr_Occurred()) SWIG_fail;
29680 }
29681 resultobj = SWIG_Py_Void();
29682 return resultobj;
29683 fail:
29684 return NULL;
29685 }
29686
29687
29688 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29689 PyObject *resultobj = 0;
29690 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29691 wxBitmap *arg2 = 0 ;
29692 wxPoint *arg3 = 0 ;
29693 bool arg4 = (bool) false ;
29694 void *argp1 = 0 ;
29695 int res1 = 0 ;
29696 void *argp2 = 0 ;
29697 int res2 = 0 ;
29698 wxPoint temp3 ;
29699 bool val4 ;
29700 int ecode4 = 0 ;
29701 PyObject * obj0 = 0 ;
29702 PyObject * obj1 = 0 ;
29703 PyObject * obj2 = 0 ;
29704 PyObject * obj3 = 0 ;
29705 char * kwnames[] = {
29706 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
29707 };
29708
29709 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29710 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29711 if (!SWIG_IsOK(res1)) {
29712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29713 }
29714 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29715 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
29716 if (!SWIG_IsOK(res2)) {
29717 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
29718 }
29719 if (!argp2) {
29720 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
29721 }
29722 arg2 = reinterpret_cast< wxBitmap * >(argp2);
29723 {
29724 arg3 = &temp3;
29725 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29726 }
29727 if (obj3) {
29728 ecode4 = SWIG_AsVal_bool(obj3, &val4);
29729 if (!SWIG_IsOK(ecode4)) {
29730 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
29731 }
29732 arg4 = static_cast< bool >(val4);
29733 }
29734 {
29735 PyThreadState* __tstate = wxPyBeginAllowThreads();
29736 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
29737 wxPyEndAllowThreads(__tstate);
29738 if (PyErr_Occurred()) SWIG_fail;
29739 }
29740 resultobj = SWIG_Py_Void();
29741 return resultobj;
29742 fail:
29743 return NULL;
29744 }
29745
29746
29747 SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29748 PyObject *resultobj = 0;
29749 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29750 wxString *arg2 = 0 ;
29751 int arg3 ;
29752 int arg4 ;
29753 void *argp1 = 0 ;
29754 int res1 = 0 ;
29755 bool temp2 = false ;
29756 int val3 ;
29757 int ecode3 = 0 ;
29758 int val4 ;
29759 int ecode4 = 0 ;
29760 PyObject * obj0 = 0 ;
29761 PyObject * obj1 = 0 ;
29762 PyObject * obj2 = 0 ;
29763 PyObject * obj3 = 0 ;
29764 char * kwnames[] = {
29765 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
29766 };
29767
29768 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29769 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29770 if (!SWIG_IsOK(res1)) {
29771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29772 }
29773 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29774 {
29775 arg2 = wxString_in_helper(obj1);
29776 if (arg2 == NULL) SWIG_fail;
29777 temp2 = true;
29778 }
29779 ecode3 = SWIG_AsVal_int(obj2, &val3);
29780 if (!SWIG_IsOK(ecode3)) {
29781 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'");
29782 }
29783 arg3 = static_cast< int >(val3);
29784 ecode4 = SWIG_AsVal_int(obj3, &val4);
29785 if (!SWIG_IsOK(ecode4)) {
29786 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'");
29787 }
29788 arg4 = static_cast< int >(val4);
29789 {
29790 PyThreadState* __tstate = wxPyBeginAllowThreads();
29791 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
29792 wxPyEndAllowThreads(__tstate);
29793 if (PyErr_Occurred()) SWIG_fail;
29794 }
29795 resultobj = SWIG_Py_Void();
29796 {
29797 if (temp2)
29798 delete arg2;
29799 }
29800 return resultobj;
29801 fail:
29802 {
29803 if (temp2)
29804 delete arg2;
29805 }
29806 return NULL;
29807 }
29808
29809
29810 SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29811 PyObject *resultobj = 0;
29812 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29813 wxString *arg2 = 0 ;
29814 wxPoint *arg3 = 0 ;
29815 void *argp1 = 0 ;
29816 int res1 = 0 ;
29817 bool temp2 = false ;
29818 wxPoint temp3 ;
29819 PyObject * obj0 = 0 ;
29820 PyObject * obj1 = 0 ;
29821 PyObject * obj2 = 0 ;
29822 char * kwnames[] = {
29823 (char *) "self",(char *) "text",(char *) "pt", NULL
29824 };
29825
29826 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29827 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29828 if (!SWIG_IsOK(res1)) {
29829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29830 }
29831 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29832 {
29833 arg2 = wxString_in_helper(obj1);
29834 if (arg2 == NULL) SWIG_fail;
29835 temp2 = true;
29836 }
29837 {
29838 arg3 = &temp3;
29839 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29840 }
29841 {
29842 PyThreadState* __tstate = wxPyBeginAllowThreads();
29843 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
29844 wxPyEndAllowThreads(__tstate);
29845 if (PyErr_Occurred()) SWIG_fail;
29846 }
29847 resultobj = SWIG_Py_Void();
29848 {
29849 if (temp2)
29850 delete arg2;
29851 }
29852 return resultobj;
29853 fail:
29854 {
29855 if (temp2)
29856 delete arg2;
29857 }
29858 return NULL;
29859 }
29860
29861
29862 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29863 PyObject *resultobj = 0;
29864 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29865 wxString *arg2 = 0 ;
29866 int arg3 ;
29867 int arg4 ;
29868 double arg5 ;
29869 void *argp1 = 0 ;
29870 int res1 = 0 ;
29871 bool temp2 = false ;
29872 int val3 ;
29873 int ecode3 = 0 ;
29874 int val4 ;
29875 int ecode4 = 0 ;
29876 double val5 ;
29877 int ecode5 = 0 ;
29878 PyObject * obj0 = 0 ;
29879 PyObject * obj1 = 0 ;
29880 PyObject * obj2 = 0 ;
29881 PyObject * obj3 = 0 ;
29882 PyObject * obj4 = 0 ;
29883 char * kwnames[] = {
29884 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
29885 };
29886
29887 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29888 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29889 if (!SWIG_IsOK(res1)) {
29890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29891 }
29892 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29893 {
29894 arg2 = wxString_in_helper(obj1);
29895 if (arg2 == NULL) SWIG_fail;
29896 temp2 = true;
29897 }
29898 ecode3 = SWIG_AsVal_int(obj2, &val3);
29899 if (!SWIG_IsOK(ecode3)) {
29900 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
29901 }
29902 arg3 = static_cast< int >(val3);
29903 ecode4 = SWIG_AsVal_int(obj3, &val4);
29904 if (!SWIG_IsOK(ecode4)) {
29905 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
29906 }
29907 arg4 = static_cast< int >(val4);
29908 ecode5 = SWIG_AsVal_double(obj4, &val5);
29909 if (!SWIG_IsOK(ecode5)) {
29910 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
29911 }
29912 arg5 = static_cast< double >(val5);
29913 {
29914 PyThreadState* __tstate = wxPyBeginAllowThreads();
29915 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
29916 wxPyEndAllowThreads(__tstate);
29917 if (PyErr_Occurred()) SWIG_fail;
29918 }
29919 resultobj = SWIG_Py_Void();
29920 {
29921 if (temp2)
29922 delete arg2;
29923 }
29924 return resultobj;
29925 fail:
29926 {
29927 if (temp2)
29928 delete arg2;
29929 }
29930 return NULL;
29931 }
29932
29933
29934 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29935 PyObject *resultobj = 0;
29936 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29937 wxString *arg2 = 0 ;
29938 wxPoint *arg3 = 0 ;
29939 double arg4 ;
29940 void *argp1 = 0 ;
29941 int res1 = 0 ;
29942 bool temp2 = false ;
29943 wxPoint temp3 ;
29944 double val4 ;
29945 int ecode4 = 0 ;
29946 PyObject * obj0 = 0 ;
29947 PyObject * obj1 = 0 ;
29948 PyObject * obj2 = 0 ;
29949 PyObject * obj3 = 0 ;
29950 char * kwnames[] = {
29951 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
29952 };
29953
29954 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29955 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29956 if (!SWIG_IsOK(res1)) {
29957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29958 }
29959 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29960 {
29961 arg2 = wxString_in_helper(obj1);
29962 if (arg2 == NULL) SWIG_fail;
29963 temp2 = true;
29964 }
29965 {
29966 arg3 = &temp3;
29967 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29968 }
29969 ecode4 = SWIG_AsVal_double(obj3, &val4);
29970 if (!SWIG_IsOK(ecode4)) {
29971 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
29972 }
29973 arg4 = static_cast< double >(val4);
29974 {
29975 PyThreadState* __tstate = wxPyBeginAllowThreads();
29976 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
29977 wxPyEndAllowThreads(__tstate);
29978 if (PyErr_Occurred()) SWIG_fail;
29979 }
29980 resultobj = SWIG_Py_Void();
29981 {
29982 if (temp2)
29983 delete arg2;
29984 }
29985 return resultobj;
29986 fail:
29987 {
29988 if (temp2)
29989 delete arg2;
29990 }
29991 return NULL;
29992 }
29993
29994
29995 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29996 PyObject *resultobj = 0;
29997 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29998 int arg2 ;
29999 wxPoint *arg3 = (wxPoint *) 0 ;
30000 int arg4 = (int) 0 ;
30001 int arg5 = (int) 0 ;
30002 void *argp1 = 0 ;
30003 int res1 = 0 ;
30004 int val4 ;
30005 int ecode4 = 0 ;
30006 int val5 ;
30007 int ecode5 = 0 ;
30008 PyObject * obj0 = 0 ;
30009 PyObject * obj1 = 0 ;
30010 PyObject * obj2 = 0 ;
30011 PyObject * obj3 = 0 ;
30012 char * kwnames[] = {
30013 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
30014 };
30015
30016 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30017 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30018 if (!SWIG_IsOK(res1)) {
30019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30020 }
30021 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30022 {
30023 arg3 = wxPoint_LIST_helper(obj1, &arg2);
30024 if (arg3 == NULL) SWIG_fail;
30025 }
30026 if (obj2) {
30027 ecode4 = SWIG_AsVal_int(obj2, &val4);
30028 if (!SWIG_IsOK(ecode4)) {
30029 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'");
30030 }
30031 arg4 = static_cast< int >(val4);
30032 }
30033 if (obj3) {
30034 ecode5 = SWIG_AsVal_int(obj3, &val5);
30035 if (!SWIG_IsOK(ecode5)) {
30036 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'");
30037 }
30038 arg5 = static_cast< int >(val5);
30039 }
30040 {
30041 PyThreadState* __tstate = wxPyBeginAllowThreads();
30042 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
30043 wxPyEndAllowThreads(__tstate);
30044 if (PyErr_Occurred()) SWIG_fail;
30045 }
30046 resultobj = SWIG_Py_Void();
30047 {
30048 if (arg3) delete [] arg3;
30049 }
30050 return resultobj;
30051 fail:
30052 {
30053 if (arg3) delete [] arg3;
30054 }
30055 return NULL;
30056 }
30057
30058
30059 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30060 PyObject *resultobj = 0;
30061 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30062 int arg2 ;
30063 wxPoint *arg3 = (wxPoint *) 0 ;
30064 int arg4 = (int) 0 ;
30065 int arg5 = (int) 0 ;
30066 int arg6 = (int) wxODDEVEN_RULE ;
30067 void *argp1 = 0 ;
30068 int res1 = 0 ;
30069 int val4 ;
30070 int ecode4 = 0 ;
30071 int val5 ;
30072 int ecode5 = 0 ;
30073 int val6 ;
30074 int ecode6 = 0 ;
30075 PyObject * obj0 = 0 ;
30076 PyObject * obj1 = 0 ;
30077 PyObject * obj2 = 0 ;
30078 PyObject * obj3 = 0 ;
30079 PyObject * obj4 = 0 ;
30080 char * kwnames[] = {
30081 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
30082 };
30083
30084 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30085 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30086 if (!SWIG_IsOK(res1)) {
30087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30088 }
30089 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30090 {
30091 arg3 = wxPoint_LIST_helper(obj1, &arg2);
30092 if (arg3 == NULL) SWIG_fail;
30093 }
30094 if (obj2) {
30095 ecode4 = SWIG_AsVal_int(obj2, &val4);
30096 if (!SWIG_IsOK(ecode4)) {
30097 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
30098 }
30099 arg4 = static_cast< int >(val4);
30100 }
30101 if (obj3) {
30102 ecode5 = SWIG_AsVal_int(obj3, &val5);
30103 if (!SWIG_IsOK(ecode5)) {
30104 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
30105 }
30106 arg5 = static_cast< int >(val5);
30107 }
30108 if (obj4) {
30109 ecode6 = SWIG_AsVal_int(obj4, &val6);
30110 if (!SWIG_IsOK(ecode6)) {
30111 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
30112 }
30113 arg6 = static_cast< int >(val6);
30114 }
30115 {
30116 PyThreadState* __tstate = wxPyBeginAllowThreads();
30117 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
30118 wxPyEndAllowThreads(__tstate);
30119 if (PyErr_Occurred()) SWIG_fail;
30120 }
30121 resultobj = SWIG_Py_Void();
30122 {
30123 if (arg3) delete [] arg3;
30124 }
30125 return resultobj;
30126 fail:
30127 {
30128 if (arg3) delete [] arg3;
30129 }
30130 return NULL;
30131 }
30132
30133
30134 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30135 PyObject *resultobj = 0;
30136 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30137 wxString *arg2 = 0 ;
30138 wxRect *arg3 = 0 ;
30139 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
30140 int arg5 = (int) -1 ;
30141 void *argp1 = 0 ;
30142 int res1 = 0 ;
30143 bool temp2 = false ;
30144 wxRect temp3 ;
30145 int val4 ;
30146 int ecode4 = 0 ;
30147 int val5 ;
30148 int ecode5 = 0 ;
30149 PyObject * obj0 = 0 ;
30150 PyObject * obj1 = 0 ;
30151 PyObject * obj2 = 0 ;
30152 PyObject * obj3 = 0 ;
30153 PyObject * obj4 = 0 ;
30154 char * kwnames[] = {
30155 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
30156 };
30157
30158 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30159 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30160 if (!SWIG_IsOK(res1)) {
30161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30162 }
30163 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30164 {
30165 arg2 = wxString_in_helper(obj1);
30166 if (arg2 == NULL) SWIG_fail;
30167 temp2 = true;
30168 }
30169 {
30170 arg3 = &temp3;
30171 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
30172 }
30173 if (obj3) {
30174 ecode4 = SWIG_AsVal_int(obj3, &val4);
30175 if (!SWIG_IsOK(ecode4)) {
30176 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
30177 }
30178 arg4 = static_cast< int >(val4);
30179 }
30180 if (obj4) {
30181 ecode5 = SWIG_AsVal_int(obj4, &val5);
30182 if (!SWIG_IsOK(ecode5)) {
30183 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
30184 }
30185 arg5 = static_cast< int >(val5);
30186 }
30187 {
30188 PyThreadState* __tstate = wxPyBeginAllowThreads();
30189 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
30190 wxPyEndAllowThreads(__tstate);
30191 if (PyErr_Occurred()) SWIG_fail;
30192 }
30193 resultobj = SWIG_Py_Void();
30194 {
30195 if (temp2)
30196 delete arg2;
30197 }
30198 return resultobj;
30199 fail:
30200 {
30201 if (temp2)
30202 delete arg2;
30203 }
30204 return NULL;
30205 }
30206
30207
30208 SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30209 PyObject *resultobj = 0;
30210 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30211 wxString *arg2 = 0 ;
30212 wxBitmap *arg3 = 0 ;
30213 wxRect *arg4 = 0 ;
30214 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
30215 int arg6 = (int) -1 ;
30216 void *argp1 = 0 ;
30217 int res1 = 0 ;
30218 bool temp2 = false ;
30219 void *argp3 = 0 ;
30220 int res3 = 0 ;
30221 wxRect temp4 ;
30222 int val5 ;
30223 int ecode5 = 0 ;
30224 int val6 ;
30225 int ecode6 = 0 ;
30226 PyObject * obj0 = 0 ;
30227 PyObject * obj1 = 0 ;
30228 PyObject * obj2 = 0 ;
30229 PyObject * obj3 = 0 ;
30230 PyObject * obj4 = 0 ;
30231 PyObject * obj5 = 0 ;
30232 char * kwnames[] = {
30233 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
30234 };
30235
30236 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
30237 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30238 if (!SWIG_IsOK(res1)) {
30239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30240 }
30241 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30242 {
30243 arg2 = wxString_in_helper(obj1);
30244 if (arg2 == NULL) SWIG_fail;
30245 temp2 = true;
30246 }
30247 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
30248 if (!SWIG_IsOK(res3)) {
30249 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
30250 }
30251 if (!argp3) {
30252 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
30253 }
30254 arg3 = reinterpret_cast< wxBitmap * >(argp3);
30255 {
30256 arg4 = &temp4;
30257 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30258 }
30259 if (obj4) {
30260 ecode5 = SWIG_AsVal_int(obj4, &val5);
30261 if (!SWIG_IsOK(ecode5)) {
30262 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
30263 }
30264 arg5 = static_cast< int >(val5);
30265 }
30266 if (obj5) {
30267 ecode6 = SWIG_AsVal_int(obj5, &val6);
30268 if (!SWIG_IsOK(ecode6)) {
30269 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
30270 }
30271 arg6 = static_cast< int >(val6);
30272 }
30273 {
30274 PyThreadState* __tstate = wxPyBeginAllowThreads();
30275 (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
30276 wxPyEndAllowThreads(__tstate);
30277 if (PyErr_Occurred()) SWIG_fail;
30278 }
30279 resultobj = SWIG_Py_Void();
30280 {
30281 if (temp2)
30282 delete arg2;
30283 }
30284 return resultobj;
30285 fail:
30286 {
30287 if (temp2)
30288 delete arg2;
30289 }
30290 return NULL;
30291 }
30292
30293
30294 SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30295 PyObject *resultobj = 0;
30296 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30297 int arg2 ;
30298 wxPoint *arg3 = (wxPoint *) 0 ;
30299 void *argp1 = 0 ;
30300 int res1 = 0 ;
30301 PyObject * obj0 = 0 ;
30302 PyObject * obj1 = 0 ;
30303 char * kwnames[] = {
30304 (char *) "self",(char *) "points", NULL
30305 };
30306
30307 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
30308 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30309 if (!SWIG_IsOK(res1)) {
30310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30311 }
30312 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30313 {
30314 arg3 = wxPoint_LIST_helper(obj1, &arg2);
30315 if (arg3 == NULL) SWIG_fail;
30316 }
30317 {
30318 PyThreadState* __tstate = wxPyBeginAllowThreads();
30319 (arg1)->DrawSpline(arg2,arg3);
30320 wxPyEndAllowThreads(__tstate);
30321 if (PyErr_Occurred()) SWIG_fail;
30322 }
30323 resultobj = SWIG_Py_Void();
30324 {
30325 if (arg3) delete [] arg3;
30326 }
30327 return resultobj;
30328 fail:
30329 {
30330 if (arg3) delete [] arg3;
30331 }
30332 return NULL;
30333 }
30334
30335
30336 SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30337 PyObject *resultobj = 0;
30338 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30339 void *argp1 = 0 ;
30340 int res1 = 0 ;
30341 PyObject *swig_obj[1] ;
30342
30343 if (!args) SWIG_fail;
30344 swig_obj[0] = args;
30345 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30346 if (!SWIG_IsOK(res1)) {
30347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30348 }
30349 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30350 {
30351 PyThreadState* __tstate = wxPyBeginAllowThreads();
30352 (arg1)->Clear();
30353 wxPyEndAllowThreads(__tstate);
30354 if (PyErr_Occurred()) SWIG_fail;
30355 }
30356 resultobj = SWIG_Py_Void();
30357 return resultobj;
30358 fail:
30359 return NULL;
30360 }
30361
30362
30363 SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30364 PyObject *resultobj = 0;
30365 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30366 wxFont *arg2 = 0 ;
30367 void *argp1 = 0 ;
30368 int res1 = 0 ;
30369 void *argp2 = 0 ;
30370 int res2 = 0 ;
30371 PyObject * obj0 = 0 ;
30372 PyObject * obj1 = 0 ;
30373 char * kwnames[] = {
30374 (char *) "self",(char *) "font", NULL
30375 };
30376
30377 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
30378 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30379 if (!SWIG_IsOK(res1)) {
30380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30381 }
30382 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30383 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
30384 if (!SWIG_IsOK(res2)) {
30385 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
30386 }
30387 if (!argp2) {
30388 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
30389 }
30390 arg2 = reinterpret_cast< wxFont * >(argp2);
30391 {
30392 PyThreadState* __tstate = wxPyBeginAllowThreads();
30393 (arg1)->SetFont((wxFont const &)*arg2);
30394 wxPyEndAllowThreads(__tstate);
30395 if (PyErr_Occurred()) SWIG_fail;
30396 }
30397 resultobj = SWIG_Py_Void();
30398 return resultobj;
30399 fail:
30400 return NULL;
30401 }
30402
30403
30404 SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30405 PyObject *resultobj = 0;
30406 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30407 wxPen *arg2 = 0 ;
30408 void *argp1 = 0 ;
30409 int res1 = 0 ;
30410 void *argp2 = 0 ;
30411 int res2 = 0 ;
30412 PyObject * obj0 = 0 ;
30413 PyObject * obj1 = 0 ;
30414 char * kwnames[] = {
30415 (char *) "self",(char *) "pen", NULL
30416 };
30417
30418 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
30419 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30420 if (!SWIG_IsOK(res1)) {
30421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30422 }
30423 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30424 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
30425 if (!SWIG_IsOK(res2)) {
30426 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
30427 }
30428 if (!argp2) {
30429 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
30430 }
30431 arg2 = reinterpret_cast< wxPen * >(argp2);
30432 {
30433 PyThreadState* __tstate = wxPyBeginAllowThreads();
30434 (arg1)->SetPen((wxPen const &)*arg2);
30435 wxPyEndAllowThreads(__tstate);
30436 if (PyErr_Occurred()) SWIG_fail;
30437 }
30438 resultobj = SWIG_Py_Void();
30439 return resultobj;
30440 fail:
30441 return NULL;
30442 }
30443
30444
30445 SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30446 PyObject *resultobj = 0;
30447 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30448 wxBrush *arg2 = 0 ;
30449 void *argp1 = 0 ;
30450 int res1 = 0 ;
30451 void *argp2 = 0 ;
30452 int res2 = 0 ;
30453 PyObject * obj0 = 0 ;
30454 PyObject * obj1 = 0 ;
30455 char * kwnames[] = {
30456 (char *) "self",(char *) "brush", NULL
30457 };
30458
30459 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
30460 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30461 if (!SWIG_IsOK(res1)) {
30462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30463 }
30464 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30465 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
30466 if (!SWIG_IsOK(res2)) {
30467 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
30468 }
30469 if (!argp2) {
30470 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
30471 }
30472 arg2 = reinterpret_cast< wxBrush * >(argp2);
30473 {
30474 PyThreadState* __tstate = wxPyBeginAllowThreads();
30475 (arg1)->SetBrush((wxBrush const &)*arg2);
30476 wxPyEndAllowThreads(__tstate);
30477 if (PyErr_Occurred()) SWIG_fail;
30478 }
30479 resultobj = SWIG_Py_Void();
30480 return resultobj;
30481 fail:
30482 return NULL;
30483 }
30484
30485
30486 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30487 PyObject *resultobj = 0;
30488 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30489 wxBrush *arg2 = 0 ;
30490 void *argp1 = 0 ;
30491 int res1 = 0 ;
30492 void *argp2 = 0 ;
30493 int res2 = 0 ;
30494 PyObject * obj0 = 0 ;
30495 PyObject * obj1 = 0 ;
30496 char * kwnames[] = {
30497 (char *) "self",(char *) "brush", NULL
30498 };
30499
30500 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
30501 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30502 if (!SWIG_IsOK(res1)) {
30503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30504 }
30505 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30506 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
30507 if (!SWIG_IsOK(res2)) {
30508 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
30509 }
30510 if (!argp2) {
30511 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
30512 }
30513 arg2 = reinterpret_cast< wxBrush * >(argp2);
30514 {
30515 PyThreadState* __tstate = wxPyBeginAllowThreads();
30516 (arg1)->SetBackground((wxBrush const &)*arg2);
30517 wxPyEndAllowThreads(__tstate);
30518 if (PyErr_Occurred()) SWIG_fail;
30519 }
30520 resultobj = SWIG_Py_Void();
30521 return resultobj;
30522 fail:
30523 return NULL;
30524 }
30525
30526
30527 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30528 PyObject *resultobj = 0;
30529 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30530 int arg2 ;
30531 void *argp1 = 0 ;
30532 int res1 = 0 ;
30533 int val2 ;
30534 int ecode2 = 0 ;
30535 PyObject * obj0 = 0 ;
30536 PyObject * obj1 = 0 ;
30537 char * kwnames[] = {
30538 (char *) "self",(char *) "mode", NULL
30539 };
30540
30541 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
30542 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30543 if (!SWIG_IsOK(res1)) {
30544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30545 }
30546 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30547 ecode2 = SWIG_AsVal_int(obj1, &val2);
30548 if (!SWIG_IsOK(ecode2)) {
30549 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
30550 }
30551 arg2 = static_cast< int >(val2);
30552 {
30553 PyThreadState* __tstate = wxPyBeginAllowThreads();
30554 (arg1)->SetBackgroundMode(arg2);
30555 wxPyEndAllowThreads(__tstate);
30556 if (PyErr_Occurred()) SWIG_fail;
30557 }
30558 resultobj = SWIG_Py_Void();
30559 return resultobj;
30560 fail:
30561 return NULL;
30562 }
30563
30564
30565 SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30566 PyObject *resultobj = 0;
30567 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30568 wxPalette *arg2 = 0 ;
30569 void *argp1 = 0 ;
30570 int res1 = 0 ;
30571 void *argp2 = 0 ;
30572 int res2 = 0 ;
30573 PyObject * obj0 = 0 ;
30574 PyObject * obj1 = 0 ;
30575 char * kwnames[] = {
30576 (char *) "self",(char *) "palette", NULL
30577 };
30578
30579 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
30580 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30581 if (!SWIG_IsOK(res1)) {
30582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30583 }
30584 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30585 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
30586 if (!SWIG_IsOK(res2)) {
30587 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
30588 }
30589 if (!argp2) {
30590 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
30591 }
30592 arg2 = reinterpret_cast< wxPalette * >(argp2);
30593 {
30594 PyThreadState* __tstate = wxPyBeginAllowThreads();
30595 (arg1)->SetPalette((wxPalette const &)*arg2);
30596 wxPyEndAllowThreads(__tstate);
30597 if (PyErr_Occurred()) SWIG_fail;
30598 }
30599 resultobj = SWIG_Py_Void();
30600 return resultobj;
30601 fail:
30602 return NULL;
30603 }
30604
30605
30606 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30607 PyObject *resultobj = 0;
30608 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30609 wxColour *arg2 = 0 ;
30610 void *argp1 = 0 ;
30611 int res1 = 0 ;
30612 wxColour temp2 ;
30613 PyObject * obj0 = 0 ;
30614 PyObject * obj1 = 0 ;
30615 char * kwnames[] = {
30616 (char *) "self",(char *) "colour", NULL
30617 };
30618
30619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
30620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30621 if (!SWIG_IsOK(res1)) {
30622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30623 }
30624 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30625 {
30626 arg2 = &temp2;
30627 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
30628 }
30629 {
30630 PyThreadState* __tstate = wxPyBeginAllowThreads();
30631 (arg1)->SetTextForeground((wxColour const &)*arg2);
30632 wxPyEndAllowThreads(__tstate);
30633 if (PyErr_Occurred()) SWIG_fail;
30634 }
30635 resultobj = SWIG_Py_Void();
30636 return resultobj;
30637 fail:
30638 return NULL;
30639 }
30640
30641
30642 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30643 PyObject *resultobj = 0;
30644 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30645 wxColour *arg2 = 0 ;
30646 void *argp1 = 0 ;
30647 int res1 = 0 ;
30648 wxColour temp2 ;
30649 PyObject * obj0 = 0 ;
30650 PyObject * obj1 = 0 ;
30651 char * kwnames[] = {
30652 (char *) "self",(char *) "colour", NULL
30653 };
30654
30655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
30656 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30657 if (!SWIG_IsOK(res1)) {
30658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30659 }
30660 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30661 {
30662 arg2 = &temp2;
30663 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
30664 }
30665 {
30666 PyThreadState* __tstate = wxPyBeginAllowThreads();
30667 (arg1)->SetTextBackground((wxColour const &)*arg2);
30668 wxPyEndAllowThreads(__tstate);
30669 if (PyErr_Occurred()) SWIG_fail;
30670 }
30671 resultobj = SWIG_Py_Void();
30672 return resultobj;
30673 fail:
30674 return NULL;
30675 }
30676
30677
30678 SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30679 PyObject *resultobj = 0;
30680 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30681 int arg2 ;
30682 void *argp1 = 0 ;
30683 int res1 = 0 ;
30684 int val2 ;
30685 int ecode2 = 0 ;
30686 PyObject * obj0 = 0 ;
30687 PyObject * obj1 = 0 ;
30688 char * kwnames[] = {
30689 (char *) "self",(char *) "function", NULL
30690 };
30691
30692 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
30693 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30694 if (!SWIG_IsOK(res1)) {
30695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30696 }
30697 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30698 ecode2 = SWIG_AsVal_int(obj1, &val2);
30699 if (!SWIG_IsOK(ecode2)) {
30700 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
30701 }
30702 arg2 = static_cast< int >(val2);
30703 {
30704 PyThreadState* __tstate = wxPyBeginAllowThreads();
30705 (arg1)->SetLogicalFunction(arg2);
30706 wxPyEndAllowThreads(__tstate);
30707 if (PyErr_Occurred()) SWIG_fail;
30708 }
30709 resultobj = SWIG_Py_Void();
30710 return resultobj;
30711 fail:
30712 return NULL;
30713 }
30714
30715
30716 SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30717 PyObject *obj;
30718 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30719 SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj));
30720 return SWIG_Py_Void();
30721 }
30722
30723 SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30724 return SWIG_Python_InitShadowInstance(args);
30725 }
30726
30727 static PyMethodDef SwigMethods[] = {
30728 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
30729 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
30730 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
30731 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
30732 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
30733 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
30734 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
30735 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
30736 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
30737 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
30738 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
30739 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
30740 { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL},
30741 { (char *)"Colour_Ok", (PyCFunction)_wrap_Colour_Ok, METH_O, NULL},
30742 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
30743 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
30744 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
30745 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
30746 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
30747 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
30748 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
30749 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
30750 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
30751 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
30752 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
30753 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
30754 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
30755 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
30756 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
30757 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
30758 { (char *)"Palette_Ok", (PyCFunction)_wrap_Palette_Ok, METH_O, NULL},
30759 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
30760 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
30761 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
30762 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
30763 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
30764 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
30765 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
30766 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
30767 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
30768 { (char *)"Pen_Ok", (PyCFunction)_wrap_Pen_Ok, METH_O, NULL},
30769 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
30770 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
30771 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
30772 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
30773 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
30774 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
30775 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
30776 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
30777 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
30778 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
30779 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
30780 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
30781 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
30782 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
30783 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
30784 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
30785 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
30786 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
30787 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
30788 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
30789 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
30790 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
30791 { (char *)"Brush_Ok", (PyCFunction)_wrap_Brush_Ok, METH_O, NULL},
30792 { (char *)"Brush_MacGetTheme", (PyCFunction)_wrap_Brush_MacGetTheme, METH_O, NULL},
30793 { (char *)"Brush_MacSetTheme", (PyCFunction) _wrap_Brush_MacSetTheme, METH_VARARGS | METH_KEYWORDS, NULL},
30794 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
30795 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
30796 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
30797 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
30798 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
30799 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
30800 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
30801 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
30802 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
30803 { (char *)"Bitmap_Ok", (PyCFunction)_wrap_Bitmap_Ok, METH_O, NULL},
30804 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
30805 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
30806 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
30807 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
30808 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
30809 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
30810 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
30811 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
30812 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
30813 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
30814 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
30815 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
30816 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
30817 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
30818 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
30819 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
30820 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
30821 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
30822 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
30823 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
30824 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
30825 { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
30826 { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
30827 { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
30828 { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL},
30829 { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL},
30830 { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL},
30831 { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL},
30832 { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL},
30833 { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL},
30834 { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL},
30835 { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL},
30836 { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL},
30837 { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL},
30838 { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL},
30839 { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL},
30840 { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL},
30841 { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL},
30842 { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL},
30843 { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
30844 { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL},
30845 { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL},
30846 { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
30847 { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
30848 { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
30849 { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
30850 { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
30851 { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL},
30852 { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL},
30853 { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL},
30854 { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL},
30855 { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL},
30856 { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL},
30857 { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL},
30858 { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL},
30859 { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL},
30860 { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL},
30861 { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL},
30862 { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL},
30863 { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
30864 { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL},
30865 { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL},
30866 { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
30867 { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
30868 { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
30869 { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
30870 { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
30871 { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL},
30872 { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL},
30873 { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL},
30874 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
30875 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
30876 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
30877 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
30878 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
30879 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
30880 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
30881 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
30882 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
30883 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
30884 { (char *)"Icon_Ok", (PyCFunction)_wrap_Icon_Ok, METH_O, NULL},
30885 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
30886 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
30887 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
30888 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
30889 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
30890 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
30891 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
30892 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
30893 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
30894 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
30895 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
30896 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
30897 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
30898 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
30899 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
30900 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
30901 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
30902 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
30903 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
30904 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
30905 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
30906 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
30907 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
30908 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
30909 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
30910 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
30911 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
30912 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
30913 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
30914 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
30915 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
30916 { (char *)"Cursor_Ok", (PyCFunction)_wrap_Cursor_Ok, METH_O, NULL},
30917 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
30918 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
30919 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
30920 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
30921 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
30922 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
30923 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
30924 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
30925 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
30926 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
30927 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
30928 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
30929 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
30930 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
30931 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
30932 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
30933 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
30934 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
30935 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
30936 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
30937 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
30938 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
30939 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
30940 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
30941 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
30942 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
30943 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
30944 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
30945 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
30946 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
30947 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
30948 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
30949 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
30950 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
30951 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
30952 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
30953 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
30954 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
30955 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
30956 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
30957 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
30958 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
30959 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
30960 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
30961 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
30962 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
30963 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
30964 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
30965 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
30966 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
30967 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
30968 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
30969 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
30970 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
30971 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
30972 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
30973 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
30974 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
30975 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
30976 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
30977 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
30978 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
30979 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
30980 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
30981 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
30982 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
30983 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
30984 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
30985 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
30986 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
30987 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
30988 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
30989 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
30990 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
30991 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
30992 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
30993 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
30994 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
30995 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
30996 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
30997 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
30998 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
30999 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
31000 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
31001 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
31002 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
31003 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
31004 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
31005 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
31006 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
31007 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
31008 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
31009 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
31010 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
31011 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
31012 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
31013 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
31014 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
31015 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
31016 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
31017 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
31018 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
31019 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
31020 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
31021 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
31022 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
31023 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
31024 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
31025 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
31026 { (char *)"Font_Ok", (PyCFunction)_wrap_Font_Ok, METH_O, NULL},
31027 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
31028 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
31029 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
31030 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
31031 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
31032 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
31033 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
31034 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
31035 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
31036 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
31037 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
31038 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
31039 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
31040 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
31041 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
31042 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
31043 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
31044 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
31045 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
31046 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
31047 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
31048 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
31049 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
31050 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
31051 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
31052 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
31053 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
31054 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
31055 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
31056 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
31057 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
31058 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
31059 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
31060 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
31061 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
31062 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
31063 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
31064 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
31065 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
31066 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
31067 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
31068 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
31069 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
31070 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
31071 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
31072 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
31073 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
31074 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
31075 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
31076 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
31077 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
31078 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
31079 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
31080 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
31081 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
31082 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
31083 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
31084 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
31085 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
31086 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
31087 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
31088 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
31089 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
31090 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
31091 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
31092 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
31093 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
31094 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
31095 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
31096 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
31097 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
31098 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
31099 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
31100 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
31101 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
31102 { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL},
31103 { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL},
31104 { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
31105 { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL},
31106 { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL},
31107 { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL},
31108 { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL},
31109 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
31110 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
31111 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
31112 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
31113 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
31114 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
31115 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
31116 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
31117 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
31118 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
31119 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
31120 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
31121 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
31122 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31123 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
31124 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
31125 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
31126 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31127 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
31128 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
31129 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
31130 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31131 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
31132 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31133 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
31134 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
31135 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
31136 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
31137 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31138 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31139 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
31140 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
31141 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
31142 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
31143 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
31144 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
31145 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
31146 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
31147 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
31148 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
31149 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
31150 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
31151 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31152 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
31153 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31154 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
31155 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31156 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
31157 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31158 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
31159 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
31160 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
31161 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
31162 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
31163 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
31164 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
31165 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
31166 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
31167 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
31168 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
31169 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
31170 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
31171 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
31172 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
31173 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
31174 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
31175 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
31176 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
31177 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
31178 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
31179 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
31180 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
31181 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
31182 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
31183 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
31184 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
31185 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
31186 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
31187 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
31188 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
31189 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
31190 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
31191 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
31192 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
31193 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
31194 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
31195 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
31196 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
31197 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
31198 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
31199 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
31200 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
31201 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
31202 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
31203 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
31204 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
31205 { (char *)"DC_Ok", (PyCFunction)_wrap_DC_Ok, METH_O, NULL},
31206 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
31207 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
31208 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
31209 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
31210 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
31211 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
31212 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
31213 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
31214 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
31215 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
31216 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
31217 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
31218 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
31219 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
31220 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
31221 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
31222 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
31223 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
31224 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31225 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
31226 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
31227 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
31228 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31229 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
31230 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
31231 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
31232 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
31233 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
31234 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31235 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
31236 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
31237 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
31238 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
31239 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
31240 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
31241 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
31242 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
31243 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
31244 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
31245 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
31246 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
31247 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
31248 { (char *)"new_MemoryDC", (PyCFunction)_wrap_new_MemoryDC, METH_NOARGS, NULL},
31249 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
31250 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
31251 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
31252 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
31253 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
31254 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
31255 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
31256 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
31257 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
31258 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
31259 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
31260 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
31261 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
31262 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
31263 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
31264 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
31265 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
31266 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
31267 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
31268 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
31269 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
31270 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
31271 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
31272 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
31273 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
31274 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
31275 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
31276 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
31277 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
31278 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
31279 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
31280 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
31281 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
31282 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
31283 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
31284 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
31285 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
31286 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
31287 { (char *)"delete_MetaFile", (PyCFunction)_wrap_delete_MetaFile, METH_O, NULL},
31288 { (char *)"MetaFile_Ok", (PyCFunction)_wrap_MetaFile_Ok, METH_O, NULL},
31289 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL},
31290 { (char *)"MetaFile_GetSize", (PyCFunction)_wrap_MetaFile_GetSize, METH_O, NULL},
31291 { (char *)"MetaFile_GetWidth", (PyCFunction)_wrap_MetaFile_GetWidth, METH_O, NULL},
31292 { (char *)"MetaFile_GetHeight", (PyCFunction)_wrap_MetaFile_GetHeight, METH_O, NULL},
31293 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
31294 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
31295 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
31296 { (char *)"MetaFileDC_Close", (PyCFunction)_wrap_MetaFileDC_Close, METH_O, NULL},
31297 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
31298 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
31299 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
31300 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
31301 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
31302 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
31303 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
31304 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
31305 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
31306 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
31307 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
31308 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
31309 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
31310 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
31311 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
31312 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
31313 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
31314 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
31315 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
31316 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
31317 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
31318 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
31319 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
31320 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
31321 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
31322 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
31323 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
31324 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
31325 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
31326 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
31327 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
31328 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
31329 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
31330 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
31331 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
31332 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
31333 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
31334 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
31335 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
31336 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
31337 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
31338 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
31339 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
31340 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
31341 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
31342 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
31343 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
31344 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
31345 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
31346 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
31347 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
31348 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
31349 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
31350 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
31351 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
31352 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
31353 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
31354 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
31355 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
31356 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
31357 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
31358 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
31359 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
31360 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
31361 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
31362 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
31363 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
31364 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
31365 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
31366 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
31367 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
31368 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
31369 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
31370 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
31371 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
31372 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
31373 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
31374 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
31375 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
31376 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
31377 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
31378 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
31379 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
31380 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
31381 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
31382 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
31383 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
31384 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
31385 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
31386 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
31387 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
31388 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
31389 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
31390 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
31391 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
31392 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
31393 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
31394 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
31395 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
31396 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
31397 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
31398 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
31399 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
31400 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
31401 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
31402 { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL},
31403 { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL},
31404 { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL},
31405 { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL},
31406 { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL},
31407 { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL},
31408 { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
31409 { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL},
31410 { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL},
31411 { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL},
31412 { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL},
31413 { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
31414 { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
31415 { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL},
31416 { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL},
31417 { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL},
31418 { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
31419 { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31420 { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
31421 { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
31422 { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
31423 { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31424 { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
31425 { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31426 { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
31427 { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
31428 { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
31429 { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
31430 { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31431 { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31432 { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
31433 { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
31434 { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
31435 { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
31436 { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
31437 { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
31438 { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
31439 { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
31440 { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
31441 { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
31442 { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
31443 { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
31444 { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31445 { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
31446 { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31447 { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
31448 { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31449 { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
31450 { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31451 { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
31452 { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
31453 { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
31454 { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
31455 { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
31456 { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL},
31457 { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
31458 { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
31459 { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
31460 { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
31461 { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
31462 { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
31463 { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
31464 { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
31465 { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
31466 { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
31467 { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL},
31468 { NULL, NULL, 0, NULL }
31469 };
31470
31471
31472 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
31473
31474 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
31475 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
31476 }
31477 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
31478 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
31479 }
31480 static void *_p_wxPyLocaleTo_p_wxLocale(void *x) {
31481 return (void *)((wxLocale *) ((wxPyLocale *) x));
31482 }
31483 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
31484 return (void *)((wxGDIObject *) ((wxIcon *) x));
31485 }
31486 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
31487 return (void *)((wxGDIObject *) ((wxPalette *) x));
31488 }
31489 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
31490 return (void *)((wxGDIObject *) ((wxPen *) x));
31491 }
31492 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
31493 return (void *)((wxGDIObject *) ((wxFont *) x));
31494 }
31495 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
31496 return (void *)((wxGDIObject *) ((wxCursor *) x));
31497 }
31498 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
31499 return (void *)((wxGDIObject *) ((wxBitmap *) x));
31500 }
31501 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
31502 return (void *)((wxGDIObject *) ((wxRegion *) x));
31503 }
31504 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
31505 return (void *)((wxGDIObject *) ((wxBrush *) x));
31506 }
31507 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
31508 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
31509 }
31510 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
31511 return (void *)((wxDC *) ((wxScreenDC *) x));
31512 }
31513 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
31514 return (void *)((wxDC *) ((wxMirrorDC *) x));
31515 }
31516 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
31517 return (void *)((wxDC *) ((wxMemoryDC *) x));
31518 }
31519 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
31520 return (void *)((wxDC *) ((wxWindowDC *) x));
31521 }
31522 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
31523 return (void *)((wxDC *) ((wxMetaFileDC *) x));
31524 }
31525 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
31526 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
31527 }
31528 static void *_p_wxClientDCTo_p_wxDC(void *x) {
31529 return (void *)((wxDC *) ((wxClientDC *) x));
31530 }
31531 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
31532 return (void *)((wxDC *) ((wxPaintDC *) x));
31533 }
31534 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
31535 return (void *)((wxDC *) ((wxPostScriptDC *) x));
31536 }
31537 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
31538 return (void *)((wxDC *) ((wxPrinterDC *) x));
31539 }
31540 static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
31541 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
31542 }
31543 static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
31544 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
31545 }
31546 static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
31547 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
31548 }
31549 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
31550 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
31551 }
31552 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
31553 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
31554 }
31555 static void *_p_wxPenTo_p_wxObject(void *x) {
31556 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
31557 }
31558 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
31559 return (void *)((wxObject *) ((wxRegionIterator *) x));
31560 }
31561 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
31562 return (void *)((wxObject *) ((wxSizerItem *) x));
31563 }
31564 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
31565 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
31566 }
31567 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
31568 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
31569 }
31570 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
31571 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
31572 }
31573 static void *_p_wxIconTo_p_wxObject(void *x) {
31574 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
31575 }
31576 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
31577 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
31578 }
31579 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
31580 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
31581 }
31582 static void *_p_wxSizerTo_p_wxObject(void *x) {
31583 return (void *)((wxObject *) ((wxSizer *) x));
31584 }
31585 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
31586 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
31587 }
31588 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
31589 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
31590 }
31591 static void *_p_wxEventTo_p_wxObject(void *x) {
31592 return (void *)((wxObject *) ((wxEvent *) x));
31593 }
31594 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
31595 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
31596 }
31597 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
31598 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
31599 }
31600 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
31601 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
31602 }
31603 static void *_p_wxPseudoDCTo_p_wxObject(void *x) {
31604 return (void *)((wxObject *) ((wxPseudoDC *) x));
31605 }
31606 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
31607 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
31608 }
31609 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
31610 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
31611 }
31612 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
31613 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
31614 }
31615 static void *_p_wxDCTo_p_wxObject(void *x) {
31616 return (void *)((wxObject *) ((wxDC *) x));
31617 }
31618 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
31619 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
31620 }
31621 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
31622 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
31623 }
31624 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
31625 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
31626 }
31627 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
31628 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
31629 }
31630 static void *_p_wxControlTo_p_wxObject(void *x) {
31631 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
31632 }
31633 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
31634 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
31635 }
31636 static void *_p_wxClientDCTo_p_wxObject(void *x) {
31637 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
31638 }
31639 static void *_p_wxFSFileTo_p_wxObject(void *x) {
31640 return (void *)((wxObject *) ((wxFSFile *) x));
31641 }
31642 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
31643 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
31644 }
31645 static void *_p_wxRegionTo_p_wxObject(void *x) {
31646 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
31647 }
31648 static void *_p_wxPySizerTo_p_wxObject(void *x) {
31649 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
31650 }
31651 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
31652 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
31653 }
31654 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
31655 return (void *)((wxObject *) ((wxGDIObject *) x));
31656 }
31657 static void *_p_wxEffectsTo_p_wxObject(void *x) {
31658 return (void *)((wxObject *) ((wxEffects *) x));
31659 }
31660 static void *_p_wxPyEventTo_p_wxObject(void *x) {
31661 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
31662 }
31663 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
31664 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
31665 }
31666 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
31667 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
31668 }
31669 static void *_p_wxShowEventTo_p_wxObject(void *x) {
31670 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
31671 }
31672 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
31673 return (void *)((wxObject *) ((wxMenuItem *) x));
31674 }
31675 static void *_p_wxDateEventTo_p_wxObject(void *x) {
31676 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
31677 }
31678 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
31679 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
31680 }
31681 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
31682 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
31683 }
31684 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
31685 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
31686 }
31687 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
31688 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
31689 }
31690 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
31691 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
31692 }
31693 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
31694 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
31695 }
31696 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
31697 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
31698 }
31699 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
31700 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
31701 }
31702 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
31703 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
31704 }
31705 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
31706 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
31707 }
31708 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
31709 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
31710 }
31711 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
31712 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
31713 }
31714 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
31715 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
31716 }
31717 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
31718 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
31719 }
31720 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
31721 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
31722 }
31723 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
31724 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
31725 }
31726 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
31727 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
31728 }
31729 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
31730 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
31731 }
31732 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
31733 return (void *)((wxObject *) ((wxImageHandler *) x));
31734 }
31735 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
31736 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
31737 }
31738 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
31739 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
31740 }
31741 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
31742 return (void *)((wxObject *) ((wxEvtHandler *) x));
31743 }
31744 static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
31745 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
31746 }
31747 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
31748 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
31749 }
31750 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
31751 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
31752 }
31753 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
31754 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
31755 }
31756 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
31757 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
31758 }
31759 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
31760 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
31761 }
31762 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
31763 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
31764 }
31765 static void *_p_wxImageTo_p_wxObject(void *x) {
31766 return (void *)((wxObject *) ((wxImage *) x));
31767 }
31768 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
31769 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
31770 }
31771 static void *_p_wxPaletteTo_p_wxObject(void *x) {
31772 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
31773 }
31774 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
31775 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
31776 }
31777 static void *_p_wxImageListTo_p_wxObject(void *x) {
31778 return (void *)((wxObject *) ((wxImageList *) x));
31779 }
31780 static void *_p_wxCursorTo_p_wxObject(void *x) {
31781 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
31782 }
31783 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
31784 return (void *)((wxObject *) ((wxEncodingConverter *) x));
31785 }
31786 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
31787 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
31788 }
31789 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
31790 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
31791 }
31792 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
31793 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
31794 }
31795 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
31796 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
31797 }
31798 static void *_p_wxWindowTo_p_wxObject(void *x) {
31799 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
31800 }
31801 static void *_p_wxMenuTo_p_wxObject(void *x) {
31802 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
31803 }
31804 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
31805 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
31806 }
31807 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
31808 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
31809 }
31810 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
31811 return (void *)((wxObject *) ((wxFileSystem *) x));
31812 }
31813 static void *_p_wxBitmapTo_p_wxObject(void *x) {
31814 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
31815 }
31816 static void *_p_wxMaskTo_p_wxObject(void *x) {
31817 return (void *)((wxObject *) ((wxMask *) x));
31818 }
31819 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
31820 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
31821 }
31822 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
31823 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
31824 }
31825 static void *_p_wxPyAppTo_p_wxObject(void *x) {
31826 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
31827 }
31828 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
31829 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
31830 }
31831 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
31832 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
31833 }
31834 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
31835 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
31836 }
31837 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
31838 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
31839 }
31840 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
31841 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
31842 }
31843 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
31844 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
31845 }
31846 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
31847 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
31848 }
31849 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
31850 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
31851 }
31852 static void *_p_wxFontTo_p_wxObject(void *x) {
31853 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
31854 }
31855 static void *_p_wxBrushTo_p_wxObject(void *x) {
31856 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
31857 }
31858 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
31859 return (void *)((wxObject *) ((wxMetaFile *) x));
31860 }
31861 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
31862 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
31863 }
31864 static void *_p_wxColourTo_p_wxObject(void *x) {
31865 return (void *)((wxObject *) ((wxColour *) x));
31866 }
31867 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
31868 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
31869 }
31870 static void *_p_wxValidatorTo_p_wxObject(void *x) {
31871 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
31872 }
31873 static void *_p_wxControlTo_p_wxWindow(void *x) {
31874 return (void *)((wxWindow *) ((wxControl *) x));
31875 }
31876 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
31877 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
31878 }
31879 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
31880 return (void *)((wxWindow *) ((wxMenuBar *) x));
31881 }
31882 static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) {
31883 return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x));
31884 }
31885 static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) {
31886 return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x));
31887 }
31888 static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0};
31889 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
31890 static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, (void*)0, 0};
31891 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};
31892 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
31893 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
31894 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
31895 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
31896 static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0};
31897 static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0};
31898 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
31899 static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
31900 static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
31901 static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
31902 static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
31903 static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0};
31904 static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
31905 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
31906 static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
31907 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
31908 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
31909 static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
31910 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
31911 static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
31912 static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
31913 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
31914 static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
31915 static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
31916 static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
31917 static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
31918 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
31919 static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
31920 static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
31921 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
31922 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
31923 static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
31924 static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
31925 static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
31926 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
31927 static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
31928 static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
31929 static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
31930 static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
31931 static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
31932 static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0};
31933 static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0};
31934 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
31935 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
31936 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
31937 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
31938 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
31939 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
31940 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
31941 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
31942 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
31943 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
31944 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
31945 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
31946 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
31947 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
31948 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
31949 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
31950 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
31951 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
31952 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
31953 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
31954 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
31955 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
31956 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
31957 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
31958 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
31959 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
31960 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
31961 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
31962 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
31963 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
31964 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
31965 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
31966 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
31967 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
31968 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
31969 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
31970 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
31971 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
31972 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
31973 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
31974 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
31975 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
31976 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
31977 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
31978 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
31979 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
31980 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
31981 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
31982 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
31983 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
31984 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
31985 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
31986 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
31987 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
31988 static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
31989 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
31990 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
31991 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
31992 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
31993 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
31994 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
31995 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
31996 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
31997 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
31998 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
31999 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
32000 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
32001 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
32002 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
32003 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
32004 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
32005 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
32006 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
32007 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
32008 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
32009 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
32010 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
32011 static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
32012 static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
32013 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
32014 static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
32015 static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
32016 static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0};
32017 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
32018 static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
32019 static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
32020 static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
32021 static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0};
32022 static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
32023 static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0};
32024 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
32025 static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
32026 static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
32027 static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
32028 static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
32029 static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
32030 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
32031 static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
32032 static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
32033 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
32034 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
32035 static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
32036
32037 static swig_type_info *swig_type_initial[] = {
32038 &_swigt__p_buffer,
32039 &_swigt__p_char,
32040 &_swigt__p_double,
32041 &_swigt__p_form_ops_t,
32042 &_swigt__p_int,
32043 &_swigt__p_unsigned_char,
32044 &_swigt__p_unsigned_int,
32045 &_swigt__p_unsigned_long,
32046 &_swigt__p_wxANIHandler,
32047 &_swigt__p_wxAcceleratorTable,
32048 &_swigt__p_wxActivateEvent,
32049 &_swigt__p_wxAlphaPixelData,
32050 &_swigt__p_wxAlphaPixelData_Accessor,
32051 &_swigt__p_wxBMPHandler,
32052 &_swigt__p_wxBitmap,
32053 &_swigt__p_wxBoxSizer,
32054 &_swigt__p_wxBrush,
32055 &_swigt__p_wxBrushList,
32056 &_swigt__p_wxBufferedDC,
32057 &_swigt__p_wxBufferedPaintDC,
32058 &_swigt__p_wxCURHandler,
32059 &_swigt__p_wxChar,
32060 &_swigt__p_wxChildFocusEvent,
32061 &_swigt__p_wxClientDC,
32062 &_swigt__p_wxClipboardTextEvent,
32063 &_swigt__p_wxCloseEvent,
32064 &_swigt__p_wxColour,
32065 &_swigt__p_wxColourDatabase,
32066 &_swigt__p_wxCommandEvent,
32067 &_swigt__p_wxContextMenuEvent,
32068 &_swigt__p_wxControl,
32069 &_swigt__p_wxControlWithItems,
32070 &_swigt__p_wxCursor,
32071 &_swigt__p_wxDC,
32072 &_swigt__p_wxDash,
32073 &_swigt__p_wxDateEvent,
32074 &_swigt__p_wxDisplayChangedEvent,
32075 &_swigt__p_wxDropFilesEvent,
32076 &_swigt__p_wxDuplexMode,
32077 &_swigt__p_wxEffects,
32078 &_swigt__p_wxEncodingConverter,
32079 &_swigt__p_wxEraseEvent,
32080 &_swigt__p_wxEvent,
32081 &_swigt__p_wxEvtHandler,
32082 &_swigt__p_wxFSFile,
32083 &_swigt__p_wxFileSystem,
32084 &_swigt__p_wxFlexGridSizer,
32085 &_swigt__p_wxFocusEvent,
32086 &_swigt__p_wxFont,
32087 &_swigt__p_wxFontList,
32088 &_swigt__p_wxFontMapper,
32089 &_swigt__p_wxGBSizerItem,
32090 &_swigt__p_wxGDIObjListBase,
32091 &_swigt__p_wxGDIObject,
32092 &_swigt__p_wxGIFHandler,
32093 &_swigt__p_wxGridBagSizer,
32094 &_swigt__p_wxGridSizer,
32095 &_swigt__p_wxICOHandler,
32096 &_swigt__p_wxIcon,
32097 &_swigt__p_wxIconBundle,
32098 &_swigt__p_wxIconLocation,
32099 &_swigt__p_wxIconizeEvent,
32100 &_swigt__p_wxIdleEvent,
32101 &_swigt__p_wxImage,
32102 &_swigt__p_wxImageHandler,
32103 &_swigt__p_wxImageList,
32104 &_swigt__p_wxIndividualLayoutConstraint,
32105 &_swigt__p_wxInitDialogEvent,
32106 &_swigt__p_wxJPEGHandler,
32107 &_swigt__p_wxKeyEvent,
32108 &_swigt__p_wxLanguageInfo,
32109 &_swigt__p_wxLayoutConstraints,
32110 &_swigt__p_wxLocale,
32111 &_swigt__p_wxMask,
32112 &_swigt__p_wxMaximizeEvent,
32113 &_swigt__p_wxMemoryDC,
32114 &_swigt__p_wxMenu,
32115 &_swigt__p_wxMenuBar,
32116 &_swigt__p_wxMenuEvent,
32117 &_swigt__p_wxMenuItem,
32118 &_swigt__p_wxMetaFile,
32119 &_swigt__p_wxMetaFileDC,
32120 &_swigt__p_wxMirrorDC,
32121 &_swigt__p_wxMouseCaptureChangedEvent,
32122 &_swigt__p_wxMouseCaptureLostEvent,
32123 &_swigt__p_wxMouseEvent,
32124 &_swigt__p_wxMoveEvent,
32125 &_swigt__p_wxNativeEncodingInfo,
32126 &_swigt__p_wxNativeFontInfo,
32127 &_swigt__p_wxNativePixelData,
32128 &_swigt__p_wxNativePixelData_Accessor,
32129 &_swigt__p_wxNavigationKeyEvent,
32130 &_swigt__p_wxNcPaintEvent,
32131 &_swigt__p_wxNotifyEvent,
32132 &_swigt__p_wxObject,
32133 &_swigt__p_wxPCXHandler,
32134 &_swigt__p_wxPNGHandler,
32135 &_swigt__p_wxPNMHandler,
32136 &_swigt__p_wxPaintDC,
32137 &_swigt__p_wxPaintEvent,
32138 &_swigt__p_wxPalette,
32139 &_swigt__p_wxPaletteChangedEvent,
32140 &_swigt__p_wxPaperSize,
32141 &_swigt__p_wxPen,
32142 &_swigt__p_wxPenList,
32143 &_swigt__p_wxPixelDataBase,
32144 &_swigt__p_wxPoint,
32145 &_swigt__p_wxPostScriptDC,
32146 &_swigt__p_wxPrintData,
32147 &_swigt__p_wxPrinterDC,
32148 &_swigt__p_wxPseudoDC,
32149 &_swigt__p_wxPyApp,
32150 &_swigt__p_wxPyCommandEvent,
32151 &_swigt__p_wxPyEvent,
32152 &_swigt__p_wxPyFontEnumerator,
32153 &_swigt__p_wxPyImageHandler,
32154 &_swigt__p_wxPyLocale,
32155 &_swigt__p_wxPySizer,
32156 &_swigt__p_wxPyValidator,
32157 &_swigt__p_wxQueryNewPaletteEvent,
32158 &_swigt__p_wxRect,
32159 &_swigt__p_wxRegion,
32160 &_swigt__p_wxRegionIterator,
32161 &_swigt__p_wxRendererNative,
32162 &_swigt__p_wxRendererVersion,
32163 &_swigt__p_wxScreenDC,
32164 &_swigt__p_wxScrollEvent,
32165 &_swigt__p_wxScrollWinEvent,
32166 &_swigt__p_wxSetCursorEvent,
32167 &_swigt__p_wxShowEvent,
32168 &_swigt__p_wxSize,
32169 &_swigt__p_wxSizeEvent,
32170 &_swigt__p_wxSizer,
32171 &_swigt__p_wxSizerItem,
32172 &_swigt__p_wxSplitterRenderParams,
32173 &_swigt__p_wxStaticBoxSizer,
32174 &_swigt__p_wxStdDialogButtonSizer,
32175 &_swigt__p_wxStockGDI,
32176 &_swigt__p_wxString,
32177 &_swigt__p_wxSysColourChangedEvent,
32178 &_swigt__p_wxTIFFHandler,
32179 &_swigt__p_wxUpdateUIEvent,
32180 &_swigt__p_wxValidator,
32181 &_swigt__p_wxWindow,
32182 &_swigt__p_wxWindowCreateEvent,
32183 &_swigt__p_wxWindowDC,
32184 &_swigt__p_wxWindowDestroyEvent,
32185 &_swigt__p_wxXPMHandler,
32186 };
32187
32188 static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}};
32189 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
32190 static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
32191 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
32192 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
32193 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
32194 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
32195 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
32196 static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}};
32197 static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
32198 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
32199 static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
32200 static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
32201 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}};
32202 static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
32203 static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}};
32204 static swig_cast_info _swigc__p_wxClientDC[] = { {&_swigt__p_wxClientDC, 0, 0, 0},{0, 0, 0, 0}};
32205 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
32206 static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
32207 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
32208 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}};
32209 static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
32210 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
32211 static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
32212 static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
32213 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
32214 static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
32215 static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
32216 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}};
32217 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}};
32218 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
32219 static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
32220 static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
32221 static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
32222 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
32223 static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
32224 static swig_cast_info _swigc__p_wxLocale[] = { {&_swigt__p_wxPyLocale, _p_wxPyLocaleTo_p_wxLocale, 0, 0}, {&_swigt__p_wxLocale, 0, 0, 0},{0, 0, 0, 0}};
32225 static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
32226 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}};
32227 static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
32228 static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
32229 static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
32230 static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
32231 static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
32232 static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}};
32233 static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
32234 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
32235 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
32236 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
32237 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
32238 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
32239 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
32240 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
32241 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
32242 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
32243 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
32244 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
32245 static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
32246 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
32247 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
32248 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
32249 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
32250 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
32251 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
32252 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
32253 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
32254 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
32255 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
32256 static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
32257 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
32258 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
32259 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
32260 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
32261 static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
32262 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
32263 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
32264 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
32265 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
32266 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
32267 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
32268 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
32269 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
32270 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
32271 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
32272 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
32273 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
32274 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
32275 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
32276 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
32277 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
32278 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
32279 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
32280 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
32281 static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
32282 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
32283 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
32284 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
32285 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
32286 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
32287 static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
32288 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
32289 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
32290 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
32291 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
32292 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
32293 static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
32294 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
32295 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
32296 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
32297 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
32298 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
32299 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
32300 static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
32301 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
32302 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
32303 static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
32304 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
32305 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
32306 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
32307 static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
32308 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
32309 static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
32310 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_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_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_wxPseudoDC, _p_wxPseudoDCTo_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_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_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}};
32311 static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
32312 static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
32313 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
32314 static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
32315 static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
32316 static swig_cast_info _swigc__p_wxPixelDataBase[] = { {&_swigt__p_wxPixelDataBase, 0, 0, 0}, {&_swigt__p_wxNativePixelData, _p_wxNativePixelDataTo_p_wxPixelDataBase, 0, 0}, {&_swigt__p_wxAlphaPixelData, _p_wxAlphaPixelDataTo_p_wxPixelDataBase, 0, 0},{0, 0, 0, 0}};
32317 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
32318 static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
32319 static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
32320 static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
32321 static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
32322 static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
32323 static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}};
32324 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
32325 static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
32326 static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
32327 static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
32328 static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
32329 static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
32330 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
32331 static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
32332 static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
32333 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
32334 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}};
32335 static swig_cast_info _swigc__p_wxWindowDC[] = { {&_swigt__p_wxWindowDC, 0, 0, 0},{0, 0, 0, 0}};
32336
32337 static swig_cast_info *swig_cast_initial[] = {
32338 _swigc__p_buffer,
32339 _swigc__p_char,
32340 _swigc__p_double,
32341 _swigc__p_form_ops_t,
32342 _swigc__p_int,
32343 _swigc__p_unsigned_char,
32344 _swigc__p_unsigned_int,
32345 _swigc__p_unsigned_long,
32346 _swigc__p_wxANIHandler,
32347 _swigc__p_wxAcceleratorTable,
32348 _swigc__p_wxActivateEvent,
32349 _swigc__p_wxAlphaPixelData,
32350 _swigc__p_wxAlphaPixelData_Accessor,
32351 _swigc__p_wxBMPHandler,
32352 _swigc__p_wxBitmap,
32353 _swigc__p_wxBoxSizer,
32354 _swigc__p_wxBrush,
32355 _swigc__p_wxBrushList,
32356 _swigc__p_wxBufferedDC,
32357 _swigc__p_wxBufferedPaintDC,
32358 _swigc__p_wxCURHandler,
32359 _swigc__p_wxChar,
32360 _swigc__p_wxChildFocusEvent,
32361 _swigc__p_wxClientDC,
32362 _swigc__p_wxClipboardTextEvent,
32363 _swigc__p_wxCloseEvent,
32364 _swigc__p_wxColour,
32365 _swigc__p_wxColourDatabase,
32366 _swigc__p_wxCommandEvent,
32367 _swigc__p_wxContextMenuEvent,
32368 _swigc__p_wxControl,
32369 _swigc__p_wxControlWithItems,
32370 _swigc__p_wxCursor,
32371 _swigc__p_wxDC,
32372 _swigc__p_wxDash,
32373 _swigc__p_wxDateEvent,
32374 _swigc__p_wxDisplayChangedEvent,
32375 _swigc__p_wxDropFilesEvent,
32376 _swigc__p_wxDuplexMode,
32377 _swigc__p_wxEffects,
32378 _swigc__p_wxEncodingConverter,
32379 _swigc__p_wxEraseEvent,
32380 _swigc__p_wxEvent,
32381 _swigc__p_wxEvtHandler,
32382 _swigc__p_wxFSFile,
32383 _swigc__p_wxFileSystem,
32384 _swigc__p_wxFlexGridSizer,
32385 _swigc__p_wxFocusEvent,
32386 _swigc__p_wxFont,
32387 _swigc__p_wxFontList,
32388 _swigc__p_wxFontMapper,
32389 _swigc__p_wxGBSizerItem,
32390 _swigc__p_wxGDIObjListBase,
32391 _swigc__p_wxGDIObject,
32392 _swigc__p_wxGIFHandler,
32393 _swigc__p_wxGridBagSizer,
32394 _swigc__p_wxGridSizer,
32395 _swigc__p_wxICOHandler,
32396 _swigc__p_wxIcon,
32397 _swigc__p_wxIconBundle,
32398 _swigc__p_wxIconLocation,
32399 _swigc__p_wxIconizeEvent,
32400 _swigc__p_wxIdleEvent,
32401 _swigc__p_wxImage,
32402 _swigc__p_wxImageHandler,
32403 _swigc__p_wxImageList,
32404 _swigc__p_wxIndividualLayoutConstraint,
32405 _swigc__p_wxInitDialogEvent,
32406 _swigc__p_wxJPEGHandler,
32407 _swigc__p_wxKeyEvent,
32408 _swigc__p_wxLanguageInfo,
32409 _swigc__p_wxLayoutConstraints,
32410 _swigc__p_wxLocale,
32411 _swigc__p_wxMask,
32412 _swigc__p_wxMaximizeEvent,
32413 _swigc__p_wxMemoryDC,
32414 _swigc__p_wxMenu,
32415 _swigc__p_wxMenuBar,
32416 _swigc__p_wxMenuEvent,
32417 _swigc__p_wxMenuItem,
32418 _swigc__p_wxMetaFile,
32419 _swigc__p_wxMetaFileDC,
32420 _swigc__p_wxMirrorDC,
32421 _swigc__p_wxMouseCaptureChangedEvent,
32422 _swigc__p_wxMouseCaptureLostEvent,
32423 _swigc__p_wxMouseEvent,
32424 _swigc__p_wxMoveEvent,
32425 _swigc__p_wxNativeEncodingInfo,
32426 _swigc__p_wxNativeFontInfo,
32427 _swigc__p_wxNativePixelData,
32428 _swigc__p_wxNativePixelData_Accessor,
32429 _swigc__p_wxNavigationKeyEvent,
32430 _swigc__p_wxNcPaintEvent,
32431 _swigc__p_wxNotifyEvent,
32432 _swigc__p_wxObject,
32433 _swigc__p_wxPCXHandler,
32434 _swigc__p_wxPNGHandler,
32435 _swigc__p_wxPNMHandler,
32436 _swigc__p_wxPaintDC,
32437 _swigc__p_wxPaintEvent,
32438 _swigc__p_wxPalette,
32439 _swigc__p_wxPaletteChangedEvent,
32440 _swigc__p_wxPaperSize,
32441 _swigc__p_wxPen,
32442 _swigc__p_wxPenList,
32443 _swigc__p_wxPixelDataBase,
32444 _swigc__p_wxPoint,
32445 _swigc__p_wxPostScriptDC,
32446 _swigc__p_wxPrintData,
32447 _swigc__p_wxPrinterDC,
32448 _swigc__p_wxPseudoDC,
32449 _swigc__p_wxPyApp,
32450 _swigc__p_wxPyCommandEvent,
32451 _swigc__p_wxPyEvent,
32452 _swigc__p_wxPyFontEnumerator,
32453 _swigc__p_wxPyImageHandler,
32454 _swigc__p_wxPyLocale,
32455 _swigc__p_wxPySizer,
32456 _swigc__p_wxPyValidator,
32457 _swigc__p_wxQueryNewPaletteEvent,
32458 _swigc__p_wxRect,
32459 _swigc__p_wxRegion,
32460 _swigc__p_wxRegionIterator,
32461 _swigc__p_wxRendererNative,
32462 _swigc__p_wxRendererVersion,
32463 _swigc__p_wxScreenDC,
32464 _swigc__p_wxScrollEvent,
32465 _swigc__p_wxScrollWinEvent,
32466 _swigc__p_wxSetCursorEvent,
32467 _swigc__p_wxShowEvent,
32468 _swigc__p_wxSize,
32469 _swigc__p_wxSizeEvent,
32470 _swigc__p_wxSizer,
32471 _swigc__p_wxSizerItem,
32472 _swigc__p_wxSplitterRenderParams,
32473 _swigc__p_wxStaticBoxSizer,
32474 _swigc__p_wxStdDialogButtonSizer,
32475 _swigc__p_wxStockGDI,
32476 _swigc__p_wxString,
32477 _swigc__p_wxSysColourChangedEvent,
32478 _swigc__p_wxTIFFHandler,
32479 _swigc__p_wxUpdateUIEvent,
32480 _swigc__p_wxValidator,
32481 _swigc__p_wxWindow,
32482 _swigc__p_wxWindowCreateEvent,
32483 _swigc__p_wxWindowDC,
32484 _swigc__p_wxWindowDestroyEvent,
32485 _swigc__p_wxXPMHandler,
32486 };
32487
32488
32489 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
32490
32491 static swig_const_info swig_const_table[] = {
32492 {0, 0, 0, 0.0, 0, 0}};
32493
32494 #ifdef __cplusplus
32495 }
32496 #endif
32497 /* -----------------------------------------------------------------------------
32498 * Type initialization:
32499 * This problem is tough by the requirement that no dynamic
32500 * memory is used. Also, since swig_type_info structures store pointers to
32501 * swig_cast_info structures and swig_cast_info structures store pointers back
32502 * to swig_type_info structures, we need some lookup code at initialization.
32503 * The idea is that swig generates all the structures that are needed.
32504 * The runtime then collects these partially filled structures.
32505 * The SWIG_InitializeModule function takes these initial arrays out of
32506 * swig_module, and does all the lookup, filling in the swig_module.types
32507 * array with the correct data and linking the correct swig_cast_info
32508 * structures together.
32509 *
32510 * The generated swig_type_info structures are assigned staticly to an initial
32511 * array. We just loop though that array, and handle each type individually.
32512 * First we lookup if this type has been already loaded, and if so, use the
32513 * loaded structure instead of the generated one. Then we have to fill in the
32514 * cast linked list. The cast data is initially stored in something like a
32515 * two-dimensional array. Each row corresponds to a type (there are the same
32516 * number of rows as there are in the swig_type_initial array). Each entry in
32517 * a column is one of the swig_cast_info structures for that type.
32518 * The cast_initial array is actually an array of arrays, because each row has
32519 * a variable number of columns. So to actually build the cast linked list,
32520 * we find the array of casts associated with the type, and loop through it
32521 * adding the casts to the list. The one last trick we need to do is making
32522 * sure the type pointer in the swig_cast_info struct is correct.
32523 *
32524 * First off, we lookup the cast->type name to see if it is already loaded.
32525 * There are three cases to handle:
32526 * 1) If the cast->type has already been loaded AND the type we are adding
32527 * casting info to has not been loaded (it is in this module), THEN we
32528 * replace the cast->type pointer with the type pointer that has already
32529 * been loaded.
32530 * 2) If BOTH types (the one we are adding casting info to, and the
32531 * cast->type) are loaded, THEN the cast info has already been loaded by
32532 * the previous module so we just ignore it.
32533 * 3) Finally, if cast->type has not already been loaded, then we add that
32534 * swig_cast_info to the linked list (because the cast->type) pointer will
32535 * be correct.
32536 * ----------------------------------------------------------------------------- */
32537
32538 #ifdef __cplusplus
32539 extern "C" {
32540 #if 0
32541 } /* c-mode */
32542 #endif
32543 #endif
32544
32545 #if 0
32546 #define SWIGRUNTIME_DEBUG
32547 #endif
32548
32549 SWIGRUNTIME void
32550 SWIG_InitializeModule(void *clientdata) {
32551 size_t i;
32552 swig_module_info *module_head;
32553 static int init_run = 0;
32554
32555 clientdata = clientdata;
32556
32557 if (init_run) return;
32558 init_run = 1;
32559
32560 /* Initialize the swig_module */
32561 swig_module.type_initial = swig_type_initial;
32562 swig_module.cast_initial = swig_cast_initial;
32563
32564 /* Try and load any already created modules */
32565 module_head = SWIG_GetModule(clientdata);
32566 if (module_head) {
32567 swig_module.next = module_head->next;
32568 module_head->next = &swig_module;
32569 } else {
32570 /* This is the first module loaded */
32571 swig_module.next = &swig_module;
32572 SWIG_SetModule(clientdata, &swig_module);
32573 }
32574
32575 /* Now work on filling in swig_module.types */
32576 #ifdef SWIGRUNTIME_DEBUG
32577 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
32578 #endif
32579 for (i = 0; i < swig_module.size; ++i) {
32580 swig_type_info *type = 0;
32581 swig_type_info *ret;
32582 swig_cast_info *cast;
32583
32584 #ifdef SWIGRUNTIME_DEBUG
32585 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
32586 #endif
32587
32588 /* if there is another module already loaded */
32589 if (swig_module.next != &swig_module) {
32590 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
32591 }
32592 if (type) {
32593 /* Overwrite clientdata field */
32594 #ifdef SWIGRUNTIME_DEBUG
32595 printf("SWIG_InitializeModule: found type %s\n", type->name);
32596 #endif
32597 if (swig_module.type_initial[i]->clientdata) {
32598 type->clientdata = swig_module.type_initial[i]->clientdata;
32599 #ifdef SWIGRUNTIME_DEBUG
32600 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
32601 #endif
32602 }
32603 } else {
32604 type = swig_module.type_initial[i];
32605 }
32606
32607 /* Insert casting types */
32608 cast = swig_module.cast_initial[i];
32609 while (cast->type) {
32610 /* Don't need to add information already in the list */
32611 ret = 0;
32612 #ifdef SWIGRUNTIME_DEBUG
32613 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
32614 #endif
32615 if (swig_module.next != &swig_module) {
32616 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
32617 #ifdef SWIGRUNTIME_DEBUG
32618 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
32619 #endif
32620 }
32621 if (ret) {
32622 if (type == swig_module.type_initial[i]) {
32623 #ifdef SWIGRUNTIME_DEBUG
32624 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
32625 #endif
32626 cast->type = ret;
32627 ret = 0;
32628 } else {
32629 /* Check for casting already in the list */
32630 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
32631 #ifdef SWIGRUNTIME_DEBUG
32632 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
32633 #endif
32634 if (!ocast) ret = 0;
32635 }
32636 }
32637
32638 if (!ret) {
32639 #ifdef SWIGRUNTIME_DEBUG
32640 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
32641 #endif
32642 if (type->cast) {
32643 type->cast->prev = cast;
32644 cast->next = type->cast;
32645 }
32646 type->cast = cast;
32647 }
32648 cast++;
32649 }
32650 /* Set entry in modules->types array equal to the type */
32651 swig_module.types[i] = type;
32652 }
32653 swig_module.types[i] = 0;
32654
32655 #ifdef SWIGRUNTIME_DEBUG
32656 printf("**** SWIG_InitializeModule: Cast List ******\n");
32657 for (i = 0; i < swig_module.size; ++i) {
32658 int j = 0;
32659 swig_cast_info *cast = swig_module.cast_initial[i];
32660 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
32661 while (cast->type) {
32662 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
32663 cast++;
32664 ++j;
32665 }
32666 printf("---- Total casts: %d\n",j);
32667 }
32668 printf("**** SWIG_InitializeModule: Cast List ******\n");
32669 #endif
32670 }
32671
32672 /* This function will propagate the clientdata field of type to
32673 * any new swig_type_info structures that have been added into the list
32674 * of equivalent types. It is like calling
32675 * SWIG_TypeClientData(type, clientdata) a second time.
32676 */
32677 SWIGRUNTIME void
32678 SWIG_PropagateClientData(void) {
32679 size_t i;
32680 swig_cast_info *equiv;
32681 static int init_run = 0;
32682
32683 if (init_run) return;
32684 init_run = 1;
32685
32686 for (i = 0; i < swig_module.size; i++) {
32687 if (swig_module.types[i]->clientdata) {
32688 equiv = swig_module.types[i]->cast;
32689 while (equiv) {
32690 if (!equiv->converter) {
32691 if (equiv->type && !equiv->type->clientdata)
32692 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
32693 }
32694 equiv = equiv->next;
32695 }
32696 }
32697 }
32698 }
32699
32700 #ifdef __cplusplus
32701 #if 0
32702 {
32703 /* c-mode */
32704 #endif
32705 }
32706 #endif
32707
32708
32709
32710 #ifdef __cplusplus
32711 extern "C" {
32712 #endif
32713
32714 /* Python-specific SWIG API */
32715 #define SWIG_newvarlink() SWIG_Python_newvarlink()
32716 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
32717 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
32718
32719 /* -----------------------------------------------------------------------------
32720 * global variable support code.
32721 * ----------------------------------------------------------------------------- */
32722
32723 typedef struct swig_globalvar {
32724 char *name; /* Name of global variable */
32725 PyObject *(*get_attr)(void); /* Return the current value */
32726 int (*set_attr)(PyObject *); /* Set the value */
32727 struct swig_globalvar *next;
32728 } swig_globalvar;
32729
32730 typedef struct swig_varlinkobject {
32731 PyObject_HEAD
32732 swig_globalvar *vars;
32733 } swig_varlinkobject;
32734
32735 SWIGINTERN PyObject *
32736 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
32737 return PyString_FromString("<Swig global variables>");
32738 }
32739
32740 SWIGINTERN PyObject *
32741 swig_varlink_str(swig_varlinkobject *v) {
32742 PyObject *str = PyString_FromString("(");
32743 swig_globalvar *var;
32744 for (var = v->vars; var; var=var->next) {
32745 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
32746 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
32747 }
32748 PyString_ConcatAndDel(&str,PyString_FromString(")"));
32749 return str;
32750 }
32751
32752 SWIGINTERN int
32753 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
32754 PyObject *str = swig_varlink_str(v);
32755 fprintf(fp,"Swig global variables ");
32756 fprintf(fp,"%s\n", PyString_AsString(str));
32757 Py_DECREF(str);
32758 return 0;
32759 }
32760
32761 SWIGINTERN void
32762 swig_varlink_dealloc(swig_varlinkobject *v) {
32763 swig_globalvar *var = v->vars;
32764 while (var) {
32765 swig_globalvar *n = var->next;
32766 free(var->name);
32767 free(var);
32768 var = n;
32769 }
32770 }
32771
32772 SWIGINTERN PyObject *
32773 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
32774 PyObject *res = NULL;
32775 swig_globalvar *var = v->vars;
32776 while (var) {
32777 if (strcmp(var->name,n) == 0) {
32778 res = (*var->get_attr)();
32779 break;
32780 }
32781 var = var->next;
32782 }
32783 if (res == NULL && !PyErr_Occurred()) {
32784 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
32785 }
32786 return res;
32787 }
32788
32789 SWIGINTERN int
32790 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
32791 int res = 1;
32792 swig_globalvar *var = v->vars;
32793 while (var) {
32794 if (strcmp(var->name,n) == 0) {
32795 res = (*var->set_attr)(p);
32796 break;
32797 }
32798 var = var->next;
32799 }
32800 if (res == 1 && !PyErr_Occurred()) {
32801 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
32802 }
32803 return res;
32804 }
32805
32806 SWIGINTERN PyTypeObject*
32807 swig_varlink_type(void) {
32808 static char varlink__doc__[] = "Swig var link object";
32809 static PyTypeObject varlink_type;
32810 static int type_init = 0;
32811 if (!type_init) {
32812 const PyTypeObject tmp
32813 = {
32814 PyObject_HEAD_INIT(NULL)
32815 0, /* Number of items in variable part (ob_size) */
32816 (char *)"swigvarlink", /* Type name (tp_name) */
32817 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
32818 0, /* Itemsize (tp_itemsize) */
32819 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
32820 (printfunc) swig_varlink_print, /* Print (tp_print) */
32821 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
32822 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
32823 0, /* tp_compare */
32824 (reprfunc) swig_varlink_repr, /* tp_repr */
32825 0, /* tp_as_number */
32826 0, /* tp_as_sequence */
32827 0, /* tp_as_mapping */
32828 0, /* tp_hash */
32829 0, /* tp_call */
32830 (reprfunc)swig_varlink_str, /* tp_str */
32831 0, /* tp_getattro */
32832 0, /* tp_setattro */
32833 0, /* tp_as_buffer */
32834 0, /* tp_flags */
32835 varlink__doc__, /* tp_doc */
32836 0, /* tp_traverse */
32837 0, /* tp_clear */
32838 0, /* tp_richcompare */
32839 0, /* tp_weaklistoffset */
32840 #if PY_VERSION_HEX >= 0x02020000
32841 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
32842 #endif
32843 #if PY_VERSION_HEX >= 0x02030000
32844 0, /* tp_del */
32845 #endif
32846 #ifdef COUNT_ALLOCS
32847 0,0,0,0 /* tp_alloc -> tp_next */
32848 #endif
32849 };
32850 varlink_type = tmp;
32851 varlink_type.ob_type = &PyType_Type;
32852 type_init = 1;
32853 }
32854 return &varlink_type;
32855 }
32856
32857 /* Create a variable linking object for use later */
32858 SWIGINTERN PyObject *
32859 SWIG_Python_newvarlink(void) {
32860 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
32861 if (result) {
32862 result->vars = 0;
32863 }
32864 return ((PyObject*) result);
32865 }
32866
32867 SWIGINTERN void
32868 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
32869 swig_varlinkobject *v = (swig_varlinkobject *) p;
32870 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
32871 if (gv) {
32872 size_t size = strlen(name)+1;
32873 gv->name = (char *)malloc(size);
32874 if (gv->name) {
32875 strncpy(gv->name,name,size);
32876 gv->get_attr = get_attr;
32877 gv->set_attr = set_attr;
32878 gv->next = v->vars;
32879 }
32880 }
32881 v->vars = gv;
32882 }
32883
32884 SWIGINTERN PyObject *
32885 SWIG_globals() {
32886 static PyObject *_SWIG_globals = 0;
32887 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
32888 return _SWIG_globals;
32889 }
32890
32891 /* -----------------------------------------------------------------------------
32892 * constants/methods manipulation
32893 * ----------------------------------------------------------------------------- */
32894
32895 /* Install Constants */
32896 SWIGINTERN void
32897 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
32898 PyObject *obj = 0;
32899 size_t i;
32900 for (i = 0; constants[i].type; ++i) {
32901 switch(constants[i].type) {
32902 case SWIG_PY_POINTER:
32903 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
32904 break;
32905 case SWIG_PY_BINARY:
32906 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
32907 break;
32908 default:
32909 obj = 0;
32910 break;
32911 }
32912 if (obj) {
32913 PyDict_SetItemString(d, constants[i].name, obj);
32914 Py_DECREF(obj);
32915 }
32916 }
32917 }
32918
32919 /* -----------------------------------------------------------------------------*/
32920 /* Fix SwigMethods to carry the callback ptrs when needed */
32921 /* -----------------------------------------------------------------------------*/
32922
32923 SWIGINTERN void
32924 SWIG_Python_FixMethods(PyMethodDef *methods,
32925 swig_const_info *const_table,
32926 swig_type_info **types,
32927 swig_type_info **types_initial) {
32928 size_t i;
32929 for (i = 0; methods[i].ml_name; ++i) {
32930 const char *c = methods[i].ml_doc;
32931 if (c && (c = strstr(c, "swig_ptr: "))) {
32932 int j;
32933 swig_const_info *ci = 0;
32934 const char *name = c + 10;
32935 for (j = 0; const_table[j].type; ++j) {
32936 if (strncmp(const_table[j].name, name,
32937 strlen(const_table[j].name)) == 0) {
32938 ci = &(const_table[j]);
32939 break;
32940 }
32941 }
32942 if (ci) {
32943 size_t shift = (ci->ptype) - types;
32944 swig_type_info *ty = types_initial[shift];
32945 size_t ldoc = (c - methods[i].ml_doc);
32946 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
32947 char *ndoc = (char*)malloc(ldoc + lptr + 10);
32948 if (ndoc) {
32949 char *buff = ndoc;
32950 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
32951 if (ptr) {
32952 strncpy(buff, methods[i].ml_doc, ldoc);
32953 buff += ldoc;
32954 strncpy(buff, "swig_ptr: ", 10);
32955 buff += 10;
32956 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
32957 methods[i].ml_doc = ndoc;
32958 }
32959 }
32960 }
32961 }
32962 }
32963 }
32964
32965 #ifdef __cplusplus
32966 }
32967 #endif
32968
32969 /* -----------------------------------------------------------------------------*
32970 * Partial Init method
32971 * -----------------------------------------------------------------------------*/
32972
32973 #ifdef __cplusplus
32974 extern "C"
32975 #endif
32976 SWIGEXPORT void SWIG_init(void) {
32977 PyObject *m, *d;
32978
32979 /* Fix SwigMethods to carry the callback ptrs when needed */
32980 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
32981
32982 m = Py_InitModule((char *) SWIG_name, SwigMethods);
32983 d = PyModule_GetDict(m);
32984
32985 SWIG_InitializeModule(0);
32986 SWIG_InstallConstants(d,swig_const_table);
32987
32988
32989 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
32990 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
32991 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
32992 SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT)));
32993 SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE)));
32994 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
32995 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
32996 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
32997 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
32998 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
32999 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
33000 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
33001 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
33002 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
33003 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
33004 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
33005 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
33006 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
33007 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
33008 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
33009 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
33010 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
33011 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
33012 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
33013 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
33014 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
33015 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
33016 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
33017 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
33018 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
33019 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
33020 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
33021 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
33022 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
33023 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
33024 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
33025 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
33026 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
33027 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
33028 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
33029 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
33030 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
33031 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
33032 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
33033 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
33034 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
33035 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
33036 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
33037 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
33038 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
33039 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
33040 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
33041 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
33042 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
33043 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
33044 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
33045 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
33046 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
33047 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
33048 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
33049 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
33050 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
33051 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
33052 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
33053 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
33054 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
33055 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
33056 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
33057 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
33058 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
33059 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
33060 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
33061 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
33062 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
33063 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
33064 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
33065 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
33066 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
33067 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
33068 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
33069 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
33070 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
33071 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
33072 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
33073 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
33074 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
33075 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
33076 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
33077 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
33078 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
33079 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
33080 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
33081 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
33082 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
33083 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
33084 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
33085 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
33086 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
33087 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
33088 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
33089 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
33090 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
33091 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
33092 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
33093 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
33094 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
33095 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
33096 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
33097 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
33098 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
33099 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
33100 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
33101 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
33102 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
33103 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
33104 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
33105 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
33106 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
33107 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
33108 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
33109 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
33110 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
33111 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
33112 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
33113 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
33114 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
33115 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
33116 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
33117 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
33118 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
33119 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
33120 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
33121
33122 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
33123
33124 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
33125 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
33126 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
33127 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
33128 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
33129 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
33130 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
33131 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
33132 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
33133 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
33134 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
33135 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
33136 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
33137 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
33138 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
33139 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
33140 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
33141 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
33142 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
33143 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
33144 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
33145 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
33146 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
33147 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
33148 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
33149 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
33150 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
33151 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
33152 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
33153 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
33154 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
33155 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
33156 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
33157 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
33158 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
33159 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
33160 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
33161 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
33162 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
33163 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
33164 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
33165 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
33166 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
33167 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
33168 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
33169 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
33170 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
33171 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
33172 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
33173 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
33174 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
33175 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
33176 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
33177 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
33178 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
33179 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
33180 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
33181 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
33182 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
33183 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
33184 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
33185 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
33186 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
33187 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
33188 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
33189 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
33190 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
33191 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
33192 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
33193 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
33194 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
33195 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
33196 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
33197 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
33198 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
33199 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
33200 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
33201 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
33202 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
33203 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
33204 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
33205 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
33206 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
33207 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
33208 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
33209 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
33210 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
33211 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
33212 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
33213 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
33214 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
33215 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
33216 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
33217 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
33218 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
33219 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
33220 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
33221 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
33222 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
33223 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
33224 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
33225 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
33226 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
33227 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
33228 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
33229 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
33230 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
33231 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
33232 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
33233 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
33234 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
33235 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
33236 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
33237 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
33238 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
33239 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
33240 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
33241 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
33242 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
33243 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
33244 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
33245 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
33246 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
33247 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
33248 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
33249 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
33250 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
33251 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
33252 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
33253 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
33254 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
33255 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
33256 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
33257 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
33258 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
33259 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
33260 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
33261 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
33262 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
33263 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
33264 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
33265 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
33266 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
33267 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
33268 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
33269 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
33270 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
33271 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
33272 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
33273 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
33274 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
33275 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
33276 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
33277 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
33278 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
33279 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
33280 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
33281 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
33282 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
33283 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
33284 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
33285 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
33286 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
33287 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
33288 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
33289 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
33290 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
33291 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
33292 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
33293 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
33294 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
33295 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
33296 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
33297 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
33298 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
33299 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
33300 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
33301 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
33302 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
33303 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
33304 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
33305 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
33306 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
33307 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
33308 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
33309 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
33310 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
33311 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
33312 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
33313 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
33314 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
33315 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
33316 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
33317 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
33318 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
33319 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
33320 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
33321 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
33322 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
33323 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
33324 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
33325 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
33326 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
33327 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
33328 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
33329 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
33330 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
33331 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
33332 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
33333 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
33334 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
33335 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
33336 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
33337 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
33338 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
33339 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
33340 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
33341 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
33342 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
33343 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
33344 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
33345 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
33346 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
33347 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
33348 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
33349 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
33350 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
33351 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
33352 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
33353 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
33354 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
33355 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
33356 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
33357 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
33358 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
33359 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
33360 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
33361 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
33362 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
33363 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
33364 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
33365 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
33366 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
33367 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
33368 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
33369 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
33370 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
33371 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
33372 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
33373 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
33374 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
33375 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
33376 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
33377 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
33378 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
33379 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
33380 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
33381 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
33382 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
33383 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
33384 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
33385 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
33386 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
33387 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
33388 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
33389 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
33390 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
33391 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
33392 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
33393 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
33394 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
33395 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
33396 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
33397 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
33398 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
33399 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
33400 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
33401 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
33402 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
33403 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
33404 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
33405 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
33406 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
33407 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
33408 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
33409 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
33410 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
33411 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
33412 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
33413 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
33414 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
33415 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
33416 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
33417 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
33418 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
33419 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
33420 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
33421 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
33422 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
33423 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
33424 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
33425 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
33426 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
33427 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
33428 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
33429 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
33430 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
33431 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
33432 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
33433 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
33434 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
33435 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
33436 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
33437 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
33438
33439 // Work around a chicken/egg problem in drawlist.cpp
33440 wxPyDrawList_SetAPIPtr();
33441
33442 }
33443