]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/_gdi_wrap.cpp
reSWIGged
[wxWidgets.git] / wxPython / src / gtk / _gdi_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.29
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_PYTHON_DIRECTOR_NO_VTABLE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30 /* -----------------------------------------------------------------------------
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
33 * ----------------------------------------------------------------------------- */
34
35 /* template workaround for compilers that cannot correctly implement the C++ standard */
36 #ifndef SWIGTEMPLATEDISAMBIGUATOR
37 # if defined(__SUNPRO_CC)
38 # if (__SUNPRO_CC <= 0x560)
39 # define SWIGTEMPLATEDISAMBIGUATOR template
40 # else
41 # define SWIGTEMPLATEDISAMBIGUATOR
42 # endif
43 # else
44 # define SWIGTEMPLATEDISAMBIGUATOR
45 # endif
46 #endif
47
48 /* inline attribute */
49 #ifndef SWIGINLINE
50 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51 # define SWIGINLINE inline
52 # else
53 # define SWIGINLINE
54 # endif
55 #endif
56
57 /* attribute recognised by some compilers to avoid 'unused' warnings */
58 #ifndef SWIGUNUSED
59 # if defined(__GNUC__)
60 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61 # define SWIGUNUSED __attribute__ ((__unused__))
62 # else
63 # define SWIGUNUSED
64 # endif
65 # elif defined(__ICC)
66 # define SWIGUNUSED __attribute__ ((__unused__))
67 # else
68 # define SWIGUNUSED
69 # endif
70 #endif
71
72 #ifndef SWIGUNUSEDPARM
73 # ifdef __cplusplus
74 # define SWIGUNUSEDPARM(p)
75 # else
76 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
77 # endif
78 #endif
79
80 /* internal SWIG method */
81 #ifndef SWIGINTERN
82 # define SWIGINTERN static SWIGUNUSED
83 #endif
84
85 /* internal inline SWIG method */
86 #ifndef SWIGINTERNINLINE
87 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88 #endif
89
90 /* exporting methods */
91 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92 # ifndef GCC_HASCLASSVISIBILITY
93 # define GCC_HASCLASSVISIBILITY
94 # endif
95 #endif
96
97 #ifndef SWIGEXPORT
98 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99 # if defined(STATIC_LINKED)
100 # define SWIGEXPORT
101 # else
102 # define SWIGEXPORT __declspec(dllexport)
103 # endif
104 # else
105 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106 # define SWIGEXPORT __attribute__ ((visibility("default")))
107 # else
108 # define SWIGEXPORT
109 # endif
110 # endif
111 #endif
112
113 /* calling conventions for Windows */
114 #ifndef SWIGSTDCALL
115 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116 # define SWIGSTDCALL __stdcall
117 # else
118 # define SWIGSTDCALL
119 # endif
120 #endif
121
122 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124 # define _CRT_SECURE_NO_DEPRECATE
125 #endif
126
127
128 /* Python.h has to appear first */
129 #include <Python.h>
130
131 /* -----------------------------------------------------------------------------
132 * swigrun.swg
133 *
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
137
138 /* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
140 #define SWIG_RUNTIME_VERSION "2"
141
142 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143 #ifdef SWIG_TYPE_TABLE
144 # define SWIG_QUOTE_STRING(x) #x
145 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
147 #else
148 # define SWIG_TYPE_TABLE_NAME
149 #endif
150
151 /*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158 */
159
160 #ifndef SWIGRUNTIME
161 # define SWIGRUNTIME SWIGINTERN
162 #endif
163
164 #ifndef SWIGRUNTIMEINLINE
165 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
166 #endif
167
168 /* Generic buffer size */
169 #ifndef SWIG_BUFFER_SIZE
170 # define SWIG_BUFFER_SIZE 1024
171 #endif
172
173 /* Flags for pointer conversions */
174 #define SWIG_POINTER_DISOWN 0x1
175
176 /* Flags for new pointer objects */
177 #define SWIG_POINTER_OWN 0x1
178
179
180 /*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260 #define SWIG_OK (0)
261 #define SWIG_ERROR (-1)
262 #define SWIG_IsOK(r) (r >= 0)
263 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265 /* The CastRankLimit says how many bits are used for the cast rank */
266 #define SWIG_CASTRANKLIMIT (1 << 8)
267 /* The NewMask denotes the object was created (using new/malloc) */
268 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269 /* The TmpMask is for in/out typemaps that use temporal objects */
270 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271 /* Simple returning values */
272 #define SWIG_BADOBJ (SWIG_ERROR)
273 #define SWIG_OLDOBJ (SWIG_OK)
274 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276 /* Check, add and del mask methods */
277 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285 /* Cast-Rank Mode */
286 #if defined(SWIG_CASTRANK_MODE)
287 # ifndef SWIG_TypeRank
288 # define SWIG_TypeRank unsigned long
289 # endif
290 # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291 # define SWIG_MAXCASTRANK (2)
292 # endif
293 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295 SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297 }
298 SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300 }
301 #else /* no cast-rank mode */
302 # define SWIG_AddCast
303 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304 #endif
305
306
307
308
309 #include <string.h>
310
311 #ifdef __cplusplus
312 extern "C" {
313 #endif
314
315 typedef void *(*swig_converter_func)(void *);
316 typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
318 /* Structure to store inforomation on one type */
319 typedef struct swig_type_info {
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
325 int owndata; /* flag if the structure owns the clientdata */
326 } swig_type_info;
327
328 /* Structure to store a type and conversion function used for casting */
329 typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334 } swig_cast_info;
335
336 /* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339 typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346 } swig_module_info;
347
348 /*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354 */
355 SWIGRUNTIME int
356 SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
362 }
363 return (l1 - f1) - (l2 - f2);
364 }
365
366 /*
367 Check type equivalence in a name list like <name1>|<name2>|...
368 Return 0 if not equal, 1 if equal
369 */
370 SWIGRUNTIME int
371 SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
380 if (*ne) ++ne;
381 }
382 return equiv;
383 }
384
385 /*
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
388 */
389 SWIGRUNTIME int
390 SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
397 }
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
400 }
401 return equiv;
402 }
403
404
405 /* think of this as a c++ template<> or a scheme macro */
406 #define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
427 /*
428 Check the typename
429 */
430 SWIGRUNTIME swig_cast_info *
431 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433 }
434
435 /* Same as previous function, except strcmp is replaced with a pointer comparison */
436 SWIGRUNTIME swig_cast_info *
437 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
439 }
440
441 /*
442 Cast a pointer up an inheritance hierarchy
443 */
444 SWIGRUNTIMEINLINE void *
445 SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447 }
448
449 /*
450 Dynamic pointer casting. Down an inheritance hierarchy
451 */
452 SWIGRUNTIME swig_type_info *
453 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461 }
462
463 /*
464 Return the name associated with this type
465 */
466 SWIGRUNTIMEINLINE const char *
467 SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469 }
470
471 /*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474 */
475 SWIGRUNTIME const char *
476 SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
481 if (!type) return NULL;
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491 }
492
493 /*
494 Set the clientdata field for a type
495 */
496 SWIGRUNTIME void
497 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
507 }
508 }
509 cast = cast->next;
510 }
511 }
512 SWIGRUNTIME void
513 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516 }
517
518 /*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525 */
526 SWIGRUNTIME swig_type_info *
527 SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
556 }
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560 }
561
562 /*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570 */
571 SWIGRUNTIME swig_type_info *
572 SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
591 }
592
593 /* neither found a match */
594 return 0;
595 }
596
597 /*
598 Pack binary data into a string
599 */
600 SWIGRUNTIME char *
601 SWIG_PackData(char *c, void *ptr, size_t sz) {
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
605 for (; u != eu; ++u) {
606 register unsigned char uu = *u;
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611 }
612
613 /*
614 Unpack binary data from a string
615 */
616 SWIGRUNTIME const char *
617 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
619 register const unsigned char *eu = u + sz;
620 for (; u != eu; ++u) {
621 register char d = *(c++);
622 register unsigned char uu;
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639 }
640
641 /*
642 Pack 'void *' into a string buffer.
643 */
644 SWIGRUNTIME char *
645 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653 }
654
655 SWIGRUNTIME const char *
656 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666 }
667
668 SWIGRUNTIME char *
669 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681 }
682
683 SWIGRUNTIME const char *
684 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694 }
695
696 #ifdef __cplusplus
697 }
698 #endif
699
700 /* Errors in SWIG */
701 #define SWIG_UnknownError -1
702 #define SWIG_IOError -2
703 #define SWIG_RuntimeError -3
704 #define SWIG_IndexError -4
705 #define SWIG_TypeError -5
706 #define SWIG_DivisionByZero -6
707 #define SWIG_OverflowError -7
708 #define SWIG_SyntaxError -8
709 #define SWIG_ValueError -9
710 #define SWIG_SystemError -10
711 #define SWIG_AttributeError -11
712 #define SWIG_MemoryError -12
713 #define SWIG_NullReferenceError -13
714
715
716
717 /* Python.h has to appear first */
718 #include <Python.h>
719
720 /* Add PyOS_snprintf for old Pythons */
721 #if PY_VERSION_HEX < 0x02020000
722 # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723 # define PyOS_snprintf _snprintf
724 # else
725 # define PyOS_snprintf snprintf
726 # endif
727 #endif
728
729 /* A crude PyString_FromFormat implementation for old Pythons */
730 #if PY_VERSION_HEX < 0x02020000
731
732 #ifndef SWIG_PYBUFFER_SIZE
733 # define SWIG_PYBUFFER_SIZE 1024
734 #endif
735
736 static PyObject *
737 PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745 }
746 #endif
747
748 /* Add PyObject_Del for old Pythons */
749 #if PY_VERSION_HEX < 0x01060000
750 # define PyObject_Del(op) PyMem_DEL((op))
751 #endif
752 #ifndef PyObject_DEL
753 # define PyObject_DEL PyObject_Del
754 #endif
755
756 /* A crude PyExc_StopIteration exception for old Pythons */
757 #if PY_VERSION_HEX < 0x02020000
758 # ifndef PyExc_StopIteration
759 # define PyExc_StopIteration PyExc_RuntimeError
760 # endif
761 # ifndef PyObject_GenericGetAttr
762 # define PyObject_GenericGetAttr 0
763 # endif
764 #endif
765 /* Py_NotImplemented is defined in 2.1 and up. */
766 #if PY_VERSION_HEX < 0x02010000
767 # ifndef Py_NotImplemented
768 # define Py_NotImplemented PyExc_RuntimeError
769 # endif
770 #endif
771
772
773 /* A crude PyString_AsStringAndSize implementation for old Pythons */
774 #if PY_VERSION_HEX < 0x02010000
775 # ifndef PyString_AsStringAndSize
776 # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777 # endif
778 #endif
779
780 /* PySequence_Size for old Pythons */
781 #if PY_VERSION_HEX < 0x02000000
782 # ifndef PySequence_Size
783 # define PySequence_Size PySequence_Length
784 # endif
785 #endif
786
787
788 /* PyBool_FromLong for old Pythons */
789 #if PY_VERSION_HEX < 0x02030000
790 static
791 PyObject *PyBool_FromLong(long ok)
792 {
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796 }
797 #endif
798
799
800 /* -----------------------------------------------------------------------------
801 * error manipulation
802 * ----------------------------------------------------------------------------- */
803
804 SWIGRUNTIME PyObject*
805 SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845 }
846
847
848 SWIGRUNTIME void
849 SWIG_Python_AddErrorMsg(const char* mesg)
850 {
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866 }
867
868
869
870 #if defined(SWIG_PYTHON_NO_THREADS)
871 # if defined(SWIG_PYTHON_THREADS)
872 # undef SWIG_PYTHON_THREADS
873 # endif
874 #endif
875 #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876 # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877 # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878 # define SWIG_PYTHON_USE_GIL
879 # endif
880 # endif
881 # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882 # ifndef SWIG_PYTHON_INITIALIZE_THREADS
883 # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884 # endif
885 # ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903 # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905 # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906 # else /* C code */
907 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908 # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910 # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911 # endif
912 # else /* Old thread way, not implemented, user must provide it */
913 # if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914 # define SWIG_PYTHON_INITIALIZE_THREADS
915 # endif
916 # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918 # endif
919 # if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920 # define SWIG_PYTHON_THREAD_END_BLOCK
921 # endif
922 # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924 # endif
925 # if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926 # define SWIG_PYTHON_THREAD_END_ALLOW
927 # endif
928 # endif
929 #else /* No thread support */
930 # define SWIG_PYTHON_INITIALIZE_THREADS
931 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932 # define SWIG_PYTHON_THREAD_END_BLOCK
933 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934 # define SWIG_PYTHON_THREAD_END_ALLOW
935 #endif
936
937 /* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
940
941 #ifdef __cplusplus
942 extern "C" {
943 #if 0
944 } /* cc-mode */
945 #endif
946 #endif
947
948 /* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
951
952 /* Constant Types */
953 #define SWIG_PY_POINTER 4
954 #define SWIG_PY_BINARY 5
955
956 /* Constant information structure */
957 typedef struct swig_const_info {
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
964 } swig_const_info;
965
966 #ifdef __cplusplus
967 #if 0
968 { /* cc-mode */
969 #endif
970 }
971 #endif
972
973
974 /* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
978 * pyrun.swg
979 *
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
983 *
984 * ----------------------------------------------------------------------------- */
985
986 /* Common SWIG API */
987
988 #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_wxAutoBufferedPaintDC swig_types[13]
2480 #define SWIGTYPE_p_wxBMPHandler swig_types[14]
2481 #define SWIGTYPE_p_wxBitmap swig_types[15]
2482 #define SWIGTYPE_p_wxBoxSizer swig_types[16]
2483 #define SWIGTYPE_p_wxBrush swig_types[17]
2484 #define SWIGTYPE_p_wxBrushList swig_types[18]
2485 #define SWIGTYPE_p_wxBufferedDC swig_types[19]
2486 #define SWIGTYPE_p_wxBufferedPaintDC swig_types[20]
2487 #define SWIGTYPE_p_wxCURHandler swig_types[21]
2488 #define SWIGTYPE_p_wxChar swig_types[22]
2489 #define SWIGTYPE_p_wxChildFocusEvent swig_types[23]
2490 #define SWIGTYPE_p_wxClientDC swig_types[24]
2491 #define SWIGTYPE_p_wxClipboardTextEvent swig_types[25]
2492 #define SWIGTYPE_p_wxCloseEvent swig_types[26]
2493 #define SWIGTYPE_p_wxColor swig_types[27]
2494 #define SWIGTYPE_p_wxColour swig_types[28]
2495 #define SWIGTYPE_p_wxColourDatabase swig_types[29]
2496 #define SWIGTYPE_p_wxCommandEvent swig_types[30]
2497 #define SWIGTYPE_p_wxContextMenuEvent swig_types[31]
2498 #define SWIGTYPE_p_wxControl swig_types[32]
2499 #define SWIGTYPE_p_wxControlWithItems swig_types[33]
2500 #define SWIGTYPE_p_wxCursor swig_types[34]
2501 #define SWIGTYPE_p_wxDC swig_types[35]
2502 #define SWIGTYPE_p_wxDCOverlay swig_types[36]
2503 #define SWIGTYPE_p_wxDash swig_types[37]
2504 #define SWIGTYPE_p_wxDateEvent swig_types[38]
2505 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[39]
2506 #define SWIGTYPE_p_wxDropFilesEvent swig_types[40]
2507 #define SWIGTYPE_p_wxDuplexMode swig_types[41]
2508 #define SWIGTYPE_p_wxEffects swig_types[42]
2509 #define SWIGTYPE_p_wxEncodingConverter swig_types[43]
2510 #define SWIGTYPE_p_wxEraseEvent swig_types[44]
2511 #define SWIGTYPE_p_wxEvent swig_types[45]
2512 #define SWIGTYPE_p_wxEvtHandler swig_types[46]
2513 #define SWIGTYPE_p_wxFSFile swig_types[47]
2514 #define SWIGTYPE_p_wxFileSystem swig_types[48]
2515 #define SWIGTYPE_p_wxFlexGridSizer swig_types[49]
2516 #define SWIGTYPE_p_wxFocusEvent swig_types[50]
2517 #define SWIGTYPE_p_wxFont swig_types[51]
2518 #define SWIGTYPE_p_wxFontList swig_types[52]
2519 #define SWIGTYPE_p_wxFontMapper swig_types[53]
2520 #define SWIGTYPE_p_wxGBSizerItem swig_types[54]
2521 #define SWIGTYPE_p_wxGCDC swig_types[55]
2522 #define SWIGTYPE_p_wxGDIObjListBase swig_types[56]
2523 #define SWIGTYPE_p_wxGDIObject swig_types[57]
2524 #define SWIGTYPE_p_wxGIFHandler swig_types[58]
2525 #define SWIGTYPE_p_wxGraphicsContext swig_types[59]
2526 #define SWIGTYPE_p_wxGraphicsPath swig_types[60]
2527 #define SWIGTYPE_p_wxGridBagSizer swig_types[61]
2528 #define SWIGTYPE_p_wxGridSizer swig_types[62]
2529 #define SWIGTYPE_p_wxHeaderButtonParams swig_types[63]
2530 #define SWIGTYPE_p_wxICOHandler swig_types[64]
2531 #define SWIGTYPE_p_wxIcon swig_types[65]
2532 #define SWIGTYPE_p_wxIconBundle swig_types[66]
2533 #define SWIGTYPE_p_wxIconLocation swig_types[67]
2534 #define SWIGTYPE_p_wxIconizeEvent swig_types[68]
2535 #define SWIGTYPE_p_wxIdleEvent swig_types[69]
2536 #define SWIGTYPE_p_wxImage swig_types[70]
2537 #define SWIGTYPE_p_wxImageHandler swig_types[71]
2538 #define SWIGTYPE_p_wxImageList swig_types[72]
2539 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[73]
2540 #define SWIGTYPE_p_wxInitDialogEvent swig_types[74]
2541 #define SWIGTYPE_p_wxJPEGHandler swig_types[75]
2542 #define SWIGTYPE_p_wxKeyEvent swig_types[76]
2543 #define SWIGTYPE_p_wxLanguageInfo swig_types[77]
2544 #define SWIGTYPE_p_wxLayoutConstraints swig_types[78]
2545 #define SWIGTYPE_p_wxLocale swig_types[79]
2546 #define SWIGTYPE_p_wxMask swig_types[80]
2547 #define SWIGTYPE_p_wxMaximizeEvent swig_types[81]
2548 #define SWIGTYPE_p_wxMemoryDC swig_types[82]
2549 #define SWIGTYPE_p_wxMenu swig_types[83]
2550 #define SWIGTYPE_p_wxMenuBar swig_types[84]
2551 #define SWIGTYPE_p_wxMenuEvent swig_types[85]
2552 #define SWIGTYPE_p_wxMenuItem swig_types[86]
2553 #define SWIGTYPE_p_wxMetaFile swig_types[87]
2554 #define SWIGTYPE_p_wxMetaFileDC swig_types[88]
2555 #define SWIGTYPE_p_wxMirrorDC swig_types[89]
2556 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[90]
2557 #define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[91]
2558 #define SWIGTYPE_p_wxMouseEvent swig_types[92]
2559 #define SWIGTYPE_p_wxMoveEvent swig_types[93]
2560 #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[94]
2561 #define SWIGTYPE_p_wxNativeFontInfo swig_types[95]
2562 #define SWIGTYPE_p_wxNativePixelData swig_types[96]
2563 #define SWIGTYPE_p_wxNativePixelData_Accessor swig_types[97]
2564 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[98]
2565 #define SWIGTYPE_p_wxNcPaintEvent swig_types[99]
2566 #define SWIGTYPE_p_wxNotifyEvent swig_types[100]
2567 #define SWIGTYPE_p_wxObject swig_types[101]
2568 #define SWIGTYPE_p_wxOverlay swig_types[102]
2569 #define SWIGTYPE_p_wxPCXHandler swig_types[103]
2570 #define SWIGTYPE_p_wxPNGHandler swig_types[104]
2571 #define SWIGTYPE_p_wxPNMHandler swig_types[105]
2572 #define SWIGTYPE_p_wxPaintDC swig_types[106]
2573 #define SWIGTYPE_p_wxPaintEvent swig_types[107]
2574 #define SWIGTYPE_p_wxPalette swig_types[108]
2575 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[109]
2576 #define SWIGTYPE_p_wxPaperSize swig_types[110]
2577 #define SWIGTYPE_p_wxPen swig_types[111]
2578 #define SWIGTYPE_p_wxPenList swig_types[112]
2579 #define SWIGTYPE_p_wxPixelDataBase swig_types[113]
2580 #define SWIGTYPE_p_wxPoint swig_types[114]
2581 #define SWIGTYPE_p_wxPoint2D swig_types[115]
2582 #define SWIGTYPE_p_wxPostScriptDC swig_types[116]
2583 #define SWIGTYPE_p_wxPrintData swig_types[117]
2584 #define SWIGTYPE_p_wxPrinterDC swig_types[118]
2585 #define SWIGTYPE_p_wxPseudoDC swig_types[119]
2586 #define SWIGTYPE_p_wxPyApp swig_types[120]
2587 #define SWIGTYPE_p_wxPyCommandEvent swig_types[121]
2588 #define SWIGTYPE_p_wxPyEvent swig_types[122]
2589 #define SWIGTYPE_p_wxPyFontEnumerator swig_types[123]
2590 #define SWIGTYPE_p_wxPyImageHandler swig_types[124]
2591 #define SWIGTYPE_p_wxPyLocale swig_types[125]
2592 #define SWIGTYPE_p_wxPySizer swig_types[126]
2593 #define SWIGTYPE_p_wxPyValidator swig_types[127]
2594 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[128]
2595 #define SWIGTYPE_p_wxRect swig_types[129]
2596 #define SWIGTYPE_p_wxRegion swig_types[130]
2597 #define SWIGTYPE_p_wxRegionIterator swig_types[131]
2598 #define SWIGTYPE_p_wxRendererNative swig_types[132]
2599 #define SWIGTYPE_p_wxRendererVersion swig_types[133]
2600 #define SWIGTYPE_p_wxScreenDC swig_types[134]
2601 #define SWIGTYPE_p_wxScrollEvent swig_types[135]
2602 #define SWIGTYPE_p_wxScrollWinEvent swig_types[136]
2603 #define SWIGTYPE_p_wxSetCursorEvent swig_types[137]
2604 #define SWIGTYPE_p_wxShowEvent swig_types[138]
2605 #define SWIGTYPE_p_wxSize swig_types[139]
2606 #define SWIGTYPE_p_wxSizeEvent swig_types[140]
2607 #define SWIGTYPE_p_wxSizer swig_types[141]
2608 #define SWIGTYPE_p_wxSizerItem swig_types[142]
2609 #define SWIGTYPE_p_wxSplitterRenderParams swig_types[143]
2610 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[144]
2611 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[145]
2612 #define SWIGTYPE_p_wxStockGDI swig_types[146]
2613 #define SWIGTYPE_p_wxString swig_types[147]
2614 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[148]
2615 #define SWIGTYPE_p_wxTIFFHandler swig_types[149]
2616 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[150]
2617 #define SWIGTYPE_p_wxValidator swig_types[151]
2618 #define SWIGTYPE_p_wxWindow swig_types[152]
2619 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[153]
2620 #define SWIGTYPE_p_wxWindowDC swig_types[154]
2621 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[155]
2622 #define SWIGTYPE_p_wxXPMHandler swig_types[156]
2623 static swig_type_info *swig_types[158];
2624 static swig_module_info swig_module = {swig_types, 157, 0, 0, 0, 0};
2625 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2626 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2627
2628 /* -------- TYPES TABLE (END) -------- */
2629
2630 #if (PY_VERSION_HEX <= 0x02000000)
2631 # if !defined(SWIG_PYTHON_CLASSIC)
2632 # error "This python version requires to use swig with the '-classic' option"
2633 # endif
2634 #endif
2635 #if (PY_VERSION_HEX <= 0x02020000)
2636 # error "This python version requires to use swig with the '-nomodern' option"
2637 #endif
2638 #if (PY_VERSION_HEX <= 0x02020000)
2639 # error "This python version requires to use swig with the '-nomodernargs' option"
2640 #endif
2641 #ifndef METH_O
2642 # error "This python version requires to use swig with the '-nofastunpack' option"
2643 #endif
2644
2645 /*-----------------------------------------------
2646 @(target):= _gdi_.so
2647 ------------------------------------------------*/
2648 #define SWIG_init init_gdi_
2649
2650 #define SWIG_name "_gdi_"
2651
2652 #define SWIGVERSION 0x010329
2653
2654
2655 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2656 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2657
2658
2659 #include <stdexcept>
2660
2661
2662 namespace swig {
2663 class PyObject_ptr {
2664 protected:
2665 PyObject *_obj;
2666
2667 public:
2668 PyObject_ptr() :_obj(0)
2669 {
2670 }
2671
2672 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2673 {
2674 Py_XINCREF(_obj);
2675 }
2676
2677 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2678 {
2679 if (initial_ref) Py_XINCREF(_obj);
2680 }
2681
2682 PyObject_ptr & operator=(const PyObject_ptr& item)
2683 {
2684 Py_XINCREF(item._obj);
2685 Py_XDECREF(_obj);
2686 _obj = item._obj;
2687 return *this;
2688 }
2689
2690 ~PyObject_ptr()
2691 {
2692 Py_XDECREF(_obj);
2693 }
2694
2695 operator PyObject *() const
2696 {
2697 return _obj;
2698 }
2699
2700 PyObject *operator->() const
2701 {
2702 return _obj;
2703 }
2704 };
2705 }
2706
2707
2708 namespace swig {
2709 struct PyObject_var : PyObject_ptr {
2710 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2711
2712 PyObject_var & operator = (PyObject* obj)
2713 {
2714 Py_XDECREF(_obj);
2715 _obj = obj;
2716 return *this;
2717 }
2718 };
2719 }
2720
2721
2722 #include "wx/wxPython/wxPython.h"
2723 #include "wx/wxPython/pyclasses.h"
2724
2725
2726 static const wxString wxPyEmptyString(wxEmptyString);
2727
2728 #define SWIG_From_long PyInt_FromLong
2729
2730
2731 SWIGINTERNINLINE PyObject *
2732 SWIG_From_int (int value)
2733 {
2734 return SWIG_From_long (value);
2735 }
2736
2737
2738 #include <limits.h>
2739 #ifndef LLONG_MIN
2740 # define LLONG_MIN LONG_LONG_MIN
2741 #endif
2742 #ifndef LLONG_MAX
2743 # define LLONG_MAX LONG_LONG_MAX
2744 #endif
2745 #ifndef ULLONG_MAX
2746 # define ULLONG_MAX ULONG_LONG_MAX
2747 #endif
2748
2749
2750 SWIGINTERN int
2751 SWIG_AsVal_long (PyObject* obj, long* val)
2752 {
2753 if (PyNumber_Check(obj)) {
2754 if (val) *val = PyInt_AsLong(obj);
2755 return SWIG_OK;
2756 }
2757 return SWIG_TypeError;
2758 }
2759
2760
2761 SWIGINTERN int
2762 SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2763 {
2764 long v = 0;
2765 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2766 return SWIG_TypeError;
2767 }
2768 else if (val)
2769 *val = (unsigned long)v;
2770 return SWIG_OK;
2771 }
2772
2773
2774 SWIGINTERN int
2775 SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2776 {
2777 unsigned long v;
2778 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2779 if (SWIG_IsOK(res)) {
2780 if ((v > UCHAR_MAX)) {
2781 return SWIG_OverflowError;
2782 } else {
2783 if (val) *val = static_cast< unsigned char >(v);
2784 }
2785 }
2786 return res;
2787 }
2788
2789
2790 SWIGINTERNINLINE PyObject*
2791 SWIG_From_unsigned_SS_long (unsigned long value)
2792 {
2793 return (value > LONG_MAX) ?
2794 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2795 }
2796
2797
2798 SWIGINTERNINLINE PyObject *
2799 SWIG_From_unsigned_SS_char (unsigned char value)
2800 {
2801 return SWIG_From_unsigned_SS_long (value);
2802 }
2803
2804 SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){
2805 wxColour temp, *obj = &temp;
2806 if ( other == Py_None ) return false;
2807 if ( ! wxColour_helper(other, &obj) ) {
2808 PyErr_Clear();
2809 return false;
2810 }
2811 return self->operator==(*obj);
2812 }
2813 SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){
2814 wxColour temp, *obj = &temp;
2815 if ( other == Py_None ) return true;
2816 if ( ! wxColour_helper(other, &obj)) {
2817 PyErr_Clear();
2818 return true;
2819 }
2820 return self->operator!=(*obj);
2821 }
2822
2823 SWIGINTERN int
2824 SWIG_AsVal_bool (PyObject *obj, bool *val)
2825 {
2826 if (obj == Py_True) {
2827 if (val) *val = true;
2828 return SWIG_OK;
2829 } else if (obj == Py_False) {
2830 if (val) *val = false;
2831 return SWIG_OK;
2832 } else {
2833 long v = 0;
2834 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2835 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2836 return res;
2837 }
2838 }
2839
2840 SWIGINTERN PyObject *wxColour_Get(wxColour *self,bool includeAlpha=false){
2841 PyObject* rv = PyTuple_New(includeAlpha ? 4 : 3);
2842 int red = -1;
2843 int green = -1;
2844 int blue = -1;
2845 int alpha = wxALPHA_OPAQUE;
2846 if (self->IsOk()) {
2847 red = self->Red();
2848 green = self->Green();
2849 blue = self->Blue();
2850 alpha = self->Alpha();
2851 }
2852 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2853 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2854 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
2855 if (includeAlpha)
2856 PyTuple_SetItem(rv, 3, PyInt_FromLong(alpha));
2857 return rv;
2858 }
2859 SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
2860 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2861 }
2862
2863 SWIGINTERN int
2864 SWIG_AsVal_int (PyObject * obj, int *val)
2865 {
2866 long v;
2867 int res = SWIG_AsVal_long (obj, &v);
2868 if (SWIG_IsOK(res)) {
2869 if ((v < INT_MIN || v > INT_MAX)) {
2870 return SWIG_OverflowError;
2871 } else {
2872 if (val) *val = static_cast< int >(v);
2873 }
2874 }
2875 return res;
2876 }
2877
2878 SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
2879 wxDash* dashes;
2880 int count = self->GetDashes(&dashes);
2881 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2882 PyObject* retval = PyList_New(0);
2883 for (int x=0; x<count; x++) {
2884 PyObject* pyint = PyInt_FromLong(dashes[x]);
2885 PyList_Append(retval, pyint);
2886 Py_DECREF(pyint);
2887 }
2888 wxPyEndBlockThreads(blocked);
2889 return retval;
2890 }
2891 SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
2892 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2893 int size = PyList_Size(pyDashes);
2894 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
2895
2896 // black magic warning! The array of wxDashes needs to exist as
2897 // long as the pen does because wxPen does not copy the array. So
2898 // stick a copy in a Python string object and attach it to _self,
2899 // and then call SetDashes with a pointer to that array. Then
2900 // when the Python pen object is destroyed the array will be
2901 // cleaned up too.
2902 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2903 PyObject_SetAttrString(_self, "_dashes", strDashes);
2904
2905 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2906 delete [] dashes;
2907 Py_DECREF(strDashes);
2908 wxPyEndBlockThreads(blocked);
2909 }
2910 SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
2911 SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
2912
2913 #include <wx/rawbmp.h>
2914
2915
2916 #include <wx/image.h>
2917
2918 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2919 char** cArray = NULL;
2920 int count;
2921
2922 if (!PyList_Check(listOfStrings)) {
2923 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2924 return NULL;
2925 }
2926 count = PyList_Size(listOfStrings);
2927 cArray = new char*[count];
2928
2929 for(int x=0; x<count; x++) {
2930 // TODO: Need some validation and error checking here
2931 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2932 }
2933 return cArray;
2934 }
2935
2936
2937 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
2938 char** cArray = NULL;
2939 wxBitmap* bmp;
2940
2941 cArray = ConvertListOfStrings(listOfStrings);
2942 if (! cArray)
2943 return NULL;
2944 bmp = new wxBitmap(cArray);
2945 delete [] cArray;
2946 return bmp;
2947 }
2948 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
2949 char* buf;
2950 Py_ssize_t length;
2951 PyString_AsStringAndSize(bits, &buf, &length);
2952 return new wxBitmap(buf, width, height, depth);
2953 }
2954 SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
2955 wxSize size(self->GetWidth(), self->GetHeight());
2956 return size;
2957 }
2958 SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
2959 wxMask *mask = new wxMask(*self, colour);
2960 self->SetMask(mask);
2961 }
2962 SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
2963 self->SetWidth(size.x);
2964 self->SetHeight(size.y);
2965 }
2966 SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : false; }
2967 SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : true; }
2968
2969 // See http://tinyurl.com/e5adr for what premultiplying alpha means. It
2970 // appears to me that the other platforms are already doing it, so I'll just
2971 // automatically do it for wxMSW here.
2972 #ifdef __WXMSW__
2973 #define wxPy_premultiply(p, a) ((p) * (a) / 0xff)
2974 #define wxPy_unpremultiply(p, a) ((a) ? ((p) * 0xff / (a)) : (p))
2975 #else
2976 #define wxPy_premultiply(p, a) (p)
2977 #define wxPy_unpremultiply(p, a) (p)
2978 #endif
2979
2980
2981 wxBitmap* _BitmapFromBufferAlpha(int width, int height,
2982 buffer data, int DATASIZE,
2983 buffer alpha, int ALPHASIZE)
2984 {
2985 if (DATASIZE != width*height*3) {
2986 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
2987 return NULL;
2988 }
2989
2990 if (ALPHASIZE != width*height) {
2991 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
2992 return NULL;
2993 }
2994
2995 wxBitmap* bmp = new wxBitmap(width, height, 32);
2996 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
2997 if (! pixData) {
2998 // raise an exception...
2999 wxPyErr_SetString(PyExc_RuntimeError,
3000 "Failed to gain raw access to bitmap data.");
3001 return NULL;
3002 }
3003
3004 pixData.UseAlpha();
3005 wxAlphaPixelData::Iterator p(pixData);
3006 for (int y=0; y<height; y++) {
3007 wxAlphaPixelData::Iterator rowStart = p;
3008 for (int x=0; x<width; x++) {
3009 byte a = *(alpha++);
3010 p.Red() = wxPy_premultiply(*(data++), a);
3011 p.Green() = wxPy_premultiply(*(data++), a);
3012 p.Blue() = wxPy_premultiply(*(data++), a);
3013 p.Alpha() = a;
3014 ++p;
3015 }
3016 p = rowStart;
3017 p.OffsetY(pixData, 1);
3018 }
3019 return bmp;
3020 }
3021
3022 wxBitmap* _BitmapFromBuffer(int width, int height, buffer data, int DATASIZE)
3023 {
3024 if (DATASIZE != width*height*3) {
3025 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3026 return NULL;
3027 }
3028
3029 wxBitmap* bmp = new wxBitmap(width, height, 24);
3030 wxNativePixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3031 if (! pixData) {
3032 // raise an exception...
3033 wxPyErr_SetString(PyExc_RuntimeError,
3034 "Failed to gain raw access to bitmap data.");
3035 return NULL;
3036 }
3037
3038 wxNativePixelData::Iterator p(pixData);
3039 for (int y=0; y<height; y++) {
3040 wxNativePixelData::Iterator rowStart = p;
3041 for (int x=0; x<width; x++) {
3042 p.Red() = *(data++);
3043 p.Green() = *(data++);
3044 p.Blue() = *(data++);
3045 ++p;
3046 }
3047 p = rowStart;
3048 p.OffsetY(pixData, 1);
3049 }
3050 return bmp;
3051 }
3052
3053
3054 wxBitmap* _BitmapFromBufferRGBA(int width, int height, buffer data, int DATASIZE)
3055 {
3056 if (DATASIZE != width*height*4) {
3057 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3058 return NULL;
3059 }
3060
3061 wxBitmap* bmp = new wxBitmap(width, height, 32);
3062 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3063 if (! pixData) {
3064 // raise an exception...
3065 wxPyErr_SetString(PyExc_RuntimeError,
3066 "Failed to gain raw access to bitmap data.");
3067 return NULL;
3068 }
3069
3070 pixData.UseAlpha();
3071 wxAlphaPixelData::Iterator p(pixData);
3072 for (int y=0; y<height; y++) {
3073 wxAlphaPixelData::Iterator rowStart = p;
3074 for (int x=0; x<width; x++) {
3075 byte a = data[3];
3076 p.Red() = wxPy_premultiply(*(data++), a);
3077 p.Green() = wxPy_premultiply(*(data++), a);
3078 p.Blue() = wxPy_premultiply(*(data++), a);
3079 p.Alpha() = a; data++;
3080 ++p;
3081 }
3082 p = rowStart;
3083 p.OffsetY(pixData, 1);
3084 }
3085 return bmp;
3086 }
3087
3088
3089 typedef wxNativePixelData::Iterator wxNativePixelData_Accessor;
3090
3091 SWIGINTERN bool wxNativePixelData___nonzero__(wxNativePixelData *self){ return self->operator bool(); }
3092 SWIGINTERN void wxNativePixelData_Accessor_nextPixel(wxNativePixelData_Accessor *self){ ++(*self); }
3093 SWIGINTERN void wxNativePixelData_Accessor_Set(wxNativePixelData_Accessor *self,byte red,byte green,byte blue){
3094 self->Red() = red;
3095 self->Green() = green;
3096 self->Blue() = blue;
3097 }
3098 SWIGINTERN PyObject *wxNativePixelData_Accessor_Get(wxNativePixelData_Accessor *self){
3099 PyObject* rv = PyTuple_New(3);
3100 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
3101 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
3102 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
3103 return rv;
3104 }
3105
3106 typedef wxAlphaPixelData::Iterator wxAlphaPixelData_Accessor;
3107
3108 SWIGINTERN bool wxAlphaPixelData___nonzero__(wxAlphaPixelData *self){ return self->operator bool(); }
3109 SWIGINTERN void wxAlphaPixelData_Accessor_nextPixel(wxAlphaPixelData_Accessor *self){ ++(*self); }
3110 SWIGINTERN void wxAlphaPixelData_Accessor_Set(wxAlphaPixelData_Accessor *self,byte red,byte green,byte blue,byte alpha){
3111 self->Red() = wxPy_premultiply(red, alpha);
3112 self->Green() = wxPy_premultiply(green, alpha);
3113 self->Blue() = wxPy_premultiply(blue, alpha);
3114 self->Alpha() = alpha;
3115 }
3116 SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *self){
3117 PyObject* rv = PyTuple_New(4);
3118 int red = self->Red();
3119 int green = self->Green();
3120 int blue = self->Blue();
3121 int alpha = self->Alpha();
3122
3123 PyTuple_SetItem(rv, 0, PyInt_FromLong( wxPy_unpremultiply(red, alpha) ));
3124 PyTuple_SetItem(rv, 1, PyInt_FromLong( wxPy_unpremultiply(green, alpha) ));
3125 PyTuple_SetItem(rv, 2, PyInt_FromLong( wxPy_unpremultiply(blue, alpha) ));
3126 PyTuple_SetItem(rv, 3, PyInt_FromLong( alpha ));
3127 return rv;
3128 }
3129 SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
3130 if ( !colour.IsOk() )
3131 return new wxMask(bitmap, *wxBLACK);
3132 else
3133 return new wxMask(bitmap, colour);
3134 }
3135
3136 #include <wx/iconbndl.h>
3137
3138 SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
3139 wxIcon* icon = new wxIcon();
3140 icon->CopyFromBitmap(bmp);
3141 return icon;
3142 }
3143 SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
3144 char** cArray = NULL;
3145 wxIcon* icon;
3146
3147 cArray = ConvertListOfStrings(listOfStrings);
3148 if (! cArray)
3149 return NULL;
3150 icon = new wxIcon(cArray);
3151 delete [] cArray;
3152 return icon;
3153 }
3154 SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
3155
3156
3157
3158 return new wxIconLocation(*filename);
3159
3160 }
3161 SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
3162
3163
3164
3165 // do nothing
3166
3167 }
3168 SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
3169
3170
3171
3172 return -1;
3173
3174 }
3175 SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
3176 #ifdef __WXGTK__
3177 wxImage img(cursorName, type);
3178 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
3179 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
3180 return new wxCursor(img);
3181 #else
3182 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
3183 #endif
3184 }
3185
3186
3187 SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
3188 (*self) ++;
3189 }
3190 SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
3191 return self->operator bool();
3192 }
3193
3194 #include <wx/fontutil.h>
3195 #include <wx/fontmap.h>
3196 #include <wx/fontenum.h>
3197
3198 SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
3199 return self->ToString();
3200 }
3201
3202 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
3203 static wxNativeEncodingInfo info;
3204 if ( wxGetNativeFontEncoding(encoding, &info) )
3205 return &info;
3206 else
3207 return NULL;
3208 }
3209
3210
3211 SWIGINTERNINLINE PyObject *
3212 SWIG_From_size_t (size_t value)
3213 {
3214 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3215 }
3216
3217
3218 SWIGINTERNINLINE int
3219 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3220 {
3221 unsigned long v;
3222 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3223 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3224 return res;
3225 }
3226
3227 SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
3228 wxFontEncoding alt_enc;
3229 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3230 return PyInt_FromLong(alt_enc);
3231 else {
3232 Py_INCREF(Py_None);
3233 return Py_None;
3234 }
3235 }
3236 SWIGINTERN wxFont *new_wxFont(wxString const &info){
3237 wxNativeFontInfo nfi;
3238 nfi.FromString(info);
3239 return new wxFont(nfi);
3240 }
3241 SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3242 return wxFont::New(pointSize, family, flags, face, encoding);
3243 }
3244 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,int family,int style,int weight,bool underlined=false,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3245 return wxFontBase::New(pixelSize, family,
3246 style, weight, underlined,
3247 face, encoding);
3248 }
3249 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3250 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3251 }
3252 SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3253 SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
3254
3255 class wxPyFontEnumerator : public wxFontEnumerator {
3256 public:
3257 wxPyFontEnumerator() {}
3258 ~wxPyFontEnumerator() {}
3259
3260 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3261 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
3262
3263 PYPRIVATE;
3264 };
3265
3266 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3267 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
3268
3269
3270 SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){
3271 PyObject* ret;
3272 wxArrayString arr = wxFontEnumerator::GetEncodings();
3273 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3274 ret = wxArrayString2PyList_helper(arr);
3275 wxPyEndBlockThreads(blocked);
3276 return ret;
3277 }
3278 SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){
3279 PyObject* ret;
3280 wxArrayString arr = wxFontEnumerator::GetFacenames();
3281 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3282 ret = wxArrayString2PyList_helper(arr);
3283 wxPyEndBlockThreads(blocked);
3284 return ret;
3285 }
3286
3287 #include <locale.h>
3288
3289 SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3290 wxLocale* loc;
3291 if (language == -1)
3292 loc = new wxLocale();
3293 else
3294 loc = new wxLocale(language, flags);
3295 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3296 // for the floating point conversions and such to work right.
3297 #if PY_VERSION_HEX < 0x02040000
3298 setlocale(LC_NUMERIC, "C");
3299 #endif
3300 return loc;
3301 }
3302 SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
3303 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
3304 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3305 // for the floating point conversions and such to work right.
3306 #if PY_VERSION_HEX < 0x02040000
3307 setlocale(LC_NUMERIC, "C");
3308 #endif
3309 return rc;
3310 }
3311 SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3312 bool rc = self->Init(language, flags);
3313 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3314 // for the floating point conversions and such to work right.
3315 #if PY_VERSION_HEX < 0x02040000
3316 setlocale(LC_NUMERIC, "C");
3317 #endif
3318 return rc;
3319 }
3320
3321 class wxPyLocale : public wxLocale
3322 {
3323 public:
3324 wxPyLocale();
3325
3326 wxPyLocale(const wxChar *szName, // name (for messages)
3327 const wxChar *szShort = (const wxChar *) NULL, // dir prefix (for msg files)
3328 const wxChar *szLocale = (const wxChar *) NULL, // locale (for setlocale)
3329 bool bLoadDefault = true, // preload wxstd.mo?
3330 bool bConvertEncoding = false); // convert Win<->Unix if necessary?
3331
3332 wxPyLocale(int language, // wxLanguage id or custom language
3333 int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING);
3334
3335 ~wxPyLocale();
3336
3337 virtual const wxChar *GetString(const wxChar *szOrigString,
3338 const wxChar *szDomain = NULL) const;
3339 virtual const wxChar *GetString(const wxChar *szOrigString,
3340 const wxChar *szOrigString2, size_t n,
3341 const wxChar *szDomain = NULL) const;
3342
3343 virtual wxChar *GetSingularString(const wxChar *szOrigString,
3344 const wxChar *szDomain = NULL) const;
3345 virtual wxChar *GetPluralString(const wxChar *szOrigString,
3346 const wxChar *szOrigString2, size_t n,
3347 const wxChar *szDomain = NULL) const;
3348
3349 PYPRIVATE;
3350 private:
3351 DECLARE_NO_COPY_CLASS(wxPyLocale)
3352 };
3353
3354 wxPyLocale::wxPyLocale() : wxLocale()
3355 {
3356 }
3357
3358 wxPyLocale::wxPyLocale(const wxChar *szName, // name (for messages)
3359 const wxChar *szShort, // dir prefix (for msg files)
3360 const wxChar *szLocale, // locale (for setlocale)
3361 bool bLoadDefault, // preload wxstd.mo?
3362 bool bConvertEncoding) // convert Win<->Unix if necessary?
3363 : wxLocale(szName, szShort, szLocale, bLoadDefault, bConvertEncoding)
3364 {
3365 }
3366
3367 wxPyLocale::wxPyLocale(int language, // wxLanguage id or custom language
3368 int flags) : wxLocale(language, flags)
3369 {
3370 }
3371
3372 wxPyLocale::~wxPyLocale()
3373 {
3374 }
3375
3376 const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3377 const wxChar *szDomain) const
3378 {
3379 wxChar *str = GetSingularString(szOrigString, szDomain);
3380 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szDomain);
3381 }
3382
3383 const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3384 const wxChar *szOrigString2, size_t n,
3385 const wxChar *szDomain) const
3386 {
3387 wxChar *str = GetPluralString(szOrigString, szOrigString2, n, szDomain);
3388 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szOrigString2, n, szDomain);
3389 }
3390
3391 wxChar *wxPyLocale::GetSingularString(const wxChar *szOrigString,
3392 const wxChar *szDomain) const
3393 {
3394 bool found;
3395 static wxString str;
3396 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.
3397 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3398 if((found=wxPyCBH_findCallback(m_myInst, "GetSingularString"))) {
3399 PyObject* param1 = wx2PyString(szOrigString);
3400 PyObject* param2 = wx2PyString(szDomain);
3401 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OO)", param1, param2));
3402 Py_DECREF(param1);
3403 Py_DECREF(param2);
3404 if (ret) {
3405 str = Py2wxString(ret);
3406 Py_DECREF(ret);
3407 }
3408 }
3409 wxPyEndBlockThreads(blocked);
3410 return (found ? (wxChar*)str.c_str() : NULL);
3411 }
3412
3413 wxChar *wxPyLocale::GetPluralString(const wxChar *szOrigString,
3414 const wxChar *szOrigString2, size_t n,
3415 const wxChar *szDomain) const
3416 {
3417 bool found;
3418 static wxString str;
3419 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.
3420 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3421 if((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) {
3422 PyObject* param1 = wx2PyString(szOrigString);
3423 PyObject* param2 = wx2PyString(szOrigString2);
3424 PyObject* param4 = wx2PyString(szDomain);
3425 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOiO)", param1, param2, (int)n, param4));
3426 Py_DECREF(param1);
3427 Py_DECREF(param2);
3428 Py_DECREF(param4);
3429 if( ret) {
3430 str = Py2wxString(ret);
3431 Py_DECREF(ret);
3432 }
3433 }
3434 wxPyEndBlockThreads(blocked);
3435 return (found ? (wxChar*)str.c_str() : NULL);
3436 }
3437
3438 SWIGINTERN wxPyLocale *new_wxPyLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3439 wxPyLocale* loc;
3440 if (language == -1)
3441 loc = new wxPyLocale();
3442 else
3443 loc = new wxPyLocale(language, flags);
3444 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3445 // for the floating point conversions and such to work right.
3446 #if PY_VERSION_HEX < 0x02040000
3447 setlocale(LC_NUMERIC, "C");
3448 #endif
3449 return loc;
3450 }
3451
3452 #include "wx/wxPython/pydrawxxx.h"
3453
3454 SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
3455 wxColour col;
3456 self->GetPixel(x, y, &col);
3457 return col;
3458 }
3459 SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
3460 wxColour col;
3461 self->GetPixel(pt, &col);
3462 return col;
3463 }
3464
3465 SWIGINTERN int
3466 SWIG_AsVal_double (PyObject *obj, double* val)
3467 {
3468 if (PyNumber_Check(obj)) {
3469 if (val) *val = PyFloat_AsDouble(obj);
3470 return SWIG_OK;
3471 }
3472 return SWIG_TypeError;
3473 }
3474
3475 SWIGINTERN wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){
3476 wxRect rv;
3477 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3478 return rv;
3479 }
3480 SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
3481 wxRect rect;
3482 self->GetClippingBox(rect);
3483 return rect;
3484 }
3485 SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
3486 wxArrayInt widths;
3487 self->GetPartialTextExtents(text, widths);
3488 return widths;
3489 }
3490
3491 #define SWIG_From_double PyFloat_FromDouble
3492
3493 SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
3494 self->SetLogicalOrigin(point.x, point.y);
3495 }
3496 SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
3497 self->SetDeviceOrigin(point.x, point.y);
3498 }
3499 SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
3500 self->CalcBoundingBox(point.x, point.y);
3501 }
3502 SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3503 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3504 }
3505 SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3506 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3507 }
3508 SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3509 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3510 }
3511 SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3512 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3513 }
3514 SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3515 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3516 }
3517 SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
3518 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3519 }
3520
3521 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3522 *x1 = dc->MinX();
3523 *y1 = dc->MinY();
3524 *x2 = dc->MaxX();
3525 *y2 = dc->MaxY();
3526 }
3527
3528
3529 #include <wx/dcbuffer.h>
3530
3531
3532 #include <wx/dcps.h>
3533
3534
3535 class wxMetaFile : public wxObject {
3536 public:
3537 wxMetaFile(const wxString&)
3538 { wxPyRaiseNotImplemented(); }
3539 };
3540
3541 class wxMetaFileDC : public wxClientDC {
3542 public:
3543 wxMetaFileDC(const wxString&, int, int, const wxString&)
3544 { wxPyRaiseNotImplemented(); }
3545 };
3546
3547
3548
3549 class wxPrinterDC : public wxClientDC {
3550 public:
3551 wxPrinterDC(const wxPrintData&)
3552 { wxPyRaiseNotImplemented(); }
3553
3554 };
3555
3556
3557 #include <wx/graphics.h>
3558
3559
3560 #if !wxUSE_GRAPHICS_CONTEXT
3561 // C++ stub classes for platforms that don't have wxGraphicsContext yet.
3562
3563 class wxGraphicsPath
3564 {
3565 public :
3566 wxGraphicsPath() {
3567 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3568 PyErr_SetString(PyExc_NotImplementedError,
3569 "wxGraphicsPath is not available on this platform.");
3570 wxPyEndBlockThreads(blocked);
3571 }
3572 virtual ~wxGraphicsPath() {}
3573
3574 void MoveToPoint( wxDouble, wxDouble ) {}
3575 void AddLineToPoint( wxDouble, wxDouble ) {}
3576 void AddCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, wxDouble ) {}
3577 void CloseSubpath() {}
3578 void GetCurrentPoint( wxDouble&, wxDouble&) {}
3579 void AddArc( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, bool ) {}
3580
3581 void AddQuadCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3582 void AddRectangle( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3583 void AddCircle( wxDouble, wxDouble, wxDouble ) {}
3584 void AddArcToPoint( wxDouble, wxDouble , wxDouble, wxDouble, wxDouble ) {}
3585
3586 wxPoint2DDouble GetCurrentPoint() { return wxPoint2DDouble(0,0); }
3587 void MoveToPoint( const wxPoint2DDouble& ) {}
3588 void AddLineToPoint( const wxPoint2DDouble&) {}
3589 void AddCurveToPoint( const wxPoint2DDouble&, const wxPoint2DDouble&, const wxPoint2DDouble&) {}
3590 void AddArc( const wxPoint2DDouble&, wxDouble, wxDouble, wxDouble, bool) {}
3591 };
3592
3593
3594 class wxGraphicsContext
3595 {
3596 public:
3597 wxGraphicsContext() {
3598 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3599 PyErr_SetString(PyExc_NotImplementedError,
3600 "wxGraphicsContext is not available on this platform.");
3601 wxPyEndBlockThreads(blocked);
3602 }
3603 virtual ~wxGraphicsContext() {}
3604
3605 static wxGraphicsContext* Create( const wxWindowDC&) {
3606 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3607 PyErr_SetString(PyExc_NotImplementedError,
3608 "wxGraphicsPath is not available on this platform.");
3609 wxPyEndBlockThreads(blocked);
3610 return NULL;
3611 }
3612
3613 wxGraphicsPath * CreatePath() { return NULL; }
3614 void PushState() {}
3615 void PopState() {}
3616 void Clip( const wxRegion & ) {}
3617 void Translate( wxDouble , wxDouble ) {}
3618 void Scale( wxDouble , wxDouble ) {}
3619 void Rotate( wxDouble ) {}
3620 void SetPen( const wxPen & ) {}
3621 void SetBrush( const wxBrush & ) {}
3622 void SetLinearGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble ,
3623 const wxColour&, const wxColour&) {}
3624 void SetRadialGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ,
3625 const wxColour &, const wxColour &) {}
3626 void SetFont( const wxFont & ) {}
3627 void SetTextColor( const wxColour & ) {}
3628 void StrokePath( const wxGraphicsPath * ) {}
3629 void FillPath( const wxGraphicsPath *, int ) {}
3630 void DrawPath( const wxGraphicsPath *, int ) {}
3631 void DrawText( const wxString &, wxDouble , wxDouble ) {}
3632 void DrawText( const wxString &, wxDouble , wxDouble , wxDouble ) {}
3633 void GetTextExtent( const wxString &, wxDouble *, wxDouble *,
3634 wxDouble *, wxDouble * ) const {}
3635 void GetPartialTextExtents(const wxString& , wxArrayDouble& ) const {}
3636 void DrawBitmap( const wxBitmap &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3637 void DrawIcon( const wxIcon &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3638 void StrokeLine( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3639 void StrokeLines( size_t , const wxPoint2DDouble *) {}
3640 void StrokeLines( size_t , const wxPoint2DDouble *, const wxPoint2DDouble *) {}
3641 void DrawLines( size_t , const wxPoint2DDouble *, int ) {}
3642 void DrawRectangle( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3643 void DrawEllipse( wxDouble , wxDouble, wxDouble , wxDouble) {}
3644 void DrawRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
3645 };
3646
3647
3648 class wxGCDC: public wxWindowDC
3649 {
3650 public:
3651 wxGCDC(const wxWindowDC&) {
3652 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3653 PyErr_SetString(PyExc_NotImplementedError,
3654 "wxGCDC is not available on this platform.");
3655 wxPyEndBlockThreads(blocked);
3656 }
3657
3658 wxGCDC() {
3659 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3660 PyErr_SetString(PyExc_NotImplementedError,
3661 "wxGCDC is not available on this platform.");
3662 wxPyEndBlockThreads(blocked);
3663 }
3664
3665 virtual ~wxGCDC() {}
3666
3667 wxGraphicsContext* GetGraphicContext() { return NULL; }
3668 };
3669
3670 #endif
3671
3672 SWIGINTERN wxArrayDouble wxGraphicsContext_GetPartialTextExtents(wxGraphicsContext *self,wxString const &text){
3673 wxArrayDouble widths;
3674 self->GetPartialTextExtents(text, widths);
3675 return widths;
3676 }
3677 SWIGINTERN void wxGraphicsContext_StrokeLineSegements(wxGraphicsContext *self,PyObject *beginPoints,PyObject *endPoints){
3678 size_t c1, c2, count;
3679 wxPoint2D* beginP = wxPoint2D_LIST_helper(beginPoints, &c1);
3680 wxPoint2D* endP = wxPoint2D_LIST_helper(endPoints, &c2);
3681
3682 if ( beginP != NULL && endP != NULL )
3683 {
3684 count = wxMin(c1, c2);
3685 self->StrokeLines(count, beginP, endP);
3686 }
3687 delete [] beginP;
3688 delete [] endP;
3689 }
3690
3691
3692 SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
3693 self->AddColour(name, wxColour(red, green, blue));
3694 }
3695
3696 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3697 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3698 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3699 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3700
3701
3702 #include <wx/effects.h>
3703
3704
3705 #include "wx/renderer.h"
3706
3707
3708 SWIGINTERNINLINE PyObject*
3709 SWIG_From_bool (bool value)
3710 {
3711 return PyBool_FromLong(value ? 1 : 0);
3712 }
3713
3714
3715 #include "wx/wxPython/pseudodc.h"
3716
3717 SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){
3718 wxRect rect;
3719 self->GetIdBounds(id, rect);
3720 return rect;
3721 }
3722 #ifdef __cplusplus
3723 extern "C" {
3724 #endif
3725 SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3726 PyObject *resultobj = 0;
3727 wxGDIObject *result = 0 ;
3728
3729 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
3730 {
3731 if (!wxPyCheckForApp()) SWIG_fail;
3732 PyThreadState* __tstate = wxPyBeginAllowThreads();
3733 result = (wxGDIObject *)new wxGDIObject();
3734 wxPyEndAllowThreads(__tstate);
3735 if (PyErr_Occurred()) SWIG_fail;
3736 }
3737 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
3738 return resultobj;
3739 fail:
3740 return NULL;
3741 }
3742
3743
3744 SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3745 PyObject *resultobj = 0;
3746 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3747 void *argp1 = 0 ;
3748 int res1 = 0 ;
3749 PyObject *swig_obj[1] ;
3750
3751 if (!args) SWIG_fail;
3752 swig_obj[0] = args;
3753 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
3754 if (!SWIG_IsOK(res1)) {
3755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3756 }
3757 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3758 {
3759 PyThreadState* __tstate = wxPyBeginAllowThreads();
3760 delete arg1;
3761
3762 wxPyEndAllowThreads(__tstate);
3763 if (PyErr_Occurred()) SWIG_fail;
3764 }
3765 resultobj = SWIG_Py_Void();
3766 return resultobj;
3767 fail:
3768 return NULL;
3769 }
3770
3771
3772 SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3773 PyObject *resultobj = 0;
3774 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3775 bool result;
3776 void *argp1 = 0 ;
3777 int res1 = 0 ;
3778 PyObject *swig_obj[1] ;
3779
3780 if (!args) SWIG_fail;
3781 swig_obj[0] = args;
3782 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
3783 if (!SWIG_IsOK(res1)) {
3784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3785 }
3786 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3787 {
3788 PyThreadState* __tstate = wxPyBeginAllowThreads();
3789 result = (bool)(arg1)->IsNull();
3790 wxPyEndAllowThreads(__tstate);
3791 if (PyErr_Occurred()) SWIG_fail;
3792 }
3793 {
3794 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3795 }
3796 return resultobj;
3797 fail:
3798 return NULL;
3799 }
3800
3801
3802 SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3803 PyObject *obj;
3804 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3805 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
3806 return SWIG_Py_Void();
3807 }
3808
3809 SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3810 return SWIG_Python_InitShadowInstance(args);
3811 }
3812
3813 SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3814 PyObject *resultobj = 0;
3815 byte arg1 = (byte) 0 ;
3816 byte arg2 = (byte) 0 ;
3817 byte arg3 = (byte) 0 ;
3818 byte arg4 = (byte) wxALPHA_OPAQUE ;
3819 wxColour *result = 0 ;
3820 unsigned char val1 ;
3821 int ecode1 = 0 ;
3822 unsigned char val2 ;
3823 int ecode2 = 0 ;
3824 unsigned char val3 ;
3825 int ecode3 = 0 ;
3826 unsigned char val4 ;
3827 int ecode4 = 0 ;
3828 PyObject * obj0 = 0 ;
3829 PyObject * obj1 = 0 ;
3830 PyObject * obj2 = 0 ;
3831 PyObject * obj3 = 0 ;
3832 char * kwnames[] = {
3833 (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
3834 };
3835
3836 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
3837 if (obj0) {
3838 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
3839 if (!SWIG_IsOK(ecode1)) {
3840 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
3841 }
3842 arg1 = static_cast< byte >(val1);
3843 }
3844 if (obj1) {
3845 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
3846 if (!SWIG_IsOK(ecode2)) {
3847 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
3848 }
3849 arg2 = static_cast< byte >(val2);
3850 }
3851 if (obj2) {
3852 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
3853 if (!SWIG_IsOK(ecode3)) {
3854 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
3855 }
3856 arg3 = static_cast< byte >(val3);
3857 }
3858 if (obj3) {
3859 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
3860 if (!SWIG_IsOK(ecode4)) {
3861 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'");
3862 }
3863 arg4 = static_cast< byte >(val4);
3864 }
3865 {
3866 PyThreadState* __tstate = wxPyBeginAllowThreads();
3867 result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4);
3868 wxPyEndAllowThreads(__tstate);
3869 if (PyErr_Occurred()) SWIG_fail;
3870 }
3871 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
3872 return resultobj;
3873 fail:
3874 return NULL;
3875 }
3876
3877
3878 SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3879 PyObject *resultobj = 0;
3880 wxString *arg1 = 0 ;
3881 wxColour *result = 0 ;
3882 bool temp1 = false ;
3883 PyObject * obj0 = 0 ;
3884 char * kwnames[] = {
3885 (char *) "colorName", NULL
3886 };
3887
3888 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
3889 {
3890 arg1 = wxString_in_helper(obj0);
3891 if (arg1 == NULL) SWIG_fail;
3892 temp1 = true;
3893 }
3894 {
3895 if (!wxPyCheckForApp()) SWIG_fail;
3896 PyThreadState* __tstate = wxPyBeginAllowThreads();
3897 result = (wxColour *)new wxColour((wxString const &)*arg1);
3898 wxPyEndAllowThreads(__tstate);
3899 if (PyErr_Occurred()) SWIG_fail;
3900 }
3901 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3902 {
3903 if (temp1)
3904 delete arg1;
3905 }
3906 return resultobj;
3907 fail:
3908 {
3909 if (temp1)
3910 delete arg1;
3911 }
3912 return NULL;
3913 }
3914
3915
3916 SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3917 PyObject *resultobj = 0;
3918 unsigned long arg1 ;
3919 wxColour *result = 0 ;
3920 unsigned long val1 ;
3921 int ecode1 = 0 ;
3922 PyObject * obj0 = 0 ;
3923 char * kwnames[] = {
3924 (char *) "colRGB", NULL
3925 };
3926
3927 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
3928 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
3929 if (!SWIG_IsOK(ecode1)) {
3930 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
3931 }
3932 arg1 = static_cast< unsigned long >(val1);
3933 {
3934 PyThreadState* __tstate = wxPyBeginAllowThreads();
3935 result = (wxColour *)new wxColour(arg1);
3936 wxPyEndAllowThreads(__tstate);
3937 if (PyErr_Occurred()) SWIG_fail;
3938 }
3939 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3940 return resultobj;
3941 fail:
3942 return NULL;
3943 }
3944
3945
3946 SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3947 PyObject *resultobj = 0;
3948 wxColour *arg1 = (wxColour *) 0 ;
3949 void *argp1 = 0 ;
3950 int res1 = 0 ;
3951 PyObject *swig_obj[1] ;
3952
3953 if (!args) SWIG_fail;
3954 swig_obj[0] = args;
3955 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
3956 if (!SWIG_IsOK(res1)) {
3957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
3958 }
3959 arg1 = reinterpret_cast< wxColour * >(argp1);
3960 {
3961 PyThreadState* __tstate = wxPyBeginAllowThreads();
3962 delete arg1;
3963
3964 wxPyEndAllowThreads(__tstate);
3965 if (PyErr_Occurred()) SWIG_fail;
3966 }
3967 resultobj = SWIG_Py_Void();
3968 return resultobj;
3969 fail:
3970 return NULL;
3971 }
3972
3973
3974 SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3975 PyObject *resultobj = 0;
3976 wxColour *arg1 = (wxColour *) 0 ;
3977 byte result;
3978 void *argp1 = 0 ;
3979 int res1 = 0 ;
3980 PyObject *swig_obj[1] ;
3981
3982 if (!args) SWIG_fail;
3983 swig_obj[0] = args;
3984 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3985 if (!SWIG_IsOK(res1)) {
3986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
3987 }
3988 arg1 = reinterpret_cast< wxColour * >(argp1);
3989 {
3990 PyThreadState* __tstate = wxPyBeginAllowThreads();
3991 result = (byte)(arg1)->Red();
3992 wxPyEndAllowThreads(__tstate);
3993 if (PyErr_Occurred()) SWIG_fail;
3994 }
3995 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3996 return resultobj;
3997 fail:
3998 return NULL;
3999 }
4000
4001
4002 SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4003 PyObject *resultobj = 0;
4004 wxColour *arg1 = (wxColour *) 0 ;
4005 byte result;
4006 void *argp1 = 0 ;
4007 int res1 = 0 ;
4008 PyObject *swig_obj[1] ;
4009
4010 if (!args) SWIG_fail;
4011 swig_obj[0] = args;
4012 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4013 if (!SWIG_IsOK(res1)) {
4014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
4015 }
4016 arg1 = reinterpret_cast< wxColour * >(argp1);
4017 {
4018 PyThreadState* __tstate = wxPyBeginAllowThreads();
4019 result = (byte)(arg1)->Green();
4020 wxPyEndAllowThreads(__tstate);
4021 if (PyErr_Occurred()) SWIG_fail;
4022 }
4023 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4024 return resultobj;
4025 fail:
4026 return NULL;
4027 }
4028
4029
4030 SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4031 PyObject *resultobj = 0;
4032 wxColour *arg1 = (wxColour *) 0 ;
4033 byte result;
4034 void *argp1 = 0 ;
4035 int res1 = 0 ;
4036 PyObject *swig_obj[1] ;
4037
4038 if (!args) SWIG_fail;
4039 swig_obj[0] = args;
4040 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4041 if (!SWIG_IsOK(res1)) {
4042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
4043 }
4044 arg1 = reinterpret_cast< wxColour * >(argp1);
4045 {
4046 PyThreadState* __tstate = wxPyBeginAllowThreads();
4047 result = (byte)(arg1)->Blue();
4048 wxPyEndAllowThreads(__tstate);
4049 if (PyErr_Occurred()) SWIG_fail;
4050 }
4051 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4052 return resultobj;
4053 fail:
4054 return NULL;
4055 }
4056
4057
4058 SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4059 PyObject *resultobj = 0;
4060 wxColour *arg1 = (wxColour *) 0 ;
4061 byte result;
4062 void *argp1 = 0 ;
4063 int res1 = 0 ;
4064 PyObject *swig_obj[1] ;
4065
4066 if (!args) SWIG_fail;
4067 swig_obj[0] = args;
4068 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4069 if (!SWIG_IsOK(res1)) {
4070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'");
4071 }
4072 arg1 = reinterpret_cast< wxColour * >(argp1);
4073 {
4074 PyThreadState* __tstate = wxPyBeginAllowThreads();
4075 result = (byte)(arg1)->Alpha();
4076 wxPyEndAllowThreads(__tstate);
4077 if (PyErr_Occurred()) SWIG_fail;
4078 }
4079 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4080 return resultobj;
4081 fail:
4082 return NULL;
4083 }
4084
4085
4086 SWIGINTERN PyObject *_wrap_Colour_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4087 PyObject *resultobj = 0;
4088 wxColour *arg1 = (wxColour *) 0 ;
4089 bool result;
4090 void *argp1 = 0 ;
4091 int res1 = 0 ;
4092 PyObject *swig_obj[1] ;
4093
4094 if (!args) SWIG_fail;
4095 swig_obj[0] = args;
4096 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4097 if (!SWIG_IsOK(res1)) {
4098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_IsOk" "', expected argument " "1"" of type '" "wxColour *""'");
4099 }
4100 arg1 = reinterpret_cast< wxColour * >(argp1);
4101 {
4102 PyThreadState* __tstate = wxPyBeginAllowThreads();
4103 result = (bool)(arg1)->IsOk();
4104 wxPyEndAllowThreads(__tstate);
4105 if (PyErr_Occurred()) SWIG_fail;
4106 }
4107 {
4108 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4109 }
4110 return resultobj;
4111 fail:
4112 return NULL;
4113 }
4114
4115
4116 SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4117 PyObject *resultobj = 0;
4118 wxColour *arg1 = (wxColour *) 0 ;
4119 byte arg2 ;
4120 byte arg3 ;
4121 byte arg4 ;
4122 byte arg5 = (byte) wxALPHA_OPAQUE ;
4123 void *argp1 = 0 ;
4124 int res1 = 0 ;
4125 unsigned char val2 ;
4126 int ecode2 = 0 ;
4127 unsigned char val3 ;
4128 int ecode3 = 0 ;
4129 unsigned char val4 ;
4130 int ecode4 = 0 ;
4131 unsigned char val5 ;
4132 int ecode5 = 0 ;
4133 PyObject * obj0 = 0 ;
4134 PyObject * obj1 = 0 ;
4135 PyObject * obj2 = 0 ;
4136 PyObject * obj3 = 0 ;
4137 PyObject * obj4 = 0 ;
4138 char * kwnames[] = {
4139 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
4140 };
4141
4142 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) 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_Set" "', expected argument " "1"" of type '" "wxColour *""'");
4146 }
4147 arg1 = reinterpret_cast< wxColour * >(argp1);
4148 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4149 if (!SWIG_IsOK(ecode2)) {
4150 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
4151 }
4152 arg2 = static_cast< byte >(val2);
4153 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4154 if (!SWIG_IsOK(ecode3)) {
4155 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
4156 }
4157 arg3 = static_cast< byte >(val3);
4158 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4159 if (!SWIG_IsOK(ecode4)) {
4160 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
4161 }
4162 arg4 = static_cast< byte >(val4);
4163 if (obj4) {
4164 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
4165 if (!SWIG_IsOK(ecode5)) {
4166 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'");
4167 }
4168 arg5 = static_cast< byte >(val5);
4169 }
4170 {
4171 PyThreadState* __tstate = wxPyBeginAllowThreads();
4172 (arg1)->Set(arg2,arg3,arg4,arg5);
4173 wxPyEndAllowThreads(__tstate);
4174 if (PyErr_Occurred()) SWIG_fail;
4175 }
4176 resultobj = SWIG_Py_Void();
4177 return resultobj;
4178 fail:
4179 return NULL;
4180 }
4181
4182
4183 SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4184 PyObject *resultobj = 0;
4185 wxColour *arg1 = (wxColour *) 0 ;
4186 unsigned long arg2 ;
4187 void *argp1 = 0 ;
4188 int res1 = 0 ;
4189 unsigned long val2 ;
4190 int ecode2 = 0 ;
4191 PyObject * obj0 = 0 ;
4192 PyObject * obj1 = 0 ;
4193 char * kwnames[] = {
4194 (char *) "self",(char *) "colRGB", NULL
4195 };
4196
4197 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4198 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4199 if (!SWIG_IsOK(res1)) {
4200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4201 }
4202 arg1 = reinterpret_cast< wxColour * >(argp1);
4203 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
4204 if (!SWIG_IsOK(ecode2)) {
4205 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
4206 }
4207 arg2 = static_cast< unsigned long >(val2);
4208 {
4209 PyThreadState* __tstate = wxPyBeginAllowThreads();
4210 (arg1)->Set(arg2);
4211 wxPyEndAllowThreads(__tstate);
4212 if (PyErr_Occurred()) SWIG_fail;
4213 }
4214 resultobj = SWIG_Py_Void();
4215 return resultobj;
4216 fail:
4217 return NULL;
4218 }
4219
4220
4221 SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4222 PyObject *resultobj = 0;
4223 wxColour *arg1 = (wxColour *) 0 ;
4224 wxString *arg2 = 0 ;
4225 void *argp1 = 0 ;
4226 int res1 = 0 ;
4227 bool temp2 = false ;
4228 PyObject * obj0 = 0 ;
4229 PyObject * obj1 = 0 ;
4230 char * kwnames[] = {
4231 (char *) "self",(char *) "colourName", NULL
4232 };
4233
4234 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
4235 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4236 if (!SWIG_IsOK(res1)) {
4237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
4238 }
4239 arg1 = reinterpret_cast< wxColour * >(argp1);
4240 {
4241 arg2 = wxString_in_helper(obj1);
4242 if (arg2 == NULL) SWIG_fail;
4243 temp2 = true;
4244 }
4245 {
4246 PyThreadState* __tstate = wxPyBeginAllowThreads();
4247 (arg1)->Set((wxString const &)*arg2);
4248 wxPyEndAllowThreads(__tstate);
4249 if (PyErr_Occurred()) SWIG_fail;
4250 }
4251 resultobj = SWIG_Py_Void();
4252 {
4253 if (temp2)
4254 delete arg2;
4255 }
4256 return resultobj;
4257 fail:
4258 {
4259 if (temp2)
4260 delete arg2;
4261 }
4262 return NULL;
4263 }
4264
4265
4266 SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4267 PyObject *resultobj = 0;
4268 wxColour *arg1 = (wxColour *) 0 ;
4269 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
4270 wxString result;
4271 void *argp1 = 0 ;
4272 int res1 = 0 ;
4273 long val2 ;
4274 int ecode2 = 0 ;
4275 PyObject * obj0 = 0 ;
4276 PyObject * obj1 = 0 ;
4277 char * kwnames[] = {
4278 (char *) "self",(char *) "flags", NULL
4279 };
4280
4281 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
4282 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4283 if (!SWIG_IsOK(res1)) {
4284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
4285 }
4286 arg1 = reinterpret_cast< wxColour * >(argp1);
4287 if (obj1) {
4288 ecode2 = SWIG_AsVal_long(obj1, &val2);
4289 if (!SWIG_IsOK(ecode2)) {
4290 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
4291 }
4292 arg2 = static_cast< long >(val2);
4293 }
4294 {
4295 PyThreadState* __tstate = wxPyBeginAllowThreads();
4296 result = ((wxColour const *)arg1)->GetAsString(arg2);
4297 wxPyEndAllowThreads(__tstate);
4298 if (PyErr_Occurred()) SWIG_fail;
4299 }
4300 {
4301 #if wxUSE_UNICODE
4302 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4303 #else
4304 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4305 #endif
4306 }
4307 return resultobj;
4308 fail:
4309 return NULL;
4310 }
4311
4312
4313 SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4314 PyObject *resultobj = 0;
4315 wxColour *arg1 = (wxColour *) 0 ;
4316 long result;
4317 void *argp1 = 0 ;
4318 int res1 = 0 ;
4319 PyObject *swig_obj[1] ;
4320
4321 if (!args) SWIG_fail;
4322 swig_obj[0] = args;
4323 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4324 if (!SWIG_IsOK(res1)) {
4325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
4326 }
4327 arg1 = reinterpret_cast< wxColour * >(argp1);
4328 {
4329 PyThreadState* __tstate = wxPyBeginAllowThreads();
4330 result = (long)((wxColour const *)arg1)->GetPixel();
4331 wxPyEndAllowThreads(__tstate);
4332 if (PyErr_Occurred()) SWIG_fail;
4333 }
4334 resultobj = SWIG_From_long(static_cast< long >(result));
4335 return resultobj;
4336 fail:
4337 return NULL;
4338 }
4339
4340
4341 SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4342 PyObject *resultobj = 0;
4343 wxColour *arg1 = (wxColour *) 0 ;
4344 PyObject *arg2 = (PyObject *) 0 ;
4345 bool result;
4346 void *argp1 = 0 ;
4347 int res1 = 0 ;
4348 PyObject * obj0 = 0 ;
4349 PyObject * obj1 = 0 ;
4350 char * kwnames[] = {
4351 (char *) "self",(char *) "other", NULL
4352 };
4353
4354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4356 if (!SWIG_IsOK(res1)) {
4357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
4358 }
4359 arg1 = reinterpret_cast< wxColour * >(argp1);
4360 arg2 = obj1;
4361 {
4362 result = (bool)wxColour___eq__(arg1,arg2);
4363 if (PyErr_Occurred()) SWIG_fail;
4364 }
4365 {
4366 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4367 }
4368 return resultobj;
4369 fail:
4370 return NULL;
4371 }
4372
4373
4374 SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4375 PyObject *resultobj = 0;
4376 wxColour *arg1 = (wxColour *) 0 ;
4377 PyObject *arg2 = (PyObject *) 0 ;
4378 bool result;
4379 void *argp1 = 0 ;
4380 int res1 = 0 ;
4381 PyObject * obj0 = 0 ;
4382 PyObject * obj1 = 0 ;
4383 char * kwnames[] = {
4384 (char *) "self",(char *) "other", NULL
4385 };
4386
4387 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4388 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4389 if (!SWIG_IsOK(res1)) {
4390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
4391 }
4392 arg1 = reinterpret_cast< wxColour * >(argp1);
4393 arg2 = obj1;
4394 {
4395 result = (bool)wxColour___ne__(arg1,arg2);
4396 if (PyErr_Occurred()) SWIG_fail;
4397 }
4398 {
4399 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4400 }
4401 return resultobj;
4402 fail:
4403 return NULL;
4404 }
4405
4406
4407 SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4408 PyObject *resultobj = 0;
4409 wxColour *arg1 = (wxColour *) 0 ;
4410 bool arg2 = (bool) false ;
4411 PyObject *result = 0 ;
4412 void *argp1 = 0 ;
4413 int res1 = 0 ;
4414 bool val2 ;
4415 int ecode2 = 0 ;
4416 PyObject * obj0 = 0 ;
4417 PyObject * obj1 = 0 ;
4418 char * kwnames[] = {
4419 (char *) "self",(char *) "includeAlpha", NULL
4420 };
4421
4422 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail;
4423 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4424 if (!SWIG_IsOK(res1)) {
4425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
4426 }
4427 arg1 = reinterpret_cast< wxColour * >(argp1);
4428 if (obj1) {
4429 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4430 if (!SWIG_IsOK(ecode2)) {
4431 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'");
4432 }
4433 arg2 = static_cast< bool >(val2);
4434 }
4435 {
4436 result = (PyObject *)wxColour_Get(arg1,arg2);
4437 if (PyErr_Occurred()) SWIG_fail;
4438 }
4439 resultobj = result;
4440 return resultobj;
4441 fail:
4442 return NULL;
4443 }
4444
4445
4446 SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4447 PyObject *resultobj = 0;
4448 wxColour *arg1 = (wxColour *) 0 ;
4449 unsigned long result;
4450 void *argp1 = 0 ;
4451 int res1 = 0 ;
4452 PyObject *swig_obj[1] ;
4453
4454 if (!args) SWIG_fail;
4455 swig_obj[0] = args;
4456 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4457 if (!SWIG_IsOK(res1)) {
4458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4459 }
4460 arg1 = reinterpret_cast< wxColour * >(argp1);
4461 {
4462 result = (unsigned long)wxColour_GetRGB(arg1);
4463 if (PyErr_Occurred()) SWIG_fail;
4464 }
4465 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
4466 return resultobj;
4467 fail:
4468 return NULL;
4469 }
4470
4471
4472 SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4473 PyObject *obj;
4474 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4475 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
4476 return SWIG_Py_Void();
4477 }
4478
4479 SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4480 return SWIG_Python_InitShadowInstance(args);
4481 }
4482
4483 SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4484 PyObject *resultobj = 0;
4485 int arg1 ;
4486 unsigned char *arg2 = (unsigned char *) 0 ;
4487 unsigned char *arg3 = (unsigned char *) 0 ;
4488 unsigned char *arg4 = (unsigned char *) 0 ;
4489 wxPalette *result = 0 ;
4490 int val1 ;
4491 int ecode1 = 0 ;
4492 void *argp2 = 0 ;
4493 int res2 = 0 ;
4494 void *argp3 = 0 ;
4495 int res3 = 0 ;
4496 void *argp4 = 0 ;
4497 int res4 = 0 ;
4498 PyObject * obj0 = 0 ;
4499 PyObject * obj1 = 0 ;
4500 PyObject * obj2 = 0 ;
4501 PyObject * obj3 = 0 ;
4502 char * kwnames[] = {
4503 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
4504 };
4505
4506 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4507 ecode1 = SWIG_AsVal_int(obj0, &val1);
4508 if (!SWIG_IsOK(ecode1)) {
4509 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
4510 }
4511 arg1 = static_cast< int >(val1);
4512 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
4513 if (!SWIG_IsOK(res2)) {
4514 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
4515 }
4516 arg2 = reinterpret_cast< unsigned char * >(argp2);
4517 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
4518 if (!SWIG_IsOK(res3)) {
4519 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4520 }
4521 arg3 = reinterpret_cast< unsigned char * >(argp3);
4522 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4523 if (!SWIG_IsOK(res4)) {
4524 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4525 }
4526 arg4 = reinterpret_cast< unsigned char * >(argp4);
4527 {
4528 if (!wxPyCheckForApp()) SWIG_fail;
4529 PyThreadState* __tstate = wxPyBeginAllowThreads();
4530 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4531 wxPyEndAllowThreads(__tstate);
4532 if (PyErr_Occurred()) SWIG_fail;
4533 }
4534 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4535 return resultobj;
4536 fail:
4537 return NULL;
4538 }
4539
4540
4541 SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4542 PyObject *resultobj = 0;
4543 wxPalette *arg1 = (wxPalette *) 0 ;
4544 void *argp1 = 0 ;
4545 int res1 = 0 ;
4546 PyObject *swig_obj[1] ;
4547
4548 if (!args) SWIG_fail;
4549 swig_obj[0] = args;
4550 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4551 if (!SWIG_IsOK(res1)) {
4552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4553 }
4554 arg1 = reinterpret_cast< wxPalette * >(argp1);
4555 {
4556 PyThreadState* __tstate = wxPyBeginAllowThreads();
4557 delete arg1;
4558
4559 wxPyEndAllowThreads(__tstate);
4560 if (PyErr_Occurred()) SWIG_fail;
4561 }
4562 resultobj = SWIG_Py_Void();
4563 return resultobj;
4564 fail:
4565 return NULL;
4566 }
4567
4568
4569 SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4570 PyObject *resultobj = 0;
4571 wxPalette *arg1 = (wxPalette *) 0 ;
4572 byte arg2 ;
4573 byte arg3 ;
4574 byte arg4 ;
4575 int result;
4576 void *argp1 = 0 ;
4577 int res1 = 0 ;
4578 unsigned char val2 ;
4579 int ecode2 = 0 ;
4580 unsigned char val3 ;
4581 int ecode3 = 0 ;
4582 unsigned char val4 ;
4583 int ecode4 = 0 ;
4584 PyObject * obj0 = 0 ;
4585 PyObject * obj1 = 0 ;
4586 PyObject * obj2 = 0 ;
4587 PyObject * obj3 = 0 ;
4588 char * kwnames[] = {
4589 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4590 };
4591
4592 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4593 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4594 if (!SWIG_IsOK(res1)) {
4595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4596 }
4597 arg1 = reinterpret_cast< wxPalette * >(argp1);
4598 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4599 if (!SWIG_IsOK(ecode2)) {
4600 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4601 }
4602 arg2 = static_cast< byte >(val2);
4603 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4604 if (!SWIG_IsOK(ecode3)) {
4605 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4606 }
4607 arg3 = static_cast< byte >(val3);
4608 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4609 if (!SWIG_IsOK(ecode4)) {
4610 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4611 }
4612 arg4 = static_cast< byte >(val4);
4613 {
4614 PyThreadState* __tstate = wxPyBeginAllowThreads();
4615 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4616 wxPyEndAllowThreads(__tstate);
4617 if (PyErr_Occurred()) SWIG_fail;
4618 }
4619 resultobj = SWIG_From_int(static_cast< int >(result));
4620 return resultobj;
4621 fail:
4622 return NULL;
4623 }
4624
4625
4626 SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4627 PyObject *resultobj = 0;
4628 wxPalette *arg1 = (wxPalette *) 0 ;
4629 int arg2 ;
4630 byte *arg3 = (byte *) 0 ;
4631 byte *arg4 = (byte *) 0 ;
4632 byte *arg5 = (byte *) 0 ;
4633 bool result;
4634 void *argp1 = 0 ;
4635 int res1 = 0 ;
4636 int val2 ;
4637 int ecode2 = 0 ;
4638 byte temp3 ;
4639 int res3 = SWIG_TMPOBJ ;
4640 byte temp4 ;
4641 int res4 = SWIG_TMPOBJ ;
4642 byte temp5 ;
4643 int res5 = SWIG_TMPOBJ ;
4644 PyObject * obj0 = 0 ;
4645 PyObject * obj1 = 0 ;
4646 char * kwnames[] = {
4647 (char *) "self",(char *) "pixel", NULL
4648 };
4649
4650 arg3 = &temp3;
4651 arg4 = &temp4;
4652 arg5 = &temp5;
4653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4655 if (!SWIG_IsOK(res1)) {
4656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4657 }
4658 arg1 = reinterpret_cast< wxPalette * >(argp1);
4659 ecode2 = SWIG_AsVal_int(obj1, &val2);
4660 if (!SWIG_IsOK(ecode2)) {
4661 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4662 }
4663 arg2 = static_cast< int >(val2);
4664 {
4665 PyThreadState* __tstate = wxPyBeginAllowThreads();
4666 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4667 wxPyEndAllowThreads(__tstate);
4668 if (PyErr_Occurred()) SWIG_fail;
4669 }
4670 {
4671 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4672 }
4673 if (SWIG_IsTmpObj(res3)) {
4674 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4675 } else {
4676 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4677 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4678 }
4679 if (SWIG_IsTmpObj(res4)) {
4680 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4681 } else {
4682 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4683 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4684 }
4685 if (SWIG_IsTmpObj(res5)) {
4686 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4687 } else {
4688 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4689 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4690 }
4691 return resultobj;
4692 fail:
4693 return NULL;
4694 }
4695
4696
4697 SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4698 PyObject *resultobj = 0;
4699 wxPalette *arg1 = (wxPalette *) 0 ;
4700 int result;
4701 void *argp1 = 0 ;
4702 int res1 = 0 ;
4703 PyObject *swig_obj[1] ;
4704
4705 if (!args) SWIG_fail;
4706 swig_obj[0] = args;
4707 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4708 if (!SWIG_IsOK(res1)) {
4709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4710 }
4711 arg1 = reinterpret_cast< wxPalette * >(argp1);
4712 {
4713 PyThreadState* __tstate = wxPyBeginAllowThreads();
4714 result = (int)((wxPalette const *)arg1)->GetColoursCount();
4715 wxPyEndAllowThreads(__tstate);
4716 if (PyErr_Occurred()) SWIG_fail;
4717 }
4718 resultobj = SWIG_From_int(static_cast< int >(result));
4719 return resultobj;
4720 fail:
4721 return NULL;
4722 }
4723
4724
4725 SWIGINTERN PyObject *_wrap_Palette_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4726 PyObject *resultobj = 0;
4727 wxPalette *arg1 = (wxPalette *) 0 ;
4728 bool result;
4729 void *argp1 = 0 ;
4730 int res1 = 0 ;
4731 PyObject *swig_obj[1] ;
4732
4733 if (!args) SWIG_fail;
4734 swig_obj[0] = args;
4735 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4736 if (!SWIG_IsOK(res1)) {
4737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_IsOk" "', expected argument " "1"" of type '" "wxPalette *""'");
4738 }
4739 arg1 = reinterpret_cast< wxPalette * >(argp1);
4740 {
4741 PyThreadState* __tstate = wxPyBeginAllowThreads();
4742 result = (bool)(arg1)->IsOk();
4743 wxPyEndAllowThreads(__tstate);
4744 if (PyErr_Occurred()) SWIG_fail;
4745 }
4746 {
4747 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4748 }
4749 return resultobj;
4750 fail:
4751 return NULL;
4752 }
4753
4754
4755 SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4756 PyObject *obj;
4757 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4758 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
4759 return SWIG_Py_Void();
4760 }
4761
4762 SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4763 return SWIG_Python_InitShadowInstance(args);
4764 }
4765
4766 SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4767 PyObject *resultobj = 0;
4768 wxColour *arg1 = 0 ;
4769 int arg2 = (int) 1 ;
4770 int arg3 = (int) wxSOLID ;
4771 wxPen *result = 0 ;
4772 wxColour temp1 ;
4773 int val2 ;
4774 int ecode2 = 0 ;
4775 int val3 ;
4776 int ecode3 = 0 ;
4777 PyObject * obj0 = 0 ;
4778 PyObject * obj1 = 0 ;
4779 PyObject * obj2 = 0 ;
4780 char * kwnames[] = {
4781 (char *) "colour",(char *) "width",(char *) "style", NULL
4782 };
4783
4784 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4785 {
4786 arg1 = &temp1;
4787 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
4788 }
4789 if (obj1) {
4790 ecode2 = SWIG_AsVal_int(obj1, &val2);
4791 if (!SWIG_IsOK(ecode2)) {
4792 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
4793 }
4794 arg2 = static_cast< int >(val2);
4795 }
4796 if (obj2) {
4797 ecode3 = SWIG_AsVal_int(obj2, &val3);
4798 if (!SWIG_IsOK(ecode3)) {
4799 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
4800 }
4801 arg3 = static_cast< int >(val3);
4802 }
4803 {
4804 if (!wxPyCheckForApp()) SWIG_fail;
4805 PyThreadState* __tstate = wxPyBeginAllowThreads();
4806 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
4807 wxPyEndAllowThreads(__tstate);
4808 if (PyErr_Occurred()) SWIG_fail;
4809 }
4810 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
4811 return resultobj;
4812 fail:
4813 return NULL;
4814 }
4815
4816
4817 SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4818 PyObject *resultobj = 0;
4819 wxPen *arg1 = (wxPen *) 0 ;
4820 void *argp1 = 0 ;
4821 int res1 = 0 ;
4822 PyObject *swig_obj[1] ;
4823
4824 if (!args) SWIG_fail;
4825 swig_obj[0] = args;
4826 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
4827 if (!SWIG_IsOK(res1)) {
4828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
4829 }
4830 arg1 = reinterpret_cast< wxPen * >(argp1);
4831 {
4832 PyThreadState* __tstate = wxPyBeginAllowThreads();
4833 delete arg1;
4834
4835 wxPyEndAllowThreads(__tstate);
4836 if (PyErr_Occurred()) SWIG_fail;
4837 }
4838 resultobj = SWIG_Py_Void();
4839 return resultobj;
4840 fail:
4841 return NULL;
4842 }
4843
4844
4845 SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4846 PyObject *resultobj = 0;
4847 wxPen *arg1 = (wxPen *) 0 ;
4848 int result;
4849 void *argp1 = 0 ;
4850 int res1 = 0 ;
4851 PyObject *swig_obj[1] ;
4852
4853 if (!args) SWIG_fail;
4854 swig_obj[0] = args;
4855 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4856 if (!SWIG_IsOK(res1)) {
4857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4858 }
4859 arg1 = reinterpret_cast< wxPen * >(argp1);
4860 {
4861 PyThreadState* __tstate = wxPyBeginAllowThreads();
4862 result = (int)(arg1)->GetCap();
4863 wxPyEndAllowThreads(__tstate);
4864 if (PyErr_Occurred()) SWIG_fail;
4865 }
4866 resultobj = SWIG_From_int(static_cast< int >(result));
4867 return resultobj;
4868 fail:
4869 return NULL;
4870 }
4871
4872
4873 SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4874 PyObject *resultobj = 0;
4875 wxPen *arg1 = (wxPen *) 0 ;
4876 wxColour result;
4877 void *argp1 = 0 ;
4878 int res1 = 0 ;
4879 PyObject *swig_obj[1] ;
4880
4881 if (!args) SWIG_fail;
4882 swig_obj[0] = args;
4883 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4884 if (!SWIG_IsOK(res1)) {
4885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4886 }
4887 arg1 = reinterpret_cast< wxPen * >(argp1);
4888 {
4889 PyThreadState* __tstate = wxPyBeginAllowThreads();
4890 result = (arg1)->GetColour();
4891 wxPyEndAllowThreads(__tstate);
4892 if (PyErr_Occurred()) SWIG_fail;
4893 }
4894 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4895 return resultobj;
4896 fail:
4897 return NULL;
4898 }
4899
4900
4901 SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4902 PyObject *resultobj = 0;
4903 wxPen *arg1 = (wxPen *) 0 ;
4904 int result;
4905 void *argp1 = 0 ;
4906 int res1 = 0 ;
4907 PyObject *swig_obj[1] ;
4908
4909 if (!args) SWIG_fail;
4910 swig_obj[0] = args;
4911 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4912 if (!SWIG_IsOK(res1)) {
4913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4914 }
4915 arg1 = reinterpret_cast< wxPen * >(argp1);
4916 {
4917 PyThreadState* __tstate = wxPyBeginAllowThreads();
4918 result = (int)(arg1)->GetJoin();
4919 wxPyEndAllowThreads(__tstate);
4920 if (PyErr_Occurred()) SWIG_fail;
4921 }
4922 resultobj = SWIG_From_int(static_cast< int >(result));
4923 return resultobj;
4924 fail:
4925 return NULL;
4926 }
4927
4928
4929 SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4930 PyObject *resultobj = 0;
4931 wxPen *arg1 = (wxPen *) 0 ;
4932 int result;
4933 void *argp1 = 0 ;
4934 int res1 = 0 ;
4935 PyObject *swig_obj[1] ;
4936
4937 if (!args) SWIG_fail;
4938 swig_obj[0] = args;
4939 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4940 if (!SWIG_IsOK(res1)) {
4941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
4942 }
4943 arg1 = reinterpret_cast< wxPen * >(argp1);
4944 {
4945 PyThreadState* __tstate = wxPyBeginAllowThreads();
4946 result = (int)(arg1)->GetStyle();
4947 wxPyEndAllowThreads(__tstate);
4948 if (PyErr_Occurred()) SWIG_fail;
4949 }
4950 resultobj = SWIG_From_int(static_cast< int >(result));
4951 return resultobj;
4952 fail:
4953 return NULL;
4954 }
4955
4956
4957 SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4958 PyObject *resultobj = 0;
4959 wxPen *arg1 = (wxPen *) 0 ;
4960 int result;
4961 void *argp1 = 0 ;
4962 int res1 = 0 ;
4963 PyObject *swig_obj[1] ;
4964
4965 if (!args) SWIG_fail;
4966 swig_obj[0] = args;
4967 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4968 if (!SWIG_IsOK(res1)) {
4969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
4970 }
4971 arg1 = reinterpret_cast< wxPen * >(argp1);
4972 {
4973 PyThreadState* __tstate = wxPyBeginAllowThreads();
4974 result = (int)(arg1)->GetWidth();
4975 wxPyEndAllowThreads(__tstate);
4976 if (PyErr_Occurred()) SWIG_fail;
4977 }
4978 resultobj = SWIG_From_int(static_cast< int >(result));
4979 return resultobj;
4980 fail:
4981 return NULL;
4982 }
4983
4984
4985 SWIGINTERN PyObject *_wrap_Pen_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4986 PyObject *resultobj = 0;
4987 wxPen *arg1 = (wxPen *) 0 ;
4988 bool result;
4989 void *argp1 = 0 ;
4990 int res1 = 0 ;
4991 PyObject *swig_obj[1] ;
4992
4993 if (!args) SWIG_fail;
4994 swig_obj[0] = args;
4995 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4996 if (!SWIG_IsOK(res1)) {
4997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_IsOk" "', expected argument " "1"" of type '" "wxPen *""'");
4998 }
4999 arg1 = reinterpret_cast< wxPen * >(argp1);
5000 {
5001 PyThreadState* __tstate = wxPyBeginAllowThreads();
5002 result = (bool)(arg1)->IsOk();
5003 wxPyEndAllowThreads(__tstate);
5004 if (PyErr_Occurred()) SWIG_fail;
5005 }
5006 {
5007 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5008 }
5009 return resultobj;
5010 fail:
5011 return NULL;
5012 }
5013
5014
5015 SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5016 PyObject *resultobj = 0;
5017 wxPen *arg1 = (wxPen *) 0 ;
5018 int arg2 ;
5019 void *argp1 = 0 ;
5020 int res1 = 0 ;
5021 int val2 ;
5022 int ecode2 = 0 ;
5023 PyObject * obj0 = 0 ;
5024 PyObject * obj1 = 0 ;
5025 char * kwnames[] = {
5026 (char *) "self",(char *) "cap_style", NULL
5027 };
5028
5029 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
5030 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5031 if (!SWIG_IsOK(res1)) {
5032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5033 }
5034 arg1 = reinterpret_cast< wxPen * >(argp1);
5035 ecode2 = SWIG_AsVal_int(obj1, &val2);
5036 if (!SWIG_IsOK(ecode2)) {
5037 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
5038 }
5039 arg2 = static_cast< int >(val2);
5040 {
5041 PyThreadState* __tstate = wxPyBeginAllowThreads();
5042 (arg1)->SetCap(arg2);
5043 wxPyEndAllowThreads(__tstate);
5044 if (PyErr_Occurred()) SWIG_fail;
5045 }
5046 resultobj = SWIG_Py_Void();
5047 return resultobj;
5048 fail:
5049 return NULL;
5050 }
5051
5052
5053 SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5054 PyObject *resultobj = 0;
5055 wxPen *arg1 = (wxPen *) 0 ;
5056 wxColour *arg2 = 0 ;
5057 void *argp1 = 0 ;
5058 int res1 = 0 ;
5059 wxColour temp2 ;
5060 PyObject * obj0 = 0 ;
5061 PyObject * obj1 = 0 ;
5062 char * kwnames[] = {
5063 (char *) "self",(char *) "colour", NULL
5064 };
5065
5066 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5067 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5068 if (!SWIG_IsOK(res1)) {
5069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5070 }
5071 arg1 = reinterpret_cast< wxPen * >(argp1);
5072 {
5073 arg2 = &temp2;
5074 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5075 }
5076 {
5077 PyThreadState* __tstate = wxPyBeginAllowThreads();
5078 (arg1)->SetColour(*arg2);
5079 wxPyEndAllowThreads(__tstate);
5080 if (PyErr_Occurred()) SWIG_fail;
5081 }
5082 resultobj = SWIG_Py_Void();
5083 return resultobj;
5084 fail:
5085 return NULL;
5086 }
5087
5088
5089 SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5090 PyObject *resultobj = 0;
5091 wxPen *arg1 = (wxPen *) 0 ;
5092 int arg2 ;
5093 void *argp1 = 0 ;
5094 int res1 = 0 ;
5095 int val2 ;
5096 int ecode2 = 0 ;
5097 PyObject * obj0 = 0 ;
5098 PyObject * obj1 = 0 ;
5099 char * kwnames[] = {
5100 (char *) "self",(char *) "join_style", NULL
5101 };
5102
5103 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
5104 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5105 if (!SWIG_IsOK(res1)) {
5106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5107 }
5108 arg1 = reinterpret_cast< wxPen * >(argp1);
5109 ecode2 = SWIG_AsVal_int(obj1, &val2);
5110 if (!SWIG_IsOK(ecode2)) {
5111 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
5112 }
5113 arg2 = static_cast< int >(val2);
5114 {
5115 PyThreadState* __tstate = wxPyBeginAllowThreads();
5116 (arg1)->SetJoin(arg2);
5117 wxPyEndAllowThreads(__tstate);
5118 if (PyErr_Occurred()) SWIG_fail;
5119 }
5120 resultobj = SWIG_Py_Void();
5121 return resultobj;
5122 fail:
5123 return NULL;
5124 }
5125
5126
5127 SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5128 PyObject *resultobj = 0;
5129 wxPen *arg1 = (wxPen *) 0 ;
5130 int arg2 ;
5131 void *argp1 = 0 ;
5132 int res1 = 0 ;
5133 int val2 ;
5134 int ecode2 = 0 ;
5135 PyObject * obj0 = 0 ;
5136 PyObject * obj1 = 0 ;
5137 char * kwnames[] = {
5138 (char *) "self",(char *) "style", NULL
5139 };
5140
5141 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5143 if (!SWIG_IsOK(res1)) {
5144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5145 }
5146 arg1 = reinterpret_cast< wxPen * >(argp1);
5147 ecode2 = SWIG_AsVal_int(obj1, &val2);
5148 if (!SWIG_IsOK(ecode2)) {
5149 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
5150 }
5151 arg2 = static_cast< int >(val2);
5152 {
5153 PyThreadState* __tstate = wxPyBeginAllowThreads();
5154 (arg1)->SetStyle(arg2);
5155 wxPyEndAllowThreads(__tstate);
5156 if (PyErr_Occurred()) SWIG_fail;
5157 }
5158 resultobj = SWIG_Py_Void();
5159 return resultobj;
5160 fail:
5161 return NULL;
5162 }
5163
5164
5165 SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5166 PyObject *resultobj = 0;
5167 wxPen *arg1 = (wxPen *) 0 ;
5168 int arg2 ;
5169 void *argp1 = 0 ;
5170 int res1 = 0 ;
5171 int val2 ;
5172 int ecode2 = 0 ;
5173 PyObject * obj0 = 0 ;
5174 PyObject * obj1 = 0 ;
5175 char * kwnames[] = {
5176 (char *) "self",(char *) "width", NULL
5177 };
5178
5179 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
5180 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5181 if (!SWIG_IsOK(res1)) {
5182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5183 }
5184 arg1 = reinterpret_cast< wxPen * >(argp1);
5185 ecode2 = SWIG_AsVal_int(obj1, &val2);
5186 if (!SWIG_IsOK(ecode2)) {
5187 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
5188 }
5189 arg2 = static_cast< int >(val2);
5190 {
5191 PyThreadState* __tstate = wxPyBeginAllowThreads();
5192 (arg1)->SetWidth(arg2);
5193 wxPyEndAllowThreads(__tstate);
5194 if (PyErr_Occurred()) SWIG_fail;
5195 }
5196 resultobj = SWIG_Py_Void();
5197 return resultobj;
5198 fail:
5199 return NULL;
5200 }
5201
5202
5203 SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5204 PyObject *resultobj = 0;
5205 wxPen *arg1 = (wxPen *) 0 ;
5206 int arg2 ;
5207 wxDash *arg3 = (wxDash *) 0 ;
5208 void *argp1 = 0 ;
5209 int res1 = 0 ;
5210 PyObject * obj0 = 0 ;
5211 PyObject * obj1 = 0 ;
5212 char * kwnames[] = {
5213 (char *) "self",(char *) "dashes", NULL
5214 };
5215
5216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
5217 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5218 if (!SWIG_IsOK(res1)) {
5219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5220 }
5221 arg1 = reinterpret_cast< wxPen * >(argp1);
5222 {
5223 arg2 = PyList_Size(obj1);
5224 arg3 = (wxDash*)byte_LIST_helper(obj1);
5225 if (arg3 == NULL) SWIG_fail;
5226 }
5227 {
5228 PyThreadState* __tstate = wxPyBeginAllowThreads();
5229 (arg1)->SetDashes(arg2,arg3);
5230 wxPyEndAllowThreads(__tstate);
5231 if (PyErr_Occurred()) SWIG_fail;
5232 }
5233 resultobj = SWIG_Py_Void();
5234 {
5235 if (arg3) delete [] arg3;
5236 }
5237 return resultobj;
5238 fail:
5239 {
5240 if (arg3) delete [] arg3;
5241 }
5242 return NULL;
5243 }
5244
5245
5246 SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5247 PyObject *resultobj = 0;
5248 wxPen *arg1 = (wxPen *) 0 ;
5249 PyObject *result = 0 ;
5250 void *argp1 = 0 ;
5251 int res1 = 0 ;
5252 PyObject *swig_obj[1] ;
5253
5254 if (!args) SWIG_fail;
5255 swig_obj[0] = args;
5256 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5257 if (!SWIG_IsOK(res1)) {
5258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5259 }
5260 arg1 = reinterpret_cast< wxPen * >(argp1);
5261 {
5262 PyThreadState* __tstate = wxPyBeginAllowThreads();
5263 result = (PyObject *)wxPen_GetDashes(arg1);
5264 wxPyEndAllowThreads(__tstate);
5265 if (PyErr_Occurred()) SWIG_fail;
5266 }
5267 resultobj = result;
5268 return resultobj;
5269 fail:
5270 return NULL;
5271 }
5272
5273
5274 SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5275 PyObject *resultobj = 0;
5276 wxPen *arg1 = (wxPen *) 0 ;
5277 PyObject *arg2 = (PyObject *) 0 ;
5278 PyObject *arg3 = (PyObject *) 0 ;
5279 void *argp1 = 0 ;
5280 int res1 = 0 ;
5281 PyObject * obj0 = 0 ;
5282 PyObject * obj1 = 0 ;
5283 PyObject * obj2 = 0 ;
5284 char * kwnames[] = {
5285 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
5286 };
5287
5288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5290 if (!SWIG_IsOK(res1)) {
5291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5292 }
5293 arg1 = reinterpret_cast< wxPen * >(argp1);
5294 arg2 = obj1;
5295 arg3 = obj2;
5296 {
5297 PyThreadState* __tstate = wxPyBeginAllowThreads();
5298 wxPen__SetDashes(arg1,arg2,arg3);
5299 wxPyEndAllowThreads(__tstate);
5300 if (PyErr_Occurred()) SWIG_fail;
5301 }
5302 resultobj = SWIG_Py_Void();
5303 return resultobj;
5304 fail:
5305 return NULL;
5306 }
5307
5308
5309 SWIGINTERN PyObject *_wrap_Pen_GetDashCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5310 PyObject *resultobj = 0;
5311 wxPen *arg1 = (wxPen *) 0 ;
5312 int result;
5313 void *argp1 = 0 ;
5314 int res1 = 0 ;
5315 PyObject *swig_obj[1] ;
5316
5317 if (!args) SWIG_fail;
5318 swig_obj[0] = args;
5319 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5320 if (!SWIG_IsOK(res1)) {
5321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashCount" "', expected argument " "1"" of type '" "wxPen const *""'");
5322 }
5323 arg1 = reinterpret_cast< wxPen * >(argp1);
5324 {
5325 PyThreadState* __tstate = wxPyBeginAllowThreads();
5326 result = (int)((wxPen const *)arg1)->GetDashCount();
5327 wxPyEndAllowThreads(__tstate);
5328 if (PyErr_Occurred()) SWIG_fail;
5329 }
5330 resultobj = SWIG_From_int(static_cast< int >(result));
5331 return resultobj;
5332 fail:
5333 return NULL;
5334 }
5335
5336
5337 SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5338 PyObject *resultobj = 0;
5339 wxPen *arg1 = (wxPen *) 0 ;
5340 wxPen *arg2 = (wxPen *) 0 ;
5341 bool result;
5342 void *argp1 = 0 ;
5343 int res1 = 0 ;
5344 void *argp2 = 0 ;
5345 int res2 = 0 ;
5346 PyObject * obj0 = 0 ;
5347 PyObject * obj1 = 0 ;
5348 char * kwnames[] = {
5349 (char *) "self",(char *) "other", NULL
5350 };
5351
5352 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
5353 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5354 if (!SWIG_IsOK(res1)) {
5355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
5356 }
5357 arg1 = reinterpret_cast< wxPen * >(argp1);
5358 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5359 if (!SWIG_IsOK(res2)) {
5360 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
5361 }
5362 arg2 = reinterpret_cast< wxPen * >(argp2);
5363 {
5364 PyThreadState* __tstate = wxPyBeginAllowThreads();
5365 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
5366 wxPyEndAllowThreads(__tstate);
5367 if (PyErr_Occurred()) SWIG_fail;
5368 }
5369 {
5370 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5371 }
5372 return resultobj;
5373 fail:
5374 return NULL;
5375 }
5376
5377
5378 SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5379 PyObject *resultobj = 0;
5380 wxPen *arg1 = (wxPen *) 0 ;
5381 wxPen *arg2 = (wxPen *) 0 ;
5382 bool result;
5383 void *argp1 = 0 ;
5384 int res1 = 0 ;
5385 void *argp2 = 0 ;
5386 int res2 = 0 ;
5387 PyObject * obj0 = 0 ;
5388 PyObject * obj1 = 0 ;
5389 char * kwnames[] = {
5390 (char *) "self",(char *) "other", NULL
5391 };
5392
5393 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
5394 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5395 if (!SWIG_IsOK(res1)) {
5396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
5397 }
5398 arg1 = reinterpret_cast< wxPen * >(argp1);
5399 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5400 if (!SWIG_IsOK(res2)) {
5401 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
5402 }
5403 arg2 = reinterpret_cast< wxPen * >(argp2);
5404 {
5405 PyThreadState* __tstate = wxPyBeginAllowThreads();
5406 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
5407 wxPyEndAllowThreads(__tstate);
5408 if (PyErr_Occurred()) SWIG_fail;
5409 }
5410 {
5411 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5412 }
5413 return resultobj;
5414 fail:
5415 return NULL;
5416 }
5417
5418
5419 SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5420 PyObject *obj;
5421 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5422 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
5423 return SWIG_Py_Void();
5424 }
5425
5426 SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5427 return SWIG_Python_InitShadowInstance(args);
5428 }
5429
5430 SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5431 PyObject *resultobj = 0;
5432 wxColour *arg1 = 0 ;
5433 int arg2 = (int) wxSOLID ;
5434 wxBrush *result = 0 ;
5435 wxColour temp1 ;
5436 int val2 ;
5437 int ecode2 = 0 ;
5438 PyObject * obj0 = 0 ;
5439 PyObject * obj1 = 0 ;
5440 char * kwnames[] = {
5441 (char *) "colour",(char *) "style", NULL
5442 };
5443
5444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
5445 {
5446 arg1 = &temp1;
5447 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5448 }
5449 if (obj1) {
5450 ecode2 = SWIG_AsVal_int(obj1, &val2);
5451 if (!SWIG_IsOK(ecode2)) {
5452 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
5453 }
5454 arg2 = static_cast< int >(val2);
5455 }
5456 {
5457 if (!wxPyCheckForApp()) SWIG_fail;
5458 PyThreadState* __tstate = wxPyBeginAllowThreads();
5459 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
5460 wxPyEndAllowThreads(__tstate);
5461 if (PyErr_Occurred()) SWIG_fail;
5462 }
5463 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
5464 return resultobj;
5465 fail:
5466 return NULL;
5467 }
5468
5469
5470 SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5471 PyObject *resultobj = 0;
5472 wxBitmap *arg1 = 0 ;
5473 wxBrush *result = 0 ;
5474 void *argp1 = 0 ;
5475 int res1 = 0 ;
5476 PyObject * obj0 = 0 ;
5477 char * kwnames[] = {
5478 (char *) "stippleBitmap", NULL
5479 };
5480
5481 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
5482 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
5483 if (!SWIG_IsOK(res1)) {
5484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5485 }
5486 if (!argp1) {
5487 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5488 }
5489 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5490 {
5491 if (!wxPyCheckForApp()) SWIG_fail;
5492 PyThreadState* __tstate = wxPyBeginAllowThreads();
5493 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
5494 wxPyEndAllowThreads(__tstate);
5495 if (PyErr_Occurred()) SWIG_fail;
5496 }
5497 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
5498 return resultobj;
5499 fail:
5500 return NULL;
5501 }
5502
5503
5504 SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5505 PyObject *resultobj = 0;
5506 wxBrush *arg1 = (wxBrush *) 0 ;
5507 void *argp1 = 0 ;
5508 int res1 = 0 ;
5509 PyObject *swig_obj[1] ;
5510
5511 if (!args) SWIG_fail;
5512 swig_obj[0] = args;
5513 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5514 if (!SWIG_IsOK(res1)) {
5515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5516 }
5517 arg1 = reinterpret_cast< wxBrush * >(argp1);
5518 {
5519 PyThreadState* __tstate = wxPyBeginAllowThreads();
5520 delete arg1;
5521
5522 wxPyEndAllowThreads(__tstate);
5523 if (PyErr_Occurred()) SWIG_fail;
5524 }
5525 resultobj = SWIG_Py_Void();
5526 return resultobj;
5527 fail:
5528 return NULL;
5529 }
5530
5531
5532 SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5533 PyObject *resultobj = 0;
5534 wxBrush *arg1 = (wxBrush *) 0 ;
5535 wxColour *arg2 = 0 ;
5536 void *argp1 = 0 ;
5537 int res1 = 0 ;
5538 wxColour temp2 ;
5539 PyObject * obj0 = 0 ;
5540 PyObject * obj1 = 0 ;
5541 char * kwnames[] = {
5542 (char *) "self",(char *) "col", NULL
5543 };
5544
5545 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5546 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5547 if (!SWIG_IsOK(res1)) {
5548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5549 }
5550 arg1 = reinterpret_cast< wxBrush * >(argp1);
5551 {
5552 arg2 = &temp2;
5553 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5554 }
5555 {
5556 PyThreadState* __tstate = wxPyBeginAllowThreads();
5557 (arg1)->SetColour((wxColour const &)*arg2);
5558 wxPyEndAllowThreads(__tstate);
5559 if (PyErr_Occurred()) SWIG_fail;
5560 }
5561 resultobj = SWIG_Py_Void();
5562 return resultobj;
5563 fail:
5564 return NULL;
5565 }
5566
5567
5568 SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5569 PyObject *resultobj = 0;
5570 wxBrush *arg1 = (wxBrush *) 0 ;
5571 int arg2 ;
5572 void *argp1 = 0 ;
5573 int res1 = 0 ;
5574 int val2 ;
5575 int ecode2 = 0 ;
5576 PyObject * obj0 = 0 ;
5577 PyObject * obj1 = 0 ;
5578 char * kwnames[] = {
5579 (char *) "self",(char *) "style", NULL
5580 };
5581
5582 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5583 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5584 if (!SWIG_IsOK(res1)) {
5585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5586 }
5587 arg1 = reinterpret_cast< wxBrush * >(argp1);
5588 ecode2 = SWIG_AsVal_int(obj1, &val2);
5589 if (!SWIG_IsOK(ecode2)) {
5590 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5591 }
5592 arg2 = static_cast< int >(val2);
5593 {
5594 PyThreadState* __tstate = wxPyBeginAllowThreads();
5595 (arg1)->SetStyle(arg2);
5596 wxPyEndAllowThreads(__tstate);
5597 if (PyErr_Occurred()) SWIG_fail;
5598 }
5599 resultobj = SWIG_Py_Void();
5600 return resultobj;
5601 fail:
5602 return NULL;
5603 }
5604
5605
5606 SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5607 PyObject *resultobj = 0;
5608 wxBrush *arg1 = (wxBrush *) 0 ;
5609 wxBitmap *arg2 = 0 ;
5610 void *argp1 = 0 ;
5611 int res1 = 0 ;
5612 void *argp2 = 0 ;
5613 int res2 = 0 ;
5614 PyObject * obj0 = 0 ;
5615 PyObject * obj1 = 0 ;
5616 char * kwnames[] = {
5617 (char *) "self",(char *) "stipple", NULL
5618 };
5619
5620 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5621 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5622 if (!SWIG_IsOK(res1)) {
5623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5624 }
5625 arg1 = reinterpret_cast< wxBrush * >(argp1);
5626 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5627 if (!SWIG_IsOK(res2)) {
5628 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5629 }
5630 if (!argp2) {
5631 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5632 }
5633 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5634 {
5635 PyThreadState* __tstate = wxPyBeginAllowThreads();
5636 (arg1)->SetStipple((wxBitmap const &)*arg2);
5637 wxPyEndAllowThreads(__tstate);
5638 if (PyErr_Occurred()) SWIG_fail;
5639 }
5640 resultobj = SWIG_Py_Void();
5641 return resultobj;
5642 fail:
5643 return NULL;
5644 }
5645
5646
5647 SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5648 PyObject *resultobj = 0;
5649 wxBrush *arg1 = (wxBrush *) 0 ;
5650 wxColour result;
5651 void *argp1 = 0 ;
5652 int res1 = 0 ;
5653 PyObject *swig_obj[1] ;
5654
5655 if (!args) SWIG_fail;
5656 swig_obj[0] = args;
5657 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5658 if (!SWIG_IsOK(res1)) {
5659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5660 }
5661 arg1 = reinterpret_cast< wxBrush * >(argp1);
5662 {
5663 PyThreadState* __tstate = wxPyBeginAllowThreads();
5664 result = ((wxBrush const *)arg1)->GetColour();
5665 wxPyEndAllowThreads(__tstate);
5666 if (PyErr_Occurred()) SWIG_fail;
5667 }
5668 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5669 return resultobj;
5670 fail:
5671 return NULL;
5672 }
5673
5674
5675 SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5676 PyObject *resultobj = 0;
5677 wxBrush *arg1 = (wxBrush *) 0 ;
5678 int result;
5679 void *argp1 = 0 ;
5680 int res1 = 0 ;
5681 PyObject *swig_obj[1] ;
5682
5683 if (!args) SWIG_fail;
5684 swig_obj[0] = args;
5685 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5686 if (!SWIG_IsOK(res1)) {
5687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5688 }
5689 arg1 = reinterpret_cast< wxBrush * >(argp1);
5690 {
5691 PyThreadState* __tstate = wxPyBeginAllowThreads();
5692 result = (int)((wxBrush const *)arg1)->GetStyle();
5693 wxPyEndAllowThreads(__tstate);
5694 if (PyErr_Occurred()) SWIG_fail;
5695 }
5696 resultobj = SWIG_From_int(static_cast< int >(result));
5697 return resultobj;
5698 fail:
5699 return NULL;
5700 }
5701
5702
5703 SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5704 PyObject *resultobj = 0;
5705 wxBrush *arg1 = (wxBrush *) 0 ;
5706 wxBitmap *result = 0 ;
5707 void *argp1 = 0 ;
5708 int res1 = 0 ;
5709 PyObject *swig_obj[1] ;
5710
5711 if (!args) SWIG_fail;
5712 swig_obj[0] = args;
5713 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5714 if (!SWIG_IsOK(res1)) {
5715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
5716 }
5717 arg1 = reinterpret_cast< wxBrush * >(argp1);
5718 {
5719 PyThreadState* __tstate = wxPyBeginAllowThreads();
5720 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
5721 wxPyEndAllowThreads(__tstate);
5722 if (PyErr_Occurred()) SWIG_fail;
5723 }
5724 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5725 return resultobj;
5726 fail:
5727 return NULL;
5728 }
5729
5730
5731 SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5732 PyObject *resultobj = 0;
5733 wxBrush *arg1 = (wxBrush *) 0 ;
5734 bool result;
5735 void *argp1 = 0 ;
5736 int res1 = 0 ;
5737 PyObject *swig_obj[1] ;
5738
5739 if (!args) SWIG_fail;
5740 swig_obj[0] = args;
5741 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5742 if (!SWIG_IsOK(res1)) {
5743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
5744 }
5745 arg1 = reinterpret_cast< wxBrush * >(argp1);
5746 {
5747 PyThreadState* __tstate = wxPyBeginAllowThreads();
5748 result = (bool)((wxBrush const *)arg1)->IsHatch();
5749 wxPyEndAllowThreads(__tstate);
5750 if (PyErr_Occurred()) SWIG_fail;
5751 }
5752 {
5753 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5754 }
5755 return resultobj;
5756 fail:
5757 return NULL;
5758 }
5759
5760
5761 SWIGINTERN PyObject *_wrap_Brush_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5762 PyObject *resultobj = 0;
5763 wxBrush *arg1 = (wxBrush *) 0 ;
5764 bool result;
5765 void *argp1 = 0 ;
5766 int res1 = 0 ;
5767 PyObject *swig_obj[1] ;
5768
5769 if (!args) SWIG_fail;
5770 swig_obj[0] = args;
5771 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5772 if (!SWIG_IsOK(res1)) {
5773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsOk" "', expected argument " "1"" of type '" "wxBrush *""'");
5774 }
5775 arg1 = reinterpret_cast< wxBrush * >(argp1);
5776 {
5777 PyThreadState* __tstate = wxPyBeginAllowThreads();
5778 result = (bool)(arg1)->IsOk();
5779 wxPyEndAllowThreads(__tstate);
5780 if (PyErr_Occurred()) SWIG_fail;
5781 }
5782 {
5783 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5784 }
5785 return resultobj;
5786 fail:
5787 return NULL;
5788 }
5789
5790
5791 SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5792 PyObject *obj;
5793 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5794 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
5795 return SWIG_Py_Void();
5796 }
5797
5798 SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5799 return SWIG_Python_InitShadowInstance(args);
5800 }
5801
5802 SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5803 PyObject *resultobj = 0;
5804 wxString *arg1 = 0 ;
5805 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
5806 wxBitmap *result = 0 ;
5807 bool temp1 = false ;
5808 int val2 ;
5809 int ecode2 = 0 ;
5810 PyObject * obj0 = 0 ;
5811 PyObject * obj1 = 0 ;
5812 char * kwnames[] = {
5813 (char *) "name",(char *) "type", NULL
5814 };
5815
5816 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
5817 {
5818 arg1 = wxString_in_helper(obj0);
5819 if (arg1 == NULL) SWIG_fail;
5820 temp1 = true;
5821 }
5822 if (obj1) {
5823 ecode2 = SWIG_AsVal_int(obj1, &val2);
5824 if (!SWIG_IsOK(ecode2)) {
5825 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
5826 }
5827 arg2 = static_cast< wxBitmapType >(val2);
5828 }
5829 {
5830 if (!wxPyCheckForApp()) SWIG_fail;
5831 PyThreadState* __tstate = wxPyBeginAllowThreads();
5832 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
5833 wxPyEndAllowThreads(__tstate);
5834 if (PyErr_Occurred()) SWIG_fail;
5835 }
5836 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
5837 {
5838 if (temp1)
5839 delete arg1;
5840 }
5841 return resultobj;
5842 fail:
5843 {
5844 if (temp1)
5845 delete arg1;
5846 }
5847 return NULL;
5848 }
5849
5850
5851 SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5852 PyObject *resultobj = 0;
5853 wxBitmap *arg1 = (wxBitmap *) 0 ;
5854 void *argp1 = 0 ;
5855 int res1 = 0 ;
5856 PyObject *swig_obj[1] ;
5857
5858 if (!args) SWIG_fail;
5859 swig_obj[0] = args;
5860 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
5861 if (!SWIG_IsOK(res1)) {
5862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
5863 }
5864 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5865 {
5866 delete arg1;
5867
5868 if (PyErr_Occurred()) SWIG_fail;
5869 }
5870 resultobj = SWIG_Py_Void();
5871 return resultobj;
5872 fail:
5873 return NULL;
5874 }
5875
5876
5877 SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5878 PyObject *resultobj = 0;
5879 int arg1 ;
5880 int arg2 ;
5881 int arg3 = (int) -1 ;
5882 wxBitmap *result = 0 ;
5883 int val1 ;
5884 int ecode1 = 0 ;
5885 int val2 ;
5886 int ecode2 = 0 ;
5887 int val3 ;
5888 int ecode3 = 0 ;
5889 PyObject * obj0 = 0 ;
5890 PyObject * obj1 = 0 ;
5891 PyObject * obj2 = 0 ;
5892 char * kwnames[] = {
5893 (char *) "width",(char *) "height",(char *) "depth", NULL
5894 };
5895
5896 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5897 ecode1 = SWIG_AsVal_int(obj0, &val1);
5898 if (!SWIG_IsOK(ecode1)) {
5899 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
5900 }
5901 arg1 = static_cast< int >(val1);
5902 ecode2 = SWIG_AsVal_int(obj1, &val2);
5903 if (!SWIG_IsOK(ecode2)) {
5904 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
5905 }
5906 arg2 = static_cast< int >(val2);
5907 if (obj2) {
5908 ecode3 = SWIG_AsVal_int(obj2, &val3);
5909 if (!SWIG_IsOK(ecode3)) {
5910 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
5911 }
5912 arg3 = static_cast< int >(val3);
5913 }
5914 {
5915 if (!wxPyCheckForApp()) SWIG_fail;
5916 PyThreadState* __tstate = wxPyBeginAllowThreads();
5917 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
5918 wxPyEndAllowThreads(__tstate);
5919 if (PyErr_Occurred()) SWIG_fail;
5920 }
5921 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5922 return resultobj;
5923 fail:
5924 return NULL;
5925 }
5926
5927
5928 SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5929 PyObject *resultobj = 0;
5930 wxIcon *arg1 = 0 ;
5931 wxBitmap *result = 0 ;
5932 void *argp1 = 0 ;
5933 int res1 = 0 ;
5934 PyObject * obj0 = 0 ;
5935 char * kwnames[] = {
5936 (char *) "icon", NULL
5937 };
5938
5939 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
5940 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
5941 if (!SWIG_IsOK(res1)) {
5942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5943 }
5944 if (!argp1) {
5945 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5946 }
5947 arg1 = reinterpret_cast< wxIcon * >(argp1);
5948 {
5949 if (!wxPyCheckForApp()) SWIG_fail;
5950 PyThreadState* __tstate = wxPyBeginAllowThreads();
5951 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
5952 wxPyEndAllowThreads(__tstate);
5953 if (PyErr_Occurred()) SWIG_fail;
5954 }
5955 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5956 return resultobj;
5957 fail:
5958 return NULL;
5959 }
5960
5961
5962 SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5963 PyObject *resultobj = 0;
5964 wxImage *arg1 = 0 ;
5965 int arg2 = (int) -1 ;
5966 wxBitmap *result = 0 ;
5967 void *argp1 = 0 ;
5968 int res1 = 0 ;
5969 int val2 ;
5970 int ecode2 = 0 ;
5971 PyObject * obj0 = 0 ;
5972 PyObject * obj1 = 0 ;
5973 char * kwnames[] = {
5974 (char *) "image",(char *) "depth", NULL
5975 };
5976
5977 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
5978 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
5979 if (!SWIG_IsOK(res1)) {
5980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
5981 }
5982 if (!argp1) {
5983 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
5984 }
5985 arg1 = reinterpret_cast< wxImage * >(argp1);
5986 if (obj1) {
5987 ecode2 = SWIG_AsVal_int(obj1, &val2);
5988 if (!SWIG_IsOK(ecode2)) {
5989 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
5990 }
5991 arg2 = static_cast< int >(val2);
5992 }
5993 {
5994 if (!wxPyCheckForApp()) SWIG_fail;
5995 PyThreadState* __tstate = wxPyBeginAllowThreads();
5996 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
5997 wxPyEndAllowThreads(__tstate);
5998 if (PyErr_Occurred()) SWIG_fail;
5999 }
6000 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6001 return resultobj;
6002 fail:
6003 return NULL;
6004 }
6005
6006
6007 SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6008 PyObject *resultobj = 0;
6009 PyObject *arg1 = (PyObject *) 0 ;
6010 wxBitmap *result = 0 ;
6011 PyObject * obj0 = 0 ;
6012 char * kwnames[] = {
6013 (char *) "listOfStrings", NULL
6014 };
6015
6016 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
6017 arg1 = obj0;
6018 {
6019 if (!wxPyCheckForApp()) SWIG_fail;
6020 PyThreadState* __tstate = wxPyBeginAllowThreads();
6021 result = (wxBitmap *)new_wxBitmap(arg1);
6022 wxPyEndAllowThreads(__tstate);
6023 if (PyErr_Occurred()) SWIG_fail;
6024 }
6025 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6026 return resultobj;
6027 fail:
6028 return NULL;
6029 }
6030
6031
6032 SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6033 PyObject *resultobj = 0;
6034 PyObject *arg1 = (PyObject *) 0 ;
6035 int arg2 ;
6036 int arg3 ;
6037 int arg4 = (int) 1 ;
6038 wxBitmap *result = 0 ;
6039 int val2 ;
6040 int ecode2 = 0 ;
6041 int val3 ;
6042 int ecode3 = 0 ;
6043 int val4 ;
6044 int ecode4 = 0 ;
6045 PyObject * obj0 = 0 ;
6046 PyObject * obj1 = 0 ;
6047 PyObject * obj2 = 0 ;
6048 PyObject * obj3 = 0 ;
6049 char * kwnames[] = {
6050 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
6051 };
6052
6053 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6054 arg1 = obj0;
6055 ecode2 = SWIG_AsVal_int(obj1, &val2);
6056 if (!SWIG_IsOK(ecode2)) {
6057 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
6058 }
6059 arg2 = static_cast< int >(val2);
6060 ecode3 = SWIG_AsVal_int(obj2, &val3);
6061 if (!SWIG_IsOK(ecode3)) {
6062 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
6063 }
6064 arg3 = static_cast< int >(val3);
6065 if (obj3) {
6066 ecode4 = SWIG_AsVal_int(obj3, &val4);
6067 if (!SWIG_IsOK(ecode4)) {
6068 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
6069 }
6070 arg4 = static_cast< int >(val4);
6071 }
6072 {
6073 if (!wxPyCheckForApp()) SWIG_fail;
6074 PyThreadState* __tstate = wxPyBeginAllowThreads();
6075 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
6076 wxPyEndAllowThreads(__tstate);
6077 if (PyErr_Occurred()) SWIG_fail;
6078 }
6079 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6080 return resultobj;
6081 fail:
6082 return NULL;
6083 }
6084
6085
6086 SWIGINTERN PyObject *_wrap_Bitmap_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6087 PyObject *resultobj = 0;
6088 wxBitmap *arg1 = (wxBitmap *) 0 ;
6089 bool result;
6090 void *argp1 = 0 ;
6091 int res1 = 0 ;
6092 PyObject *swig_obj[1] ;
6093
6094 if (!args) SWIG_fail;
6095 swig_obj[0] = args;
6096 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6097 if (!SWIG_IsOK(res1)) {
6098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_IsOk" "', expected argument " "1"" of type '" "wxBitmap *""'");
6099 }
6100 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6101 {
6102 result = (bool)(arg1)->IsOk();
6103 if (PyErr_Occurred()) SWIG_fail;
6104 }
6105 {
6106 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6107 }
6108 return resultobj;
6109 fail:
6110 return NULL;
6111 }
6112
6113
6114 SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6115 PyObject *resultobj = 0;
6116 wxBitmap *arg1 = (wxBitmap *) 0 ;
6117 int result;
6118 void *argp1 = 0 ;
6119 int res1 = 0 ;
6120 PyObject *swig_obj[1] ;
6121
6122 if (!args) SWIG_fail;
6123 swig_obj[0] = args;
6124 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6125 if (!SWIG_IsOK(res1)) {
6126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6127 }
6128 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6129 {
6130 result = (int)(arg1)->GetWidth();
6131 if (PyErr_Occurred()) SWIG_fail;
6132 }
6133 resultobj = SWIG_From_int(static_cast< int >(result));
6134 return resultobj;
6135 fail:
6136 return NULL;
6137 }
6138
6139
6140 SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6141 PyObject *resultobj = 0;
6142 wxBitmap *arg1 = (wxBitmap *) 0 ;
6143 int result;
6144 void *argp1 = 0 ;
6145 int res1 = 0 ;
6146 PyObject *swig_obj[1] ;
6147
6148 if (!args) SWIG_fail;
6149 swig_obj[0] = args;
6150 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6151 if (!SWIG_IsOK(res1)) {
6152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6153 }
6154 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6155 {
6156 result = (int)(arg1)->GetHeight();
6157 if (PyErr_Occurred()) SWIG_fail;
6158 }
6159 resultobj = SWIG_From_int(static_cast< int >(result));
6160 return resultobj;
6161 fail:
6162 return NULL;
6163 }
6164
6165
6166 SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6167 PyObject *resultobj = 0;
6168 wxBitmap *arg1 = (wxBitmap *) 0 ;
6169 int result;
6170 void *argp1 = 0 ;
6171 int res1 = 0 ;
6172 PyObject *swig_obj[1] ;
6173
6174 if (!args) SWIG_fail;
6175 swig_obj[0] = args;
6176 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6177 if (!SWIG_IsOK(res1)) {
6178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6179 }
6180 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6181 {
6182 result = (int)(arg1)->GetDepth();
6183 if (PyErr_Occurred()) SWIG_fail;
6184 }
6185 resultobj = SWIG_From_int(static_cast< int >(result));
6186 return resultobj;
6187 fail:
6188 return NULL;
6189 }
6190
6191
6192 SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6193 PyObject *resultobj = 0;
6194 wxBitmap *arg1 = (wxBitmap *) 0 ;
6195 wxSize result;
6196 void *argp1 = 0 ;
6197 int res1 = 0 ;
6198 PyObject *swig_obj[1] ;
6199
6200 if (!args) SWIG_fail;
6201 swig_obj[0] = args;
6202 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6203 if (!SWIG_IsOK(res1)) {
6204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6205 }
6206 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6207 {
6208 result = wxBitmap_GetSize(arg1);
6209 if (PyErr_Occurred()) SWIG_fail;
6210 }
6211 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6212 return resultobj;
6213 fail:
6214 return NULL;
6215 }
6216
6217
6218 SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6219 PyObject *resultobj = 0;
6220 wxBitmap *arg1 = (wxBitmap *) 0 ;
6221 SwigValueWrapper<wxImage > result;
6222 void *argp1 = 0 ;
6223 int res1 = 0 ;
6224 PyObject *swig_obj[1] ;
6225
6226 if (!args) SWIG_fail;
6227 swig_obj[0] = args;
6228 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6229 if (!SWIG_IsOK(res1)) {
6230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6231 }
6232 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6233 {
6234 result = ((wxBitmap const *)arg1)->ConvertToImage();
6235 if (PyErr_Occurred()) SWIG_fail;
6236 }
6237 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
6238 return resultobj;
6239 fail:
6240 return NULL;
6241 }
6242
6243
6244 SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6245 PyObject *resultobj = 0;
6246 wxBitmap *arg1 = (wxBitmap *) 0 ;
6247 wxMask *result = 0 ;
6248 void *argp1 = 0 ;
6249 int res1 = 0 ;
6250 PyObject *swig_obj[1] ;
6251
6252 if (!args) SWIG_fail;
6253 swig_obj[0] = args;
6254 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6255 if (!SWIG_IsOK(res1)) {
6256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6257 }
6258 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6259 {
6260 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
6261 if (PyErr_Occurred()) SWIG_fail;
6262 }
6263 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
6264 return resultobj;
6265 fail:
6266 return NULL;
6267 }
6268
6269
6270 SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6271 PyObject *resultobj = 0;
6272 wxBitmap *arg1 = (wxBitmap *) 0 ;
6273 wxMask *arg2 = (wxMask *) 0 ;
6274 void *argp1 = 0 ;
6275 int res1 = 0 ;
6276 int res2 = 0 ;
6277 PyObject * obj0 = 0 ;
6278 PyObject * obj1 = 0 ;
6279 char * kwnames[] = {
6280 (char *) "self",(char *) "mask", NULL
6281 };
6282
6283 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
6284 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6285 if (!SWIG_IsOK(res1)) {
6286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
6287 }
6288 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6289 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6290 if (!SWIG_IsOK(res2)) {
6291 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
6292 }
6293 {
6294 (arg1)->SetMask(arg2);
6295 if (PyErr_Occurred()) SWIG_fail;
6296 }
6297 resultobj = SWIG_Py_Void();
6298 return resultobj;
6299 fail:
6300 return NULL;
6301 }
6302
6303
6304 SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6305 PyObject *resultobj = 0;
6306 wxBitmap *arg1 = (wxBitmap *) 0 ;
6307 wxColour *arg2 = 0 ;
6308 void *argp1 = 0 ;
6309 int res1 = 0 ;
6310 wxColour temp2 ;
6311 PyObject * obj0 = 0 ;
6312 PyObject * obj1 = 0 ;
6313 char * kwnames[] = {
6314 (char *) "self",(char *) "colour", NULL
6315 };
6316
6317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
6318 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6319 if (!SWIG_IsOK(res1)) {
6320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
6321 }
6322 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6323 {
6324 arg2 = &temp2;
6325 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6326 }
6327 {
6328 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
6329 if (PyErr_Occurred()) SWIG_fail;
6330 }
6331 resultobj = SWIG_Py_Void();
6332 return resultobj;
6333 fail:
6334 return NULL;
6335 }
6336
6337
6338 SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6339 PyObject *resultobj = 0;
6340 wxBitmap *arg1 = (wxBitmap *) 0 ;
6341 wxRect *arg2 = 0 ;
6342 SwigValueWrapper<wxBitmap > result;
6343 void *argp1 = 0 ;
6344 int res1 = 0 ;
6345 wxRect temp2 ;
6346 PyObject * obj0 = 0 ;
6347 PyObject * obj1 = 0 ;
6348 char * kwnames[] = {
6349 (char *) "self",(char *) "rect", NULL
6350 };
6351
6352 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6353 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6354 if (!SWIG_IsOK(res1)) {
6355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6356 }
6357 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6358 {
6359 arg2 = &temp2;
6360 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6361 }
6362 {
6363 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
6364 if (PyErr_Occurred()) SWIG_fail;
6365 }
6366 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6367 return resultobj;
6368 fail:
6369 return NULL;
6370 }
6371
6372
6373 SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6374 PyObject *resultobj = 0;
6375 wxBitmap *arg1 = (wxBitmap *) 0 ;
6376 wxString *arg2 = 0 ;
6377 wxBitmapType arg3 ;
6378 wxPalette *arg4 = (wxPalette *) NULL ;
6379 bool result;
6380 void *argp1 = 0 ;
6381 int res1 = 0 ;
6382 bool temp2 = false ;
6383 int val3 ;
6384 int ecode3 = 0 ;
6385 void *argp4 = 0 ;
6386 int res4 = 0 ;
6387 PyObject * obj0 = 0 ;
6388 PyObject * obj1 = 0 ;
6389 PyObject * obj2 = 0 ;
6390 PyObject * obj3 = 0 ;
6391 char * kwnames[] = {
6392 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
6393 };
6394
6395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6397 if (!SWIG_IsOK(res1)) {
6398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6399 }
6400 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6401 {
6402 arg2 = wxString_in_helper(obj1);
6403 if (arg2 == NULL) SWIG_fail;
6404 temp2 = true;
6405 }
6406 ecode3 = SWIG_AsVal_int(obj2, &val3);
6407 if (!SWIG_IsOK(ecode3)) {
6408 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6409 }
6410 arg3 = static_cast< wxBitmapType >(val3);
6411 if (obj3) {
6412 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
6413 if (!SWIG_IsOK(res4)) {
6414 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
6415 }
6416 arg4 = reinterpret_cast< wxPalette * >(argp4);
6417 }
6418 {
6419 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
6420 if (PyErr_Occurred()) SWIG_fail;
6421 }
6422 {
6423 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6424 }
6425 {
6426 if (temp2)
6427 delete arg2;
6428 }
6429 return resultobj;
6430 fail:
6431 {
6432 if (temp2)
6433 delete arg2;
6434 }
6435 return NULL;
6436 }
6437
6438
6439 SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6440 PyObject *resultobj = 0;
6441 wxBitmap *arg1 = (wxBitmap *) 0 ;
6442 wxString *arg2 = 0 ;
6443 wxBitmapType arg3 ;
6444 bool result;
6445 void *argp1 = 0 ;
6446 int res1 = 0 ;
6447 bool temp2 = false ;
6448 int val3 ;
6449 int ecode3 = 0 ;
6450 PyObject * obj0 = 0 ;
6451 PyObject * obj1 = 0 ;
6452 PyObject * obj2 = 0 ;
6453 char * kwnames[] = {
6454 (char *) "self",(char *) "name",(char *) "type", NULL
6455 };
6456
6457 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6458 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6459 if (!SWIG_IsOK(res1)) {
6460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6461 }
6462 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6463 {
6464 arg2 = wxString_in_helper(obj1);
6465 if (arg2 == NULL) SWIG_fail;
6466 temp2 = true;
6467 }
6468 ecode3 = SWIG_AsVal_int(obj2, &val3);
6469 if (!SWIG_IsOK(ecode3)) {
6470 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6471 }
6472 arg3 = static_cast< wxBitmapType >(val3);
6473 {
6474 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
6475 if (PyErr_Occurred()) SWIG_fail;
6476 }
6477 {
6478 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6479 }
6480 {
6481 if (temp2)
6482 delete arg2;
6483 }
6484 return resultobj;
6485 fail:
6486 {
6487 if (temp2)
6488 delete arg2;
6489 }
6490 return NULL;
6491 }
6492
6493
6494 SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6495 PyObject *resultobj = 0;
6496 wxBitmap *arg1 = (wxBitmap *) 0 ;
6497 wxPalette *result = 0 ;
6498 void *argp1 = 0 ;
6499 int res1 = 0 ;
6500 PyObject *swig_obj[1] ;
6501
6502 if (!args) SWIG_fail;
6503 swig_obj[0] = args;
6504 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6505 if (!SWIG_IsOK(res1)) {
6506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6507 }
6508 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6509 {
6510 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
6511 if (PyErr_Occurred()) SWIG_fail;
6512 }
6513 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6514 return resultobj;
6515 fail:
6516 return NULL;
6517 }
6518
6519
6520 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6521 PyObject *resultobj = 0;
6522 wxBitmap *arg1 = (wxBitmap *) 0 ;
6523 wxIcon *arg2 = 0 ;
6524 bool result;
6525 void *argp1 = 0 ;
6526 int res1 = 0 ;
6527 void *argp2 = 0 ;
6528 int res2 = 0 ;
6529 PyObject * obj0 = 0 ;
6530 PyObject * obj1 = 0 ;
6531 char * kwnames[] = {
6532 (char *) "self",(char *) "icon", NULL
6533 };
6534
6535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6536 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6537 if (!SWIG_IsOK(res1)) {
6538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6539 }
6540 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6541 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6542 if (!SWIG_IsOK(res2)) {
6543 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6544 }
6545 if (!argp2) {
6546 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6547 }
6548 arg2 = reinterpret_cast< wxIcon * >(argp2);
6549 {
6550 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
6551 if (PyErr_Occurred()) SWIG_fail;
6552 }
6553 {
6554 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6555 }
6556 return resultobj;
6557 fail:
6558 return NULL;
6559 }
6560
6561
6562 SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6563 PyObject *resultobj = 0;
6564 wxBitmap *arg1 = (wxBitmap *) 0 ;
6565 int arg2 ;
6566 void *argp1 = 0 ;
6567 int res1 = 0 ;
6568 int val2 ;
6569 int ecode2 = 0 ;
6570 PyObject * obj0 = 0 ;
6571 PyObject * obj1 = 0 ;
6572 char * kwnames[] = {
6573 (char *) "self",(char *) "height", NULL
6574 };
6575
6576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6577 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6578 if (!SWIG_IsOK(res1)) {
6579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6580 }
6581 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6582 ecode2 = SWIG_AsVal_int(obj1, &val2);
6583 if (!SWIG_IsOK(ecode2)) {
6584 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6585 }
6586 arg2 = static_cast< int >(val2);
6587 {
6588 (arg1)->SetHeight(arg2);
6589 if (PyErr_Occurred()) SWIG_fail;
6590 }
6591 resultobj = SWIG_Py_Void();
6592 return resultobj;
6593 fail:
6594 return NULL;
6595 }
6596
6597
6598 SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6599 PyObject *resultobj = 0;
6600 wxBitmap *arg1 = (wxBitmap *) 0 ;
6601 int arg2 ;
6602 void *argp1 = 0 ;
6603 int res1 = 0 ;
6604 int val2 ;
6605 int ecode2 = 0 ;
6606 PyObject * obj0 = 0 ;
6607 PyObject * obj1 = 0 ;
6608 char * kwnames[] = {
6609 (char *) "self",(char *) "width", NULL
6610 };
6611
6612 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6613 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6614 if (!SWIG_IsOK(res1)) {
6615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6616 }
6617 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6618 ecode2 = SWIG_AsVal_int(obj1, &val2);
6619 if (!SWIG_IsOK(ecode2)) {
6620 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6621 }
6622 arg2 = static_cast< int >(val2);
6623 {
6624 (arg1)->SetWidth(arg2);
6625 if (PyErr_Occurred()) SWIG_fail;
6626 }
6627 resultobj = SWIG_Py_Void();
6628 return resultobj;
6629 fail:
6630 return NULL;
6631 }
6632
6633
6634 SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6635 PyObject *resultobj = 0;
6636 wxBitmap *arg1 = (wxBitmap *) 0 ;
6637 int arg2 ;
6638 void *argp1 = 0 ;
6639 int res1 = 0 ;
6640 int val2 ;
6641 int ecode2 = 0 ;
6642 PyObject * obj0 = 0 ;
6643 PyObject * obj1 = 0 ;
6644 char * kwnames[] = {
6645 (char *) "self",(char *) "depth", NULL
6646 };
6647
6648 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6649 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6650 if (!SWIG_IsOK(res1)) {
6651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6652 }
6653 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6654 ecode2 = SWIG_AsVal_int(obj1, &val2);
6655 if (!SWIG_IsOK(ecode2)) {
6656 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6657 }
6658 arg2 = static_cast< int >(val2);
6659 {
6660 (arg1)->SetDepth(arg2);
6661 if (PyErr_Occurred()) SWIG_fail;
6662 }
6663 resultobj = SWIG_Py_Void();
6664 return resultobj;
6665 fail:
6666 return NULL;
6667 }
6668
6669
6670 SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6671 PyObject *resultobj = 0;
6672 wxBitmap *arg1 = (wxBitmap *) 0 ;
6673 wxSize *arg2 = 0 ;
6674 void *argp1 = 0 ;
6675 int res1 = 0 ;
6676 wxSize temp2 ;
6677 PyObject * obj0 = 0 ;
6678 PyObject * obj1 = 0 ;
6679 char * kwnames[] = {
6680 (char *) "self",(char *) "size", NULL
6681 };
6682
6683 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
6684 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6685 if (!SWIG_IsOK(res1)) {
6686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6687 }
6688 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6689 {
6690 arg2 = &temp2;
6691 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6692 }
6693 {
6694 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
6695 if (PyErr_Occurred()) SWIG_fail;
6696 }
6697 resultobj = SWIG_Py_Void();
6698 return resultobj;
6699 fail:
6700 return NULL;
6701 }
6702
6703
6704 SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6705 PyObject *resultobj = 0;
6706 wxBitmap *arg1 = (wxBitmap *) 0 ;
6707 wxBitmap *arg2 = (wxBitmap *) 0 ;
6708 bool result;
6709 void *argp1 = 0 ;
6710 int res1 = 0 ;
6711 void *argp2 = 0 ;
6712 int res2 = 0 ;
6713 PyObject * obj0 = 0 ;
6714 PyObject * obj1 = 0 ;
6715 char * kwnames[] = {
6716 (char *) "self",(char *) "other", NULL
6717 };
6718
6719 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
6720 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6721 if (!SWIG_IsOK(res1)) {
6722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6723 }
6724 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6725 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6726 if (!SWIG_IsOK(res2)) {
6727 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6728 }
6729 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6730 {
6731 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
6732 if (PyErr_Occurred()) SWIG_fail;
6733 }
6734 {
6735 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6736 }
6737 return resultobj;
6738 fail:
6739 return NULL;
6740 }
6741
6742
6743 SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6744 PyObject *resultobj = 0;
6745 wxBitmap *arg1 = (wxBitmap *) 0 ;
6746 wxBitmap *arg2 = (wxBitmap *) 0 ;
6747 bool result;
6748 void *argp1 = 0 ;
6749 int res1 = 0 ;
6750 void *argp2 = 0 ;
6751 int res2 = 0 ;
6752 PyObject * obj0 = 0 ;
6753 PyObject * obj1 = 0 ;
6754 char * kwnames[] = {
6755 (char *) "self",(char *) "other", NULL
6756 };
6757
6758 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
6759 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6760 if (!SWIG_IsOK(res1)) {
6761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6762 }
6763 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6764 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6765 if (!SWIG_IsOK(res2)) {
6766 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6767 }
6768 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6769 {
6770 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
6771 if (PyErr_Occurred()) SWIG_fail;
6772 }
6773 {
6774 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6775 }
6776 return resultobj;
6777 fail:
6778 return NULL;
6779 }
6780
6781
6782 SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6783 PyObject *obj;
6784 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6785 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
6786 return SWIG_Py_Void();
6787 }
6788
6789 SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6790 return SWIG_Python_InitShadowInstance(args);
6791 }
6792
6793 SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6794 PyObject *resultobj = 0;
6795 int arg1 ;
6796 int arg2 ;
6797 buffer arg3 ;
6798 int arg4 ;
6799 buffer arg5 ;
6800 int arg6 ;
6801 wxBitmap *result = 0 ;
6802 int val1 ;
6803 int ecode1 = 0 ;
6804 int val2 ;
6805 int ecode2 = 0 ;
6806 Py_ssize_t temp3 ;
6807 Py_ssize_t temp5 ;
6808 PyObject * obj0 = 0 ;
6809 PyObject * obj1 = 0 ;
6810 PyObject * obj2 = 0 ;
6811 PyObject * obj3 = 0 ;
6812 char * kwnames[] = {
6813 (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
6814 };
6815
6816 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6817 ecode1 = SWIG_AsVal_int(obj0, &val1);
6818 if (!SWIG_IsOK(ecode1)) {
6819 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'");
6820 }
6821 arg1 = static_cast< int >(val1);
6822 ecode2 = SWIG_AsVal_int(obj1, &val2);
6823 if (!SWIG_IsOK(ecode2)) {
6824 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'");
6825 }
6826 arg2 = static_cast< int >(val2);
6827 {
6828 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
6829 arg4 = (int)temp3;
6830 }
6831 {
6832 if (obj3 != Py_None) {
6833 if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail;
6834 arg6 = (int)temp5;
6835 }
6836 }
6837 {
6838 result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6);
6839 if (PyErr_Occurred()) SWIG_fail;
6840 }
6841 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6842 return resultobj;
6843 fail:
6844 return NULL;
6845 }
6846
6847
6848 SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6849 PyObject *resultobj = 0;
6850 int arg1 ;
6851 int arg2 ;
6852 buffer arg3 ;
6853 int arg4 ;
6854 wxBitmap *result = 0 ;
6855 int val1 ;
6856 int ecode1 = 0 ;
6857 int val2 ;
6858 int ecode2 = 0 ;
6859 Py_ssize_t temp3 ;
6860 PyObject * obj0 = 0 ;
6861 PyObject * obj1 = 0 ;
6862 PyObject * obj2 = 0 ;
6863 char * kwnames[] = {
6864 (char *) "width",(char *) "height",(char *) "data", NULL
6865 };
6866
6867 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6868 ecode1 = SWIG_AsVal_int(obj0, &val1);
6869 if (!SWIG_IsOK(ecode1)) {
6870 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'");
6871 }
6872 arg1 = static_cast< int >(val1);
6873 ecode2 = SWIG_AsVal_int(obj1, &val2);
6874 if (!SWIG_IsOK(ecode2)) {
6875 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'");
6876 }
6877 arg2 = static_cast< int >(val2);
6878 {
6879 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
6880 arg4 = (int)temp3;
6881 }
6882 {
6883 result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4);
6884 if (PyErr_Occurred()) SWIG_fail;
6885 }
6886 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6887 return resultobj;
6888 fail:
6889 return NULL;
6890 }
6891
6892
6893 SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6894 PyObject *resultobj = 0;
6895 int arg1 ;
6896 int arg2 ;
6897 buffer arg3 ;
6898 int arg4 ;
6899 wxBitmap *result = 0 ;
6900 int val1 ;
6901 int ecode1 = 0 ;
6902 int val2 ;
6903 int ecode2 = 0 ;
6904 Py_ssize_t temp3 ;
6905 PyObject * obj0 = 0 ;
6906 PyObject * obj1 = 0 ;
6907 PyObject * obj2 = 0 ;
6908 char * kwnames[] = {
6909 (char *) "width",(char *) "height",(char *) "data", NULL
6910 };
6911
6912 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6913 ecode1 = SWIG_AsVal_int(obj0, &val1);
6914 if (!SWIG_IsOK(ecode1)) {
6915 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'");
6916 }
6917 arg1 = static_cast< int >(val1);
6918 ecode2 = SWIG_AsVal_int(obj1, &val2);
6919 if (!SWIG_IsOK(ecode2)) {
6920 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'");
6921 }
6922 arg2 = static_cast< int >(val2);
6923 {
6924 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
6925 arg4 = (int)temp3;
6926 }
6927 {
6928 result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4);
6929 if (PyErr_Occurred()) SWIG_fail;
6930 }
6931 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6932 return resultobj;
6933 fail:
6934 return NULL;
6935 }
6936
6937
6938 SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6939 PyObject *resultobj = 0;
6940 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
6941 wxPoint result;
6942 void *argp1 = 0 ;
6943 int res1 = 0 ;
6944 PyObject *swig_obj[1] ;
6945
6946 if (!args) SWIG_fail;
6947 swig_obj[0] = args;
6948 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
6949 if (!SWIG_IsOK(res1)) {
6950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
6951 }
6952 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
6953 {
6954 result = ((wxPixelDataBase const *)arg1)->GetOrigin();
6955 if (PyErr_Occurred()) SWIG_fail;
6956 }
6957 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
6958 return resultobj;
6959 fail:
6960 return NULL;
6961 }
6962
6963
6964 SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6965 PyObject *resultobj = 0;
6966 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
6967 int result;
6968 void *argp1 = 0 ;
6969 int res1 = 0 ;
6970 PyObject *swig_obj[1] ;
6971
6972 if (!args) SWIG_fail;
6973 swig_obj[0] = args;
6974 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
6975 if (!SWIG_IsOK(res1)) {
6976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
6977 }
6978 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
6979 {
6980 result = (int)((wxPixelDataBase const *)arg1)->GetWidth();
6981 if (PyErr_Occurred()) SWIG_fail;
6982 }
6983 resultobj = SWIG_From_int(static_cast< int >(result));
6984 return resultobj;
6985 fail:
6986 return NULL;
6987 }
6988
6989
6990 SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6991 PyObject *resultobj = 0;
6992 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
6993 int result;
6994 void *argp1 = 0 ;
6995 int res1 = 0 ;
6996 PyObject *swig_obj[1] ;
6997
6998 if (!args) SWIG_fail;
6999 swig_obj[0] = args;
7000 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7001 if (!SWIG_IsOK(res1)) {
7002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7003 }
7004 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7005 {
7006 result = (int)((wxPixelDataBase const *)arg1)->GetHeight();
7007 if (PyErr_Occurred()) SWIG_fail;
7008 }
7009 resultobj = SWIG_From_int(static_cast< int >(result));
7010 return resultobj;
7011 fail:
7012 return NULL;
7013 }
7014
7015
7016 SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7017 PyObject *resultobj = 0;
7018 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7019 wxSize result;
7020 void *argp1 = 0 ;
7021 int res1 = 0 ;
7022 PyObject *swig_obj[1] ;
7023
7024 if (!args) SWIG_fail;
7025 swig_obj[0] = args;
7026 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7027 if (!SWIG_IsOK(res1)) {
7028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7029 }
7030 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7031 {
7032 result = ((wxPixelDataBase const *)arg1)->GetSize();
7033 if (PyErr_Occurred()) SWIG_fail;
7034 }
7035 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
7036 return resultobj;
7037 fail:
7038 return NULL;
7039 }
7040
7041
7042 SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7043 PyObject *resultobj = 0;
7044 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7045 int result;
7046 void *argp1 = 0 ;
7047 int res1 = 0 ;
7048 PyObject *swig_obj[1] ;
7049
7050 if (!args) SWIG_fail;
7051 swig_obj[0] = args;
7052 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7053 if (!SWIG_IsOK(res1)) {
7054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7055 }
7056 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7057 {
7058 result = (int)((wxPixelDataBase const *)arg1)->GetRowStride();
7059 if (PyErr_Occurred()) SWIG_fail;
7060 }
7061 resultobj = SWIG_From_int(static_cast< int >(result));
7062 return resultobj;
7063 fail:
7064 return NULL;
7065 }
7066
7067
7068 SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7069 PyObject *obj;
7070 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7071 SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj));
7072 return SWIG_Py_Void();
7073 }
7074
7075 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7076 PyObject *resultobj = 0;
7077 wxBitmap *arg1 = 0 ;
7078 wxNativePixelData *result = 0 ;
7079 void *argp1 = 0 ;
7080 int res1 = 0 ;
7081
7082 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7083 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7084 if (!SWIG_IsOK(res1)) {
7085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7086 }
7087 if (!argp1) {
7088 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7089 }
7090 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7091 {
7092 result = (wxNativePixelData *)new wxNativePixelData(*arg1);
7093 if (PyErr_Occurred()) SWIG_fail;
7094 }
7095 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7096 return resultobj;
7097 fail:
7098 return NULL;
7099 }
7100
7101
7102 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7103 PyObject *resultobj = 0;
7104 wxBitmap *arg1 = 0 ;
7105 wxRect *arg2 = 0 ;
7106 wxNativePixelData *result = 0 ;
7107 void *argp1 = 0 ;
7108 int res1 = 0 ;
7109 wxRect temp2 ;
7110
7111 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7112 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7113 if (!SWIG_IsOK(res1)) {
7114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7115 }
7116 if (!argp1) {
7117 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7118 }
7119 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7120 {
7121 arg2 = &temp2;
7122 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7123 }
7124 {
7125 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2);
7126 if (PyErr_Occurred()) SWIG_fail;
7127 }
7128 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7129 return resultobj;
7130 fail:
7131 return NULL;
7132 }
7133
7134
7135 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7136 PyObject *resultobj = 0;
7137 wxBitmap *arg1 = 0 ;
7138 wxPoint *arg2 = 0 ;
7139 wxSize *arg3 = 0 ;
7140 wxNativePixelData *result = 0 ;
7141 void *argp1 = 0 ;
7142 int res1 = 0 ;
7143 wxPoint temp2 ;
7144 wxSize temp3 ;
7145
7146 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7147 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7148 if (!SWIG_IsOK(res1)) {
7149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7150 }
7151 if (!argp1) {
7152 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7153 }
7154 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7155 {
7156 arg2 = &temp2;
7157 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7158 }
7159 {
7160 arg3 = &temp3;
7161 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7162 }
7163 {
7164 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7165 if (PyErr_Occurred()) SWIG_fail;
7166 }
7167 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7168 return resultobj;
7169 fail:
7170 return NULL;
7171 }
7172
7173
7174 SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) {
7175 int argc;
7176 PyObject *argv[4];
7177
7178 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail;
7179 --argc;
7180 if (argc == 1) {
7181 return _wrap_new_NativePixelData__SWIG_0(self, argc, argv);
7182 }
7183 if (argc == 2) {
7184 return _wrap_new_NativePixelData__SWIG_1(self, argc, argv);
7185 }
7186 if (argc == 3) {
7187 return _wrap_new_NativePixelData__SWIG_2(self, argc, argv);
7188 }
7189
7190 fail:
7191 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'");
7192 return NULL;
7193 }
7194
7195
7196 SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7197 PyObject *resultobj = 0;
7198 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7199 void *argp1 = 0 ;
7200 int res1 = 0 ;
7201 PyObject *swig_obj[1] ;
7202
7203 if (!args) SWIG_fail;
7204 swig_obj[0] = args;
7205 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 );
7206 if (!SWIG_IsOK(res1)) {
7207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7208 }
7209 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7210 {
7211 delete arg1;
7212
7213 if (PyErr_Occurred()) SWIG_fail;
7214 }
7215 resultobj = SWIG_Py_Void();
7216 return resultobj;
7217 fail:
7218 return NULL;
7219 }
7220
7221
7222 SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7223 PyObject *resultobj = 0;
7224 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7225 wxNativePixelData_Accessor result;
7226 void *argp1 = 0 ;
7227 int res1 = 0 ;
7228 PyObject *swig_obj[1] ;
7229
7230 if (!args) SWIG_fail;
7231 swig_obj[0] = args;
7232 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7233 if (!SWIG_IsOK(res1)) {
7234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'");
7235 }
7236 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7237 {
7238 result = ((wxNativePixelData const *)arg1)->GetPixels();
7239 if (PyErr_Occurred()) SWIG_fail;
7240 }
7241 resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 );
7242 return resultobj;
7243 fail:
7244 return NULL;
7245 }
7246
7247
7248 SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7249 PyObject *resultobj = 0;
7250 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7251 void *argp1 = 0 ;
7252 int res1 = 0 ;
7253 PyObject *swig_obj[1] ;
7254
7255 if (!args) SWIG_fail;
7256 swig_obj[0] = args;
7257 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7258 if (!SWIG_IsOK(res1)) {
7259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7260 }
7261 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7262 {
7263 (arg1)->UseAlpha();
7264 if (PyErr_Occurred()) SWIG_fail;
7265 }
7266 resultobj = SWIG_Py_Void();
7267 return resultobj;
7268 fail:
7269 return NULL;
7270 }
7271
7272
7273 SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7274 PyObject *resultobj = 0;
7275 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7276 bool result;
7277 void *argp1 = 0 ;
7278 int res1 = 0 ;
7279 PyObject *swig_obj[1] ;
7280
7281 if (!args) SWIG_fail;
7282 swig_obj[0] = args;
7283 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7284 if (!SWIG_IsOK(res1)) {
7285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7286 }
7287 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7288 {
7289 result = (bool)wxNativePixelData___nonzero__(arg1);
7290 if (PyErr_Occurred()) SWIG_fail;
7291 }
7292 {
7293 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7294 }
7295 return resultobj;
7296 fail:
7297 return NULL;
7298 }
7299
7300
7301 SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7302 PyObject *obj;
7303 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7304 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj));
7305 return SWIG_Py_Void();
7306 }
7307
7308 SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7309 return SWIG_Python_InitShadowInstance(args);
7310 }
7311
7312 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7313 PyObject *resultobj = 0;
7314 wxNativePixelData *arg1 = 0 ;
7315 wxNativePixelData_Accessor *result = 0 ;
7316 void *argp1 = 0 ;
7317 int res1 = 0 ;
7318
7319 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7320 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 );
7321 if (!SWIG_IsOK(res1)) {
7322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7323 }
7324 if (!argp1) {
7325 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7326 }
7327 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7328 {
7329 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1);
7330 if (PyErr_Occurred()) SWIG_fail;
7331 }
7332 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7333 return resultobj;
7334 fail:
7335 return NULL;
7336 }
7337
7338
7339 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7340 PyObject *resultobj = 0;
7341 wxBitmap *arg1 = 0 ;
7342 wxNativePixelData *arg2 = 0 ;
7343 wxNativePixelData_Accessor *result = 0 ;
7344 void *argp1 = 0 ;
7345 int res1 = 0 ;
7346 void *argp2 = 0 ;
7347 int res2 = 0 ;
7348
7349 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7350 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7351 if (!SWIG_IsOK(res1)) {
7352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7353 }
7354 if (!argp1) {
7355 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7356 }
7357 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7358 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 );
7359 if (!SWIG_IsOK(res2)) {
7360 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7361 }
7362 if (!argp2) {
7363 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7364 }
7365 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7366 {
7367 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2);
7368 if (PyErr_Occurred()) SWIG_fail;
7369 }
7370 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7371 return resultobj;
7372 fail:
7373 return NULL;
7374 }
7375
7376
7377 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
7378 PyObject *resultobj = 0;
7379 wxNativePixelData_Accessor *result = 0 ;
7380
7381 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
7382 {
7383 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor();
7384 if (PyErr_Occurred()) SWIG_fail;
7385 }
7386 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7387 return resultobj;
7388 fail:
7389 return NULL;
7390 }
7391
7392
7393 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) {
7394 int argc;
7395 PyObject *argv[3];
7396
7397 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail;
7398 --argc;
7399 if (argc == 0) {
7400 return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv);
7401 }
7402 if (argc == 1) {
7403 return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv);
7404 }
7405 if (argc == 2) {
7406 return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv);
7407 }
7408
7409 fail:
7410 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'");
7411 return NULL;
7412 }
7413
7414
7415 SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7416 PyObject *resultobj = 0;
7417 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7418 void *argp1 = 0 ;
7419 int res1 = 0 ;
7420 PyObject *swig_obj[1] ;
7421
7422 if (!args) SWIG_fail;
7423 swig_obj[0] = args;
7424 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
7425 if (!SWIG_IsOK(res1)) {
7426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7427 }
7428 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7429 {
7430 delete arg1;
7431
7432 if (PyErr_Occurred()) SWIG_fail;
7433 }
7434 resultobj = SWIG_Py_Void();
7435 return resultobj;
7436 fail:
7437 return NULL;
7438 }
7439
7440
7441 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7442 PyObject *resultobj = 0;
7443 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7444 wxNativePixelData *arg2 = 0 ;
7445 void *argp1 = 0 ;
7446 int res1 = 0 ;
7447 void *argp2 = 0 ;
7448 int res2 = 0 ;
7449 PyObject * obj0 = 0 ;
7450 PyObject * obj1 = 0 ;
7451 char * kwnames[] = {
7452 (char *) "self",(char *) "data", NULL
7453 };
7454
7455 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
7456 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7457 if (!SWIG_IsOK(res1)) {
7458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7459 }
7460 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7461 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7462 if (!SWIG_IsOK(res2)) {
7463 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7464 }
7465 if (!argp2) {
7466 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7467 }
7468 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7469 {
7470 (arg1)->Reset((wxNativePixelData const &)*arg2);
7471 if (PyErr_Occurred()) SWIG_fail;
7472 }
7473 resultobj = SWIG_Py_Void();
7474 return resultobj;
7475 fail:
7476 return NULL;
7477 }
7478
7479
7480 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7481 PyObject *resultobj = 0;
7482 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7483 bool result;
7484 void *argp1 = 0 ;
7485 int res1 = 0 ;
7486 PyObject *swig_obj[1] ;
7487
7488 if (!args) SWIG_fail;
7489 swig_obj[0] = args;
7490 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7491 if (!SWIG_IsOK(res1)) {
7492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'");
7493 }
7494 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7495 {
7496 result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk();
7497 if (PyErr_Occurred()) SWIG_fail;
7498 }
7499 {
7500 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7501 }
7502 return resultobj;
7503 fail:
7504 return NULL;
7505 }
7506
7507
7508 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7509 PyObject *resultobj = 0;
7510 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7511 void *argp1 = 0 ;
7512 int res1 = 0 ;
7513 PyObject *swig_obj[1] ;
7514
7515 if (!args) SWIG_fail;
7516 swig_obj[0] = args;
7517 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7518 if (!SWIG_IsOK(res1)) {
7519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7520 }
7521 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7522 {
7523 wxNativePixelData_Accessor_nextPixel(arg1);
7524 if (PyErr_Occurred()) SWIG_fail;
7525 }
7526 resultobj = SWIG_Py_Void();
7527 return resultobj;
7528 fail:
7529 return NULL;
7530 }
7531
7532
7533 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7534 PyObject *resultobj = 0;
7535 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7536 wxNativePixelData *arg2 = 0 ;
7537 int arg3 ;
7538 int arg4 ;
7539 void *argp1 = 0 ;
7540 int res1 = 0 ;
7541 void *argp2 = 0 ;
7542 int res2 = 0 ;
7543 int val3 ;
7544 int ecode3 = 0 ;
7545 int val4 ;
7546 int ecode4 = 0 ;
7547 PyObject * obj0 = 0 ;
7548 PyObject * obj1 = 0 ;
7549 PyObject * obj2 = 0 ;
7550 PyObject * obj3 = 0 ;
7551 char * kwnames[] = {
7552 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7553 };
7554
7555 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7556 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7557 if (!SWIG_IsOK(res1)) {
7558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7559 }
7560 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7561 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7562 if (!SWIG_IsOK(res2)) {
7563 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7564 }
7565 if (!argp2) {
7566 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7567 }
7568 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7569 ecode3 = SWIG_AsVal_int(obj2, &val3);
7570 if (!SWIG_IsOK(ecode3)) {
7571 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
7572 }
7573 arg3 = static_cast< int >(val3);
7574 ecode4 = SWIG_AsVal_int(obj3, &val4);
7575 if (!SWIG_IsOK(ecode4)) {
7576 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
7577 }
7578 arg4 = static_cast< int >(val4);
7579 {
7580 (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4);
7581 if (PyErr_Occurred()) SWIG_fail;
7582 }
7583 resultobj = SWIG_Py_Void();
7584 return resultobj;
7585 fail:
7586 return NULL;
7587 }
7588
7589
7590 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7591 PyObject *resultobj = 0;
7592 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7593 wxNativePixelData *arg2 = 0 ;
7594 int arg3 ;
7595 void *argp1 = 0 ;
7596 int res1 = 0 ;
7597 void *argp2 = 0 ;
7598 int res2 = 0 ;
7599 int val3 ;
7600 int ecode3 = 0 ;
7601 PyObject * obj0 = 0 ;
7602 PyObject * obj1 = 0 ;
7603 PyObject * obj2 = 0 ;
7604 char * kwnames[] = {
7605 (char *) "self",(char *) "data",(char *) "x", NULL
7606 };
7607
7608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7609 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7610 if (!SWIG_IsOK(res1)) {
7611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7612 }
7613 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7614 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7615 if (!SWIG_IsOK(res2)) {
7616 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7617 }
7618 if (!argp2) {
7619 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7620 }
7621 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7622 ecode3 = SWIG_AsVal_int(obj2, &val3);
7623 if (!SWIG_IsOK(ecode3)) {
7624 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
7625 }
7626 arg3 = static_cast< int >(val3);
7627 {
7628 (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3);
7629 if (PyErr_Occurred()) SWIG_fail;
7630 }
7631 resultobj = SWIG_Py_Void();
7632 return resultobj;
7633 fail:
7634 return NULL;
7635 }
7636
7637
7638 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7639 PyObject *resultobj = 0;
7640 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7641 wxNativePixelData *arg2 = 0 ;
7642 int arg3 ;
7643 void *argp1 = 0 ;
7644 int res1 = 0 ;
7645 void *argp2 = 0 ;
7646 int res2 = 0 ;
7647 int val3 ;
7648 int ecode3 = 0 ;
7649 PyObject * obj0 = 0 ;
7650 PyObject * obj1 = 0 ;
7651 PyObject * obj2 = 0 ;
7652 char * kwnames[] = {
7653 (char *) "self",(char *) "data",(char *) "y", NULL
7654 };
7655
7656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7658 if (!SWIG_IsOK(res1)) {
7659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7660 }
7661 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7662 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7663 if (!SWIG_IsOK(res2)) {
7664 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7665 }
7666 if (!argp2) {
7667 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7668 }
7669 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7670 ecode3 = SWIG_AsVal_int(obj2, &val3);
7671 if (!SWIG_IsOK(ecode3)) {
7672 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
7673 }
7674 arg3 = static_cast< int >(val3);
7675 {
7676 (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3);
7677 if (PyErr_Occurred()) SWIG_fail;
7678 }
7679 resultobj = SWIG_Py_Void();
7680 return resultobj;
7681 fail:
7682 return NULL;
7683 }
7684
7685
7686 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7687 PyObject *resultobj = 0;
7688 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7689 wxNativePixelData *arg2 = 0 ;
7690 int arg3 ;
7691 int arg4 ;
7692 void *argp1 = 0 ;
7693 int res1 = 0 ;
7694 void *argp2 = 0 ;
7695 int res2 = 0 ;
7696 int val3 ;
7697 int ecode3 = 0 ;
7698 int val4 ;
7699 int ecode4 = 0 ;
7700 PyObject * obj0 = 0 ;
7701 PyObject * obj1 = 0 ;
7702 PyObject * obj2 = 0 ;
7703 PyObject * obj3 = 0 ;
7704 char * kwnames[] = {
7705 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7706 };
7707
7708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7709 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7710 if (!SWIG_IsOK(res1)) {
7711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7712 }
7713 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7714 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7715 if (!SWIG_IsOK(res2)) {
7716 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7717 }
7718 if (!argp2) {
7719 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7720 }
7721 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7722 ecode3 = SWIG_AsVal_int(obj2, &val3);
7723 if (!SWIG_IsOK(ecode3)) {
7724 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
7725 }
7726 arg3 = static_cast< int >(val3);
7727 ecode4 = SWIG_AsVal_int(obj3, &val4);
7728 if (!SWIG_IsOK(ecode4)) {
7729 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
7730 }
7731 arg4 = static_cast< int >(val4);
7732 {
7733 (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4);
7734 if (PyErr_Occurred()) SWIG_fail;
7735 }
7736 resultobj = SWIG_Py_Void();
7737 return resultobj;
7738 fail:
7739 return NULL;
7740 }
7741
7742
7743 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7744 PyObject *resultobj = 0;
7745 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7746 byte arg2 ;
7747 byte arg3 ;
7748 byte arg4 ;
7749 void *argp1 = 0 ;
7750 int res1 = 0 ;
7751 unsigned char val2 ;
7752 int ecode2 = 0 ;
7753 unsigned char val3 ;
7754 int ecode3 = 0 ;
7755 unsigned char val4 ;
7756 int ecode4 = 0 ;
7757 PyObject * obj0 = 0 ;
7758 PyObject * obj1 = 0 ;
7759 PyObject * obj2 = 0 ;
7760 PyObject * obj3 = 0 ;
7761 char * kwnames[] = {
7762 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
7763 };
7764
7765 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7766 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7767 if (!SWIG_IsOK(res1)) {
7768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7769 }
7770 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7771 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
7772 if (!SWIG_IsOK(ecode2)) {
7773 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
7774 }
7775 arg2 = static_cast< byte >(val2);
7776 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
7777 if (!SWIG_IsOK(ecode3)) {
7778 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
7779 }
7780 arg3 = static_cast< byte >(val3);
7781 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
7782 if (!SWIG_IsOK(ecode4)) {
7783 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
7784 }
7785 arg4 = static_cast< byte >(val4);
7786 {
7787 wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4);
7788 if (PyErr_Occurred()) SWIG_fail;
7789 }
7790 resultobj = SWIG_Py_Void();
7791 return resultobj;
7792 fail:
7793 return NULL;
7794 }
7795
7796
7797 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7798 PyObject *resultobj = 0;
7799 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7800 PyObject *result = 0 ;
7801 void *argp1 = 0 ;
7802 int res1 = 0 ;
7803 PyObject *swig_obj[1] ;
7804
7805 if (!args) SWIG_fail;
7806 swig_obj[0] = args;
7807 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7808 if (!SWIG_IsOK(res1)) {
7809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7810 }
7811 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7812 {
7813 result = (PyObject *)wxNativePixelData_Accessor_Get(arg1);
7814 if (PyErr_Occurred()) SWIG_fail;
7815 }
7816 resultobj = result;
7817 return resultobj;
7818 fail:
7819 return NULL;
7820 }
7821
7822
7823 SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7824 PyObject *obj;
7825 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7826 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj));
7827 return SWIG_Py_Void();
7828 }
7829
7830 SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7831 return SWIG_Python_InitShadowInstance(args);
7832 }
7833
7834 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7835 PyObject *resultobj = 0;
7836 wxBitmap *arg1 = 0 ;
7837 wxAlphaPixelData *result = 0 ;
7838 void *argp1 = 0 ;
7839 int res1 = 0 ;
7840
7841 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7842 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7843 if (!SWIG_IsOK(res1)) {
7844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7845 }
7846 if (!argp1) {
7847 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7848 }
7849 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7850 {
7851 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1);
7852 if (PyErr_Occurred()) SWIG_fail;
7853 }
7854 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
7855 return resultobj;
7856 fail:
7857 return NULL;
7858 }
7859
7860
7861 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7862 PyObject *resultobj = 0;
7863 wxBitmap *arg1 = 0 ;
7864 wxRect *arg2 = 0 ;
7865 wxAlphaPixelData *result = 0 ;
7866 void *argp1 = 0 ;
7867 int res1 = 0 ;
7868 wxRect temp2 ;
7869
7870 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7871 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7872 if (!SWIG_IsOK(res1)) {
7873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7874 }
7875 if (!argp1) {
7876 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7877 }
7878 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7879 {
7880 arg2 = &temp2;
7881 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7882 }
7883 {
7884 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2);
7885 if (PyErr_Occurred()) SWIG_fail;
7886 }
7887 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
7888 return resultobj;
7889 fail:
7890 return NULL;
7891 }
7892
7893
7894 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7895 PyObject *resultobj = 0;
7896 wxBitmap *arg1 = 0 ;
7897 wxPoint *arg2 = 0 ;
7898 wxSize *arg3 = 0 ;
7899 wxAlphaPixelData *result = 0 ;
7900 void *argp1 = 0 ;
7901 int res1 = 0 ;
7902 wxPoint temp2 ;
7903 wxSize temp3 ;
7904
7905 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7906 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7907 if (!SWIG_IsOK(res1)) {
7908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7909 }
7910 if (!argp1) {
7911 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7912 }
7913 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7914 {
7915 arg2 = &temp2;
7916 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7917 }
7918 {
7919 arg3 = &temp3;
7920 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7921 }
7922 {
7923 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7924 if (PyErr_Occurred()) SWIG_fail;
7925 }
7926 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
7927 return resultobj;
7928 fail:
7929 return NULL;
7930 }
7931
7932
7933 SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) {
7934 int argc;
7935 PyObject *argv[4];
7936
7937 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail;
7938 --argc;
7939 if (argc == 1) {
7940 return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv);
7941 }
7942 if (argc == 2) {
7943 return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv);
7944 }
7945 if (argc == 3) {
7946 return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv);
7947 }
7948
7949 fail:
7950 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'");
7951 return NULL;
7952 }
7953
7954
7955 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7956 PyObject *resultobj = 0;
7957 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
7958 void *argp1 = 0 ;
7959 int res1 = 0 ;
7960 PyObject *swig_obj[1] ;
7961
7962 if (!args) SWIG_fail;
7963 swig_obj[0] = args;
7964 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 );
7965 if (!SWIG_IsOK(res1)) {
7966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
7967 }
7968 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
7969 {
7970 delete arg1;
7971
7972 if (PyErr_Occurred()) SWIG_fail;
7973 }
7974 resultobj = SWIG_Py_Void();
7975 return resultobj;
7976 fail:
7977 return NULL;
7978 }
7979
7980
7981 SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7982 PyObject *resultobj = 0;
7983 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
7984 wxAlphaPixelData_Accessor result;
7985 void *argp1 = 0 ;
7986 int res1 = 0 ;
7987 PyObject *swig_obj[1] ;
7988
7989 if (!args) SWIG_fail;
7990 swig_obj[0] = args;
7991 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
7992 if (!SWIG_IsOK(res1)) {
7993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'");
7994 }
7995 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
7996 {
7997 result = ((wxAlphaPixelData const *)arg1)->GetPixels();
7998 if (PyErr_Occurred()) SWIG_fail;
7999 }
8000 resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 );
8001 return resultobj;
8002 fail:
8003 return NULL;
8004 }
8005
8006
8007 SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8008 PyObject *resultobj = 0;
8009 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8010 void *argp1 = 0 ;
8011 int res1 = 0 ;
8012 PyObject *swig_obj[1] ;
8013
8014 if (!args) SWIG_fail;
8015 swig_obj[0] = args;
8016 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8017 if (!SWIG_IsOK(res1)) {
8018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8019 }
8020 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8021 {
8022 (arg1)->UseAlpha();
8023 if (PyErr_Occurred()) SWIG_fail;
8024 }
8025 resultobj = SWIG_Py_Void();
8026 return resultobj;
8027 fail:
8028 return NULL;
8029 }
8030
8031
8032 SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8033 PyObject *resultobj = 0;
8034 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8035 bool result;
8036 void *argp1 = 0 ;
8037 int res1 = 0 ;
8038 PyObject *swig_obj[1] ;
8039
8040 if (!args) SWIG_fail;
8041 swig_obj[0] = args;
8042 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8043 if (!SWIG_IsOK(res1)) {
8044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8045 }
8046 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8047 {
8048 result = (bool)wxAlphaPixelData___nonzero__(arg1);
8049 if (PyErr_Occurred()) SWIG_fail;
8050 }
8051 {
8052 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8053 }
8054 return resultobj;
8055 fail:
8056 return NULL;
8057 }
8058
8059
8060 SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8061 PyObject *obj;
8062 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8063 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj));
8064 return SWIG_Py_Void();
8065 }
8066
8067 SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8068 return SWIG_Python_InitShadowInstance(args);
8069 }
8070
8071 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8072 PyObject *resultobj = 0;
8073 wxAlphaPixelData *arg1 = 0 ;
8074 wxAlphaPixelData_Accessor *result = 0 ;
8075 void *argp1 = 0 ;
8076 int res1 = 0 ;
8077
8078 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8079 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 );
8080 if (!SWIG_IsOK(res1)) {
8081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8082 }
8083 if (!argp1) {
8084 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8085 }
8086 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8087 {
8088 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1);
8089 if (PyErr_Occurred()) SWIG_fail;
8090 }
8091 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8092 return resultobj;
8093 fail:
8094 return NULL;
8095 }
8096
8097
8098 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8099 PyObject *resultobj = 0;
8100 wxBitmap *arg1 = 0 ;
8101 wxAlphaPixelData *arg2 = 0 ;
8102 wxAlphaPixelData_Accessor *result = 0 ;
8103 void *argp1 = 0 ;
8104 int res1 = 0 ;
8105 void *argp2 = 0 ;
8106 int res2 = 0 ;
8107
8108 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8109 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8110 if (!SWIG_IsOK(res1)) {
8111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8112 }
8113 if (!argp1) {
8114 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8115 }
8116 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8117 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 );
8118 if (!SWIG_IsOK(res2)) {
8119 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8120 }
8121 if (!argp2) {
8122 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8123 }
8124 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8125 {
8126 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2);
8127 if (PyErr_Occurred()) SWIG_fail;
8128 }
8129 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8130 return resultobj;
8131 fail:
8132 return NULL;
8133 }
8134
8135
8136 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
8137 PyObject *resultobj = 0;
8138 wxAlphaPixelData_Accessor *result = 0 ;
8139
8140 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
8141 {
8142 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor();
8143 if (PyErr_Occurred()) SWIG_fail;
8144 }
8145 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8146 return resultobj;
8147 fail:
8148 return NULL;
8149 }
8150
8151
8152 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) {
8153 int argc;
8154 PyObject *argv[3];
8155
8156 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail;
8157 --argc;
8158 if (argc == 0) {
8159 return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv);
8160 }
8161 if (argc == 1) {
8162 return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv);
8163 }
8164 if (argc == 2) {
8165 return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv);
8166 }
8167
8168 fail:
8169 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'");
8170 return NULL;
8171 }
8172
8173
8174 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8175 PyObject *resultobj = 0;
8176 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8177 void *argp1 = 0 ;
8178 int res1 = 0 ;
8179 PyObject *swig_obj[1] ;
8180
8181 if (!args) SWIG_fail;
8182 swig_obj[0] = args;
8183 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
8184 if (!SWIG_IsOK(res1)) {
8185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8186 }
8187 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8188 {
8189 delete arg1;
8190
8191 if (PyErr_Occurred()) SWIG_fail;
8192 }
8193 resultobj = SWIG_Py_Void();
8194 return resultobj;
8195 fail:
8196 return NULL;
8197 }
8198
8199
8200 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8201 PyObject *resultobj = 0;
8202 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8203 wxAlphaPixelData *arg2 = 0 ;
8204 void *argp1 = 0 ;
8205 int res1 = 0 ;
8206 void *argp2 = 0 ;
8207 int res2 = 0 ;
8208 PyObject * obj0 = 0 ;
8209 PyObject * obj1 = 0 ;
8210 char * kwnames[] = {
8211 (char *) "self",(char *) "data", NULL
8212 };
8213
8214 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
8215 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8216 if (!SWIG_IsOK(res1)) {
8217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8218 }
8219 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8220 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8221 if (!SWIG_IsOK(res2)) {
8222 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8223 }
8224 if (!argp2) {
8225 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8226 }
8227 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8228 {
8229 (arg1)->Reset((wxAlphaPixelData const &)*arg2);
8230 if (PyErr_Occurred()) SWIG_fail;
8231 }
8232 resultobj = SWIG_Py_Void();
8233 return resultobj;
8234 fail:
8235 return NULL;
8236 }
8237
8238
8239 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8240 PyObject *resultobj = 0;
8241 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8242 bool result;
8243 void *argp1 = 0 ;
8244 int res1 = 0 ;
8245 PyObject *swig_obj[1] ;
8246
8247 if (!args) SWIG_fail;
8248 swig_obj[0] = args;
8249 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8250 if (!SWIG_IsOK(res1)) {
8251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'");
8252 }
8253 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8254 {
8255 result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk();
8256 if (PyErr_Occurred()) SWIG_fail;
8257 }
8258 {
8259 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8260 }
8261 return resultobj;
8262 fail:
8263 return NULL;
8264 }
8265
8266
8267 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8268 PyObject *resultobj = 0;
8269 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8270 void *argp1 = 0 ;
8271 int res1 = 0 ;
8272 PyObject *swig_obj[1] ;
8273
8274 if (!args) SWIG_fail;
8275 swig_obj[0] = args;
8276 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8277 if (!SWIG_IsOK(res1)) {
8278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8279 }
8280 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8281 {
8282 wxAlphaPixelData_Accessor_nextPixel(arg1);
8283 if (PyErr_Occurred()) SWIG_fail;
8284 }
8285 resultobj = SWIG_Py_Void();
8286 return resultobj;
8287 fail:
8288 return NULL;
8289 }
8290
8291
8292 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8293 PyObject *resultobj = 0;
8294 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8295 wxAlphaPixelData *arg2 = 0 ;
8296 int arg3 ;
8297 int arg4 ;
8298 void *argp1 = 0 ;
8299 int res1 = 0 ;
8300 void *argp2 = 0 ;
8301 int res2 = 0 ;
8302 int val3 ;
8303 int ecode3 = 0 ;
8304 int val4 ;
8305 int ecode4 = 0 ;
8306 PyObject * obj0 = 0 ;
8307 PyObject * obj1 = 0 ;
8308 PyObject * obj2 = 0 ;
8309 PyObject * obj3 = 0 ;
8310 char * kwnames[] = {
8311 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8312 };
8313
8314 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8315 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8316 if (!SWIG_IsOK(res1)) {
8317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8318 }
8319 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8320 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8321 if (!SWIG_IsOK(res2)) {
8322 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8323 }
8324 if (!argp2) {
8325 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8326 }
8327 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8328 ecode3 = SWIG_AsVal_int(obj2, &val3);
8329 if (!SWIG_IsOK(ecode3)) {
8330 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8331 }
8332 arg3 = static_cast< int >(val3);
8333 ecode4 = SWIG_AsVal_int(obj3, &val4);
8334 if (!SWIG_IsOK(ecode4)) {
8335 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8336 }
8337 arg4 = static_cast< int >(val4);
8338 {
8339 (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4);
8340 if (PyErr_Occurred()) SWIG_fail;
8341 }
8342 resultobj = SWIG_Py_Void();
8343 return resultobj;
8344 fail:
8345 return NULL;
8346 }
8347
8348
8349 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8350 PyObject *resultobj = 0;
8351 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8352 wxAlphaPixelData *arg2 = 0 ;
8353 int arg3 ;
8354 void *argp1 = 0 ;
8355 int res1 = 0 ;
8356 void *argp2 = 0 ;
8357 int res2 = 0 ;
8358 int val3 ;
8359 int ecode3 = 0 ;
8360 PyObject * obj0 = 0 ;
8361 PyObject * obj1 = 0 ;
8362 PyObject * obj2 = 0 ;
8363 char * kwnames[] = {
8364 (char *) "self",(char *) "data",(char *) "x", NULL
8365 };
8366
8367 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8368 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8369 if (!SWIG_IsOK(res1)) {
8370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8371 }
8372 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8373 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8374 if (!SWIG_IsOK(res2)) {
8375 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8376 }
8377 if (!argp2) {
8378 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8379 }
8380 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8381 ecode3 = SWIG_AsVal_int(obj2, &val3);
8382 if (!SWIG_IsOK(ecode3)) {
8383 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8384 }
8385 arg3 = static_cast< int >(val3);
8386 {
8387 (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3);
8388 if (PyErr_Occurred()) SWIG_fail;
8389 }
8390 resultobj = SWIG_Py_Void();
8391 return resultobj;
8392 fail:
8393 return NULL;
8394 }
8395
8396
8397 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8398 PyObject *resultobj = 0;
8399 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8400 wxAlphaPixelData *arg2 = 0 ;
8401 int arg3 ;
8402 void *argp1 = 0 ;
8403 int res1 = 0 ;
8404 void *argp2 = 0 ;
8405 int res2 = 0 ;
8406 int val3 ;
8407 int ecode3 = 0 ;
8408 PyObject * obj0 = 0 ;
8409 PyObject * obj1 = 0 ;
8410 PyObject * obj2 = 0 ;
8411 char * kwnames[] = {
8412 (char *) "self",(char *) "data",(char *) "y", NULL
8413 };
8414
8415 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8416 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8417 if (!SWIG_IsOK(res1)) {
8418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8419 }
8420 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8421 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8422 if (!SWIG_IsOK(res2)) {
8423 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8424 }
8425 if (!argp2) {
8426 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8427 }
8428 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8429 ecode3 = SWIG_AsVal_int(obj2, &val3);
8430 if (!SWIG_IsOK(ecode3)) {
8431 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8432 }
8433 arg3 = static_cast< int >(val3);
8434 {
8435 (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3);
8436 if (PyErr_Occurred()) SWIG_fail;
8437 }
8438 resultobj = SWIG_Py_Void();
8439 return resultobj;
8440 fail:
8441 return NULL;
8442 }
8443
8444
8445 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8446 PyObject *resultobj = 0;
8447 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8448 wxAlphaPixelData *arg2 = 0 ;
8449 int arg3 ;
8450 int arg4 ;
8451 void *argp1 = 0 ;
8452 int res1 = 0 ;
8453 void *argp2 = 0 ;
8454 int res2 = 0 ;
8455 int val3 ;
8456 int ecode3 = 0 ;
8457 int val4 ;
8458 int ecode4 = 0 ;
8459 PyObject * obj0 = 0 ;
8460 PyObject * obj1 = 0 ;
8461 PyObject * obj2 = 0 ;
8462 PyObject * obj3 = 0 ;
8463 char * kwnames[] = {
8464 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8465 };
8466
8467 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8468 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8469 if (!SWIG_IsOK(res1)) {
8470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8471 }
8472 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8473 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8474 if (!SWIG_IsOK(res2)) {
8475 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8476 }
8477 if (!argp2) {
8478 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8479 }
8480 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8481 ecode3 = SWIG_AsVal_int(obj2, &val3);
8482 if (!SWIG_IsOK(ecode3)) {
8483 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8484 }
8485 arg3 = static_cast< int >(val3);
8486 ecode4 = SWIG_AsVal_int(obj3, &val4);
8487 if (!SWIG_IsOK(ecode4)) {
8488 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8489 }
8490 arg4 = static_cast< int >(val4);
8491 {
8492 (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4);
8493 if (PyErr_Occurred()) SWIG_fail;
8494 }
8495 resultobj = SWIG_Py_Void();
8496 return resultobj;
8497 fail:
8498 return NULL;
8499 }
8500
8501
8502 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8503 PyObject *resultobj = 0;
8504 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8505 byte arg2 ;
8506 byte arg3 ;
8507 byte arg4 ;
8508 byte arg5 ;
8509 void *argp1 = 0 ;
8510 int res1 = 0 ;
8511 unsigned char val2 ;
8512 int ecode2 = 0 ;
8513 unsigned char val3 ;
8514 int ecode3 = 0 ;
8515 unsigned char val4 ;
8516 int ecode4 = 0 ;
8517 unsigned char val5 ;
8518 int ecode5 = 0 ;
8519 PyObject * obj0 = 0 ;
8520 PyObject * obj1 = 0 ;
8521 PyObject * obj2 = 0 ;
8522 PyObject * obj3 = 0 ;
8523 PyObject * obj4 = 0 ;
8524 char * kwnames[] = {
8525 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
8526 };
8527
8528 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8529 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8530 if (!SWIG_IsOK(res1)) {
8531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8532 }
8533 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8534 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8535 if (!SWIG_IsOK(ecode2)) {
8536 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8537 }
8538 arg2 = static_cast< byte >(val2);
8539 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8540 if (!SWIG_IsOK(ecode3)) {
8541 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8542 }
8543 arg3 = static_cast< byte >(val3);
8544 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8545 if (!SWIG_IsOK(ecode4)) {
8546 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8547 }
8548 arg4 = static_cast< byte >(val4);
8549 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
8550 if (!SWIG_IsOK(ecode5)) {
8551 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'");
8552 }
8553 arg5 = static_cast< byte >(val5);
8554 {
8555 wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5);
8556 if (PyErr_Occurred()) SWIG_fail;
8557 }
8558 resultobj = SWIG_Py_Void();
8559 return resultobj;
8560 fail:
8561 return NULL;
8562 }
8563
8564
8565 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8566 PyObject *resultobj = 0;
8567 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8568 PyObject *result = 0 ;
8569 void *argp1 = 0 ;
8570 int res1 = 0 ;
8571 PyObject *swig_obj[1] ;
8572
8573 if (!args) SWIG_fail;
8574 swig_obj[0] = args;
8575 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8576 if (!SWIG_IsOK(res1)) {
8577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8578 }
8579 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8580 {
8581 result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1);
8582 if (PyErr_Occurred()) SWIG_fail;
8583 }
8584 resultobj = result;
8585 return resultobj;
8586 fail:
8587 return NULL;
8588 }
8589
8590
8591 SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8592 PyObject *obj;
8593 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8594 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj));
8595 return SWIG_Py_Void();
8596 }
8597
8598 SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8599 return SWIG_Python_InitShadowInstance(args);
8600 }
8601
8602 SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8603 PyObject *resultobj = 0;
8604 wxBitmap *arg1 = 0 ;
8605 wxColour const &arg2_defvalue = wxNullColour ;
8606 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
8607 wxMask *result = 0 ;
8608 void *argp1 = 0 ;
8609 int res1 = 0 ;
8610 wxColour temp2 ;
8611 PyObject * obj0 = 0 ;
8612 PyObject * obj1 = 0 ;
8613 char * kwnames[] = {
8614 (char *) "bitmap",(char *) "colour", NULL
8615 };
8616
8617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
8618 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8619 if (!SWIG_IsOK(res1)) {
8620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8621 }
8622 if (!argp1) {
8623 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8624 }
8625 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8626 if (obj1) {
8627 {
8628 arg2 = &temp2;
8629 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
8630 }
8631 }
8632 {
8633 if (!wxPyCheckForApp()) SWIG_fail;
8634 PyThreadState* __tstate = wxPyBeginAllowThreads();
8635 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
8636 wxPyEndAllowThreads(__tstate);
8637 if (PyErr_Occurred()) SWIG_fail;
8638 }
8639 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
8640 return resultobj;
8641 fail:
8642 return NULL;
8643 }
8644
8645
8646 SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8647 PyObject *resultobj = 0;
8648 wxMask *arg1 = (wxMask *) 0 ;
8649 void *argp1 = 0 ;
8650 int res1 = 0 ;
8651 PyObject *swig_obj[1] ;
8652
8653 if (!args) SWIG_fail;
8654 swig_obj[0] = args;
8655 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
8656 if (!SWIG_IsOK(res1)) {
8657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
8658 }
8659 arg1 = reinterpret_cast< wxMask * >(argp1);
8660 {
8661 delete arg1;
8662
8663 if (PyErr_Occurred()) SWIG_fail;
8664 }
8665 resultobj = SWIG_Py_Void();
8666 return resultobj;
8667 fail:
8668 return NULL;
8669 }
8670
8671
8672 SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8673 PyObject *obj;
8674 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8675 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
8676 return SWIG_Py_Void();
8677 }
8678
8679 SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8680 return SWIG_Python_InitShadowInstance(args);
8681 }
8682
8683 SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8684 PyObject *resultobj = 0;
8685 wxString *arg1 = 0 ;
8686 wxBitmapType arg2 ;
8687 int arg3 = (int) -1 ;
8688 int arg4 = (int) -1 ;
8689 wxIcon *result = 0 ;
8690 bool temp1 = false ;
8691 int val2 ;
8692 int ecode2 = 0 ;
8693 int val3 ;
8694 int ecode3 = 0 ;
8695 int val4 ;
8696 int ecode4 = 0 ;
8697 PyObject * obj0 = 0 ;
8698 PyObject * obj1 = 0 ;
8699 PyObject * obj2 = 0 ;
8700 PyObject * obj3 = 0 ;
8701 char * kwnames[] = {
8702 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
8703 };
8704
8705 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8706 {
8707 arg1 = wxString_in_helper(obj0);
8708 if (arg1 == NULL) SWIG_fail;
8709 temp1 = true;
8710 }
8711 ecode2 = SWIG_AsVal_int(obj1, &val2);
8712 if (!SWIG_IsOK(ecode2)) {
8713 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
8714 }
8715 arg2 = static_cast< wxBitmapType >(val2);
8716 if (obj2) {
8717 ecode3 = SWIG_AsVal_int(obj2, &val3);
8718 if (!SWIG_IsOK(ecode3)) {
8719 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
8720 }
8721 arg3 = static_cast< int >(val3);
8722 }
8723 if (obj3) {
8724 ecode4 = SWIG_AsVal_int(obj3, &val4);
8725 if (!SWIG_IsOK(ecode4)) {
8726 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
8727 }
8728 arg4 = static_cast< int >(val4);
8729 }
8730 {
8731 if (!wxPyCheckForApp()) SWIG_fail;
8732 PyThreadState* __tstate = wxPyBeginAllowThreads();
8733 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
8734 wxPyEndAllowThreads(__tstate);
8735 if (PyErr_Occurred()) SWIG_fail;
8736 }
8737 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
8738 {
8739 if (temp1)
8740 delete arg1;
8741 }
8742 return resultobj;
8743 fail:
8744 {
8745 if (temp1)
8746 delete arg1;
8747 }
8748 return NULL;
8749 }
8750
8751
8752 SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8753 PyObject *resultobj = 0;
8754 wxIcon *arg1 = (wxIcon *) 0 ;
8755 void *argp1 = 0 ;
8756 int res1 = 0 ;
8757 PyObject *swig_obj[1] ;
8758
8759 if (!args) SWIG_fail;
8760 swig_obj[0] = args;
8761 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
8762 if (!SWIG_IsOK(res1)) {
8763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
8764 }
8765 arg1 = reinterpret_cast< wxIcon * >(argp1);
8766 {
8767 PyThreadState* __tstate = wxPyBeginAllowThreads();
8768 delete arg1;
8769
8770 wxPyEndAllowThreads(__tstate);
8771 if (PyErr_Occurred()) SWIG_fail;
8772 }
8773 resultobj = SWIG_Py_Void();
8774 return resultobj;
8775 fail:
8776 return NULL;
8777 }
8778
8779
8780 SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8781 PyObject *resultobj = 0;
8782 wxIcon *result = 0 ;
8783
8784 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
8785 {
8786 if (!wxPyCheckForApp()) SWIG_fail;
8787 PyThreadState* __tstate = wxPyBeginAllowThreads();
8788 result = (wxIcon *)new wxIcon();
8789 wxPyEndAllowThreads(__tstate);
8790 if (PyErr_Occurred()) SWIG_fail;
8791 }
8792 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8793 return resultobj;
8794 fail:
8795 return NULL;
8796 }
8797
8798
8799 SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8800 PyObject *resultobj = 0;
8801 wxIconLocation *arg1 = 0 ;
8802 wxIcon *result = 0 ;
8803 void *argp1 = 0 ;
8804 int res1 = 0 ;
8805 PyObject * obj0 = 0 ;
8806 char * kwnames[] = {
8807 (char *) "loc", NULL
8808 };
8809
8810 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
8811 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
8812 if (!SWIG_IsOK(res1)) {
8813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
8814 }
8815 if (!argp1) {
8816 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
8817 }
8818 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
8819 {
8820 if (!wxPyCheckForApp()) SWIG_fail;
8821 PyThreadState* __tstate = wxPyBeginAllowThreads();
8822 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
8823 wxPyEndAllowThreads(__tstate);
8824 if (PyErr_Occurred()) SWIG_fail;
8825 }
8826 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8827 return resultobj;
8828 fail:
8829 return NULL;
8830 }
8831
8832
8833 SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8834 PyObject *resultobj = 0;
8835 wxBitmap *arg1 = 0 ;
8836 wxIcon *result = 0 ;
8837 void *argp1 = 0 ;
8838 int res1 = 0 ;
8839 PyObject * obj0 = 0 ;
8840 char * kwnames[] = {
8841 (char *) "bmp", NULL
8842 };
8843
8844 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
8845 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8846 if (!SWIG_IsOK(res1)) {
8847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8848 }
8849 if (!argp1) {
8850 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8851 }
8852 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8853 {
8854 if (!wxPyCheckForApp()) SWIG_fail;
8855 PyThreadState* __tstate = wxPyBeginAllowThreads();
8856 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
8857 wxPyEndAllowThreads(__tstate);
8858 if (PyErr_Occurred()) SWIG_fail;
8859 }
8860 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8861 return resultobj;
8862 fail:
8863 return NULL;
8864 }
8865
8866
8867 SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8868 PyObject *resultobj = 0;
8869 PyObject *arg1 = (PyObject *) 0 ;
8870 wxIcon *result = 0 ;
8871 PyObject * obj0 = 0 ;
8872 char * kwnames[] = {
8873 (char *) "listOfStrings", NULL
8874 };
8875
8876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
8877 arg1 = obj0;
8878 {
8879 if (!wxPyCheckForApp()) SWIG_fail;
8880 PyThreadState* __tstate = wxPyBeginAllowThreads();
8881 result = (wxIcon *)new_wxIcon(arg1);
8882 wxPyEndAllowThreads(__tstate);
8883 if (PyErr_Occurred()) SWIG_fail;
8884 }
8885 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8886 return resultobj;
8887 fail:
8888 return NULL;
8889 }
8890
8891
8892 SWIGINTERN PyObject *_wrap_Icon_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8893 PyObject *resultobj = 0;
8894 wxIcon *arg1 = (wxIcon *) 0 ;
8895 wxString *arg2 = 0 ;
8896 wxBitmapType arg3 ;
8897 bool result;
8898 void *argp1 = 0 ;
8899 int res1 = 0 ;
8900 bool temp2 = false ;
8901 int val3 ;
8902 int ecode3 = 0 ;
8903 PyObject * obj0 = 0 ;
8904 PyObject * obj1 = 0 ;
8905 PyObject * obj2 = 0 ;
8906 char * kwnames[] = {
8907 (char *) "self",(char *) "name",(char *) "type", NULL
8908 };
8909
8910 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8911 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8912 if (!SWIG_IsOK(res1)) {
8913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_LoadFile" "', expected argument " "1"" of type '" "wxIcon *""'");
8914 }
8915 arg1 = reinterpret_cast< wxIcon * >(argp1);
8916 {
8917 arg2 = wxString_in_helper(obj1);
8918 if (arg2 == NULL) SWIG_fail;
8919 temp2 = true;
8920 }
8921 ecode3 = SWIG_AsVal_int(obj2, &val3);
8922 if (!SWIG_IsOK(ecode3)) {
8923 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Icon_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
8924 }
8925 arg3 = static_cast< wxBitmapType >(val3);
8926 {
8927 PyThreadState* __tstate = wxPyBeginAllowThreads();
8928 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
8929 wxPyEndAllowThreads(__tstate);
8930 if (PyErr_Occurred()) SWIG_fail;
8931 }
8932 {
8933 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8934 }
8935 {
8936 if (temp2)
8937 delete arg2;
8938 }
8939 return resultobj;
8940 fail:
8941 {
8942 if (temp2)
8943 delete arg2;
8944 }
8945 return NULL;
8946 }
8947
8948
8949 SWIGINTERN PyObject *_wrap_Icon_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8950 PyObject *resultobj = 0;
8951 wxIcon *arg1 = (wxIcon *) 0 ;
8952 bool result;
8953 void *argp1 = 0 ;
8954 int res1 = 0 ;
8955 PyObject *swig_obj[1] ;
8956
8957 if (!args) SWIG_fail;
8958 swig_obj[0] = args;
8959 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8960 if (!SWIG_IsOK(res1)) {
8961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_IsOk" "', expected argument " "1"" of type '" "wxIcon *""'");
8962 }
8963 arg1 = reinterpret_cast< wxIcon * >(argp1);
8964 {
8965 PyThreadState* __tstate = wxPyBeginAllowThreads();
8966 result = (bool)(arg1)->IsOk();
8967 wxPyEndAllowThreads(__tstate);
8968 if (PyErr_Occurred()) SWIG_fail;
8969 }
8970 {
8971 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8972 }
8973 return resultobj;
8974 fail:
8975 return NULL;
8976 }
8977
8978
8979 SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8980 PyObject *resultobj = 0;
8981 wxIcon *arg1 = (wxIcon *) 0 ;
8982 int result;
8983 void *argp1 = 0 ;
8984 int res1 = 0 ;
8985 PyObject *swig_obj[1] ;
8986
8987 if (!args) SWIG_fail;
8988 swig_obj[0] = args;
8989 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8990 if (!SWIG_IsOK(res1)) {
8991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
8992 }
8993 arg1 = reinterpret_cast< wxIcon * >(argp1);
8994 {
8995 PyThreadState* __tstate = wxPyBeginAllowThreads();
8996 result = (int)(arg1)->GetWidth();
8997 wxPyEndAllowThreads(__tstate);
8998 if (PyErr_Occurred()) SWIG_fail;
8999 }
9000 resultobj = SWIG_From_int(static_cast< int >(result));
9001 return resultobj;
9002 fail:
9003 return NULL;
9004 }
9005
9006
9007 SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9008 PyObject *resultobj = 0;
9009 wxIcon *arg1 = (wxIcon *) 0 ;
9010 int result;
9011 void *argp1 = 0 ;
9012 int res1 = 0 ;
9013 PyObject *swig_obj[1] ;
9014
9015 if (!args) SWIG_fail;
9016 swig_obj[0] = args;
9017 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9018 if (!SWIG_IsOK(res1)) {
9019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9020 }
9021 arg1 = reinterpret_cast< wxIcon * >(argp1);
9022 {
9023 PyThreadState* __tstate = wxPyBeginAllowThreads();
9024 result = (int)(arg1)->GetHeight();
9025 wxPyEndAllowThreads(__tstate);
9026 if (PyErr_Occurred()) SWIG_fail;
9027 }
9028 resultobj = SWIG_From_int(static_cast< int >(result));
9029 return resultobj;
9030 fail:
9031 return NULL;
9032 }
9033
9034
9035 SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9036 PyObject *resultobj = 0;
9037 wxIcon *arg1 = (wxIcon *) 0 ;
9038 int result;
9039 void *argp1 = 0 ;
9040 int res1 = 0 ;
9041 PyObject *swig_obj[1] ;
9042
9043 if (!args) SWIG_fail;
9044 swig_obj[0] = args;
9045 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9046 if (!SWIG_IsOK(res1)) {
9047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9048 }
9049 arg1 = reinterpret_cast< wxIcon * >(argp1);
9050 {
9051 PyThreadState* __tstate = wxPyBeginAllowThreads();
9052 result = (int)(arg1)->GetDepth();
9053 wxPyEndAllowThreads(__tstate);
9054 if (PyErr_Occurred()) SWIG_fail;
9055 }
9056 resultobj = SWIG_From_int(static_cast< int >(result));
9057 return resultobj;
9058 fail:
9059 return NULL;
9060 }
9061
9062
9063 SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9064 PyObject *resultobj = 0;
9065 wxIcon *arg1 = (wxIcon *) 0 ;
9066 int arg2 ;
9067 void *argp1 = 0 ;
9068 int res1 = 0 ;
9069 int val2 ;
9070 int ecode2 = 0 ;
9071 PyObject * obj0 = 0 ;
9072 PyObject * obj1 = 0 ;
9073 char * kwnames[] = {
9074 (char *) "self",(char *) "w", NULL
9075 };
9076
9077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
9078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9079 if (!SWIG_IsOK(res1)) {
9080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9081 }
9082 arg1 = reinterpret_cast< wxIcon * >(argp1);
9083 ecode2 = SWIG_AsVal_int(obj1, &val2);
9084 if (!SWIG_IsOK(ecode2)) {
9085 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
9086 }
9087 arg2 = static_cast< int >(val2);
9088 {
9089 PyThreadState* __tstate = wxPyBeginAllowThreads();
9090 (arg1)->SetWidth(arg2);
9091 wxPyEndAllowThreads(__tstate);
9092 if (PyErr_Occurred()) SWIG_fail;
9093 }
9094 resultobj = SWIG_Py_Void();
9095 return resultobj;
9096 fail:
9097 return NULL;
9098 }
9099
9100
9101 SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9102 PyObject *resultobj = 0;
9103 wxIcon *arg1 = (wxIcon *) 0 ;
9104 int arg2 ;
9105 void *argp1 = 0 ;
9106 int res1 = 0 ;
9107 int val2 ;
9108 int ecode2 = 0 ;
9109 PyObject * obj0 = 0 ;
9110 PyObject * obj1 = 0 ;
9111 char * kwnames[] = {
9112 (char *) "self",(char *) "h", NULL
9113 };
9114
9115 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
9116 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9117 if (!SWIG_IsOK(res1)) {
9118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9119 }
9120 arg1 = reinterpret_cast< wxIcon * >(argp1);
9121 ecode2 = SWIG_AsVal_int(obj1, &val2);
9122 if (!SWIG_IsOK(ecode2)) {
9123 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
9124 }
9125 arg2 = static_cast< int >(val2);
9126 {
9127 PyThreadState* __tstate = wxPyBeginAllowThreads();
9128 (arg1)->SetHeight(arg2);
9129 wxPyEndAllowThreads(__tstate);
9130 if (PyErr_Occurred()) SWIG_fail;
9131 }
9132 resultobj = SWIG_Py_Void();
9133 return resultobj;
9134 fail:
9135 return NULL;
9136 }
9137
9138
9139 SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9140 PyObject *resultobj = 0;
9141 wxIcon *arg1 = (wxIcon *) 0 ;
9142 int arg2 ;
9143 void *argp1 = 0 ;
9144 int res1 = 0 ;
9145 int val2 ;
9146 int ecode2 = 0 ;
9147 PyObject * obj0 = 0 ;
9148 PyObject * obj1 = 0 ;
9149 char * kwnames[] = {
9150 (char *) "self",(char *) "d", NULL
9151 };
9152
9153 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
9154 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9155 if (!SWIG_IsOK(res1)) {
9156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9157 }
9158 arg1 = reinterpret_cast< wxIcon * >(argp1);
9159 ecode2 = SWIG_AsVal_int(obj1, &val2);
9160 if (!SWIG_IsOK(ecode2)) {
9161 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
9162 }
9163 arg2 = static_cast< int >(val2);
9164 {
9165 PyThreadState* __tstate = wxPyBeginAllowThreads();
9166 (arg1)->SetDepth(arg2);
9167 wxPyEndAllowThreads(__tstate);
9168 if (PyErr_Occurred()) SWIG_fail;
9169 }
9170 resultobj = SWIG_Py_Void();
9171 return resultobj;
9172 fail:
9173 return NULL;
9174 }
9175
9176
9177 SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9178 PyObject *resultobj = 0;
9179 wxIcon *arg1 = (wxIcon *) 0 ;
9180 wxBitmap *arg2 = 0 ;
9181 void *argp1 = 0 ;
9182 int res1 = 0 ;
9183 void *argp2 = 0 ;
9184 int res2 = 0 ;
9185 PyObject * obj0 = 0 ;
9186 PyObject * obj1 = 0 ;
9187 char * kwnames[] = {
9188 (char *) "self",(char *) "bmp", NULL
9189 };
9190
9191 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9192 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9193 if (!SWIG_IsOK(res1)) {
9194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
9195 }
9196 arg1 = reinterpret_cast< wxIcon * >(argp1);
9197 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9198 if (!SWIG_IsOK(res2)) {
9199 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9200 }
9201 if (!argp2) {
9202 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9203 }
9204 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9205 {
9206 PyThreadState* __tstate = wxPyBeginAllowThreads();
9207 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
9208 wxPyEndAllowThreads(__tstate);
9209 if (PyErr_Occurred()) SWIG_fail;
9210 }
9211 resultobj = SWIG_Py_Void();
9212 return resultobj;
9213 fail:
9214 return NULL;
9215 }
9216
9217
9218 SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9219 PyObject *obj;
9220 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9221 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
9222 return SWIG_Py_Void();
9223 }
9224
9225 SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9226 return SWIG_Python_InitShadowInstance(args);
9227 }
9228
9229 SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9230 PyObject *resultobj = 0;
9231 wxString *arg1 = (wxString *) &wxPyEmptyString ;
9232 int arg2 = (int) 0 ;
9233 wxIconLocation *result = 0 ;
9234 bool temp1 = false ;
9235 int val2 ;
9236 int ecode2 = 0 ;
9237 PyObject * obj0 = 0 ;
9238 PyObject * obj1 = 0 ;
9239 char * kwnames[] = {
9240 (char *) "filename",(char *) "num", NULL
9241 };
9242
9243 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
9244 if (obj0) {
9245 {
9246 arg1 = wxString_in_helper(obj0);
9247 if (arg1 == NULL) SWIG_fail;
9248 temp1 = true;
9249 }
9250 }
9251 if (obj1) {
9252 ecode2 = SWIG_AsVal_int(obj1, &val2);
9253 if (!SWIG_IsOK(ecode2)) {
9254 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
9255 }
9256 arg2 = static_cast< int >(val2);
9257 }
9258 {
9259 PyThreadState* __tstate = wxPyBeginAllowThreads();
9260 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
9261 wxPyEndAllowThreads(__tstate);
9262 if (PyErr_Occurred()) SWIG_fail;
9263 }
9264 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
9265 {
9266 if (temp1)
9267 delete arg1;
9268 }
9269 return resultobj;
9270 fail:
9271 {
9272 if (temp1)
9273 delete arg1;
9274 }
9275 return NULL;
9276 }
9277
9278
9279 SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9280 PyObject *resultobj = 0;
9281 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9282 void *argp1 = 0 ;
9283 int res1 = 0 ;
9284 PyObject *swig_obj[1] ;
9285
9286 if (!args) SWIG_fail;
9287 swig_obj[0] = args;
9288 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
9289 if (!SWIG_IsOK(res1)) {
9290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9291 }
9292 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9293 {
9294 PyThreadState* __tstate = wxPyBeginAllowThreads();
9295 delete arg1;
9296
9297 wxPyEndAllowThreads(__tstate);
9298 if (PyErr_Occurred()) SWIG_fail;
9299 }
9300 resultobj = SWIG_Py_Void();
9301 return resultobj;
9302 fail:
9303 return NULL;
9304 }
9305
9306
9307 SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9308 PyObject *resultobj = 0;
9309 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9310 bool result;
9311 void *argp1 = 0 ;
9312 int res1 = 0 ;
9313 PyObject *swig_obj[1] ;
9314
9315 if (!args) SWIG_fail;
9316 swig_obj[0] = args;
9317 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9318 if (!SWIG_IsOK(res1)) {
9319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9320 }
9321 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9322 {
9323 PyThreadState* __tstate = wxPyBeginAllowThreads();
9324 result = (bool)((wxIconLocation const *)arg1)->IsOk();
9325 wxPyEndAllowThreads(__tstate);
9326 if (PyErr_Occurred()) SWIG_fail;
9327 }
9328 {
9329 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9330 }
9331 return resultobj;
9332 fail:
9333 return NULL;
9334 }
9335
9336
9337 SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9338 PyObject *resultobj = 0;
9339 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9340 wxString *arg2 = 0 ;
9341 void *argp1 = 0 ;
9342 int res1 = 0 ;
9343 bool temp2 = false ;
9344 PyObject * obj0 = 0 ;
9345 PyObject * obj1 = 0 ;
9346 char * kwnames[] = {
9347 (char *) "self",(char *) "filename", NULL
9348 };
9349
9350 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
9351 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9352 if (!SWIG_IsOK(res1)) {
9353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9354 }
9355 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9356 {
9357 arg2 = wxString_in_helper(obj1);
9358 if (arg2 == NULL) SWIG_fail;
9359 temp2 = true;
9360 }
9361 {
9362 PyThreadState* __tstate = wxPyBeginAllowThreads();
9363 (arg1)->SetFileName((wxString const &)*arg2);
9364 wxPyEndAllowThreads(__tstate);
9365 if (PyErr_Occurred()) SWIG_fail;
9366 }
9367 resultobj = SWIG_Py_Void();
9368 {
9369 if (temp2)
9370 delete arg2;
9371 }
9372 return resultobj;
9373 fail:
9374 {
9375 if (temp2)
9376 delete arg2;
9377 }
9378 return NULL;
9379 }
9380
9381
9382 SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9383 PyObject *resultobj = 0;
9384 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9385 wxString *result = 0 ;
9386 void *argp1 = 0 ;
9387 int res1 = 0 ;
9388 PyObject *swig_obj[1] ;
9389
9390 if (!args) SWIG_fail;
9391 swig_obj[0] = args;
9392 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9393 if (!SWIG_IsOK(res1)) {
9394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9395 }
9396 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9397 {
9398 PyThreadState* __tstate = wxPyBeginAllowThreads();
9399 {
9400 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
9401 result = (wxString *) &_result_ref;
9402 }
9403 wxPyEndAllowThreads(__tstate);
9404 if (PyErr_Occurred()) SWIG_fail;
9405 }
9406 {
9407 #if wxUSE_UNICODE
9408 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9409 #else
9410 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9411 #endif
9412 }
9413 return resultobj;
9414 fail:
9415 return NULL;
9416 }
9417
9418
9419 SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9420 PyObject *resultobj = 0;
9421 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9422 int arg2 ;
9423 void *argp1 = 0 ;
9424 int res1 = 0 ;
9425 int val2 ;
9426 int ecode2 = 0 ;
9427 PyObject * obj0 = 0 ;
9428 PyObject * obj1 = 0 ;
9429 char * kwnames[] = {
9430 (char *) "self",(char *) "num", NULL
9431 };
9432
9433 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
9434 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9435 if (!SWIG_IsOK(res1)) {
9436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9437 }
9438 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9439 ecode2 = SWIG_AsVal_int(obj1, &val2);
9440 if (!SWIG_IsOK(ecode2)) {
9441 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
9442 }
9443 arg2 = static_cast< int >(val2);
9444 {
9445 PyThreadState* __tstate = wxPyBeginAllowThreads();
9446 wxIconLocation_SetIndex(arg1,arg2);
9447 wxPyEndAllowThreads(__tstate);
9448 if (PyErr_Occurred()) SWIG_fail;
9449 }
9450 resultobj = SWIG_Py_Void();
9451 return resultobj;
9452 fail:
9453 return NULL;
9454 }
9455
9456
9457 SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9458 PyObject *resultobj = 0;
9459 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9460 int result;
9461 void *argp1 = 0 ;
9462 int res1 = 0 ;
9463 PyObject *swig_obj[1] ;
9464
9465 if (!args) SWIG_fail;
9466 swig_obj[0] = args;
9467 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9468 if (!SWIG_IsOK(res1)) {
9469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9470 }
9471 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9472 {
9473 PyThreadState* __tstate = wxPyBeginAllowThreads();
9474 result = (int)wxIconLocation_GetIndex(arg1);
9475 wxPyEndAllowThreads(__tstate);
9476 if (PyErr_Occurred()) SWIG_fail;
9477 }
9478 resultobj = SWIG_From_int(static_cast< int >(result));
9479 return resultobj;
9480 fail:
9481 return NULL;
9482 }
9483
9484
9485 SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9486 PyObject *obj;
9487 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9488 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
9489 return SWIG_Py_Void();
9490 }
9491
9492 SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9493 return SWIG_Python_InitShadowInstance(args);
9494 }
9495
9496 SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9497 PyObject *resultobj = 0;
9498 wxIconBundle *result = 0 ;
9499
9500 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
9501 {
9502 PyThreadState* __tstate = wxPyBeginAllowThreads();
9503 result = (wxIconBundle *)new wxIconBundle();
9504 wxPyEndAllowThreads(__tstate);
9505 if (PyErr_Occurred()) SWIG_fail;
9506 }
9507 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
9508 return resultobj;
9509 fail:
9510 return NULL;
9511 }
9512
9513
9514 SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9515 PyObject *resultobj = 0;
9516 wxString *arg1 = 0 ;
9517 long arg2 ;
9518 wxIconBundle *result = 0 ;
9519 bool temp1 = false ;
9520 long val2 ;
9521 int ecode2 = 0 ;
9522 PyObject * obj0 = 0 ;
9523 PyObject * obj1 = 0 ;
9524 char * kwnames[] = {
9525 (char *) "file",(char *) "type", NULL
9526 };
9527
9528 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
9529 {
9530 arg1 = wxString_in_helper(obj0);
9531 if (arg1 == NULL) SWIG_fail;
9532 temp1 = true;
9533 }
9534 ecode2 = SWIG_AsVal_long(obj1, &val2);
9535 if (!SWIG_IsOK(ecode2)) {
9536 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
9537 }
9538 arg2 = static_cast< long >(val2);
9539 {
9540 PyThreadState* __tstate = wxPyBeginAllowThreads();
9541 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
9542 wxPyEndAllowThreads(__tstate);
9543 if (PyErr_Occurred()) SWIG_fail;
9544 }
9545 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9546 {
9547 if (temp1)
9548 delete arg1;
9549 }
9550 return resultobj;
9551 fail:
9552 {
9553 if (temp1)
9554 delete arg1;
9555 }
9556 return NULL;
9557 }
9558
9559
9560 SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9561 PyObject *resultobj = 0;
9562 wxIcon *arg1 = 0 ;
9563 wxIconBundle *result = 0 ;
9564 void *argp1 = 0 ;
9565 int res1 = 0 ;
9566 PyObject * obj0 = 0 ;
9567 char * kwnames[] = {
9568 (char *) "icon", NULL
9569 };
9570
9571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
9572 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
9573 if (!SWIG_IsOK(res1)) {
9574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9575 }
9576 if (!argp1) {
9577 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9578 }
9579 arg1 = reinterpret_cast< wxIcon * >(argp1);
9580 {
9581 PyThreadState* __tstate = wxPyBeginAllowThreads();
9582 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
9583 wxPyEndAllowThreads(__tstate);
9584 if (PyErr_Occurred()) SWIG_fail;
9585 }
9586 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9587 return resultobj;
9588 fail:
9589 return NULL;
9590 }
9591
9592
9593 SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9594 PyObject *resultobj = 0;
9595 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9596 void *argp1 = 0 ;
9597 int res1 = 0 ;
9598 PyObject *swig_obj[1] ;
9599
9600 if (!args) SWIG_fail;
9601 swig_obj[0] = args;
9602 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
9603 if (!SWIG_IsOK(res1)) {
9604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9605 }
9606 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9607 {
9608 PyThreadState* __tstate = wxPyBeginAllowThreads();
9609 delete arg1;
9610
9611 wxPyEndAllowThreads(__tstate);
9612 if (PyErr_Occurred()) SWIG_fail;
9613 }
9614 resultobj = SWIG_Py_Void();
9615 return resultobj;
9616 fail:
9617 return NULL;
9618 }
9619
9620
9621 SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9622 PyObject *resultobj = 0;
9623 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9624 wxIcon *arg2 = 0 ;
9625 void *argp1 = 0 ;
9626 int res1 = 0 ;
9627 void *argp2 = 0 ;
9628 int res2 = 0 ;
9629 PyObject * obj0 = 0 ;
9630 PyObject * obj1 = 0 ;
9631 char * kwnames[] = {
9632 (char *) "self",(char *) "icon", NULL
9633 };
9634
9635 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9636 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9637 if (!SWIG_IsOK(res1)) {
9638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9639 }
9640 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9641 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
9642 if (!SWIG_IsOK(res2)) {
9643 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9644 }
9645 if (!argp2) {
9646 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9647 }
9648 arg2 = reinterpret_cast< wxIcon * >(argp2);
9649 {
9650 PyThreadState* __tstate = wxPyBeginAllowThreads();
9651 (arg1)->AddIcon((wxIcon const &)*arg2);
9652 wxPyEndAllowThreads(__tstate);
9653 if (PyErr_Occurred()) SWIG_fail;
9654 }
9655 resultobj = SWIG_Py_Void();
9656 return resultobj;
9657 fail:
9658 return NULL;
9659 }
9660
9661
9662 SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9663 PyObject *resultobj = 0;
9664 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9665 wxString *arg2 = 0 ;
9666 long arg3 ;
9667 void *argp1 = 0 ;
9668 int res1 = 0 ;
9669 bool temp2 = false ;
9670 long val3 ;
9671 int ecode3 = 0 ;
9672 PyObject * obj0 = 0 ;
9673 PyObject * obj1 = 0 ;
9674 PyObject * obj2 = 0 ;
9675 char * kwnames[] = {
9676 (char *) "self",(char *) "file",(char *) "type", NULL
9677 };
9678
9679 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9680 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9681 if (!SWIG_IsOK(res1)) {
9682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9683 }
9684 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9685 {
9686 arg2 = wxString_in_helper(obj1);
9687 if (arg2 == NULL) SWIG_fail;
9688 temp2 = true;
9689 }
9690 ecode3 = SWIG_AsVal_long(obj2, &val3);
9691 if (!SWIG_IsOK(ecode3)) {
9692 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
9693 }
9694 arg3 = static_cast< long >(val3);
9695 {
9696 PyThreadState* __tstate = wxPyBeginAllowThreads();
9697 (arg1)->AddIcon((wxString const &)*arg2,arg3);
9698 wxPyEndAllowThreads(__tstate);
9699 if (PyErr_Occurred()) SWIG_fail;
9700 }
9701 resultobj = SWIG_Py_Void();
9702 {
9703 if (temp2)
9704 delete arg2;
9705 }
9706 return resultobj;
9707 fail:
9708 {
9709 if (temp2)
9710 delete arg2;
9711 }
9712 return NULL;
9713 }
9714
9715
9716 SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9717 PyObject *resultobj = 0;
9718 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9719 wxSize *arg2 = 0 ;
9720 wxIcon *result = 0 ;
9721 void *argp1 = 0 ;
9722 int res1 = 0 ;
9723 wxSize temp2 ;
9724 PyObject * obj0 = 0 ;
9725 PyObject * obj1 = 0 ;
9726 char * kwnames[] = {
9727 (char *) "self",(char *) "size", NULL
9728 };
9729
9730 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9731 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9732 if (!SWIG_IsOK(res1)) {
9733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
9734 }
9735 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9736 {
9737 arg2 = &temp2;
9738 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
9739 }
9740 {
9741 PyThreadState* __tstate = wxPyBeginAllowThreads();
9742 {
9743 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
9744 result = (wxIcon *) &_result_ref;
9745 }
9746 wxPyEndAllowThreads(__tstate);
9747 if (PyErr_Occurred()) SWIG_fail;
9748 }
9749 {
9750 wxIcon* resultptr = new wxIcon(*result);
9751 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
9752 }
9753 return resultobj;
9754 fail:
9755 return NULL;
9756 }
9757
9758
9759 SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9760 PyObject *obj;
9761 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9762 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
9763 return SWIG_Py_Void();
9764 }
9765
9766 SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9767 return SWIG_Python_InitShadowInstance(args);
9768 }
9769
9770 SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9771 PyObject *resultobj = 0;
9772 wxString *arg1 = 0 ;
9773 long arg2 ;
9774 int arg3 = (int) 0 ;
9775 int arg4 = (int) 0 ;
9776 wxCursor *result = 0 ;
9777 bool temp1 = false ;
9778 long val2 ;
9779 int ecode2 = 0 ;
9780 int val3 ;
9781 int ecode3 = 0 ;
9782 int val4 ;
9783 int ecode4 = 0 ;
9784 PyObject * obj0 = 0 ;
9785 PyObject * obj1 = 0 ;
9786 PyObject * obj2 = 0 ;
9787 PyObject * obj3 = 0 ;
9788 char * kwnames[] = {
9789 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
9790 };
9791
9792 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9793 {
9794 arg1 = wxString_in_helper(obj0);
9795 if (arg1 == NULL) SWIG_fail;
9796 temp1 = true;
9797 }
9798 ecode2 = SWIG_AsVal_long(obj1, &val2);
9799 if (!SWIG_IsOK(ecode2)) {
9800 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
9801 }
9802 arg2 = static_cast< long >(val2);
9803 if (obj2) {
9804 ecode3 = SWIG_AsVal_int(obj2, &val3);
9805 if (!SWIG_IsOK(ecode3)) {
9806 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
9807 }
9808 arg3 = static_cast< int >(val3);
9809 }
9810 if (obj3) {
9811 ecode4 = SWIG_AsVal_int(obj3, &val4);
9812 if (!SWIG_IsOK(ecode4)) {
9813 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
9814 }
9815 arg4 = static_cast< int >(val4);
9816 }
9817 {
9818 if (!wxPyCheckForApp()) SWIG_fail;
9819 PyThreadState* __tstate = wxPyBeginAllowThreads();
9820 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
9821 wxPyEndAllowThreads(__tstate);
9822 if (PyErr_Occurred()) SWIG_fail;
9823 }
9824 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
9825 {
9826 if (temp1)
9827 delete arg1;
9828 }
9829 return resultobj;
9830 fail:
9831 {
9832 if (temp1)
9833 delete arg1;
9834 }
9835 return NULL;
9836 }
9837
9838
9839 SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9840 PyObject *resultobj = 0;
9841 wxCursor *arg1 = (wxCursor *) 0 ;
9842 void *argp1 = 0 ;
9843 int res1 = 0 ;
9844 PyObject *swig_obj[1] ;
9845
9846 if (!args) SWIG_fail;
9847 swig_obj[0] = args;
9848 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
9849 if (!SWIG_IsOK(res1)) {
9850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
9851 }
9852 arg1 = reinterpret_cast< wxCursor * >(argp1);
9853 {
9854 PyThreadState* __tstate = wxPyBeginAllowThreads();
9855 delete arg1;
9856
9857 wxPyEndAllowThreads(__tstate);
9858 if (PyErr_Occurred()) SWIG_fail;
9859 }
9860 resultobj = SWIG_Py_Void();
9861 return resultobj;
9862 fail:
9863 return NULL;
9864 }
9865
9866
9867 SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9868 PyObject *resultobj = 0;
9869 int arg1 ;
9870 wxCursor *result = 0 ;
9871 int val1 ;
9872 int ecode1 = 0 ;
9873 PyObject * obj0 = 0 ;
9874 char * kwnames[] = {
9875 (char *) "id", NULL
9876 };
9877
9878 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
9879 ecode1 = SWIG_AsVal_int(obj0, &val1);
9880 if (!SWIG_IsOK(ecode1)) {
9881 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
9882 }
9883 arg1 = static_cast< int >(val1);
9884 {
9885 if (!wxPyCheckForApp()) SWIG_fail;
9886 PyThreadState* __tstate = wxPyBeginAllowThreads();
9887 result = (wxCursor *)new wxCursor(arg1);
9888 wxPyEndAllowThreads(__tstate);
9889 if (PyErr_Occurred()) SWIG_fail;
9890 }
9891 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
9892 return resultobj;
9893 fail:
9894 return NULL;
9895 }
9896
9897
9898 SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9899 PyObject *resultobj = 0;
9900 wxImage *arg1 = 0 ;
9901 wxCursor *result = 0 ;
9902 void *argp1 = 0 ;
9903 int res1 = 0 ;
9904 PyObject * obj0 = 0 ;
9905 char * kwnames[] = {
9906 (char *) "image", NULL
9907 };
9908
9909 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
9910 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
9911 if (!SWIG_IsOK(res1)) {
9912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
9913 }
9914 if (!argp1) {
9915 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
9916 }
9917 arg1 = reinterpret_cast< wxImage * >(argp1);
9918 {
9919 if (!wxPyCheckForApp()) SWIG_fail;
9920 PyThreadState* __tstate = wxPyBeginAllowThreads();
9921 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
9922 wxPyEndAllowThreads(__tstate);
9923 if (PyErr_Occurred()) SWIG_fail;
9924 }
9925 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
9926 return resultobj;
9927 fail:
9928 return NULL;
9929 }
9930
9931
9932 SWIGINTERN PyObject *_wrap_Cursor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9933 PyObject *resultobj = 0;
9934 wxCursor *arg1 = (wxCursor *) 0 ;
9935 bool result;
9936 void *argp1 = 0 ;
9937 int res1 = 0 ;
9938 PyObject *swig_obj[1] ;
9939
9940 if (!args) SWIG_fail;
9941 swig_obj[0] = args;
9942 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
9943 if (!SWIG_IsOK(res1)) {
9944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_IsOk" "', expected argument " "1"" of type '" "wxCursor *""'");
9945 }
9946 arg1 = reinterpret_cast< wxCursor * >(argp1);
9947 {
9948 PyThreadState* __tstate = wxPyBeginAllowThreads();
9949 result = (bool)(arg1)->IsOk();
9950 wxPyEndAllowThreads(__tstate);
9951 if (PyErr_Occurred()) SWIG_fail;
9952 }
9953 {
9954 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9955 }
9956 return resultobj;
9957 fail:
9958 return NULL;
9959 }
9960
9961
9962 SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9963 PyObject *obj;
9964 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9965 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
9966 return SWIG_Py_Void();
9967 }
9968
9969 SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9970 return SWIG_Python_InitShadowInstance(args);
9971 }
9972
9973 SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9974 PyObject *resultobj = 0;
9975 int arg1 = (int) 0 ;
9976 int arg2 = (int) 0 ;
9977 int arg3 = (int) 0 ;
9978 int arg4 = (int) 0 ;
9979 wxRegion *result = 0 ;
9980 int val1 ;
9981 int ecode1 = 0 ;
9982 int val2 ;
9983 int ecode2 = 0 ;
9984 int val3 ;
9985 int ecode3 = 0 ;
9986 int val4 ;
9987 int ecode4 = 0 ;
9988 PyObject * obj0 = 0 ;
9989 PyObject * obj1 = 0 ;
9990 PyObject * obj2 = 0 ;
9991 PyObject * obj3 = 0 ;
9992 char * kwnames[] = {
9993 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
9994 };
9995
9996 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9997 if (obj0) {
9998 ecode1 = SWIG_AsVal_int(obj0, &val1);
9999 if (!SWIG_IsOK(ecode1)) {
10000 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
10001 }
10002 arg1 = static_cast< int >(val1);
10003 }
10004 if (obj1) {
10005 ecode2 = SWIG_AsVal_int(obj1, &val2);
10006 if (!SWIG_IsOK(ecode2)) {
10007 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
10008 }
10009 arg2 = static_cast< int >(val2);
10010 }
10011 if (obj2) {
10012 ecode3 = SWIG_AsVal_int(obj2, &val3);
10013 if (!SWIG_IsOK(ecode3)) {
10014 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
10015 }
10016 arg3 = static_cast< int >(val3);
10017 }
10018 if (obj3) {
10019 ecode4 = SWIG_AsVal_int(obj3, &val4);
10020 if (!SWIG_IsOK(ecode4)) {
10021 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
10022 }
10023 arg4 = static_cast< int >(val4);
10024 }
10025 {
10026 if (!wxPyCheckForApp()) SWIG_fail;
10027 PyThreadState* __tstate = wxPyBeginAllowThreads();
10028 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
10029 wxPyEndAllowThreads(__tstate);
10030 if (PyErr_Occurred()) SWIG_fail;
10031 }
10032 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
10033 return resultobj;
10034 fail:
10035 return NULL;
10036 }
10037
10038
10039 SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10040 PyObject *resultobj = 0;
10041 wxBitmap *arg1 = 0 ;
10042 wxRegion *result = 0 ;
10043 void *argp1 = 0 ;
10044 int res1 = 0 ;
10045 PyObject * obj0 = 0 ;
10046 char * kwnames[] = {
10047 (char *) "bmp", NULL
10048 };
10049
10050 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
10051 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10052 if (!SWIG_IsOK(res1)) {
10053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10054 }
10055 if (!argp1) {
10056 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10057 }
10058 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10059 {
10060 if (!wxPyCheckForApp()) SWIG_fail;
10061 PyThreadState* __tstate = wxPyBeginAllowThreads();
10062 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
10063 wxPyEndAllowThreads(__tstate);
10064 if (PyErr_Occurred()) SWIG_fail;
10065 }
10066 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10067 return resultobj;
10068 fail:
10069 return NULL;
10070 }
10071
10072
10073 SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10074 PyObject *resultobj = 0;
10075 wxBitmap *arg1 = 0 ;
10076 wxColour *arg2 = 0 ;
10077 int arg3 = (int) 0 ;
10078 wxRegion *result = 0 ;
10079 void *argp1 = 0 ;
10080 int res1 = 0 ;
10081 wxColour temp2 ;
10082 int val3 ;
10083 int ecode3 = 0 ;
10084 PyObject * obj0 = 0 ;
10085 PyObject * obj1 = 0 ;
10086 PyObject * obj2 = 0 ;
10087 char * kwnames[] = {
10088 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
10089 };
10090
10091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10092 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10093 if (!SWIG_IsOK(res1)) {
10094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10095 }
10096 if (!argp1) {
10097 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10098 }
10099 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10100 {
10101 arg2 = &temp2;
10102 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10103 }
10104 if (obj2) {
10105 ecode3 = SWIG_AsVal_int(obj2, &val3);
10106 if (!SWIG_IsOK(ecode3)) {
10107 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
10108 }
10109 arg3 = static_cast< int >(val3);
10110 }
10111 {
10112 if (!wxPyCheckForApp()) SWIG_fail;
10113 PyThreadState* __tstate = wxPyBeginAllowThreads();
10114 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
10115 wxPyEndAllowThreads(__tstate);
10116 if (PyErr_Occurred()) SWIG_fail;
10117 }
10118 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10119 return resultobj;
10120 fail:
10121 return NULL;
10122 }
10123
10124
10125 SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10126 PyObject *resultobj = 0;
10127 int arg1 ;
10128 wxPoint *arg2 = (wxPoint *) 0 ;
10129 int arg3 = (int) wxWINDING_RULE ;
10130 wxRegion *result = 0 ;
10131 int val3 ;
10132 int ecode3 = 0 ;
10133 PyObject * obj0 = 0 ;
10134 PyObject * obj1 = 0 ;
10135 char * kwnames[] = {
10136 (char *) "points",(char *) "fillStyle", NULL
10137 };
10138
10139 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
10140 {
10141 arg2 = wxPoint_LIST_helper(obj0, &arg1);
10142 if (arg2 == NULL) SWIG_fail;
10143 }
10144 if (obj1) {
10145 ecode3 = SWIG_AsVal_int(obj1, &val3);
10146 if (!SWIG_IsOK(ecode3)) {
10147 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
10148 }
10149 arg3 = static_cast< int >(val3);
10150 }
10151 {
10152 if (!wxPyCheckForApp()) SWIG_fail;
10153 PyThreadState* __tstate = wxPyBeginAllowThreads();
10154 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
10155 wxPyEndAllowThreads(__tstate);
10156 if (PyErr_Occurred()) SWIG_fail;
10157 }
10158 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10159 {
10160 if (arg2) delete [] arg2;
10161 }
10162 return resultobj;
10163 fail:
10164 {
10165 if (arg2) delete [] arg2;
10166 }
10167 return NULL;
10168 }
10169
10170
10171 SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10172 PyObject *resultobj = 0;
10173 wxRegion *arg1 = (wxRegion *) 0 ;
10174 void *argp1 = 0 ;
10175 int res1 = 0 ;
10176 PyObject *swig_obj[1] ;
10177
10178 if (!args) SWIG_fail;
10179 swig_obj[0] = args;
10180 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
10181 if (!SWIG_IsOK(res1)) {
10182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
10183 }
10184 arg1 = reinterpret_cast< wxRegion * >(argp1);
10185 {
10186 PyThreadState* __tstate = wxPyBeginAllowThreads();
10187 delete arg1;
10188
10189 wxPyEndAllowThreads(__tstate);
10190 if (PyErr_Occurred()) SWIG_fail;
10191 }
10192 resultobj = SWIG_Py_Void();
10193 return resultobj;
10194 fail:
10195 return NULL;
10196 }
10197
10198
10199 SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10200 PyObject *resultobj = 0;
10201 wxRegion *arg1 = (wxRegion *) 0 ;
10202 void *argp1 = 0 ;
10203 int res1 = 0 ;
10204 PyObject *swig_obj[1] ;
10205
10206 if (!args) SWIG_fail;
10207 swig_obj[0] = args;
10208 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10209 if (!SWIG_IsOK(res1)) {
10210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
10211 }
10212 arg1 = reinterpret_cast< wxRegion * >(argp1);
10213 {
10214 PyThreadState* __tstate = wxPyBeginAllowThreads();
10215 (arg1)->Clear();
10216 wxPyEndAllowThreads(__tstate);
10217 if (PyErr_Occurred()) SWIG_fail;
10218 }
10219 resultobj = SWIG_Py_Void();
10220 return resultobj;
10221 fail:
10222 return NULL;
10223 }
10224
10225
10226 SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10227 PyObject *resultobj = 0;
10228 wxRegion *arg1 = (wxRegion *) 0 ;
10229 int arg2 ;
10230 int arg3 ;
10231 bool result;
10232 void *argp1 = 0 ;
10233 int res1 = 0 ;
10234 int val2 ;
10235 int ecode2 = 0 ;
10236 int val3 ;
10237 int ecode3 = 0 ;
10238 PyObject * obj0 = 0 ;
10239 PyObject * obj1 = 0 ;
10240 PyObject * obj2 = 0 ;
10241 char * kwnames[] = {
10242 (char *) "self",(char *) "x",(char *) "y", NULL
10243 };
10244
10245 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10246 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10247 if (!SWIG_IsOK(res1)) {
10248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
10249 }
10250 arg1 = reinterpret_cast< wxRegion * >(argp1);
10251 ecode2 = SWIG_AsVal_int(obj1, &val2);
10252 if (!SWIG_IsOK(ecode2)) {
10253 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
10254 }
10255 arg2 = static_cast< int >(val2);
10256 ecode3 = SWIG_AsVal_int(obj2, &val3);
10257 if (!SWIG_IsOK(ecode3)) {
10258 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
10259 }
10260 arg3 = static_cast< int >(val3);
10261 {
10262 PyThreadState* __tstate = wxPyBeginAllowThreads();
10263 result = (bool)(arg1)->Offset(arg2,arg3);
10264 wxPyEndAllowThreads(__tstate);
10265 if (PyErr_Occurred()) SWIG_fail;
10266 }
10267 {
10268 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10269 }
10270 return resultobj;
10271 fail:
10272 return NULL;
10273 }
10274
10275
10276 SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10277 PyObject *resultobj = 0;
10278 wxRegion *arg1 = (wxRegion *) 0 ;
10279 int arg2 ;
10280 int arg3 ;
10281 wxRegionContain result;
10282 void *argp1 = 0 ;
10283 int res1 = 0 ;
10284 int val2 ;
10285 int ecode2 = 0 ;
10286 int val3 ;
10287 int ecode3 = 0 ;
10288 PyObject * obj0 = 0 ;
10289 PyObject * obj1 = 0 ;
10290 PyObject * obj2 = 0 ;
10291 char * kwnames[] = {
10292 (char *) "self",(char *) "x",(char *) "y", NULL
10293 };
10294
10295 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10296 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10297 if (!SWIG_IsOK(res1)) {
10298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
10299 }
10300 arg1 = reinterpret_cast< wxRegion * >(argp1);
10301 ecode2 = SWIG_AsVal_int(obj1, &val2);
10302 if (!SWIG_IsOK(ecode2)) {
10303 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
10304 }
10305 arg2 = static_cast< int >(val2);
10306 ecode3 = SWIG_AsVal_int(obj2, &val3);
10307 if (!SWIG_IsOK(ecode3)) {
10308 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
10309 }
10310 arg3 = static_cast< int >(val3);
10311 {
10312 PyThreadState* __tstate = wxPyBeginAllowThreads();
10313 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
10314 wxPyEndAllowThreads(__tstate);
10315 if (PyErr_Occurred()) SWIG_fail;
10316 }
10317 resultobj = SWIG_From_int(static_cast< int >(result));
10318 return resultobj;
10319 fail:
10320 return NULL;
10321 }
10322
10323
10324 SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10325 PyObject *resultobj = 0;
10326 wxRegion *arg1 = (wxRegion *) 0 ;
10327 wxPoint *arg2 = 0 ;
10328 wxRegionContain result;
10329 void *argp1 = 0 ;
10330 int res1 = 0 ;
10331 wxPoint temp2 ;
10332 PyObject * obj0 = 0 ;
10333 PyObject * obj1 = 0 ;
10334 char * kwnames[] = {
10335 (char *) "self",(char *) "pt", NULL
10336 };
10337
10338 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
10339 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10340 if (!SWIG_IsOK(res1)) {
10341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
10342 }
10343 arg1 = reinterpret_cast< wxRegion * >(argp1);
10344 {
10345 arg2 = &temp2;
10346 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10347 }
10348 {
10349 PyThreadState* __tstate = wxPyBeginAllowThreads();
10350 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
10351 wxPyEndAllowThreads(__tstate);
10352 if (PyErr_Occurred()) SWIG_fail;
10353 }
10354 resultobj = SWIG_From_int(static_cast< int >(result));
10355 return resultobj;
10356 fail:
10357 return NULL;
10358 }
10359
10360
10361 SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10362 PyObject *resultobj = 0;
10363 wxRegion *arg1 = (wxRegion *) 0 ;
10364 wxRect *arg2 = 0 ;
10365 wxRegionContain result;
10366 void *argp1 = 0 ;
10367 int res1 = 0 ;
10368 wxRect temp2 ;
10369 PyObject * obj0 = 0 ;
10370 PyObject * obj1 = 0 ;
10371 char * kwnames[] = {
10372 (char *) "self",(char *) "rect", NULL
10373 };
10374
10375 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
10376 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10377 if (!SWIG_IsOK(res1)) {
10378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10379 }
10380 arg1 = reinterpret_cast< wxRegion * >(argp1);
10381 {
10382 arg2 = &temp2;
10383 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10384 }
10385 {
10386 PyThreadState* __tstate = wxPyBeginAllowThreads();
10387 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
10388 wxPyEndAllowThreads(__tstate);
10389 if (PyErr_Occurred()) SWIG_fail;
10390 }
10391 resultobj = SWIG_From_int(static_cast< int >(result));
10392 return resultobj;
10393 fail:
10394 return NULL;
10395 }
10396
10397
10398 SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10399 PyObject *resultobj = 0;
10400 wxRegion *arg1 = (wxRegion *) 0 ;
10401 int arg2 ;
10402 int arg3 ;
10403 int arg4 ;
10404 int arg5 ;
10405 wxRegionContain result;
10406 void *argp1 = 0 ;
10407 int res1 = 0 ;
10408 int val2 ;
10409 int ecode2 = 0 ;
10410 int val3 ;
10411 int ecode3 = 0 ;
10412 int val4 ;
10413 int ecode4 = 0 ;
10414 int val5 ;
10415 int ecode5 = 0 ;
10416 PyObject * obj0 = 0 ;
10417 PyObject * obj1 = 0 ;
10418 PyObject * obj2 = 0 ;
10419 PyObject * obj3 = 0 ;
10420 PyObject * obj4 = 0 ;
10421 char * kwnames[] = {
10422 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
10423 };
10424
10425 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10426 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10427 if (!SWIG_IsOK(res1)) {
10428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
10429 }
10430 arg1 = reinterpret_cast< wxRegion * >(argp1);
10431 ecode2 = SWIG_AsVal_int(obj1, &val2);
10432 if (!SWIG_IsOK(ecode2)) {
10433 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
10434 }
10435 arg2 = static_cast< int >(val2);
10436 ecode3 = SWIG_AsVal_int(obj2, &val3);
10437 if (!SWIG_IsOK(ecode3)) {
10438 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
10439 }
10440 arg3 = static_cast< int >(val3);
10441 ecode4 = SWIG_AsVal_int(obj3, &val4);
10442 if (!SWIG_IsOK(ecode4)) {
10443 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
10444 }
10445 arg4 = static_cast< int >(val4);
10446 ecode5 = SWIG_AsVal_int(obj4, &val5);
10447 if (!SWIG_IsOK(ecode5)) {
10448 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
10449 }
10450 arg5 = static_cast< int >(val5);
10451 {
10452 PyThreadState* __tstate = wxPyBeginAllowThreads();
10453 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
10454 wxPyEndAllowThreads(__tstate);
10455 if (PyErr_Occurred()) SWIG_fail;
10456 }
10457 resultobj = SWIG_From_int(static_cast< int >(result));
10458 return resultobj;
10459 fail:
10460 return NULL;
10461 }
10462
10463
10464 SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10465 PyObject *resultobj = 0;
10466 wxRegion *arg1 = (wxRegion *) 0 ;
10467 wxRect result;
10468 void *argp1 = 0 ;
10469 int res1 = 0 ;
10470 PyObject *swig_obj[1] ;
10471
10472 if (!args) SWIG_fail;
10473 swig_obj[0] = args;
10474 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10475 if (!SWIG_IsOK(res1)) {
10476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
10477 }
10478 arg1 = reinterpret_cast< wxRegion * >(argp1);
10479 {
10480 PyThreadState* __tstate = wxPyBeginAllowThreads();
10481 result = (arg1)->GetBox();
10482 wxPyEndAllowThreads(__tstate);
10483 if (PyErr_Occurred()) SWIG_fail;
10484 }
10485 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
10486 return resultobj;
10487 fail:
10488 return NULL;
10489 }
10490
10491
10492 SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10493 PyObject *resultobj = 0;
10494 wxRegion *arg1 = (wxRegion *) 0 ;
10495 int arg2 ;
10496 int arg3 ;
10497 int arg4 ;
10498 int arg5 ;
10499 bool result;
10500 void *argp1 = 0 ;
10501 int res1 = 0 ;
10502 int val2 ;
10503 int ecode2 = 0 ;
10504 int val3 ;
10505 int ecode3 = 0 ;
10506 int val4 ;
10507 int ecode4 = 0 ;
10508 int val5 ;
10509 int ecode5 = 0 ;
10510 PyObject * obj0 = 0 ;
10511 PyObject * obj1 = 0 ;
10512 PyObject * obj2 = 0 ;
10513 PyObject * obj3 = 0 ;
10514 PyObject * obj4 = 0 ;
10515 char * kwnames[] = {
10516 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10517 };
10518
10519 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10520 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10521 if (!SWIG_IsOK(res1)) {
10522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
10523 }
10524 arg1 = reinterpret_cast< wxRegion * >(argp1);
10525 ecode2 = SWIG_AsVal_int(obj1, &val2);
10526 if (!SWIG_IsOK(ecode2)) {
10527 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
10528 }
10529 arg2 = static_cast< int >(val2);
10530 ecode3 = SWIG_AsVal_int(obj2, &val3);
10531 if (!SWIG_IsOK(ecode3)) {
10532 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
10533 }
10534 arg3 = static_cast< int >(val3);
10535 ecode4 = SWIG_AsVal_int(obj3, &val4);
10536 if (!SWIG_IsOK(ecode4)) {
10537 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
10538 }
10539 arg4 = static_cast< int >(val4);
10540 ecode5 = SWIG_AsVal_int(obj4, &val5);
10541 if (!SWIG_IsOK(ecode5)) {
10542 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
10543 }
10544 arg5 = static_cast< int >(val5);
10545 {
10546 PyThreadState* __tstate = wxPyBeginAllowThreads();
10547 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
10548 wxPyEndAllowThreads(__tstate);
10549 if (PyErr_Occurred()) SWIG_fail;
10550 }
10551 {
10552 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10553 }
10554 return resultobj;
10555 fail:
10556 return NULL;
10557 }
10558
10559
10560 SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10561 PyObject *resultobj = 0;
10562 wxRegion *arg1 = (wxRegion *) 0 ;
10563 wxRect *arg2 = 0 ;
10564 bool result;
10565 void *argp1 = 0 ;
10566 int res1 = 0 ;
10567 wxRect temp2 ;
10568 PyObject * obj0 = 0 ;
10569 PyObject * obj1 = 0 ;
10570 char * kwnames[] = {
10571 (char *) "self",(char *) "rect", NULL
10572 };
10573
10574 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
10575 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10576 if (!SWIG_IsOK(res1)) {
10577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10578 }
10579 arg1 = reinterpret_cast< wxRegion * >(argp1);
10580 {
10581 arg2 = &temp2;
10582 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10583 }
10584 {
10585 PyThreadState* __tstate = wxPyBeginAllowThreads();
10586 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
10587 wxPyEndAllowThreads(__tstate);
10588 if (PyErr_Occurred()) SWIG_fail;
10589 }
10590 {
10591 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10592 }
10593 return resultobj;
10594 fail:
10595 return NULL;
10596 }
10597
10598
10599 SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10600 PyObject *resultobj = 0;
10601 wxRegion *arg1 = (wxRegion *) 0 ;
10602 wxRegion *arg2 = 0 ;
10603 bool result;
10604 void *argp1 = 0 ;
10605 int res1 = 0 ;
10606 void *argp2 = 0 ;
10607 int res2 = 0 ;
10608 PyObject * obj0 = 0 ;
10609 PyObject * obj1 = 0 ;
10610 char * kwnames[] = {
10611 (char *) "self",(char *) "region", NULL
10612 };
10613
10614 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10615 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10616 if (!SWIG_IsOK(res1)) {
10617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10618 }
10619 arg1 = reinterpret_cast< wxRegion * >(argp1);
10620 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10621 if (!SWIG_IsOK(res2)) {
10622 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10623 }
10624 if (!argp2) {
10625 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10626 }
10627 arg2 = reinterpret_cast< wxRegion * >(argp2);
10628 {
10629 PyThreadState* __tstate = wxPyBeginAllowThreads();
10630 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
10631 wxPyEndAllowThreads(__tstate);
10632 if (PyErr_Occurred()) SWIG_fail;
10633 }
10634 {
10635 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10636 }
10637 return resultobj;
10638 fail:
10639 return NULL;
10640 }
10641
10642
10643 SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10644 PyObject *resultobj = 0;
10645 wxRegion *arg1 = (wxRegion *) 0 ;
10646 bool result;
10647 void *argp1 = 0 ;
10648 int res1 = 0 ;
10649 PyObject *swig_obj[1] ;
10650
10651 if (!args) SWIG_fail;
10652 swig_obj[0] = args;
10653 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10654 if (!SWIG_IsOK(res1)) {
10655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
10656 }
10657 arg1 = reinterpret_cast< wxRegion * >(argp1);
10658 {
10659 PyThreadState* __tstate = wxPyBeginAllowThreads();
10660 result = (bool)(arg1)->IsEmpty();
10661 wxPyEndAllowThreads(__tstate);
10662 if (PyErr_Occurred()) SWIG_fail;
10663 }
10664 {
10665 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10666 }
10667 return resultobj;
10668 fail:
10669 return NULL;
10670 }
10671
10672
10673 SWIGINTERN PyObject *_wrap_Region_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10674 PyObject *resultobj = 0;
10675 wxRegion *arg1 = (wxRegion *) 0 ;
10676 wxRegion *arg2 = 0 ;
10677 bool result;
10678 void *argp1 = 0 ;
10679 int res1 = 0 ;
10680 void *argp2 = 0 ;
10681 int res2 = 0 ;
10682 PyObject * obj0 = 0 ;
10683 PyObject * obj1 = 0 ;
10684 char * kwnames[] = {
10685 (char *) "self",(char *) "region", NULL
10686 };
10687
10688 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
10689 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10690 if (!SWIG_IsOK(res1)) {
10691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEqual" "', expected argument " "1"" of type '" "wxRegion const *""'");
10692 }
10693 arg1 = reinterpret_cast< wxRegion * >(argp1);
10694 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10695 if (!SWIG_IsOK(res2)) {
10696 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
10697 }
10698 if (!argp2) {
10699 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
10700 }
10701 arg2 = reinterpret_cast< wxRegion * >(argp2);
10702 {
10703 PyThreadState* __tstate = wxPyBeginAllowThreads();
10704 result = (bool)((wxRegion const *)arg1)->IsEqual((wxRegion const &)*arg2);
10705 wxPyEndAllowThreads(__tstate);
10706 if (PyErr_Occurred()) SWIG_fail;
10707 }
10708 {
10709 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10710 }
10711 return resultobj;
10712 fail:
10713 return NULL;
10714 }
10715
10716
10717 SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10718 PyObject *resultobj = 0;
10719 wxRegion *arg1 = (wxRegion *) 0 ;
10720 int arg2 ;
10721 int arg3 ;
10722 int arg4 ;
10723 int arg5 ;
10724 bool result;
10725 void *argp1 = 0 ;
10726 int res1 = 0 ;
10727 int val2 ;
10728 int ecode2 = 0 ;
10729 int val3 ;
10730 int ecode3 = 0 ;
10731 int val4 ;
10732 int ecode4 = 0 ;
10733 int val5 ;
10734 int ecode5 = 0 ;
10735 PyObject * obj0 = 0 ;
10736 PyObject * obj1 = 0 ;
10737 PyObject * obj2 = 0 ;
10738 PyObject * obj3 = 0 ;
10739 PyObject * obj4 = 0 ;
10740 char * kwnames[] = {
10741 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10742 };
10743
10744 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10745 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10746 if (!SWIG_IsOK(res1)) {
10747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
10748 }
10749 arg1 = reinterpret_cast< wxRegion * >(argp1);
10750 ecode2 = SWIG_AsVal_int(obj1, &val2);
10751 if (!SWIG_IsOK(ecode2)) {
10752 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
10753 }
10754 arg2 = static_cast< int >(val2);
10755 ecode3 = SWIG_AsVal_int(obj2, &val3);
10756 if (!SWIG_IsOK(ecode3)) {
10757 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
10758 }
10759 arg3 = static_cast< int >(val3);
10760 ecode4 = SWIG_AsVal_int(obj3, &val4);
10761 if (!SWIG_IsOK(ecode4)) {
10762 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
10763 }
10764 arg4 = static_cast< int >(val4);
10765 ecode5 = SWIG_AsVal_int(obj4, &val5);
10766 if (!SWIG_IsOK(ecode5)) {
10767 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
10768 }
10769 arg5 = static_cast< int >(val5);
10770 {
10771 PyThreadState* __tstate = wxPyBeginAllowThreads();
10772 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
10773 wxPyEndAllowThreads(__tstate);
10774 if (PyErr_Occurred()) SWIG_fail;
10775 }
10776 {
10777 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10778 }
10779 return resultobj;
10780 fail:
10781 return NULL;
10782 }
10783
10784
10785 SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10786 PyObject *resultobj = 0;
10787 wxRegion *arg1 = (wxRegion *) 0 ;
10788 wxRect *arg2 = 0 ;
10789 bool result;
10790 void *argp1 = 0 ;
10791 int res1 = 0 ;
10792 wxRect temp2 ;
10793 PyObject * obj0 = 0 ;
10794 PyObject * obj1 = 0 ;
10795 char * kwnames[] = {
10796 (char *) "self",(char *) "rect", NULL
10797 };
10798
10799 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
10800 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10801 if (!SWIG_IsOK(res1)) {
10802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10803 }
10804 arg1 = reinterpret_cast< wxRegion * >(argp1);
10805 {
10806 arg2 = &temp2;
10807 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10808 }
10809 {
10810 PyThreadState* __tstate = wxPyBeginAllowThreads();
10811 result = (bool)(arg1)->Union((wxRect const &)*arg2);
10812 wxPyEndAllowThreads(__tstate);
10813 if (PyErr_Occurred()) SWIG_fail;
10814 }
10815 {
10816 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10817 }
10818 return resultobj;
10819 fail:
10820 return NULL;
10821 }
10822
10823
10824 SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10825 PyObject *resultobj = 0;
10826 wxRegion *arg1 = (wxRegion *) 0 ;
10827 wxRegion *arg2 = 0 ;
10828 bool result;
10829 void *argp1 = 0 ;
10830 int res1 = 0 ;
10831 void *argp2 = 0 ;
10832 int res2 = 0 ;
10833 PyObject * obj0 = 0 ;
10834 PyObject * obj1 = 0 ;
10835 char * kwnames[] = {
10836 (char *) "self",(char *) "region", NULL
10837 };
10838
10839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10840 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10841 if (!SWIG_IsOK(res1)) {
10842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10843 }
10844 arg1 = reinterpret_cast< wxRegion * >(argp1);
10845 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10846 if (!SWIG_IsOK(res2)) {
10847 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10848 }
10849 if (!argp2) {
10850 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10851 }
10852 arg2 = reinterpret_cast< wxRegion * >(argp2);
10853 {
10854 PyThreadState* __tstate = wxPyBeginAllowThreads();
10855 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
10856 wxPyEndAllowThreads(__tstate);
10857 if (PyErr_Occurred()) SWIG_fail;
10858 }
10859 {
10860 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10861 }
10862 return resultobj;
10863 fail:
10864 return NULL;
10865 }
10866
10867
10868 SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10869 PyObject *resultobj = 0;
10870 wxRegion *arg1 = (wxRegion *) 0 ;
10871 int arg2 ;
10872 int arg3 ;
10873 int arg4 ;
10874 int arg5 ;
10875 bool result;
10876 void *argp1 = 0 ;
10877 int res1 = 0 ;
10878 int val2 ;
10879 int ecode2 = 0 ;
10880 int val3 ;
10881 int ecode3 = 0 ;
10882 int val4 ;
10883 int ecode4 = 0 ;
10884 int val5 ;
10885 int ecode5 = 0 ;
10886 PyObject * obj0 = 0 ;
10887 PyObject * obj1 = 0 ;
10888 PyObject * obj2 = 0 ;
10889 PyObject * obj3 = 0 ;
10890 PyObject * obj4 = 0 ;
10891 char * kwnames[] = {
10892 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10893 };
10894
10895 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10896 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10897 if (!SWIG_IsOK(res1)) {
10898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
10899 }
10900 arg1 = reinterpret_cast< wxRegion * >(argp1);
10901 ecode2 = SWIG_AsVal_int(obj1, &val2);
10902 if (!SWIG_IsOK(ecode2)) {
10903 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
10904 }
10905 arg2 = static_cast< int >(val2);
10906 ecode3 = SWIG_AsVal_int(obj2, &val3);
10907 if (!SWIG_IsOK(ecode3)) {
10908 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
10909 }
10910 arg3 = static_cast< int >(val3);
10911 ecode4 = SWIG_AsVal_int(obj3, &val4);
10912 if (!SWIG_IsOK(ecode4)) {
10913 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
10914 }
10915 arg4 = static_cast< int >(val4);
10916 ecode5 = SWIG_AsVal_int(obj4, &val5);
10917 if (!SWIG_IsOK(ecode5)) {
10918 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
10919 }
10920 arg5 = static_cast< int >(val5);
10921 {
10922 PyThreadState* __tstate = wxPyBeginAllowThreads();
10923 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
10924 wxPyEndAllowThreads(__tstate);
10925 if (PyErr_Occurred()) SWIG_fail;
10926 }
10927 {
10928 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10929 }
10930 return resultobj;
10931 fail:
10932 return NULL;
10933 }
10934
10935
10936 SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10937 PyObject *resultobj = 0;
10938 wxRegion *arg1 = (wxRegion *) 0 ;
10939 wxRect *arg2 = 0 ;
10940 bool result;
10941 void *argp1 = 0 ;
10942 int res1 = 0 ;
10943 wxRect temp2 ;
10944 PyObject * obj0 = 0 ;
10945 PyObject * obj1 = 0 ;
10946 char * kwnames[] = {
10947 (char *) "self",(char *) "rect", NULL
10948 };
10949
10950 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
10951 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10952 if (!SWIG_IsOK(res1)) {
10953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10954 }
10955 arg1 = reinterpret_cast< wxRegion * >(argp1);
10956 {
10957 arg2 = &temp2;
10958 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10959 }
10960 {
10961 PyThreadState* __tstate = wxPyBeginAllowThreads();
10962 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
10963 wxPyEndAllowThreads(__tstate);
10964 if (PyErr_Occurred()) SWIG_fail;
10965 }
10966 {
10967 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10968 }
10969 return resultobj;
10970 fail:
10971 return NULL;
10972 }
10973
10974
10975 SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10976 PyObject *resultobj = 0;
10977 wxRegion *arg1 = (wxRegion *) 0 ;
10978 wxRegion *arg2 = 0 ;
10979 bool result;
10980 void *argp1 = 0 ;
10981 int res1 = 0 ;
10982 void *argp2 = 0 ;
10983 int res2 = 0 ;
10984 PyObject * obj0 = 0 ;
10985 PyObject * obj1 = 0 ;
10986 char * kwnames[] = {
10987 (char *) "self",(char *) "region", NULL
10988 };
10989
10990 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10991 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10992 if (!SWIG_IsOK(res1)) {
10993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10994 }
10995 arg1 = reinterpret_cast< wxRegion * >(argp1);
10996 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10997 if (!SWIG_IsOK(res2)) {
10998 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10999 }
11000 if (!argp2) {
11001 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11002 }
11003 arg2 = reinterpret_cast< wxRegion * >(argp2);
11004 {
11005 PyThreadState* __tstate = wxPyBeginAllowThreads();
11006 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
11007 wxPyEndAllowThreads(__tstate);
11008 if (PyErr_Occurred()) SWIG_fail;
11009 }
11010 {
11011 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11012 }
11013 return resultobj;
11014 fail:
11015 return NULL;
11016 }
11017
11018
11019 SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11020 PyObject *resultobj = 0;
11021 wxRegion *arg1 = (wxRegion *) 0 ;
11022 int arg2 ;
11023 int arg3 ;
11024 int arg4 ;
11025 int arg5 ;
11026 bool result;
11027 void *argp1 = 0 ;
11028 int res1 = 0 ;
11029 int val2 ;
11030 int ecode2 = 0 ;
11031 int val3 ;
11032 int ecode3 = 0 ;
11033 int val4 ;
11034 int ecode4 = 0 ;
11035 int val5 ;
11036 int ecode5 = 0 ;
11037 PyObject * obj0 = 0 ;
11038 PyObject * obj1 = 0 ;
11039 PyObject * obj2 = 0 ;
11040 PyObject * obj3 = 0 ;
11041 PyObject * obj4 = 0 ;
11042 char * kwnames[] = {
11043 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11044 };
11045
11046 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11047 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11048 if (!SWIG_IsOK(res1)) {
11049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
11050 }
11051 arg1 = reinterpret_cast< wxRegion * >(argp1);
11052 ecode2 = SWIG_AsVal_int(obj1, &val2);
11053 if (!SWIG_IsOK(ecode2)) {
11054 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
11055 }
11056 arg2 = static_cast< int >(val2);
11057 ecode3 = SWIG_AsVal_int(obj2, &val3);
11058 if (!SWIG_IsOK(ecode3)) {
11059 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
11060 }
11061 arg3 = static_cast< int >(val3);
11062 ecode4 = SWIG_AsVal_int(obj3, &val4);
11063 if (!SWIG_IsOK(ecode4)) {
11064 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
11065 }
11066 arg4 = static_cast< int >(val4);
11067 ecode5 = SWIG_AsVal_int(obj4, &val5);
11068 if (!SWIG_IsOK(ecode5)) {
11069 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
11070 }
11071 arg5 = static_cast< int >(val5);
11072 {
11073 PyThreadState* __tstate = wxPyBeginAllowThreads();
11074 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
11075 wxPyEndAllowThreads(__tstate);
11076 if (PyErr_Occurred()) SWIG_fail;
11077 }
11078 {
11079 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11080 }
11081 return resultobj;
11082 fail:
11083 return NULL;
11084 }
11085
11086
11087 SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11088 PyObject *resultobj = 0;
11089 wxRegion *arg1 = (wxRegion *) 0 ;
11090 wxRect *arg2 = 0 ;
11091 bool result;
11092 void *argp1 = 0 ;
11093 int res1 = 0 ;
11094 wxRect temp2 ;
11095 PyObject * obj0 = 0 ;
11096 PyObject * obj1 = 0 ;
11097 char * kwnames[] = {
11098 (char *) "self",(char *) "rect", NULL
11099 };
11100
11101 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
11102 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11103 if (!SWIG_IsOK(res1)) {
11104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11105 }
11106 arg1 = reinterpret_cast< wxRegion * >(argp1);
11107 {
11108 arg2 = &temp2;
11109 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11110 }
11111 {
11112 PyThreadState* __tstate = wxPyBeginAllowThreads();
11113 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
11114 wxPyEndAllowThreads(__tstate);
11115 if (PyErr_Occurred()) SWIG_fail;
11116 }
11117 {
11118 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11119 }
11120 return resultobj;
11121 fail:
11122 return NULL;
11123 }
11124
11125
11126 SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11127 PyObject *resultobj = 0;
11128 wxRegion *arg1 = (wxRegion *) 0 ;
11129 wxRegion *arg2 = 0 ;
11130 bool result;
11131 void *argp1 = 0 ;
11132 int res1 = 0 ;
11133 void *argp2 = 0 ;
11134 int res2 = 0 ;
11135 PyObject * obj0 = 0 ;
11136 PyObject * obj1 = 0 ;
11137 char * kwnames[] = {
11138 (char *) "self",(char *) "region", NULL
11139 };
11140
11141 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11143 if (!SWIG_IsOK(res1)) {
11144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11145 }
11146 arg1 = reinterpret_cast< wxRegion * >(argp1);
11147 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11148 if (!SWIG_IsOK(res2)) {
11149 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11150 }
11151 if (!argp2) {
11152 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11153 }
11154 arg2 = reinterpret_cast< wxRegion * >(argp2);
11155 {
11156 PyThreadState* __tstate = wxPyBeginAllowThreads();
11157 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
11158 wxPyEndAllowThreads(__tstate);
11159 if (PyErr_Occurred()) SWIG_fail;
11160 }
11161 {
11162 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11163 }
11164 return resultobj;
11165 fail:
11166 return NULL;
11167 }
11168
11169
11170 SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11171 PyObject *resultobj = 0;
11172 wxRegion *arg1 = (wxRegion *) 0 ;
11173 SwigValueWrapper<wxBitmap > result;
11174 void *argp1 = 0 ;
11175 int res1 = 0 ;
11176 PyObject *swig_obj[1] ;
11177
11178 if (!args) SWIG_fail;
11179 swig_obj[0] = args;
11180 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11181 if (!SWIG_IsOK(res1)) {
11182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11183 }
11184 arg1 = reinterpret_cast< wxRegion * >(argp1);
11185 {
11186 PyThreadState* __tstate = wxPyBeginAllowThreads();
11187 result = (arg1)->ConvertToBitmap();
11188 wxPyEndAllowThreads(__tstate);
11189 if (PyErr_Occurred()) SWIG_fail;
11190 }
11191 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
11192 return resultobj;
11193 fail:
11194 return NULL;
11195 }
11196
11197
11198 SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11199 PyObject *resultobj = 0;
11200 wxRegion *arg1 = (wxRegion *) 0 ;
11201 wxBitmap *arg2 = 0 ;
11202 bool result;
11203 void *argp1 = 0 ;
11204 int res1 = 0 ;
11205 void *argp2 = 0 ;
11206 int res2 = 0 ;
11207 PyObject * obj0 = 0 ;
11208 PyObject * obj1 = 0 ;
11209 char * kwnames[] = {
11210 (char *) "self",(char *) "bmp", NULL
11211 };
11212
11213 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
11214 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11215 if (!SWIG_IsOK(res1)) {
11216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11217 }
11218 arg1 = reinterpret_cast< wxRegion * >(argp1);
11219 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11220 if (!SWIG_IsOK(res2)) {
11221 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11222 }
11223 if (!argp2) {
11224 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11225 }
11226 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11227 {
11228 PyThreadState* __tstate = wxPyBeginAllowThreads();
11229 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
11230 wxPyEndAllowThreads(__tstate);
11231 if (PyErr_Occurred()) SWIG_fail;
11232 }
11233 {
11234 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11235 }
11236 return resultobj;
11237 fail:
11238 return NULL;
11239 }
11240
11241
11242 SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11243 PyObject *resultobj = 0;
11244 wxRegion *arg1 = (wxRegion *) 0 ;
11245 wxBitmap *arg2 = 0 ;
11246 wxColour *arg3 = 0 ;
11247 int arg4 = (int) 0 ;
11248 bool result;
11249 void *argp1 = 0 ;
11250 int res1 = 0 ;
11251 void *argp2 = 0 ;
11252 int res2 = 0 ;
11253 wxColour temp3 ;
11254 int val4 ;
11255 int ecode4 = 0 ;
11256 PyObject * obj0 = 0 ;
11257 PyObject * obj1 = 0 ;
11258 PyObject * obj2 = 0 ;
11259 PyObject * obj3 = 0 ;
11260 char * kwnames[] = {
11261 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
11262 };
11263
11264 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
11265 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11266 if (!SWIG_IsOK(res1)) {
11267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
11268 }
11269 arg1 = reinterpret_cast< wxRegion * >(argp1);
11270 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11271 if (!SWIG_IsOK(res2)) {
11272 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11273 }
11274 if (!argp2) {
11275 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11276 }
11277 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11278 {
11279 arg3 = &temp3;
11280 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
11281 }
11282 if (obj3) {
11283 ecode4 = SWIG_AsVal_int(obj3, &val4);
11284 if (!SWIG_IsOK(ecode4)) {
11285 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
11286 }
11287 arg4 = static_cast< int >(val4);
11288 }
11289 {
11290 PyThreadState* __tstate = wxPyBeginAllowThreads();
11291 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
11292 wxPyEndAllowThreads(__tstate);
11293 if (PyErr_Occurred()) SWIG_fail;
11294 }
11295 {
11296 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11297 }
11298 return resultobj;
11299 fail:
11300 return NULL;
11301 }
11302
11303
11304 SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11305 PyObject *obj;
11306 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11307 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
11308 return SWIG_Py_Void();
11309 }
11310
11311 SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11312 return SWIG_Python_InitShadowInstance(args);
11313 }
11314
11315 SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11316 PyObject *resultobj = 0;
11317 wxRegion *arg1 = 0 ;
11318 wxRegionIterator *result = 0 ;
11319 void *argp1 = 0 ;
11320 int res1 = 0 ;
11321 PyObject * obj0 = 0 ;
11322 char * kwnames[] = {
11323 (char *) "region", NULL
11324 };
11325
11326 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
11327 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
11328 if (!SWIG_IsOK(res1)) {
11329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11330 }
11331 if (!argp1) {
11332 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11333 }
11334 arg1 = reinterpret_cast< wxRegion * >(argp1);
11335 {
11336 if (!wxPyCheckForApp()) SWIG_fail;
11337 PyThreadState* __tstate = wxPyBeginAllowThreads();
11338 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
11339 wxPyEndAllowThreads(__tstate);
11340 if (PyErr_Occurred()) SWIG_fail;
11341 }
11342 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
11343 return resultobj;
11344 fail:
11345 return NULL;
11346 }
11347
11348
11349 SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11350 PyObject *resultobj = 0;
11351 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11352 void *argp1 = 0 ;
11353 int res1 = 0 ;
11354 PyObject *swig_obj[1] ;
11355
11356 if (!args) SWIG_fail;
11357 swig_obj[0] = args;
11358 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
11359 if (!SWIG_IsOK(res1)) {
11360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11361 }
11362 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11363 {
11364 PyThreadState* __tstate = wxPyBeginAllowThreads();
11365 delete arg1;
11366
11367 wxPyEndAllowThreads(__tstate);
11368 if (PyErr_Occurred()) SWIG_fail;
11369 }
11370 resultobj = SWIG_Py_Void();
11371 return resultobj;
11372 fail:
11373 return NULL;
11374 }
11375
11376
11377 SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11378 PyObject *resultobj = 0;
11379 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11380 int result;
11381 void *argp1 = 0 ;
11382 int res1 = 0 ;
11383 PyObject *swig_obj[1] ;
11384
11385 if (!args) SWIG_fail;
11386 swig_obj[0] = args;
11387 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11388 if (!SWIG_IsOK(res1)) {
11389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11390 }
11391 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11392 {
11393 PyThreadState* __tstate = wxPyBeginAllowThreads();
11394 result = (int)(arg1)->GetX();
11395 wxPyEndAllowThreads(__tstate);
11396 if (PyErr_Occurred()) SWIG_fail;
11397 }
11398 resultobj = SWIG_From_int(static_cast< int >(result));
11399 return resultobj;
11400 fail:
11401 return NULL;
11402 }
11403
11404
11405 SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11406 PyObject *resultobj = 0;
11407 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11408 int result;
11409 void *argp1 = 0 ;
11410 int res1 = 0 ;
11411 PyObject *swig_obj[1] ;
11412
11413 if (!args) SWIG_fail;
11414 swig_obj[0] = args;
11415 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11416 if (!SWIG_IsOK(res1)) {
11417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11418 }
11419 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11420 {
11421 PyThreadState* __tstate = wxPyBeginAllowThreads();
11422 result = (int)(arg1)->GetY();
11423 wxPyEndAllowThreads(__tstate);
11424 if (PyErr_Occurred()) SWIG_fail;
11425 }
11426 resultobj = SWIG_From_int(static_cast< int >(result));
11427 return resultobj;
11428 fail:
11429 return NULL;
11430 }
11431
11432
11433 SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11434 PyObject *resultobj = 0;
11435 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11436 int result;
11437 void *argp1 = 0 ;
11438 int res1 = 0 ;
11439 PyObject *swig_obj[1] ;
11440
11441 if (!args) SWIG_fail;
11442 swig_obj[0] = args;
11443 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11444 if (!SWIG_IsOK(res1)) {
11445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11446 }
11447 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11448 {
11449 PyThreadState* __tstate = wxPyBeginAllowThreads();
11450 result = (int)(arg1)->GetW();
11451 wxPyEndAllowThreads(__tstate);
11452 if (PyErr_Occurred()) SWIG_fail;
11453 }
11454 resultobj = SWIG_From_int(static_cast< int >(result));
11455 return resultobj;
11456 fail:
11457 return NULL;
11458 }
11459
11460
11461 SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11462 PyObject *resultobj = 0;
11463 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11464 int result;
11465 void *argp1 = 0 ;
11466 int res1 = 0 ;
11467 PyObject *swig_obj[1] ;
11468
11469 if (!args) SWIG_fail;
11470 swig_obj[0] = args;
11471 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11472 if (!SWIG_IsOK(res1)) {
11473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11474 }
11475 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11476 {
11477 PyThreadState* __tstate = wxPyBeginAllowThreads();
11478 result = (int)(arg1)->GetWidth();
11479 wxPyEndAllowThreads(__tstate);
11480 if (PyErr_Occurred()) SWIG_fail;
11481 }
11482 resultobj = SWIG_From_int(static_cast< int >(result));
11483 return resultobj;
11484 fail:
11485 return NULL;
11486 }
11487
11488
11489 SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11490 PyObject *resultobj = 0;
11491 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11492 int result;
11493 void *argp1 = 0 ;
11494 int res1 = 0 ;
11495 PyObject *swig_obj[1] ;
11496
11497 if (!args) SWIG_fail;
11498 swig_obj[0] = args;
11499 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11500 if (!SWIG_IsOK(res1)) {
11501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11502 }
11503 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11504 {
11505 PyThreadState* __tstate = wxPyBeginAllowThreads();
11506 result = (int)(arg1)->GetH();
11507 wxPyEndAllowThreads(__tstate);
11508 if (PyErr_Occurred()) SWIG_fail;
11509 }
11510 resultobj = SWIG_From_int(static_cast< int >(result));
11511 return resultobj;
11512 fail:
11513 return NULL;
11514 }
11515
11516
11517 SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11518 PyObject *resultobj = 0;
11519 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11520 int result;
11521 void *argp1 = 0 ;
11522 int res1 = 0 ;
11523 PyObject *swig_obj[1] ;
11524
11525 if (!args) SWIG_fail;
11526 swig_obj[0] = args;
11527 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11528 if (!SWIG_IsOK(res1)) {
11529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11530 }
11531 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11532 {
11533 PyThreadState* __tstate = wxPyBeginAllowThreads();
11534 result = (int)(arg1)->GetHeight();
11535 wxPyEndAllowThreads(__tstate);
11536 if (PyErr_Occurred()) SWIG_fail;
11537 }
11538 resultobj = SWIG_From_int(static_cast< int >(result));
11539 return resultobj;
11540 fail:
11541 return NULL;
11542 }
11543
11544
11545 SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11546 PyObject *resultobj = 0;
11547 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11548 wxRect result;
11549 void *argp1 = 0 ;
11550 int res1 = 0 ;
11551 PyObject *swig_obj[1] ;
11552
11553 if (!args) SWIG_fail;
11554 swig_obj[0] = args;
11555 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11556 if (!SWIG_IsOK(res1)) {
11557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11558 }
11559 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11560 {
11561 PyThreadState* __tstate = wxPyBeginAllowThreads();
11562 result = (arg1)->GetRect();
11563 wxPyEndAllowThreads(__tstate);
11564 if (PyErr_Occurred()) SWIG_fail;
11565 }
11566 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
11567 return resultobj;
11568 fail:
11569 return NULL;
11570 }
11571
11572
11573 SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11574 PyObject *resultobj = 0;
11575 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11576 bool result;
11577 void *argp1 = 0 ;
11578 int res1 = 0 ;
11579 PyObject *swig_obj[1] ;
11580
11581 if (!args) SWIG_fail;
11582 swig_obj[0] = args;
11583 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11584 if (!SWIG_IsOK(res1)) {
11585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11586 }
11587 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11588 {
11589 PyThreadState* __tstate = wxPyBeginAllowThreads();
11590 result = (bool)(arg1)->HaveRects();
11591 wxPyEndAllowThreads(__tstate);
11592 if (PyErr_Occurred()) SWIG_fail;
11593 }
11594 {
11595 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11596 }
11597 return resultobj;
11598 fail:
11599 return NULL;
11600 }
11601
11602
11603 SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11604 PyObject *resultobj = 0;
11605 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11606 void *argp1 = 0 ;
11607 int res1 = 0 ;
11608 PyObject *swig_obj[1] ;
11609
11610 if (!args) SWIG_fail;
11611 swig_obj[0] = args;
11612 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11613 if (!SWIG_IsOK(res1)) {
11614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11615 }
11616 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11617 {
11618 PyThreadState* __tstate = wxPyBeginAllowThreads();
11619 (arg1)->Reset();
11620 wxPyEndAllowThreads(__tstate);
11621 if (PyErr_Occurred()) SWIG_fail;
11622 }
11623 resultobj = SWIG_Py_Void();
11624 return resultobj;
11625 fail:
11626 return NULL;
11627 }
11628
11629
11630 SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11631 PyObject *resultobj = 0;
11632 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11633 void *argp1 = 0 ;
11634 int res1 = 0 ;
11635 PyObject *swig_obj[1] ;
11636
11637 if (!args) SWIG_fail;
11638 swig_obj[0] = args;
11639 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11640 if (!SWIG_IsOK(res1)) {
11641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11642 }
11643 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11644 {
11645 PyThreadState* __tstate = wxPyBeginAllowThreads();
11646 wxRegionIterator_Next(arg1);
11647 wxPyEndAllowThreads(__tstate);
11648 if (PyErr_Occurred()) SWIG_fail;
11649 }
11650 resultobj = SWIG_Py_Void();
11651 return resultobj;
11652 fail:
11653 return NULL;
11654 }
11655
11656
11657 SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11658 PyObject *resultobj = 0;
11659 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11660 bool result;
11661 void *argp1 = 0 ;
11662 int res1 = 0 ;
11663 PyObject *swig_obj[1] ;
11664
11665 if (!args) SWIG_fail;
11666 swig_obj[0] = args;
11667 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11668 if (!SWIG_IsOK(res1)) {
11669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11670 }
11671 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11672 {
11673 PyThreadState* __tstate = wxPyBeginAllowThreads();
11674 result = (bool)wxRegionIterator___nonzero__(arg1);
11675 wxPyEndAllowThreads(__tstate);
11676 if (PyErr_Occurred()) SWIG_fail;
11677 }
11678 {
11679 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11680 }
11681 return resultobj;
11682 fail:
11683 return NULL;
11684 }
11685
11686
11687 SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11688 PyObject *obj;
11689 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11690 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
11691 return SWIG_Py_Void();
11692 }
11693
11694 SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11695 return SWIG_Python_InitShadowInstance(args);
11696 }
11697
11698 SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11699 PyObject *resultobj = 0;
11700 wxNativeFontInfo *result = 0 ;
11701
11702 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
11703 {
11704 PyThreadState* __tstate = wxPyBeginAllowThreads();
11705 result = (wxNativeFontInfo *)new wxNativeFontInfo();
11706 wxPyEndAllowThreads(__tstate);
11707 if (PyErr_Occurred()) SWIG_fail;
11708 }
11709 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
11710 return resultobj;
11711 fail:
11712 return NULL;
11713 }
11714
11715
11716 SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11717 PyObject *resultobj = 0;
11718 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11719 void *argp1 = 0 ;
11720 int res1 = 0 ;
11721 PyObject *swig_obj[1] ;
11722
11723 if (!args) SWIG_fail;
11724 swig_obj[0] = args;
11725 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
11726 if (!SWIG_IsOK(res1)) {
11727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11728 }
11729 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11730 {
11731 PyThreadState* __tstate = wxPyBeginAllowThreads();
11732 delete arg1;
11733
11734 wxPyEndAllowThreads(__tstate);
11735 if (PyErr_Occurred()) SWIG_fail;
11736 }
11737 resultobj = SWIG_Py_Void();
11738 return resultobj;
11739 fail:
11740 return NULL;
11741 }
11742
11743
11744 SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11745 PyObject *resultobj = 0;
11746 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11747 void *argp1 = 0 ;
11748 int res1 = 0 ;
11749 PyObject *swig_obj[1] ;
11750
11751 if (!args) SWIG_fail;
11752 swig_obj[0] = args;
11753 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11754 if (!SWIG_IsOK(res1)) {
11755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11756 }
11757 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11758 {
11759 PyThreadState* __tstate = wxPyBeginAllowThreads();
11760 (arg1)->Init();
11761 wxPyEndAllowThreads(__tstate);
11762 if (PyErr_Occurred()) SWIG_fail;
11763 }
11764 resultobj = SWIG_Py_Void();
11765 return resultobj;
11766 fail:
11767 return NULL;
11768 }
11769
11770
11771 SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11772 PyObject *resultobj = 0;
11773 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11774 wxFont *arg2 = 0 ;
11775 void *argp1 = 0 ;
11776 int res1 = 0 ;
11777 void *argp2 = 0 ;
11778 int res2 = 0 ;
11779 PyObject * obj0 = 0 ;
11780 PyObject * obj1 = 0 ;
11781 char * kwnames[] = {
11782 (char *) "self",(char *) "font", NULL
11783 };
11784
11785 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
11786 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11787 if (!SWIG_IsOK(res1)) {
11788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11789 }
11790 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11791 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
11792 if (!SWIG_IsOK(res2)) {
11793 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
11794 }
11795 if (!argp2) {
11796 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
11797 }
11798 arg2 = reinterpret_cast< wxFont * >(argp2);
11799 {
11800 PyThreadState* __tstate = wxPyBeginAllowThreads();
11801 (arg1)->InitFromFont((wxFont const &)*arg2);
11802 wxPyEndAllowThreads(__tstate);
11803 if (PyErr_Occurred()) SWIG_fail;
11804 }
11805 resultobj = SWIG_Py_Void();
11806 return resultobj;
11807 fail:
11808 return NULL;
11809 }
11810
11811
11812 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11813 PyObject *resultobj = 0;
11814 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11815 int result;
11816 void *argp1 = 0 ;
11817 int res1 = 0 ;
11818 PyObject *swig_obj[1] ;
11819
11820 if (!args) SWIG_fail;
11821 swig_obj[0] = args;
11822 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11823 if (!SWIG_IsOK(res1)) {
11824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11825 }
11826 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11827 {
11828 PyThreadState* __tstate = wxPyBeginAllowThreads();
11829 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
11830 wxPyEndAllowThreads(__tstate);
11831 if (PyErr_Occurred()) SWIG_fail;
11832 }
11833 resultobj = SWIG_From_int(static_cast< int >(result));
11834 return resultobj;
11835 fail:
11836 return NULL;
11837 }
11838
11839
11840 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11841 PyObject *resultobj = 0;
11842 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11843 wxFontStyle result;
11844 void *argp1 = 0 ;
11845 int res1 = 0 ;
11846 PyObject *swig_obj[1] ;
11847
11848 if (!args) SWIG_fail;
11849 swig_obj[0] = args;
11850 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11851 if (!SWIG_IsOK(res1)) {
11852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11853 }
11854 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11855 {
11856 PyThreadState* __tstate = wxPyBeginAllowThreads();
11857 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
11858 wxPyEndAllowThreads(__tstate);
11859 if (PyErr_Occurred()) SWIG_fail;
11860 }
11861 resultobj = SWIG_From_int(static_cast< int >(result));
11862 return resultobj;
11863 fail:
11864 return NULL;
11865 }
11866
11867
11868 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11869 PyObject *resultobj = 0;
11870 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11871 wxFontWeight result;
11872 void *argp1 = 0 ;
11873 int res1 = 0 ;
11874 PyObject *swig_obj[1] ;
11875
11876 if (!args) SWIG_fail;
11877 swig_obj[0] = args;
11878 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11879 if (!SWIG_IsOK(res1)) {
11880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11881 }
11882 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11883 {
11884 PyThreadState* __tstate = wxPyBeginAllowThreads();
11885 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
11886 wxPyEndAllowThreads(__tstate);
11887 if (PyErr_Occurred()) SWIG_fail;
11888 }
11889 resultobj = SWIG_From_int(static_cast< int >(result));
11890 return resultobj;
11891 fail:
11892 return NULL;
11893 }
11894
11895
11896 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11897 PyObject *resultobj = 0;
11898 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11899 bool result;
11900 void *argp1 = 0 ;
11901 int res1 = 0 ;
11902 PyObject *swig_obj[1] ;
11903
11904 if (!args) SWIG_fail;
11905 swig_obj[0] = args;
11906 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11907 if (!SWIG_IsOK(res1)) {
11908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11909 }
11910 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11911 {
11912 PyThreadState* __tstate = wxPyBeginAllowThreads();
11913 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
11914 wxPyEndAllowThreads(__tstate);
11915 if (PyErr_Occurred()) SWIG_fail;
11916 }
11917 {
11918 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11919 }
11920 return resultobj;
11921 fail:
11922 return NULL;
11923 }
11924
11925
11926 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11927 PyObject *resultobj = 0;
11928 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11929 wxString result;
11930 void *argp1 = 0 ;
11931 int res1 = 0 ;
11932 PyObject *swig_obj[1] ;
11933
11934 if (!args) SWIG_fail;
11935 swig_obj[0] = args;
11936 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11937 if (!SWIG_IsOK(res1)) {
11938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11939 }
11940 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11941 {
11942 PyThreadState* __tstate = wxPyBeginAllowThreads();
11943 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
11944 wxPyEndAllowThreads(__tstate);
11945 if (PyErr_Occurred()) SWIG_fail;
11946 }
11947 {
11948 #if wxUSE_UNICODE
11949 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11950 #else
11951 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11952 #endif
11953 }
11954 return resultobj;
11955 fail:
11956 return NULL;
11957 }
11958
11959
11960 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11961 PyObject *resultobj = 0;
11962 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11963 wxFontFamily result;
11964 void *argp1 = 0 ;
11965 int res1 = 0 ;
11966 PyObject *swig_obj[1] ;
11967
11968 if (!args) SWIG_fail;
11969 swig_obj[0] = args;
11970 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11971 if (!SWIG_IsOK(res1)) {
11972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11973 }
11974 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11975 {
11976 PyThreadState* __tstate = wxPyBeginAllowThreads();
11977 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
11978 wxPyEndAllowThreads(__tstate);
11979 if (PyErr_Occurred()) SWIG_fail;
11980 }
11981 resultobj = SWIG_From_int(static_cast< int >(result));
11982 return resultobj;
11983 fail:
11984 return NULL;
11985 }
11986
11987
11988 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11989 PyObject *resultobj = 0;
11990 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11991 wxFontEncoding result;
11992 void *argp1 = 0 ;
11993 int res1 = 0 ;
11994 PyObject *swig_obj[1] ;
11995
11996 if (!args) SWIG_fail;
11997 swig_obj[0] = args;
11998 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11999 if (!SWIG_IsOK(res1)) {
12000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12001 }
12002 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12003 {
12004 PyThreadState* __tstate = wxPyBeginAllowThreads();
12005 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
12006 wxPyEndAllowThreads(__tstate);
12007 if (PyErr_Occurred()) SWIG_fail;
12008 }
12009 resultobj = SWIG_From_int(static_cast< int >(result));
12010 return resultobj;
12011 fail:
12012 return NULL;
12013 }
12014
12015
12016 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12017 PyObject *resultobj = 0;
12018 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12019 int arg2 ;
12020 void *argp1 = 0 ;
12021 int res1 = 0 ;
12022 int val2 ;
12023 int ecode2 = 0 ;
12024 PyObject * obj0 = 0 ;
12025 PyObject * obj1 = 0 ;
12026 char * kwnames[] = {
12027 (char *) "self",(char *) "pointsize", NULL
12028 };
12029
12030 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
12031 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12032 if (!SWIG_IsOK(res1)) {
12033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12034 }
12035 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12036 ecode2 = SWIG_AsVal_int(obj1, &val2);
12037 if (!SWIG_IsOK(ecode2)) {
12038 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
12039 }
12040 arg2 = static_cast< int >(val2);
12041 {
12042 PyThreadState* __tstate = wxPyBeginAllowThreads();
12043 (arg1)->SetPointSize(arg2);
12044 wxPyEndAllowThreads(__tstate);
12045 if (PyErr_Occurred()) SWIG_fail;
12046 }
12047 resultobj = SWIG_Py_Void();
12048 return resultobj;
12049 fail:
12050 return NULL;
12051 }
12052
12053
12054 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12055 PyObject *resultobj = 0;
12056 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12057 wxFontStyle arg2 ;
12058 void *argp1 = 0 ;
12059 int res1 = 0 ;
12060 int val2 ;
12061 int ecode2 = 0 ;
12062 PyObject * obj0 = 0 ;
12063 PyObject * obj1 = 0 ;
12064 char * kwnames[] = {
12065 (char *) "self",(char *) "style", NULL
12066 };
12067
12068 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12069 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12070 if (!SWIG_IsOK(res1)) {
12071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12072 }
12073 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12074 ecode2 = SWIG_AsVal_int(obj1, &val2);
12075 if (!SWIG_IsOK(ecode2)) {
12076 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
12077 }
12078 arg2 = static_cast< wxFontStyle >(val2);
12079 {
12080 PyThreadState* __tstate = wxPyBeginAllowThreads();
12081 (arg1)->SetStyle(arg2);
12082 wxPyEndAllowThreads(__tstate);
12083 if (PyErr_Occurred()) SWIG_fail;
12084 }
12085 resultobj = SWIG_Py_Void();
12086 return resultobj;
12087 fail:
12088 return NULL;
12089 }
12090
12091
12092 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12093 PyObject *resultobj = 0;
12094 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12095 wxFontWeight arg2 ;
12096 void *argp1 = 0 ;
12097 int res1 = 0 ;
12098 int val2 ;
12099 int ecode2 = 0 ;
12100 PyObject * obj0 = 0 ;
12101 PyObject * obj1 = 0 ;
12102 char * kwnames[] = {
12103 (char *) "self",(char *) "weight", NULL
12104 };
12105
12106 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
12107 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12108 if (!SWIG_IsOK(res1)) {
12109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12110 }
12111 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12112 ecode2 = SWIG_AsVal_int(obj1, &val2);
12113 if (!SWIG_IsOK(ecode2)) {
12114 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
12115 }
12116 arg2 = static_cast< wxFontWeight >(val2);
12117 {
12118 PyThreadState* __tstate = wxPyBeginAllowThreads();
12119 (arg1)->SetWeight(arg2);
12120 wxPyEndAllowThreads(__tstate);
12121 if (PyErr_Occurred()) SWIG_fail;
12122 }
12123 resultobj = SWIG_Py_Void();
12124 return resultobj;
12125 fail:
12126 return NULL;
12127 }
12128
12129
12130 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12131 PyObject *resultobj = 0;
12132 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12133 bool arg2 ;
12134 void *argp1 = 0 ;
12135 int res1 = 0 ;
12136 bool val2 ;
12137 int ecode2 = 0 ;
12138 PyObject * obj0 = 0 ;
12139 PyObject * obj1 = 0 ;
12140 char * kwnames[] = {
12141 (char *) "self",(char *) "underlined", NULL
12142 };
12143
12144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
12145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12146 if (!SWIG_IsOK(res1)) {
12147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12148 }
12149 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12150 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12151 if (!SWIG_IsOK(ecode2)) {
12152 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
12153 }
12154 arg2 = static_cast< bool >(val2);
12155 {
12156 PyThreadState* __tstate = wxPyBeginAllowThreads();
12157 (arg1)->SetUnderlined(arg2);
12158 wxPyEndAllowThreads(__tstate);
12159 if (PyErr_Occurred()) SWIG_fail;
12160 }
12161 resultobj = SWIG_Py_Void();
12162 return resultobj;
12163 fail:
12164 return NULL;
12165 }
12166
12167
12168 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12169 PyObject *resultobj = 0;
12170 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12171 wxString arg2 ;
12172 bool result;
12173 void *argp1 = 0 ;
12174 int res1 = 0 ;
12175 PyObject * obj0 = 0 ;
12176 PyObject * obj1 = 0 ;
12177 char * kwnames[] = {
12178 (char *) "self",(char *) "facename", NULL
12179 };
12180
12181 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
12182 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12183 if (!SWIG_IsOK(res1)) {
12184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12185 }
12186 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12187 {
12188 wxString* sptr = wxString_in_helper(obj1);
12189 if (sptr == NULL) SWIG_fail;
12190 arg2 = *sptr;
12191 delete sptr;
12192 }
12193 {
12194 PyThreadState* __tstate = wxPyBeginAllowThreads();
12195 result = (bool)(arg1)->SetFaceName(arg2);
12196 wxPyEndAllowThreads(__tstate);
12197 if (PyErr_Occurred()) SWIG_fail;
12198 }
12199 {
12200 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12201 }
12202 return resultobj;
12203 fail:
12204 return NULL;
12205 }
12206
12207
12208 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12209 PyObject *resultobj = 0;
12210 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12211 wxFontFamily arg2 ;
12212 void *argp1 = 0 ;
12213 int res1 = 0 ;
12214 int val2 ;
12215 int ecode2 = 0 ;
12216 PyObject * obj0 = 0 ;
12217 PyObject * obj1 = 0 ;
12218 char * kwnames[] = {
12219 (char *) "self",(char *) "family", NULL
12220 };
12221
12222 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
12223 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12224 if (!SWIG_IsOK(res1)) {
12225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12226 }
12227 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12228 ecode2 = SWIG_AsVal_int(obj1, &val2);
12229 if (!SWIG_IsOK(ecode2)) {
12230 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
12231 }
12232 arg2 = static_cast< wxFontFamily >(val2);
12233 {
12234 PyThreadState* __tstate = wxPyBeginAllowThreads();
12235 (arg1)->SetFamily(arg2);
12236 wxPyEndAllowThreads(__tstate);
12237 if (PyErr_Occurred()) SWIG_fail;
12238 }
12239 resultobj = SWIG_Py_Void();
12240 return resultobj;
12241 fail:
12242 return NULL;
12243 }
12244
12245
12246 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12247 PyObject *resultobj = 0;
12248 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12249 wxFontEncoding arg2 ;
12250 void *argp1 = 0 ;
12251 int res1 = 0 ;
12252 int val2 ;
12253 int ecode2 = 0 ;
12254 PyObject * obj0 = 0 ;
12255 PyObject * obj1 = 0 ;
12256 char * kwnames[] = {
12257 (char *) "self",(char *) "encoding", NULL
12258 };
12259
12260 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
12261 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12262 if (!SWIG_IsOK(res1)) {
12263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12264 }
12265 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12266 ecode2 = SWIG_AsVal_int(obj1, &val2);
12267 if (!SWIG_IsOK(ecode2)) {
12268 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12269 }
12270 arg2 = static_cast< wxFontEncoding >(val2);
12271 {
12272 PyThreadState* __tstate = wxPyBeginAllowThreads();
12273 (arg1)->SetEncoding(arg2);
12274 wxPyEndAllowThreads(__tstate);
12275 if (PyErr_Occurred()) SWIG_fail;
12276 }
12277 resultobj = SWIG_Py_Void();
12278 return resultobj;
12279 fail:
12280 return NULL;
12281 }
12282
12283
12284 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12285 PyObject *resultobj = 0;
12286 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12287 wxString *arg2 = 0 ;
12288 bool result;
12289 void *argp1 = 0 ;
12290 int res1 = 0 ;
12291 bool temp2 = false ;
12292 PyObject * obj0 = 0 ;
12293 PyObject * obj1 = 0 ;
12294 char * kwnames[] = {
12295 (char *) "self",(char *) "s", NULL
12296 };
12297
12298 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12299 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12300 if (!SWIG_IsOK(res1)) {
12301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12302 }
12303 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12304 {
12305 arg2 = wxString_in_helper(obj1);
12306 if (arg2 == NULL) SWIG_fail;
12307 temp2 = true;
12308 }
12309 {
12310 PyThreadState* __tstate = wxPyBeginAllowThreads();
12311 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12312 wxPyEndAllowThreads(__tstate);
12313 if (PyErr_Occurred()) SWIG_fail;
12314 }
12315 {
12316 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12317 }
12318 {
12319 if (temp2)
12320 delete arg2;
12321 }
12322 return resultobj;
12323 fail:
12324 {
12325 if (temp2)
12326 delete arg2;
12327 }
12328 return NULL;
12329 }
12330
12331
12332 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12333 PyObject *resultobj = 0;
12334 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12335 wxString result;
12336 void *argp1 = 0 ;
12337 int res1 = 0 ;
12338 PyObject *swig_obj[1] ;
12339
12340 if (!args) SWIG_fail;
12341 swig_obj[0] = args;
12342 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12343 if (!SWIG_IsOK(res1)) {
12344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12345 }
12346 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12347 {
12348 PyThreadState* __tstate = wxPyBeginAllowThreads();
12349 result = ((wxNativeFontInfo const *)arg1)->ToString();
12350 wxPyEndAllowThreads(__tstate);
12351 if (PyErr_Occurred()) SWIG_fail;
12352 }
12353 {
12354 #if wxUSE_UNICODE
12355 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12356 #else
12357 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12358 #endif
12359 }
12360 return resultobj;
12361 fail:
12362 return NULL;
12363 }
12364
12365
12366 SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12367 PyObject *resultobj = 0;
12368 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12369 wxString result;
12370 void *argp1 = 0 ;
12371 int res1 = 0 ;
12372 PyObject *swig_obj[1] ;
12373
12374 if (!args) SWIG_fail;
12375 swig_obj[0] = args;
12376 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12377 if (!SWIG_IsOK(res1)) {
12378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12379 }
12380 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12381 {
12382 PyThreadState* __tstate = wxPyBeginAllowThreads();
12383 result = wxNativeFontInfo___str__(arg1);
12384 wxPyEndAllowThreads(__tstate);
12385 if (PyErr_Occurred()) SWIG_fail;
12386 }
12387 {
12388 #if wxUSE_UNICODE
12389 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12390 #else
12391 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12392 #endif
12393 }
12394 return resultobj;
12395 fail:
12396 return NULL;
12397 }
12398
12399
12400 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12401 PyObject *resultobj = 0;
12402 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12403 wxString *arg2 = 0 ;
12404 bool result;
12405 void *argp1 = 0 ;
12406 int res1 = 0 ;
12407 bool temp2 = false ;
12408 PyObject * obj0 = 0 ;
12409 PyObject * obj1 = 0 ;
12410 char * kwnames[] = {
12411 (char *) "self",(char *) "s", NULL
12412 };
12413
12414 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
12415 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12416 if (!SWIG_IsOK(res1)) {
12417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12418 }
12419 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12420 {
12421 arg2 = wxString_in_helper(obj1);
12422 if (arg2 == NULL) SWIG_fail;
12423 temp2 = true;
12424 }
12425 {
12426 PyThreadState* __tstate = wxPyBeginAllowThreads();
12427 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
12428 wxPyEndAllowThreads(__tstate);
12429 if (PyErr_Occurred()) SWIG_fail;
12430 }
12431 {
12432 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12433 }
12434 {
12435 if (temp2)
12436 delete arg2;
12437 }
12438 return resultobj;
12439 fail:
12440 {
12441 if (temp2)
12442 delete arg2;
12443 }
12444 return NULL;
12445 }
12446
12447
12448 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12449 PyObject *resultobj = 0;
12450 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12451 wxString result;
12452 void *argp1 = 0 ;
12453 int res1 = 0 ;
12454 PyObject *swig_obj[1] ;
12455
12456 if (!args) SWIG_fail;
12457 swig_obj[0] = args;
12458 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12459 if (!SWIG_IsOK(res1)) {
12460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12461 }
12462 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12463 {
12464 PyThreadState* __tstate = wxPyBeginAllowThreads();
12465 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
12466 wxPyEndAllowThreads(__tstate);
12467 if (PyErr_Occurred()) SWIG_fail;
12468 }
12469 {
12470 #if wxUSE_UNICODE
12471 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12472 #else
12473 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12474 #endif
12475 }
12476 return resultobj;
12477 fail:
12478 return NULL;
12479 }
12480
12481
12482 SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12483 PyObject *obj;
12484 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12485 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
12486 return SWIG_Py_Void();
12487 }
12488
12489 SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12490 return SWIG_Python_InitShadowInstance(args);
12491 }
12492
12493 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12494 PyObject *resultobj = 0;
12495 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12496 wxString *arg2 = (wxString *) 0 ;
12497 void *argp1 = 0 ;
12498 int res1 = 0 ;
12499 bool temp2 = false ;
12500 PyObject *swig_obj[2] ;
12501
12502 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
12503 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12504 if (!SWIG_IsOK(res1)) {
12505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12506 }
12507 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12508 {
12509 arg2 = wxString_in_helper(swig_obj[1]);
12510 if (arg2 == NULL) SWIG_fail;
12511 temp2 = true;
12512 }
12513 if (arg1) (arg1)->facename = *arg2;
12514
12515 resultobj = SWIG_Py_Void();
12516 {
12517 if (temp2)
12518 delete arg2;
12519 }
12520 return resultobj;
12521 fail:
12522 {
12523 if (temp2)
12524 delete arg2;
12525 }
12526 return NULL;
12527 }
12528
12529
12530 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12531 PyObject *resultobj = 0;
12532 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12533 wxString *result = 0 ;
12534 void *argp1 = 0 ;
12535 int res1 = 0 ;
12536 PyObject *swig_obj[1] ;
12537
12538 if (!args) SWIG_fail;
12539 swig_obj[0] = args;
12540 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12541 if (!SWIG_IsOK(res1)) {
12542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12543 }
12544 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12545 result = (wxString *)& ((arg1)->facename);
12546 {
12547 #if wxUSE_UNICODE
12548 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12549 #else
12550 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12551 #endif
12552 }
12553 return resultobj;
12554 fail:
12555 return NULL;
12556 }
12557
12558
12559 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12560 PyObject *resultobj = 0;
12561 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12562 wxFontEncoding arg2 ;
12563 void *argp1 = 0 ;
12564 int res1 = 0 ;
12565 int val2 ;
12566 int ecode2 = 0 ;
12567 PyObject *swig_obj[2] ;
12568
12569 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
12570 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12571 if (!SWIG_IsOK(res1)) {
12572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12573 }
12574 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12575 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
12576 if (!SWIG_IsOK(ecode2)) {
12577 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12578 }
12579 arg2 = static_cast< wxFontEncoding >(val2);
12580 if (arg1) (arg1)->encoding = arg2;
12581
12582 resultobj = SWIG_Py_Void();
12583 return resultobj;
12584 fail:
12585 return NULL;
12586 }
12587
12588
12589 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12590 PyObject *resultobj = 0;
12591 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12592 wxFontEncoding result;
12593 void *argp1 = 0 ;
12594 int res1 = 0 ;
12595 PyObject *swig_obj[1] ;
12596
12597 if (!args) SWIG_fail;
12598 swig_obj[0] = args;
12599 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12600 if (!SWIG_IsOK(res1)) {
12601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12602 }
12603 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12604 result = (wxFontEncoding) ((arg1)->encoding);
12605 resultobj = SWIG_From_int(static_cast< int >(result));
12606 return resultobj;
12607 fail:
12608 return NULL;
12609 }
12610
12611
12612 SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12613 PyObject *resultobj = 0;
12614 wxNativeEncodingInfo *result = 0 ;
12615
12616 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
12617 {
12618 PyThreadState* __tstate = wxPyBeginAllowThreads();
12619 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
12620 wxPyEndAllowThreads(__tstate);
12621 if (PyErr_Occurred()) SWIG_fail;
12622 }
12623 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
12624 return resultobj;
12625 fail:
12626 return NULL;
12627 }
12628
12629
12630 SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12631 PyObject *resultobj = 0;
12632 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 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_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
12640 if (!SWIG_IsOK(res1)) {
12641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12642 }
12643 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(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_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12659 PyObject *resultobj = 0;
12660 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12661 wxString *arg2 = 0 ;
12662 bool result;
12663 void *argp1 = 0 ;
12664 int res1 = 0 ;
12665 bool temp2 = false ;
12666 PyObject * obj0 = 0 ;
12667 PyObject * obj1 = 0 ;
12668 char * kwnames[] = {
12669 (char *) "self",(char *) "s", NULL
12670 };
12671
12672 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12673 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12674 if (!SWIG_IsOK(res1)) {
12675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12676 }
12677 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12678 {
12679 arg2 = wxString_in_helper(obj1);
12680 if (arg2 == NULL) SWIG_fail;
12681 temp2 = true;
12682 }
12683 {
12684 PyThreadState* __tstate = wxPyBeginAllowThreads();
12685 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12686 wxPyEndAllowThreads(__tstate);
12687 if (PyErr_Occurred()) SWIG_fail;
12688 }
12689 {
12690 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12691 }
12692 {
12693 if (temp2)
12694 delete arg2;
12695 }
12696 return resultobj;
12697 fail:
12698 {
12699 if (temp2)
12700 delete arg2;
12701 }
12702 return NULL;
12703 }
12704
12705
12706 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12707 PyObject *resultobj = 0;
12708 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12709 wxString result;
12710 void *argp1 = 0 ;
12711 int res1 = 0 ;
12712 PyObject *swig_obj[1] ;
12713
12714 if (!args) SWIG_fail;
12715 swig_obj[0] = args;
12716 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12717 if (!SWIG_IsOK(res1)) {
12718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
12719 }
12720 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12721 {
12722 PyThreadState* __tstate = wxPyBeginAllowThreads();
12723 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
12724 wxPyEndAllowThreads(__tstate);
12725 if (PyErr_Occurred()) SWIG_fail;
12726 }
12727 {
12728 #if wxUSE_UNICODE
12729 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12730 #else
12731 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12732 #endif
12733 }
12734 return resultobj;
12735 fail:
12736 return NULL;
12737 }
12738
12739
12740 SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12741 PyObject *obj;
12742 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12743 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
12744 return SWIG_Py_Void();
12745 }
12746
12747 SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12748 return SWIG_Python_InitShadowInstance(args);
12749 }
12750
12751 SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12752 PyObject *resultobj = 0;
12753 wxFontEncoding arg1 ;
12754 wxNativeEncodingInfo *result = 0 ;
12755 int val1 ;
12756 int ecode1 = 0 ;
12757 PyObject * obj0 = 0 ;
12758 char * kwnames[] = {
12759 (char *) "encoding", NULL
12760 };
12761
12762 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
12763 ecode1 = SWIG_AsVal_int(obj0, &val1);
12764 if (!SWIG_IsOK(ecode1)) {
12765 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
12766 }
12767 arg1 = static_cast< wxFontEncoding >(val1);
12768 {
12769 PyThreadState* __tstate = wxPyBeginAllowThreads();
12770 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
12771 wxPyEndAllowThreads(__tstate);
12772 if (PyErr_Occurred()) SWIG_fail;
12773 }
12774 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12775 return resultobj;
12776 fail:
12777 return NULL;
12778 }
12779
12780
12781 SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12782 PyObject *resultobj = 0;
12783 wxNativeEncodingInfo *arg1 = 0 ;
12784 bool result;
12785 void *argp1 = 0 ;
12786 int res1 = 0 ;
12787 PyObject * obj0 = 0 ;
12788 char * kwnames[] = {
12789 (char *) "info", NULL
12790 };
12791
12792 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
12793 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
12794 if (!SWIG_IsOK(res1)) {
12795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
12796 }
12797 if (!argp1) {
12798 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
12799 }
12800 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12801 {
12802 PyThreadState* __tstate = wxPyBeginAllowThreads();
12803 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
12804 wxPyEndAllowThreads(__tstate);
12805 if (PyErr_Occurred()) SWIG_fail;
12806 }
12807 {
12808 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12809 }
12810 return resultobj;
12811 fail:
12812 return NULL;
12813 }
12814
12815
12816 SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12817 PyObject *resultobj = 0;
12818 wxFontMapper *result = 0 ;
12819
12820 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
12821 {
12822 PyThreadState* __tstate = wxPyBeginAllowThreads();
12823 result = (wxFontMapper *)new wxFontMapper();
12824 wxPyEndAllowThreads(__tstate);
12825 if (PyErr_Occurred()) SWIG_fail;
12826 }
12827 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
12828 return resultobj;
12829 fail:
12830 return NULL;
12831 }
12832
12833
12834 SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12835 PyObject *resultobj = 0;
12836 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
12837 void *argp1 = 0 ;
12838 int res1 = 0 ;
12839 PyObject *swig_obj[1] ;
12840
12841 if (!args) SWIG_fail;
12842 swig_obj[0] = args;
12843 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
12844 if (!SWIG_IsOK(res1)) {
12845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
12846 }
12847 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
12848 {
12849 PyThreadState* __tstate = wxPyBeginAllowThreads();
12850 delete arg1;
12851
12852 wxPyEndAllowThreads(__tstate);
12853 if (PyErr_Occurred()) SWIG_fail;
12854 }
12855 resultobj = SWIG_Py_Void();
12856 return resultobj;
12857 fail:
12858 return NULL;
12859 }
12860
12861
12862 SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12863 PyObject *resultobj = 0;
12864 wxFontMapper *result = 0 ;
12865
12866 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
12867 {
12868 PyThreadState* __tstate = wxPyBeginAllowThreads();
12869 result = (wxFontMapper *)wxFontMapper::Get();
12870 wxPyEndAllowThreads(__tstate);
12871 if (PyErr_Occurred()) SWIG_fail;
12872 }
12873 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
12874 return resultobj;
12875 fail:
12876 return NULL;
12877 }
12878
12879
12880 SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12881 PyObject *resultobj = 0;
12882 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
12883 wxFontMapper *result = 0 ;
12884 void *argp1 = 0 ;
12885 int res1 = 0 ;
12886 PyObject * obj0 = 0 ;
12887 char * kwnames[] = {
12888 (char *) "mapper", NULL
12889 };
12890
12891 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
12892 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
12893 if (!SWIG_IsOK(res1)) {
12894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
12895 }
12896 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
12897 {
12898 PyThreadState* __tstate = wxPyBeginAllowThreads();
12899 result = (wxFontMapper *)wxFontMapper::Set(arg1);
12900 wxPyEndAllowThreads(__tstate);
12901 if (PyErr_Occurred()) SWIG_fail;
12902 }
12903 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
12904 return resultobj;
12905 fail:
12906 return NULL;
12907 }
12908
12909
12910 SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12911 PyObject *resultobj = 0;
12912 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
12913 wxString *arg2 = 0 ;
12914 bool arg3 = (bool) true ;
12915 wxFontEncoding result;
12916 void *argp1 = 0 ;
12917 int res1 = 0 ;
12918 bool temp2 = false ;
12919 bool val3 ;
12920 int ecode3 = 0 ;
12921 PyObject * obj0 = 0 ;
12922 PyObject * obj1 = 0 ;
12923 PyObject * obj2 = 0 ;
12924 char * kwnames[] = {
12925 (char *) "self",(char *) "charset",(char *) "interactive", NULL
12926 };
12927
12928 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12929 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
12930 if (!SWIG_IsOK(res1)) {
12931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
12932 }
12933 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
12934 {
12935 arg2 = wxString_in_helper(obj1);
12936 if (arg2 == NULL) SWIG_fail;
12937 temp2 = true;
12938 }
12939 if (obj2) {
12940 ecode3 = SWIG_AsVal_bool(obj2, &val3);
12941 if (!SWIG_IsOK(ecode3)) {
12942 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
12943 }
12944 arg3 = static_cast< bool >(val3);
12945 }
12946 {
12947 PyThreadState* __tstate = wxPyBeginAllowThreads();
12948 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
12949 wxPyEndAllowThreads(__tstate);
12950 if (PyErr_Occurred()) SWIG_fail;
12951 }
12952 resultobj = SWIG_From_int(static_cast< int >(result));
12953 {
12954 if (temp2)
12955 delete arg2;
12956 }
12957 return resultobj;
12958 fail:
12959 {
12960 if (temp2)
12961 delete arg2;
12962 }
12963 return NULL;
12964 }
12965
12966
12967 SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12968 PyObject *resultobj = 0;
12969 size_t result;
12970
12971 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
12972 {
12973 PyThreadState* __tstate = wxPyBeginAllowThreads();
12974 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
12975 wxPyEndAllowThreads(__tstate);
12976 if (PyErr_Occurred()) SWIG_fail;
12977 }
12978 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
12979 return resultobj;
12980 fail:
12981 return NULL;
12982 }
12983
12984
12985 SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12986 PyObject *resultobj = 0;
12987 size_t arg1 ;
12988 wxFontEncoding result;
12989 size_t val1 ;
12990 int ecode1 = 0 ;
12991 PyObject * obj0 = 0 ;
12992 char * kwnames[] = {
12993 (char *) "n", NULL
12994 };
12995
12996 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
12997 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
12998 if (!SWIG_IsOK(ecode1)) {
12999 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
13000 }
13001 arg1 = static_cast< size_t >(val1);
13002 {
13003 PyThreadState* __tstate = wxPyBeginAllowThreads();
13004 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
13005 wxPyEndAllowThreads(__tstate);
13006 if (PyErr_Occurred()) SWIG_fail;
13007 }
13008 resultobj = SWIG_From_int(static_cast< int >(result));
13009 return resultobj;
13010 fail:
13011 return NULL;
13012 }
13013
13014
13015 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13016 PyObject *resultobj = 0;
13017 wxFontEncoding arg1 ;
13018 wxString result;
13019 int val1 ;
13020 int ecode1 = 0 ;
13021 PyObject * obj0 = 0 ;
13022 char * kwnames[] = {
13023 (char *) "encoding", NULL
13024 };
13025
13026 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
13027 ecode1 = SWIG_AsVal_int(obj0, &val1);
13028 if (!SWIG_IsOK(ecode1)) {
13029 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13030 }
13031 arg1 = static_cast< wxFontEncoding >(val1);
13032 {
13033 PyThreadState* __tstate = wxPyBeginAllowThreads();
13034 result = wxFontMapper::GetEncodingName(arg1);
13035 wxPyEndAllowThreads(__tstate);
13036 if (PyErr_Occurred()) SWIG_fail;
13037 }
13038 {
13039 #if wxUSE_UNICODE
13040 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13041 #else
13042 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13043 #endif
13044 }
13045 return resultobj;
13046 fail:
13047 return NULL;
13048 }
13049
13050
13051 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13052 PyObject *resultobj = 0;
13053 wxFontEncoding arg1 ;
13054 wxString result;
13055 int val1 ;
13056 int ecode1 = 0 ;
13057 PyObject * obj0 = 0 ;
13058 char * kwnames[] = {
13059 (char *) "encoding", NULL
13060 };
13061
13062 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
13063 ecode1 = SWIG_AsVal_int(obj0, &val1);
13064 if (!SWIG_IsOK(ecode1)) {
13065 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13066 }
13067 arg1 = static_cast< wxFontEncoding >(val1);
13068 {
13069 PyThreadState* __tstate = wxPyBeginAllowThreads();
13070 result = wxFontMapper::GetEncodingDescription(arg1);
13071 wxPyEndAllowThreads(__tstate);
13072 if (PyErr_Occurred()) SWIG_fail;
13073 }
13074 {
13075 #if wxUSE_UNICODE
13076 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13077 #else
13078 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13079 #endif
13080 }
13081 return resultobj;
13082 fail:
13083 return NULL;
13084 }
13085
13086
13087 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13088 PyObject *resultobj = 0;
13089 wxString *arg1 = 0 ;
13090 wxFontEncoding result;
13091 bool temp1 = false ;
13092 PyObject * obj0 = 0 ;
13093 char * kwnames[] = {
13094 (char *) "name", NULL
13095 };
13096
13097 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
13098 {
13099 arg1 = wxString_in_helper(obj0);
13100 if (arg1 == NULL) SWIG_fail;
13101 temp1 = true;
13102 }
13103 {
13104 PyThreadState* __tstate = wxPyBeginAllowThreads();
13105 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
13106 wxPyEndAllowThreads(__tstate);
13107 if (PyErr_Occurred()) SWIG_fail;
13108 }
13109 resultobj = SWIG_From_int(static_cast< int >(result));
13110 {
13111 if (temp1)
13112 delete arg1;
13113 }
13114 return resultobj;
13115 fail:
13116 {
13117 if (temp1)
13118 delete arg1;
13119 }
13120 return NULL;
13121 }
13122
13123
13124 SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13125 PyObject *resultobj = 0;
13126 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13127 wxString *arg2 = 0 ;
13128 void *argp1 = 0 ;
13129 int res1 = 0 ;
13130 bool temp2 = false ;
13131 PyObject * obj0 = 0 ;
13132 PyObject * obj1 = 0 ;
13133 char * kwnames[] = {
13134 (char *) "self",(char *) "prefix", NULL
13135 };
13136
13137 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
13138 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13139 if (!SWIG_IsOK(res1)) {
13140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13141 }
13142 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13143 {
13144 arg2 = wxString_in_helper(obj1);
13145 if (arg2 == NULL) SWIG_fail;
13146 temp2 = true;
13147 }
13148 {
13149 PyThreadState* __tstate = wxPyBeginAllowThreads();
13150 (arg1)->SetConfigPath((wxString const &)*arg2);
13151 wxPyEndAllowThreads(__tstate);
13152 if (PyErr_Occurred()) SWIG_fail;
13153 }
13154 resultobj = SWIG_Py_Void();
13155 {
13156 if (temp2)
13157 delete arg2;
13158 }
13159 return resultobj;
13160 fail:
13161 {
13162 if (temp2)
13163 delete arg2;
13164 }
13165 return NULL;
13166 }
13167
13168
13169 SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13170 PyObject *resultobj = 0;
13171 wxString result;
13172
13173 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
13174 {
13175 PyThreadState* __tstate = wxPyBeginAllowThreads();
13176 result = wxFontMapper::GetDefaultConfigPath();
13177 wxPyEndAllowThreads(__tstate);
13178 if (PyErr_Occurred()) SWIG_fail;
13179 }
13180 {
13181 #if wxUSE_UNICODE
13182 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13183 #else
13184 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13185 #endif
13186 }
13187 return resultobj;
13188 fail:
13189 return NULL;
13190 }
13191
13192
13193 SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13194 PyObject *resultobj = 0;
13195 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13196 wxFontEncoding arg2 ;
13197 wxString const &arg3_defvalue = wxPyEmptyString ;
13198 wxString *arg3 = (wxString *) &arg3_defvalue ;
13199 bool arg4 = (bool) true ;
13200 PyObject *result = 0 ;
13201 void *argp1 = 0 ;
13202 int res1 = 0 ;
13203 int val2 ;
13204 int ecode2 = 0 ;
13205 bool temp3 = false ;
13206 bool val4 ;
13207 int ecode4 = 0 ;
13208 PyObject * obj0 = 0 ;
13209 PyObject * obj1 = 0 ;
13210 PyObject * obj2 = 0 ;
13211 PyObject * obj3 = 0 ;
13212 char * kwnames[] = {
13213 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
13214 };
13215
13216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13217 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13218 if (!SWIG_IsOK(res1)) {
13219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13220 }
13221 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13222 ecode2 = SWIG_AsVal_int(obj1, &val2);
13223 if (!SWIG_IsOK(ecode2)) {
13224 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13225 }
13226 arg2 = static_cast< wxFontEncoding >(val2);
13227 if (obj2) {
13228 {
13229 arg3 = wxString_in_helper(obj2);
13230 if (arg3 == NULL) SWIG_fail;
13231 temp3 = true;
13232 }
13233 }
13234 if (obj3) {
13235 ecode4 = SWIG_AsVal_bool(obj3, &val4);
13236 if (!SWIG_IsOK(ecode4)) {
13237 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
13238 }
13239 arg4 = static_cast< bool >(val4);
13240 }
13241 {
13242 PyThreadState* __tstate = wxPyBeginAllowThreads();
13243 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
13244 wxPyEndAllowThreads(__tstate);
13245 if (PyErr_Occurred()) SWIG_fail;
13246 }
13247 resultobj = result;
13248 {
13249 if (temp3)
13250 delete arg3;
13251 }
13252 return resultobj;
13253 fail:
13254 {
13255 if (temp3)
13256 delete arg3;
13257 }
13258 return NULL;
13259 }
13260
13261
13262 SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13263 PyObject *resultobj = 0;
13264 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13265 wxFontEncoding arg2 ;
13266 wxString const &arg3_defvalue = wxPyEmptyString ;
13267 wxString *arg3 = (wxString *) &arg3_defvalue ;
13268 bool result;
13269 void *argp1 = 0 ;
13270 int res1 = 0 ;
13271 int val2 ;
13272 int ecode2 = 0 ;
13273 bool temp3 = false ;
13274 PyObject * obj0 = 0 ;
13275 PyObject * obj1 = 0 ;
13276 PyObject * obj2 = 0 ;
13277 char * kwnames[] = {
13278 (char *) "self",(char *) "encoding",(char *) "facename", NULL
13279 };
13280
13281 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13282 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13283 if (!SWIG_IsOK(res1)) {
13284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13285 }
13286 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13287 ecode2 = SWIG_AsVal_int(obj1, &val2);
13288 if (!SWIG_IsOK(ecode2)) {
13289 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13290 }
13291 arg2 = static_cast< wxFontEncoding >(val2);
13292 if (obj2) {
13293 {
13294 arg3 = wxString_in_helper(obj2);
13295 if (arg3 == NULL) SWIG_fail;
13296 temp3 = true;
13297 }
13298 }
13299 {
13300 PyThreadState* __tstate = wxPyBeginAllowThreads();
13301 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
13302 wxPyEndAllowThreads(__tstate);
13303 if (PyErr_Occurred()) SWIG_fail;
13304 }
13305 {
13306 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13307 }
13308 {
13309 if (temp3)
13310 delete arg3;
13311 }
13312 return resultobj;
13313 fail:
13314 {
13315 if (temp3)
13316 delete arg3;
13317 }
13318 return NULL;
13319 }
13320
13321
13322 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13323 PyObject *resultobj = 0;
13324 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13325 wxWindow *arg2 = (wxWindow *) 0 ;
13326 void *argp1 = 0 ;
13327 int res1 = 0 ;
13328 void *argp2 = 0 ;
13329 int res2 = 0 ;
13330 PyObject * obj0 = 0 ;
13331 PyObject * obj1 = 0 ;
13332 char * kwnames[] = {
13333 (char *) "self",(char *) "parent", NULL
13334 };
13335
13336 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
13337 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13338 if (!SWIG_IsOK(res1)) {
13339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13340 }
13341 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13342 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
13343 if (!SWIG_IsOK(res2)) {
13344 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
13345 }
13346 arg2 = reinterpret_cast< wxWindow * >(argp2);
13347 {
13348 PyThreadState* __tstate = wxPyBeginAllowThreads();
13349 (arg1)->SetDialogParent(arg2);
13350 wxPyEndAllowThreads(__tstate);
13351 if (PyErr_Occurred()) SWIG_fail;
13352 }
13353 resultobj = SWIG_Py_Void();
13354 return resultobj;
13355 fail:
13356 return NULL;
13357 }
13358
13359
13360 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13361 PyObject *resultobj = 0;
13362 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13363 wxString *arg2 = 0 ;
13364 void *argp1 = 0 ;
13365 int res1 = 0 ;
13366 bool temp2 = false ;
13367 PyObject * obj0 = 0 ;
13368 PyObject * obj1 = 0 ;
13369 char * kwnames[] = {
13370 (char *) "self",(char *) "title", NULL
13371 };
13372
13373 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
13374 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13375 if (!SWIG_IsOK(res1)) {
13376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13377 }
13378 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13379 {
13380 arg2 = wxString_in_helper(obj1);
13381 if (arg2 == NULL) SWIG_fail;
13382 temp2 = true;
13383 }
13384 {
13385 PyThreadState* __tstate = wxPyBeginAllowThreads();
13386 (arg1)->SetDialogTitle((wxString const &)*arg2);
13387 wxPyEndAllowThreads(__tstate);
13388 if (PyErr_Occurred()) SWIG_fail;
13389 }
13390 resultobj = SWIG_Py_Void();
13391 {
13392 if (temp2)
13393 delete arg2;
13394 }
13395 return resultobj;
13396 fail:
13397 {
13398 if (temp2)
13399 delete arg2;
13400 }
13401 return NULL;
13402 }
13403
13404
13405 SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13406 PyObject *obj;
13407 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13408 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
13409 return SWIG_Py_Void();
13410 }
13411
13412 SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13413 return SWIG_Python_InitShadowInstance(args);
13414 }
13415
13416 SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13417 PyObject *resultobj = 0;
13418 int arg1 ;
13419 int arg2 ;
13420 int arg3 ;
13421 int arg4 ;
13422 bool arg5 = (bool) false ;
13423 wxString const &arg6_defvalue = wxPyEmptyString ;
13424 wxString *arg6 = (wxString *) &arg6_defvalue ;
13425 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13426 wxFont *result = 0 ;
13427 int val1 ;
13428 int ecode1 = 0 ;
13429 int val2 ;
13430 int ecode2 = 0 ;
13431 int val3 ;
13432 int ecode3 = 0 ;
13433 int val4 ;
13434 int ecode4 = 0 ;
13435 bool val5 ;
13436 int ecode5 = 0 ;
13437 bool temp6 = false ;
13438 int val7 ;
13439 int ecode7 = 0 ;
13440 PyObject * obj0 = 0 ;
13441 PyObject * obj1 = 0 ;
13442 PyObject * obj2 = 0 ;
13443 PyObject * obj3 = 0 ;
13444 PyObject * obj4 = 0 ;
13445 PyObject * obj5 = 0 ;
13446 PyObject * obj6 = 0 ;
13447 char * kwnames[] = {
13448 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
13449 };
13450
13451 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13452 ecode1 = SWIG_AsVal_int(obj0, &val1);
13453 if (!SWIG_IsOK(ecode1)) {
13454 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
13455 }
13456 arg1 = static_cast< int >(val1);
13457 ecode2 = SWIG_AsVal_int(obj1, &val2);
13458 if (!SWIG_IsOK(ecode2)) {
13459 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
13460 }
13461 arg2 = static_cast< int >(val2);
13462 ecode3 = SWIG_AsVal_int(obj2, &val3);
13463 if (!SWIG_IsOK(ecode3)) {
13464 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
13465 }
13466 arg3 = static_cast< int >(val3);
13467 ecode4 = SWIG_AsVal_int(obj3, &val4);
13468 if (!SWIG_IsOK(ecode4)) {
13469 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
13470 }
13471 arg4 = static_cast< int >(val4);
13472 if (obj4) {
13473 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13474 if (!SWIG_IsOK(ecode5)) {
13475 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
13476 }
13477 arg5 = static_cast< bool >(val5);
13478 }
13479 if (obj5) {
13480 {
13481 arg6 = wxString_in_helper(obj5);
13482 if (arg6 == NULL) SWIG_fail;
13483 temp6 = true;
13484 }
13485 }
13486 if (obj6) {
13487 ecode7 = SWIG_AsVal_int(obj6, &val7);
13488 if (!SWIG_IsOK(ecode7)) {
13489 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
13490 }
13491 arg7 = static_cast< wxFontEncoding >(val7);
13492 }
13493 {
13494 if (!wxPyCheckForApp()) SWIG_fail;
13495 PyThreadState* __tstate = wxPyBeginAllowThreads();
13496 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
13497 wxPyEndAllowThreads(__tstate);
13498 if (PyErr_Occurred()) SWIG_fail;
13499 }
13500 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
13501 {
13502 if (temp6)
13503 delete arg6;
13504 }
13505 return resultobj;
13506 fail:
13507 {
13508 if (temp6)
13509 delete arg6;
13510 }
13511 return NULL;
13512 }
13513
13514
13515 SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13516 PyObject *resultobj = 0;
13517 wxFont *arg1 = (wxFont *) 0 ;
13518 void *argp1 = 0 ;
13519 int res1 = 0 ;
13520 PyObject *swig_obj[1] ;
13521
13522 if (!args) SWIG_fail;
13523 swig_obj[0] = args;
13524 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
13525 if (!SWIG_IsOK(res1)) {
13526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
13527 }
13528 arg1 = reinterpret_cast< wxFont * >(argp1);
13529 {
13530 PyThreadState* __tstate = wxPyBeginAllowThreads();
13531 delete arg1;
13532
13533 wxPyEndAllowThreads(__tstate);
13534 if (PyErr_Occurred()) SWIG_fail;
13535 }
13536 resultobj = SWIG_Py_Void();
13537 return resultobj;
13538 fail:
13539 return NULL;
13540 }
13541
13542
13543 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13544 PyObject *resultobj = 0;
13545 wxNativeFontInfo *arg1 = 0 ;
13546 wxFont *result = 0 ;
13547 void *argp1 = 0 ;
13548 int res1 = 0 ;
13549 PyObject * obj0 = 0 ;
13550 char * kwnames[] = {
13551 (char *) "info", NULL
13552 };
13553
13554 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
13555 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
13556 if (!SWIG_IsOK(res1)) {
13557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13558 }
13559 if (!argp1) {
13560 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13561 }
13562 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13563 {
13564 if (!wxPyCheckForApp()) SWIG_fail;
13565 PyThreadState* __tstate = wxPyBeginAllowThreads();
13566 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
13567 wxPyEndAllowThreads(__tstate);
13568 if (PyErr_Occurred()) SWIG_fail;
13569 }
13570 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13571 return resultobj;
13572 fail:
13573 return NULL;
13574 }
13575
13576
13577 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13578 PyObject *resultobj = 0;
13579 wxString *arg1 = 0 ;
13580 wxFont *result = 0 ;
13581 bool temp1 = false ;
13582 PyObject * obj0 = 0 ;
13583 char * kwnames[] = {
13584 (char *) "info", NULL
13585 };
13586
13587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
13588 {
13589 arg1 = wxString_in_helper(obj0);
13590 if (arg1 == NULL) SWIG_fail;
13591 temp1 = true;
13592 }
13593 {
13594 if (!wxPyCheckForApp()) SWIG_fail;
13595 PyThreadState* __tstate = wxPyBeginAllowThreads();
13596 result = (wxFont *)new_wxFont((wxString const &)*arg1);
13597 wxPyEndAllowThreads(__tstate);
13598 if (PyErr_Occurred()) SWIG_fail;
13599 }
13600 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13601 {
13602 if (temp1)
13603 delete arg1;
13604 }
13605 return resultobj;
13606 fail:
13607 {
13608 if (temp1)
13609 delete arg1;
13610 }
13611 return NULL;
13612 }
13613
13614
13615 SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13616 PyObject *resultobj = 0;
13617 int arg1 ;
13618 wxFontFamily arg2 ;
13619 int arg3 = (int) wxFONTFLAG_DEFAULT ;
13620 wxString const &arg4_defvalue = wxPyEmptyString ;
13621 wxString *arg4 = (wxString *) &arg4_defvalue ;
13622 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13623 wxFont *result = 0 ;
13624 int val1 ;
13625 int ecode1 = 0 ;
13626 int val2 ;
13627 int ecode2 = 0 ;
13628 int val3 ;
13629 int ecode3 = 0 ;
13630 bool temp4 = false ;
13631 int val5 ;
13632 int ecode5 = 0 ;
13633 PyObject * obj0 = 0 ;
13634 PyObject * obj1 = 0 ;
13635 PyObject * obj2 = 0 ;
13636 PyObject * obj3 = 0 ;
13637 PyObject * obj4 = 0 ;
13638 char * kwnames[] = {
13639 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
13640 };
13641
13642 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
13643 ecode1 = SWIG_AsVal_int(obj0, &val1);
13644 if (!SWIG_IsOK(ecode1)) {
13645 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
13646 }
13647 arg1 = static_cast< int >(val1);
13648 ecode2 = SWIG_AsVal_int(obj1, &val2);
13649 if (!SWIG_IsOK(ecode2)) {
13650 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
13651 }
13652 arg2 = static_cast< wxFontFamily >(val2);
13653 if (obj2) {
13654 ecode3 = SWIG_AsVal_int(obj2, &val3);
13655 if (!SWIG_IsOK(ecode3)) {
13656 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
13657 }
13658 arg3 = static_cast< int >(val3);
13659 }
13660 if (obj3) {
13661 {
13662 arg4 = wxString_in_helper(obj3);
13663 if (arg4 == NULL) SWIG_fail;
13664 temp4 = true;
13665 }
13666 }
13667 if (obj4) {
13668 ecode5 = SWIG_AsVal_int(obj4, &val5);
13669 if (!SWIG_IsOK(ecode5)) {
13670 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
13671 }
13672 arg5 = static_cast< wxFontEncoding >(val5);
13673 }
13674 {
13675 if (!wxPyCheckForApp()) SWIG_fail;
13676 PyThreadState* __tstate = wxPyBeginAllowThreads();
13677 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
13678 wxPyEndAllowThreads(__tstate);
13679 if (PyErr_Occurred()) SWIG_fail;
13680 }
13681 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13682 {
13683 if (temp4)
13684 delete arg4;
13685 }
13686 return resultobj;
13687 fail:
13688 {
13689 if (temp4)
13690 delete arg4;
13691 }
13692 return NULL;
13693 }
13694
13695
13696 SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13697 PyObject *resultobj = 0;
13698 wxSize *arg1 = 0 ;
13699 int arg2 ;
13700 int arg3 ;
13701 int arg4 ;
13702 bool arg5 = (bool) false ;
13703 wxString const &arg6_defvalue = wxEmptyString ;
13704 wxString *arg6 = (wxString *) &arg6_defvalue ;
13705 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13706 wxFont *result = 0 ;
13707 wxSize temp1 ;
13708 int val2 ;
13709 int ecode2 = 0 ;
13710 int val3 ;
13711 int ecode3 = 0 ;
13712 int val4 ;
13713 int ecode4 = 0 ;
13714 bool val5 ;
13715 int ecode5 = 0 ;
13716 bool temp6 = false ;
13717 int val7 ;
13718 int ecode7 = 0 ;
13719 PyObject * obj0 = 0 ;
13720 PyObject * obj1 = 0 ;
13721 PyObject * obj2 = 0 ;
13722 PyObject * obj3 = 0 ;
13723 PyObject * obj4 = 0 ;
13724 PyObject * obj5 = 0 ;
13725 PyObject * obj6 = 0 ;
13726 char * kwnames[] = {
13727 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
13728 };
13729
13730 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13731 {
13732 arg1 = &temp1;
13733 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
13734 }
13735 ecode2 = SWIG_AsVal_int(obj1, &val2);
13736 if (!SWIG_IsOK(ecode2)) {
13737 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
13738 }
13739 arg2 = static_cast< int >(val2);
13740 ecode3 = SWIG_AsVal_int(obj2, &val3);
13741 if (!SWIG_IsOK(ecode3)) {
13742 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
13743 }
13744 arg3 = static_cast< int >(val3);
13745 ecode4 = SWIG_AsVal_int(obj3, &val4);
13746 if (!SWIG_IsOK(ecode4)) {
13747 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
13748 }
13749 arg4 = static_cast< int >(val4);
13750 if (obj4) {
13751 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13752 if (!SWIG_IsOK(ecode5)) {
13753 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
13754 }
13755 arg5 = static_cast< bool >(val5);
13756 }
13757 if (obj5) {
13758 {
13759 arg6 = wxString_in_helper(obj5);
13760 if (arg6 == NULL) SWIG_fail;
13761 temp6 = true;
13762 }
13763 }
13764 if (obj6) {
13765 ecode7 = SWIG_AsVal_int(obj6, &val7);
13766 if (!SWIG_IsOK(ecode7)) {
13767 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
13768 }
13769 arg7 = static_cast< wxFontEncoding >(val7);
13770 }
13771 {
13772 if (!wxPyCheckForApp()) SWIG_fail;
13773 PyThreadState* __tstate = wxPyBeginAllowThreads();
13774 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
13775 wxPyEndAllowThreads(__tstate);
13776 if (PyErr_Occurred()) SWIG_fail;
13777 }
13778 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13779 {
13780 if (temp6)
13781 delete arg6;
13782 }
13783 return resultobj;
13784 fail:
13785 {
13786 if (temp6)
13787 delete arg6;
13788 }
13789 return NULL;
13790 }
13791
13792
13793 SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13794 PyObject *resultobj = 0;
13795 wxSize *arg1 = 0 ;
13796 wxFontFamily arg2 ;
13797 int arg3 = (int) wxFONTFLAG_DEFAULT ;
13798 wxString const &arg4_defvalue = wxEmptyString ;
13799 wxString *arg4 = (wxString *) &arg4_defvalue ;
13800 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13801 wxFont *result = 0 ;
13802 wxSize temp1 ;
13803 int val2 ;
13804 int ecode2 = 0 ;
13805 int val3 ;
13806 int ecode3 = 0 ;
13807 bool temp4 = false ;
13808 int val5 ;
13809 int ecode5 = 0 ;
13810 PyObject * obj0 = 0 ;
13811 PyObject * obj1 = 0 ;
13812 PyObject * obj2 = 0 ;
13813 PyObject * obj3 = 0 ;
13814 PyObject * obj4 = 0 ;
13815 char * kwnames[] = {
13816 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
13817 };
13818
13819 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
13820 {
13821 arg1 = &temp1;
13822 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
13823 }
13824 ecode2 = SWIG_AsVal_int(obj1, &val2);
13825 if (!SWIG_IsOK(ecode2)) {
13826 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
13827 }
13828 arg2 = static_cast< wxFontFamily >(val2);
13829 if (obj2) {
13830 ecode3 = SWIG_AsVal_int(obj2, &val3);
13831 if (!SWIG_IsOK(ecode3)) {
13832 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
13833 }
13834 arg3 = static_cast< int >(val3);
13835 }
13836 if (obj3) {
13837 {
13838 arg4 = wxString_in_helper(obj3);
13839 if (arg4 == NULL) SWIG_fail;
13840 temp4 = true;
13841 }
13842 }
13843 if (obj4) {
13844 ecode5 = SWIG_AsVal_int(obj4, &val5);
13845 if (!SWIG_IsOK(ecode5)) {
13846 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
13847 }
13848 arg5 = static_cast< wxFontEncoding >(val5);
13849 }
13850 {
13851 if (!wxPyCheckForApp()) SWIG_fail;
13852 PyThreadState* __tstate = wxPyBeginAllowThreads();
13853 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
13854 wxPyEndAllowThreads(__tstate);
13855 if (PyErr_Occurred()) SWIG_fail;
13856 }
13857 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13858 {
13859 if (temp4)
13860 delete arg4;
13861 }
13862 return resultobj;
13863 fail:
13864 {
13865 if (temp4)
13866 delete arg4;
13867 }
13868 return NULL;
13869 }
13870
13871
13872 SWIGINTERN PyObject *_wrap_Font_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13873 PyObject *resultobj = 0;
13874 wxFont *arg1 = (wxFont *) 0 ;
13875 bool result;
13876 void *argp1 = 0 ;
13877 int res1 = 0 ;
13878 PyObject *swig_obj[1] ;
13879
13880 if (!args) SWIG_fail;
13881 swig_obj[0] = args;
13882 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13883 if (!SWIG_IsOK(res1)) {
13884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsOk" "', expected argument " "1"" of type '" "wxFont const *""'");
13885 }
13886 arg1 = reinterpret_cast< wxFont * >(argp1);
13887 {
13888 PyThreadState* __tstate = wxPyBeginAllowThreads();
13889 result = (bool)((wxFont const *)arg1)->IsOk();
13890 wxPyEndAllowThreads(__tstate);
13891 if (PyErr_Occurred()) SWIG_fail;
13892 }
13893 {
13894 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13895 }
13896 return resultobj;
13897 fail:
13898 return NULL;
13899 }
13900
13901
13902 SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13903 PyObject *resultobj = 0;
13904 wxFont *arg1 = (wxFont *) 0 ;
13905 wxFont *arg2 = (wxFont *) 0 ;
13906 bool result;
13907 void *argp1 = 0 ;
13908 int res1 = 0 ;
13909 void *argp2 = 0 ;
13910 int res2 = 0 ;
13911 PyObject * obj0 = 0 ;
13912 PyObject * obj1 = 0 ;
13913 char * kwnames[] = {
13914 (char *) "self",(char *) "other", NULL
13915 };
13916
13917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
13918 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13919 if (!SWIG_IsOK(res1)) {
13920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
13921 }
13922 arg1 = reinterpret_cast< wxFont * >(argp1);
13923 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
13924 if (!SWIG_IsOK(res2)) {
13925 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
13926 }
13927 arg2 = reinterpret_cast< wxFont * >(argp2);
13928 {
13929 PyThreadState* __tstate = wxPyBeginAllowThreads();
13930 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
13931 wxPyEndAllowThreads(__tstate);
13932 if (PyErr_Occurred()) SWIG_fail;
13933 }
13934 {
13935 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13936 }
13937 return resultobj;
13938 fail:
13939 return NULL;
13940 }
13941
13942
13943 SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13944 PyObject *resultobj = 0;
13945 wxFont *arg1 = (wxFont *) 0 ;
13946 wxFont *arg2 = (wxFont *) 0 ;
13947 bool result;
13948 void *argp1 = 0 ;
13949 int res1 = 0 ;
13950 void *argp2 = 0 ;
13951 int res2 = 0 ;
13952 PyObject * obj0 = 0 ;
13953 PyObject * obj1 = 0 ;
13954 char * kwnames[] = {
13955 (char *) "self",(char *) "other", NULL
13956 };
13957
13958 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
13959 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13960 if (!SWIG_IsOK(res1)) {
13961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
13962 }
13963 arg1 = reinterpret_cast< wxFont * >(argp1);
13964 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
13965 if (!SWIG_IsOK(res2)) {
13966 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
13967 }
13968 arg2 = reinterpret_cast< wxFont * >(argp2);
13969 {
13970 PyThreadState* __tstate = wxPyBeginAllowThreads();
13971 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
13972 wxPyEndAllowThreads(__tstate);
13973 if (PyErr_Occurred()) SWIG_fail;
13974 }
13975 {
13976 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13977 }
13978 return resultobj;
13979 fail:
13980 return NULL;
13981 }
13982
13983
13984 SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13985 PyObject *resultobj = 0;
13986 wxFont *arg1 = (wxFont *) 0 ;
13987 int result;
13988 void *argp1 = 0 ;
13989 int res1 = 0 ;
13990 PyObject *swig_obj[1] ;
13991
13992 if (!args) SWIG_fail;
13993 swig_obj[0] = args;
13994 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13995 if (!SWIG_IsOK(res1)) {
13996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
13997 }
13998 arg1 = reinterpret_cast< wxFont * >(argp1);
13999 {
14000 PyThreadState* __tstate = wxPyBeginAllowThreads();
14001 result = (int)((wxFont const *)arg1)->GetPointSize();
14002 wxPyEndAllowThreads(__tstate);
14003 if (PyErr_Occurred()) SWIG_fail;
14004 }
14005 resultobj = SWIG_From_int(static_cast< int >(result));
14006 return resultobj;
14007 fail:
14008 return NULL;
14009 }
14010
14011
14012 SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14013 PyObject *resultobj = 0;
14014 wxFont *arg1 = (wxFont *) 0 ;
14015 wxSize result;
14016 void *argp1 = 0 ;
14017 int res1 = 0 ;
14018 PyObject *swig_obj[1] ;
14019
14020 if (!args) SWIG_fail;
14021 swig_obj[0] = args;
14022 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14023 if (!SWIG_IsOK(res1)) {
14024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14025 }
14026 arg1 = reinterpret_cast< wxFont * >(argp1);
14027 {
14028 PyThreadState* __tstate = wxPyBeginAllowThreads();
14029 result = ((wxFont const *)arg1)->GetPixelSize();
14030 wxPyEndAllowThreads(__tstate);
14031 if (PyErr_Occurred()) SWIG_fail;
14032 }
14033 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
14034 return resultobj;
14035 fail:
14036 return NULL;
14037 }
14038
14039
14040 SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14041 PyObject *resultobj = 0;
14042 wxFont *arg1 = (wxFont *) 0 ;
14043 bool result;
14044 void *argp1 = 0 ;
14045 int res1 = 0 ;
14046 PyObject *swig_obj[1] ;
14047
14048 if (!args) SWIG_fail;
14049 swig_obj[0] = args;
14050 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14051 if (!SWIG_IsOK(res1)) {
14052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
14053 }
14054 arg1 = reinterpret_cast< wxFont * >(argp1);
14055 {
14056 PyThreadState* __tstate = wxPyBeginAllowThreads();
14057 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
14058 wxPyEndAllowThreads(__tstate);
14059 if (PyErr_Occurred()) SWIG_fail;
14060 }
14061 {
14062 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14063 }
14064 return resultobj;
14065 fail:
14066 return NULL;
14067 }
14068
14069
14070 SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14071 PyObject *resultobj = 0;
14072 wxFont *arg1 = (wxFont *) 0 ;
14073 int 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_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
14083 }
14084 arg1 = reinterpret_cast< wxFont * >(argp1);
14085 {
14086 PyThreadState* __tstate = wxPyBeginAllowThreads();
14087 result = (int)((wxFont const *)arg1)->GetFamily();
14088 wxPyEndAllowThreads(__tstate);
14089 if (PyErr_Occurred()) SWIG_fail;
14090 }
14091 resultobj = SWIG_From_int(static_cast< int >(result));
14092 return resultobj;
14093 fail:
14094 return NULL;
14095 }
14096
14097
14098 SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14099 PyObject *resultobj = 0;
14100 wxFont *arg1 = (wxFont *) 0 ;
14101 int result;
14102 void *argp1 = 0 ;
14103 int res1 = 0 ;
14104 PyObject *swig_obj[1] ;
14105
14106 if (!args) SWIG_fail;
14107 swig_obj[0] = args;
14108 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14109 if (!SWIG_IsOK(res1)) {
14110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
14111 }
14112 arg1 = reinterpret_cast< wxFont * >(argp1);
14113 {
14114 PyThreadState* __tstate = wxPyBeginAllowThreads();
14115 result = (int)((wxFont const *)arg1)->GetStyle();
14116 wxPyEndAllowThreads(__tstate);
14117 if (PyErr_Occurred()) SWIG_fail;
14118 }
14119 resultobj = SWIG_From_int(static_cast< int >(result));
14120 return resultobj;
14121 fail:
14122 return NULL;
14123 }
14124
14125
14126 SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14127 PyObject *resultobj = 0;
14128 wxFont *arg1 = (wxFont *) 0 ;
14129 int result;
14130 void *argp1 = 0 ;
14131 int res1 = 0 ;
14132 PyObject *swig_obj[1] ;
14133
14134 if (!args) SWIG_fail;
14135 swig_obj[0] = args;
14136 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14137 if (!SWIG_IsOK(res1)) {
14138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
14139 }
14140 arg1 = reinterpret_cast< wxFont * >(argp1);
14141 {
14142 PyThreadState* __tstate = wxPyBeginAllowThreads();
14143 result = (int)((wxFont const *)arg1)->GetWeight();
14144 wxPyEndAllowThreads(__tstate);
14145 if (PyErr_Occurred()) SWIG_fail;
14146 }
14147 resultobj = SWIG_From_int(static_cast< int >(result));
14148 return resultobj;
14149 fail:
14150 return NULL;
14151 }
14152
14153
14154 SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14155 PyObject *resultobj = 0;
14156 wxFont *arg1 = (wxFont *) 0 ;
14157 bool result;
14158 void *argp1 = 0 ;
14159 int res1 = 0 ;
14160 PyObject *swig_obj[1] ;
14161
14162 if (!args) SWIG_fail;
14163 swig_obj[0] = args;
14164 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14165 if (!SWIG_IsOK(res1)) {
14166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
14167 }
14168 arg1 = reinterpret_cast< wxFont * >(argp1);
14169 {
14170 PyThreadState* __tstate = wxPyBeginAllowThreads();
14171 result = (bool)((wxFont const *)arg1)->GetUnderlined();
14172 wxPyEndAllowThreads(__tstate);
14173 if (PyErr_Occurred()) SWIG_fail;
14174 }
14175 {
14176 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14177 }
14178 return resultobj;
14179 fail:
14180 return NULL;
14181 }
14182
14183
14184 SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14185 PyObject *resultobj = 0;
14186 wxFont *arg1 = (wxFont *) 0 ;
14187 wxString result;
14188 void *argp1 = 0 ;
14189 int res1 = 0 ;
14190 PyObject *swig_obj[1] ;
14191
14192 if (!args) SWIG_fail;
14193 swig_obj[0] = args;
14194 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14195 if (!SWIG_IsOK(res1)) {
14196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
14197 }
14198 arg1 = reinterpret_cast< wxFont * >(argp1);
14199 {
14200 PyThreadState* __tstate = wxPyBeginAllowThreads();
14201 result = ((wxFont const *)arg1)->GetFaceName();
14202 wxPyEndAllowThreads(__tstate);
14203 if (PyErr_Occurred()) SWIG_fail;
14204 }
14205 {
14206 #if wxUSE_UNICODE
14207 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14208 #else
14209 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14210 #endif
14211 }
14212 return resultobj;
14213 fail:
14214 return NULL;
14215 }
14216
14217
14218 SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14219 PyObject *resultobj = 0;
14220 wxFont *arg1 = (wxFont *) 0 ;
14221 wxFontEncoding result;
14222 void *argp1 = 0 ;
14223 int res1 = 0 ;
14224 PyObject *swig_obj[1] ;
14225
14226 if (!args) SWIG_fail;
14227 swig_obj[0] = args;
14228 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14229 if (!SWIG_IsOK(res1)) {
14230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
14231 }
14232 arg1 = reinterpret_cast< wxFont * >(argp1);
14233 {
14234 PyThreadState* __tstate = wxPyBeginAllowThreads();
14235 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
14236 wxPyEndAllowThreads(__tstate);
14237 if (PyErr_Occurred()) SWIG_fail;
14238 }
14239 resultobj = SWIG_From_int(static_cast< int >(result));
14240 return resultobj;
14241 fail:
14242 return NULL;
14243 }
14244
14245
14246 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14247 PyObject *resultobj = 0;
14248 wxFont *arg1 = (wxFont *) 0 ;
14249 wxNativeFontInfo *result = 0 ;
14250 void *argp1 = 0 ;
14251 int res1 = 0 ;
14252 PyObject *swig_obj[1] ;
14253
14254 if (!args) SWIG_fail;
14255 swig_obj[0] = args;
14256 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14257 if (!SWIG_IsOK(res1)) {
14258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
14259 }
14260 arg1 = reinterpret_cast< wxFont * >(argp1);
14261 {
14262 PyThreadState* __tstate = wxPyBeginAllowThreads();
14263 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
14264 wxPyEndAllowThreads(__tstate);
14265 if (PyErr_Occurred()) SWIG_fail;
14266 }
14267 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
14268 return resultobj;
14269 fail:
14270 return NULL;
14271 }
14272
14273
14274 SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14275 PyObject *resultobj = 0;
14276 wxFont *arg1 = (wxFont *) 0 ;
14277 bool result;
14278 void *argp1 = 0 ;
14279 int res1 = 0 ;
14280 PyObject *swig_obj[1] ;
14281
14282 if (!args) SWIG_fail;
14283 swig_obj[0] = args;
14284 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14285 if (!SWIG_IsOK(res1)) {
14286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
14287 }
14288 arg1 = reinterpret_cast< wxFont * >(argp1);
14289 {
14290 PyThreadState* __tstate = wxPyBeginAllowThreads();
14291 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
14292 wxPyEndAllowThreads(__tstate);
14293 if (PyErr_Occurred()) SWIG_fail;
14294 }
14295 {
14296 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14297 }
14298 return resultobj;
14299 fail:
14300 return NULL;
14301 }
14302
14303
14304 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14305 PyObject *resultobj = 0;
14306 wxFont *arg1 = (wxFont *) 0 ;
14307 wxString result;
14308 void *argp1 = 0 ;
14309 int res1 = 0 ;
14310 PyObject *swig_obj[1] ;
14311
14312 if (!args) SWIG_fail;
14313 swig_obj[0] = args;
14314 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14315 if (!SWIG_IsOK(res1)) {
14316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14317 }
14318 arg1 = reinterpret_cast< wxFont * >(argp1);
14319 {
14320 PyThreadState* __tstate = wxPyBeginAllowThreads();
14321 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
14322 wxPyEndAllowThreads(__tstate);
14323 if (PyErr_Occurred()) SWIG_fail;
14324 }
14325 {
14326 #if wxUSE_UNICODE
14327 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14328 #else
14329 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14330 #endif
14331 }
14332 return resultobj;
14333 fail:
14334 return NULL;
14335 }
14336
14337
14338 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14339 PyObject *resultobj = 0;
14340 wxFont *arg1 = (wxFont *) 0 ;
14341 wxString result;
14342 void *argp1 = 0 ;
14343 int res1 = 0 ;
14344 PyObject *swig_obj[1] ;
14345
14346 if (!args) SWIG_fail;
14347 swig_obj[0] = args;
14348 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14349 if (!SWIG_IsOK(res1)) {
14350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14351 }
14352 arg1 = reinterpret_cast< wxFont * >(argp1);
14353 {
14354 PyThreadState* __tstate = wxPyBeginAllowThreads();
14355 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
14356 wxPyEndAllowThreads(__tstate);
14357 if (PyErr_Occurred()) SWIG_fail;
14358 }
14359 {
14360 #if wxUSE_UNICODE
14361 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14362 #else
14363 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14364 #endif
14365 }
14366 return resultobj;
14367 fail:
14368 return NULL;
14369 }
14370
14371
14372 SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14373 PyObject *resultobj = 0;
14374 wxFont *arg1 = (wxFont *) 0 ;
14375 int arg2 ;
14376 void *argp1 = 0 ;
14377 int res1 = 0 ;
14378 int val2 ;
14379 int ecode2 = 0 ;
14380 PyObject * obj0 = 0 ;
14381 PyObject * obj1 = 0 ;
14382 char * kwnames[] = {
14383 (char *) "self",(char *) "pointSize", NULL
14384 };
14385
14386 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
14387 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14388 if (!SWIG_IsOK(res1)) {
14389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
14390 }
14391 arg1 = reinterpret_cast< wxFont * >(argp1);
14392 ecode2 = SWIG_AsVal_int(obj1, &val2);
14393 if (!SWIG_IsOK(ecode2)) {
14394 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
14395 }
14396 arg2 = static_cast< int >(val2);
14397 {
14398 PyThreadState* __tstate = wxPyBeginAllowThreads();
14399 (arg1)->SetPointSize(arg2);
14400 wxPyEndAllowThreads(__tstate);
14401 if (PyErr_Occurred()) SWIG_fail;
14402 }
14403 resultobj = SWIG_Py_Void();
14404 return resultobj;
14405 fail:
14406 return NULL;
14407 }
14408
14409
14410 SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14411 PyObject *resultobj = 0;
14412 wxFont *arg1 = (wxFont *) 0 ;
14413 wxSize *arg2 = 0 ;
14414 void *argp1 = 0 ;
14415 int res1 = 0 ;
14416 wxSize temp2 ;
14417 PyObject * obj0 = 0 ;
14418 PyObject * obj1 = 0 ;
14419 char * kwnames[] = {
14420 (char *) "self",(char *) "pixelSize", NULL
14421 };
14422
14423 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
14424 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14425 if (!SWIG_IsOK(res1)) {
14426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
14427 }
14428 arg1 = reinterpret_cast< wxFont * >(argp1);
14429 {
14430 arg2 = &temp2;
14431 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14432 }
14433 {
14434 PyThreadState* __tstate = wxPyBeginAllowThreads();
14435 (arg1)->SetPixelSize((wxSize const &)*arg2);
14436 wxPyEndAllowThreads(__tstate);
14437 if (PyErr_Occurred()) SWIG_fail;
14438 }
14439 resultobj = SWIG_Py_Void();
14440 return resultobj;
14441 fail:
14442 return NULL;
14443 }
14444
14445
14446 SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14447 PyObject *resultobj = 0;
14448 wxFont *arg1 = (wxFont *) 0 ;
14449 int arg2 ;
14450 void *argp1 = 0 ;
14451 int res1 = 0 ;
14452 int val2 ;
14453 int ecode2 = 0 ;
14454 PyObject * obj0 = 0 ;
14455 PyObject * obj1 = 0 ;
14456 char * kwnames[] = {
14457 (char *) "self",(char *) "family", NULL
14458 };
14459
14460 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
14461 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14462 if (!SWIG_IsOK(res1)) {
14463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
14464 }
14465 arg1 = reinterpret_cast< wxFont * >(argp1);
14466 ecode2 = SWIG_AsVal_int(obj1, &val2);
14467 if (!SWIG_IsOK(ecode2)) {
14468 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
14469 }
14470 arg2 = static_cast< int >(val2);
14471 {
14472 PyThreadState* __tstate = wxPyBeginAllowThreads();
14473 (arg1)->SetFamily(arg2);
14474 wxPyEndAllowThreads(__tstate);
14475 if (PyErr_Occurred()) SWIG_fail;
14476 }
14477 resultobj = SWIG_Py_Void();
14478 return resultobj;
14479 fail:
14480 return NULL;
14481 }
14482
14483
14484 SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14485 PyObject *resultobj = 0;
14486 wxFont *arg1 = (wxFont *) 0 ;
14487 int arg2 ;
14488 void *argp1 = 0 ;
14489 int res1 = 0 ;
14490 int val2 ;
14491 int ecode2 = 0 ;
14492 PyObject * obj0 = 0 ;
14493 PyObject * obj1 = 0 ;
14494 char * kwnames[] = {
14495 (char *) "self",(char *) "style", NULL
14496 };
14497
14498 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
14499 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14500 if (!SWIG_IsOK(res1)) {
14501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
14502 }
14503 arg1 = reinterpret_cast< wxFont * >(argp1);
14504 ecode2 = SWIG_AsVal_int(obj1, &val2);
14505 if (!SWIG_IsOK(ecode2)) {
14506 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
14507 }
14508 arg2 = static_cast< int >(val2);
14509 {
14510 PyThreadState* __tstate = wxPyBeginAllowThreads();
14511 (arg1)->SetStyle(arg2);
14512 wxPyEndAllowThreads(__tstate);
14513 if (PyErr_Occurred()) SWIG_fail;
14514 }
14515 resultobj = SWIG_Py_Void();
14516 return resultobj;
14517 fail:
14518 return NULL;
14519 }
14520
14521
14522 SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14523 PyObject *resultobj = 0;
14524 wxFont *arg1 = (wxFont *) 0 ;
14525 int arg2 ;
14526 void *argp1 = 0 ;
14527 int res1 = 0 ;
14528 int val2 ;
14529 int ecode2 = 0 ;
14530 PyObject * obj0 = 0 ;
14531 PyObject * obj1 = 0 ;
14532 char * kwnames[] = {
14533 (char *) "self",(char *) "weight", NULL
14534 };
14535
14536 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
14537 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14538 if (!SWIG_IsOK(res1)) {
14539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
14540 }
14541 arg1 = reinterpret_cast< wxFont * >(argp1);
14542 ecode2 = SWIG_AsVal_int(obj1, &val2);
14543 if (!SWIG_IsOK(ecode2)) {
14544 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
14545 }
14546 arg2 = static_cast< int >(val2);
14547 {
14548 PyThreadState* __tstate = wxPyBeginAllowThreads();
14549 (arg1)->SetWeight(arg2);
14550 wxPyEndAllowThreads(__tstate);
14551 if (PyErr_Occurred()) SWIG_fail;
14552 }
14553 resultobj = SWIG_Py_Void();
14554 return resultobj;
14555 fail:
14556 return NULL;
14557 }
14558
14559
14560 SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14561 PyObject *resultobj = 0;
14562 wxFont *arg1 = (wxFont *) 0 ;
14563 wxString *arg2 = 0 ;
14564 bool result;
14565 void *argp1 = 0 ;
14566 int res1 = 0 ;
14567 bool temp2 = false ;
14568 PyObject * obj0 = 0 ;
14569 PyObject * obj1 = 0 ;
14570 char * kwnames[] = {
14571 (char *) "self",(char *) "faceName", NULL
14572 };
14573
14574 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
14575 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14576 if (!SWIG_IsOK(res1)) {
14577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
14578 }
14579 arg1 = reinterpret_cast< wxFont * >(argp1);
14580 {
14581 arg2 = wxString_in_helper(obj1);
14582 if (arg2 == NULL) SWIG_fail;
14583 temp2 = true;
14584 }
14585 {
14586 PyThreadState* __tstate = wxPyBeginAllowThreads();
14587 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
14588 wxPyEndAllowThreads(__tstate);
14589 if (PyErr_Occurred()) SWIG_fail;
14590 }
14591 {
14592 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14593 }
14594 {
14595 if (temp2)
14596 delete arg2;
14597 }
14598 return resultobj;
14599 fail:
14600 {
14601 if (temp2)
14602 delete arg2;
14603 }
14604 return NULL;
14605 }
14606
14607
14608 SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14609 PyObject *resultobj = 0;
14610 wxFont *arg1 = (wxFont *) 0 ;
14611 bool arg2 ;
14612 void *argp1 = 0 ;
14613 int res1 = 0 ;
14614 bool val2 ;
14615 int ecode2 = 0 ;
14616 PyObject * obj0 = 0 ;
14617 PyObject * obj1 = 0 ;
14618 char * kwnames[] = {
14619 (char *) "self",(char *) "underlined", NULL
14620 };
14621
14622 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
14623 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14624 if (!SWIG_IsOK(res1)) {
14625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
14626 }
14627 arg1 = reinterpret_cast< wxFont * >(argp1);
14628 ecode2 = SWIG_AsVal_bool(obj1, &val2);
14629 if (!SWIG_IsOK(ecode2)) {
14630 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
14631 }
14632 arg2 = static_cast< bool >(val2);
14633 {
14634 PyThreadState* __tstate = wxPyBeginAllowThreads();
14635 (arg1)->SetUnderlined(arg2);
14636 wxPyEndAllowThreads(__tstate);
14637 if (PyErr_Occurred()) SWIG_fail;
14638 }
14639 resultobj = SWIG_Py_Void();
14640 return resultobj;
14641 fail:
14642 return NULL;
14643 }
14644
14645
14646 SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14647 PyObject *resultobj = 0;
14648 wxFont *arg1 = (wxFont *) 0 ;
14649 wxFontEncoding arg2 ;
14650 void *argp1 = 0 ;
14651 int res1 = 0 ;
14652 int val2 ;
14653 int ecode2 = 0 ;
14654 PyObject * obj0 = 0 ;
14655 PyObject * obj1 = 0 ;
14656 char * kwnames[] = {
14657 (char *) "self",(char *) "encoding", NULL
14658 };
14659
14660 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
14661 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14662 if (!SWIG_IsOK(res1)) {
14663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
14664 }
14665 arg1 = reinterpret_cast< wxFont * >(argp1);
14666 ecode2 = SWIG_AsVal_int(obj1, &val2);
14667 if (!SWIG_IsOK(ecode2)) {
14668 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14669 }
14670 arg2 = static_cast< wxFontEncoding >(val2);
14671 {
14672 PyThreadState* __tstate = wxPyBeginAllowThreads();
14673 (arg1)->SetEncoding(arg2);
14674 wxPyEndAllowThreads(__tstate);
14675 if (PyErr_Occurred()) SWIG_fail;
14676 }
14677 resultobj = SWIG_Py_Void();
14678 return resultobj;
14679 fail:
14680 return NULL;
14681 }
14682
14683
14684 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14685 PyObject *resultobj = 0;
14686 wxFont *arg1 = (wxFont *) 0 ;
14687 wxNativeFontInfo *arg2 = 0 ;
14688 void *argp1 = 0 ;
14689 int res1 = 0 ;
14690 void *argp2 = 0 ;
14691 int res2 = 0 ;
14692 PyObject * obj0 = 0 ;
14693 PyObject * obj1 = 0 ;
14694 char * kwnames[] = {
14695 (char *) "self",(char *) "info", NULL
14696 };
14697
14698 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
14699 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14700 if (!SWIG_IsOK(res1)) {
14701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
14702 }
14703 arg1 = reinterpret_cast< wxFont * >(argp1);
14704 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
14705 if (!SWIG_IsOK(res2)) {
14706 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
14707 }
14708 if (!argp2) {
14709 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
14710 }
14711 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
14712 {
14713 PyThreadState* __tstate = wxPyBeginAllowThreads();
14714 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
14715 wxPyEndAllowThreads(__tstate);
14716 if (PyErr_Occurred()) SWIG_fail;
14717 }
14718 resultobj = SWIG_Py_Void();
14719 return resultobj;
14720 fail:
14721 return NULL;
14722 }
14723
14724
14725 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14726 PyObject *resultobj = 0;
14727 wxFont *arg1 = (wxFont *) 0 ;
14728 wxString *arg2 = 0 ;
14729 bool result;
14730 void *argp1 = 0 ;
14731 int res1 = 0 ;
14732 bool temp2 = false ;
14733 PyObject * obj0 = 0 ;
14734 PyObject * obj1 = 0 ;
14735 char * kwnames[] = {
14736 (char *) "self",(char *) "info", NULL
14737 };
14738
14739 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
14740 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14741 if (!SWIG_IsOK(res1)) {
14742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
14743 }
14744 arg1 = reinterpret_cast< wxFont * >(argp1);
14745 {
14746 arg2 = wxString_in_helper(obj1);
14747 if (arg2 == NULL) SWIG_fail;
14748 temp2 = true;
14749 }
14750 {
14751 PyThreadState* __tstate = wxPyBeginAllowThreads();
14752 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
14753 wxPyEndAllowThreads(__tstate);
14754 if (PyErr_Occurred()) SWIG_fail;
14755 }
14756 {
14757 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14758 }
14759 {
14760 if (temp2)
14761 delete arg2;
14762 }
14763 return resultobj;
14764 fail:
14765 {
14766 if (temp2)
14767 delete arg2;
14768 }
14769 return NULL;
14770 }
14771
14772
14773 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14774 PyObject *resultobj = 0;
14775 wxFont *arg1 = (wxFont *) 0 ;
14776 wxString *arg2 = 0 ;
14777 bool result;
14778 void *argp1 = 0 ;
14779 int res1 = 0 ;
14780 bool temp2 = false ;
14781 PyObject * obj0 = 0 ;
14782 PyObject * obj1 = 0 ;
14783 char * kwnames[] = {
14784 (char *) "self",(char *) "info", NULL
14785 };
14786
14787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
14788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14789 if (!SWIG_IsOK(res1)) {
14790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
14791 }
14792 arg1 = reinterpret_cast< wxFont * >(argp1);
14793 {
14794 arg2 = wxString_in_helper(obj1);
14795 if (arg2 == NULL) SWIG_fail;
14796 temp2 = true;
14797 }
14798 {
14799 PyThreadState* __tstate = wxPyBeginAllowThreads();
14800 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
14801 wxPyEndAllowThreads(__tstate);
14802 if (PyErr_Occurred()) SWIG_fail;
14803 }
14804 {
14805 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14806 }
14807 {
14808 if (temp2)
14809 delete arg2;
14810 }
14811 return resultobj;
14812 fail:
14813 {
14814 if (temp2)
14815 delete arg2;
14816 }
14817 return NULL;
14818 }
14819
14820
14821 SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14822 PyObject *resultobj = 0;
14823 wxFont *arg1 = (wxFont *) 0 ;
14824 wxString result;
14825 void *argp1 = 0 ;
14826 int res1 = 0 ;
14827 PyObject *swig_obj[1] ;
14828
14829 if (!args) SWIG_fail;
14830 swig_obj[0] = args;
14831 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14832 if (!SWIG_IsOK(res1)) {
14833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
14834 }
14835 arg1 = reinterpret_cast< wxFont * >(argp1);
14836 {
14837 PyThreadState* __tstate = wxPyBeginAllowThreads();
14838 result = ((wxFont const *)arg1)->GetFamilyString();
14839 wxPyEndAllowThreads(__tstate);
14840 if (PyErr_Occurred()) SWIG_fail;
14841 }
14842 {
14843 #if wxUSE_UNICODE
14844 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14845 #else
14846 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14847 #endif
14848 }
14849 return resultobj;
14850 fail:
14851 return NULL;
14852 }
14853
14854
14855 SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14856 PyObject *resultobj = 0;
14857 wxFont *arg1 = (wxFont *) 0 ;
14858 wxString result;
14859 void *argp1 = 0 ;
14860 int res1 = 0 ;
14861 PyObject *swig_obj[1] ;
14862
14863 if (!args) SWIG_fail;
14864 swig_obj[0] = args;
14865 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14866 if (!SWIG_IsOK(res1)) {
14867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
14868 }
14869 arg1 = reinterpret_cast< wxFont * >(argp1);
14870 {
14871 PyThreadState* __tstate = wxPyBeginAllowThreads();
14872 result = ((wxFont const *)arg1)->GetStyleString();
14873 wxPyEndAllowThreads(__tstate);
14874 if (PyErr_Occurred()) SWIG_fail;
14875 }
14876 {
14877 #if wxUSE_UNICODE
14878 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14879 #else
14880 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14881 #endif
14882 }
14883 return resultobj;
14884 fail:
14885 return NULL;
14886 }
14887
14888
14889 SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14890 PyObject *resultobj = 0;
14891 wxFont *arg1 = (wxFont *) 0 ;
14892 wxString result;
14893 void *argp1 = 0 ;
14894 int res1 = 0 ;
14895 PyObject *swig_obj[1] ;
14896
14897 if (!args) SWIG_fail;
14898 swig_obj[0] = args;
14899 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14900 if (!SWIG_IsOK(res1)) {
14901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
14902 }
14903 arg1 = reinterpret_cast< wxFont * >(argp1);
14904 {
14905 PyThreadState* __tstate = wxPyBeginAllowThreads();
14906 result = ((wxFont const *)arg1)->GetWeightString();
14907 wxPyEndAllowThreads(__tstate);
14908 if (PyErr_Occurred()) SWIG_fail;
14909 }
14910 {
14911 #if wxUSE_UNICODE
14912 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14913 #else
14914 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14915 #endif
14916 }
14917 return resultobj;
14918 fail:
14919 return NULL;
14920 }
14921
14922
14923 SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14924 PyObject *resultobj = 0;
14925 wxFont *arg1 = (wxFont *) 0 ;
14926 bool arg2 = (bool) true ;
14927 void *argp1 = 0 ;
14928 int res1 = 0 ;
14929 bool val2 ;
14930 int ecode2 = 0 ;
14931 PyObject * obj0 = 0 ;
14932 PyObject * obj1 = 0 ;
14933 char * kwnames[] = {
14934 (char *) "self",(char *) "no", NULL
14935 };
14936
14937 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
14938 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14939 if (!SWIG_IsOK(res1)) {
14940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
14941 }
14942 arg1 = reinterpret_cast< wxFont * >(argp1);
14943 if (obj1) {
14944 ecode2 = SWIG_AsVal_bool(obj1, &val2);
14945 if (!SWIG_IsOK(ecode2)) {
14946 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
14947 }
14948 arg2 = static_cast< bool >(val2);
14949 }
14950 {
14951 PyThreadState* __tstate = wxPyBeginAllowThreads();
14952 (arg1)->SetNoAntiAliasing(arg2);
14953 wxPyEndAllowThreads(__tstate);
14954 if (PyErr_Occurred()) SWIG_fail;
14955 }
14956 resultobj = SWIG_Py_Void();
14957 return resultobj;
14958 fail:
14959 return NULL;
14960 }
14961
14962
14963 SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14964 PyObject *resultobj = 0;
14965 wxFont *arg1 = (wxFont *) 0 ;
14966 bool result;
14967 void *argp1 = 0 ;
14968 int res1 = 0 ;
14969 PyObject *swig_obj[1] ;
14970
14971 if (!args) SWIG_fail;
14972 swig_obj[0] = args;
14973 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14974 if (!SWIG_IsOK(res1)) {
14975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
14976 }
14977 arg1 = reinterpret_cast< wxFont * >(argp1);
14978 {
14979 PyThreadState* __tstate = wxPyBeginAllowThreads();
14980 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
14981 wxPyEndAllowThreads(__tstate);
14982 if (PyErr_Occurred()) SWIG_fail;
14983 }
14984 {
14985 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14986 }
14987 return resultobj;
14988 fail:
14989 return NULL;
14990 }
14991
14992
14993 SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14994 PyObject *resultobj = 0;
14995 wxFontEncoding result;
14996
14997 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
14998 {
14999 if (!wxPyCheckForApp()) SWIG_fail;
15000 PyThreadState* __tstate = wxPyBeginAllowThreads();
15001 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
15002 wxPyEndAllowThreads(__tstate);
15003 if (PyErr_Occurred()) SWIG_fail;
15004 }
15005 resultobj = SWIG_From_int(static_cast< int >(result));
15006 return resultobj;
15007 fail:
15008 return NULL;
15009 }
15010
15011
15012 SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15013 PyObject *resultobj = 0;
15014 wxFontEncoding arg1 ;
15015 int val1 ;
15016 int ecode1 = 0 ;
15017 PyObject * obj0 = 0 ;
15018 char * kwnames[] = {
15019 (char *) "encoding", NULL
15020 };
15021
15022 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
15023 ecode1 = SWIG_AsVal_int(obj0, &val1);
15024 if (!SWIG_IsOK(ecode1)) {
15025 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
15026 }
15027 arg1 = static_cast< wxFontEncoding >(val1);
15028 {
15029 if (!wxPyCheckForApp()) SWIG_fail;
15030 PyThreadState* __tstate = wxPyBeginAllowThreads();
15031 wxFont::SetDefaultEncoding(arg1);
15032 wxPyEndAllowThreads(__tstate);
15033 if (PyErr_Occurred()) SWIG_fail;
15034 }
15035 resultobj = SWIG_Py_Void();
15036 return resultobj;
15037 fail:
15038 return NULL;
15039 }
15040
15041
15042 SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15043 PyObject *obj;
15044 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15045 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
15046 return SWIG_Py_Void();
15047 }
15048
15049 SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15050 return SWIG_Python_InitShadowInstance(args);
15051 }
15052
15053 SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15054 PyObject *resultobj = 0;
15055 wxPyFontEnumerator *result = 0 ;
15056
15057 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
15058 {
15059 if (!wxPyCheckForApp()) SWIG_fail;
15060 PyThreadState* __tstate = wxPyBeginAllowThreads();
15061 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
15062 wxPyEndAllowThreads(__tstate);
15063 if (PyErr_Occurred()) SWIG_fail;
15064 }
15065 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
15066 return resultobj;
15067 fail:
15068 return NULL;
15069 }
15070
15071
15072 SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15073 PyObject *resultobj = 0;
15074 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15075 void *argp1 = 0 ;
15076 int res1 = 0 ;
15077 PyObject *swig_obj[1] ;
15078
15079 if (!args) SWIG_fail;
15080 swig_obj[0] = args;
15081 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
15082 if (!SWIG_IsOK(res1)) {
15083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15084 }
15085 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15086 {
15087 PyThreadState* __tstate = wxPyBeginAllowThreads();
15088 delete arg1;
15089
15090 wxPyEndAllowThreads(__tstate);
15091 if (PyErr_Occurred()) SWIG_fail;
15092 }
15093 resultobj = SWIG_Py_Void();
15094 return resultobj;
15095 fail:
15096 return NULL;
15097 }
15098
15099
15100 SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15101 PyObject *resultobj = 0;
15102 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15103 PyObject *arg2 = (PyObject *) 0 ;
15104 PyObject *arg3 = (PyObject *) 0 ;
15105 bool arg4 ;
15106 void *argp1 = 0 ;
15107 int res1 = 0 ;
15108 bool val4 ;
15109 int ecode4 = 0 ;
15110 PyObject * obj0 = 0 ;
15111 PyObject * obj1 = 0 ;
15112 PyObject * obj2 = 0 ;
15113 PyObject * obj3 = 0 ;
15114 char * kwnames[] = {
15115 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
15116 };
15117
15118 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15119 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15120 if (!SWIG_IsOK(res1)) {
15121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15122 }
15123 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15124 arg2 = obj1;
15125 arg3 = obj2;
15126 ecode4 = SWIG_AsVal_bool(obj3, &val4);
15127 if (!SWIG_IsOK(ecode4)) {
15128 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'");
15129 }
15130 arg4 = static_cast< bool >(val4);
15131 {
15132 PyThreadState* __tstate = wxPyBeginAllowThreads();
15133 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
15134 wxPyEndAllowThreads(__tstate);
15135 if (PyErr_Occurred()) SWIG_fail;
15136 }
15137 resultobj = SWIG_Py_Void();
15138 return resultobj;
15139 fail:
15140 return NULL;
15141 }
15142
15143
15144 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15145 PyObject *resultobj = 0;
15146 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15147 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
15148 bool arg3 = (bool) false ;
15149 bool result;
15150 void *argp1 = 0 ;
15151 int res1 = 0 ;
15152 int val2 ;
15153 int ecode2 = 0 ;
15154 bool val3 ;
15155 int ecode3 = 0 ;
15156 PyObject * obj0 = 0 ;
15157 PyObject * obj1 = 0 ;
15158 PyObject * obj2 = 0 ;
15159 char * kwnames[] = {
15160 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
15161 };
15162
15163 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15164 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15165 if (!SWIG_IsOK(res1)) {
15166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15167 }
15168 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15169 if (obj1) {
15170 ecode2 = SWIG_AsVal_int(obj1, &val2);
15171 if (!SWIG_IsOK(ecode2)) {
15172 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15173 }
15174 arg2 = static_cast< wxFontEncoding >(val2);
15175 }
15176 if (obj2) {
15177 ecode3 = SWIG_AsVal_bool(obj2, &val3);
15178 if (!SWIG_IsOK(ecode3)) {
15179 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
15180 }
15181 arg3 = static_cast< bool >(val3);
15182 }
15183 {
15184 PyThreadState* __tstate = wxPyBeginAllowThreads();
15185 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
15186 wxPyEndAllowThreads(__tstate);
15187 if (PyErr_Occurred()) SWIG_fail;
15188 }
15189 {
15190 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15191 }
15192 return resultobj;
15193 fail:
15194 return NULL;
15195 }
15196
15197
15198 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15199 PyObject *resultobj = 0;
15200 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15201 wxString const &arg2_defvalue = wxPyEmptyString ;
15202 wxString *arg2 = (wxString *) &arg2_defvalue ;
15203 bool result;
15204 void *argp1 = 0 ;
15205 int res1 = 0 ;
15206 bool temp2 = false ;
15207 PyObject * obj0 = 0 ;
15208 PyObject * obj1 = 0 ;
15209 char * kwnames[] = {
15210 (char *) "self",(char *) "facename", NULL
15211 };
15212
15213 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
15214 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15215 if (!SWIG_IsOK(res1)) {
15216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15217 }
15218 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15219 if (obj1) {
15220 {
15221 arg2 = wxString_in_helper(obj1);
15222 if (arg2 == NULL) SWIG_fail;
15223 temp2 = true;
15224 }
15225 }
15226 {
15227 PyThreadState* __tstate = wxPyBeginAllowThreads();
15228 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
15229 wxPyEndAllowThreads(__tstate);
15230 if (PyErr_Occurred()) SWIG_fail;
15231 }
15232 {
15233 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15234 }
15235 {
15236 if (temp2)
15237 delete arg2;
15238 }
15239 return resultobj;
15240 fail:
15241 {
15242 if (temp2)
15243 delete arg2;
15244 }
15245 return NULL;
15246 }
15247
15248
15249 SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15250 PyObject *resultobj = 0;
15251 PyObject *result = 0 ;
15252
15253 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
15254 {
15255 PyThreadState* __tstate = wxPyBeginAllowThreads();
15256 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
15257 wxPyEndAllowThreads(__tstate);
15258 if (PyErr_Occurred()) SWIG_fail;
15259 }
15260 resultobj = result;
15261 return resultobj;
15262 fail:
15263 return NULL;
15264 }
15265
15266
15267 SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15268 PyObject *resultobj = 0;
15269 PyObject *result = 0 ;
15270
15271 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
15272 {
15273 PyThreadState* __tstate = wxPyBeginAllowThreads();
15274 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
15275 wxPyEndAllowThreads(__tstate);
15276 if (PyErr_Occurred()) SWIG_fail;
15277 }
15278 resultobj = result;
15279 return resultobj;
15280 fail:
15281 return NULL;
15282 }
15283
15284
15285 SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15286 PyObject *resultobj = 0;
15287 wxString *arg1 = 0 ;
15288 bool result;
15289 bool temp1 = false ;
15290 PyObject * obj0 = 0 ;
15291 char * kwnames[] = {
15292 (char *) "str", NULL
15293 };
15294
15295 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
15296 {
15297 arg1 = wxString_in_helper(obj0);
15298 if (arg1 == NULL) SWIG_fail;
15299 temp1 = true;
15300 }
15301 {
15302 PyThreadState* __tstate = wxPyBeginAllowThreads();
15303 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
15304 wxPyEndAllowThreads(__tstate);
15305 if (PyErr_Occurred()) SWIG_fail;
15306 }
15307 {
15308 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15309 }
15310 {
15311 if (temp1)
15312 delete arg1;
15313 }
15314 return resultobj;
15315 fail:
15316 {
15317 if (temp1)
15318 delete arg1;
15319 }
15320 return NULL;
15321 }
15322
15323
15324 SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15325 PyObject *obj;
15326 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15327 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
15328 return SWIG_Py_Void();
15329 }
15330
15331 SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15332 return SWIG_Python_InitShadowInstance(args);
15333 }
15334
15335 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15336 PyObject *resultobj = 0;
15337 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15338 int arg2 ;
15339 void *argp1 = 0 ;
15340 int res1 = 0 ;
15341 int val2 ;
15342 int ecode2 = 0 ;
15343 PyObject *swig_obj[2] ;
15344
15345 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
15346 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15347 if (!SWIG_IsOK(res1)) {
15348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15349 }
15350 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15351 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
15352 if (!SWIG_IsOK(ecode2)) {
15353 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
15354 }
15355 arg2 = static_cast< int >(val2);
15356 if (arg1) (arg1)->Language = arg2;
15357
15358 resultobj = SWIG_Py_Void();
15359 return resultobj;
15360 fail:
15361 return NULL;
15362 }
15363
15364
15365 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15366 PyObject *resultobj = 0;
15367 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15368 int result;
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_wxLanguageInfo, 0 | 0 );
15376 if (!SWIG_IsOK(res1)) {
15377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15378 }
15379 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15380 result = (int) ((arg1)->Language);
15381 resultobj = SWIG_From_int(static_cast< int >(result));
15382 return resultobj;
15383 fail:
15384 return NULL;
15385 }
15386
15387
15388 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15389 PyObject *resultobj = 0;
15390 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15391 wxString *arg2 = (wxString *) 0 ;
15392 void *argp1 = 0 ;
15393 int res1 = 0 ;
15394 bool temp2 = false ;
15395 PyObject *swig_obj[2] ;
15396
15397 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
15398 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15399 if (!SWIG_IsOK(res1)) {
15400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15401 }
15402 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15403 {
15404 arg2 = wxString_in_helper(swig_obj[1]);
15405 if (arg2 == NULL) SWIG_fail;
15406 temp2 = true;
15407 }
15408 if (arg1) (arg1)->CanonicalName = *arg2;
15409
15410 resultobj = SWIG_Py_Void();
15411 {
15412 if (temp2)
15413 delete arg2;
15414 }
15415 return resultobj;
15416 fail:
15417 {
15418 if (temp2)
15419 delete arg2;
15420 }
15421 return NULL;
15422 }
15423
15424
15425 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15426 PyObject *resultobj = 0;
15427 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15428 wxString *result = 0 ;
15429 void *argp1 = 0 ;
15430 int res1 = 0 ;
15431 PyObject *swig_obj[1] ;
15432
15433 if (!args) SWIG_fail;
15434 swig_obj[0] = args;
15435 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15436 if (!SWIG_IsOK(res1)) {
15437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15438 }
15439 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15440 result = (wxString *)& ((arg1)->CanonicalName);
15441 {
15442 #if wxUSE_UNICODE
15443 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15444 #else
15445 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15446 #endif
15447 }
15448 return resultobj;
15449 fail:
15450 return NULL;
15451 }
15452
15453
15454 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15455 PyObject *resultobj = 0;
15456 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15457 wxString *arg2 = (wxString *) 0 ;
15458 void *argp1 = 0 ;
15459 int res1 = 0 ;
15460 bool temp2 = false ;
15461 PyObject *swig_obj[2] ;
15462
15463 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
15464 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15465 if (!SWIG_IsOK(res1)) {
15466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15467 }
15468 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15469 {
15470 arg2 = wxString_in_helper(swig_obj[1]);
15471 if (arg2 == NULL) SWIG_fail;
15472 temp2 = true;
15473 }
15474 if (arg1) (arg1)->Description = *arg2;
15475
15476 resultobj = SWIG_Py_Void();
15477 {
15478 if (temp2)
15479 delete arg2;
15480 }
15481 return resultobj;
15482 fail:
15483 {
15484 if (temp2)
15485 delete arg2;
15486 }
15487 return NULL;
15488 }
15489
15490
15491 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15492 PyObject *resultobj = 0;
15493 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15494 wxString *result = 0 ;
15495 void *argp1 = 0 ;
15496 int res1 = 0 ;
15497 PyObject *swig_obj[1] ;
15498
15499 if (!args) SWIG_fail;
15500 swig_obj[0] = args;
15501 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15502 if (!SWIG_IsOK(res1)) {
15503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15504 }
15505 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15506 result = (wxString *)& ((arg1)->Description);
15507 {
15508 #if wxUSE_UNICODE
15509 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15510 #else
15511 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15512 #endif
15513 }
15514 return resultobj;
15515 fail:
15516 return NULL;
15517 }
15518
15519
15520 SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15521 PyObject *obj;
15522 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15523 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
15524 return SWIG_Py_Void();
15525 }
15526
15527 SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15528 PyObject *resultobj = 0;
15529 int arg1 = (int) -1 ;
15530 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
15531 wxLocale *result = 0 ;
15532 int val1 ;
15533 int ecode1 = 0 ;
15534 int val2 ;
15535 int ecode2 = 0 ;
15536 PyObject * obj0 = 0 ;
15537 PyObject * obj1 = 0 ;
15538 char * kwnames[] = {
15539 (char *) "language",(char *) "flags", NULL
15540 };
15541
15542 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
15543 if (obj0) {
15544 ecode1 = SWIG_AsVal_int(obj0, &val1);
15545 if (!SWIG_IsOK(ecode1)) {
15546 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
15547 }
15548 arg1 = static_cast< int >(val1);
15549 }
15550 if (obj1) {
15551 ecode2 = SWIG_AsVal_int(obj1, &val2);
15552 if (!SWIG_IsOK(ecode2)) {
15553 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
15554 }
15555 arg2 = static_cast< int >(val2);
15556 }
15557 {
15558 PyThreadState* __tstate = wxPyBeginAllowThreads();
15559 result = (wxLocale *)new_wxLocale(arg1,arg2);
15560 wxPyEndAllowThreads(__tstate);
15561 if (PyErr_Occurred()) SWIG_fail;
15562 }
15563 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
15564 return resultobj;
15565 fail:
15566 return NULL;
15567 }
15568
15569
15570 SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15571 PyObject *resultobj = 0;
15572 wxLocale *arg1 = (wxLocale *) 0 ;
15573 void *argp1 = 0 ;
15574 int res1 = 0 ;
15575 PyObject *swig_obj[1] ;
15576
15577 if (!args) SWIG_fail;
15578 swig_obj[0] = args;
15579 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
15580 if (!SWIG_IsOK(res1)) {
15581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
15582 }
15583 arg1 = reinterpret_cast< wxLocale * >(argp1);
15584 {
15585 PyThreadState* __tstate = wxPyBeginAllowThreads();
15586 delete arg1;
15587
15588 wxPyEndAllowThreads(__tstate);
15589 if (PyErr_Occurred()) SWIG_fail;
15590 }
15591 resultobj = SWIG_Py_Void();
15592 return resultobj;
15593 fail:
15594 return NULL;
15595 }
15596
15597
15598 SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15599 PyObject *resultobj = 0;
15600 wxLocale *arg1 = (wxLocale *) 0 ;
15601 wxString *arg2 = 0 ;
15602 wxString const &arg3_defvalue = wxPyEmptyString ;
15603 wxString *arg3 = (wxString *) &arg3_defvalue ;
15604 wxString const &arg4_defvalue = wxPyEmptyString ;
15605 wxString *arg4 = (wxString *) &arg4_defvalue ;
15606 bool arg5 = (bool) true ;
15607 bool arg6 = (bool) false ;
15608 bool result;
15609 void *argp1 = 0 ;
15610 int res1 = 0 ;
15611 bool temp2 = false ;
15612 bool temp3 = false ;
15613 bool temp4 = false ;
15614 bool val5 ;
15615 int ecode5 = 0 ;
15616 bool val6 ;
15617 int ecode6 = 0 ;
15618 PyObject * obj0 = 0 ;
15619 PyObject * obj1 = 0 ;
15620 PyObject * obj2 = 0 ;
15621 PyObject * obj3 = 0 ;
15622 PyObject * obj4 = 0 ;
15623 PyObject * obj5 = 0 ;
15624 char * kwnames[] = {
15625 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
15626 };
15627
15628 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
15629 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15630 if (!SWIG_IsOK(res1)) {
15631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
15632 }
15633 arg1 = reinterpret_cast< wxLocale * >(argp1);
15634 {
15635 arg2 = wxString_in_helper(obj1);
15636 if (arg2 == NULL) SWIG_fail;
15637 temp2 = true;
15638 }
15639 if (obj2) {
15640 {
15641 arg3 = wxString_in_helper(obj2);
15642 if (arg3 == NULL) SWIG_fail;
15643 temp3 = true;
15644 }
15645 }
15646 if (obj3) {
15647 {
15648 arg4 = wxString_in_helper(obj3);
15649 if (arg4 == NULL) SWIG_fail;
15650 temp4 = true;
15651 }
15652 }
15653 if (obj4) {
15654 ecode5 = SWIG_AsVal_bool(obj4, &val5);
15655 if (!SWIG_IsOK(ecode5)) {
15656 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
15657 }
15658 arg5 = static_cast< bool >(val5);
15659 }
15660 if (obj5) {
15661 ecode6 = SWIG_AsVal_bool(obj5, &val6);
15662 if (!SWIG_IsOK(ecode6)) {
15663 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
15664 }
15665 arg6 = static_cast< bool >(val6);
15666 }
15667 {
15668 PyThreadState* __tstate = wxPyBeginAllowThreads();
15669 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
15670 wxPyEndAllowThreads(__tstate);
15671 if (PyErr_Occurred()) SWIG_fail;
15672 }
15673 {
15674 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15675 }
15676 {
15677 if (temp2)
15678 delete arg2;
15679 }
15680 {
15681 if (temp3)
15682 delete arg3;
15683 }
15684 {
15685 if (temp4)
15686 delete arg4;
15687 }
15688 return resultobj;
15689 fail:
15690 {
15691 if (temp2)
15692 delete arg2;
15693 }
15694 {
15695 if (temp3)
15696 delete arg3;
15697 }
15698 {
15699 if (temp4)
15700 delete arg4;
15701 }
15702 return NULL;
15703 }
15704
15705
15706 SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15707 PyObject *resultobj = 0;
15708 wxLocale *arg1 = (wxLocale *) 0 ;
15709 int arg2 = (int) wxLANGUAGE_DEFAULT ;
15710 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
15711 bool result;
15712 void *argp1 = 0 ;
15713 int res1 = 0 ;
15714 int val2 ;
15715 int ecode2 = 0 ;
15716 int val3 ;
15717 int ecode3 = 0 ;
15718 PyObject * obj0 = 0 ;
15719 PyObject * obj1 = 0 ;
15720 PyObject * obj2 = 0 ;
15721 char * kwnames[] = {
15722 (char *) "self",(char *) "language",(char *) "flags", NULL
15723 };
15724
15725 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15726 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15727 if (!SWIG_IsOK(res1)) {
15728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
15729 }
15730 arg1 = reinterpret_cast< wxLocale * >(argp1);
15731 if (obj1) {
15732 ecode2 = SWIG_AsVal_int(obj1, &val2);
15733 if (!SWIG_IsOK(ecode2)) {
15734 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
15735 }
15736 arg2 = static_cast< int >(val2);
15737 }
15738 if (obj2) {
15739 ecode3 = SWIG_AsVal_int(obj2, &val3);
15740 if (!SWIG_IsOK(ecode3)) {
15741 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
15742 }
15743 arg3 = static_cast< int >(val3);
15744 }
15745 {
15746 PyThreadState* __tstate = wxPyBeginAllowThreads();
15747 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
15748 wxPyEndAllowThreads(__tstate);
15749 if (PyErr_Occurred()) SWIG_fail;
15750 }
15751 {
15752 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15753 }
15754 return resultobj;
15755 fail:
15756 return NULL;
15757 }
15758
15759
15760 SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15761 PyObject *resultobj = 0;
15762 int result;
15763
15764 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
15765 {
15766 PyThreadState* __tstate = wxPyBeginAllowThreads();
15767 result = (int)wxLocale::GetSystemLanguage();
15768 wxPyEndAllowThreads(__tstate);
15769 if (PyErr_Occurred()) SWIG_fail;
15770 }
15771 resultobj = SWIG_From_int(static_cast< int >(result));
15772 return resultobj;
15773 fail:
15774 return NULL;
15775 }
15776
15777
15778 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15779 PyObject *resultobj = 0;
15780 wxFontEncoding result;
15781
15782 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
15783 {
15784 PyThreadState* __tstate = wxPyBeginAllowThreads();
15785 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
15786 wxPyEndAllowThreads(__tstate);
15787 if (PyErr_Occurred()) SWIG_fail;
15788 }
15789 resultobj = SWIG_From_int(static_cast< int >(result));
15790 return resultobj;
15791 fail:
15792 return NULL;
15793 }
15794
15795
15796 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15797 PyObject *resultobj = 0;
15798 wxString result;
15799
15800 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
15801 {
15802 PyThreadState* __tstate = wxPyBeginAllowThreads();
15803 result = wxLocale::GetSystemEncodingName();
15804 wxPyEndAllowThreads(__tstate);
15805 if (PyErr_Occurred()) SWIG_fail;
15806 }
15807 {
15808 #if wxUSE_UNICODE
15809 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15810 #else
15811 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15812 #endif
15813 }
15814 return resultobj;
15815 fail:
15816 return NULL;
15817 }
15818
15819
15820 SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15821 PyObject *resultobj = 0;
15822 wxLocale *arg1 = (wxLocale *) 0 ;
15823 bool result;
15824 void *argp1 = 0 ;
15825 int res1 = 0 ;
15826 PyObject *swig_obj[1] ;
15827
15828 if (!args) SWIG_fail;
15829 swig_obj[0] = args;
15830 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15831 if (!SWIG_IsOK(res1)) {
15832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
15833 }
15834 arg1 = reinterpret_cast< wxLocale * >(argp1);
15835 {
15836 PyThreadState* __tstate = wxPyBeginAllowThreads();
15837 result = (bool)((wxLocale const *)arg1)->IsOk();
15838 wxPyEndAllowThreads(__tstate);
15839 if (PyErr_Occurred()) SWIG_fail;
15840 }
15841 {
15842 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15843 }
15844 return resultobj;
15845 fail:
15846 return NULL;
15847 }
15848
15849
15850 SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15851 PyObject *resultobj = 0;
15852 wxLocale *arg1 = (wxLocale *) 0 ;
15853 wxString result;
15854 void *argp1 = 0 ;
15855 int res1 = 0 ;
15856 PyObject *swig_obj[1] ;
15857
15858 if (!args) SWIG_fail;
15859 swig_obj[0] = args;
15860 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15861 if (!SWIG_IsOK(res1)) {
15862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
15863 }
15864 arg1 = reinterpret_cast< wxLocale * >(argp1);
15865 {
15866 PyThreadState* __tstate = wxPyBeginAllowThreads();
15867 result = ((wxLocale const *)arg1)->GetLocale();
15868 wxPyEndAllowThreads(__tstate);
15869 if (PyErr_Occurred()) SWIG_fail;
15870 }
15871 {
15872 #if wxUSE_UNICODE
15873 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15874 #else
15875 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15876 #endif
15877 }
15878 return resultobj;
15879 fail:
15880 return NULL;
15881 }
15882
15883
15884 SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15885 PyObject *resultobj = 0;
15886 wxLocale *arg1 = (wxLocale *) 0 ;
15887 int result;
15888 void *argp1 = 0 ;
15889 int res1 = 0 ;
15890 PyObject *swig_obj[1] ;
15891
15892 if (!args) SWIG_fail;
15893 swig_obj[0] = args;
15894 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15895 if (!SWIG_IsOK(res1)) {
15896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
15897 }
15898 arg1 = reinterpret_cast< wxLocale * >(argp1);
15899 {
15900 PyThreadState* __tstate = wxPyBeginAllowThreads();
15901 result = (int)((wxLocale const *)arg1)->GetLanguage();
15902 wxPyEndAllowThreads(__tstate);
15903 if (PyErr_Occurred()) SWIG_fail;
15904 }
15905 resultobj = SWIG_From_int(static_cast< int >(result));
15906 return resultobj;
15907 fail:
15908 return NULL;
15909 }
15910
15911
15912 SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15913 PyObject *resultobj = 0;
15914 wxLocale *arg1 = (wxLocale *) 0 ;
15915 wxString result;
15916 void *argp1 = 0 ;
15917 int res1 = 0 ;
15918 PyObject *swig_obj[1] ;
15919
15920 if (!args) SWIG_fail;
15921 swig_obj[0] = args;
15922 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15923 if (!SWIG_IsOK(res1)) {
15924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
15925 }
15926 arg1 = reinterpret_cast< wxLocale * >(argp1);
15927 {
15928 PyThreadState* __tstate = wxPyBeginAllowThreads();
15929 result = ((wxLocale const *)arg1)->GetSysName();
15930 wxPyEndAllowThreads(__tstate);
15931 if (PyErr_Occurred()) SWIG_fail;
15932 }
15933 {
15934 #if wxUSE_UNICODE
15935 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15936 #else
15937 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15938 #endif
15939 }
15940 return resultobj;
15941 fail:
15942 return NULL;
15943 }
15944
15945
15946 SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15947 PyObject *resultobj = 0;
15948 wxLocale *arg1 = (wxLocale *) 0 ;
15949 wxString result;
15950 void *argp1 = 0 ;
15951 int res1 = 0 ;
15952 PyObject *swig_obj[1] ;
15953
15954 if (!args) SWIG_fail;
15955 swig_obj[0] = args;
15956 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15957 if (!SWIG_IsOK(res1)) {
15958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
15959 }
15960 arg1 = reinterpret_cast< wxLocale * >(argp1);
15961 {
15962 PyThreadState* __tstate = wxPyBeginAllowThreads();
15963 result = ((wxLocale const *)arg1)->GetCanonicalName();
15964 wxPyEndAllowThreads(__tstate);
15965 if (PyErr_Occurred()) SWIG_fail;
15966 }
15967 {
15968 #if wxUSE_UNICODE
15969 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15970 #else
15971 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15972 #endif
15973 }
15974 return resultobj;
15975 fail:
15976 return NULL;
15977 }
15978
15979
15980 SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15981 PyObject *resultobj = 0;
15982 wxString *arg1 = 0 ;
15983 bool temp1 = false ;
15984 PyObject * obj0 = 0 ;
15985 char * kwnames[] = {
15986 (char *) "prefix", NULL
15987 };
15988
15989 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
15990 {
15991 arg1 = wxString_in_helper(obj0);
15992 if (arg1 == NULL) SWIG_fail;
15993 temp1 = true;
15994 }
15995 {
15996 PyThreadState* __tstate = wxPyBeginAllowThreads();
15997 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
15998 wxPyEndAllowThreads(__tstate);
15999 if (PyErr_Occurred()) SWIG_fail;
16000 }
16001 resultobj = SWIG_Py_Void();
16002 {
16003 if (temp1)
16004 delete arg1;
16005 }
16006 return resultobj;
16007 fail:
16008 {
16009 if (temp1)
16010 delete arg1;
16011 }
16012 return NULL;
16013 }
16014
16015
16016 SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16017 PyObject *resultobj = 0;
16018 wxLocale *arg1 = (wxLocale *) 0 ;
16019 wxString *arg2 = 0 ;
16020 bool result;
16021 void *argp1 = 0 ;
16022 int res1 = 0 ;
16023 bool temp2 = false ;
16024 PyObject * obj0 = 0 ;
16025 PyObject * obj1 = 0 ;
16026 char * kwnames[] = {
16027 (char *) "self",(char *) "szDomain", NULL
16028 };
16029
16030 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
16031 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16032 if (!SWIG_IsOK(res1)) {
16033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
16034 }
16035 arg1 = reinterpret_cast< wxLocale * >(argp1);
16036 {
16037 arg2 = wxString_in_helper(obj1);
16038 if (arg2 == NULL) SWIG_fail;
16039 temp2 = true;
16040 }
16041 {
16042 PyThreadState* __tstate = wxPyBeginAllowThreads();
16043 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
16044 wxPyEndAllowThreads(__tstate);
16045 if (PyErr_Occurred()) SWIG_fail;
16046 }
16047 {
16048 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16049 }
16050 {
16051 if (temp2)
16052 delete arg2;
16053 }
16054 return resultobj;
16055 fail:
16056 {
16057 if (temp2)
16058 delete arg2;
16059 }
16060 return NULL;
16061 }
16062
16063
16064 SWIGINTERN PyObject *_wrap_Locale_IsAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16065 PyObject *resultobj = 0;
16066 int arg1 ;
16067 bool result;
16068 int val1 ;
16069 int ecode1 = 0 ;
16070 PyObject * obj0 = 0 ;
16071 char * kwnames[] = {
16072 (char *) "lang", NULL
16073 };
16074
16075 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsAvailable",kwnames,&obj0)) SWIG_fail;
16076 ecode1 = SWIG_AsVal_int(obj0, &val1);
16077 if (!SWIG_IsOK(ecode1)) {
16078 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_IsAvailable" "', expected argument " "1"" of type '" "int""'");
16079 }
16080 arg1 = static_cast< int >(val1);
16081 {
16082 PyThreadState* __tstate = wxPyBeginAllowThreads();
16083 result = (bool)wxLocale::IsAvailable(arg1);
16084 wxPyEndAllowThreads(__tstate);
16085 if (PyErr_Occurred()) SWIG_fail;
16086 }
16087 {
16088 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16089 }
16090 return resultobj;
16091 fail:
16092 return NULL;
16093 }
16094
16095
16096 SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16097 PyObject *resultobj = 0;
16098 wxLocale *arg1 = (wxLocale *) 0 ;
16099 wxString *arg2 = 0 ;
16100 bool result;
16101 void *argp1 = 0 ;
16102 int res1 = 0 ;
16103 bool temp2 = false ;
16104 PyObject * obj0 = 0 ;
16105 PyObject * obj1 = 0 ;
16106 char * kwnames[] = {
16107 (char *) "self",(char *) "szDomain", NULL
16108 };
16109
16110 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
16111 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16112 if (!SWIG_IsOK(res1)) {
16113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
16114 }
16115 arg1 = reinterpret_cast< wxLocale * >(argp1);
16116 {
16117 arg2 = wxString_in_helper(obj1);
16118 if (arg2 == NULL) SWIG_fail;
16119 temp2 = true;
16120 }
16121 {
16122 PyThreadState* __tstate = wxPyBeginAllowThreads();
16123 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
16124 wxPyEndAllowThreads(__tstate);
16125 if (PyErr_Occurred()) SWIG_fail;
16126 }
16127 {
16128 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16129 }
16130 {
16131 if (temp2)
16132 delete arg2;
16133 }
16134 return resultobj;
16135 fail:
16136 {
16137 if (temp2)
16138 delete arg2;
16139 }
16140 return NULL;
16141 }
16142
16143
16144 SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16145 PyObject *resultobj = 0;
16146 int arg1 ;
16147 wxLanguageInfo *result = 0 ;
16148 int val1 ;
16149 int ecode1 = 0 ;
16150 PyObject * obj0 = 0 ;
16151 char * kwnames[] = {
16152 (char *) "lang", NULL
16153 };
16154
16155 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
16156 ecode1 = SWIG_AsVal_int(obj0, &val1);
16157 if (!SWIG_IsOK(ecode1)) {
16158 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
16159 }
16160 arg1 = static_cast< int >(val1);
16161 {
16162 PyThreadState* __tstate = wxPyBeginAllowThreads();
16163 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
16164 wxPyEndAllowThreads(__tstate);
16165 if (PyErr_Occurred()) SWIG_fail;
16166 }
16167 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16168 return resultobj;
16169 fail:
16170 return NULL;
16171 }
16172
16173
16174 SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16175 PyObject *resultobj = 0;
16176 int arg1 ;
16177 wxString result;
16178 int val1 ;
16179 int ecode1 = 0 ;
16180 PyObject * obj0 = 0 ;
16181 char * kwnames[] = {
16182 (char *) "lang", NULL
16183 };
16184
16185 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
16186 ecode1 = SWIG_AsVal_int(obj0, &val1);
16187 if (!SWIG_IsOK(ecode1)) {
16188 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
16189 }
16190 arg1 = static_cast< int >(val1);
16191 {
16192 PyThreadState* __tstate = wxPyBeginAllowThreads();
16193 result = wxLocale::GetLanguageName(arg1);
16194 wxPyEndAllowThreads(__tstate);
16195 if (PyErr_Occurred()) SWIG_fail;
16196 }
16197 {
16198 #if wxUSE_UNICODE
16199 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16200 #else
16201 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16202 #endif
16203 }
16204 return resultobj;
16205 fail:
16206 return NULL;
16207 }
16208
16209
16210 SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16211 PyObject *resultobj = 0;
16212 wxString *arg1 = 0 ;
16213 wxLanguageInfo *result = 0 ;
16214 bool temp1 = false ;
16215 PyObject * obj0 = 0 ;
16216 char * kwnames[] = {
16217 (char *) "locale", NULL
16218 };
16219
16220 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
16221 {
16222 arg1 = wxString_in_helper(obj0);
16223 if (arg1 == NULL) SWIG_fail;
16224 temp1 = true;
16225 }
16226 {
16227 PyThreadState* __tstate = wxPyBeginAllowThreads();
16228 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
16229 wxPyEndAllowThreads(__tstate);
16230 if (PyErr_Occurred()) SWIG_fail;
16231 }
16232 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16233 {
16234 if (temp1)
16235 delete arg1;
16236 }
16237 return resultobj;
16238 fail:
16239 {
16240 if (temp1)
16241 delete arg1;
16242 }
16243 return NULL;
16244 }
16245
16246
16247 SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16248 PyObject *resultobj = 0;
16249 wxLanguageInfo *arg1 = 0 ;
16250 void *argp1 = 0 ;
16251 int res1 = 0 ;
16252 PyObject * obj0 = 0 ;
16253 char * kwnames[] = {
16254 (char *) "info", NULL
16255 };
16256
16257 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
16258 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
16259 if (!SWIG_IsOK(res1)) {
16260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16261 }
16262 if (!argp1) {
16263 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16264 }
16265 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16266 {
16267 PyThreadState* __tstate = wxPyBeginAllowThreads();
16268 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
16269 wxPyEndAllowThreads(__tstate);
16270 if (PyErr_Occurred()) SWIG_fail;
16271 }
16272 resultobj = SWIG_Py_Void();
16273 return resultobj;
16274 fail:
16275 return NULL;
16276 }
16277
16278
16279 SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16280 PyObject *resultobj = 0;
16281 wxLocale *arg1 = (wxLocale *) 0 ;
16282 wxString *arg2 = 0 ;
16283 wxString const &arg3_defvalue = wxPyEmptyString ;
16284 wxString *arg3 = (wxString *) &arg3_defvalue ;
16285 wxString result;
16286 void *argp1 = 0 ;
16287 int res1 = 0 ;
16288 bool temp2 = false ;
16289 bool temp3 = false ;
16290 PyObject * obj0 = 0 ;
16291 PyObject * obj1 = 0 ;
16292 PyObject * obj2 = 0 ;
16293 char * kwnames[] = {
16294 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16295 };
16296
16297 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16298 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16299 if (!SWIG_IsOK(res1)) {
16300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
16301 }
16302 arg1 = reinterpret_cast< wxLocale * >(argp1);
16303 {
16304 arg2 = wxString_in_helper(obj1);
16305 if (arg2 == NULL) SWIG_fail;
16306 temp2 = true;
16307 }
16308 if (obj2) {
16309 {
16310 arg3 = wxString_in_helper(obj2);
16311 if (arg3 == NULL) SWIG_fail;
16312 temp3 = true;
16313 }
16314 }
16315 {
16316 PyThreadState* __tstate = wxPyBeginAllowThreads();
16317 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
16318 wxPyEndAllowThreads(__tstate);
16319 if (PyErr_Occurred()) SWIG_fail;
16320 }
16321 {
16322 #if wxUSE_UNICODE
16323 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16324 #else
16325 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16326 #endif
16327 }
16328 {
16329 if (temp2)
16330 delete arg2;
16331 }
16332 {
16333 if (temp3)
16334 delete arg3;
16335 }
16336 return resultobj;
16337 fail:
16338 {
16339 if (temp2)
16340 delete arg2;
16341 }
16342 {
16343 if (temp3)
16344 delete arg3;
16345 }
16346 return NULL;
16347 }
16348
16349
16350 SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16351 PyObject *resultobj = 0;
16352 wxLocale *arg1 = (wxLocale *) 0 ;
16353 wxString *result = 0 ;
16354 void *argp1 = 0 ;
16355 int res1 = 0 ;
16356 PyObject *swig_obj[1] ;
16357
16358 if (!args) SWIG_fail;
16359 swig_obj[0] = args;
16360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16361 if (!SWIG_IsOK(res1)) {
16362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16363 }
16364 arg1 = reinterpret_cast< wxLocale * >(argp1);
16365 {
16366 PyThreadState* __tstate = wxPyBeginAllowThreads();
16367 {
16368 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
16369 result = (wxString *) &_result_ref;
16370 }
16371 wxPyEndAllowThreads(__tstate);
16372 if (PyErr_Occurred()) SWIG_fail;
16373 }
16374 {
16375 #if wxUSE_UNICODE
16376 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16377 #else
16378 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16379 #endif
16380 }
16381 return resultobj;
16382 fail:
16383 return NULL;
16384 }
16385
16386
16387 SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16388 PyObject *obj;
16389 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16390 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
16391 return SWIG_Py_Void();
16392 }
16393
16394 SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16395 return SWIG_Python_InitShadowInstance(args);
16396 }
16397
16398 SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16399 PyObject *resultobj = 0;
16400 int arg1 = (int) -1 ;
16401 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16402 wxPyLocale *result = 0 ;
16403 int val1 ;
16404 int ecode1 = 0 ;
16405 int val2 ;
16406 int ecode2 = 0 ;
16407 PyObject * obj0 = 0 ;
16408 PyObject * obj1 = 0 ;
16409 char * kwnames[] = {
16410 (char *) "language",(char *) "flags", NULL
16411 };
16412
16413 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail;
16414 if (obj0) {
16415 ecode1 = SWIG_AsVal_int(obj0, &val1);
16416 if (!SWIG_IsOK(ecode1)) {
16417 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'");
16418 }
16419 arg1 = static_cast< int >(val1);
16420 }
16421 if (obj1) {
16422 ecode2 = SWIG_AsVal_int(obj1, &val2);
16423 if (!SWIG_IsOK(ecode2)) {
16424 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'");
16425 }
16426 arg2 = static_cast< int >(val2);
16427 }
16428 {
16429 PyThreadState* __tstate = wxPyBeginAllowThreads();
16430 result = (wxPyLocale *)new_wxPyLocale(arg1,arg2);
16431 wxPyEndAllowThreads(__tstate);
16432 if (PyErr_Occurred()) SWIG_fail;
16433 }
16434 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 );
16435 return resultobj;
16436 fail:
16437 return NULL;
16438 }
16439
16440
16441 SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16442 PyObject *resultobj = 0;
16443 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16444 void *argp1 = 0 ;
16445 int res1 = 0 ;
16446 PyObject *swig_obj[1] ;
16447
16448 if (!args) SWIG_fail;
16449 swig_obj[0] = args;
16450 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 );
16451 if (!SWIG_IsOK(res1)) {
16452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'");
16453 }
16454 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16455 {
16456 PyThreadState* __tstate = wxPyBeginAllowThreads();
16457 delete arg1;
16458
16459 wxPyEndAllowThreads(__tstate);
16460 if (PyErr_Occurred()) SWIG_fail;
16461 }
16462 resultobj = SWIG_Py_Void();
16463 return resultobj;
16464 fail:
16465 return NULL;
16466 }
16467
16468
16469 SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16470 PyObject *resultobj = 0;
16471 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16472 PyObject *arg2 = (PyObject *) 0 ;
16473 PyObject *arg3 = (PyObject *) 0 ;
16474 void *argp1 = 0 ;
16475 int res1 = 0 ;
16476 PyObject * obj0 = 0 ;
16477 PyObject * obj1 = 0 ;
16478 PyObject * obj2 = 0 ;
16479 char * kwnames[] = {
16480 (char *) "self",(char *) "self",(char *) "_class", NULL
16481 };
16482
16483 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16484 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
16485 if (!SWIG_IsOK(res1)) {
16486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'");
16487 }
16488 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16489 arg2 = obj1;
16490 arg3 = obj2;
16491 {
16492 PyThreadState* __tstate = wxPyBeginAllowThreads();
16493 (arg1)->_setCallbackInfo(arg2,arg3);
16494 wxPyEndAllowThreads(__tstate);
16495 if (PyErr_Occurred()) SWIG_fail;
16496 }
16497 resultobj = SWIG_Py_Void();
16498 return resultobj;
16499 fail:
16500 return NULL;
16501 }
16502
16503
16504 SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16505 PyObject *resultobj = 0;
16506 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16507 wxChar *arg2 = (wxChar *) 0 ;
16508 wxChar *arg3 = (wxChar *) NULL ;
16509 wxChar *result = 0 ;
16510 void *argp1 = 0 ;
16511 int res1 = 0 ;
16512 void *argp2 = 0 ;
16513 int res2 = 0 ;
16514 void *argp3 = 0 ;
16515 int res3 = 0 ;
16516 PyObject * obj0 = 0 ;
16517 PyObject * obj1 = 0 ;
16518 PyObject * obj2 = 0 ;
16519 char * kwnames[] = {
16520 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16521 };
16522
16523 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16524 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
16525 if (!SWIG_IsOK(res1)) {
16526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
16527 }
16528 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16529 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16530 if (!SWIG_IsOK(res2)) {
16531 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetSingularString" "', expected argument " "2"" of type '" "wxChar const *""'");
16532 }
16533 arg2 = reinterpret_cast< wxChar * >(argp2);
16534 if (obj2) {
16535 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16536 if (!SWIG_IsOK(res3)) {
16537 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetSingularString" "', expected argument " "3"" of type '" "wxChar const *""'");
16538 }
16539 arg3 = reinterpret_cast< wxChar * >(argp3);
16540 }
16541 {
16542 PyThreadState* __tstate = wxPyBeginAllowThreads();
16543 result = (wxChar *)((wxPyLocale const *)arg1)->GetSingularString((wxChar const *)arg2,(wxChar const *)arg3);
16544 wxPyEndAllowThreads(__tstate);
16545 if (PyErr_Occurred()) SWIG_fail;
16546 }
16547 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
16548 return resultobj;
16549 fail:
16550 return NULL;
16551 }
16552
16553
16554 SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16555 PyObject *resultobj = 0;
16556 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16557 wxChar *arg2 = (wxChar *) 0 ;
16558 wxChar *arg3 = (wxChar *) 0 ;
16559 size_t arg4 ;
16560 wxChar *arg5 = (wxChar *) NULL ;
16561 wxChar *result = 0 ;
16562 void *argp1 = 0 ;
16563 int res1 = 0 ;
16564 void *argp2 = 0 ;
16565 int res2 = 0 ;
16566 void *argp3 = 0 ;
16567 int res3 = 0 ;
16568 size_t val4 ;
16569 int ecode4 = 0 ;
16570 void *argp5 = 0 ;
16571 int res5 = 0 ;
16572 PyObject * obj0 = 0 ;
16573 PyObject * obj1 = 0 ;
16574 PyObject * obj2 = 0 ;
16575 PyObject * obj3 = 0 ;
16576 PyObject * obj4 = 0 ;
16577 char * kwnames[] = {
16578 (char *) "self",(char *) "szOrigString",(char *) "szOrigString2",(char *) "n",(char *) "szDomain", NULL
16579 };
16580
16581 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16582 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
16583 if (!SWIG_IsOK(res1)) {
16584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
16585 }
16586 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16587 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16588 if (!SWIG_IsOK(res2)) {
16589 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetPluralString" "', expected argument " "2"" of type '" "wxChar const *""'");
16590 }
16591 arg2 = reinterpret_cast< wxChar * >(argp2);
16592 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16593 if (!SWIG_IsOK(res3)) {
16594 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetPluralString" "', expected argument " "3"" of type '" "wxChar const *""'");
16595 }
16596 arg3 = reinterpret_cast< wxChar * >(argp3);
16597 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
16598 if (!SWIG_IsOK(ecode4)) {
16599 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'");
16600 }
16601 arg4 = static_cast< size_t >(val4);
16602 if (obj4) {
16603 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxChar, 0 | 0 );
16604 if (!SWIG_IsOK(res5)) {
16605 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PyLocale_GetPluralString" "', expected argument " "5"" of type '" "wxChar const *""'");
16606 }
16607 arg5 = reinterpret_cast< wxChar * >(argp5);
16608 }
16609 {
16610 PyThreadState* __tstate = wxPyBeginAllowThreads();
16611 result = (wxChar *)((wxPyLocale const *)arg1)->GetPluralString((wxChar const *)arg2,(wxChar const *)arg3,arg4,(wxChar const *)arg5);
16612 wxPyEndAllowThreads(__tstate);
16613 if (PyErr_Occurred()) SWIG_fail;
16614 }
16615 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
16616 return resultobj;
16617 fail:
16618 return NULL;
16619 }
16620
16621
16622 SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16623 PyObject *obj;
16624 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16625 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj));
16626 return SWIG_Py_Void();
16627 }
16628
16629 SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16630 return SWIG_Python_InitShadowInstance(args);
16631 }
16632
16633 SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16634 PyObject *resultobj = 0;
16635 wxLocale *result = 0 ;
16636
16637 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
16638 {
16639 PyThreadState* __tstate = wxPyBeginAllowThreads();
16640 result = (wxLocale *)wxGetLocale();
16641 wxPyEndAllowThreads(__tstate);
16642 if (PyErr_Occurred()) SWIG_fail;
16643 }
16644 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
16645 return resultobj;
16646 fail:
16647 return NULL;
16648 }
16649
16650
16651 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16652 PyObject *resultobj = 0;
16653 wxString *arg1 = 0 ;
16654 wxString result;
16655 bool temp1 = false ;
16656
16657 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
16658 {
16659 arg1 = wxString_in_helper(swig_obj[0]);
16660 if (arg1 == NULL) SWIG_fail;
16661 temp1 = true;
16662 }
16663 {
16664 PyThreadState* __tstate = wxPyBeginAllowThreads();
16665 result = wxGetTranslation((wxString const &)*arg1);
16666 wxPyEndAllowThreads(__tstate);
16667 if (PyErr_Occurred()) SWIG_fail;
16668 }
16669 {
16670 #if wxUSE_UNICODE
16671 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16672 #else
16673 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16674 #endif
16675 }
16676 {
16677 if (temp1)
16678 delete arg1;
16679 }
16680 return resultobj;
16681 fail:
16682 {
16683 if (temp1)
16684 delete arg1;
16685 }
16686 return NULL;
16687 }
16688
16689
16690 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16691 PyObject *resultobj = 0;
16692 wxString *arg1 = 0 ;
16693 wxString *arg2 = 0 ;
16694 wxString result;
16695 bool temp1 = false ;
16696 bool temp2 = false ;
16697
16698 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
16699 {
16700 arg1 = wxString_in_helper(swig_obj[0]);
16701 if (arg1 == NULL) SWIG_fail;
16702 temp1 = true;
16703 }
16704 {
16705 arg2 = wxString_in_helper(swig_obj[1]);
16706 if (arg2 == NULL) SWIG_fail;
16707 temp2 = true;
16708 }
16709 {
16710 PyThreadState* __tstate = wxPyBeginAllowThreads();
16711 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2);
16712 wxPyEndAllowThreads(__tstate);
16713 if (PyErr_Occurred()) SWIG_fail;
16714 }
16715 {
16716 #if wxUSE_UNICODE
16717 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16718 #else
16719 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16720 #endif
16721 }
16722 {
16723 if (temp1)
16724 delete arg1;
16725 }
16726 {
16727 if (temp2)
16728 delete arg2;
16729 }
16730 return resultobj;
16731 fail:
16732 {
16733 if (temp1)
16734 delete arg1;
16735 }
16736 {
16737 if (temp2)
16738 delete arg2;
16739 }
16740 return NULL;
16741 }
16742
16743
16744 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16745 PyObject *resultobj = 0;
16746 wxString *arg1 = 0 ;
16747 wxString *arg2 = 0 ;
16748 size_t arg3 ;
16749 wxString result;
16750 bool temp1 = false ;
16751 bool temp2 = false ;
16752 size_t val3 ;
16753 int ecode3 = 0 ;
16754
16755 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
16756 {
16757 arg1 = wxString_in_helper(swig_obj[0]);
16758 if (arg1 == NULL) SWIG_fail;
16759 temp1 = true;
16760 }
16761 {
16762 arg2 = wxString_in_helper(swig_obj[1]);
16763 if (arg2 == NULL) SWIG_fail;
16764 temp2 = true;
16765 }
16766 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
16767 if (!SWIG_IsOK(ecode3)) {
16768 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
16769 }
16770 arg3 = static_cast< size_t >(val3);
16771 {
16772 PyThreadState* __tstate = wxPyBeginAllowThreads();
16773 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
16774 wxPyEndAllowThreads(__tstate);
16775 if (PyErr_Occurred()) SWIG_fail;
16776 }
16777 {
16778 #if wxUSE_UNICODE
16779 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16780 #else
16781 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16782 #endif
16783 }
16784 {
16785 if (temp1)
16786 delete arg1;
16787 }
16788 {
16789 if (temp2)
16790 delete arg2;
16791 }
16792 return resultobj;
16793 fail:
16794 {
16795 if (temp1)
16796 delete arg1;
16797 }
16798 {
16799 if (temp2)
16800 delete arg2;
16801 }
16802 return NULL;
16803 }
16804
16805
16806 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16807 PyObject *resultobj = 0;
16808 wxString *arg1 = 0 ;
16809 wxString *arg2 = 0 ;
16810 size_t arg3 ;
16811 wxString *arg4 = 0 ;
16812 wxString result;
16813 bool temp1 = false ;
16814 bool temp2 = false ;
16815 size_t val3 ;
16816 int ecode3 = 0 ;
16817 bool temp4 = false ;
16818
16819 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
16820 {
16821 arg1 = wxString_in_helper(swig_obj[0]);
16822 if (arg1 == NULL) SWIG_fail;
16823 temp1 = true;
16824 }
16825 {
16826 arg2 = wxString_in_helper(swig_obj[1]);
16827 if (arg2 == NULL) SWIG_fail;
16828 temp2 = true;
16829 }
16830 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
16831 if (!SWIG_IsOK(ecode3)) {
16832 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
16833 }
16834 arg3 = static_cast< size_t >(val3);
16835 {
16836 arg4 = wxString_in_helper(swig_obj[3]);
16837 if (arg4 == NULL) SWIG_fail;
16838 temp4 = true;
16839 }
16840 {
16841 PyThreadState* __tstate = wxPyBeginAllowThreads();
16842 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4);
16843 wxPyEndAllowThreads(__tstate);
16844 if (PyErr_Occurred()) SWIG_fail;
16845 }
16846 {
16847 #if wxUSE_UNICODE
16848 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16849 #else
16850 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16851 #endif
16852 }
16853 {
16854 if (temp1)
16855 delete arg1;
16856 }
16857 {
16858 if (temp2)
16859 delete arg2;
16860 }
16861 {
16862 if (temp4)
16863 delete arg4;
16864 }
16865 return resultobj;
16866 fail:
16867 {
16868 if (temp1)
16869 delete arg1;
16870 }
16871 {
16872 if (temp2)
16873 delete arg2;
16874 }
16875 {
16876 if (temp4)
16877 delete arg4;
16878 }
16879 return NULL;
16880 }
16881
16882
16883 SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
16884 int argc;
16885 PyObject *argv[5];
16886
16887 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail;
16888 --argc;
16889 if (argc == 1) {
16890 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
16891 }
16892 if (argc == 2) {
16893 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
16894 }
16895 if (argc == 3) {
16896 return _wrap_GetTranslation__SWIG_2(self, argc, argv);
16897 }
16898 if (argc == 4) {
16899 return _wrap_GetTranslation__SWIG_3(self, argc, argv);
16900 }
16901
16902 fail:
16903 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
16904 return NULL;
16905 }
16906
16907
16908 SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16909 PyObject *resultobj = 0;
16910 wxEncodingConverter *result = 0 ;
16911
16912 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
16913 {
16914 PyThreadState* __tstate = wxPyBeginAllowThreads();
16915 result = (wxEncodingConverter *)new wxEncodingConverter();
16916 wxPyEndAllowThreads(__tstate);
16917 if (PyErr_Occurred()) SWIG_fail;
16918 }
16919 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
16920 return resultobj;
16921 fail:
16922 return NULL;
16923 }
16924
16925
16926 SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16927 PyObject *resultobj = 0;
16928 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
16929 void *argp1 = 0 ;
16930 int res1 = 0 ;
16931 PyObject *swig_obj[1] ;
16932
16933 if (!args) SWIG_fail;
16934 swig_obj[0] = args;
16935 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
16936 if (!SWIG_IsOK(res1)) {
16937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
16938 }
16939 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
16940 {
16941 PyThreadState* __tstate = wxPyBeginAllowThreads();
16942 delete arg1;
16943
16944 wxPyEndAllowThreads(__tstate);
16945 if (PyErr_Occurred()) SWIG_fail;
16946 }
16947 resultobj = SWIG_Py_Void();
16948 return resultobj;
16949 fail:
16950 return NULL;
16951 }
16952
16953
16954 SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16955 PyObject *resultobj = 0;
16956 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
16957 wxFontEncoding arg2 ;
16958 wxFontEncoding arg3 ;
16959 int arg4 = (int) wxCONVERT_STRICT ;
16960 bool result;
16961 void *argp1 = 0 ;
16962 int res1 = 0 ;
16963 int val2 ;
16964 int ecode2 = 0 ;
16965 int val3 ;
16966 int ecode3 = 0 ;
16967 int val4 ;
16968 int ecode4 = 0 ;
16969 PyObject * obj0 = 0 ;
16970 PyObject * obj1 = 0 ;
16971 PyObject * obj2 = 0 ;
16972 PyObject * obj3 = 0 ;
16973 char * kwnames[] = {
16974 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
16975 };
16976
16977 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16978 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
16979 if (!SWIG_IsOK(res1)) {
16980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
16981 }
16982 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
16983 ecode2 = SWIG_AsVal_int(obj1, &val2);
16984 if (!SWIG_IsOK(ecode2)) {
16985 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
16986 }
16987 arg2 = static_cast< wxFontEncoding >(val2);
16988 ecode3 = SWIG_AsVal_int(obj2, &val3);
16989 if (!SWIG_IsOK(ecode3)) {
16990 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
16991 }
16992 arg3 = static_cast< wxFontEncoding >(val3);
16993 if (obj3) {
16994 ecode4 = SWIG_AsVal_int(obj3, &val4);
16995 if (!SWIG_IsOK(ecode4)) {
16996 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
16997 }
16998 arg4 = static_cast< int >(val4);
16999 }
17000 {
17001 PyThreadState* __tstate = wxPyBeginAllowThreads();
17002 result = (bool)(arg1)->Init(arg2,arg3,arg4);
17003 wxPyEndAllowThreads(__tstate);
17004 if (PyErr_Occurred()) SWIG_fail;
17005 }
17006 {
17007 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17008 }
17009 return resultobj;
17010 fail:
17011 return NULL;
17012 }
17013
17014
17015 SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17016 PyObject *resultobj = 0;
17017 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17018 wxString *arg2 = 0 ;
17019 wxString result;
17020 void *argp1 = 0 ;
17021 int res1 = 0 ;
17022 bool temp2 = false ;
17023 PyObject * obj0 = 0 ;
17024 PyObject * obj1 = 0 ;
17025 char * kwnames[] = {
17026 (char *) "self",(char *) "input", NULL
17027 };
17028
17029 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
17030 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17031 if (!SWIG_IsOK(res1)) {
17032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17033 }
17034 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17035 {
17036 arg2 = wxString_in_helper(obj1);
17037 if (arg2 == NULL) SWIG_fail;
17038 temp2 = true;
17039 }
17040 {
17041 PyThreadState* __tstate = wxPyBeginAllowThreads();
17042 result = (arg1)->Convert((wxString const &)*arg2);
17043 wxPyEndAllowThreads(__tstate);
17044 if (PyErr_Occurred()) SWIG_fail;
17045 }
17046 {
17047 #if wxUSE_UNICODE
17048 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17049 #else
17050 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17051 #endif
17052 }
17053 {
17054 if (temp2)
17055 delete arg2;
17056 }
17057 return resultobj;
17058 fail:
17059 {
17060 if (temp2)
17061 delete arg2;
17062 }
17063 return NULL;
17064 }
17065
17066
17067 SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17068 PyObject *resultobj = 0;
17069 wxFontEncoding arg1 ;
17070 int arg2 = (int) wxPLATFORM_CURRENT ;
17071 wxFontEncodingArray result;
17072 int val1 ;
17073 int ecode1 = 0 ;
17074 int val2 ;
17075 int ecode2 = 0 ;
17076 PyObject * obj0 = 0 ;
17077 PyObject * obj1 = 0 ;
17078 char * kwnames[] = {
17079 (char *) "enc",(char *) "platform", NULL
17080 };
17081
17082 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
17083 ecode1 = SWIG_AsVal_int(obj0, &val1);
17084 if (!SWIG_IsOK(ecode1)) {
17085 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17086 }
17087 arg1 = static_cast< wxFontEncoding >(val1);
17088 if (obj1) {
17089 ecode2 = SWIG_AsVal_int(obj1, &val2);
17090 if (!SWIG_IsOK(ecode2)) {
17091 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
17092 }
17093 arg2 = static_cast< int >(val2);
17094 }
17095 {
17096 PyThreadState* __tstate = wxPyBeginAllowThreads();
17097 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
17098 wxPyEndAllowThreads(__tstate);
17099 if (PyErr_Occurred()) SWIG_fail;
17100 }
17101 {
17102 resultobj = PyList_New(0);
17103 for (size_t i=0; i < (&result)->GetCount(); i++) {
17104 PyObject* number = PyInt_FromLong((&result)->Item(i));
17105 PyList_Append(resultobj, number);
17106 Py_DECREF(number);
17107 }
17108 }
17109 return resultobj;
17110 fail:
17111 return NULL;
17112 }
17113
17114
17115 SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17116 PyObject *resultobj = 0;
17117 wxFontEncoding arg1 ;
17118 wxFontEncodingArray result;
17119 int val1 ;
17120 int ecode1 = 0 ;
17121 PyObject * obj0 = 0 ;
17122 char * kwnames[] = {
17123 (char *) "enc", NULL
17124 };
17125
17126 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
17127 ecode1 = SWIG_AsVal_int(obj0, &val1);
17128 if (!SWIG_IsOK(ecode1)) {
17129 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17130 }
17131 arg1 = static_cast< wxFontEncoding >(val1);
17132 {
17133 PyThreadState* __tstate = wxPyBeginAllowThreads();
17134 result = wxEncodingConverter::GetAllEquivalents(arg1);
17135 wxPyEndAllowThreads(__tstate);
17136 if (PyErr_Occurred()) SWIG_fail;
17137 }
17138 {
17139 resultobj = PyList_New(0);
17140 for (size_t i=0; i < (&result)->GetCount(); i++) {
17141 PyObject* number = PyInt_FromLong((&result)->Item(i));
17142 PyList_Append(resultobj, number);
17143 Py_DECREF(number);
17144 }
17145 }
17146 return resultobj;
17147 fail:
17148 return NULL;
17149 }
17150
17151
17152 SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17153 PyObject *resultobj = 0;
17154 wxFontEncoding arg1 ;
17155 wxFontEncoding arg2 ;
17156 bool result;
17157 int val1 ;
17158 int ecode1 = 0 ;
17159 int val2 ;
17160 int ecode2 = 0 ;
17161 PyObject * obj0 = 0 ;
17162 PyObject * obj1 = 0 ;
17163 char * kwnames[] = {
17164 (char *) "encIn",(char *) "encOut", NULL
17165 };
17166
17167 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
17168 ecode1 = SWIG_AsVal_int(obj0, &val1);
17169 if (!SWIG_IsOK(ecode1)) {
17170 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17171 }
17172 arg1 = static_cast< wxFontEncoding >(val1);
17173 ecode2 = SWIG_AsVal_int(obj1, &val2);
17174 if (!SWIG_IsOK(ecode2)) {
17175 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17176 }
17177 arg2 = static_cast< wxFontEncoding >(val2);
17178 {
17179 PyThreadState* __tstate = wxPyBeginAllowThreads();
17180 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
17181 wxPyEndAllowThreads(__tstate);
17182 if (PyErr_Occurred()) SWIG_fail;
17183 }
17184 {
17185 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17186 }
17187 return resultobj;
17188 fail:
17189 return NULL;
17190 }
17191
17192
17193 SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17194 PyObject *obj;
17195 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17196 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
17197 return SWIG_Py_Void();
17198 }
17199
17200 SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17201 return SWIG_Python_InitShadowInstance(args);
17202 }
17203
17204 SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17205 PyObject *resultobj = 0;
17206 wxDC *arg1 = (wxDC *) 0 ;
17207 void *argp1 = 0 ;
17208 int res1 = 0 ;
17209 PyObject *swig_obj[1] ;
17210
17211 if (!args) SWIG_fail;
17212 swig_obj[0] = args;
17213 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
17214 if (!SWIG_IsOK(res1)) {
17215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
17216 }
17217 arg1 = reinterpret_cast< wxDC * >(argp1);
17218 {
17219 PyThreadState* __tstate = wxPyBeginAllowThreads();
17220 delete arg1;
17221
17222 wxPyEndAllowThreads(__tstate);
17223 if (PyErr_Occurred()) SWIG_fail;
17224 }
17225 resultobj = SWIG_Py_Void();
17226 return resultobj;
17227 fail:
17228 return NULL;
17229 }
17230
17231
17232 SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17233 PyObject *resultobj = 0;
17234 wxDC *arg1 = (wxDC *) 0 ;
17235 int arg2 ;
17236 int arg3 ;
17237 wxColour *arg4 = 0 ;
17238 int arg5 = (int) wxFLOOD_SURFACE ;
17239 bool result;
17240 void *argp1 = 0 ;
17241 int res1 = 0 ;
17242 int val2 ;
17243 int ecode2 = 0 ;
17244 int val3 ;
17245 int ecode3 = 0 ;
17246 wxColour temp4 ;
17247 int val5 ;
17248 int ecode5 = 0 ;
17249 PyObject * obj0 = 0 ;
17250 PyObject * obj1 = 0 ;
17251 PyObject * obj2 = 0 ;
17252 PyObject * obj3 = 0 ;
17253 PyObject * obj4 = 0 ;
17254 char * kwnames[] = {
17255 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
17256 };
17257
17258 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) 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_FloodFill" "', 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_FloodFill" "', 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_FloodFill" "', expected argument " "3"" of type '" "int""'");
17272 }
17273 arg3 = static_cast< int >(val3);
17274 {
17275 arg4 = &temp4;
17276 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17277 }
17278 if (obj4) {
17279 ecode5 = SWIG_AsVal_int(obj4, &val5);
17280 if (!SWIG_IsOK(ecode5)) {
17281 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
17282 }
17283 arg5 = static_cast< int >(val5);
17284 }
17285 {
17286 PyThreadState* __tstate = wxPyBeginAllowThreads();
17287 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
17288 wxPyEndAllowThreads(__tstate);
17289 if (PyErr_Occurred()) SWIG_fail;
17290 }
17291 {
17292 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17293 }
17294 return resultobj;
17295 fail:
17296 return NULL;
17297 }
17298
17299
17300 SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17301 PyObject *resultobj = 0;
17302 wxDC *arg1 = (wxDC *) 0 ;
17303 wxPoint *arg2 = 0 ;
17304 wxColour *arg3 = 0 ;
17305 int arg4 = (int) wxFLOOD_SURFACE ;
17306 bool result;
17307 void *argp1 = 0 ;
17308 int res1 = 0 ;
17309 wxPoint temp2 ;
17310 wxColour temp3 ;
17311 int val4 ;
17312 int ecode4 = 0 ;
17313 PyObject * obj0 = 0 ;
17314 PyObject * obj1 = 0 ;
17315 PyObject * obj2 = 0 ;
17316 PyObject * obj3 = 0 ;
17317 char * kwnames[] = {
17318 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
17319 };
17320
17321 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17322 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17323 if (!SWIG_IsOK(res1)) {
17324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17325 }
17326 arg1 = reinterpret_cast< wxDC * >(argp1);
17327 {
17328 arg2 = &temp2;
17329 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17330 }
17331 {
17332 arg3 = &temp3;
17333 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17334 }
17335 if (obj3) {
17336 ecode4 = SWIG_AsVal_int(obj3, &val4);
17337 if (!SWIG_IsOK(ecode4)) {
17338 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
17339 }
17340 arg4 = static_cast< int >(val4);
17341 }
17342 {
17343 PyThreadState* __tstate = wxPyBeginAllowThreads();
17344 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
17345 wxPyEndAllowThreads(__tstate);
17346 if (PyErr_Occurred()) SWIG_fail;
17347 }
17348 {
17349 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17350 }
17351 return resultobj;
17352 fail:
17353 return NULL;
17354 }
17355
17356
17357 SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17358 PyObject *resultobj = 0;
17359 wxDC *arg1 = (wxDC *) 0 ;
17360 wxRect *arg2 = 0 ;
17361 wxColour *arg3 = 0 ;
17362 wxColour *arg4 = 0 ;
17363 wxPoint *arg5 = 0 ;
17364 void *argp1 = 0 ;
17365 int res1 = 0 ;
17366 wxRect temp2 ;
17367 wxColour temp3 ;
17368 wxColour temp4 ;
17369 wxPoint temp5 ;
17370 PyObject * obj0 = 0 ;
17371 PyObject * obj1 = 0 ;
17372 PyObject * obj2 = 0 ;
17373 PyObject * obj3 = 0 ;
17374 PyObject * obj4 = 0 ;
17375 char * kwnames[] = {
17376 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
17377 };
17378
17379 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17380 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17381 if (!SWIG_IsOK(res1)) {
17382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
17383 }
17384 arg1 = reinterpret_cast< wxDC * >(argp1);
17385 {
17386 arg2 = &temp2;
17387 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17388 }
17389 {
17390 arg3 = &temp3;
17391 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17392 }
17393 {
17394 arg4 = &temp4;
17395 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17396 }
17397 {
17398 arg5 = &temp5;
17399 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17400 }
17401 {
17402 PyThreadState* __tstate = wxPyBeginAllowThreads();
17403 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
17404 wxPyEndAllowThreads(__tstate);
17405 if (PyErr_Occurred()) SWIG_fail;
17406 }
17407 resultobj = SWIG_Py_Void();
17408 return resultobj;
17409 fail:
17410 return NULL;
17411 }
17412
17413
17414 SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17415 PyObject *resultobj = 0;
17416 wxDC *arg1 = (wxDC *) 0 ;
17417 wxRect *arg2 = 0 ;
17418 wxColour *arg3 = 0 ;
17419 wxColour *arg4 = 0 ;
17420 wxDirection arg5 = (wxDirection) wxEAST ;
17421 void *argp1 = 0 ;
17422 int res1 = 0 ;
17423 wxRect temp2 ;
17424 wxColour temp3 ;
17425 wxColour temp4 ;
17426 int val5 ;
17427 int ecode5 = 0 ;
17428 PyObject * obj0 = 0 ;
17429 PyObject * obj1 = 0 ;
17430 PyObject * obj2 = 0 ;
17431 PyObject * obj3 = 0 ;
17432 PyObject * obj4 = 0 ;
17433 char * kwnames[] = {
17434 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
17435 };
17436
17437 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17438 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17439 if (!SWIG_IsOK(res1)) {
17440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
17441 }
17442 arg1 = reinterpret_cast< wxDC * >(argp1);
17443 {
17444 arg2 = &temp2;
17445 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17446 }
17447 {
17448 arg3 = &temp3;
17449 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17450 }
17451 {
17452 arg4 = &temp4;
17453 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17454 }
17455 if (obj4) {
17456 ecode5 = SWIG_AsVal_int(obj4, &val5);
17457 if (!SWIG_IsOK(ecode5)) {
17458 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
17459 }
17460 arg5 = static_cast< wxDirection >(val5);
17461 }
17462 {
17463 PyThreadState* __tstate = wxPyBeginAllowThreads();
17464 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
17465 wxPyEndAllowThreads(__tstate);
17466 if (PyErr_Occurred()) SWIG_fail;
17467 }
17468 resultobj = SWIG_Py_Void();
17469 return resultobj;
17470 fail:
17471 return NULL;
17472 }
17473
17474
17475 SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17476 PyObject *resultobj = 0;
17477 wxDC *arg1 = (wxDC *) 0 ;
17478 int arg2 ;
17479 int arg3 ;
17480 wxColour result;
17481 void *argp1 = 0 ;
17482 int res1 = 0 ;
17483 int val2 ;
17484 int ecode2 = 0 ;
17485 int val3 ;
17486 int ecode3 = 0 ;
17487 PyObject * obj0 = 0 ;
17488 PyObject * obj1 = 0 ;
17489 PyObject * obj2 = 0 ;
17490 char * kwnames[] = {
17491 (char *) "self",(char *) "x",(char *) "y", NULL
17492 };
17493
17494 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17495 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17496 if (!SWIG_IsOK(res1)) {
17497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
17498 }
17499 arg1 = reinterpret_cast< wxDC * >(argp1);
17500 ecode2 = SWIG_AsVal_int(obj1, &val2);
17501 if (!SWIG_IsOK(ecode2)) {
17502 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
17503 }
17504 arg2 = static_cast< int >(val2);
17505 ecode3 = SWIG_AsVal_int(obj2, &val3);
17506 if (!SWIG_IsOK(ecode3)) {
17507 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
17508 }
17509 arg3 = static_cast< int >(val3);
17510 {
17511 PyThreadState* __tstate = wxPyBeginAllowThreads();
17512 result = wxDC_GetPixel(arg1,arg2,arg3);
17513 wxPyEndAllowThreads(__tstate);
17514 if (PyErr_Occurred()) SWIG_fail;
17515 }
17516 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17517 return resultobj;
17518 fail:
17519 return NULL;
17520 }
17521
17522
17523 SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17524 PyObject *resultobj = 0;
17525 wxDC *arg1 = (wxDC *) 0 ;
17526 wxPoint *arg2 = 0 ;
17527 wxColour result;
17528 void *argp1 = 0 ;
17529 int res1 = 0 ;
17530 wxPoint temp2 ;
17531 PyObject * obj0 = 0 ;
17532 PyObject * obj1 = 0 ;
17533 char * kwnames[] = {
17534 (char *) "self",(char *) "pt", NULL
17535 };
17536
17537 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
17538 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17539 if (!SWIG_IsOK(res1)) {
17540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17541 }
17542 arg1 = reinterpret_cast< wxDC * >(argp1);
17543 {
17544 arg2 = &temp2;
17545 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17546 }
17547 {
17548 PyThreadState* __tstate = wxPyBeginAllowThreads();
17549 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
17550 wxPyEndAllowThreads(__tstate);
17551 if (PyErr_Occurred()) SWIG_fail;
17552 }
17553 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17554 return resultobj;
17555 fail:
17556 return NULL;
17557 }
17558
17559
17560 SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17561 PyObject *resultobj = 0;
17562 wxDC *arg1 = (wxDC *) 0 ;
17563 int arg2 ;
17564 int arg3 ;
17565 int arg4 ;
17566 int arg5 ;
17567 void *argp1 = 0 ;
17568 int res1 = 0 ;
17569 int val2 ;
17570 int ecode2 = 0 ;
17571 int val3 ;
17572 int ecode3 = 0 ;
17573 int val4 ;
17574 int ecode4 = 0 ;
17575 int val5 ;
17576 int ecode5 = 0 ;
17577 PyObject * obj0 = 0 ;
17578 PyObject * obj1 = 0 ;
17579 PyObject * obj2 = 0 ;
17580 PyObject * obj3 = 0 ;
17581 PyObject * obj4 = 0 ;
17582 char * kwnames[] = {
17583 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
17584 };
17585
17586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17587 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17588 if (!SWIG_IsOK(res1)) {
17589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
17590 }
17591 arg1 = reinterpret_cast< wxDC * >(argp1);
17592 ecode2 = SWIG_AsVal_int(obj1, &val2);
17593 if (!SWIG_IsOK(ecode2)) {
17594 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
17595 }
17596 arg2 = static_cast< int >(val2);
17597 ecode3 = SWIG_AsVal_int(obj2, &val3);
17598 if (!SWIG_IsOK(ecode3)) {
17599 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
17600 }
17601 arg3 = static_cast< int >(val3);
17602 ecode4 = SWIG_AsVal_int(obj3, &val4);
17603 if (!SWIG_IsOK(ecode4)) {
17604 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
17605 }
17606 arg4 = static_cast< int >(val4);
17607 ecode5 = SWIG_AsVal_int(obj4, &val5);
17608 if (!SWIG_IsOK(ecode5)) {
17609 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
17610 }
17611 arg5 = static_cast< int >(val5);
17612 {
17613 PyThreadState* __tstate = wxPyBeginAllowThreads();
17614 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
17615 wxPyEndAllowThreads(__tstate);
17616 if (PyErr_Occurred()) SWIG_fail;
17617 }
17618 resultobj = SWIG_Py_Void();
17619 return resultobj;
17620 fail:
17621 return NULL;
17622 }
17623
17624
17625 SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17626 PyObject *resultobj = 0;
17627 wxDC *arg1 = (wxDC *) 0 ;
17628 wxPoint *arg2 = 0 ;
17629 wxPoint *arg3 = 0 ;
17630 void *argp1 = 0 ;
17631 int res1 = 0 ;
17632 wxPoint temp2 ;
17633 wxPoint temp3 ;
17634 PyObject * obj0 = 0 ;
17635 PyObject * obj1 = 0 ;
17636 PyObject * obj2 = 0 ;
17637 char * kwnames[] = {
17638 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
17639 };
17640
17641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17642 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17643 if (!SWIG_IsOK(res1)) {
17644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
17645 }
17646 arg1 = reinterpret_cast< wxDC * >(argp1);
17647 {
17648 arg2 = &temp2;
17649 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17650 }
17651 {
17652 arg3 = &temp3;
17653 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
17654 }
17655 {
17656 PyThreadState* __tstate = wxPyBeginAllowThreads();
17657 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
17658 wxPyEndAllowThreads(__tstate);
17659 if (PyErr_Occurred()) SWIG_fail;
17660 }
17661 resultobj = SWIG_Py_Void();
17662 return resultobj;
17663 fail:
17664 return NULL;
17665 }
17666
17667
17668 SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17669 PyObject *resultobj = 0;
17670 wxDC *arg1 = (wxDC *) 0 ;
17671 int arg2 ;
17672 int arg3 ;
17673 void *argp1 = 0 ;
17674 int res1 = 0 ;
17675 int val2 ;
17676 int ecode2 = 0 ;
17677 int val3 ;
17678 int ecode3 = 0 ;
17679 PyObject * obj0 = 0 ;
17680 PyObject * obj1 = 0 ;
17681 PyObject * obj2 = 0 ;
17682 char * kwnames[] = {
17683 (char *) "self",(char *) "x",(char *) "y", NULL
17684 };
17685
17686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17687 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17688 if (!SWIG_IsOK(res1)) {
17689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
17690 }
17691 arg1 = reinterpret_cast< wxDC * >(argp1);
17692 ecode2 = SWIG_AsVal_int(obj1, &val2);
17693 if (!SWIG_IsOK(ecode2)) {
17694 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
17695 }
17696 arg2 = static_cast< int >(val2);
17697 ecode3 = SWIG_AsVal_int(obj2, &val3);
17698 if (!SWIG_IsOK(ecode3)) {
17699 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
17700 }
17701 arg3 = static_cast< int >(val3);
17702 {
17703 PyThreadState* __tstate = wxPyBeginAllowThreads();
17704 (arg1)->CrossHair(arg2,arg3);
17705 wxPyEndAllowThreads(__tstate);
17706 if (PyErr_Occurred()) SWIG_fail;
17707 }
17708 resultobj = SWIG_Py_Void();
17709 return resultobj;
17710 fail:
17711 return NULL;
17712 }
17713
17714
17715 SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17716 PyObject *resultobj = 0;
17717 wxDC *arg1 = (wxDC *) 0 ;
17718 wxPoint *arg2 = 0 ;
17719 void *argp1 = 0 ;
17720 int res1 = 0 ;
17721 wxPoint temp2 ;
17722 PyObject * obj0 = 0 ;
17723 PyObject * obj1 = 0 ;
17724 char * kwnames[] = {
17725 (char *) "self",(char *) "pt", NULL
17726 };
17727
17728 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
17729 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17730 if (!SWIG_IsOK(res1)) {
17731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17732 }
17733 arg1 = reinterpret_cast< wxDC * >(argp1);
17734 {
17735 arg2 = &temp2;
17736 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17737 }
17738 {
17739 PyThreadState* __tstate = wxPyBeginAllowThreads();
17740 (arg1)->CrossHair((wxPoint const &)*arg2);
17741 wxPyEndAllowThreads(__tstate);
17742 if (PyErr_Occurred()) SWIG_fail;
17743 }
17744 resultobj = SWIG_Py_Void();
17745 return resultobj;
17746 fail:
17747 return NULL;
17748 }
17749
17750
17751 SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17752 PyObject *resultobj = 0;
17753 wxDC *arg1 = (wxDC *) 0 ;
17754 int arg2 ;
17755 int arg3 ;
17756 int arg4 ;
17757 int arg5 ;
17758 int arg6 ;
17759 int arg7 ;
17760 void *argp1 = 0 ;
17761 int res1 = 0 ;
17762 int val2 ;
17763 int ecode2 = 0 ;
17764 int val3 ;
17765 int ecode3 = 0 ;
17766 int val4 ;
17767 int ecode4 = 0 ;
17768 int val5 ;
17769 int ecode5 = 0 ;
17770 int val6 ;
17771 int ecode6 = 0 ;
17772 int val7 ;
17773 int ecode7 = 0 ;
17774 PyObject * obj0 = 0 ;
17775 PyObject * obj1 = 0 ;
17776 PyObject * obj2 = 0 ;
17777 PyObject * obj3 = 0 ;
17778 PyObject * obj4 = 0 ;
17779 PyObject * obj5 = 0 ;
17780 PyObject * obj6 = 0 ;
17781 char * kwnames[] = {
17782 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
17783 };
17784
17785 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
17786 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17787 if (!SWIG_IsOK(res1)) {
17788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
17789 }
17790 arg1 = reinterpret_cast< wxDC * >(argp1);
17791 ecode2 = SWIG_AsVal_int(obj1, &val2);
17792 if (!SWIG_IsOK(ecode2)) {
17793 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
17794 }
17795 arg2 = static_cast< int >(val2);
17796 ecode3 = SWIG_AsVal_int(obj2, &val3);
17797 if (!SWIG_IsOK(ecode3)) {
17798 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
17799 }
17800 arg3 = static_cast< int >(val3);
17801 ecode4 = SWIG_AsVal_int(obj3, &val4);
17802 if (!SWIG_IsOK(ecode4)) {
17803 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
17804 }
17805 arg4 = static_cast< int >(val4);
17806 ecode5 = SWIG_AsVal_int(obj4, &val5);
17807 if (!SWIG_IsOK(ecode5)) {
17808 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
17809 }
17810 arg5 = static_cast< int >(val5);
17811 ecode6 = SWIG_AsVal_int(obj5, &val6);
17812 if (!SWIG_IsOK(ecode6)) {
17813 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
17814 }
17815 arg6 = static_cast< int >(val6);
17816 ecode7 = SWIG_AsVal_int(obj6, &val7);
17817 if (!SWIG_IsOK(ecode7)) {
17818 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
17819 }
17820 arg7 = static_cast< int >(val7);
17821 {
17822 PyThreadState* __tstate = wxPyBeginAllowThreads();
17823 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
17824 wxPyEndAllowThreads(__tstate);
17825 if (PyErr_Occurred()) SWIG_fail;
17826 }
17827 resultobj = SWIG_Py_Void();
17828 return resultobj;
17829 fail:
17830 return NULL;
17831 }
17832
17833
17834 SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17835 PyObject *resultobj = 0;
17836 wxDC *arg1 = (wxDC *) 0 ;
17837 wxPoint *arg2 = 0 ;
17838 wxPoint *arg3 = 0 ;
17839 wxPoint *arg4 = 0 ;
17840 void *argp1 = 0 ;
17841 int res1 = 0 ;
17842 wxPoint temp2 ;
17843 wxPoint temp3 ;
17844 wxPoint temp4 ;
17845 PyObject * obj0 = 0 ;
17846 PyObject * obj1 = 0 ;
17847 PyObject * obj2 = 0 ;
17848 PyObject * obj3 = 0 ;
17849 char * kwnames[] = {
17850 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
17851 };
17852
17853 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17854 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17855 if (!SWIG_IsOK(res1)) {
17856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17857 }
17858 arg1 = reinterpret_cast< wxDC * >(argp1);
17859 {
17860 arg2 = &temp2;
17861 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17862 }
17863 {
17864 arg3 = &temp3;
17865 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
17866 }
17867 {
17868 arg4 = &temp4;
17869 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
17870 }
17871 {
17872 PyThreadState* __tstate = wxPyBeginAllowThreads();
17873 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
17874 wxPyEndAllowThreads(__tstate);
17875 if (PyErr_Occurred()) SWIG_fail;
17876 }
17877 resultobj = SWIG_Py_Void();
17878 return resultobj;
17879 fail:
17880 return NULL;
17881 }
17882
17883
17884 SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17885 PyObject *resultobj = 0;
17886 wxDC *arg1 = (wxDC *) 0 ;
17887 int arg2 ;
17888 int arg3 ;
17889 int arg4 ;
17890 int arg5 ;
17891 void *argp1 = 0 ;
17892 int res1 = 0 ;
17893 int val2 ;
17894 int ecode2 = 0 ;
17895 int val3 ;
17896 int ecode3 = 0 ;
17897 int val4 ;
17898 int ecode4 = 0 ;
17899 int val5 ;
17900 int ecode5 = 0 ;
17901 PyObject * obj0 = 0 ;
17902 PyObject * obj1 = 0 ;
17903 PyObject * obj2 = 0 ;
17904 PyObject * obj3 = 0 ;
17905 PyObject * obj4 = 0 ;
17906 char * kwnames[] = {
17907 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
17908 };
17909
17910 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17911 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17912 if (!SWIG_IsOK(res1)) {
17913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
17914 }
17915 arg1 = reinterpret_cast< wxDC * >(argp1);
17916 ecode2 = SWIG_AsVal_int(obj1, &val2);
17917 if (!SWIG_IsOK(ecode2)) {
17918 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
17919 }
17920 arg2 = static_cast< int >(val2);
17921 ecode3 = SWIG_AsVal_int(obj2, &val3);
17922 if (!SWIG_IsOK(ecode3)) {
17923 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
17924 }
17925 arg3 = static_cast< int >(val3);
17926 ecode4 = SWIG_AsVal_int(obj3, &val4);
17927 if (!SWIG_IsOK(ecode4)) {
17928 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
17929 }
17930 arg4 = static_cast< int >(val4);
17931 ecode5 = SWIG_AsVal_int(obj4, &val5);
17932 if (!SWIG_IsOK(ecode5)) {
17933 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
17934 }
17935 arg5 = static_cast< int >(val5);
17936 {
17937 PyThreadState* __tstate = wxPyBeginAllowThreads();
17938 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
17939 wxPyEndAllowThreads(__tstate);
17940 if (PyErr_Occurred()) SWIG_fail;
17941 }
17942 resultobj = SWIG_Py_Void();
17943 return resultobj;
17944 fail:
17945 return NULL;
17946 }
17947
17948
17949 SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17950 PyObject *resultobj = 0;
17951 wxDC *arg1 = (wxDC *) 0 ;
17952 wxRect *arg2 = 0 ;
17953 void *argp1 = 0 ;
17954 int res1 = 0 ;
17955 wxRect temp2 ;
17956 PyObject * obj0 = 0 ;
17957 PyObject * obj1 = 0 ;
17958 char * kwnames[] = {
17959 (char *) "self",(char *) "rect", NULL
17960 };
17961
17962 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
17963 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17964 if (!SWIG_IsOK(res1)) {
17965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
17966 }
17967 arg1 = reinterpret_cast< wxDC * >(argp1);
17968 {
17969 arg2 = &temp2;
17970 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17971 }
17972 {
17973 PyThreadState* __tstate = wxPyBeginAllowThreads();
17974 (arg1)->DrawCheckMark((wxRect const &)*arg2);
17975 wxPyEndAllowThreads(__tstate);
17976 if (PyErr_Occurred()) SWIG_fail;
17977 }
17978 resultobj = SWIG_Py_Void();
17979 return resultobj;
17980 fail:
17981 return NULL;
17982 }
17983
17984
17985 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17986 PyObject *resultobj = 0;
17987 wxDC *arg1 = (wxDC *) 0 ;
17988 int arg2 ;
17989 int arg3 ;
17990 int arg4 ;
17991 int arg5 ;
17992 double arg6 ;
17993 double arg7 ;
17994 void *argp1 = 0 ;
17995 int res1 = 0 ;
17996 int val2 ;
17997 int ecode2 = 0 ;
17998 int val3 ;
17999 int ecode3 = 0 ;
18000 int val4 ;
18001 int ecode4 = 0 ;
18002 int val5 ;
18003 int ecode5 = 0 ;
18004 double val6 ;
18005 int ecode6 = 0 ;
18006 double val7 ;
18007 int ecode7 = 0 ;
18008 PyObject * obj0 = 0 ;
18009 PyObject * obj1 = 0 ;
18010 PyObject * obj2 = 0 ;
18011 PyObject * obj3 = 0 ;
18012 PyObject * obj4 = 0 ;
18013 PyObject * obj5 = 0 ;
18014 PyObject * obj6 = 0 ;
18015 char * kwnames[] = {
18016 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
18017 };
18018
18019 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18020 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18021 if (!SWIG_IsOK(res1)) {
18022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
18023 }
18024 arg1 = reinterpret_cast< wxDC * >(argp1);
18025 ecode2 = SWIG_AsVal_int(obj1, &val2);
18026 if (!SWIG_IsOK(ecode2)) {
18027 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
18028 }
18029 arg2 = static_cast< int >(val2);
18030 ecode3 = SWIG_AsVal_int(obj2, &val3);
18031 if (!SWIG_IsOK(ecode3)) {
18032 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
18033 }
18034 arg3 = static_cast< int >(val3);
18035 ecode4 = SWIG_AsVal_int(obj3, &val4);
18036 if (!SWIG_IsOK(ecode4)) {
18037 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
18038 }
18039 arg4 = static_cast< int >(val4);
18040 ecode5 = SWIG_AsVal_int(obj4, &val5);
18041 if (!SWIG_IsOK(ecode5)) {
18042 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
18043 }
18044 arg5 = static_cast< int >(val5);
18045 ecode6 = SWIG_AsVal_double(obj5, &val6);
18046 if (!SWIG_IsOK(ecode6)) {
18047 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
18048 }
18049 arg6 = static_cast< double >(val6);
18050 ecode7 = SWIG_AsVal_double(obj6, &val7);
18051 if (!SWIG_IsOK(ecode7)) {
18052 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
18053 }
18054 arg7 = static_cast< double >(val7);
18055 {
18056 PyThreadState* __tstate = wxPyBeginAllowThreads();
18057 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
18058 wxPyEndAllowThreads(__tstate);
18059 if (PyErr_Occurred()) SWIG_fail;
18060 }
18061 resultobj = SWIG_Py_Void();
18062 return resultobj;
18063 fail:
18064 return NULL;
18065 }
18066
18067
18068 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18069 PyObject *resultobj = 0;
18070 wxDC *arg1 = (wxDC *) 0 ;
18071 wxPoint *arg2 = 0 ;
18072 wxSize *arg3 = 0 ;
18073 double arg4 ;
18074 double arg5 ;
18075 void *argp1 = 0 ;
18076 int res1 = 0 ;
18077 wxPoint temp2 ;
18078 wxSize temp3 ;
18079 double val4 ;
18080 int ecode4 = 0 ;
18081 double val5 ;
18082 int ecode5 = 0 ;
18083 PyObject * obj0 = 0 ;
18084 PyObject * obj1 = 0 ;
18085 PyObject * obj2 = 0 ;
18086 PyObject * obj3 = 0 ;
18087 PyObject * obj4 = 0 ;
18088 char * kwnames[] = {
18089 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
18090 };
18091
18092 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18093 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18094 if (!SWIG_IsOK(res1)) {
18095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18096 }
18097 arg1 = reinterpret_cast< wxDC * >(argp1);
18098 {
18099 arg2 = &temp2;
18100 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18101 }
18102 {
18103 arg3 = &temp3;
18104 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18105 }
18106 ecode4 = SWIG_AsVal_double(obj3, &val4);
18107 if (!SWIG_IsOK(ecode4)) {
18108 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
18109 }
18110 arg4 = static_cast< double >(val4);
18111 ecode5 = SWIG_AsVal_double(obj4, &val5);
18112 if (!SWIG_IsOK(ecode5)) {
18113 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
18114 }
18115 arg5 = static_cast< double >(val5);
18116 {
18117 PyThreadState* __tstate = wxPyBeginAllowThreads();
18118 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
18119 wxPyEndAllowThreads(__tstate);
18120 if (PyErr_Occurred()) SWIG_fail;
18121 }
18122 resultobj = SWIG_Py_Void();
18123 return resultobj;
18124 fail:
18125 return NULL;
18126 }
18127
18128
18129 SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18130 PyObject *resultobj = 0;
18131 wxDC *arg1 = (wxDC *) 0 ;
18132 int arg2 ;
18133 int arg3 ;
18134 void *argp1 = 0 ;
18135 int res1 = 0 ;
18136 int val2 ;
18137 int ecode2 = 0 ;
18138 int val3 ;
18139 int ecode3 = 0 ;
18140 PyObject * obj0 = 0 ;
18141 PyObject * obj1 = 0 ;
18142 PyObject * obj2 = 0 ;
18143 char * kwnames[] = {
18144 (char *) "self",(char *) "x",(char *) "y", NULL
18145 };
18146
18147 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18148 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18149 if (!SWIG_IsOK(res1)) {
18150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18151 }
18152 arg1 = reinterpret_cast< wxDC * >(argp1);
18153 ecode2 = SWIG_AsVal_int(obj1, &val2);
18154 if (!SWIG_IsOK(ecode2)) {
18155 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
18156 }
18157 arg2 = static_cast< int >(val2);
18158 ecode3 = SWIG_AsVal_int(obj2, &val3);
18159 if (!SWIG_IsOK(ecode3)) {
18160 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
18161 }
18162 arg3 = static_cast< int >(val3);
18163 {
18164 PyThreadState* __tstate = wxPyBeginAllowThreads();
18165 (arg1)->DrawPoint(arg2,arg3);
18166 wxPyEndAllowThreads(__tstate);
18167 if (PyErr_Occurred()) SWIG_fail;
18168 }
18169 resultobj = SWIG_Py_Void();
18170 return resultobj;
18171 fail:
18172 return NULL;
18173 }
18174
18175
18176 SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18177 PyObject *resultobj = 0;
18178 wxDC *arg1 = (wxDC *) 0 ;
18179 wxPoint *arg2 = 0 ;
18180 void *argp1 = 0 ;
18181 int res1 = 0 ;
18182 wxPoint temp2 ;
18183 PyObject * obj0 = 0 ;
18184 PyObject * obj1 = 0 ;
18185 char * kwnames[] = {
18186 (char *) "self",(char *) "pt", NULL
18187 };
18188
18189 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18190 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18191 if (!SWIG_IsOK(res1)) {
18192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18193 }
18194 arg1 = reinterpret_cast< wxDC * >(argp1);
18195 {
18196 arg2 = &temp2;
18197 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18198 }
18199 {
18200 PyThreadState* __tstate = wxPyBeginAllowThreads();
18201 (arg1)->DrawPoint((wxPoint const &)*arg2);
18202 wxPyEndAllowThreads(__tstate);
18203 if (PyErr_Occurred()) SWIG_fail;
18204 }
18205 resultobj = SWIG_Py_Void();
18206 return resultobj;
18207 fail:
18208 return NULL;
18209 }
18210
18211
18212 SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18213 PyObject *resultobj = 0;
18214 wxDC *arg1 = (wxDC *) 0 ;
18215 int arg2 ;
18216 int arg3 ;
18217 int arg4 ;
18218 int arg5 ;
18219 void *argp1 = 0 ;
18220 int res1 = 0 ;
18221 int val2 ;
18222 int ecode2 = 0 ;
18223 int val3 ;
18224 int ecode3 = 0 ;
18225 int val4 ;
18226 int ecode4 = 0 ;
18227 int val5 ;
18228 int ecode5 = 0 ;
18229 PyObject * obj0 = 0 ;
18230 PyObject * obj1 = 0 ;
18231 PyObject * obj2 = 0 ;
18232 PyObject * obj3 = 0 ;
18233 PyObject * obj4 = 0 ;
18234 char * kwnames[] = {
18235 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18236 };
18237
18238 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18239 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18240 if (!SWIG_IsOK(res1)) {
18241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18242 }
18243 arg1 = reinterpret_cast< wxDC * >(argp1);
18244 ecode2 = SWIG_AsVal_int(obj1, &val2);
18245 if (!SWIG_IsOK(ecode2)) {
18246 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
18247 }
18248 arg2 = static_cast< int >(val2);
18249 ecode3 = SWIG_AsVal_int(obj2, &val3);
18250 if (!SWIG_IsOK(ecode3)) {
18251 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
18252 }
18253 arg3 = static_cast< int >(val3);
18254 ecode4 = SWIG_AsVal_int(obj3, &val4);
18255 if (!SWIG_IsOK(ecode4)) {
18256 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
18257 }
18258 arg4 = static_cast< int >(val4);
18259 ecode5 = SWIG_AsVal_int(obj4, &val5);
18260 if (!SWIG_IsOK(ecode5)) {
18261 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
18262 }
18263 arg5 = static_cast< int >(val5);
18264 {
18265 PyThreadState* __tstate = wxPyBeginAllowThreads();
18266 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
18267 wxPyEndAllowThreads(__tstate);
18268 if (PyErr_Occurred()) SWIG_fail;
18269 }
18270 resultobj = SWIG_Py_Void();
18271 return resultobj;
18272 fail:
18273 return NULL;
18274 }
18275
18276
18277 SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18278 PyObject *resultobj = 0;
18279 wxDC *arg1 = (wxDC *) 0 ;
18280 wxRect *arg2 = 0 ;
18281 void *argp1 = 0 ;
18282 int res1 = 0 ;
18283 wxRect temp2 ;
18284 PyObject * obj0 = 0 ;
18285 PyObject * obj1 = 0 ;
18286 char * kwnames[] = {
18287 (char *) "self",(char *) "rect", NULL
18288 };
18289
18290 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
18291 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18292 if (!SWIG_IsOK(res1)) {
18293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18294 }
18295 arg1 = reinterpret_cast< wxDC * >(argp1);
18296 {
18297 arg2 = &temp2;
18298 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18299 }
18300 {
18301 PyThreadState* __tstate = wxPyBeginAllowThreads();
18302 (arg1)->DrawRectangle((wxRect const &)*arg2);
18303 wxPyEndAllowThreads(__tstate);
18304 if (PyErr_Occurred()) SWIG_fail;
18305 }
18306 resultobj = SWIG_Py_Void();
18307 return resultobj;
18308 fail:
18309 return NULL;
18310 }
18311
18312
18313 SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18314 PyObject *resultobj = 0;
18315 wxDC *arg1 = (wxDC *) 0 ;
18316 wxPoint *arg2 = 0 ;
18317 wxSize *arg3 = 0 ;
18318 void *argp1 = 0 ;
18319 int res1 = 0 ;
18320 wxPoint temp2 ;
18321 wxSize temp3 ;
18322 PyObject * obj0 = 0 ;
18323 PyObject * obj1 = 0 ;
18324 PyObject * obj2 = 0 ;
18325 char * kwnames[] = {
18326 (char *) "self",(char *) "pt",(char *) "sz", NULL
18327 };
18328
18329 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18330 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18331 if (!SWIG_IsOK(res1)) {
18332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18333 }
18334 arg1 = reinterpret_cast< wxDC * >(argp1);
18335 {
18336 arg2 = &temp2;
18337 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18338 }
18339 {
18340 arg3 = &temp3;
18341 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18342 }
18343 {
18344 PyThreadState* __tstate = wxPyBeginAllowThreads();
18345 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
18346 wxPyEndAllowThreads(__tstate);
18347 if (PyErr_Occurred()) SWIG_fail;
18348 }
18349 resultobj = SWIG_Py_Void();
18350 return resultobj;
18351 fail:
18352 return NULL;
18353 }
18354
18355
18356 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18357 PyObject *resultobj = 0;
18358 wxDC *arg1 = (wxDC *) 0 ;
18359 int arg2 ;
18360 int arg3 ;
18361 int arg4 ;
18362 int arg5 ;
18363 double arg6 ;
18364 void *argp1 = 0 ;
18365 int res1 = 0 ;
18366 int val2 ;
18367 int ecode2 = 0 ;
18368 int val3 ;
18369 int ecode3 = 0 ;
18370 int val4 ;
18371 int ecode4 = 0 ;
18372 int val5 ;
18373 int ecode5 = 0 ;
18374 double val6 ;
18375 int ecode6 = 0 ;
18376 PyObject * obj0 = 0 ;
18377 PyObject * obj1 = 0 ;
18378 PyObject * obj2 = 0 ;
18379 PyObject * obj3 = 0 ;
18380 PyObject * obj4 = 0 ;
18381 PyObject * obj5 = 0 ;
18382 char * kwnames[] = {
18383 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
18384 };
18385
18386 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
18387 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18388 if (!SWIG_IsOK(res1)) {
18389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18390 }
18391 arg1 = reinterpret_cast< wxDC * >(argp1);
18392 ecode2 = SWIG_AsVal_int(obj1, &val2);
18393 if (!SWIG_IsOK(ecode2)) {
18394 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
18395 }
18396 arg2 = static_cast< int >(val2);
18397 ecode3 = SWIG_AsVal_int(obj2, &val3);
18398 if (!SWIG_IsOK(ecode3)) {
18399 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
18400 }
18401 arg3 = static_cast< int >(val3);
18402 ecode4 = SWIG_AsVal_int(obj3, &val4);
18403 if (!SWIG_IsOK(ecode4)) {
18404 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
18405 }
18406 arg4 = static_cast< int >(val4);
18407 ecode5 = SWIG_AsVal_int(obj4, &val5);
18408 if (!SWIG_IsOK(ecode5)) {
18409 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
18410 }
18411 arg5 = static_cast< int >(val5);
18412 ecode6 = SWIG_AsVal_double(obj5, &val6);
18413 if (!SWIG_IsOK(ecode6)) {
18414 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
18415 }
18416 arg6 = static_cast< double >(val6);
18417 {
18418 PyThreadState* __tstate = wxPyBeginAllowThreads();
18419 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
18420 wxPyEndAllowThreads(__tstate);
18421 if (PyErr_Occurred()) SWIG_fail;
18422 }
18423 resultobj = SWIG_Py_Void();
18424 return resultobj;
18425 fail:
18426 return NULL;
18427 }
18428
18429
18430 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18431 PyObject *resultobj = 0;
18432 wxDC *arg1 = (wxDC *) 0 ;
18433 wxRect *arg2 = 0 ;
18434 double arg3 ;
18435 void *argp1 = 0 ;
18436 int res1 = 0 ;
18437 wxRect temp2 ;
18438 double val3 ;
18439 int ecode3 = 0 ;
18440 PyObject * obj0 = 0 ;
18441 PyObject * obj1 = 0 ;
18442 PyObject * obj2 = 0 ;
18443 char * kwnames[] = {
18444 (char *) "self",(char *) "r",(char *) "radius", NULL
18445 };
18446
18447 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18448 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18449 if (!SWIG_IsOK(res1)) {
18450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18451 }
18452 arg1 = reinterpret_cast< wxDC * >(argp1);
18453 {
18454 arg2 = &temp2;
18455 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18456 }
18457 ecode3 = SWIG_AsVal_double(obj2, &val3);
18458 if (!SWIG_IsOK(ecode3)) {
18459 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
18460 }
18461 arg3 = static_cast< double >(val3);
18462 {
18463 PyThreadState* __tstate = wxPyBeginAllowThreads();
18464 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
18465 wxPyEndAllowThreads(__tstate);
18466 if (PyErr_Occurred()) SWIG_fail;
18467 }
18468 resultobj = SWIG_Py_Void();
18469 return resultobj;
18470 fail:
18471 return NULL;
18472 }
18473
18474
18475 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18476 PyObject *resultobj = 0;
18477 wxDC *arg1 = (wxDC *) 0 ;
18478 wxPoint *arg2 = 0 ;
18479 wxSize *arg3 = 0 ;
18480 double arg4 ;
18481 void *argp1 = 0 ;
18482 int res1 = 0 ;
18483 wxPoint temp2 ;
18484 wxSize temp3 ;
18485 double val4 ;
18486 int ecode4 = 0 ;
18487 PyObject * obj0 = 0 ;
18488 PyObject * obj1 = 0 ;
18489 PyObject * obj2 = 0 ;
18490 PyObject * obj3 = 0 ;
18491 char * kwnames[] = {
18492 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
18493 };
18494
18495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18496 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18497 if (!SWIG_IsOK(res1)) {
18498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18499 }
18500 arg1 = reinterpret_cast< wxDC * >(argp1);
18501 {
18502 arg2 = &temp2;
18503 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18504 }
18505 {
18506 arg3 = &temp3;
18507 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18508 }
18509 ecode4 = SWIG_AsVal_double(obj3, &val4);
18510 if (!SWIG_IsOK(ecode4)) {
18511 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
18512 }
18513 arg4 = static_cast< double >(val4);
18514 {
18515 PyThreadState* __tstate = wxPyBeginAllowThreads();
18516 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
18517 wxPyEndAllowThreads(__tstate);
18518 if (PyErr_Occurred()) SWIG_fail;
18519 }
18520 resultobj = SWIG_Py_Void();
18521 return resultobj;
18522 fail:
18523 return NULL;
18524 }
18525
18526
18527 SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18528 PyObject *resultobj = 0;
18529 wxDC *arg1 = (wxDC *) 0 ;
18530 int arg2 ;
18531 int arg3 ;
18532 int arg4 ;
18533 void *argp1 = 0 ;
18534 int res1 = 0 ;
18535 int val2 ;
18536 int ecode2 = 0 ;
18537 int val3 ;
18538 int ecode3 = 0 ;
18539 int val4 ;
18540 int ecode4 = 0 ;
18541 PyObject * obj0 = 0 ;
18542 PyObject * obj1 = 0 ;
18543 PyObject * obj2 = 0 ;
18544 PyObject * obj3 = 0 ;
18545 char * kwnames[] = {
18546 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
18547 };
18548
18549 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18550 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18551 if (!SWIG_IsOK(res1)) {
18552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
18553 }
18554 arg1 = reinterpret_cast< wxDC * >(argp1);
18555 ecode2 = SWIG_AsVal_int(obj1, &val2);
18556 if (!SWIG_IsOK(ecode2)) {
18557 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
18558 }
18559 arg2 = static_cast< int >(val2);
18560 ecode3 = SWIG_AsVal_int(obj2, &val3);
18561 if (!SWIG_IsOK(ecode3)) {
18562 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
18563 }
18564 arg3 = static_cast< int >(val3);
18565 ecode4 = SWIG_AsVal_int(obj3, &val4);
18566 if (!SWIG_IsOK(ecode4)) {
18567 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
18568 }
18569 arg4 = static_cast< int >(val4);
18570 {
18571 PyThreadState* __tstate = wxPyBeginAllowThreads();
18572 (arg1)->DrawCircle(arg2,arg3,arg4);
18573 wxPyEndAllowThreads(__tstate);
18574 if (PyErr_Occurred()) SWIG_fail;
18575 }
18576 resultobj = SWIG_Py_Void();
18577 return resultobj;
18578 fail:
18579 return NULL;
18580 }
18581
18582
18583 SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18584 PyObject *resultobj = 0;
18585 wxDC *arg1 = (wxDC *) 0 ;
18586 wxPoint *arg2 = 0 ;
18587 int arg3 ;
18588 void *argp1 = 0 ;
18589 int res1 = 0 ;
18590 wxPoint temp2 ;
18591 int val3 ;
18592 int ecode3 = 0 ;
18593 PyObject * obj0 = 0 ;
18594 PyObject * obj1 = 0 ;
18595 PyObject * obj2 = 0 ;
18596 char * kwnames[] = {
18597 (char *) "self",(char *) "pt",(char *) "radius", NULL
18598 };
18599
18600 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18601 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18602 if (!SWIG_IsOK(res1)) {
18603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
18604 }
18605 arg1 = reinterpret_cast< wxDC * >(argp1);
18606 {
18607 arg2 = &temp2;
18608 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18609 }
18610 ecode3 = SWIG_AsVal_int(obj2, &val3);
18611 if (!SWIG_IsOK(ecode3)) {
18612 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
18613 }
18614 arg3 = static_cast< int >(val3);
18615 {
18616 PyThreadState* __tstate = wxPyBeginAllowThreads();
18617 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
18618 wxPyEndAllowThreads(__tstate);
18619 if (PyErr_Occurred()) SWIG_fail;
18620 }
18621 resultobj = SWIG_Py_Void();
18622 return resultobj;
18623 fail:
18624 return NULL;
18625 }
18626
18627
18628 SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18629 PyObject *resultobj = 0;
18630 wxDC *arg1 = (wxDC *) 0 ;
18631 int arg2 ;
18632 int arg3 ;
18633 int arg4 ;
18634 int arg5 ;
18635 void *argp1 = 0 ;
18636 int res1 = 0 ;
18637 int val2 ;
18638 int ecode2 = 0 ;
18639 int val3 ;
18640 int ecode3 = 0 ;
18641 int val4 ;
18642 int ecode4 = 0 ;
18643 int val5 ;
18644 int ecode5 = 0 ;
18645 PyObject * obj0 = 0 ;
18646 PyObject * obj1 = 0 ;
18647 PyObject * obj2 = 0 ;
18648 PyObject * obj3 = 0 ;
18649 PyObject * obj4 = 0 ;
18650 char * kwnames[] = {
18651 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18652 };
18653
18654 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18655 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18656 if (!SWIG_IsOK(res1)) {
18657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
18658 }
18659 arg1 = reinterpret_cast< wxDC * >(argp1);
18660 ecode2 = SWIG_AsVal_int(obj1, &val2);
18661 if (!SWIG_IsOK(ecode2)) {
18662 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
18663 }
18664 arg2 = static_cast< int >(val2);
18665 ecode3 = SWIG_AsVal_int(obj2, &val3);
18666 if (!SWIG_IsOK(ecode3)) {
18667 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
18668 }
18669 arg3 = static_cast< int >(val3);
18670 ecode4 = SWIG_AsVal_int(obj3, &val4);
18671 if (!SWIG_IsOK(ecode4)) {
18672 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
18673 }
18674 arg4 = static_cast< int >(val4);
18675 ecode5 = SWIG_AsVal_int(obj4, &val5);
18676 if (!SWIG_IsOK(ecode5)) {
18677 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
18678 }
18679 arg5 = static_cast< int >(val5);
18680 {
18681 PyThreadState* __tstate = wxPyBeginAllowThreads();
18682 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
18683 wxPyEndAllowThreads(__tstate);
18684 if (PyErr_Occurred()) SWIG_fail;
18685 }
18686 resultobj = SWIG_Py_Void();
18687 return resultobj;
18688 fail:
18689 return NULL;
18690 }
18691
18692
18693 SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18694 PyObject *resultobj = 0;
18695 wxDC *arg1 = (wxDC *) 0 ;
18696 wxRect *arg2 = 0 ;
18697 void *argp1 = 0 ;
18698 int res1 = 0 ;
18699 wxRect temp2 ;
18700 PyObject * obj0 = 0 ;
18701 PyObject * obj1 = 0 ;
18702 char * kwnames[] = {
18703 (char *) "self",(char *) "rect", NULL
18704 };
18705
18706 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
18707 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18708 if (!SWIG_IsOK(res1)) {
18709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
18710 }
18711 arg1 = reinterpret_cast< wxDC * >(argp1);
18712 {
18713 arg2 = &temp2;
18714 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18715 }
18716 {
18717 PyThreadState* __tstate = wxPyBeginAllowThreads();
18718 (arg1)->DrawEllipse((wxRect const &)*arg2);
18719 wxPyEndAllowThreads(__tstate);
18720 if (PyErr_Occurred()) SWIG_fail;
18721 }
18722 resultobj = SWIG_Py_Void();
18723 return resultobj;
18724 fail:
18725 return NULL;
18726 }
18727
18728
18729 SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18730 PyObject *resultobj = 0;
18731 wxDC *arg1 = (wxDC *) 0 ;
18732 wxPoint *arg2 = 0 ;
18733 wxSize *arg3 = 0 ;
18734 void *argp1 = 0 ;
18735 int res1 = 0 ;
18736 wxPoint temp2 ;
18737 wxSize temp3 ;
18738 PyObject * obj0 = 0 ;
18739 PyObject * obj1 = 0 ;
18740 PyObject * obj2 = 0 ;
18741 char * kwnames[] = {
18742 (char *) "self",(char *) "pt",(char *) "sz", NULL
18743 };
18744
18745 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18746 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18747 if (!SWIG_IsOK(res1)) {
18748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18749 }
18750 arg1 = reinterpret_cast< wxDC * >(argp1);
18751 {
18752 arg2 = &temp2;
18753 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18754 }
18755 {
18756 arg3 = &temp3;
18757 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18758 }
18759 {
18760 PyThreadState* __tstate = wxPyBeginAllowThreads();
18761 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
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_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18773 PyObject *resultobj = 0;
18774 wxDC *arg1 = (wxDC *) 0 ;
18775 wxIcon *arg2 = 0 ;
18776 int arg3 ;
18777 int arg4 ;
18778 void *argp1 = 0 ;
18779 int res1 = 0 ;
18780 void *argp2 = 0 ;
18781 int res2 = 0 ;
18782 int val3 ;
18783 int ecode3 = 0 ;
18784 int val4 ;
18785 int ecode4 = 0 ;
18786 PyObject * obj0 = 0 ;
18787 PyObject * obj1 = 0 ;
18788 PyObject * obj2 = 0 ;
18789 PyObject * obj3 = 0 ;
18790 char * kwnames[] = {
18791 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
18792 };
18793
18794 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18795 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18796 if (!SWIG_IsOK(res1)) {
18797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
18798 }
18799 arg1 = reinterpret_cast< wxDC * >(argp1);
18800 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
18801 if (!SWIG_IsOK(res2)) {
18802 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
18803 }
18804 if (!argp2) {
18805 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
18806 }
18807 arg2 = reinterpret_cast< wxIcon * >(argp2);
18808 ecode3 = SWIG_AsVal_int(obj2, &val3);
18809 if (!SWIG_IsOK(ecode3)) {
18810 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
18811 }
18812 arg3 = static_cast< int >(val3);
18813 ecode4 = SWIG_AsVal_int(obj3, &val4);
18814 if (!SWIG_IsOK(ecode4)) {
18815 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
18816 }
18817 arg4 = static_cast< int >(val4);
18818 {
18819 PyThreadState* __tstate = wxPyBeginAllowThreads();
18820 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
18821 wxPyEndAllowThreads(__tstate);
18822 if (PyErr_Occurred()) SWIG_fail;
18823 }
18824 resultobj = SWIG_Py_Void();
18825 return resultobj;
18826 fail:
18827 return NULL;
18828 }
18829
18830
18831 SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18832 PyObject *resultobj = 0;
18833 wxDC *arg1 = (wxDC *) 0 ;
18834 wxIcon *arg2 = 0 ;
18835 wxPoint *arg3 = 0 ;
18836 void *argp1 = 0 ;
18837 int res1 = 0 ;
18838 void *argp2 = 0 ;
18839 int res2 = 0 ;
18840 wxPoint temp3 ;
18841 PyObject * obj0 = 0 ;
18842 PyObject * obj1 = 0 ;
18843 PyObject * obj2 = 0 ;
18844 char * kwnames[] = {
18845 (char *) "self",(char *) "icon",(char *) "pt", NULL
18846 };
18847
18848 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18849 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18850 if (!SWIG_IsOK(res1)) {
18851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18852 }
18853 arg1 = reinterpret_cast< wxDC * >(argp1);
18854 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
18855 if (!SWIG_IsOK(res2)) {
18856 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
18857 }
18858 if (!argp2) {
18859 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
18860 }
18861 arg2 = reinterpret_cast< wxIcon * >(argp2);
18862 {
18863 arg3 = &temp3;
18864 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18865 }
18866 {
18867 PyThreadState* __tstate = wxPyBeginAllowThreads();
18868 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
18869 wxPyEndAllowThreads(__tstate);
18870 if (PyErr_Occurred()) SWIG_fail;
18871 }
18872 resultobj = SWIG_Py_Void();
18873 return resultobj;
18874 fail:
18875 return NULL;
18876 }
18877
18878
18879 SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18880 PyObject *resultobj = 0;
18881 wxDC *arg1 = (wxDC *) 0 ;
18882 wxBitmap *arg2 = 0 ;
18883 int arg3 ;
18884 int arg4 ;
18885 bool arg5 = (bool) false ;
18886 void *argp1 = 0 ;
18887 int res1 = 0 ;
18888 void *argp2 = 0 ;
18889 int res2 = 0 ;
18890 int val3 ;
18891 int ecode3 = 0 ;
18892 int val4 ;
18893 int ecode4 = 0 ;
18894 bool val5 ;
18895 int ecode5 = 0 ;
18896 PyObject * obj0 = 0 ;
18897 PyObject * obj1 = 0 ;
18898 PyObject * obj2 = 0 ;
18899 PyObject * obj3 = 0 ;
18900 PyObject * obj4 = 0 ;
18901 char * kwnames[] = {
18902 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
18903 };
18904
18905 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18906 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18907 if (!SWIG_IsOK(res1)) {
18908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
18909 }
18910 arg1 = reinterpret_cast< wxDC * >(argp1);
18911 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
18912 if (!SWIG_IsOK(res2)) {
18913 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18914 }
18915 if (!argp2) {
18916 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18917 }
18918 arg2 = reinterpret_cast< wxBitmap * >(argp2);
18919 ecode3 = SWIG_AsVal_int(obj2, &val3);
18920 if (!SWIG_IsOK(ecode3)) {
18921 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
18922 }
18923 arg3 = static_cast< int >(val3);
18924 ecode4 = SWIG_AsVal_int(obj3, &val4);
18925 if (!SWIG_IsOK(ecode4)) {
18926 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
18927 }
18928 arg4 = static_cast< int >(val4);
18929 if (obj4) {
18930 ecode5 = SWIG_AsVal_bool(obj4, &val5);
18931 if (!SWIG_IsOK(ecode5)) {
18932 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
18933 }
18934 arg5 = static_cast< bool >(val5);
18935 }
18936 {
18937 PyThreadState* __tstate = wxPyBeginAllowThreads();
18938 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
18939 wxPyEndAllowThreads(__tstate);
18940 if (PyErr_Occurred()) SWIG_fail;
18941 }
18942 resultobj = SWIG_Py_Void();
18943 return resultobj;
18944 fail:
18945 return NULL;
18946 }
18947
18948
18949 SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18950 PyObject *resultobj = 0;
18951 wxDC *arg1 = (wxDC *) 0 ;
18952 wxBitmap *arg2 = 0 ;
18953 wxPoint *arg3 = 0 ;
18954 bool arg4 = (bool) false ;
18955 void *argp1 = 0 ;
18956 int res1 = 0 ;
18957 void *argp2 = 0 ;
18958 int res2 = 0 ;
18959 wxPoint temp3 ;
18960 bool val4 ;
18961 int ecode4 = 0 ;
18962 PyObject * obj0 = 0 ;
18963 PyObject * obj1 = 0 ;
18964 PyObject * obj2 = 0 ;
18965 PyObject * obj3 = 0 ;
18966 char * kwnames[] = {
18967 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
18968 };
18969
18970 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18971 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18972 if (!SWIG_IsOK(res1)) {
18973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18974 }
18975 arg1 = reinterpret_cast< wxDC * >(argp1);
18976 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
18977 if (!SWIG_IsOK(res2)) {
18978 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18979 }
18980 if (!argp2) {
18981 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18982 }
18983 arg2 = reinterpret_cast< wxBitmap * >(argp2);
18984 {
18985 arg3 = &temp3;
18986 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18987 }
18988 if (obj3) {
18989 ecode4 = SWIG_AsVal_bool(obj3, &val4);
18990 if (!SWIG_IsOK(ecode4)) {
18991 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
18992 }
18993 arg4 = static_cast< bool >(val4);
18994 }
18995 {
18996 PyThreadState* __tstate = wxPyBeginAllowThreads();
18997 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
18998 wxPyEndAllowThreads(__tstate);
18999 if (PyErr_Occurred()) SWIG_fail;
19000 }
19001 resultobj = SWIG_Py_Void();
19002 return resultobj;
19003 fail:
19004 return NULL;
19005 }
19006
19007
19008 SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19009 PyObject *resultobj = 0;
19010 wxDC *arg1 = (wxDC *) 0 ;
19011 wxString *arg2 = 0 ;
19012 int arg3 ;
19013 int arg4 ;
19014 void *argp1 = 0 ;
19015 int res1 = 0 ;
19016 bool temp2 = false ;
19017 int val3 ;
19018 int ecode3 = 0 ;
19019 int val4 ;
19020 int ecode4 = 0 ;
19021 PyObject * obj0 = 0 ;
19022 PyObject * obj1 = 0 ;
19023 PyObject * obj2 = 0 ;
19024 PyObject * obj3 = 0 ;
19025 char * kwnames[] = {
19026 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
19027 };
19028
19029 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19030 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19031 if (!SWIG_IsOK(res1)) {
19032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
19033 }
19034 arg1 = reinterpret_cast< wxDC * >(argp1);
19035 {
19036 arg2 = wxString_in_helper(obj1);
19037 if (arg2 == NULL) SWIG_fail;
19038 temp2 = true;
19039 }
19040 ecode3 = SWIG_AsVal_int(obj2, &val3);
19041 if (!SWIG_IsOK(ecode3)) {
19042 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
19043 }
19044 arg3 = static_cast< int >(val3);
19045 ecode4 = SWIG_AsVal_int(obj3, &val4);
19046 if (!SWIG_IsOK(ecode4)) {
19047 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
19048 }
19049 arg4 = static_cast< int >(val4);
19050 {
19051 PyThreadState* __tstate = wxPyBeginAllowThreads();
19052 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
19053 wxPyEndAllowThreads(__tstate);
19054 if (PyErr_Occurred()) SWIG_fail;
19055 }
19056 resultobj = SWIG_Py_Void();
19057 {
19058 if (temp2)
19059 delete arg2;
19060 }
19061 return resultobj;
19062 fail:
19063 {
19064 if (temp2)
19065 delete arg2;
19066 }
19067 return NULL;
19068 }
19069
19070
19071 SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19072 PyObject *resultobj = 0;
19073 wxDC *arg1 = (wxDC *) 0 ;
19074 wxString *arg2 = 0 ;
19075 wxPoint *arg3 = 0 ;
19076 void *argp1 = 0 ;
19077 int res1 = 0 ;
19078 bool temp2 = false ;
19079 wxPoint temp3 ;
19080 PyObject * obj0 = 0 ;
19081 PyObject * obj1 = 0 ;
19082 PyObject * obj2 = 0 ;
19083 char * kwnames[] = {
19084 (char *) "self",(char *) "text",(char *) "pt", NULL
19085 };
19086
19087 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19088 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19089 if (!SWIG_IsOK(res1)) {
19090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19091 }
19092 arg1 = reinterpret_cast< wxDC * >(argp1);
19093 {
19094 arg2 = wxString_in_helper(obj1);
19095 if (arg2 == NULL) SWIG_fail;
19096 temp2 = true;
19097 }
19098 {
19099 arg3 = &temp3;
19100 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19101 }
19102 {
19103 PyThreadState* __tstate = wxPyBeginAllowThreads();
19104 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
19105 wxPyEndAllowThreads(__tstate);
19106 if (PyErr_Occurred()) SWIG_fail;
19107 }
19108 resultobj = SWIG_Py_Void();
19109 {
19110 if (temp2)
19111 delete arg2;
19112 }
19113 return resultobj;
19114 fail:
19115 {
19116 if (temp2)
19117 delete arg2;
19118 }
19119 return NULL;
19120 }
19121
19122
19123 SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19124 PyObject *resultobj = 0;
19125 wxDC *arg1 = (wxDC *) 0 ;
19126 wxString *arg2 = 0 ;
19127 int arg3 ;
19128 int arg4 ;
19129 double arg5 ;
19130 void *argp1 = 0 ;
19131 int res1 = 0 ;
19132 bool temp2 = false ;
19133 int val3 ;
19134 int ecode3 = 0 ;
19135 int val4 ;
19136 int ecode4 = 0 ;
19137 double val5 ;
19138 int ecode5 = 0 ;
19139 PyObject * obj0 = 0 ;
19140 PyObject * obj1 = 0 ;
19141 PyObject * obj2 = 0 ;
19142 PyObject * obj3 = 0 ;
19143 PyObject * obj4 = 0 ;
19144 char * kwnames[] = {
19145 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
19146 };
19147
19148 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19149 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19150 if (!SWIG_IsOK(res1)) {
19151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
19152 }
19153 arg1 = reinterpret_cast< wxDC * >(argp1);
19154 {
19155 arg2 = wxString_in_helper(obj1);
19156 if (arg2 == NULL) SWIG_fail;
19157 temp2 = true;
19158 }
19159 ecode3 = SWIG_AsVal_int(obj2, &val3);
19160 if (!SWIG_IsOK(ecode3)) {
19161 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
19162 }
19163 arg3 = static_cast< int >(val3);
19164 ecode4 = SWIG_AsVal_int(obj3, &val4);
19165 if (!SWIG_IsOK(ecode4)) {
19166 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
19167 }
19168 arg4 = static_cast< int >(val4);
19169 ecode5 = SWIG_AsVal_double(obj4, &val5);
19170 if (!SWIG_IsOK(ecode5)) {
19171 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
19172 }
19173 arg5 = static_cast< double >(val5);
19174 {
19175 PyThreadState* __tstate = wxPyBeginAllowThreads();
19176 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
19177 wxPyEndAllowThreads(__tstate);
19178 if (PyErr_Occurred()) SWIG_fail;
19179 }
19180 resultobj = SWIG_Py_Void();
19181 {
19182 if (temp2)
19183 delete arg2;
19184 }
19185 return resultobj;
19186 fail:
19187 {
19188 if (temp2)
19189 delete arg2;
19190 }
19191 return NULL;
19192 }
19193
19194
19195 SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19196 PyObject *resultobj = 0;
19197 wxDC *arg1 = (wxDC *) 0 ;
19198 wxString *arg2 = 0 ;
19199 wxPoint *arg3 = 0 ;
19200 double arg4 ;
19201 void *argp1 = 0 ;
19202 int res1 = 0 ;
19203 bool temp2 = false ;
19204 wxPoint temp3 ;
19205 double val4 ;
19206 int ecode4 = 0 ;
19207 PyObject * obj0 = 0 ;
19208 PyObject * obj1 = 0 ;
19209 PyObject * obj2 = 0 ;
19210 PyObject * obj3 = 0 ;
19211 char * kwnames[] = {
19212 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
19213 };
19214
19215 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19216 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19217 if (!SWIG_IsOK(res1)) {
19218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19219 }
19220 arg1 = reinterpret_cast< wxDC * >(argp1);
19221 {
19222 arg2 = wxString_in_helper(obj1);
19223 if (arg2 == NULL) SWIG_fail;
19224 temp2 = true;
19225 }
19226 {
19227 arg3 = &temp3;
19228 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19229 }
19230 ecode4 = SWIG_AsVal_double(obj3, &val4);
19231 if (!SWIG_IsOK(ecode4)) {
19232 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
19233 }
19234 arg4 = static_cast< double >(val4);
19235 {
19236 PyThreadState* __tstate = wxPyBeginAllowThreads();
19237 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
19238 wxPyEndAllowThreads(__tstate);
19239 if (PyErr_Occurred()) SWIG_fail;
19240 }
19241 resultobj = SWIG_Py_Void();
19242 {
19243 if (temp2)
19244 delete arg2;
19245 }
19246 return resultobj;
19247 fail:
19248 {
19249 if (temp2)
19250 delete arg2;
19251 }
19252 return NULL;
19253 }
19254
19255
19256 SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19257 PyObject *resultobj = 0;
19258 wxDC *arg1 = (wxDC *) 0 ;
19259 int arg2 ;
19260 int arg3 ;
19261 int arg4 ;
19262 int arg5 ;
19263 wxDC *arg6 = (wxDC *) 0 ;
19264 int arg7 ;
19265 int arg8 ;
19266 int arg9 = (int) wxCOPY ;
19267 bool arg10 = (bool) false ;
19268 int arg11 = (int) -1 ;
19269 int arg12 = (int) -1 ;
19270 bool result;
19271 void *argp1 = 0 ;
19272 int res1 = 0 ;
19273 int val2 ;
19274 int ecode2 = 0 ;
19275 int val3 ;
19276 int ecode3 = 0 ;
19277 int val4 ;
19278 int ecode4 = 0 ;
19279 int val5 ;
19280 int ecode5 = 0 ;
19281 void *argp6 = 0 ;
19282 int res6 = 0 ;
19283 int val7 ;
19284 int ecode7 = 0 ;
19285 int val8 ;
19286 int ecode8 = 0 ;
19287 int val9 ;
19288 int ecode9 = 0 ;
19289 bool val10 ;
19290 int ecode10 = 0 ;
19291 int val11 ;
19292 int ecode11 = 0 ;
19293 int val12 ;
19294 int ecode12 = 0 ;
19295 PyObject * obj0 = 0 ;
19296 PyObject * obj1 = 0 ;
19297 PyObject * obj2 = 0 ;
19298 PyObject * obj3 = 0 ;
19299 PyObject * obj4 = 0 ;
19300 PyObject * obj5 = 0 ;
19301 PyObject * obj6 = 0 ;
19302 PyObject * obj7 = 0 ;
19303 PyObject * obj8 = 0 ;
19304 PyObject * obj9 = 0 ;
19305 PyObject * obj10 = 0 ;
19306 PyObject * obj11 = 0 ;
19307 char * kwnames[] = {
19308 (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
19309 };
19310
19311 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;
19312 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19313 if (!SWIG_IsOK(res1)) {
19314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
19315 }
19316 arg1 = reinterpret_cast< wxDC * >(argp1);
19317 ecode2 = SWIG_AsVal_int(obj1, &val2);
19318 if (!SWIG_IsOK(ecode2)) {
19319 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
19320 }
19321 arg2 = static_cast< int >(val2);
19322 ecode3 = SWIG_AsVal_int(obj2, &val3);
19323 if (!SWIG_IsOK(ecode3)) {
19324 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
19325 }
19326 arg3 = static_cast< int >(val3);
19327 ecode4 = SWIG_AsVal_int(obj3, &val4);
19328 if (!SWIG_IsOK(ecode4)) {
19329 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
19330 }
19331 arg4 = static_cast< int >(val4);
19332 ecode5 = SWIG_AsVal_int(obj4, &val5);
19333 if (!SWIG_IsOK(ecode5)) {
19334 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
19335 }
19336 arg5 = static_cast< int >(val5);
19337 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
19338 if (!SWIG_IsOK(res6)) {
19339 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
19340 }
19341 arg6 = reinterpret_cast< wxDC * >(argp6);
19342 ecode7 = SWIG_AsVal_int(obj6, &val7);
19343 if (!SWIG_IsOK(ecode7)) {
19344 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
19345 }
19346 arg7 = static_cast< int >(val7);
19347 ecode8 = SWIG_AsVal_int(obj7, &val8);
19348 if (!SWIG_IsOK(ecode8)) {
19349 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
19350 }
19351 arg8 = static_cast< int >(val8);
19352 if (obj8) {
19353 ecode9 = SWIG_AsVal_int(obj8, &val9);
19354 if (!SWIG_IsOK(ecode9)) {
19355 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
19356 }
19357 arg9 = static_cast< int >(val9);
19358 }
19359 if (obj9) {
19360 ecode10 = SWIG_AsVal_bool(obj9, &val10);
19361 if (!SWIG_IsOK(ecode10)) {
19362 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
19363 }
19364 arg10 = static_cast< bool >(val10);
19365 }
19366 if (obj10) {
19367 ecode11 = SWIG_AsVal_int(obj10, &val11);
19368 if (!SWIG_IsOK(ecode11)) {
19369 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
19370 }
19371 arg11 = static_cast< int >(val11);
19372 }
19373 if (obj11) {
19374 ecode12 = SWIG_AsVal_int(obj11, &val12);
19375 if (!SWIG_IsOK(ecode12)) {
19376 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
19377 }
19378 arg12 = static_cast< int >(val12);
19379 }
19380 {
19381 PyThreadState* __tstate = wxPyBeginAllowThreads();
19382 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
19383 wxPyEndAllowThreads(__tstate);
19384 if (PyErr_Occurred()) SWIG_fail;
19385 }
19386 {
19387 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19388 }
19389 return resultobj;
19390 fail:
19391 return NULL;
19392 }
19393
19394
19395 SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19396 PyObject *resultobj = 0;
19397 wxDC *arg1 = (wxDC *) 0 ;
19398 wxPoint *arg2 = 0 ;
19399 wxSize *arg3 = 0 ;
19400 wxDC *arg4 = (wxDC *) 0 ;
19401 wxPoint *arg5 = 0 ;
19402 int arg6 = (int) wxCOPY ;
19403 bool arg7 = (bool) false ;
19404 wxPoint const &arg8_defvalue = wxDefaultPosition ;
19405 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
19406 bool result;
19407 void *argp1 = 0 ;
19408 int res1 = 0 ;
19409 wxPoint temp2 ;
19410 wxSize temp3 ;
19411 void *argp4 = 0 ;
19412 int res4 = 0 ;
19413 wxPoint temp5 ;
19414 int val6 ;
19415 int ecode6 = 0 ;
19416 bool val7 ;
19417 int ecode7 = 0 ;
19418 wxPoint temp8 ;
19419 PyObject * obj0 = 0 ;
19420 PyObject * obj1 = 0 ;
19421 PyObject * obj2 = 0 ;
19422 PyObject * obj3 = 0 ;
19423 PyObject * obj4 = 0 ;
19424 PyObject * obj5 = 0 ;
19425 PyObject * obj6 = 0 ;
19426 PyObject * obj7 = 0 ;
19427 char * kwnames[] = {
19428 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
19429 };
19430
19431 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
19432 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19433 if (!SWIG_IsOK(res1)) {
19434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19435 }
19436 arg1 = reinterpret_cast< wxDC * >(argp1);
19437 {
19438 arg2 = &temp2;
19439 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19440 }
19441 {
19442 arg3 = &temp3;
19443 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19444 }
19445 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
19446 if (!SWIG_IsOK(res4)) {
19447 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
19448 }
19449 arg4 = reinterpret_cast< wxDC * >(argp4);
19450 {
19451 arg5 = &temp5;
19452 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
19453 }
19454 if (obj5) {
19455 ecode6 = SWIG_AsVal_int(obj5, &val6);
19456 if (!SWIG_IsOK(ecode6)) {
19457 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
19458 }
19459 arg6 = static_cast< int >(val6);
19460 }
19461 if (obj6) {
19462 ecode7 = SWIG_AsVal_bool(obj6, &val7);
19463 if (!SWIG_IsOK(ecode7)) {
19464 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
19465 }
19466 arg7 = static_cast< bool >(val7);
19467 }
19468 if (obj7) {
19469 {
19470 arg8 = &temp8;
19471 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
19472 }
19473 }
19474 {
19475 PyThreadState* __tstate = wxPyBeginAllowThreads();
19476 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
19477 wxPyEndAllowThreads(__tstate);
19478 if (PyErr_Occurred()) SWIG_fail;
19479 }
19480 {
19481 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19482 }
19483 return resultobj;
19484 fail:
19485 return NULL;
19486 }
19487
19488
19489 SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19490 PyObject *resultobj = 0;
19491 wxDC *arg1 = (wxDC *) 0 ;
19492 int arg2 ;
19493 int arg3 ;
19494 int arg4 ;
19495 int arg5 ;
19496 void *argp1 = 0 ;
19497 int res1 = 0 ;
19498 int val2 ;
19499 int ecode2 = 0 ;
19500 int val3 ;
19501 int ecode3 = 0 ;
19502 int val4 ;
19503 int ecode4 = 0 ;
19504 int val5 ;
19505 int ecode5 = 0 ;
19506 PyObject * obj0 = 0 ;
19507 PyObject * obj1 = 0 ;
19508 PyObject * obj2 = 0 ;
19509 PyObject * obj3 = 0 ;
19510 PyObject * obj4 = 0 ;
19511 char * kwnames[] = {
19512 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19513 };
19514
19515 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19516 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19517 if (!SWIG_IsOK(res1)) {
19518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19519 }
19520 arg1 = reinterpret_cast< wxDC * >(argp1);
19521 ecode2 = SWIG_AsVal_int(obj1, &val2);
19522 if (!SWIG_IsOK(ecode2)) {
19523 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
19524 }
19525 arg2 = static_cast< int >(val2);
19526 ecode3 = SWIG_AsVal_int(obj2, &val3);
19527 if (!SWIG_IsOK(ecode3)) {
19528 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
19529 }
19530 arg3 = static_cast< int >(val3);
19531 ecode4 = SWIG_AsVal_int(obj3, &val4);
19532 if (!SWIG_IsOK(ecode4)) {
19533 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
19534 }
19535 arg4 = static_cast< int >(val4);
19536 ecode5 = SWIG_AsVal_int(obj4, &val5);
19537 if (!SWIG_IsOK(ecode5)) {
19538 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
19539 }
19540 arg5 = static_cast< int >(val5);
19541 {
19542 PyThreadState* __tstate = wxPyBeginAllowThreads();
19543 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
19544 wxPyEndAllowThreads(__tstate);
19545 if (PyErr_Occurred()) SWIG_fail;
19546 }
19547 resultobj = SWIG_Py_Void();
19548 return resultobj;
19549 fail:
19550 return NULL;
19551 }
19552
19553
19554 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19555 PyObject *resultobj = 0;
19556 wxDC *arg1 = (wxDC *) 0 ;
19557 wxPoint *arg2 = 0 ;
19558 wxSize *arg3 = 0 ;
19559 void *argp1 = 0 ;
19560 int res1 = 0 ;
19561 wxPoint temp2 ;
19562 wxSize temp3 ;
19563 PyObject * obj0 = 0 ;
19564 PyObject * obj1 = 0 ;
19565 PyObject * obj2 = 0 ;
19566 char * kwnames[] = {
19567 (char *) "self",(char *) "pt",(char *) "sz", NULL
19568 };
19569
19570 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19571 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19572 if (!SWIG_IsOK(res1)) {
19573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19574 }
19575 arg1 = reinterpret_cast< wxDC * >(argp1);
19576 {
19577 arg2 = &temp2;
19578 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19579 }
19580 {
19581 arg3 = &temp3;
19582 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19583 }
19584 {
19585 PyThreadState* __tstate = wxPyBeginAllowThreads();
19586 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
19587 wxPyEndAllowThreads(__tstate);
19588 if (PyErr_Occurred()) SWIG_fail;
19589 }
19590 resultobj = SWIG_Py_Void();
19591 return resultobj;
19592 fail:
19593 return NULL;
19594 }
19595
19596
19597 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19598 PyObject *resultobj = 0;
19599 wxDC *arg1 = (wxDC *) 0 ;
19600 wxRegion *arg2 = 0 ;
19601 void *argp1 = 0 ;
19602 int res1 = 0 ;
19603 void *argp2 = 0 ;
19604 int res2 = 0 ;
19605 PyObject * obj0 = 0 ;
19606 PyObject * obj1 = 0 ;
19607 char * kwnames[] = {
19608 (char *) "self",(char *) "region", NULL
19609 };
19610
19611 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
19612 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19613 if (!SWIG_IsOK(res1)) {
19614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19615 }
19616 arg1 = reinterpret_cast< wxDC * >(argp1);
19617 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
19618 if (!SWIG_IsOK(res2)) {
19619 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
19620 }
19621 if (!argp2) {
19622 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
19623 }
19624 arg2 = reinterpret_cast< wxRegion * >(argp2);
19625 {
19626 PyThreadState* __tstate = wxPyBeginAllowThreads();
19627 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
19628 wxPyEndAllowThreads(__tstate);
19629 if (PyErr_Occurred()) SWIG_fail;
19630 }
19631 resultobj = SWIG_Py_Void();
19632 return resultobj;
19633 fail:
19634 return NULL;
19635 }
19636
19637
19638 SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19639 PyObject *resultobj = 0;
19640 wxDC *arg1 = (wxDC *) 0 ;
19641 wxRect *arg2 = 0 ;
19642 void *argp1 = 0 ;
19643 int res1 = 0 ;
19644 wxRect temp2 ;
19645 PyObject * obj0 = 0 ;
19646 PyObject * obj1 = 0 ;
19647 char * kwnames[] = {
19648 (char *) "self",(char *) "rect", NULL
19649 };
19650
19651 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
19652 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19653 if (!SWIG_IsOK(res1)) {
19654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
19655 }
19656 arg1 = reinterpret_cast< wxDC * >(argp1);
19657 {
19658 arg2 = &temp2;
19659 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19660 }
19661 {
19662 PyThreadState* __tstate = wxPyBeginAllowThreads();
19663 (arg1)->SetClippingRegion((wxRect const &)*arg2);
19664 wxPyEndAllowThreads(__tstate);
19665 if (PyErr_Occurred()) SWIG_fail;
19666 }
19667 resultobj = SWIG_Py_Void();
19668 return resultobj;
19669 fail:
19670 return NULL;
19671 }
19672
19673
19674 SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19675 PyObject *resultobj = 0;
19676 wxDC *arg1 = (wxDC *) 0 ;
19677 int arg2 ;
19678 wxPoint *arg3 = (wxPoint *) 0 ;
19679 int arg4 = (int) 0 ;
19680 int arg5 = (int) 0 ;
19681 void *argp1 = 0 ;
19682 int res1 = 0 ;
19683 int val4 ;
19684 int ecode4 = 0 ;
19685 int val5 ;
19686 int ecode5 = 0 ;
19687 PyObject * obj0 = 0 ;
19688 PyObject * obj1 = 0 ;
19689 PyObject * obj2 = 0 ;
19690 PyObject * obj3 = 0 ;
19691 char * kwnames[] = {
19692 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
19693 };
19694
19695 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19696 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19697 if (!SWIG_IsOK(res1)) {
19698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
19699 }
19700 arg1 = reinterpret_cast< wxDC * >(argp1);
19701 {
19702 arg3 = wxPoint_LIST_helper(obj1, &arg2);
19703 if (arg3 == NULL) SWIG_fail;
19704 }
19705 if (obj2) {
19706 ecode4 = SWIG_AsVal_int(obj2, &val4);
19707 if (!SWIG_IsOK(ecode4)) {
19708 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
19709 }
19710 arg4 = static_cast< int >(val4);
19711 }
19712 if (obj3) {
19713 ecode5 = SWIG_AsVal_int(obj3, &val5);
19714 if (!SWIG_IsOK(ecode5)) {
19715 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
19716 }
19717 arg5 = static_cast< int >(val5);
19718 }
19719 {
19720 PyThreadState* __tstate = wxPyBeginAllowThreads();
19721 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
19722 wxPyEndAllowThreads(__tstate);
19723 if (PyErr_Occurred()) SWIG_fail;
19724 }
19725 resultobj = SWIG_Py_Void();
19726 {
19727 if (arg3) delete [] arg3;
19728 }
19729 return resultobj;
19730 fail:
19731 {
19732 if (arg3) delete [] arg3;
19733 }
19734 return NULL;
19735 }
19736
19737
19738 SWIGINTERN PyObject *_wrap_DC_DrawPolygon(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 int arg4 = (int) 0 ;
19744 int arg5 = (int) 0 ;
19745 int arg6 = (int) wxODDEVEN_RULE ;
19746 void *argp1 = 0 ;
19747 int res1 = 0 ;
19748 int val4 ;
19749 int ecode4 = 0 ;
19750 int val5 ;
19751 int ecode5 = 0 ;
19752 int val6 ;
19753 int ecode6 = 0 ;
19754 PyObject * obj0 = 0 ;
19755 PyObject * obj1 = 0 ;
19756 PyObject * obj2 = 0 ;
19757 PyObject * obj3 = 0 ;
19758 PyObject * obj4 = 0 ;
19759 char * kwnames[] = {
19760 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
19761 };
19762
19763 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19764 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19765 if (!SWIG_IsOK(res1)) {
19766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
19767 }
19768 arg1 = reinterpret_cast< wxDC * >(argp1);
19769 {
19770 arg3 = wxPoint_LIST_helper(obj1, &arg2);
19771 if (arg3 == NULL) SWIG_fail;
19772 }
19773 if (obj2) {
19774 ecode4 = SWIG_AsVal_int(obj2, &val4);
19775 if (!SWIG_IsOK(ecode4)) {
19776 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
19777 }
19778 arg4 = static_cast< int >(val4);
19779 }
19780 if (obj3) {
19781 ecode5 = SWIG_AsVal_int(obj3, &val5);
19782 if (!SWIG_IsOK(ecode5)) {
19783 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
19784 }
19785 arg5 = static_cast< int >(val5);
19786 }
19787 if (obj4) {
19788 ecode6 = SWIG_AsVal_int(obj4, &val6);
19789 if (!SWIG_IsOK(ecode6)) {
19790 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
19791 }
19792 arg6 = static_cast< int >(val6);
19793 }
19794 {
19795 PyThreadState* __tstate = wxPyBeginAllowThreads();
19796 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
19797 wxPyEndAllowThreads(__tstate);
19798 if (PyErr_Occurred()) SWIG_fail;
19799 }
19800 resultobj = SWIG_Py_Void();
19801 {
19802 if (arg3) delete [] arg3;
19803 }
19804 return resultobj;
19805 fail:
19806 {
19807 if (arg3) delete [] arg3;
19808 }
19809 return NULL;
19810 }
19811
19812
19813 SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19814 PyObject *resultobj = 0;
19815 wxDC *arg1 = (wxDC *) 0 ;
19816 wxString *arg2 = 0 ;
19817 wxRect *arg3 = 0 ;
19818 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
19819 int arg5 = (int) -1 ;
19820 void *argp1 = 0 ;
19821 int res1 = 0 ;
19822 bool temp2 = false ;
19823 wxRect temp3 ;
19824 int val4 ;
19825 int ecode4 = 0 ;
19826 int val5 ;
19827 int ecode5 = 0 ;
19828 PyObject * obj0 = 0 ;
19829 PyObject * obj1 = 0 ;
19830 PyObject * obj2 = 0 ;
19831 PyObject * obj3 = 0 ;
19832 PyObject * obj4 = 0 ;
19833 char * kwnames[] = {
19834 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
19835 };
19836
19837 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19838 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19839 if (!SWIG_IsOK(res1)) {
19840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
19841 }
19842 arg1 = reinterpret_cast< wxDC * >(argp1);
19843 {
19844 arg2 = wxString_in_helper(obj1);
19845 if (arg2 == NULL) SWIG_fail;
19846 temp2 = true;
19847 }
19848 {
19849 arg3 = &temp3;
19850 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
19851 }
19852 if (obj3) {
19853 ecode4 = SWIG_AsVal_int(obj3, &val4);
19854 if (!SWIG_IsOK(ecode4)) {
19855 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
19856 }
19857 arg4 = static_cast< int >(val4);
19858 }
19859 if (obj4) {
19860 ecode5 = SWIG_AsVal_int(obj4, &val5);
19861 if (!SWIG_IsOK(ecode5)) {
19862 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
19863 }
19864 arg5 = static_cast< int >(val5);
19865 }
19866 {
19867 PyThreadState* __tstate = wxPyBeginAllowThreads();
19868 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
19869 wxPyEndAllowThreads(__tstate);
19870 if (PyErr_Occurred()) SWIG_fail;
19871 }
19872 resultobj = SWIG_Py_Void();
19873 {
19874 if (temp2)
19875 delete arg2;
19876 }
19877 return resultobj;
19878 fail:
19879 {
19880 if (temp2)
19881 delete arg2;
19882 }
19883 return NULL;
19884 }
19885
19886
19887 SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19888 PyObject *resultobj = 0;
19889 wxDC *arg1 = (wxDC *) 0 ;
19890 wxString *arg2 = 0 ;
19891 wxBitmap *arg3 = 0 ;
19892 wxRect *arg4 = 0 ;
19893 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
19894 int arg6 = (int) -1 ;
19895 wxRect result;
19896 void *argp1 = 0 ;
19897 int res1 = 0 ;
19898 bool temp2 = false ;
19899 void *argp3 = 0 ;
19900 int res3 = 0 ;
19901 wxRect temp4 ;
19902 int val5 ;
19903 int ecode5 = 0 ;
19904 int val6 ;
19905 int ecode6 = 0 ;
19906 PyObject * obj0 = 0 ;
19907 PyObject * obj1 = 0 ;
19908 PyObject * obj2 = 0 ;
19909 PyObject * obj3 = 0 ;
19910 PyObject * obj4 = 0 ;
19911 PyObject * obj5 = 0 ;
19912 char * kwnames[] = {
19913 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
19914 };
19915
19916 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
19917 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19918 if (!SWIG_IsOK(res1)) {
19919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
19920 }
19921 arg1 = reinterpret_cast< wxDC * >(argp1);
19922 {
19923 arg2 = wxString_in_helper(obj1);
19924 if (arg2 == NULL) SWIG_fail;
19925 temp2 = true;
19926 }
19927 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
19928 if (!SWIG_IsOK(res3)) {
19929 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
19930 }
19931 if (!argp3) {
19932 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
19933 }
19934 arg3 = reinterpret_cast< wxBitmap * >(argp3);
19935 {
19936 arg4 = &temp4;
19937 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
19938 }
19939 if (obj4) {
19940 ecode5 = SWIG_AsVal_int(obj4, &val5);
19941 if (!SWIG_IsOK(ecode5)) {
19942 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
19943 }
19944 arg5 = static_cast< int >(val5);
19945 }
19946 if (obj5) {
19947 ecode6 = SWIG_AsVal_int(obj5, &val6);
19948 if (!SWIG_IsOK(ecode6)) {
19949 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
19950 }
19951 arg6 = static_cast< int >(val6);
19952 }
19953 {
19954 PyThreadState* __tstate = wxPyBeginAllowThreads();
19955 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
19956 wxPyEndAllowThreads(__tstate);
19957 if (PyErr_Occurred()) SWIG_fail;
19958 }
19959 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
19960 {
19961 if (temp2)
19962 delete arg2;
19963 }
19964 return resultobj;
19965 fail:
19966 {
19967 if (temp2)
19968 delete arg2;
19969 }
19970 return NULL;
19971 }
19972
19973
19974 SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19975 PyObject *resultobj = 0;
19976 wxDC *arg1 = (wxDC *) 0 ;
19977 int arg2 ;
19978 wxPoint *arg3 = (wxPoint *) 0 ;
19979 void *argp1 = 0 ;
19980 int res1 = 0 ;
19981 PyObject * obj0 = 0 ;
19982 PyObject * obj1 = 0 ;
19983 char * kwnames[] = {
19984 (char *) "self",(char *) "points", NULL
19985 };
19986
19987 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
19988 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19989 if (!SWIG_IsOK(res1)) {
19990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
19991 }
19992 arg1 = reinterpret_cast< wxDC * >(argp1);
19993 {
19994 arg3 = wxPoint_LIST_helper(obj1, &arg2);
19995 if (arg3 == NULL) SWIG_fail;
19996 }
19997 {
19998 PyThreadState* __tstate = wxPyBeginAllowThreads();
19999 (arg1)->DrawSpline(arg2,arg3);
20000 wxPyEndAllowThreads(__tstate);
20001 if (PyErr_Occurred()) SWIG_fail;
20002 }
20003 resultobj = SWIG_Py_Void();
20004 {
20005 if (arg3) delete [] arg3;
20006 }
20007 return resultobj;
20008 fail:
20009 {
20010 if (arg3) delete [] arg3;
20011 }
20012 return NULL;
20013 }
20014
20015
20016 SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20017 PyObject *resultobj = 0;
20018 wxDC *arg1 = (wxDC *) 0 ;
20019 void *argp1 = 0 ;
20020 int res1 = 0 ;
20021 PyObject *swig_obj[1] ;
20022
20023 if (!args) SWIG_fail;
20024 swig_obj[0] = args;
20025 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20026 if (!SWIG_IsOK(res1)) {
20027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
20028 }
20029 arg1 = reinterpret_cast< wxDC * >(argp1);
20030 {
20031 PyThreadState* __tstate = wxPyBeginAllowThreads();
20032 (arg1)->Clear();
20033 wxPyEndAllowThreads(__tstate);
20034 if (PyErr_Occurred()) SWIG_fail;
20035 }
20036 resultobj = SWIG_Py_Void();
20037 return resultobj;
20038 fail:
20039 return NULL;
20040 }
20041
20042
20043 SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20044 PyObject *resultobj = 0;
20045 wxDC *arg1 = (wxDC *) 0 ;
20046 wxString *arg2 = 0 ;
20047 bool result;
20048 void *argp1 = 0 ;
20049 int res1 = 0 ;
20050 bool temp2 = false ;
20051 PyObject * obj0 = 0 ;
20052 PyObject * obj1 = 0 ;
20053 char * kwnames[] = {
20054 (char *) "self",(char *) "message", NULL
20055 };
20056
20057 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
20058 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20059 if (!SWIG_IsOK(res1)) {
20060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20061 }
20062 arg1 = reinterpret_cast< wxDC * >(argp1);
20063 {
20064 arg2 = wxString_in_helper(obj1);
20065 if (arg2 == NULL) SWIG_fail;
20066 temp2 = true;
20067 }
20068 {
20069 PyThreadState* __tstate = wxPyBeginAllowThreads();
20070 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
20071 wxPyEndAllowThreads(__tstate);
20072 if (PyErr_Occurred()) SWIG_fail;
20073 }
20074 {
20075 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20076 }
20077 {
20078 if (temp2)
20079 delete arg2;
20080 }
20081 return resultobj;
20082 fail:
20083 {
20084 if (temp2)
20085 delete arg2;
20086 }
20087 return NULL;
20088 }
20089
20090
20091 SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20092 PyObject *resultobj = 0;
20093 wxDC *arg1 = (wxDC *) 0 ;
20094 void *argp1 = 0 ;
20095 int res1 = 0 ;
20096 PyObject *swig_obj[1] ;
20097
20098 if (!args) SWIG_fail;
20099 swig_obj[0] = args;
20100 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20101 if (!SWIG_IsOK(res1)) {
20102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20103 }
20104 arg1 = reinterpret_cast< wxDC * >(argp1);
20105 {
20106 PyThreadState* __tstate = wxPyBeginAllowThreads();
20107 (arg1)->EndDoc();
20108 wxPyEndAllowThreads(__tstate);
20109 if (PyErr_Occurred()) SWIG_fail;
20110 }
20111 resultobj = SWIG_Py_Void();
20112 return resultobj;
20113 fail:
20114 return NULL;
20115 }
20116
20117
20118 SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20119 PyObject *resultobj = 0;
20120 wxDC *arg1 = (wxDC *) 0 ;
20121 void *argp1 = 0 ;
20122 int res1 = 0 ;
20123 PyObject *swig_obj[1] ;
20124
20125 if (!args) SWIG_fail;
20126 swig_obj[0] = args;
20127 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20128 if (!SWIG_IsOK(res1)) {
20129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
20130 }
20131 arg1 = reinterpret_cast< wxDC * >(argp1);
20132 {
20133 PyThreadState* __tstate = wxPyBeginAllowThreads();
20134 (arg1)->StartPage();
20135 wxPyEndAllowThreads(__tstate);
20136 if (PyErr_Occurred()) SWIG_fail;
20137 }
20138 resultobj = SWIG_Py_Void();
20139 return resultobj;
20140 fail:
20141 return NULL;
20142 }
20143
20144
20145 SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20146 PyObject *resultobj = 0;
20147 wxDC *arg1 = (wxDC *) 0 ;
20148 void *argp1 = 0 ;
20149 int res1 = 0 ;
20150 PyObject *swig_obj[1] ;
20151
20152 if (!args) SWIG_fail;
20153 swig_obj[0] = args;
20154 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20155 if (!SWIG_IsOK(res1)) {
20156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
20157 }
20158 arg1 = reinterpret_cast< wxDC * >(argp1);
20159 {
20160 PyThreadState* __tstate = wxPyBeginAllowThreads();
20161 (arg1)->EndPage();
20162 wxPyEndAllowThreads(__tstate);
20163 if (PyErr_Occurred()) SWIG_fail;
20164 }
20165 resultobj = SWIG_Py_Void();
20166 return resultobj;
20167 fail:
20168 return NULL;
20169 }
20170
20171
20172 SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20173 PyObject *resultobj = 0;
20174 wxDC *arg1 = (wxDC *) 0 ;
20175 wxFont *arg2 = 0 ;
20176 void *argp1 = 0 ;
20177 int res1 = 0 ;
20178 void *argp2 = 0 ;
20179 int res2 = 0 ;
20180 PyObject * obj0 = 0 ;
20181 PyObject * obj1 = 0 ;
20182 char * kwnames[] = {
20183 (char *) "self",(char *) "font", NULL
20184 };
20185
20186 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
20187 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20188 if (!SWIG_IsOK(res1)) {
20189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
20190 }
20191 arg1 = reinterpret_cast< wxDC * >(argp1);
20192 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
20193 if (!SWIG_IsOK(res2)) {
20194 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20195 }
20196 if (!argp2) {
20197 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20198 }
20199 arg2 = reinterpret_cast< wxFont * >(argp2);
20200 {
20201 PyThreadState* __tstate = wxPyBeginAllowThreads();
20202 (arg1)->SetFont((wxFont const &)*arg2);
20203 wxPyEndAllowThreads(__tstate);
20204 if (PyErr_Occurred()) SWIG_fail;
20205 }
20206 resultobj = SWIG_Py_Void();
20207 return resultobj;
20208 fail:
20209 return NULL;
20210 }
20211
20212
20213 SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20214 PyObject *resultobj = 0;
20215 wxDC *arg1 = (wxDC *) 0 ;
20216 wxPen *arg2 = 0 ;
20217 void *argp1 = 0 ;
20218 int res1 = 0 ;
20219 void *argp2 = 0 ;
20220 int res2 = 0 ;
20221 PyObject * obj0 = 0 ;
20222 PyObject * obj1 = 0 ;
20223 char * kwnames[] = {
20224 (char *) "self",(char *) "pen", NULL
20225 };
20226
20227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
20228 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20229 if (!SWIG_IsOK(res1)) {
20230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
20231 }
20232 arg1 = reinterpret_cast< wxDC * >(argp1);
20233 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
20234 if (!SWIG_IsOK(res2)) {
20235 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20236 }
20237 if (!argp2) {
20238 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20239 }
20240 arg2 = reinterpret_cast< wxPen * >(argp2);
20241 {
20242 PyThreadState* __tstate = wxPyBeginAllowThreads();
20243 (arg1)->SetPen((wxPen const &)*arg2);
20244 wxPyEndAllowThreads(__tstate);
20245 if (PyErr_Occurred()) SWIG_fail;
20246 }
20247 resultobj = SWIG_Py_Void();
20248 return resultobj;
20249 fail:
20250 return NULL;
20251 }
20252
20253
20254 SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20255 PyObject *resultobj = 0;
20256 wxDC *arg1 = (wxDC *) 0 ;
20257 wxBrush *arg2 = 0 ;
20258 void *argp1 = 0 ;
20259 int res1 = 0 ;
20260 void *argp2 = 0 ;
20261 int res2 = 0 ;
20262 PyObject * obj0 = 0 ;
20263 PyObject * obj1 = 0 ;
20264 char * kwnames[] = {
20265 (char *) "self",(char *) "brush", NULL
20266 };
20267
20268 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
20269 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20270 if (!SWIG_IsOK(res1)) {
20271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
20272 }
20273 arg1 = reinterpret_cast< wxDC * >(argp1);
20274 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20275 if (!SWIG_IsOK(res2)) {
20276 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20277 }
20278 if (!argp2) {
20279 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20280 }
20281 arg2 = reinterpret_cast< wxBrush * >(argp2);
20282 {
20283 PyThreadState* __tstate = wxPyBeginAllowThreads();
20284 (arg1)->SetBrush((wxBrush const &)*arg2);
20285 wxPyEndAllowThreads(__tstate);
20286 if (PyErr_Occurred()) SWIG_fail;
20287 }
20288 resultobj = SWIG_Py_Void();
20289 return resultobj;
20290 fail:
20291 return NULL;
20292 }
20293
20294
20295 SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20296 PyObject *resultobj = 0;
20297 wxDC *arg1 = (wxDC *) 0 ;
20298 wxBrush *arg2 = 0 ;
20299 void *argp1 = 0 ;
20300 int res1 = 0 ;
20301 void *argp2 = 0 ;
20302 int res2 = 0 ;
20303 PyObject * obj0 = 0 ;
20304 PyObject * obj1 = 0 ;
20305 char * kwnames[] = {
20306 (char *) "self",(char *) "brush", NULL
20307 };
20308
20309 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
20310 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20311 if (!SWIG_IsOK(res1)) {
20312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
20313 }
20314 arg1 = reinterpret_cast< wxDC * >(argp1);
20315 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20316 if (!SWIG_IsOK(res2)) {
20317 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20318 }
20319 if (!argp2) {
20320 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20321 }
20322 arg2 = reinterpret_cast< wxBrush * >(argp2);
20323 {
20324 PyThreadState* __tstate = wxPyBeginAllowThreads();
20325 (arg1)->SetBackground((wxBrush const &)*arg2);
20326 wxPyEndAllowThreads(__tstate);
20327 if (PyErr_Occurred()) SWIG_fail;
20328 }
20329 resultobj = SWIG_Py_Void();
20330 return resultobj;
20331 fail:
20332 return NULL;
20333 }
20334
20335
20336 SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20337 PyObject *resultobj = 0;
20338 wxDC *arg1 = (wxDC *) 0 ;
20339 int arg2 ;
20340 void *argp1 = 0 ;
20341 int res1 = 0 ;
20342 int val2 ;
20343 int ecode2 = 0 ;
20344 PyObject * obj0 = 0 ;
20345 PyObject * obj1 = 0 ;
20346 char * kwnames[] = {
20347 (char *) "self",(char *) "mode", NULL
20348 };
20349
20350 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
20351 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20352 if (!SWIG_IsOK(res1)) {
20353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
20354 }
20355 arg1 = reinterpret_cast< wxDC * >(argp1);
20356 ecode2 = SWIG_AsVal_int(obj1, &val2);
20357 if (!SWIG_IsOK(ecode2)) {
20358 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
20359 }
20360 arg2 = static_cast< int >(val2);
20361 {
20362 PyThreadState* __tstate = wxPyBeginAllowThreads();
20363 (arg1)->SetBackgroundMode(arg2);
20364 wxPyEndAllowThreads(__tstate);
20365 if (PyErr_Occurred()) SWIG_fail;
20366 }
20367 resultobj = SWIG_Py_Void();
20368 return resultobj;
20369 fail:
20370 return NULL;
20371 }
20372
20373
20374 SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20375 PyObject *resultobj = 0;
20376 wxDC *arg1 = (wxDC *) 0 ;
20377 wxPalette *arg2 = 0 ;
20378 void *argp1 = 0 ;
20379 int res1 = 0 ;
20380 void *argp2 = 0 ;
20381 int res2 = 0 ;
20382 PyObject * obj0 = 0 ;
20383 PyObject * obj1 = 0 ;
20384 char * kwnames[] = {
20385 (char *) "self",(char *) "palette", NULL
20386 };
20387
20388 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
20389 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20390 if (!SWIG_IsOK(res1)) {
20391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
20392 }
20393 arg1 = reinterpret_cast< wxDC * >(argp1);
20394 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
20395 if (!SWIG_IsOK(res2)) {
20396 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20397 }
20398 if (!argp2) {
20399 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20400 }
20401 arg2 = reinterpret_cast< wxPalette * >(argp2);
20402 {
20403 PyThreadState* __tstate = wxPyBeginAllowThreads();
20404 (arg1)->SetPalette((wxPalette const &)*arg2);
20405 wxPyEndAllowThreads(__tstate);
20406 if (PyErr_Occurred()) SWIG_fail;
20407 }
20408 resultobj = SWIG_Py_Void();
20409 return resultobj;
20410 fail:
20411 return NULL;
20412 }
20413
20414
20415 SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20416 PyObject *resultobj = 0;
20417 wxDC *arg1 = (wxDC *) 0 ;
20418 void *argp1 = 0 ;
20419 int res1 = 0 ;
20420 PyObject *swig_obj[1] ;
20421
20422 if (!args) SWIG_fail;
20423 swig_obj[0] = args;
20424 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20425 if (!SWIG_IsOK(res1)) {
20426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20427 }
20428 arg1 = reinterpret_cast< wxDC * >(argp1);
20429 {
20430 PyThreadState* __tstate = wxPyBeginAllowThreads();
20431 (arg1)->DestroyClippingRegion();
20432 wxPyEndAllowThreads(__tstate);
20433 if (PyErr_Occurred()) SWIG_fail;
20434 }
20435 resultobj = SWIG_Py_Void();
20436 return resultobj;
20437 fail:
20438 return NULL;
20439 }
20440
20441
20442 SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20443 PyObject *resultobj = 0;
20444 wxDC *arg1 = (wxDC *) 0 ;
20445 int *arg2 = (int *) 0 ;
20446 int *arg3 = (int *) 0 ;
20447 int *arg4 = (int *) 0 ;
20448 int *arg5 = (int *) 0 ;
20449 void *argp1 = 0 ;
20450 int res1 = 0 ;
20451 int temp2 ;
20452 int res2 = SWIG_TMPOBJ ;
20453 int temp3 ;
20454 int res3 = SWIG_TMPOBJ ;
20455 int temp4 ;
20456 int res4 = SWIG_TMPOBJ ;
20457 int temp5 ;
20458 int res5 = SWIG_TMPOBJ ;
20459 PyObject *swig_obj[1] ;
20460
20461 arg2 = &temp2;
20462 arg3 = &temp3;
20463 arg4 = &temp4;
20464 arg5 = &temp5;
20465 if (!args) SWIG_fail;
20466 swig_obj[0] = args;
20467 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20468 if (!SWIG_IsOK(res1)) {
20469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
20470 }
20471 arg1 = reinterpret_cast< wxDC * >(argp1);
20472 {
20473 PyThreadState* __tstate = wxPyBeginAllowThreads();
20474 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
20475 wxPyEndAllowThreads(__tstate);
20476 if (PyErr_Occurred()) SWIG_fail;
20477 }
20478 resultobj = SWIG_Py_Void();
20479 if (SWIG_IsTmpObj(res2)) {
20480 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20481 } else {
20482 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20483 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20484 }
20485 if (SWIG_IsTmpObj(res3)) {
20486 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20487 } else {
20488 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20489 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20490 }
20491 if (SWIG_IsTmpObj(res4)) {
20492 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20493 } else {
20494 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20495 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20496 }
20497 if (SWIG_IsTmpObj(res5)) {
20498 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20499 } else {
20500 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20501 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20502 }
20503 return resultobj;
20504 fail:
20505 return NULL;
20506 }
20507
20508
20509 SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20510 PyObject *resultobj = 0;
20511 wxDC *arg1 = (wxDC *) 0 ;
20512 wxRect result;
20513 void *argp1 = 0 ;
20514 int res1 = 0 ;
20515 PyObject *swig_obj[1] ;
20516
20517 if (!args) SWIG_fail;
20518 swig_obj[0] = args;
20519 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20520 if (!SWIG_IsOK(res1)) {
20521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20522 }
20523 arg1 = reinterpret_cast< wxDC * >(argp1);
20524 {
20525 PyThreadState* __tstate = wxPyBeginAllowThreads();
20526 result = wxDC_GetClippingRect(arg1);
20527 wxPyEndAllowThreads(__tstate);
20528 if (PyErr_Occurred()) SWIG_fail;
20529 }
20530 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20531 return resultobj;
20532 fail:
20533 return NULL;
20534 }
20535
20536
20537 SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20538 PyObject *resultobj = 0;
20539 wxDC *arg1 = (wxDC *) 0 ;
20540 int result;
20541 void *argp1 = 0 ;
20542 int res1 = 0 ;
20543 PyObject *swig_obj[1] ;
20544
20545 if (!args) SWIG_fail;
20546 swig_obj[0] = args;
20547 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20548 if (!SWIG_IsOK(res1)) {
20549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
20550 }
20551 arg1 = reinterpret_cast< wxDC * >(argp1);
20552 {
20553 PyThreadState* __tstate = wxPyBeginAllowThreads();
20554 result = (int)((wxDC const *)arg1)->GetCharHeight();
20555 wxPyEndAllowThreads(__tstate);
20556 if (PyErr_Occurred()) SWIG_fail;
20557 }
20558 resultobj = SWIG_From_int(static_cast< int >(result));
20559 return resultobj;
20560 fail:
20561 return NULL;
20562 }
20563
20564
20565 SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20566 PyObject *resultobj = 0;
20567 wxDC *arg1 = (wxDC *) 0 ;
20568 int result;
20569 void *argp1 = 0 ;
20570 int res1 = 0 ;
20571 PyObject *swig_obj[1] ;
20572
20573 if (!args) SWIG_fail;
20574 swig_obj[0] = args;
20575 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20576 if (!SWIG_IsOK(res1)) {
20577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
20578 }
20579 arg1 = reinterpret_cast< wxDC * >(argp1);
20580 {
20581 PyThreadState* __tstate = wxPyBeginAllowThreads();
20582 result = (int)((wxDC const *)arg1)->GetCharWidth();
20583 wxPyEndAllowThreads(__tstate);
20584 if (PyErr_Occurred()) SWIG_fail;
20585 }
20586 resultobj = SWIG_From_int(static_cast< int >(result));
20587 return resultobj;
20588 fail:
20589 return NULL;
20590 }
20591
20592
20593 SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20594 PyObject *resultobj = 0;
20595 wxDC *arg1 = (wxDC *) 0 ;
20596 wxString *arg2 = 0 ;
20597 int *arg3 = (int *) 0 ;
20598 int *arg4 = (int *) 0 ;
20599 void *argp1 = 0 ;
20600 int res1 = 0 ;
20601 bool temp2 = false ;
20602 int temp3 ;
20603 int res3 = SWIG_TMPOBJ ;
20604 int temp4 ;
20605 int res4 = SWIG_TMPOBJ ;
20606 PyObject * obj0 = 0 ;
20607 PyObject * obj1 = 0 ;
20608 char * kwnames[] = {
20609 (char *) "self",(char *) "string", NULL
20610 };
20611
20612 arg3 = &temp3;
20613 arg4 = &temp4;
20614 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
20615 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20616 if (!SWIG_IsOK(res1)) {
20617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20618 }
20619 arg1 = reinterpret_cast< wxDC * >(argp1);
20620 {
20621 arg2 = wxString_in_helper(obj1);
20622 if (arg2 == NULL) SWIG_fail;
20623 temp2 = true;
20624 }
20625 {
20626 PyThreadState* __tstate = wxPyBeginAllowThreads();
20627 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
20628 wxPyEndAllowThreads(__tstate);
20629 if (PyErr_Occurred()) SWIG_fail;
20630 }
20631 resultobj = SWIG_Py_Void();
20632 if (SWIG_IsTmpObj(res3)) {
20633 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20634 } else {
20635 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20636 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20637 }
20638 if (SWIG_IsTmpObj(res4)) {
20639 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20640 } else {
20641 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20642 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
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_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20659 PyObject *resultobj = 0;
20660 wxDC *arg1 = (wxDC *) 0 ;
20661 wxString *arg2 = 0 ;
20662 int *arg3 = (int *) 0 ;
20663 int *arg4 = (int *) 0 ;
20664 int *arg5 = (int *) 0 ;
20665 int *arg6 = (int *) 0 ;
20666 wxFont *arg7 = (wxFont *) NULL ;
20667 void *argp1 = 0 ;
20668 int res1 = 0 ;
20669 bool temp2 = false ;
20670 int temp3 ;
20671 int res3 = SWIG_TMPOBJ ;
20672 int temp4 ;
20673 int res4 = SWIG_TMPOBJ ;
20674 int temp5 ;
20675 int res5 = SWIG_TMPOBJ ;
20676 int temp6 ;
20677 int res6 = SWIG_TMPOBJ ;
20678 void *argp7 = 0 ;
20679 int res7 = 0 ;
20680 PyObject * obj0 = 0 ;
20681 PyObject * obj1 = 0 ;
20682 PyObject * obj2 = 0 ;
20683 char * kwnames[] = {
20684 (char *) "self",(char *) "string",(char *) "font", NULL
20685 };
20686
20687 arg3 = &temp3;
20688 arg4 = &temp4;
20689 arg5 = &temp5;
20690 arg6 = &temp6;
20691 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20692 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20693 if (!SWIG_IsOK(res1)) {
20694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20695 }
20696 arg1 = reinterpret_cast< wxDC * >(argp1);
20697 {
20698 arg2 = wxString_in_helper(obj1);
20699 if (arg2 == NULL) SWIG_fail;
20700 temp2 = true;
20701 }
20702 if (obj2) {
20703 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
20704 if (!SWIG_IsOK(res7)) {
20705 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
20706 }
20707 arg7 = reinterpret_cast< wxFont * >(argp7);
20708 }
20709 {
20710 PyThreadState* __tstate = wxPyBeginAllowThreads();
20711 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
20712 wxPyEndAllowThreads(__tstate);
20713 if (PyErr_Occurred()) SWIG_fail;
20714 }
20715 resultobj = SWIG_Py_Void();
20716 if (SWIG_IsTmpObj(res3)) {
20717 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20718 } else {
20719 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20720 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20721 }
20722 if (SWIG_IsTmpObj(res4)) {
20723 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20724 } else {
20725 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20726 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20727 }
20728 if (SWIG_IsTmpObj(res5)) {
20729 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20730 } else {
20731 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20732 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20733 }
20734 if (SWIG_IsTmpObj(res6)) {
20735 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
20736 } else {
20737 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20738 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
20739 }
20740 {
20741 if (temp2)
20742 delete arg2;
20743 }
20744 return resultobj;
20745 fail:
20746 {
20747 if (temp2)
20748 delete arg2;
20749 }
20750 return NULL;
20751 }
20752
20753
20754 SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20755 PyObject *resultobj = 0;
20756 wxDC *arg1 = (wxDC *) 0 ;
20757 wxString *arg2 = 0 ;
20758 int *arg3 = (int *) 0 ;
20759 int *arg4 = (int *) 0 ;
20760 int *arg5 = (int *) 0 ;
20761 wxFont *arg6 = (wxFont *) NULL ;
20762 void *argp1 = 0 ;
20763 int res1 = 0 ;
20764 bool temp2 = false ;
20765 int temp3 ;
20766 int res3 = SWIG_TMPOBJ ;
20767 int temp4 ;
20768 int res4 = SWIG_TMPOBJ ;
20769 int temp5 ;
20770 int res5 = SWIG_TMPOBJ ;
20771 void *argp6 = 0 ;
20772 int res6 = 0 ;
20773 PyObject * obj0 = 0 ;
20774 PyObject * obj1 = 0 ;
20775 PyObject * obj2 = 0 ;
20776 char * kwnames[] = {
20777 (char *) "self",(char *) "text",(char *) "font", NULL
20778 };
20779
20780 arg3 = &temp3;
20781 arg4 = &temp4;
20782 arg5 = &temp5;
20783 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20784 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20785 if (!SWIG_IsOK(res1)) {
20786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20787 }
20788 arg1 = reinterpret_cast< wxDC * >(argp1);
20789 {
20790 arg2 = wxString_in_helper(obj1);
20791 if (arg2 == NULL) SWIG_fail;
20792 temp2 = true;
20793 }
20794 if (obj2) {
20795 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
20796 if (!SWIG_IsOK(res6)) {
20797 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
20798 }
20799 arg6 = reinterpret_cast< wxFont * >(argp6);
20800 }
20801 {
20802 PyThreadState* __tstate = wxPyBeginAllowThreads();
20803 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
20804 wxPyEndAllowThreads(__tstate);
20805 if (PyErr_Occurred()) SWIG_fail;
20806 }
20807 resultobj = SWIG_Py_Void();
20808 if (SWIG_IsTmpObj(res3)) {
20809 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20810 } else {
20811 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20812 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20813 }
20814 if (SWIG_IsTmpObj(res4)) {
20815 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20816 } else {
20817 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20818 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20819 }
20820 if (SWIG_IsTmpObj(res5)) {
20821 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20822 } else {
20823 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20824 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20825 }
20826 {
20827 if (temp2)
20828 delete arg2;
20829 }
20830 return resultobj;
20831 fail:
20832 {
20833 if (temp2)
20834 delete arg2;
20835 }
20836 return NULL;
20837 }
20838
20839
20840 SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20841 PyObject *resultobj = 0;
20842 wxDC *arg1 = (wxDC *) 0 ;
20843 wxString *arg2 = 0 ;
20844 wxArrayInt result;
20845 void *argp1 = 0 ;
20846 int res1 = 0 ;
20847 bool temp2 = false ;
20848 PyObject * obj0 = 0 ;
20849 PyObject * obj1 = 0 ;
20850 char * kwnames[] = {
20851 (char *) "self",(char *) "text", NULL
20852 };
20853
20854 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
20855 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20856 if (!SWIG_IsOK(res1)) {
20857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
20858 }
20859 arg1 = reinterpret_cast< wxDC * >(argp1);
20860 {
20861 arg2 = wxString_in_helper(obj1);
20862 if (arg2 == NULL) SWIG_fail;
20863 temp2 = true;
20864 }
20865 {
20866 PyThreadState* __tstate = wxPyBeginAllowThreads();
20867 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
20868 wxPyEndAllowThreads(__tstate);
20869 if (PyErr_Occurred()) SWIG_fail;
20870 }
20871 {
20872 resultobj = wxArrayInt2PyList_helper(result);
20873 }
20874 {
20875 if (temp2)
20876 delete arg2;
20877 }
20878 return resultobj;
20879 fail:
20880 {
20881 if (temp2)
20882 delete arg2;
20883 }
20884 return NULL;
20885 }
20886
20887
20888 SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20889 PyObject *resultobj = 0;
20890 wxDC *arg1 = (wxDC *) 0 ;
20891 wxSize result;
20892 void *argp1 = 0 ;
20893 int res1 = 0 ;
20894 PyObject *swig_obj[1] ;
20895
20896 if (!args) SWIG_fail;
20897 swig_obj[0] = args;
20898 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20899 if (!SWIG_IsOK(res1)) {
20900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
20901 }
20902 arg1 = reinterpret_cast< wxDC * >(argp1);
20903 {
20904 PyThreadState* __tstate = wxPyBeginAllowThreads();
20905 result = (arg1)->GetSize();
20906 wxPyEndAllowThreads(__tstate);
20907 if (PyErr_Occurred()) SWIG_fail;
20908 }
20909 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
20910 return resultobj;
20911 fail:
20912 return NULL;
20913 }
20914
20915
20916 SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20917 PyObject *resultobj = 0;
20918 wxDC *arg1 = (wxDC *) 0 ;
20919 int *arg2 = (int *) 0 ;
20920 int *arg3 = (int *) 0 ;
20921 void *argp1 = 0 ;
20922 int res1 = 0 ;
20923 int temp2 ;
20924 int res2 = SWIG_TMPOBJ ;
20925 int temp3 ;
20926 int res3 = SWIG_TMPOBJ ;
20927 PyObject *swig_obj[1] ;
20928
20929 arg2 = &temp2;
20930 arg3 = &temp3;
20931 if (!args) SWIG_fail;
20932 swig_obj[0] = args;
20933 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20934 if (!SWIG_IsOK(res1)) {
20935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
20936 }
20937 arg1 = reinterpret_cast< wxDC * >(argp1);
20938 {
20939 PyThreadState* __tstate = wxPyBeginAllowThreads();
20940 (arg1)->GetSize(arg2,arg3);
20941 wxPyEndAllowThreads(__tstate);
20942 if (PyErr_Occurred()) SWIG_fail;
20943 }
20944 resultobj = SWIG_Py_Void();
20945 if (SWIG_IsTmpObj(res2)) {
20946 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20947 } else {
20948 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20949 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20950 }
20951 if (SWIG_IsTmpObj(res3)) {
20952 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20953 } else {
20954 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20955 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20956 }
20957 return resultobj;
20958 fail:
20959 return NULL;
20960 }
20961
20962
20963 SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20964 PyObject *resultobj = 0;
20965 wxDC *arg1 = (wxDC *) 0 ;
20966 wxSize result;
20967 void *argp1 = 0 ;
20968 int res1 = 0 ;
20969 PyObject *swig_obj[1] ;
20970
20971 if (!args) SWIG_fail;
20972 swig_obj[0] = args;
20973 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20974 if (!SWIG_IsOK(res1)) {
20975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
20976 }
20977 arg1 = reinterpret_cast< wxDC * >(argp1);
20978 {
20979 PyThreadState* __tstate = wxPyBeginAllowThreads();
20980 result = ((wxDC const *)arg1)->GetSizeMM();
20981 wxPyEndAllowThreads(__tstate);
20982 if (PyErr_Occurred()) SWIG_fail;
20983 }
20984 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
20985 return resultobj;
20986 fail:
20987 return NULL;
20988 }
20989
20990
20991 SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20992 PyObject *resultobj = 0;
20993 wxDC *arg1 = (wxDC *) 0 ;
20994 int *arg2 = (int *) 0 ;
20995 int *arg3 = (int *) 0 ;
20996 void *argp1 = 0 ;
20997 int res1 = 0 ;
20998 int temp2 ;
20999 int res2 = SWIG_TMPOBJ ;
21000 int temp3 ;
21001 int res3 = SWIG_TMPOBJ ;
21002 PyObject *swig_obj[1] ;
21003
21004 arg2 = &temp2;
21005 arg3 = &temp3;
21006 if (!args) SWIG_fail;
21007 swig_obj[0] = args;
21008 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21009 if (!SWIG_IsOK(res1)) {
21010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
21011 }
21012 arg1 = reinterpret_cast< wxDC * >(argp1);
21013 {
21014 PyThreadState* __tstate = wxPyBeginAllowThreads();
21015 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
21016 wxPyEndAllowThreads(__tstate);
21017 if (PyErr_Occurred()) SWIG_fail;
21018 }
21019 resultobj = SWIG_Py_Void();
21020 if (SWIG_IsTmpObj(res2)) {
21021 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21022 } else {
21023 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21024 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21025 }
21026 if (SWIG_IsTmpObj(res3)) {
21027 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21028 } else {
21029 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21030 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21031 }
21032 return resultobj;
21033 fail:
21034 return NULL;
21035 }
21036
21037
21038 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21039 PyObject *resultobj = 0;
21040 wxDC *arg1 = (wxDC *) 0 ;
21041 int arg2 ;
21042 int result;
21043 void *argp1 = 0 ;
21044 int res1 = 0 ;
21045 int val2 ;
21046 int ecode2 = 0 ;
21047 PyObject * obj0 = 0 ;
21048 PyObject * obj1 = 0 ;
21049 char * kwnames[] = {
21050 (char *) "self",(char *) "x", NULL
21051 };
21052
21053 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
21054 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21055 if (!SWIG_IsOK(res1)) {
21056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
21057 }
21058 arg1 = reinterpret_cast< wxDC * >(argp1);
21059 ecode2 = SWIG_AsVal_int(obj1, &val2);
21060 if (!SWIG_IsOK(ecode2)) {
21061 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
21062 }
21063 arg2 = static_cast< int >(val2);
21064 {
21065 PyThreadState* __tstate = wxPyBeginAllowThreads();
21066 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
21067 wxPyEndAllowThreads(__tstate);
21068 if (PyErr_Occurred()) SWIG_fail;
21069 }
21070 resultobj = SWIG_From_int(static_cast< int >(result));
21071 return resultobj;
21072 fail:
21073 return NULL;
21074 }
21075
21076
21077 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21078 PyObject *resultobj = 0;
21079 wxDC *arg1 = (wxDC *) 0 ;
21080 int arg2 ;
21081 int result;
21082 void *argp1 = 0 ;
21083 int res1 = 0 ;
21084 int val2 ;
21085 int ecode2 = 0 ;
21086 PyObject * obj0 = 0 ;
21087 PyObject * obj1 = 0 ;
21088 char * kwnames[] = {
21089 (char *) "self",(char *) "y", NULL
21090 };
21091
21092 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
21093 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21094 if (!SWIG_IsOK(res1)) {
21095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
21096 }
21097 arg1 = reinterpret_cast< wxDC * >(argp1);
21098 ecode2 = SWIG_AsVal_int(obj1, &val2);
21099 if (!SWIG_IsOK(ecode2)) {
21100 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
21101 }
21102 arg2 = static_cast< int >(val2);
21103 {
21104 PyThreadState* __tstate = wxPyBeginAllowThreads();
21105 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
21106 wxPyEndAllowThreads(__tstate);
21107 if (PyErr_Occurred()) SWIG_fail;
21108 }
21109 resultobj = SWIG_From_int(static_cast< int >(result));
21110 return resultobj;
21111 fail:
21112 return NULL;
21113 }
21114
21115
21116 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21117 PyObject *resultobj = 0;
21118 wxDC *arg1 = (wxDC *) 0 ;
21119 int arg2 ;
21120 int result;
21121 void *argp1 = 0 ;
21122 int res1 = 0 ;
21123 int val2 ;
21124 int ecode2 = 0 ;
21125 PyObject * obj0 = 0 ;
21126 PyObject * obj1 = 0 ;
21127 char * kwnames[] = {
21128 (char *) "self",(char *) "x", NULL
21129 };
21130
21131 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21132 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21133 if (!SWIG_IsOK(res1)) {
21134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21135 }
21136 arg1 = reinterpret_cast< wxDC * >(argp1);
21137 ecode2 = SWIG_AsVal_int(obj1, &val2);
21138 if (!SWIG_IsOK(ecode2)) {
21139 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
21140 }
21141 arg2 = static_cast< int >(val2);
21142 {
21143 PyThreadState* __tstate = wxPyBeginAllowThreads();
21144 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
21145 wxPyEndAllowThreads(__tstate);
21146 if (PyErr_Occurred()) SWIG_fail;
21147 }
21148 resultobj = SWIG_From_int(static_cast< int >(result));
21149 return resultobj;
21150 fail:
21151 return NULL;
21152 }
21153
21154
21155 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21156 PyObject *resultobj = 0;
21157 wxDC *arg1 = (wxDC *) 0 ;
21158 int arg2 ;
21159 int result;
21160 void *argp1 = 0 ;
21161 int res1 = 0 ;
21162 int val2 ;
21163 int ecode2 = 0 ;
21164 PyObject * obj0 = 0 ;
21165 PyObject * obj1 = 0 ;
21166 char * kwnames[] = {
21167 (char *) "self",(char *) "y", NULL
21168 };
21169
21170 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21171 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21172 if (!SWIG_IsOK(res1)) {
21173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21174 }
21175 arg1 = reinterpret_cast< wxDC * >(argp1);
21176 ecode2 = SWIG_AsVal_int(obj1, &val2);
21177 if (!SWIG_IsOK(ecode2)) {
21178 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
21179 }
21180 arg2 = static_cast< int >(val2);
21181 {
21182 PyThreadState* __tstate = wxPyBeginAllowThreads();
21183 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
21184 wxPyEndAllowThreads(__tstate);
21185 if (PyErr_Occurred()) SWIG_fail;
21186 }
21187 resultobj = SWIG_From_int(static_cast< int >(result));
21188 return resultobj;
21189 fail:
21190 return NULL;
21191 }
21192
21193
21194 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21195 PyObject *resultobj = 0;
21196 wxDC *arg1 = (wxDC *) 0 ;
21197 int arg2 ;
21198 int result;
21199 void *argp1 = 0 ;
21200 int res1 = 0 ;
21201 int val2 ;
21202 int ecode2 = 0 ;
21203 PyObject * obj0 = 0 ;
21204 PyObject * obj1 = 0 ;
21205 char * kwnames[] = {
21206 (char *) "self",(char *) "x", NULL
21207 };
21208
21209 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
21210 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21211 if (!SWIG_IsOK(res1)) {
21212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
21213 }
21214 arg1 = reinterpret_cast< wxDC * >(argp1);
21215 ecode2 = SWIG_AsVal_int(obj1, &val2);
21216 if (!SWIG_IsOK(ecode2)) {
21217 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
21218 }
21219 arg2 = static_cast< int >(val2);
21220 {
21221 PyThreadState* __tstate = wxPyBeginAllowThreads();
21222 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
21223 wxPyEndAllowThreads(__tstate);
21224 if (PyErr_Occurred()) SWIG_fail;
21225 }
21226 resultobj = SWIG_From_int(static_cast< int >(result));
21227 return resultobj;
21228 fail:
21229 return NULL;
21230 }
21231
21232
21233 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21234 PyObject *resultobj = 0;
21235 wxDC *arg1 = (wxDC *) 0 ;
21236 int arg2 ;
21237 int result;
21238 void *argp1 = 0 ;
21239 int res1 = 0 ;
21240 int val2 ;
21241 int ecode2 = 0 ;
21242 PyObject * obj0 = 0 ;
21243 PyObject * obj1 = 0 ;
21244 char * kwnames[] = {
21245 (char *) "self",(char *) "y", NULL
21246 };
21247
21248 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
21249 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21250 if (!SWIG_IsOK(res1)) {
21251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
21252 }
21253 arg1 = reinterpret_cast< wxDC * >(argp1);
21254 ecode2 = SWIG_AsVal_int(obj1, &val2);
21255 if (!SWIG_IsOK(ecode2)) {
21256 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
21257 }
21258 arg2 = static_cast< int >(val2);
21259 {
21260 PyThreadState* __tstate = wxPyBeginAllowThreads();
21261 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
21262 wxPyEndAllowThreads(__tstate);
21263 if (PyErr_Occurred()) SWIG_fail;
21264 }
21265 resultobj = SWIG_From_int(static_cast< int >(result));
21266 return resultobj;
21267 fail:
21268 return NULL;
21269 }
21270
21271
21272 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21273 PyObject *resultobj = 0;
21274 wxDC *arg1 = (wxDC *) 0 ;
21275 int arg2 ;
21276 int result;
21277 void *argp1 = 0 ;
21278 int res1 = 0 ;
21279 int val2 ;
21280 int ecode2 = 0 ;
21281 PyObject * obj0 = 0 ;
21282 PyObject * obj1 = 0 ;
21283 char * kwnames[] = {
21284 (char *) "self",(char *) "x", NULL
21285 };
21286
21287 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21288 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21289 if (!SWIG_IsOK(res1)) {
21290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21291 }
21292 arg1 = reinterpret_cast< wxDC * >(argp1);
21293 ecode2 = SWIG_AsVal_int(obj1, &val2);
21294 if (!SWIG_IsOK(ecode2)) {
21295 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
21296 }
21297 arg2 = static_cast< int >(val2);
21298 {
21299 PyThreadState* __tstate = wxPyBeginAllowThreads();
21300 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
21301 wxPyEndAllowThreads(__tstate);
21302 if (PyErr_Occurred()) SWIG_fail;
21303 }
21304 resultobj = SWIG_From_int(static_cast< int >(result));
21305 return resultobj;
21306 fail:
21307 return NULL;
21308 }
21309
21310
21311 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21312 PyObject *resultobj = 0;
21313 wxDC *arg1 = (wxDC *) 0 ;
21314 int arg2 ;
21315 int result;
21316 void *argp1 = 0 ;
21317 int res1 = 0 ;
21318 int val2 ;
21319 int ecode2 = 0 ;
21320 PyObject * obj0 = 0 ;
21321 PyObject * obj1 = 0 ;
21322 char * kwnames[] = {
21323 (char *) "self",(char *) "y", NULL
21324 };
21325
21326 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21327 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21328 if (!SWIG_IsOK(res1)) {
21329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21330 }
21331 arg1 = reinterpret_cast< wxDC * >(argp1);
21332 ecode2 = SWIG_AsVal_int(obj1, &val2);
21333 if (!SWIG_IsOK(ecode2)) {
21334 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
21335 }
21336 arg2 = static_cast< int >(val2);
21337 {
21338 PyThreadState* __tstate = wxPyBeginAllowThreads();
21339 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
21340 wxPyEndAllowThreads(__tstate);
21341 if (PyErr_Occurred()) SWIG_fail;
21342 }
21343 resultobj = SWIG_From_int(static_cast< int >(result));
21344 return resultobj;
21345 fail:
21346 return NULL;
21347 }
21348
21349
21350 SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21351 PyObject *resultobj = 0;
21352 wxDC *arg1 = (wxDC *) 0 ;
21353 bool result;
21354 void *argp1 = 0 ;
21355 int res1 = 0 ;
21356 PyObject *swig_obj[1] ;
21357
21358 if (!args) SWIG_fail;
21359 swig_obj[0] = args;
21360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21361 if (!SWIG_IsOK(res1)) {
21362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
21363 }
21364 arg1 = reinterpret_cast< wxDC * >(argp1);
21365 {
21366 PyThreadState* __tstate = wxPyBeginAllowThreads();
21367 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
21368 wxPyEndAllowThreads(__tstate);
21369 if (PyErr_Occurred()) SWIG_fail;
21370 }
21371 {
21372 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21373 }
21374 return resultobj;
21375 fail:
21376 return NULL;
21377 }
21378
21379
21380 SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21381 PyObject *resultobj = 0;
21382 wxDC *arg1 = (wxDC *) 0 ;
21383 bool result;
21384 void *argp1 = 0 ;
21385 int res1 = 0 ;
21386 PyObject *swig_obj[1] ;
21387
21388 if (!args) SWIG_fail;
21389 swig_obj[0] = args;
21390 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21391 if (!SWIG_IsOK(res1)) {
21392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
21393 }
21394 arg1 = reinterpret_cast< wxDC * >(argp1);
21395 {
21396 PyThreadState* __tstate = wxPyBeginAllowThreads();
21397 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
21398 wxPyEndAllowThreads(__tstate);
21399 if (PyErr_Occurred()) SWIG_fail;
21400 }
21401 {
21402 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21403 }
21404 return resultobj;
21405 fail:
21406 return NULL;
21407 }
21408
21409
21410 SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21411 PyObject *resultobj = 0;
21412 wxDC *arg1 = (wxDC *) 0 ;
21413 int result;
21414 void *argp1 = 0 ;
21415 int res1 = 0 ;
21416 PyObject *swig_obj[1] ;
21417
21418 if (!args) SWIG_fail;
21419 swig_obj[0] = args;
21420 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21421 if (!SWIG_IsOK(res1)) {
21422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
21423 }
21424 arg1 = reinterpret_cast< wxDC * >(argp1);
21425 {
21426 PyThreadState* __tstate = wxPyBeginAllowThreads();
21427 result = (int)((wxDC const *)arg1)->GetDepth();
21428 wxPyEndAllowThreads(__tstate);
21429 if (PyErr_Occurred()) SWIG_fail;
21430 }
21431 resultobj = SWIG_From_int(static_cast< int >(result));
21432 return resultobj;
21433 fail:
21434 return NULL;
21435 }
21436
21437
21438 SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21439 PyObject *resultobj = 0;
21440 wxDC *arg1 = (wxDC *) 0 ;
21441 wxSize result;
21442 void *argp1 = 0 ;
21443 int res1 = 0 ;
21444 PyObject *swig_obj[1] ;
21445
21446 if (!args) SWIG_fail;
21447 swig_obj[0] = args;
21448 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21449 if (!SWIG_IsOK(res1)) {
21450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
21451 }
21452 arg1 = reinterpret_cast< wxDC * >(argp1);
21453 {
21454 PyThreadState* __tstate = wxPyBeginAllowThreads();
21455 result = ((wxDC const *)arg1)->GetPPI();
21456 wxPyEndAllowThreads(__tstate);
21457 if (PyErr_Occurred()) SWIG_fail;
21458 }
21459 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21460 return resultobj;
21461 fail:
21462 return NULL;
21463 }
21464
21465
21466 SWIGINTERN PyObject *_wrap_DC_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21467 PyObject *resultobj = 0;
21468 wxDC *arg1 = (wxDC *) 0 ;
21469 bool result;
21470 void *argp1 = 0 ;
21471 int res1 = 0 ;
21472 PyObject *swig_obj[1] ;
21473
21474 if (!args) SWIG_fail;
21475 swig_obj[0] = args;
21476 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21477 if (!SWIG_IsOK(res1)) {
21478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_IsOk" "', expected argument " "1"" of type '" "wxDC const *""'");
21479 }
21480 arg1 = reinterpret_cast< wxDC * >(argp1);
21481 {
21482 PyThreadState* __tstate = wxPyBeginAllowThreads();
21483 result = (bool)((wxDC const *)arg1)->IsOk();
21484 wxPyEndAllowThreads(__tstate);
21485 if (PyErr_Occurred()) SWIG_fail;
21486 }
21487 {
21488 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21489 }
21490 return resultobj;
21491 fail:
21492 return NULL;
21493 }
21494
21495
21496 SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21497 PyObject *resultobj = 0;
21498 wxDC *arg1 = (wxDC *) 0 ;
21499 int result;
21500 void *argp1 = 0 ;
21501 int res1 = 0 ;
21502 PyObject *swig_obj[1] ;
21503
21504 if (!args) SWIG_fail;
21505 swig_obj[0] = args;
21506 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21507 if (!SWIG_IsOK(res1)) {
21508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
21509 }
21510 arg1 = reinterpret_cast< wxDC * >(argp1);
21511 {
21512 PyThreadState* __tstate = wxPyBeginAllowThreads();
21513 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
21514 wxPyEndAllowThreads(__tstate);
21515 if (PyErr_Occurred()) SWIG_fail;
21516 }
21517 resultobj = SWIG_From_int(static_cast< int >(result));
21518 return resultobj;
21519 fail:
21520 return NULL;
21521 }
21522
21523
21524 SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21525 PyObject *resultobj = 0;
21526 wxDC *arg1 = (wxDC *) 0 ;
21527 wxBrush *result = 0 ;
21528 void *argp1 = 0 ;
21529 int res1 = 0 ;
21530 PyObject *swig_obj[1] ;
21531
21532 if (!args) SWIG_fail;
21533 swig_obj[0] = args;
21534 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21535 if (!SWIG_IsOK(res1)) {
21536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
21537 }
21538 arg1 = reinterpret_cast< wxDC * >(argp1);
21539 {
21540 PyThreadState* __tstate = wxPyBeginAllowThreads();
21541 {
21542 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
21543 result = (wxBrush *) &_result_ref;
21544 }
21545 wxPyEndAllowThreads(__tstate);
21546 if (PyErr_Occurred()) SWIG_fail;
21547 }
21548 {
21549 wxBrush* resultptr = new wxBrush(*result);
21550 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21551 }
21552 return resultobj;
21553 fail:
21554 return NULL;
21555 }
21556
21557
21558 SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21559 PyObject *resultobj = 0;
21560 wxDC *arg1 = (wxDC *) 0 ;
21561 wxBrush *result = 0 ;
21562 void *argp1 = 0 ;
21563 int res1 = 0 ;
21564 PyObject *swig_obj[1] ;
21565
21566 if (!args) SWIG_fail;
21567 swig_obj[0] = args;
21568 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21569 if (!SWIG_IsOK(res1)) {
21570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
21571 }
21572 arg1 = reinterpret_cast< wxDC * >(argp1);
21573 {
21574 PyThreadState* __tstate = wxPyBeginAllowThreads();
21575 {
21576 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
21577 result = (wxBrush *) &_result_ref;
21578 }
21579 wxPyEndAllowThreads(__tstate);
21580 if (PyErr_Occurred()) SWIG_fail;
21581 }
21582 {
21583 wxBrush* resultptr = new wxBrush(*result);
21584 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21585 }
21586 return resultobj;
21587 fail:
21588 return NULL;
21589 }
21590
21591
21592 SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21593 PyObject *resultobj = 0;
21594 wxDC *arg1 = (wxDC *) 0 ;
21595 wxFont *result = 0 ;
21596 void *argp1 = 0 ;
21597 int res1 = 0 ;
21598 PyObject *swig_obj[1] ;
21599
21600 if (!args) SWIG_fail;
21601 swig_obj[0] = args;
21602 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21603 if (!SWIG_IsOK(res1)) {
21604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
21605 }
21606 arg1 = reinterpret_cast< wxDC * >(argp1);
21607 {
21608 PyThreadState* __tstate = wxPyBeginAllowThreads();
21609 {
21610 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
21611 result = (wxFont *) &_result_ref;
21612 }
21613 wxPyEndAllowThreads(__tstate);
21614 if (PyErr_Occurred()) SWIG_fail;
21615 }
21616 {
21617 wxFont* resultptr = new wxFont(*result);
21618 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
21619 }
21620 return resultobj;
21621 fail:
21622 return NULL;
21623 }
21624
21625
21626 SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21627 PyObject *resultobj = 0;
21628 wxDC *arg1 = (wxDC *) 0 ;
21629 wxPen *result = 0 ;
21630 void *argp1 = 0 ;
21631 int res1 = 0 ;
21632 PyObject *swig_obj[1] ;
21633
21634 if (!args) SWIG_fail;
21635 swig_obj[0] = args;
21636 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21637 if (!SWIG_IsOK(res1)) {
21638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
21639 }
21640 arg1 = reinterpret_cast< wxDC * >(argp1);
21641 {
21642 PyThreadState* __tstate = wxPyBeginAllowThreads();
21643 {
21644 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
21645 result = (wxPen *) &_result_ref;
21646 }
21647 wxPyEndAllowThreads(__tstate);
21648 if (PyErr_Occurred()) SWIG_fail;
21649 }
21650 {
21651 wxPen* resultptr = new wxPen(*result);
21652 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
21653 }
21654 return resultobj;
21655 fail:
21656 return NULL;
21657 }
21658
21659
21660 SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21661 PyObject *resultobj = 0;
21662 wxDC *arg1 = (wxDC *) 0 ;
21663 wxColour *result = 0 ;
21664 void *argp1 = 0 ;
21665 int res1 = 0 ;
21666 PyObject *swig_obj[1] ;
21667
21668 if (!args) SWIG_fail;
21669 swig_obj[0] = args;
21670 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21671 if (!SWIG_IsOK(res1)) {
21672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
21673 }
21674 arg1 = reinterpret_cast< wxDC * >(argp1);
21675 {
21676 PyThreadState* __tstate = wxPyBeginAllowThreads();
21677 {
21678 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
21679 result = (wxColour *) &_result_ref;
21680 }
21681 wxPyEndAllowThreads(__tstate);
21682 if (PyErr_Occurred()) SWIG_fail;
21683 }
21684 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
21685 return resultobj;
21686 fail:
21687 return NULL;
21688 }
21689
21690
21691 SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21692 PyObject *resultobj = 0;
21693 wxDC *arg1 = (wxDC *) 0 ;
21694 wxColour *result = 0 ;
21695 void *argp1 = 0 ;
21696 int res1 = 0 ;
21697 PyObject *swig_obj[1] ;
21698
21699 if (!args) SWIG_fail;
21700 swig_obj[0] = args;
21701 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21702 if (!SWIG_IsOK(res1)) {
21703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
21704 }
21705 arg1 = reinterpret_cast< wxDC * >(argp1);
21706 {
21707 PyThreadState* __tstate = wxPyBeginAllowThreads();
21708 {
21709 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
21710 result = (wxColour *) &_result_ref;
21711 }
21712 wxPyEndAllowThreads(__tstate);
21713 if (PyErr_Occurred()) SWIG_fail;
21714 }
21715 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
21716 return resultobj;
21717 fail:
21718 return NULL;
21719 }
21720
21721
21722 SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21723 PyObject *resultobj = 0;
21724 wxDC *arg1 = (wxDC *) 0 ;
21725 wxColour *arg2 = 0 ;
21726 void *argp1 = 0 ;
21727 int res1 = 0 ;
21728 wxColour temp2 ;
21729 PyObject * obj0 = 0 ;
21730 PyObject * obj1 = 0 ;
21731 char * kwnames[] = {
21732 (char *) "self",(char *) "colour", NULL
21733 };
21734
21735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
21736 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21737 if (!SWIG_IsOK(res1)) {
21738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
21739 }
21740 arg1 = reinterpret_cast< wxDC * >(argp1);
21741 {
21742 arg2 = &temp2;
21743 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21744 }
21745 {
21746 PyThreadState* __tstate = wxPyBeginAllowThreads();
21747 (arg1)->SetTextForeground((wxColour const &)*arg2);
21748 wxPyEndAllowThreads(__tstate);
21749 if (PyErr_Occurred()) SWIG_fail;
21750 }
21751 resultobj = SWIG_Py_Void();
21752 return resultobj;
21753 fail:
21754 return NULL;
21755 }
21756
21757
21758 SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21759 PyObject *resultobj = 0;
21760 wxDC *arg1 = (wxDC *) 0 ;
21761 wxColour *arg2 = 0 ;
21762 void *argp1 = 0 ;
21763 int res1 = 0 ;
21764 wxColour temp2 ;
21765 PyObject * obj0 = 0 ;
21766 PyObject * obj1 = 0 ;
21767 char * kwnames[] = {
21768 (char *) "self",(char *) "colour", NULL
21769 };
21770
21771 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
21772 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21773 if (!SWIG_IsOK(res1)) {
21774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
21775 }
21776 arg1 = reinterpret_cast< wxDC * >(argp1);
21777 {
21778 arg2 = &temp2;
21779 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21780 }
21781 {
21782 PyThreadState* __tstate = wxPyBeginAllowThreads();
21783 (arg1)->SetTextBackground((wxColour const &)*arg2);
21784 wxPyEndAllowThreads(__tstate);
21785 if (PyErr_Occurred()) SWIG_fail;
21786 }
21787 resultobj = SWIG_Py_Void();
21788 return resultobj;
21789 fail:
21790 return NULL;
21791 }
21792
21793
21794 SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21795 PyObject *resultobj = 0;
21796 wxDC *arg1 = (wxDC *) 0 ;
21797 int result;
21798 void *argp1 = 0 ;
21799 int res1 = 0 ;
21800 PyObject *swig_obj[1] ;
21801
21802 if (!args) SWIG_fail;
21803 swig_obj[0] = args;
21804 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21805 if (!SWIG_IsOK(res1)) {
21806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
21807 }
21808 arg1 = reinterpret_cast< wxDC * >(argp1);
21809 {
21810 PyThreadState* __tstate = wxPyBeginAllowThreads();
21811 result = (int)((wxDC const *)arg1)->GetMapMode();
21812 wxPyEndAllowThreads(__tstate);
21813 if (PyErr_Occurred()) SWIG_fail;
21814 }
21815 resultobj = SWIG_From_int(static_cast< int >(result));
21816 return resultobj;
21817 fail:
21818 return NULL;
21819 }
21820
21821
21822 SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21823 PyObject *resultobj = 0;
21824 wxDC *arg1 = (wxDC *) 0 ;
21825 int arg2 ;
21826 void *argp1 = 0 ;
21827 int res1 = 0 ;
21828 int val2 ;
21829 int ecode2 = 0 ;
21830 PyObject * obj0 = 0 ;
21831 PyObject * obj1 = 0 ;
21832 char * kwnames[] = {
21833 (char *) "self",(char *) "mode", NULL
21834 };
21835
21836 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
21837 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21838 if (!SWIG_IsOK(res1)) {
21839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
21840 }
21841 arg1 = reinterpret_cast< wxDC * >(argp1);
21842 ecode2 = SWIG_AsVal_int(obj1, &val2);
21843 if (!SWIG_IsOK(ecode2)) {
21844 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
21845 }
21846 arg2 = static_cast< int >(val2);
21847 {
21848 PyThreadState* __tstate = wxPyBeginAllowThreads();
21849 (arg1)->SetMapMode(arg2);
21850 wxPyEndAllowThreads(__tstate);
21851 if (PyErr_Occurred()) SWIG_fail;
21852 }
21853 resultobj = SWIG_Py_Void();
21854 return resultobj;
21855 fail:
21856 return NULL;
21857 }
21858
21859
21860 SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21861 PyObject *resultobj = 0;
21862 wxDC *arg1 = (wxDC *) 0 ;
21863 double *arg2 = (double *) 0 ;
21864 double *arg3 = (double *) 0 ;
21865 void *argp1 = 0 ;
21866 int res1 = 0 ;
21867 double temp2 ;
21868 int res2 = SWIG_TMPOBJ ;
21869 double temp3 ;
21870 int res3 = SWIG_TMPOBJ ;
21871 PyObject *swig_obj[1] ;
21872
21873 arg2 = &temp2;
21874 arg3 = &temp3;
21875 if (!args) SWIG_fail;
21876 swig_obj[0] = args;
21877 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21878 if (!SWIG_IsOK(res1)) {
21879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
21880 }
21881 arg1 = reinterpret_cast< wxDC * >(argp1);
21882 {
21883 PyThreadState* __tstate = wxPyBeginAllowThreads();
21884 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
21885 wxPyEndAllowThreads(__tstate);
21886 if (PyErr_Occurred()) SWIG_fail;
21887 }
21888 resultobj = SWIG_Py_Void();
21889 if (SWIG_IsTmpObj(res2)) {
21890 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
21891 } else {
21892 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21893 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
21894 }
21895 if (SWIG_IsTmpObj(res3)) {
21896 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
21897 } else {
21898 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21899 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
21900 }
21901 return resultobj;
21902 fail:
21903 return NULL;
21904 }
21905
21906
21907 SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21908 PyObject *resultobj = 0;
21909 wxDC *arg1 = (wxDC *) 0 ;
21910 double arg2 ;
21911 double arg3 ;
21912 void *argp1 = 0 ;
21913 int res1 = 0 ;
21914 double val2 ;
21915 int ecode2 = 0 ;
21916 double val3 ;
21917 int ecode3 = 0 ;
21918 PyObject * obj0 = 0 ;
21919 PyObject * obj1 = 0 ;
21920 PyObject * obj2 = 0 ;
21921 char * kwnames[] = {
21922 (char *) "self",(char *) "x",(char *) "y", NULL
21923 };
21924
21925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21926 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21927 if (!SWIG_IsOK(res1)) {
21928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
21929 }
21930 arg1 = reinterpret_cast< wxDC * >(argp1);
21931 ecode2 = SWIG_AsVal_double(obj1, &val2);
21932 if (!SWIG_IsOK(ecode2)) {
21933 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
21934 }
21935 arg2 = static_cast< double >(val2);
21936 ecode3 = SWIG_AsVal_double(obj2, &val3);
21937 if (!SWIG_IsOK(ecode3)) {
21938 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
21939 }
21940 arg3 = static_cast< double >(val3);
21941 {
21942 PyThreadState* __tstate = wxPyBeginAllowThreads();
21943 (arg1)->SetUserScale(arg2,arg3);
21944 wxPyEndAllowThreads(__tstate);
21945 if (PyErr_Occurred()) SWIG_fail;
21946 }
21947 resultobj = SWIG_Py_Void();
21948 return resultobj;
21949 fail:
21950 return NULL;
21951 }
21952
21953
21954 SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21955 PyObject *resultobj = 0;
21956 wxDC *arg1 = (wxDC *) 0 ;
21957 double *arg2 = (double *) 0 ;
21958 double *arg3 = (double *) 0 ;
21959 void *argp1 = 0 ;
21960 int res1 = 0 ;
21961 double temp2 ;
21962 int res2 = SWIG_TMPOBJ ;
21963 double temp3 ;
21964 int res3 = SWIG_TMPOBJ ;
21965 PyObject *swig_obj[1] ;
21966
21967 arg2 = &temp2;
21968 arg3 = &temp3;
21969 if (!args) SWIG_fail;
21970 swig_obj[0] = args;
21971 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21972 if (!SWIG_IsOK(res1)) {
21973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
21974 }
21975 arg1 = reinterpret_cast< wxDC * >(argp1);
21976 {
21977 PyThreadState* __tstate = wxPyBeginAllowThreads();
21978 (arg1)->GetLogicalScale(arg2,arg3);
21979 wxPyEndAllowThreads(__tstate);
21980 if (PyErr_Occurred()) SWIG_fail;
21981 }
21982 resultobj = SWIG_Py_Void();
21983 if (SWIG_IsTmpObj(res2)) {
21984 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
21985 } else {
21986 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21987 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
21988 }
21989 if (SWIG_IsTmpObj(res3)) {
21990 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
21991 } else {
21992 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21993 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
21994 }
21995 return resultobj;
21996 fail:
21997 return NULL;
21998 }
21999
22000
22001 SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22002 PyObject *resultobj = 0;
22003 wxDC *arg1 = (wxDC *) 0 ;
22004 double arg2 ;
22005 double arg3 ;
22006 void *argp1 = 0 ;
22007 int res1 = 0 ;
22008 double val2 ;
22009 int ecode2 = 0 ;
22010 double val3 ;
22011 int ecode3 = 0 ;
22012 PyObject * obj0 = 0 ;
22013 PyObject * obj1 = 0 ;
22014 PyObject * obj2 = 0 ;
22015 char * kwnames[] = {
22016 (char *) "self",(char *) "x",(char *) "y", NULL
22017 };
22018
22019 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22020 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22021 if (!SWIG_IsOK(res1)) {
22022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22023 }
22024 arg1 = reinterpret_cast< wxDC * >(argp1);
22025 ecode2 = SWIG_AsVal_double(obj1, &val2);
22026 if (!SWIG_IsOK(ecode2)) {
22027 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
22028 }
22029 arg2 = static_cast< double >(val2);
22030 ecode3 = SWIG_AsVal_double(obj2, &val3);
22031 if (!SWIG_IsOK(ecode3)) {
22032 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
22033 }
22034 arg3 = static_cast< double >(val3);
22035 {
22036 PyThreadState* __tstate = wxPyBeginAllowThreads();
22037 (arg1)->SetLogicalScale(arg2,arg3);
22038 wxPyEndAllowThreads(__tstate);
22039 if (PyErr_Occurred()) SWIG_fail;
22040 }
22041 resultobj = SWIG_Py_Void();
22042 return resultobj;
22043 fail:
22044 return NULL;
22045 }
22046
22047
22048 SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22049 PyObject *resultobj = 0;
22050 wxDC *arg1 = (wxDC *) 0 ;
22051 wxPoint result;
22052 void *argp1 = 0 ;
22053 int res1 = 0 ;
22054 PyObject *swig_obj[1] ;
22055
22056 if (!args) SWIG_fail;
22057 swig_obj[0] = args;
22058 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22059 if (!SWIG_IsOK(res1)) {
22060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22061 }
22062 arg1 = reinterpret_cast< wxDC * >(argp1);
22063 {
22064 PyThreadState* __tstate = wxPyBeginAllowThreads();
22065 result = ((wxDC const *)arg1)->GetLogicalOrigin();
22066 wxPyEndAllowThreads(__tstate);
22067 if (PyErr_Occurred()) SWIG_fail;
22068 }
22069 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22070 return resultobj;
22071 fail:
22072 return NULL;
22073 }
22074
22075
22076 SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22077 PyObject *resultobj = 0;
22078 wxDC *arg1 = (wxDC *) 0 ;
22079 int *arg2 = (int *) 0 ;
22080 int *arg3 = (int *) 0 ;
22081 void *argp1 = 0 ;
22082 int res1 = 0 ;
22083 int temp2 ;
22084 int res2 = SWIG_TMPOBJ ;
22085 int temp3 ;
22086 int res3 = SWIG_TMPOBJ ;
22087 PyObject *swig_obj[1] ;
22088
22089 arg2 = &temp2;
22090 arg3 = &temp3;
22091 if (!args) SWIG_fail;
22092 swig_obj[0] = args;
22093 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22094 if (!SWIG_IsOK(res1)) {
22095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22096 }
22097 arg1 = reinterpret_cast< wxDC * >(argp1);
22098 {
22099 PyThreadState* __tstate = wxPyBeginAllowThreads();
22100 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
22101 wxPyEndAllowThreads(__tstate);
22102 if (PyErr_Occurred()) SWIG_fail;
22103 }
22104 resultobj = SWIG_Py_Void();
22105 if (SWIG_IsTmpObj(res2)) {
22106 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22107 } else {
22108 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22109 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22110 }
22111 if (SWIG_IsTmpObj(res3)) {
22112 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22113 } else {
22114 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22115 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22116 }
22117 return resultobj;
22118 fail:
22119 return NULL;
22120 }
22121
22122
22123 SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22124 PyObject *resultobj = 0;
22125 wxDC *arg1 = (wxDC *) 0 ;
22126 int arg2 ;
22127 int arg3 ;
22128 void *argp1 = 0 ;
22129 int res1 = 0 ;
22130 int val2 ;
22131 int ecode2 = 0 ;
22132 int val3 ;
22133 int ecode3 = 0 ;
22134 PyObject * obj0 = 0 ;
22135 PyObject * obj1 = 0 ;
22136 PyObject * obj2 = 0 ;
22137 char * kwnames[] = {
22138 (char *) "self",(char *) "x",(char *) "y", NULL
22139 };
22140
22141 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22143 if (!SWIG_IsOK(res1)) {
22144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22145 }
22146 arg1 = reinterpret_cast< wxDC * >(argp1);
22147 ecode2 = SWIG_AsVal_int(obj1, &val2);
22148 if (!SWIG_IsOK(ecode2)) {
22149 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
22150 }
22151 arg2 = static_cast< int >(val2);
22152 ecode3 = SWIG_AsVal_int(obj2, &val3);
22153 if (!SWIG_IsOK(ecode3)) {
22154 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
22155 }
22156 arg3 = static_cast< int >(val3);
22157 {
22158 PyThreadState* __tstate = wxPyBeginAllowThreads();
22159 (arg1)->SetLogicalOrigin(arg2,arg3);
22160 wxPyEndAllowThreads(__tstate);
22161 if (PyErr_Occurred()) SWIG_fail;
22162 }
22163 resultobj = SWIG_Py_Void();
22164 return resultobj;
22165 fail:
22166 return NULL;
22167 }
22168
22169
22170 SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22171 PyObject *resultobj = 0;
22172 wxDC *arg1 = (wxDC *) 0 ;
22173 wxPoint *arg2 = 0 ;
22174 void *argp1 = 0 ;
22175 int res1 = 0 ;
22176 wxPoint temp2 ;
22177 PyObject * obj0 = 0 ;
22178 PyObject * obj1 = 0 ;
22179 char * kwnames[] = {
22180 (char *) "self",(char *) "point", NULL
22181 };
22182
22183 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22184 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22185 if (!SWIG_IsOK(res1)) {
22186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22187 }
22188 arg1 = reinterpret_cast< wxDC * >(argp1);
22189 {
22190 arg2 = &temp2;
22191 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22192 }
22193 {
22194 PyThreadState* __tstate = wxPyBeginAllowThreads();
22195 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
22196 wxPyEndAllowThreads(__tstate);
22197 if (PyErr_Occurred()) SWIG_fail;
22198 }
22199 resultobj = SWIG_Py_Void();
22200 return resultobj;
22201 fail:
22202 return NULL;
22203 }
22204
22205
22206 SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22207 PyObject *resultobj = 0;
22208 wxDC *arg1 = (wxDC *) 0 ;
22209 wxPoint result;
22210 void *argp1 = 0 ;
22211 int res1 = 0 ;
22212 PyObject *swig_obj[1] ;
22213
22214 if (!args) SWIG_fail;
22215 swig_obj[0] = args;
22216 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22217 if (!SWIG_IsOK(res1)) {
22218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22219 }
22220 arg1 = reinterpret_cast< wxDC * >(argp1);
22221 {
22222 PyThreadState* __tstate = wxPyBeginAllowThreads();
22223 result = ((wxDC const *)arg1)->GetDeviceOrigin();
22224 wxPyEndAllowThreads(__tstate);
22225 if (PyErr_Occurred()) SWIG_fail;
22226 }
22227 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22228 return resultobj;
22229 fail:
22230 return NULL;
22231 }
22232
22233
22234 SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22235 PyObject *resultobj = 0;
22236 wxDC *arg1 = (wxDC *) 0 ;
22237 int *arg2 = (int *) 0 ;
22238 int *arg3 = (int *) 0 ;
22239 void *argp1 = 0 ;
22240 int res1 = 0 ;
22241 int temp2 ;
22242 int res2 = SWIG_TMPOBJ ;
22243 int temp3 ;
22244 int res3 = SWIG_TMPOBJ ;
22245 PyObject *swig_obj[1] ;
22246
22247 arg2 = &temp2;
22248 arg3 = &temp3;
22249 if (!args) SWIG_fail;
22250 swig_obj[0] = args;
22251 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22252 if (!SWIG_IsOK(res1)) {
22253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22254 }
22255 arg1 = reinterpret_cast< wxDC * >(argp1);
22256 {
22257 PyThreadState* __tstate = wxPyBeginAllowThreads();
22258 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
22259 wxPyEndAllowThreads(__tstate);
22260 if (PyErr_Occurred()) SWIG_fail;
22261 }
22262 resultobj = SWIG_Py_Void();
22263 if (SWIG_IsTmpObj(res2)) {
22264 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22265 } else {
22266 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22267 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22268 }
22269 if (SWIG_IsTmpObj(res3)) {
22270 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22271 } else {
22272 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22273 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22274 }
22275 return resultobj;
22276 fail:
22277 return NULL;
22278 }
22279
22280
22281 SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22282 PyObject *resultobj = 0;
22283 wxDC *arg1 = (wxDC *) 0 ;
22284 int arg2 ;
22285 int arg3 ;
22286 void *argp1 = 0 ;
22287 int res1 = 0 ;
22288 int val2 ;
22289 int ecode2 = 0 ;
22290 int val3 ;
22291 int ecode3 = 0 ;
22292 PyObject * obj0 = 0 ;
22293 PyObject * obj1 = 0 ;
22294 PyObject * obj2 = 0 ;
22295 char * kwnames[] = {
22296 (char *) "self",(char *) "x",(char *) "y", NULL
22297 };
22298
22299 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22300 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22301 if (!SWIG_IsOK(res1)) {
22302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22303 }
22304 arg1 = reinterpret_cast< wxDC * >(argp1);
22305 ecode2 = SWIG_AsVal_int(obj1, &val2);
22306 if (!SWIG_IsOK(ecode2)) {
22307 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
22308 }
22309 arg2 = static_cast< int >(val2);
22310 ecode3 = SWIG_AsVal_int(obj2, &val3);
22311 if (!SWIG_IsOK(ecode3)) {
22312 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
22313 }
22314 arg3 = static_cast< int >(val3);
22315 {
22316 PyThreadState* __tstate = wxPyBeginAllowThreads();
22317 (arg1)->SetDeviceOrigin(arg2,arg3);
22318 wxPyEndAllowThreads(__tstate);
22319 if (PyErr_Occurred()) SWIG_fail;
22320 }
22321 resultobj = SWIG_Py_Void();
22322 return resultobj;
22323 fail:
22324 return NULL;
22325 }
22326
22327
22328 SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22329 PyObject *resultobj = 0;
22330 wxDC *arg1 = (wxDC *) 0 ;
22331 wxPoint *arg2 = 0 ;
22332 void *argp1 = 0 ;
22333 int res1 = 0 ;
22334 wxPoint temp2 ;
22335 PyObject * obj0 = 0 ;
22336 PyObject * obj1 = 0 ;
22337 char * kwnames[] = {
22338 (char *) "self",(char *) "point", NULL
22339 };
22340
22341 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22342 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22343 if (!SWIG_IsOK(res1)) {
22344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22345 }
22346 arg1 = reinterpret_cast< wxDC * >(argp1);
22347 {
22348 arg2 = &temp2;
22349 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22350 }
22351 {
22352 PyThreadState* __tstate = wxPyBeginAllowThreads();
22353 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
22354 wxPyEndAllowThreads(__tstate);
22355 if (PyErr_Occurred()) SWIG_fail;
22356 }
22357 resultobj = SWIG_Py_Void();
22358 return resultobj;
22359 fail:
22360 return NULL;
22361 }
22362
22363
22364 SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22365 PyObject *resultobj = 0;
22366 wxDC *arg1 = (wxDC *) 0 ;
22367 bool arg2 ;
22368 bool arg3 ;
22369 void *argp1 = 0 ;
22370 int res1 = 0 ;
22371 bool val2 ;
22372 int ecode2 = 0 ;
22373 bool val3 ;
22374 int ecode3 = 0 ;
22375 PyObject * obj0 = 0 ;
22376 PyObject * obj1 = 0 ;
22377 PyObject * obj2 = 0 ;
22378 char * kwnames[] = {
22379 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
22380 };
22381
22382 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22383 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22384 if (!SWIG_IsOK(res1)) {
22385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
22386 }
22387 arg1 = reinterpret_cast< wxDC * >(argp1);
22388 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22389 if (!SWIG_IsOK(ecode2)) {
22390 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
22391 }
22392 arg2 = static_cast< bool >(val2);
22393 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22394 if (!SWIG_IsOK(ecode3)) {
22395 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
22396 }
22397 arg3 = static_cast< bool >(val3);
22398 {
22399 PyThreadState* __tstate = wxPyBeginAllowThreads();
22400 (arg1)->SetAxisOrientation(arg2,arg3);
22401 wxPyEndAllowThreads(__tstate);
22402 if (PyErr_Occurred()) SWIG_fail;
22403 }
22404 resultobj = SWIG_Py_Void();
22405 return resultobj;
22406 fail:
22407 return NULL;
22408 }
22409
22410
22411 SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22412 PyObject *resultobj = 0;
22413 wxDC *arg1 = (wxDC *) 0 ;
22414 int result;
22415 void *argp1 = 0 ;
22416 int res1 = 0 ;
22417 PyObject *swig_obj[1] ;
22418
22419 if (!args) SWIG_fail;
22420 swig_obj[0] = args;
22421 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22422 if (!SWIG_IsOK(res1)) {
22423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
22424 }
22425 arg1 = reinterpret_cast< wxDC * >(argp1);
22426 {
22427 PyThreadState* __tstate = wxPyBeginAllowThreads();
22428 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
22429 wxPyEndAllowThreads(__tstate);
22430 if (PyErr_Occurred()) SWIG_fail;
22431 }
22432 resultobj = SWIG_From_int(static_cast< int >(result));
22433 return resultobj;
22434 fail:
22435 return NULL;
22436 }
22437
22438
22439 SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22440 PyObject *resultobj = 0;
22441 wxDC *arg1 = (wxDC *) 0 ;
22442 int arg2 ;
22443 void *argp1 = 0 ;
22444 int res1 = 0 ;
22445 int val2 ;
22446 int ecode2 = 0 ;
22447 PyObject * obj0 = 0 ;
22448 PyObject * obj1 = 0 ;
22449 char * kwnames[] = {
22450 (char *) "self",(char *) "function", NULL
22451 };
22452
22453 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
22454 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22455 if (!SWIG_IsOK(res1)) {
22456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
22457 }
22458 arg1 = reinterpret_cast< wxDC * >(argp1);
22459 ecode2 = SWIG_AsVal_int(obj1, &val2);
22460 if (!SWIG_IsOK(ecode2)) {
22461 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
22462 }
22463 arg2 = static_cast< int >(val2);
22464 {
22465 PyThreadState* __tstate = wxPyBeginAllowThreads();
22466 (arg1)->SetLogicalFunction(arg2);
22467 wxPyEndAllowThreads(__tstate);
22468 if (PyErr_Occurred()) SWIG_fail;
22469 }
22470 resultobj = SWIG_Py_Void();
22471 return resultobj;
22472 fail:
22473 return NULL;
22474 }
22475
22476
22477 SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22478 PyObject *resultobj = 0;
22479 wxDC *arg1 = (wxDC *) 0 ;
22480 void *argp1 = 0 ;
22481 int res1 = 0 ;
22482 PyObject *swig_obj[1] ;
22483
22484 if (!args) SWIG_fail;
22485 swig_obj[0] = args;
22486 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22487 if (!SWIG_IsOK(res1)) {
22488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22489 }
22490 arg1 = reinterpret_cast< wxDC * >(argp1);
22491 {
22492 PyThreadState* __tstate = wxPyBeginAllowThreads();
22493 (arg1)->ComputeScaleAndOrigin();
22494 wxPyEndAllowThreads(__tstate);
22495 if (PyErr_Occurred()) SWIG_fail;
22496 }
22497 resultobj = SWIG_Py_Void();
22498 return resultobj;
22499 fail:
22500 return NULL;
22501 }
22502
22503
22504 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22505 PyObject *resultobj = 0;
22506 wxDC *arg1 = (wxDC *) 0 ;
22507 int arg2 ;
22508 int arg3 ;
22509 void *argp1 = 0 ;
22510 int res1 = 0 ;
22511 int val2 ;
22512 int ecode2 = 0 ;
22513 int val3 ;
22514 int ecode3 = 0 ;
22515 PyObject * obj0 = 0 ;
22516 PyObject * obj1 = 0 ;
22517 PyObject * obj2 = 0 ;
22518 char * kwnames[] = {
22519 (char *) "self",(char *) "x",(char *) "y", NULL
22520 };
22521
22522 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22523 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22524 if (!SWIG_IsOK(res1)) {
22525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22526 }
22527 arg1 = reinterpret_cast< wxDC * >(argp1);
22528 ecode2 = SWIG_AsVal_int(obj1, &val2);
22529 if (!SWIG_IsOK(ecode2)) {
22530 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
22531 }
22532 arg2 = static_cast< int >(val2);
22533 ecode3 = SWIG_AsVal_int(obj2, &val3);
22534 if (!SWIG_IsOK(ecode3)) {
22535 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
22536 }
22537 arg3 = static_cast< int >(val3);
22538 {
22539 PyThreadState* __tstate = wxPyBeginAllowThreads();
22540 (arg1)->CalcBoundingBox(arg2,arg3);
22541 wxPyEndAllowThreads(__tstate);
22542 if (PyErr_Occurred()) SWIG_fail;
22543 }
22544 resultobj = SWIG_Py_Void();
22545 return resultobj;
22546 fail:
22547 return NULL;
22548 }
22549
22550
22551 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22552 PyObject *resultobj = 0;
22553 wxDC *arg1 = (wxDC *) 0 ;
22554 wxPoint *arg2 = 0 ;
22555 void *argp1 = 0 ;
22556 int res1 = 0 ;
22557 wxPoint temp2 ;
22558 PyObject * obj0 = 0 ;
22559 PyObject * obj1 = 0 ;
22560 char * kwnames[] = {
22561 (char *) "self",(char *) "point", NULL
22562 };
22563
22564 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22565 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22566 if (!SWIG_IsOK(res1)) {
22567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22568 }
22569 arg1 = reinterpret_cast< wxDC * >(argp1);
22570 {
22571 arg2 = &temp2;
22572 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22573 }
22574 {
22575 PyThreadState* __tstate = wxPyBeginAllowThreads();
22576 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
22577 wxPyEndAllowThreads(__tstate);
22578 if (PyErr_Occurred()) SWIG_fail;
22579 }
22580 resultobj = SWIG_Py_Void();
22581 return resultobj;
22582 fail:
22583 return NULL;
22584 }
22585
22586
22587 SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22588 PyObject *resultobj = 0;
22589 wxDC *arg1 = (wxDC *) 0 ;
22590 void *argp1 = 0 ;
22591 int res1 = 0 ;
22592 PyObject *swig_obj[1] ;
22593
22594 if (!args) SWIG_fail;
22595 swig_obj[0] = args;
22596 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22597 if (!SWIG_IsOK(res1)) {
22598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22599 }
22600 arg1 = reinterpret_cast< wxDC * >(argp1);
22601 {
22602 PyThreadState* __tstate = wxPyBeginAllowThreads();
22603 (arg1)->ResetBoundingBox();
22604 wxPyEndAllowThreads(__tstate);
22605 if (PyErr_Occurred()) SWIG_fail;
22606 }
22607 resultobj = SWIG_Py_Void();
22608 return resultobj;
22609 fail:
22610 return NULL;
22611 }
22612
22613
22614 SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22615 PyObject *resultobj = 0;
22616 wxDC *arg1 = (wxDC *) 0 ;
22617 int result;
22618 void *argp1 = 0 ;
22619 int res1 = 0 ;
22620 PyObject *swig_obj[1] ;
22621
22622 if (!args) SWIG_fail;
22623 swig_obj[0] = args;
22624 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22625 if (!SWIG_IsOK(res1)) {
22626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
22627 }
22628 arg1 = reinterpret_cast< wxDC * >(argp1);
22629 {
22630 PyThreadState* __tstate = wxPyBeginAllowThreads();
22631 result = (int)((wxDC const *)arg1)->MinX();
22632 wxPyEndAllowThreads(__tstate);
22633 if (PyErr_Occurred()) SWIG_fail;
22634 }
22635 resultobj = SWIG_From_int(static_cast< int >(result));
22636 return resultobj;
22637 fail:
22638 return NULL;
22639 }
22640
22641
22642 SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22643 PyObject *resultobj = 0;
22644 wxDC *arg1 = (wxDC *) 0 ;
22645 int result;
22646 void *argp1 = 0 ;
22647 int res1 = 0 ;
22648 PyObject *swig_obj[1] ;
22649
22650 if (!args) SWIG_fail;
22651 swig_obj[0] = args;
22652 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22653 if (!SWIG_IsOK(res1)) {
22654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
22655 }
22656 arg1 = reinterpret_cast< wxDC * >(argp1);
22657 {
22658 PyThreadState* __tstate = wxPyBeginAllowThreads();
22659 result = (int)((wxDC const *)arg1)->MaxX();
22660 wxPyEndAllowThreads(__tstate);
22661 if (PyErr_Occurred()) SWIG_fail;
22662 }
22663 resultobj = SWIG_From_int(static_cast< int >(result));
22664 return resultobj;
22665 fail:
22666 return NULL;
22667 }
22668
22669
22670 SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22671 PyObject *resultobj = 0;
22672 wxDC *arg1 = (wxDC *) 0 ;
22673 int result;
22674 void *argp1 = 0 ;
22675 int res1 = 0 ;
22676 PyObject *swig_obj[1] ;
22677
22678 if (!args) SWIG_fail;
22679 swig_obj[0] = args;
22680 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22681 if (!SWIG_IsOK(res1)) {
22682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
22683 }
22684 arg1 = reinterpret_cast< wxDC * >(argp1);
22685 {
22686 PyThreadState* __tstate = wxPyBeginAllowThreads();
22687 result = (int)((wxDC const *)arg1)->MinY();
22688 wxPyEndAllowThreads(__tstate);
22689 if (PyErr_Occurred()) SWIG_fail;
22690 }
22691 resultobj = SWIG_From_int(static_cast< int >(result));
22692 return resultobj;
22693 fail:
22694 return NULL;
22695 }
22696
22697
22698 SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22699 PyObject *resultobj = 0;
22700 wxDC *arg1 = (wxDC *) 0 ;
22701 int result;
22702 void *argp1 = 0 ;
22703 int res1 = 0 ;
22704 PyObject *swig_obj[1] ;
22705
22706 if (!args) SWIG_fail;
22707 swig_obj[0] = args;
22708 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22709 if (!SWIG_IsOK(res1)) {
22710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
22711 }
22712 arg1 = reinterpret_cast< wxDC * >(argp1);
22713 {
22714 PyThreadState* __tstate = wxPyBeginAllowThreads();
22715 result = (int)((wxDC const *)arg1)->MaxY();
22716 wxPyEndAllowThreads(__tstate);
22717 if (PyErr_Occurred()) SWIG_fail;
22718 }
22719 resultobj = SWIG_From_int(static_cast< int >(result));
22720 return resultobj;
22721 fail:
22722 return NULL;
22723 }
22724
22725
22726 SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22727 PyObject *resultobj = 0;
22728 wxDC *arg1 = (wxDC *) 0 ;
22729 int *arg2 = (int *) 0 ;
22730 int *arg3 = (int *) 0 ;
22731 int *arg4 = (int *) 0 ;
22732 int *arg5 = (int *) 0 ;
22733 void *argp1 = 0 ;
22734 int res1 = 0 ;
22735 int temp2 ;
22736 int res2 = SWIG_TMPOBJ ;
22737 int temp3 ;
22738 int res3 = SWIG_TMPOBJ ;
22739 int temp4 ;
22740 int res4 = SWIG_TMPOBJ ;
22741 int temp5 ;
22742 int res5 = SWIG_TMPOBJ ;
22743 PyObject *swig_obj[1] ;
22744
22745 arg2 = &temp2;
22746 arg3 = &temp3;
22747 arg4 = &temp4;
22748 arg5 = &temp5;
22749 if (!args) SWIG_fail;
22750 swig_obj[0] = args;
22751 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22752 if (!SWIG_IsOK(res1)) {
22753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22754 }
22755 arg1 = reinterpret_cast< wxDC * >(argp1);
22756 {
22757 PyThreadState* __tstate = wxPyBeginAllowThreads();
22758 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
22759 wxPyEndAllowThreads(__tstate);
22760 if (PyErr_Occurred()) SWIG_fail;
22761 }
22762 resultobj = SWIG_Py_Void();
22763 if (SWIG_IsTmpObj(res2)) {
22764 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22765 } else {
22766 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22767 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22768 }
22769 if (SWIG_IsTmpObj(res3)) {
22770 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22771 } else {
22772 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22773 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22774 }
22775 if (SWIG_IsTmpObj(res4)) {
22776 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
22777 } else {
22778 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22779 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
22780 }
22781 if (SWIG_IsTmpObj(res5)) {
22782 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
22783 } else {
22784 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22785 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
22786 }
22787 return resultobj;
22788 fail:
22789 return NULL;
22790 }
22791
22792
22793 SWIGINTERN PyObject *_wrap_DC_GetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22794 PyObject *resultobj = 0;
22795 wxDC *arg1 = (wxDC *) 0 ;
22796 wxLayoutDirection result;
22797 void *argp1 = 0 ;
22798 int res1 = 0 ;
22799 PyObject *swig_obj[1] ;
22800
22801 if (!args) SWIG_fail;
22802 swig_obj[0] = args;
22803 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22804 if (!SWIG_IsOK(res1)) {
22805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLayoutDirection" "', expected argument " "1"" of type '" "wxDC const *""'");
22806 }
22807 arg1 = reinterpret_cast< wxDC * >(argp1);
22808 {
22809 PyThreadState* __tstate = wxPyBeginAllowThreads();
22810 result = (wxLayoutDirection)((wxDC const *)arg1)->GetLayoutDirection();
22811 wxPyEndAllowThreads(__tstate);
22812 if (PyErr_Occurred()) SWIG_fail;
22813 }
22814 resultobj = SWIG_From_int(static_cast< int >(result));
22815 return resultobj;
22816 fail:
22817 return NULL;
22818 }
22819
22820
22821 SWIGINTERN PyObject *_wrap_DC_SetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22822 PyObject *resultobj = 0;
22823 wxDC *arg1 = (wxDC *) 0 ;
22824 wxLayoutDirection arg2 ;
22825 void *argp1 = 0 ;
22826 int res1 = 0 ;
22827 int val2 ;
22828 int ecode2 = 0 ;
22829 PyObject * obj0 = 0 ;
22830 PyObject * obj1 = 0 ;
22831 char * kwnames[] = {
22832 (char *) "self",(char *) "dir", NULL
22833 };
22834
22835 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLayoutDirection",kwnames,&obj0,&obj1)) SWIG_fail;
22836 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22837 if (!SWIG_IsOK(res1)) {
22838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLayoutDirection" "', expected argument " "1"" of type '" "wxDC *""'");
22839 }
22840 arg1 = reinterpret_cast< wxDC * >(argp1);
22841 ecode2 = SWIG_AsVal_int(obj1, &val2);
22842 if (!SWIG_IsOK(ecode2)) {
22843 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLayoutDirection" "', expected argument " "2"" of type '" "wxLayoutDirection""'");
22844 }
22845 arg2 = static_cast< wxLayoutDirection >(val2);
22846 {
22847 PyThreadState* __tstate = wxPyBeginAllowThreads();
22848 (arg1)->SetLayoutDirection(arg2);
22849 wxPyEndAllowThreads(__tstate);
22850 if (PyErr_Occurred()) SWIG_fail;
22851 }
22852 resultobj = SWIG_Py_Void();
22853 return resultobj;
22854 fail:
22855 return NULL;
22856 }
22857
22858
22859 SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22860 PyObject *resultobj = 0;
22861 wxDC *arg1 = (wxDC *) 0 ;
22862 PyObject *arg2 = (PyObject *) 0 ;
22863 PyObject *arg3 = (PyObject *) 0 ;
22864 PyObject *arg4 = (PyObject *) 0 ;
22865 PyObject *result = 0 ;
22866 void *argp1 = 0 ;
22867 int res1 = 0 ;
22868 PyObject * obj0 = 0 ;
22869 PyObject * obj1 = 0 ;
22870 PyObject * obj2 = 0 ;
22871 PyObject * obj3 = 0 ;
22872 char * kwnames[] = {
22873 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22874 };
22875
22876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22877 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22878 if (!SWIG_IsOK(res1)) {
22879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
22880 }
22881 arg1 = reinterpret_cast< wxDC * >(argp1);
22882 arg2 = obj1;
22883 arg3 = obj2;
22884 arg4 = obj3;
22885 {
22886 PyThreadState* __tstate = wxPyBeginAllowThreads();
22887 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
22888 wxPyEndAllowThreads(__tstate);
22889 if (PyErr_Occurred()) SWIG_fail;
22890 }
22891 resultobj = result;
22892 return resultobj;
22893 fail:
22894 return NULL;
22895 }
22896
22897
22898 SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22899 PyObject *resultobj = 0;
22900 wxDC *arg1 = (wxDC *) 0 ;
22901 PyObject *arg2 = (PyObject *) 0 ;
22902 PyObject *arg3 = (PyObject *) 0 ;
22903 PyObject *arg4 = (PyObject *) 0 ;
22904 PyObject *result = 0 ;
22905 void *argp1 = 0 ;
22906 int res1 = 0 ;
22907 PyObject * obj0 = 0 ;
22908 PyObject * obj1 = 0 ;
22909 PyObject * obj2 = 0 ;
22910 PyObject * obj3 = 0 ;
22911 char * kwnames[] = {
22912 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22913 };
22914
22915 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22916 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22917 if (!SWIG_IsOK(res1)) {
22918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
22919 }
22920 arg1 = reinterpret_cast< wxDC * >(argp1);
22921 arg2 = obj1;
22922 arg3 = obj2;
22923 arg4 = obj3;
22924 {
22925 PyThreadState* __tstate = wxPyBeginAllowThreads();
22926 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
22927 wxPyEndAllowThreads(__tstate);
22928 if (PyErr_Occurred()) SWIG_fail;
22929 }
22930 resultobj = result;
22931 return resultobj;
22932 fail:
22933 return NULL;
22934 }
22935
22936
22937 SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22938 PyObject *resultobj = 0;
22939 wxDC *arg1 = (wxDC *) 0 ;
22940 PyObject *arg2 = (PyObject *) 0 ;
22941 PyObject *arg3 = (PyObject *) 0 ;
22942 PyObject *arg4 = (PyObject *) 0 ;
22943 PyObject *result = 0 ;
22944 void *argp1 = 0 ;
22945 int res1 = 0 ;
22946 PyObject * obj0 = 0 ;
22947 PyObject * obj1 = 0 ;
22948 PyObject * obj2 = 0 ;
22949 PyObject * obj3 = 0 ;
22950 char * kwnames[] = {
22951 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22952 };
22953
22954 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22955 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22956 if (!SWIG_IsOK(res1)) {
22957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
22958 }
22959 arg1 = reinterpret_cast< wxDC * >(argp1);
22960 arg2 = obj1;
22961 arg3 = obj2;
22962 arg4 = obj3;
22963 {
22964 PyThreadState* __tstate = wxPyBeginAllowThreads();
22965 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
22966 wxPyEndAllowThreads(__tstate);
22967 if (PyErr_Occurred()) SWIG_fail;
22968 }
22969 resultobj = result;
22970 return resultobj;
22971 fail:
22972 return NULL;
22973 }
22974
22975
22976 SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22977 PyObject *resultobj = 0;
22978 wxDC *arg1 = (wxDC *) 0 ;
22979 PyObject *arg2 = (PyObject *) 0 ;
22980 PyObject *arg3 = (PyObject *) 0 ;
22981 PyObject *arg4 = (PyObject *) 0 ;
22982 PyObject *result = 0 ;
22983 void *argp1 = 0 ;
22984 int res1 = 0 ;
22985 PyObject * obj0 = 0 ;
22986 PyObject * obj1 = 0 ;
22987 PyObject * obj2 = 0 ;
22988 PyObject * obj3 = 0 ;
22989 char * kwnames[] = {
22990 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22991 };
22992
22993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22994 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22995 if (!SWIG_IsOK(res1)) {
22996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
22997 }
22998 arg1 = reinterpret_cast< wxDC * >(argp1);
22999 arg2 = obj1;
23000 arg3 = obj2;
23001 arg4 = obj3;
23002 {
23003 PyThreadState* __tstate = wxPyBeginAllowThreads();
23004 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
23005 wxPyEndAllowThreads(__tstate);
23006 if (PyErr_Occurred()) SWIG_fail;
23007 }
23008 resultobj = result;
23009 return resultobj;
23010 fail:
23011 return NULL;
23012 }
23013
23014
23015 SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23016 PyObject *resultobj = 0;
23017 wxDC *arg1 = (wxDC *) 0 ;
23018 PyObject *arg2 = (PyObject *) 0 ;
23019 PyObject *arg3 = (PyObject *) 0 ;
23020 PyObject *arg4 = (PyObject *) 0 ;
23021 PyObject *result = 0 ;
23022 void *argp1 = 0 ;
23023 int res1 = 0 ;
23024 PyObject * obj0 = 0 ;
23025 PyObject * obj1 = 0 ;
23026 PyObject * obj2 = 0 ;
23027 PyObject * obj3 = 0 ;
23028 char * kwnames[] = {
23029 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23030 };
23031
23032 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23033 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23034 if (!SWIG_IsOK(res1)) {
23035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
23036 }
23037 arg1 = reinterpret_cast< wxDC * >(argp1);
23038 arg2 = obj1;
23039 arg3 = obj2;
23040 arg4 = obj3;
23041 {
23042 PyThreadState* __tstate = wxPyBeginAllowThreads();
23043 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
23044 wxPyEndAllowThreads(__tstate);
23045 if (PyErr_Occurred()) SWIG_fail;
23046 }
23047 resultobj = result;
23048 return resultobj;
23049 fail:
23050 return NULL;
23051 }
23052
23053
23054 SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23055 PyObject *resultobj = 0;
23056 wxDC *arg1 = (wxDC *) 0 ;
23057 PyObject *arg2 = (PyObject *) 0 ;
23058 PyObject *arg3 = (PyObject *) 0 ;
23059 PyObject *arg4 = (PyObject *) 0 ;
23060 PyObject *arg5 = (PyObject *) 0 ;
23061 PyObject *result = 0 ;
23062 void *argp1 = 0 ;
23063 int res1 = 0 ;
23064 PyObject * obj0 = 0 ;
23065 PyObject * obj1 = 0 ;
23066 PyObject * obj2 = 0 ;
23067 PyObject * obj3 = 0 ;
23068 PyObject * obj4 = 0 ;
23069 char * kwnames[] = {
23070 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
23071 };
23072
23073 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
23074 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23075 if (!SWIG_IsOK(res1)) {
23076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
23077 }
23078 arg1 = reinterpret_cast< wxDC * >(argp1);
23079 arg2 = obj1;
23080 arg3 = obj2;
23081 arg4 = obj3;
23082 arg5 = obj4;
23083 {
23084 PyThreadState* __tstate = wxPyBeginAllowThreads();
23085 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
23086 wxPyEndAllowThreads(__tstate);
23087 if (PyErr_Occurred()) SWIG_fail;
23088 }
23089 resultobj = result;
23090 return resultobj;
23091 fail:
23092 return NULL;
23093 }
23094
23095
23096 SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23097 PyObject *obj;
23098 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23099 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
23100 return SWIG_Py_Void();
23101 }
23102
23103 SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23104 PyObject *resultobj = 0;
23105 wxBitmap const &arg1_defvalue = wxNullBitmap ;
23106 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
23107 wxMemoryDC *result = 0 ;
23108 void *argp1 = 0 ;
23109 int res1 = 0 ;
23110 PyObject * obj0 = 0 ;
23111 char * kwnames[] = {
23112 (char *) "bitmap", NULL
23113 };
23114
23115 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MemoryDC",kwnames,&obj0)) SWIG_fail;
23116 if (obj0) {
23117 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
23118 if (!SWIG_IsOK(res1)) {
23119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap const &""'");
23120 }
23121 if (!argp1) {
23122 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap const &""'");
23123 }
23124 arg1 = reinterpret_cast< wxBitmap * >(argp1);
23125 }
23126 {
23127 if (!wxPyCheckForApp()) SWIG_fail;
23128 PyThreadState* __tstate = wxPyBeginAllowThreads();
23129 result = (wxMemoryDC *)new wxMemoryDC((wxBitmap const &)*arg1);
23130 wxPyEndAllowThreads(__tstate);
23131 if (PyErr_Occurred()) SWIG_fail;
23132 }
23133 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
23134 return resultobj;
23135 fail:
23136 return NULL;
23137 }
23138
23139
23140 SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23141 PyObject *resultobj = 0;
23142 wxDC *arg1 = (wxDC *) 0 ;
23143 wxMemoryDC *result = 0 ;
23144 void *argp1 = 0 ;
23145 int res1 = 0 ;
23146 PyObject * obj0 = 0 ;
23147 char * kwnames[] = {
23148 (char *) "oldDC", NULL
23149 };
23150
23151 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
23152 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23153 if (!SWIG_IsOK(res1)) {
23154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
23155 }
23156 arg1 = reinterpret_cast< wxDC * >(argp1);
23157 {
23158 if (!wxPyCheckForApp()) SWIG_fail;
23159 PyThreadState* __tstate = wxPyBeginAllowThreads();
23160 result = (wxMemoryDC *)new wxMemoryDC(arg1);
23161 wxPyEndAllowThreads(__tstate);
23162 if (PyErr_Occurred()) SWIG_fail;
23163 }
23164 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
23165 return resultobj;
23166 fail:
23167 return NULL;
23168 }
23169
23170
23171 SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23172 PyObject *resultobj = 0;
23173 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
23174 wxBitmap *arg2 = 0 ;
23175 void *argp1 = 0 ;
23176 int res1 = 0 ;
23177 void *argp2 = 0 ;
23178 int res2 = 0 ;
23179 PyObject * obj0 = 0 ;
23180 PyObject * obj1 = 0 ;
23181 char * kwnames[] = {
23182 (char *) "self",(char *) "bitmap", NULL
23183 };
23184
23185 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
23186 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
23187 if (!SWIG_IsOK(res1)) {
23188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
23189 }
23190 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
23191 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23192 if (!SWIG_IsOK(res2)) {
23193 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23194 }
23195 if (!argp2) {
23196 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23197 }
23198 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23199 {
23200 PyThreadState* __tstate = wxPyBeginAllowThreads();
23201 (arg1)->SelectObject((wxBitmap const &)*arg2);
23202 wxPyEndAllowThreads(__tstate);
23203 if (PyErr_Occurred()) SWIG_fail;
23204 }
23205 resultobj = SWIG_Py_Void();
23206 return resultobj;
23207 fail:
23208 return NULL;
23209 }
23210
23211
23212 SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23213 PyObject *obj;
23214 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23215 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
23216 return SWIG_Py_Void();
23217 }
23218
23219 SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23220 return SWIG_Python_InitShadowInstance(args);
23221 }
23222
23223 SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23224 PyObject *resultobj = 0;
23225 wxScreenDC *result = 0 ;
23226
23227 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
23228 {
23229 if (!wxPyCheckForApp()) SWIG_fail;
23230 PyThreadState* __tstate = wxPyBeginAllowThreads();
23231 result = (wxScreenDC *)new wxScreenDC();
23232 wxPyEndAllowThreads(__tstate);
23233 if (PyErr_Occurred()) SWIG_fail;
23234 }
23235 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
23236 return resultobj;
23237 fail:
23238 return NULL;
23239 }
23240
23241
23242 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23243 PyObject *resultobj = 0;
23244 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23245 wxWindow *arg2 = (wxWindow *) 0 ;
23246 bool result;
23247 void *argp1 = 0 ;
23248 int res1 = 0 ;
23249 void *argp2 = 0 ;
23250 int res2 = 0 ;
23251 PyObject * obj0 = 0 ;
23252 PyObject * obj1 = 0 ;
23253 char * kwnames[] = {
23254 (char *) "self",(char *) "window", NULL
23255 };
23256
23257 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
23258 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23259 if (!SWIG_IsOK(res1)) {
23260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23261 }
23262 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23263 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
23264 if (!SWIG_IsOK(res2)) {
23265 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
23266 }
23267 arg2 = reinterpret_cast< wxWindow * >(argp2);
23268 {
23269 PyThreadState* __tstate = wxPyBeginAllowThreads();
23270 result = (bool)(arg1)->StartDrawingOnTop(arg2);
23271 wxPyEndAllowThreads(__tstate);
23272 if (PyErr_Occurred()) SWIG_fail;
23273 }
23274 {
23275 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23276 }
23277 return resultobj;
23278 fail:
23279 return NULL;
23280 }
23281
23282
23283 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23284 PyObject *resultobj = 0;
23285 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23286 wxRect *arg2 = (wxRect *) NULL ;
23287 bool result;
23288 void *argp1 = 0 ;
23289 int res1 = 0 ;
23290 void *argp2 = 0 ;
23291 int res2 = 0 ;
23292 PyObject * obj0 = 0 ;
23293 PyObject * obj1 = 0 ;
23294 char * kwnames[] = {
23295 (char *) "self",(char *) "rect", NULL
23296 };
23297
23298 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
23299 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23300 if (!SWIG_IsOK(res1)) {
23301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23302 }
23303 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23304 if (obj1) {
23305 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
23306 if (!SWIG_IsOK(res2)) {
23307 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
23308 }
23309 arg2 = reinterpret_cast< wxRect * >(argp2);
23310 }
23311 {
23312 PyThreadState* __tstate = wxPyBeginAllowThreads();
23313 result = (bool)(arg1)->StartDrawingOnTop(arg2);
23314 wxPyEndAllowThreads(__tstate);
23315 if (PyErr_Occurred()) SWIG_fail;
23316 }
23317 {
23318 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23319 }
23320 return resultobj;
23321 fail:
23322 return NULL;
23323 }
23324
23325
23326 SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23327 PyObject *resultobj = 0;
23328 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23329 bool result;
23330 void *argp1 = 0 ;
23331 int res1 = 0 ;
23332 PyObject *swig_obj[1] ;
23333
23334 if (!args) SWIG_fail;
23335 swig_obj[0] = args;
23336 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23337 if (!SWIG_IsOK(res1)) {
23338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23339 }
23340 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23341 {
23342 PyThreadState* __tstate = wxPyBeginAllowThreads();
23343 result = (bool)(arg1)->EndDrawingOnTop();
23344 wxPyEndAllowThreads(__tstate);
23345 if (PyErr_Occurred()) SWIG_fail;
23346 }
23347 {
23348 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23349 }
23350 return resultobj;
23351 fail:
23352 return NULL;
23353 }
23354
23355
23356 SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23357 PyObject *obj;
23358 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23359 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
23360 return SWIG_Py_Void();
23361 }
23362
23363 SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23364 return SWIG_Python_InitShadowInstance(args);
23365 }
23366
23367 SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23368 PyObject *resultobj = 0;
23369 wxWindow *arg1 = (wxWindow *) 0 ;
23370 wxWindowDC *result = 0 ;
23371 void *argp1 = 0 ;
23372 int res1 = 0 ;
23373 PyObject * obj0 = 0 ;
23374 char * kwnames[] = {
23375 (char *) "win", NULL
23376 };
23377
23378 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
23379 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23380 if (!SWIG_IsOK(res1)) {
23381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23382 }
23383 arg1 = reinterpret_cast< wxWindow * >(argp1);
23384 {
23385 if (!wxPyCheckForApp()) SWIG_fail;
23386 PyThreadState* __tstate = wxPyBeginAllowThreads();
23387 result = (wxWindowDC *)new wxWindowDC(arg1);
23388 wxPyEndAllowThreads(__tstate);
23389 if (PyErr_Occurred()) SWIG_fail;
23390 }
23391 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
23392 return resultobj;
23393 fail:
23394 return NULL;
23395 }
23396
23397
23398 SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23399 PyObject *obj;
23400 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23401 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
23402 return SWIG_Py_Void();
23403 }
23404
23405 SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23406 return SWIG_Python_InitShadowInstance(args);
23407 }
23408
23409 SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23410 PyObject *resultobj = 0;
23411 wxWindow *arg1 = (wxWindow *) 0 ;
23412 wxClientDC *result = 0 ;
23413 void *argp1 = 0 ;
23414 int res1 = 0 ;
23415 PyObject * obj0 = 0 ;
23416 char * kwnames[] = {
23417 (char *) "win", NULL
23418 };
23419
23420 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
23421 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23422 if (!SWIG_IsOK(res1)) {
23423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23424 }
23425 arg1 = reinterpret_cast< wxWindow * >(argp1);
23426 {
23427 if (!wxPyCheckForApp()) SWIG_fail;
23428 PyThreadState* __tstate = wxPyBeginAllowThreads();
23429 result = (wxClientDC *)new wxClientDC(arg1);
23430 wxPyEndAllowThreads(__tstate);
23431 if (PyErr_Occurred()) SWIG_fail;
23432 }
23433 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
23434 return resultobj;
23435 fail:
23436 return NULL;
23437 }
23438
23439
23440 SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23441 PyObject *obj;
23442 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23443 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
23444 return SWIG_Py_Void();
23445 }
23446
23447 SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23448 return SWIG_Python_InitShadowInstance(args);
23449 }
23450
23451 SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23452 PyObject *resultobj = 0;
23453 wxWindow *arg1 = (wxWindow *) 0 ;
23454 wxPaintDC *result = 0 ;
23455 void *argp1 = 0 ;
23456 int res1 = 0 ;
23457 PyObject * obj0 = 0 ;
23458 char * kwnames[] = {
23459 (char *) "win", NULL
23460 };
23461
23462 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
23463 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23464 if (!SWIG_IsOK(res1)) {
23465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23466 }
23467 arg1 = reinterpret_cast< wxWindow * >(argp1);
23468 {
23469 if (!wxPyCheckForApp()) SWIG_fail;
23470 PyThreadState* __tstate = wxPyBeginAllowThreads();
23471 result = (wxPaintDC *)new wxPaintDC(arg1);
23472 wxPyEndAllowThreads(__tstate);
23473 if (PyErr_Occurred()) SWIG_fail;
23474 }
23475 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
23476 return resultobj;
23477 fail:
23478 return NULL;
23479 }
23480
23481
23482 SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23483 PyObject *obj;
23484 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23485 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
23486 return SWIG_Py_Void();
23487 }
23488
23489 SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23490 return SWIG_Python_InitShadowInstance(args);
23491 }
23492
23493 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23494 PyObject *resultobj = 0;
23495 wxDC *arg1 = (wxDC *) 0 ;
23496 wxBitmap const &arg2_defvalue = wxNullBitmap ;
23497 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
23498 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
23499 wxBufferedDC *result = 0 ;
23500 void *argp1 = 0 ;
23501 int res1 = 0 ;
23502 void *argp2 = 0 ;
23503 int res2 = 0 ;
23504 int val3 ;
23505 int ecode3 = 0 ;
23506
23507 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
23508 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23509 if (!SWIG_IsOK(res1)) {
23510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
23511 }
23512 arg1 = reinterpret_cast< wxDC * >(argp1);
23513 if (swig_obj[1]) {
23514 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23515 if (!SWIG_IsOK(res2)) {
23516 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23517 }
23518 if (!argp2) {
23519 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23520 }
23521 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23522 }
23523 if (swig_obj[2]) {
23524 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
23525 if (!SWIG_IsOK(ecode3)) {
23526 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
23527 }
23528 arg3 = static_cast< int >(val3);
23529 }
23530 {
23531 if (!wxPyCheckForApp()) SWIG_fail;
23532 PyThreadState* __tstate = wxPyBeginAllowThreads();
23533 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2,arg3);
23534 wxPyEndAllowThreads(__tstate);
23535 if (PyErr_Occurred()) SWIG_fail;
23536 }
23537 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
23538 return resultobj;
23539 fail:
23540 return NULL;
23541 }
23542
23543
23544 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23545 PyObject *resultobj = 0;
23546 wxDC *arg1 = (wxDC *) 0 ;
23547 wxSize *arg2 = 0 ;
23548 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
23549 wxBufferedDC *result = 0 ;
23550 void *argp1 = 0 ;
23551 int res1 = 0 ;
23552 wxSize temp2 ;
23553 int val3 ;
23554 int ecode3 = 0 ;
23555
23556 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
23557 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23558 if (!SWIG_IsOK(res1)) {
23559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
23560 }
23561 arg1 = reinterpret_cast< wxDC * >(argp1);
23562 {
23563 arg2 = &temp2;
23564 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
23565 }
23566 if (swig_obj[2]) {
23567 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
23568 if (!SWIG_IsOK(ecode3)) {
23569 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
23570 }
23571 arg3 = static_cast< int >(val3);
23572 }
23573 {
23574 if (!wxPyCheckForApp()) SWIG_fail;
23575 PyThreadState* __tstate = wxPyBeginAllowThreads();
23576 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
23577 wxPyEndAllowThreads(__tstate);
23578 if (PyErr_Occurred()) SWIG_fail;
23579 }
23580 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
23581 return resultobj;
23582 fail:
23583 return NULL;
23584 }
23585
23586
23587 SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
23588 int argc;
23589 PyObject *argv[4];
23590
23591 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
23592 --argc;
23593 if ((argc >= 1) && (argc <= 3)) {
23594 int _v = 0;
23595 if (argc > 1) {
23596 {
23597 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxBitmap, 0);
23598 _v = SWIG_CheckState(res);
23599 }
23600 if (!_v) goto check_1;
23601 }
23602 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
23603 }
23604 check_1:
23605
23606 if ((argc >= 2) && (argc <= 3)) {
23607 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
23608 }
23609
23610 fail:
23611 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
23612 return NULL;
23613 }
23614
23615
23616 SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23617 PyObject *resultobj = 0;
23618 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
23619 void *argp1 = 0 ;
23620 int res1 = 0 ;
23621 PyObject *swig_obj[1] ;
23622
23623 if (!args) SWIG_fail;
23624 swig_obj[0] = args;
23625 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
23626 if (!SWIG_IsOK(res1)) {
23627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
23628 }
23629 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
23630 {
23631 PyThreadState* __tstate = wxPyBeginAllowThreads();
23632 delete arg1;
23633
23634 wxPyEndAllowThreads(__tstate);
23635 if (PyErr_Occurred()) SWIG_fail;
23636 }
23637 resultobj = SWIG_Py_Void();
23638 return resultobj;
23639 fail:
23640 return NULL;
23641 }
23642
23643
23644 SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23645 PyObject *resultobj = 0;
23646 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
23647 void *argp1 = 0 ;
23648 int res1 = 0 ;
23649 PyObject *swig_obj[1] ;
23650
23651 if (!args) SWIG_fail;
23652 swig_obj[0] = args;
23653 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
23654 if (!SWIG_IsOK(res1)) {
23655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
23656 }
23657 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
23658 {
23659 PyThreadState* __tstate = wxPyBeginAllowThreads();
23660 (arg1)->UnMask();
23661 wxPyEndAllowThreads(__tstate);
23662 if (PyErr_Occurred()) SWIG_fail;
23663 }
23664 resultobj = SWIG_Py_Void();
23665 return resultobj;
23666 fail:
23667 return NULL;
23668 }
23669
23670
23671 SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23672 PyObject *obj;
23673 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23674 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
23675 return SWIG_Py_Void();
23676 }
23677
23678 SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23679 return SWIG_Python_InitShadowInstance(args);
23680 }
23681
23682 SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23683 PyObject *resultobj = 0;
23684 wxWindow *arg1 = (wxWindow *) 0 ;
23685 wxBitmap const &arg2_defvalue = wxNullBitmap ;
23686 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
23687 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
23688 wxBufferedPaintDC *result = 0 ;
23689 void *argp1 = 0 ;
23690 int res1 = 0 ;
23691 void *argp2 = 0 ;
23692 int res2 = 0 ;
23693 int val3 ;
23694 int ecode3 = 0 ;
23695 PyObject * obj0 = 0 ;
23696 PyObject * obj1 = 0 ;
23697 PyObject * obj2 = 0 ;
23698 char * kwnames[] = {
23699 (char *) "window",(char *) "buffer",(char *) "style", NULL
23700 };
23701
23702 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23703 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23704 if (!SWIG_IsOK(res1)) {
23705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23706 }
23707 arg1 = reinterpret_cast< wxWindow * >(argp1);
23708 if (obj1) {
23709 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23710 if (!SWIG_IsOK(res2)) {
23711 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23712 }
23713 if (!argp2) {
23714 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23715 }
23716 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23717 }
23718 if (obj2) {
23719 ecode3 = SWIG_AsVal_int(obj2, &val3);
23720 if (!SWIG_IsOK(ecode3)) {
23721 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
23722 }
23723 arg3 = static_cast< int >(val3);
23724 }
23725 {
23726 if (!wxPyCheckForApp()) SWIG_fail;
23727 PyThreadState* __tstate = wxPyBeginAllowThreads();
23728 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2,arg3);
23729 wxPyEndAllowThreads(__tstate);
23730 if (PyErr_Occurred()) SWIG_fail;
23731 }
23732 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
23733 return resultobj;
23734 fail:
23735 return NULL;
23736 }
23737
23738
23739 SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23740 PyObject *obj;
23741 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23742 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
23743 return SWIG_Py_Void();
23744 }
23745
23746 SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23747 return SWIG_Python_InitShadowInstance(args);
23748 }
23749
23750 SWIGINTERN PyObject *_wrap_new_AutoBufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23751 PyObject *resultobj = 0;
23752 wxWindow *arg1 = (wxWindow *) 0 ;
23753 wxAutoBufferedPaintDC *result = 0 ;
23754 void *argp1 = 0 ;
23755 int res1 = 0 ;
23756 PyObject * obj0 = 0 ;
23757 char * kwnames[] = {
23758 (char *) "win", NULL
23759 };
23760
23761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AutoBufferedPaintDC",kwnames,&obj0)) SWIG_fail;
23762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23763 if (!SWIG_IsOK(res1)) {
23764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AutoBufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23765 }
23766 arg1 = reinterpret_cast< wxWindow * >(argp1);
23767 {
23768 PyThreadState* __tstate = wxPyBeginAllowThreads();
23769 result = (wxAutoBufferedPaintDC *)new wxAutoBufferedPaintDC(arg1);
23770 wxPyEndAllowThreads(__tstate);
23771 if (PyErr_Occurred()) SWIG_fail;
23772 }
23773 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_POINTER_NEW | 0 );
23774 return resultobj;
23775 fail:
23776 return NULL;
23777 }
23778
23779
23780 SWIGINTERN PyObject *AutoBufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23781 PyObject *obj;
23782 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23783 SWIG_TypeNewClientData(SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_NewClientData(obj));
23784 return SWIG_Py_Void();
23785 }
23786
23787 SWIGINTERN PyObject *AutoBufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23788 return SWIG_Python_InitShadowInstance(args);
23789 }
23790
23791 SWIGINTERN PyObject *_wrap_AutoBufferedPaintDCFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23792 PyObject *resultobj = 0;
23793 wxWindow *arg1 = (wxWindow *) 0 ;
23794 wxDC *result = 0 ;
23795 void *argp1 = 0 ;
23796 int res1 = 0 ;
23797 PyObject * obj0 = 0 ;
23798 char * kwnames[] = {
23799 (char *) "window", NULL
23800 };
23801
23802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AutoBufferedPaintDCFactory",kwnames,&obj0)) SWIG_fail;
23803 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23804 if (!SWIG_IsOK(res1)) {
23805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AutoBufferedPaintDCFactory" "', expected argument " "1"" of type '" "wxWindow *""'");
23806 }
23807 arg1 = reinterpret_cast< wxWindow * >(argp1);
23808 {
23809 PyThreadState* __tstate = wxPyBeginAllowThreads();
23810 result = (wxDC *)wxAutoBufferedPaintDCFactory(arg1);
23811 wxPyEndAllowThreads(__tstate);
23812 if (PyErr_Occurred()) SWIG_fail;
23813 }
23814 {
23815 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN);
23816 }
23817 return resultobj;
23818 fail:
23819 return NULL;
23820 }
23821
23822
23823 SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23824 PyObject *resultobj = 0;
23825 wxDC *arg1 = 0 ;
23826 bool arg2 ;
23827 wxMirrorDC *result = 0 ;
23828 void *argp1 = 0 ;
23829 int res1 = 0 ;
23830 bool val2 ;
23831 int ecode2 = 0 ;
23832 PyObject * obj0 = 0 ;
23833 PyObject * obj1 = 0 ;
23834 char * kwnames[] = {
23835 (char *) "dc",(char *) "mirror", NULL
23836 };
23837
23838 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
23839 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23840 if (!SWIG_IsOK(res1)) {
23841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
23842 }
23843 if (!argp1) {
23844 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
23845 }
23846 arg1 = reinterpret_cast< wxDC * >(argp1);
23847 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23848 if (!SWIG_IsOK(ecode2)) {
23849 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
23850 }
23851 arg2 = static_cast< bool >(val2);
23852 {
23853 if (!wxPyCheckForApp()) SWIG_fail;
23854 PyThreadState* __tstate = wxPyBeginAllowThreads();
23855 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
23856 wxPyEndAllowThreads(__tstate);
23857 if (PyErr_Occurred()) SWIG_fail;
23858 }
23859 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
23860 return resultobj;
23861 fail:
23862 return NULL;
23863 }
23864
23865
23866 SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23867 PyObject *obj;
23868 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23869 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
23870 return SWIG_Py_Void();
23871 }
23872
23873 SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23874 return SWIG_Python_InitShadowInstance(args);
23875 }
23876
23877 SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23878 PyObject *resultobj = 0;
23879 wxPrintData *arg1 = 0 ;
23880 wxPostScriptDC *result = 0 ;
23881 void *argp1 = 0 ;
23882 int res1 = 0 ;
23883 PyObject * obj0 = 0 ;
23884 char * kwnames[] = {
23885 (char *) "printData", NULL
23886 };
23887
23888 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
23889 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
23890 if (!SWIG_IsOK(res1)) {
23891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
23892 }
23893 if (!argp1) {
23894 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
23895 }
23896 arg1 = reinterpret_cast< wxPrintData * >(argp1);
23897 {
23898 if (!wxPyCheckForApp()) SWIG_fail;
23899 PyThreadState* __tstate = wxPyBeginAllowThreads();
23900 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
23901 wxPyEndAllowThreads(__tstate);
23902 if (PyErr_Occurred()) SWIG_fail;
23903 }
23904 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
23905 return resultobj;
23906 fail:
23907 return NULL;
23908 }
23909
23910
23911 SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23912 PyObject *resultobj = 0;
23913 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
23914 wxPrintData *result = 0 ;
23915 void *argp1 = 0 ;
23916 int res1 = 0 ;
23917 PyObject *swig_obj[1] ;
23918
23919 if (!args) SWIG_fail;
23920 swig_obj[0] = args;
23921 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
23922 if (!SWIG_IsOK(res1)) {
23923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
23924 }
23925 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
23926 {
23927 PyThreadState* __tstate = wxPyBeginAllowThreads();
23928 {
23929 wxPrintData &_result_ref = (arg1)->GetPrintData();
23930 result = (wxPrintData *) &_result_ref;
23931 }
23932 wxPyEndAllowThreads(__tstate);
23933 if (PyErr_Occurred()) SWIG_fail;
23934 }
23935 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
23936 return resultobj;
23937 fail:
23938 return NULL;
23939 }
23940
23941
23942 SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23943 PyObject *resultobj = 0;
23944 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
23945 wxPrintData *arg2 = 0 ;
23946 void *argp1 = 0 ;
23947 int res1 = 0 ;
23948 void *argp2 = 0 ;
23949 int res2 = 0 ;
23950 PyObject * obj0 = 0 ;
23951 PyObject * obj1 = 0 ;
23952 char * kwnames[] = {
23953 (char *) "self",(char *) "data", NULL
23954 };
23955
23956 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
23957 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
23958 if (!SWIG_IsOK(res1)) {
23959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
23960 }
23961 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
23962 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
23963 if (!SWIG_IsOK(res2)) {
23964 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
23965 }
23966 if (!argp2) {
23967 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
23968 }
23969 arg2 = reinterpret_cast< wxPrintData * >(argp2);
23970 {
23971 PyThreadState* __tstate = wxPyBeginAllowThreads();
23972 (arg1)->SetPrintData((wxPrintData const &)*arg2);
23973 wxPyEndAllowThreads(__tstate);
23974 if (PyErr_Occurred()) SWIG_fail;
23975 }
23976 resultobj = SWIG_Py_Void();
23977 return resultobj;
23978 fail:
23979 return NULL;
23980 }
23981
23982
23983 SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23984 PyObject *resultobj = 0;
23985 int arg1 ;
23986 int val1 ;
23987 int ecode1 = 0 ;
23988 PyObject * obj0 = 0 ;
23989 char * kwnames[] = {
23990 (char *) "ppi", NULL
23991 };
23992
23993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
23994 ecode1 = SWIG_AsVal_int(obj0, &val1);
23995 if (!SWIG_IsOK(ecode1)) {
23996 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
23997 }
23998 arg1 = static_cast< int >(val1);
23999 {
24000 PyThreadState* __tstate = wxPyBeginAllowThreads();
24001 wxPostScriptDC::SetResolution(arg1);
24002 wxPyEndAllowThreads(__tstate);
24003 if (PyErr_Occurred()) SWIG_fail;
24004 }
24005 resultobj = SWIG_Py_Void();
24006 return resultobj;
24007 fail:
24008 return NULL;
24009 }
24010
24011
24012 SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24013 PyObject *resultobj = 0;
24014 int result;
24015
24016 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
24017 {
24018 PyThreadState* __tstate = wxPyBeginAllowThreads();
24019 result = (int)wxPostScriptDC::GetResolution();
24020 wxPyEndAllowThreads(__tstate);
24021 if (PyErr_Occurred()) SWIG_fail;
24022 }
24023 resultobj = SWIG_From_int(static_cast< int >(result));
24024 return resultobj;
24025 fail:
24026 return NULL;
24027 }
24028
24029
24030 SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24031 PyObject *obj;
24032 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24033 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
24034 return SWIG_Py_Void();
24035 }
24036
24037 SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24038 return SWIG_Python_InitShadowInstance(args);
24039 }
24040
24041 SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24042 PyObject *resultobj = 0;
24043 wxString const &arg1_defvalue = wxPyEmptyString ;
24044 wxString *arg1 = (wxString *) &arg1_defvalue ;
24045 wxMetaFile *result = 0 ;
24046 bool temp1 = false ;
24047 PyObject * obj0 = 0 ;
24048 char * kwnames[] = {
24049 (char *) "filename", NULL
24050 };
24051
24052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
24053 if (obj0) {
24054 {
24055 arg1 = wxString_in_helper(obj0);
24056 if (arg1 == NULL) SWIG_fail;
24057 temp1 = true;
24058 }
24059 }
24060 {
24061 if (!wxPyCheckForApp()) SWIG_fail;
24062 PyThreadState* __tstate = wxPyBeginAllowThreads();
24063 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
24064 wxPyEndAllowThreads(__tstate);
24065 if (PyErr_Occurred()) SWIG_fail;
24066 }
24067 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
24068 {
24069 if (temp1)
24070 delete arg1;
24071 }
24072 return resultobj;
24073 fail:
24074 {
24075 if (temp1)
24076 delete arg1;
24077 }
24078 return NULL;
24079 }
24080
24081
24082 SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24083 PyObject *obj;
24084 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24085 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
24086 return SWIG_Py_Void();
24087 }
24088
24089 SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24090 return SWIG_Python_InitShadowInstance(args);
24091 }
24092
24093 SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24094 PyObject *resultobj = 0;
24095 wxString const &arg1_defvalue = wxPyEmptyString ;
24096 wxString *arg1 = (wxString *) &arg1_defvalue ;
24097 int arg2 = (int) 0 ;
24098 int arg3 = (int) 0 ;
24099 wxString const &arg4_defvalue = wxPyEmptyString ;
24100 wxString *arg4 = (wxString *) &arg4_defvalue ;
24101 wxMetaFileDC *result = 0 ;
24102 bool temp1 = false ;
24103 int val2 ;
24104 int ecode2 = 0 ;
24105 int val3 ;
24106 int ecode3 = 0 ;
24107 bool temp4 = false ;
24108 PyObject * obj0 = 0 ;
24109 PyObject * obj1 = 0 ;
24110 PyObject * obj2 = 0 ;
24111 PyObject * obj3 = 0 ;
24112 char * kwnames[] = {
24113 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
24114 };
24115
24116 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24117 if (obj0) {
24118 {
24119 arg1 = wxString_in_helper(obj0);
24120 if (arg1 == NULL) SWIG_fail;
24121 temp1 = true;
24122 }
24123 }
24124 if (obj1) {
24125 ecode2 = SWIG_AsVal_int(obj1, &val2);
24126 if (!SWIG_IsOK(ecode2)) {
24127 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
24128 }
24129 arg2 = static_cast< int >(val2);
24130 }
24131 if (obj2) {
24132 ecode3 = SWIG_AsVal_int(obj2, &val3);
24133 if (!SWIG_IsOK(ecode3)) {
24134 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
24135 }
24136 arg3 = static_cast< int >(val3);
24137 }
24138 if (obj3) {
24139 {
24140 arg4 = wxString_in_helper(obj3);
24141 if (arg4 == NULL) SWIG_fail;
24142 temp4 = true;
24143 }
24144 }
24145 {
24146 if (!wxPyCheckForApp()) SWIG_fail;
24147 PyThreadState* __tstate = wxPyBeginAllowThreads();
24148 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
24149 wxPyEndAllowThreads(__tstate);
24150 if (PyErr_Occurred()) SWIG_fail;
24151 }
24152 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
24153 {
24154 if (temp1)
24155 delete arg1;
24156 }
24157 {
24158 if (temp4)
24159 delete arg4;
24160 }
24161 return resultobj;
24162 fail:
24163 {
24164 if (temp1)
24165 delete arg1;
24166 }
24167 {
24168 if (temp4)
24169 delete arg4;
24170 }
24171 return NULL;
24172 }
24173
24174
24175 SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24176 PyObject *obj;
24177 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24178 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
24179 return SWIG_Py_Void();
24180 }
24181
24182 SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24183 return SWIG_Python_InitShadowInstance(args);
24184 }
24185
24186 SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24187 PyObject *resultobj = 0;
24188 wxPrintData *arg1 = 0 ;
24189 wxPrinterDC *result = 0 ;
24190 void *argp1 = 0 ;
24191 int res1 = 0 ;
24192 PyObject * obj0 = 0 ;
24193 char * kwnames[] = {
24194 (char *) "printData", NULL
24195 };
24196
24197 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
24198 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
24199 if (!SWIG_IsOK(res1)) {
24200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24201 }
24202 if (!argp1) {
24203 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24204 }
24205 arg1 = reinterpret_cast< wxPrintData * >(argp1);
24206 {
24207 if (!wxPyCheckForApp()) SWIG_fail;
24208 PyThreadState* __tstate = wxPyBeginAllowThreads();
24209 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
24210 wxPyEndAllowThreads(__tstate);
24211 if (PyErr_Occurred()) SWIG_fail;
24212 }
24213 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
24214 return resultobj;
24215 fail:
24216 return NULL;
24217 }
24218
24219
24220 SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24221 PyObject *obj;
24222 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24223 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
24224 return SWIG_Py_Void();
24225 }
24226
24227 SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24228 return SWIG_Python_InitShadowInstance(args);
24229 }
24230
24231 SWIGINTERN PyObject *_wrap_delete_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24232 PyObject *resultobj = 0;
24233 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24234 void *argp1 = 0 ;
24235 int res1 = 0 ;
24236 PyObject *swig_obj[1] ;
24237
24238 if (!args) SWIG_fail;
24239 swig_obj[0] = args;
24240 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_DISOWN | 0 );
24241 if (!SWIG_IsOK(res1)) {
24242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24243 }
24244 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24245 {
24246 delete arg1;
24247
24248 if (PyErr_Occurred()) SWIG_fail;
24249 }
24250 resultobj = SWIG_Py_Void();
24251 return resultobj;
24252 fail:
24253 return NULL;
24254 }
24255
24256
24257 SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24258 PyObject *resultobj = 0;
24259 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24260 wxDouble arg2 ;
24261 wxDouble arg3 ;
24262 void *argp1 = 0 ;
24263 int res1 = 0 ;
24264 double val2 ;
24265 int ecode2 = 0 ;
24266 double val3 ;
24267 int ecode3 = 0 ;
24268 PyObject * obj0 = 0 ;
24269 PyObject * obj1 = 0 ;
24270 PyObject * obj2 = 0 ;
24271 char * kwnames[] = {
24272 (char *) "self",(char *) "x",(char *) "y", NULL
24273 };
24274
24275 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsPath_MoveToPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24276 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24277 if (!SWIG_IsOK(res1)) {
24278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24279 }
24280 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24281 ecode2 = SWIG_AsVal_double(obj1, &val2);
24282 if (!SWIG_IsOK(ecode2)) {
24283 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
24284 }
24285 arg2 = static_cast< wxDouble >(val2);
24286 ecode3 = SWIG_AsVal_double(obj2, &val3);
24287 if (!SWIG_IsOK(ecode3)) {
24288 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
24289 }
24290 arg3 = static_cast< wxDouble >(val3);
24291 {
24292 (arg1)->MoveToPoint(arg2,arg3);
24293 if (PyErr_Occurred()) SWIG_fail;
24294 }
24295 resultobj = SWIG_Py_Void();
24296 return resultobj;
24297 fail:
24298 return NULL;
24299 }
24300
24301
24302 SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24303 PyObject *resultobj = 0;
24304 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24305 wxDouble arg2 ;
24306 wxDouble arg3 ;
24307 void *argp1 = 0 ;
24308 int res1 = 0 ;
24309 double val2 ;
24310 int ecode2 = 0 ;
24311 double val3 ;
24312 int ecode3 = 0 ;
24313 PyObject * obj0 = 0 ;
24314 PyObject * obj1 = 0 ;
24315 PyObject * obj2 = 0 ;
24316 char * kwnames[] = {
24317 (char *) "self",(char *) "x",(char *) "y", NULL
24318 };
24319
24320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsPath_AddLineToPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24322 if (!SWIG_IsOK(res1)) {
24323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24324 }
24325 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24326 ecode2 = SWIG_AsVal_double(obj1, &val2);
24327 if (!SWIG_IsOK(ecode2)) {
24328 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
24329 }
24330 arg2 = static_cast< wxDouble >(val2);
24331 ecode3 = SWIG_AsVal_double(obj2, &val3);
24332 if (!SWIG_IsOK(ecode3)) {
24333 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
24334 }
24335 arg3 = static_cast< wxDouble >(val3);
24336 {
24337 (arg1)->AddLineToPoint(arg2,arg3);
24338 if (PyErr_Occurred()) SWIG_fail;
24339 }
24340 resultobj = SWIG_Py_Void();
24341 return resultobj;
24342 fail:
24343 return NULL;
24344 }
24345
24346
24347 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24348 PyObject *resultobj = 0;
24349 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24350 wxDouble arg2 ;
24351 wxDouble arg3 ;
24352 wxDouble arg4 ;
24353 wxDouble arg5 ;
24354 wxDouble arg6 ;
24355 wxDouble arg7 ;
24356 void *argp1 = 0 ;
24357 int res1 = 0 ;
24358 double val2 ;
24359 int ecode2 = 0 ;
24360 double val3 ;
24361 int ecode3 = 0 ;
24362 double val4 ;
24363 int ecode4 = 0 ;
24364 double val5 ;
24365 int ecode5 = 0 ;
24366 double val6 ;
24367 int ecode6 = 0 ;
24368 double val7 ;
24369 int ecode7 = 0 ;
24370 PyObject * obj0 = 0 ;
24371 PyObject * obj1 = 0 ;
24372 PyObject * obj2 = 0 ;
24373 PyObject * obj3 = 0 ;
24374 PyObject * obj4 = 0 ;
24375 PyObject * obj5 = 0 ;
24376 PyObject * obj6 = 0 ;
24377 char * kwnames[] = {
24378 (char *) "self",(char *) "cx1",(char *) "cy1",(char *) "cx2",(char *) "cy2",(char *) "x",(char *) "y", NULL
24379 };
24380
24381 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsPath_AddCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
24382 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24383 if (!SWIG_IsOK(res1)) {
24384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24385 }
24386 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24387 ecode2 = SWIG_AsVal_double(obj1, &val2);
24388 if (!SWIG_IsOK(ecode2)) {
24389 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
24390 }
24391 arg2 = static_cast< wxDouble >(val2);
24392 ecode3 = SWIG_AsVal_double(obj2, &val3);
24393 if (!SWIG_IsOK(ecode3)) {
24394 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
24395 }
24396 arg3 = static_cast< wxDouble >(val3);
24397 ecode4 = SWIG_AsVal_double(obj3, &val4);
24398 if (!SWIG_IsOK(ecode4)) {
24399 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
24400 }
24401 arg4 = static_cast< wxDouble >(val4);
24402 ecode5 = SWIG_AsVal_double(obj4, &val5);
24403 if (!SWIG_IsOK(ecode5)) {
24404 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
24405 }
24406 arg5 = static_cast< wxDouble >(val5);
24407 ecode6 = SWIG_AsVal_double(obj5, &val6);
24408 if (!SWIG_IsOK(ecode6)) {
24409 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
24410 }
24411 arg6 = static_cast< wxDouble >(val6);
24412 ecode7 = SWIG_AsVal_double(obj6, &val7);
24413 if (!SWIG_IsOK(ecode7)) {
24414 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "7"" of type '" "wxDouble""'");
24415 }
24416 arg7 = static_cast< wxDouble >(val7);
24417 {
24418 (arg1)->AddCurveToPoint(arg2,arg3,arg4,arg5,arg6,arg7);
24419 if (PyErr_Occurred()) SWIG_fail;
24420 }
24421 resultobj = SWIG_Py_Void();
24422 return resultobj;
24423 fail:
24424 return NULL;
24425 }
24426
24427
24428 SWIGINTERN PyObject *_wrap_GraphicsPath_CloseSubpath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24429 PyObject *resultobj = 0;
24430 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24431 void *argp1 = 0 ;
24432 int res1 = 0 ;
24433 PyObject *swig_obj[1] ;
24434
24435 if (!args) SWIG_fail;
24436 swig_obj[0] = args;
24437 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24438 if (!SWIG_IsOK(res1)) {
24439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_CloseSubpath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24440 }
24441 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24442 {
24443 (arg1)->CloseSubpath();
24444 if (PyErr_Occurred()) SWIG_fail;
24445 }
24446 resultobj = SWIG_Py_Void();
24447 return resultobj;
24448 fail:
24449 return NULL;
24450 }
24451
24452
24453 SWIGINTERN PyObject *_wrap_GraphicsPath_GetCurrentPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24454 PyObject *resultobj = 0;
24455 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24456 wxPoint2D result;
24457 void *argp1 = 0 ;
24458 int res1 = 0 ;
24459 PyObject *swig_obj[1] ;
24460
24461 if (!args) SWIG_fail;
24462 swig_obj[0] = args;
24463 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24464 if (!SWIG_IsOK(res1)) {
24465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetCurrentPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24466 }
24467 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24468 {
24469 result = (arg1)->GetCurrentPoint();
24470 if (PyErr_Occurred()) SWIG_fail;
24471 }
24472 resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
24473 return resultobj;
24474 fail:
24475 return NULL;
24476 }
24477
24478
24479 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24480 PyObject *resultobj = 0;
24481 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24482 wxDouble arg2 ;
24483 wxDouble arg3 ;
24484 wxDouble arg4 ;
24485 wxDouble arg5 ;
24486 wxDouble arg6 ;
24487 bool arg7 ;
24488 void *argp1 = 0 ;
24489 int res1 = 0 ;
24490 double val2 ;
24491 int ecode2 = 0 ;
24492 double val3 ;
24493 int ecode3 = 0 ;
24494 double val4 ;
24495 int ecode4 = 0 ;
24496 double val5 ;
24497 int ecode5 = 0 ;
24498 double val6 ;
24499 int ecode6 = 0 ;
24500 bool val7 ;
24501 int ecode7 = 0 ;
24502 PyObject * obj0 = 0 ;
24503 PyObject * obj1 = 0 ;
24504 PyObject * obj2 = 0 ;
24505 PyObject * obj3 = 0 ;
24506 PyObject * obj4 = 0 ;
24507 PyObject * obj5 = 0 ;
24508 PyObject * obj6 = 0 ;
24509 char * kwnames[] = {
24510 (char *) "self",(char *) "x",(char *) "y",(char *) "r",(char *) "startAngle",(char *) "endAngle",(char *) "clockwise", NULL
24511 };
24512
24513 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsPath_AddArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
24514 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24515 if (!SWIG_IsOK(res1)) {
24516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24517 }
24518 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24519 ecode2 = SWIG_AsVal_double(obj1, &val2);
24520 if (!SWIG_IsOK(ecode2)) {
24521 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArc" "', expected argument " "2"" of type '" "wxDouble""'");
24522 }
24523 arg2 = static_cast< wxDouble >(val2);
24524 ecode3 = SWIG_AsVal_double(obj2, &val3);
24525 if (!SWIG_IsOK(ecode3)) {
24526 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
24527 }
24528 arg3 = static_cast< wxDouble >(val3);
24529 ecode4 = SWIG_AsVal_double(obj3, &val4);
24530 if (!SWIG_IsOK(ecode4)) {
24531 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
24532 }
24533 arg4 = static_cast< wxDouble >(val4);
24534 ecode5 = SWIG_AsVal_double(obj4, &val5);
24535 if (!SWIG_IsOK(ecode5)) {
24536 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
24537 }
24538 arg5 = static_cast< wxDouble >(val5);
24539 ecode6 = SWIG_AsVal_double(obj5, &val6);
24540 if (!SWIG_IsOK(ecode6)) {
24541 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "wxDouble""'");
24542 }
24543 arg6 = static_cast< wxDouble >(val6);
24544 ecode7 = SWIG_AsVal_bool(obj6, &val7);
24545 if (!SWIG_IsOK(ecode7)) {
24546 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'");
24547 }
24548 arg7 = static_cast< bool >(val7);
24549 {
24550 (arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7);
24551 if (PyErr_Occurred()) SWIG_fail;
24552 }
24553 resultobj = SWIG_Py_Void();
24554 return resultobj;
24555 fail:
24556 return NULL;
24557 }
24558
24559
24560 SWIGINTERN PyObject *_wrap_GraphicsPath_AddQuadCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24561 PyObject *resultobj = 0;
24562 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24563 wxDouble arg2 ;
24564 wxDouble arg3 ;
24565 wxDouble arg4 ;
24566 wxDouble arg5 ;
24567 void *argp1 = 0 ;
24568 int res1 = 0 ;
24569 double val2 ;
24570 int ecode2 = 0 ;
24571 double val3 ;
24572 int ecode3 = 0 ;
24573 double val4 ;
24574 int ecode4 = 0 ;
24575 double val5 ;
24576 int ecode5 = 0 ;
24577 PyObject * obj0 = 0 ;
24578 PyObject * obj1 = 0 ;
24579 PyObject * obj2 = 0 ;
24580 PyObject * obj3 = 0 ;
24581 PyObject * obj4 = 0 ;
24582 char * kwnames[] = {
24583 (char *) "self",(char *) "cx",(char *) "cy",(char *) "x",(char *) "y", NULL
24584 };
24585
24586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddQuadCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24587 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24588 if (!SWIG_IsOK(res1)) {
24589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24590 }
24591 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24592 ecode2 = SWIG_AsVal_double(obj1, &val2);
24593 if (!SWIG_IsOK(ecode2)) {
24594 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
24595 }
24596 arg2 = static_cast< wxDouble >(val2);
24597 ecode3 = SWIG_AsVal_double(obj2, &val3);
24598 if (!SWIG_IsOK(ecode3)) {
24599 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
24600 }
24601 arg3 = static_cast< wxDouble >(val3);
24602 ecode4 = SWIG_AsVal_double(obj3, &val4);
24603 if (!SWIG_IsOK(ecode4)) {
24604 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
24605 }
24606 arg4 = static_cast< wxDouble >(val4);
24607 ecode5 = SWIG_AsVal_double(obj4, &val5);
24608 if (!SWIG_IsOK(ecode5)) {
24609 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
24610 }
24611 arg5 = static_cast< wxDouble >(val5);
24612 {
24613 (arg1)->AddQuadCurveToPoint(arg2,arg3,arg4,arg5);
24614 if (PyErr_Occurred()) SWIG_fail;
24615 }
24616 resultobj = SWIG_Py_Void();
24617 return resultobj;
24618 fail:
24619 return NULL;
24620 }
24621
24622
24623 SWIGINTERN PyObject *_wrap_GraphicsPath_AddRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24624 PyObject *resultobj = 0;
24625 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24626 wxDouble arg2 ;
24627 wxDouble arg3 ;
24628 wxDouble arg4 ;
24629 wxDouble arg5 ;
24630 void *argp1 = 0 ;
24631 int res1 = 0 ;
24632 double val2 ;
24633 int ecode2 = 0 ;
24634 double val3 ;
24635 int ecode3 = 0 ;
24636 double val4 ;
24637 int ecode4 = 0 ;
24638 double val5 ;
24639 int ecode5 = 0 ;
24640 PyObject * obj0 = 0 ;
24641 PyObject * obj1 = 0 ;
24642 PyObject * obj2 = 0 ;
24643 PyObject * obj3 = 0 ;
24644 PyObject * obj4 = 0 ;
24645 char * kwnames[] = {
24646 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
24647 };
24648
24649 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24650 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24651 if (!SWIG_IsOK(res1)) {
24652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24653 }
24654 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24655 ecode2 = SWIG_AsVal_double(obj1, &val2);
24656 if (!SWIG_IsOK(ecode2)) {
24657 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
24658 }
24659 arg2 = static_cast< wxDouble >(val2);
24660 ecode3 = SWIG_AsVal_double(obj2, &val3);
24661 if (!SWIG_IsOK(ecode3)) {
24662 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
24663 }
24664 arg3 = static_cast< wxDouble >(val3);
24665 ecode4 = SWIG_AsVal_double(obj3, &val4);
24666 if (!SWIG_IsOK(ecode4)) {
24667 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
24668 }
24669 arg4 = static_cast< wxDouble >(val4);
24670 ecode5 = SWIG_AsVal_double(obj4, &val5);
24671 if (!SWIG_IsOK(ecode5)) {
24672 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
24673 }
24674 arg5 = static_cast< wxDouble >(val5);
24675 {
24676 (arg1)->AddRectangle(arg2,arg3,arg4,arg5);
24677 if (PyErr_Occurred()) SWIG_fail;
24678 }
24679 resultobj = SWIG_Py_Void();
24680 return resultobj;
24681 fail:
24682 return NULL;
24683 }
24684
24685
24686 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24687 PyObject *resultobj = 0;
24688 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24689 wxDouble arg2 ;
24690 wxDouble arg3 ;
24691 wxDouble arg4 ;
24692 void *argp1 = 0 ;
24693 int res1 = 0 ;
24694 double val2 ;
24695 int ecode2 = 0 ;
24696 double val3 ;
24697 int ecode3 = 0 ;
24698 double val4 ;
24699 int ecode4 = 0 ;
24700 PyObject * obj0 = 0 ;
24701 PyObject * obj1 = 0 ;
24702 PyObject * obj2 = 0 ;
24703 PyObject * obj3 = 0 ;
24704 char * kwnames[] = {
24705 (char *) "self",(char *) "x",(char *) "y",(char *) "r", NULL
24706 };
24707
24708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsPath_AddCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24709 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24710 if (!SWIG_IsOK(res1)) {
24711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCircle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24712 }
24713 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24714 ecode2 = SWIG_AsVal_double(obj1, &val2);
24715 if (!SWIG_IsOK(ecode2)) {
24716 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCircle" "', expected argument " "2"" of type '" "wxDouble""'");
24717 }
24718 arg2 = static_cast< wxDouble >(val2);
24719 ecode3 = SWIG_AsVal_double(obj2, &val3);
24720 if (!SWIG_IsOK(ecode3)) {
24721 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCircle" "', expected argument " "3"" of type '" "wxDouble""'");
24722 }
24723 arg3 = static_cast< wxDouble >(val3);
24724 ecode4 = SWIG_AsVal_double(obj3, &val4);
24725 if (!SWIG_IsOK(ecode4)) {
24726 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCircle" "', expected argument " "4"" of type '" "wxDouble""'");
24727 }
24728 arg4 = static_cast< wxDouble >(val4);
24729 {
24730 (arg1)->AddCircle(arg2,arg3,arg4);
24731 if (PyErr_Occurred()) SWIG_fail;
24732 }
24733 resultobj = SWIG_Py_Void();
24734 return resultobj;
24735 fail:
24736 return NULL;
24737 }
24738
24739
24740 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArcToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24741 PyObject *resultobj = 0;
24742 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24743 wxDouble arg2 ;
24744 wxDouble arg3 ;
24745 wxDouble arg4 ;
24746 wxDouble arg5 ;
24747 wxDouble arg6 ;
24748 void *argp1 = 0 ;
24749 int res1 = 0 ;
24750 double val2 ;
24751 int ecode2 = 0 ;
24752 double val3 ;
24753 int ecode3 = 0 ;
24754 double val4 ;
24755 int ecode4 = 0 ;
24756 double val5 ;
24757 int ecode5 = 0 ;
24758 double val6 ;
24759 int ecode6 = 0 ;
24760 PyObject * obj0 = 0 ;
24761 PyObject * obj1 = 0 ;
24762 PyObject * obj2 = 0 ;
24763 PyObject * obj3 = 0 ;
24764 PyObject * obj4 = 0 ;
24765 PyObject * obj5 = 0 ;
24766 char * kwnames[] = {
24767 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "r", NULL
24768 };
24769
24770 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddArcToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
24771 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24772 if (!SWIG_IsOK(res1)) {
24773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24774 }
24775 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24776 ecode2 = SWIG_AsVal_double(obj1, &val2);
24777 if (!SWIG_IsOK(ecode2)) {
24778 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
24779 }
24780 arg2 = static_cast< wxDouble >(val2);
24781 ecode3 = SWIG_AsVal_double(obj2, &val3);
24782 if (!SWIG_IsOK(ecode3)) {
24783 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
24784 }
24785 arg3 = static_cast< wxDouble >(val3);
24786 ecode4 = SWIG_AsVal_double(obj3, &val4);
24787 if (!SWIG_IsOK(ecode4)) {
24788 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
24789 }
24790 arg4 = static_cast< wxDouble >(val4);
24791 ecode5 = SWIG_AsVal_double(obj4, &val5);
24792 if (!SWIG_IsOK(ecode5)) {
24793 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
24794 }
24795 arg5 = static_cast< wxDouble >(val5);
24796 ecode6 = SWIG_AsVal_double(obj5, &val6);
24797 if (!SWIG_IsOK(ecode6)) {
24798 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
24799 }
24800 arg6 = static_cast< wxDouble >(val6);
24801 {
24802 (arg1)->AddArcToPoint(arg2,arg3,arg4,arg5,arg6);
24803 if (PyErr_Occurred()) SWIG_fail;
24804 }
24805 resultobj = SWIG_Py_Void();
24806 return resultobj;
24807 fail:
24808 return NULL;
24809 }
24810
24811
24812 SWIGINTERN PyObject *GraphicsPath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24813 PyObject *obj;
24814 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24815 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPath, SWIG_NewClientData(obj));
24816 return SWIG_Py_Void();
24817 }
24818
24819 SWIGINTERN PyObject *_wrap_delete_GraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24820 PyObject *resultobj = 0;
24821 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
24822 void *argp1 = 0 ;
24823 int res1 = 0 ;
24824 PyObject *swig_obj[1] ;
24825
24826 if (!args) SWIG_fail;
24827 swig_obj[0] = args;
24828 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_DISOWN | 0 );
24829 if (!SWIG_IsOK(res1)) {
24830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
24831 }
24832 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
24833 {
24834 delete arg1;
24835
24836 if (PyErr_Occurred()) SWIG_fail;
24837 }
24838 resultobj = SWIG_Py_Void();
24839 return resultobj;
24840 fail:
24841 return NULL;
24842 }
24843
24844
24845 SWIGINTERN PyObject *_wrap_GraphicsContext_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24846 PyObject *resultobj = 0;
24847 wxWindowDC *arg1 = 0 ;
24848 wxGraphicsContext *result = 0 ;
24849 void *argp1 = 0 ;
24850 int res1 = 0 ;
24851 PyObject * obj0 = 0 ;
24852 char * kwnames[] = {
24853 (char *) "dc", NULL
24854 };
24855
24856 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_Create",kwnames,&obj0)) SWIG_fail;
24857 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
24858 if (!SWIG_IsOK(res1)) {
24859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
24860 }
24861 if (!argp1) {
24862 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
24863 }
24864 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
24865 {
24866 result = (wxGraphicsContext *)wxGraphicsContext::Create((wxWindowDC const &)*arg1);
24867 if (PyErr_Occurred()) SWIG_fail;
24868 }
24869 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
24870 return resultobj;
24871 fail:
24872 return NULL;
24873 }
24874
24875
24876 SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24877 PyObject *resultobj = 0;
24878 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
24879 wxGraphicsPath *result = 0 ;
24880 void *argp1 = 0 ;
24881 int res1 = 0 ;
24882 PyObject *swig_obj[1] ;
24883
24884 if (!args) SWIG_fail;
24885 swig_obj[0] = args;
24886 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
24887 if (!SWIG_IsOK(res1)) {
24888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
24889 }
24890 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
24891 {
24892 result = (wxGraphicsPath *)(arg1)->CreatePath();
24893 if (PyErr_Occurred()) SWIG_fail;
24894 }
24895 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24896 return resultobj;
24897 fail:
24898 return NULL;
24899 }
24900
24901
24902 SWIGINTERN PyObject *_wrap_GraphicsContext_PushState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24903 PyObject *resultobj = 0;
24904 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
24905 void *argp1 = 0 ;
24906 int res1 = 0 ;
24907 PyObject *swig_obj[1] ;
24908
24909 if (!args) SWIG_fail;
24910 swig_obj[0] = args;
24911 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
24912 if (!SWIG_IsOK(res1)) {
24913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PushState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
24914 }
24915 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
24916 {
24917 (arg1)->PushState();
24918 if (PyErr_Occurred()) SWIG_fail;
24919 }
24920 resultobj = SWIG_Py_Void();
24921 return resultobj;
24922 fail:
24923 return NULL;
24924 }
24925
24926
24927 SWIGINTERN PyObject *_wrap_GraphicsContext_PopState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24928 PyObject *resultobj = 0;
24929 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
24930 void *argp1 = 0 ;
24931 int res1 = 0 ;
24932 PyObject *swig_obj[1] ;
24933
24934 if (!args) SWIG_fail;
24935 swig_obj[0] = args;
24936 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
24937 if (!SWIG_IsOK(res1)) {
24938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PopState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
24939 }
24940 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
24941 {
24942 (arg1)->PopState();
24943 if (PyErr_Occurred()) SWIG_fail;
24944 }
24945 resultobj = SWIG_Py_Void();
24946 return resultobj;
24947 fail:
24948 return NULL;
24949 }
24950
24951
24952 SWIGINTERN PyObject *_wrap_GraphicsContext_Clip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24953 PyObject *resultobj = 0;
24954 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
24955 wxRegion *arg2 = 0 ;
24956 void *argp1 = 0 ;
24957 int res1 = 0 ;
24958 void *argp2 = 0 ;
24959 int res2 = 0 ;
24960 PyObject * obj0 = 0 ;
24961 PyObject * obj1 = 0 ;
24962 char * kwnames[] = {
24963 (char *) "self",(char *) "region", NULL
24964 };
24965
24966 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Clip",kwnames,&obj0,&obj1)) SWIG_fail;
24967 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
24968 if (!SWIG_IsOK(res1)) {
24969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Clip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
24970 }
24971 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
24972 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
24973 if (!SWIG_IsOK(res2)) {
24974 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxRegion const &""'");
24975 }
24976 if (!argp2) {
24977 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxRegion const &""'");
24978 }
24979 arg2 = reinterpret_cast< wxRegion * >(argp2);
24980 {
24981 (arg1)->Clip((wxRegion const &)*arg2);
24982 if (PyErr_Occurred()) SWIG_fail;
24983 }
24984 resultobj = SWIG_Py_Void();
24985 return resultobj;
24986 fail:
24987 return NULL;
24988 }
24989
24990
24991 SWIGINTERN PyObject *_wrap_GraphicsContext_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24992 PyObject *resultobj = 0;
24993 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
24994 wxDouble arg2 ;
24995 wxDouble arg3 ;
24996 void *argp1 = 0 ;
24997 int res1 = 0 ;
24998 double val2 ;
24999 int ecode2 = 0 ;
25000 double val3 ;
25001 int ecode3 = 0 ;
25002 PyObject * obj0 = 0 ;
25003 PyObject * obj1 = 0 ;
25004 PyObject * obj2 = 0 ;
25005 char * kwnames[] = {
25006 (char *) "self",(char *) "dx",(char *) "dy", NULL
25007 };
25008
25009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25011 if (!SWIG_IsOK(res1)) {
25012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Translate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25013 }
25014 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25015 ecode2 = SWIG_AsVal_double(obj1, &val2);
25016 if (!SWIG_IsOK(ecode2)) {
25017 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
25018 }
25019 arg2 = static_cast< wxDouble >(val2);
25020 ecode3 = SWIG_AsVal_double(obj2, &val3);
25021 if (!SWIG_IsOK(ecode3)) {
25022 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
25023 }
25024 arg3 = static_cast< wxDouble >(val3);
25025 {
25026 (arg1)->Translate(arg2,arg3);
25027 if (PyErr_Occurred()) SWIG_fail;
25028 }
25029 resultobj = SWIG_Py_Void();
25030 return resultobj;
25031 fail:
25032 return NULL;
25033 }
25034
25035
25036 SWIGINTERN PyObject *_wrap_GraphicsContext_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25037 PyObject *resultobj = 0;
25038 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25039 wxDouble arg2 ;
25040 wxDouble arg3 ;
25041 void *argp1 = 0 ;
25042 int res1 = 0 ;
25043 double val2 ;
25044 int ecode2 = 0 ;
25045 double val3 ;
25046 int ecode3 = 0 ;
25047 PyObject * obj0 = 0 ;
25048 PyObject * obj1 = 0 ;
25049 PyObject * obj2 = 0 ;
25050 char * kwnames[] = {
25051 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
25052 };
25053
25054 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25055 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25056 if (!SWIG_IsOK(res1)) {
25057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Scale" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25058 }
25059 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25060 ecode2 = SWIG_AsVal_double(obj1, &val2);
25061 if (!SWIG_IsOK(ecode2)) {
25062 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
25063 }
25064 arg2 = static_cast< wxDouble >(val2);
25065 ecode3 = SWIG_AsVal_double(obj2, &val3);
25066 if (!SWIG_IsOK(ecode3)) {
25067 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
25068 }
25069 arg3 = static_cast< wxDouble >(val3);
25070 {
25071 (arg1)->Scale(arg2,arg3);
25072 if (PyErr_Occurred()) SWIG_fail;
25073 }
25074 resultobj = SWIG_Py_Void();
25075 return resultobj;
25076 fail:
25077 return NULL;
25078 }
25079
25080
25081 SWIGINTERN PyObject *_wrap_GraphicsContext_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25082 PyObject *resultobj = 0;
25083 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25084 wxDouble arg2 ;
25085 void *argp1 = 0 ;
25086 int res1 = 0 ;
25087 double val2 ;
25088 int ecode2 = 0 ;
25089 PyObject * obj0 = 0 ;
25090 PyObject * obj1 = 0 ;
25091 char * kwnames[] = {
25092 (char *) "self",(char *) "angle", NULL
25093 };
25094
25095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
25096 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25097 if (!SWIG_IsOK(res1)) {
25098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Rotate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25099 }
25100 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25101 ecode2 = SWIG_AsVal_double(obj1, &val2);
25102 if (!SWIG_IsOK(ecode2)) {
25103 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
25104 }
25105 arg2 = static_cast< wxDouble >(val2);
25106 {
25107 (arg1)->Rotate(arg2);
25108 if (PyErr_Occurred()) SWIG_fail;
25109 }
25110 resultobj = SWIG_Py_Void();
25111 return resultobj;
25112 fail:
25113 return NULL;
25114 }
25115
25116
25117 SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25118 PyObject *resultobj = 0;
25119 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25120 wxPen *arg2 = 0 ;
25121 void *argp1 = 0 ;
25122 int res1 = 0 ;
25123 void *argp2 = 0 ;
25124 int res2 = 0 ;
25125 PyObject * obj0 = 0 ;
25126 PyObject * obj1 = 0 ;
25127 char * kwnames[] = {
25128 (char *) "self",(char *) "pen", NULL
25129 };
25130
25131 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
25132 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25133 if (!SWIG_IsOK(res1)) {
25134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25135 }
25136 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25137 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
25138 if (!SWIG_IsOK(res2)) {
25139 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
25140 }
25141 if (!argp2) {
25142 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
25143 }
25144 arg2 = reinterpret_cast< wxPen * >(argp2);
25145 {
25146 (arg1)->SetPen((wxPen const &)*arg2);
25147 if (PyErr_Occurred()) SWIG_fail;
25148 }
25149 resultobj = SWIG_Py_Void();
25150 return resultobj;
25151 fail:
25152 return NULL;
25153 }
25154
25155
25156 SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25157 PyObject *resultobj = 0;
25158 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25159 wxBrush *arg2 = 0 ;
25160 void *argp1 = 0 ;
25161 int res1 = 0 ;
25162 void *argp2 = 0 ;
25163 int res2 = 0 ;
25164 PyObject * obj0 = 0 ;
25165 PyObject * obj1 = 0 ;
25166 char * kwnames[] = {
25167 (char *) "self",(char *) "brush", NULL
25168 };
25169
25170 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
25171 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25172 if (!SWIG_IsOK(res1)) {
25173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25174 }
25175 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25176 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
25177 if (!SWIG_IsOK(res2)) {
25178 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
25179 }
25180 if (!argp2) {
25181 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
25182 }
25183 arg2 = reinterpret_cast< wxBrush * >(argp2);
25184 {
25185 (arg1)->SetBrush((wxBrush const &)*arg2);
25186 if (PyErr_Occurred()) SWIG_fail;
25187 }
25188 resultobj = SWIG_Py_Void();
25189 return resultobj;
25190 fail:
25191 return NULL;
25192 }
25193
25194
25195 SWIGINTERN PyObject *_wrap_GraphicsContext_SetLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25196 PyObject *resultobj = 0;
25197 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25198 wxDouble arg2 ;
25199 wxDouble arg3 ;
25200 wxDouble arg4 ;
25201 wxDouble arg5 ;
25202 wxColour *arg6 = 0 ;
25203 wxColour *arg7 = 0 ;
25204 void *argp1 = 0 ;
25205 int res1 = 0 ;
25206 double val2 ;
25207 int ecode2 = 0 ;
25208 double val3 ;
25209 int ecode3 = 0 ;
25210 double val4 ;
25211 int ecode4 = 0 ;
25212 double val5 ;
25213 int ecode5 = 0 ;
25214 wxColour temp6 ;
25215 wxColour temp7 ;
25216 PyObject * obj0 = 0 ;
25217 PyObject * obj1 = 0 ;
25218 PyObject * obj2 = 0 ;
25219 PyObject * obj3 = 0 ;
25220 PyObject * obj4 = 0 ;
25221 PyObject * obj5 = 0 ;
25222 PyObject * obj6 = 0 ;
25223 char * kwnames[] = {
25224 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
25225 };
25226
25227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsContext_SetLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25228 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25229 if (!SWIG_IsOK(res1)) {
25230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25231 }
25232 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25233 ecode2 = SWIG_AsVal_double(obj1, &val2);
25234 if (!SWIG_IsOK(ecode2)) {
25235 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
25236 }
25237 arg2 = static_cast< wxDouble >(val2);
25238 ecode3 = SWIG_AsVal_double(obj2, &val3);
25239 if (!SWIG_IsOK(ecode3)) {
25240 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
25241 }
25242 arg3 = static_cast< wxDouble >(val3);
25243 ecode4 = SWIG_AsVal_double(obj3, &val4);
25244 if (!SWIG_IsOK(ecode4)) {
25245 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
25246 }
25247 arg4 = static_cast< wxDouble >(val4);
25248 ecode5 = SWIG_AsVal_double(obj4, &val5);
25249 if (!SWIG_IsOK(ecode5)) {
25250 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
25251 }
25252 arg5 = static_cast< wxDouble >(val5);
25253 {
25254 arg6 = &temp6;
25255 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
25256 }
25257 {
25258 arg7 = &temp7;
25259 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
25260 }
25261 {
25262 (arg1)->SetLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
25263 if (PyErr_Occurred()) SWIG_fail;
25264 }
25265 resultobj = SWIG_Py_Void();
25266 return resultobj;
25267 fail:
25268 return NULL;
25269 }
25270
25271
25272 SWIGINTERN PyObject *_wrap_GraphicsContext_SetRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25273 PyObject *resultobj = 0;
25274 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25275 wxDouble arg2 ;
25276 wxDouble arg3 ;
25277 wxDouble arg4 ;
25278 wxDouble arg5 ;
25279 wxDouble arg6 ;
25280 wxColour *arg7 = 0 ;
25281 wxColour *arg8 = 0 ;
25282 void *argp1 = 0 ;
25283 int res1 = 0 ;
25284 double val2 ;
25285 int ecode2 = 0 ;
25286 double val3 ;
25287 int ecode3 = 0 ;
25288 double val4 ;
25289 int ecode4 = 0 ;
25290 double val5 ;
25291 int ecode5 = 0 ;
25292 double val6 ;
25293 int ecode6 = 0 ;
25294 wxColour temp7 ;
25295 wxColour temp8 ;
25296 PyObject * obj0 = 0 ;
25297 PyObject * obj1 = 0 ;
25298 PyObject * obj2 = 0 ;
25299 PyObject * obj3 = 0 ;
25300 PyObject * obj4 = 0 ;
25301 PyObject * obj5 = 0 ;
25302 PyObject * obj6 = 0 ;
25303 PyObject * obj7 = 0 ;
25304 char * kwnames[] = {
25305 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
25306 };
25307
25308 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsContext_SetRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
25309 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25310 if (!SWIG_IsOK(res1)) {
25311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25312 }
25313 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25314 ecode2 = SWIG_AsVal_double(obj1, &val2);
25315 if (!SWIG_IsOK(ecode2)) {
25316 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
25317 }
25318 arg2 = static_cast< wxDouble >(val2);
25319 ecode3 = SWIG_AsVal_double(obj2, &val3);
25320 if (!SWIG_IsOK(ecode3)) {
25321 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
25322 }
25323 arg3 = static_cast< wxDouble >(val3);
25324 ecode4 = SWIG_AsVal_double(obj3, &val4);
25325 if (!SWIG_IsOK(ecode4)) {
25326 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
25327 }
25328 arg4 = static_cast< wxDouble >(val4);
25329 ecode5 = SWIG_AsVal_double(obj4, &val5);
25330 if (!SWIG_IsOK(ecode5)) {
25331 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
25332 }
25333 arg5 = static_cast< wxDouble >(val5);
25334 ecode6 = SWIG_AsVal_double(obj5, &val6);
25335 if (!SWIG_IsOK(ecode6)) {
25336 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
25337 }
25338 arg6 = static_cast< wxDouble >(val6);
25339 {
25340 arg7 = &temp7;
25341 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
25342 }
25343 {
25344 arg8 = &temp8;
25345 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
25346 }
25347 {
25348 (arg1)->SetRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
25349 if (PyErr_Occurred()) SWIG_fail;
25350 }
25351 resultobj = SWIG_Py_Void();
25352 return resultobj;
25353 fail:
25354 return NULL;
25355 }
25356
25357
25358 SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25359 PyObject *resultobj = 0;
25360 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25361 wxFont *arg2 = 0 ;
25362 void *argp1 = 0 ;
25363 int res1 = 0 ;
25364 void *argp2 = 0 ;
25365 int res2 = 0 ;
25366 PyObject * obj0 = 0 ;
25367 PyObject * obj1 = 0 ;
25368 char * kwnames[] = {
25369 (char *) "self",(char *) "font", NULL
25370 };
25371
25372 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
25373 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25374 if (!SWIG_IsOK(res1)) {
25375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25376 }
25377 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25378 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
25379 if (!SWIG_IsOK(res2)) {
25380 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
25381 }
25382 if (!argp2) {
25383 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
25384 }
25385 arg2 = reinterpret_cast< wxFont * >(argp2);
25386 {
25387 (arg1)->SetFont((wxFont const &)*arg2);
25388 if (PyErr_Occurred()) SWIG_fail;
25389 }
25390 resultobj = SWIG_Py_Void();
25391 return resultobj;
25392 fail:
25393 return NULL;
25394 }
25395
25396
25397 SWIGINTERN PyObject *_wrap_GraphicsContext_SetTextColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25398 PyObject *resultobj = 0;
25399 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25400 wxColour *arg2 = 0 ;
25401 void *argp1 = 0 ;
25402 int res1 = 0 ;
25403 wxColour temp2 ;
25404 PyObject * obj0 = 0 ;
25405 PyObject * obj1 = 0 ;
25406 char * kwnames[] = {
25407 (char *) "self",(char *) "col", NULL
25408 };
25409
25410 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetTextColor",kwnames,&obj0,&obj1)) SWIG_fail;
25411 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25412 if (!SWIG_IsOK(res1)) {
25413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetTextColor" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25414 }
25415 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25416 {
25417 arg2 = &temp2;
25418 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25419 }
25420 {
25421 (arg1)->SetTextColor((wxColour const &)*arg2);
25422 if (PyErr_Occurred()) SWIG_fail;
25423 }
25424 resultobj = SWIG_Py_Void();
25425 return resultobj;
25426 fail:
25427 return NULL;
25428 }
25429
25430
25431 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25432 PyObject *resultobj = 0;
25433 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25434 wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ;
25435 void *argp1 = 0 ;
25436 int res1 = 0 ;
25437 void *argp2 = 0 ;
25438 int res2 = 0 ;
25439 PyObject * obj0 = 0 ;
25440 PyObject * obj1 = 0 ;
25441 char * kwnames[] = {
25442 (char *) "self",(char *) "path", NULL
25443 };
25444
25445 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokePath",kwnames,&obj0,&obj1)) SWIG_fail;
25446 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25447 if (!SWIG_IsOK(res1)) {
25448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25449 }
25450 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25451 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25452 if (!SWIG_IsOK(res2)) {
25453 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'");
25454 }
25455 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
25456 {
25457 (arg1)->StrokePath((wxGraphicsPath const *)arg2);
25458 if (PyErr_Occurred()) SWIG_fail;
25459 }
25460 resultobj = SWIG_Py_Void();
25461 return resultobj;
25462 fail:
25463 return NULL;
25464 }
25465
25466
25467 SWIGINTERN PyObject *_wrap_GraphicsContext_FillPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25468 PyObject *resultobj = 0;
25469 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25470 wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ;
25471 int arg3 = (int) wxWINDING_RULE ;
25472 void *argp1 = 0 ;
25473 int res1 = 0 ;
25474 void *argp2 = 0 ;
25475 int res2 = 0 ;
25476 int val3 ;
25477 int ecode3 = 0 ;
25478 PyObject * obj0 = 0 ;
25479 PyObject * obj1 = 0 ;
25480 PyObject * obj2 = 0 ;
25481 char * kwnames[] = {
25482 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
25483 };
25484
25485 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_FillPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25486 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25487 if (!SWIG_IsOK(res1)) {
25488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_FillPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25489 }
25490 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25491 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25492 if (!SWIG_IsOK(res2)) {
25493 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'");
25494 }
25495 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
25496 if (obj2) {
25497 ecode3 = SWIG_AsVal_int(obj2, &val3);
25498 if (!SWIG_IsOK(ecode3)) {
25499 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_FillPath" "', expected argument " "3"" of type '" "int""'");
25500 }
25501 arg3 = static_cast< int >(val3);
25502 }
25503 {
25504 (arg1)->FillPath((wxGraphicsPath const *)arg2,arg3);
25505 if (PyErr_Occurred()) SWIG_fail;
25506 }
25507 resultobj = SWIG_Py_Void();
25508 return resultobj;
25509 fail:
25510 return NULL;
25511 }
25512
25513
25514 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25515 PyObject *resultobj = 0;
25516 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25517 wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ;
25518 int arg3 = (int) wxWINDING_RULE ;
25519 void *argp1 = 0 ;
25520 int res1 = 0 ;
25521 void *argp2 = 0 ;
25522 int res2 = 0 ;
25523 int val3 ;
25524 int ecode3 = 0 ;
25525 PyObject * obj0 = 0 ;
25526 PyObject * obj1 = 0 ;
25527 PyObject * obj2 = 0 ;
25528 char * kwnames[] = {
25529 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
25530 };
25531
25532 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25533 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25534 if (!SWIG_IsOK(res1)) {
25535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25536 }
25537 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25538 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25539 if (!SWIG_IsOK(res2)) {
25540 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'");
25541 }
25542 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
25543 if (obj2) {
25544 ecode3 = SWIG_AsVal_int(obj2, &val3);
25545 if (!SWIG_IsOK(ecode3)) {
25546 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawPath" "', expected argument " "3"" of type '" "int""'");
25547 }
25548 arg3 = static_cast< int >(val3);
25549 }
25550 {
25551 (arg1)->DrawPath((wxGraphicsPath const *)arg2,arg3);
25552 if (PyErr_Occurred()) SWIG_fail;
25553 }
25554 resultobj = SWIG_Py_Void();
25555 return resultobj;
25556 fail:
25557 return NULL;
25558 }
25559
25560
25561 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25562 PyObject *resultobj = 0;
25563 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25564 wxString *arg2 = 0 ;
25565 wxDouble arg3 ;
25566 wxDouble arg4 ;
25567 void *argp1 = 0 ;
25568 int res1 = 0 ;
25569 bool temp2 = false ;
25570 double val3 ;
25571 int ecode3 = 0 ;
25572 double val4 ;
25573 int ecode4 = 0 ;
25574 PyObject * obj0 = 0 ;
25575 PyObject * obj1 = 0 ;
25576 PyObject * obj2 = 0 ;
25577 PyObject * obj3 = 0 ;
25578 char * kwnames[] = {
25579 (char *) "self",(char *) "str",(char *) "x",(char *) "y", NULL
25580 };
25581
25582 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsContext_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25583 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25584 if (!SWIG_IsOK(res1)) {
25585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25586 }
25587 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25588 {
25589 arg2 = wxString_in_helper(obj1);
25590 if (arg2 == NULL) SWIG_fail;
25591 temp2 = true;
25592 }
25593 ecode3 = SWIG_AsVal_double(obj2, &val3);
25594 if (!SWIG_IsOK(ecode3)) {
25595 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawText" "', expected argument " "3"" of type '" "wxDouble""'");
25596 }
25597 arg3 = static_cast< wxDouble >(val3);
25598 ecode4 = SWIG_AsVal_double(obj3, &val4);
25599 if (!SWIG_IsOK(ecode4)) {
25600 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawText" "', expected argument " "4"" of type '" "wxDouble""'");
25601 }
25602 arg4 = static_cast< wxDouble >(val4);
25603 {
25604 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
25605 if (PyErr_Occurred()) SWIG_fail;
25606 }
25607 resultobj = SWIG_Py_Void();
25608 {
25609 if (temp2)
25610 delete arg2;
25611 }
25612 return resultobj;
25613 fail:
25614 {
25615 if (temp2)
25616 delete arg2;
25617 }
25618 return NULL;
25619 }
25620
25621
25622 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25623 PyObject *resultobj = 0;
25624 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25625 wxString *arg2 = 0 ;
25626 wxDouble arg3 ;
25627 wxDouble arg4 ;
25628 wxDouble arg5 ;
25629 void *argp1 = 0 ;
25630 int res1 = 0 ;
25631 bool temp2 = false ;
25632 double val3 ;
25633 int ecode3 = 0 ;
25634 double val4 ;
25635 int ecode4 = 0 ;
25636 double val5 ;
25637 int ecode5 = 0 ;
25638 PyObject * obj0 = 0 ;
25639 PyObject * obj1 = 0 ;
25640 PyObject * obj2 = 0 ;
25641 PyObject * obj3 = 0 ;
25642 PyObject * obj4 = 0 ;
25643 char * kwnames[] = {
25644 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "angle", NULL
25645 };
25646
25647 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25648 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25649 if (!SWIG_IsOK(res1)) {
25650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25651 }
25652 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25653 {
25654 arg2 = wxString_in_helper(obj1);
25655 if (arg2 == NULL) SWIG_fail;
25656 temp2 = true;
25657 }
25658 ecode3 = SWIG_AsVal_double(obj2, &val3);
25659 if (!SWIG_IsOK(ecode3)) {
25660 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "3"" of type '" "wxDouble""'");
25661 }
25662 arg3 = static_cast< wxDouble >(val3);
25663 ecode4 = SWIG_AsVal_double(obj3, &val4);
25664 if (!SWIG_IsOK(ecode4)) {
25665 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "4"" of type '" "wxDouble""'");
25666 }
25667 arg4 = static_cast< wxDouble >(val4);
25668 ecode5 = SWIG_AsVal_double(obj4, &val5);
25669 if (!SWIG_IsOK(ecode5)) {
25670 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "5"" of type '" "wxDouble""'");
25671 }
25672 arg5 = static_cast< wxDouble >(val5);
25673 {
25674 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4,arg5);
25675 if (PyErr_Occurred()) SWIG_fail;
25676 }
25677 resultobj = SWIG_Py_Void();
25678 {
25679 if (temp2)
25680 delete arg2;
25681 }
25682 return resultobj;
25683 fail:
25684 {
25685 if (temp2)
25686 delete arg2;
25687 }
25688 return NULL;
25689 }
25690
25691
25692 SWIGINTERN PyObject *_wrap_GraphicsContext_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25693 PyObject *resultobj = 0;
25694 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25695 wxString *arg2 = 0 ;
25696 wxDouble *arg3 = (wxDouble *) 0 ;
25697 wxDouble *arg4 = (wxDouble *) 0 ;
25698 wxDouble *arg5 = (wxDouble *) 0 ;
25699 wxDouble *arg6 = (wxDouble *) 0 ;
25700 void *argp1 = 0 ;
25701 int res1 = 0 ;
25702 bool temp2 = false ;
25703 wxDouble temp3 ;
25704 int res3 = SWIG_TMPOBJ ;
25705 wxDouble temp4 ;
25706 int res4 = SWIG_TMPOBJ ;
25707 wxDouble temp5 ;
25708 int res5 = SWIG_TMPOBJ ;
25709 wxDouble temp6 ;
25710 int res6 = SWIG_TMPOBJ ;
25711 PyObject * obj0 = 0 ;
25712 PyObject * obj1 = 0 ;
25713 char * kwnames[] = {
25714 (char *) "self",(char *) "text", NULL
25715 };
25716
25717 arg3 = &temp3;
25718 arg4 = &temp4;
25719 arg5 = &temp5;
25720 arg6 = &temp6;
25721 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
25722 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25723 if (!SWIG_IsOK(res1)) {
25724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
25725 }
25726 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25727 {
25728 arg2 = wxString_in_helper(obj1);
25729 if (arg2 == NULL) SWIG_fail;
25730 temp2 = true;
25731 }
25732 {
25733 ((wxGraphicsContext const *)arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
25734 if (PyErr_Occurred()) SWIG_fail;
25735 }
25736 resultobj = SWIG_Py_Void();
25737 if (SWIG_IsTmpObj(res3)) {
25738 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
25739 } else {
25740 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25741 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
25742 }
25743 if (SWIG_IsTmpObj(res4)) {
25744 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
25745 } else {
25746 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25747 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
25748 }
25749 if (SWIG_IsTmpObj(res5)) {
25750 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
25751 } else {
25752 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25753 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
25754 }
25755 if (SWIG_IsTmpObj(res6)) {
25756 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
25757 } else {
25758 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25759 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
25760 }
25761 {
25762 if (temp2)
25763 delete arg2;
25764 }
25765 return resultobj;
25766 fail:
25767 {
25768 if (temp2)
25769 delete arg2;
25770 }
25771 return NULL;
25772 }
25773
25774
25775 SWIGINTERN PyObject *_wrap_GraphicsContext_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25776 PyObject *resultobj = 0;
25777 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25778 wxString *arg2 = 0 ;
25779 wxArrayDouble result;
25780 void *argp1 = 0 ;
25781 int res1 = 0 ;
25782 bool temp2 = false ;
25783 PyObject * obj0 = 0 ;
25784 PyObject * obj1 = 0 ;
25785 char * kwnames[] = {
25786 (char *) "self",(char *) "text", NULL
25787 };
25788
25789 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
25790 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25791 if (!SWIG_IsOK(res1)) {
25792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25793 }
25794 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25795 {
25796 arg2 = wxString_in_helper(obj1);
25797 if (arg2 == NULL) SWIG_fail;
25798 temp2 = true;
25799 }
25800 {
25801 result = wxGraphicsContext_GetPartialTextExtents(arg1,(wxString const &)*arg2);
25802 if (PyErr_Occurred()) SWIG_fail;
25803 }
25804 {
25805 resultobj = wxArrayDouble2PyList_helper(result);
25806 }
25807 {
25808 if (temp2)
25809 delete arg2;
25810 }
25811 return resultobj;
25812 fail:
25813 {
25814 if (temp2)
25815 delete arg2;
25816 }
25817 return NULL;
25818 }
25819
25820
25821 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25822 PyObject *resultobj = 0;
25823 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25824 wxBitmap *arg2 = 0 ;
25825 wxDouble arg3 ;
25826 wxDouble arg4 ;
25827 wxDouble arg5 ;
25828 wxDouble arg6 ;
25829 void *argp1 = 0 ;
25830 int res1 = 0 ;
25831 void *argp2 = 0 ;
25832 int res2 = 0 ;
25833 double val3 ;
25834 int ecode3 = 0 ;
25835 double val4 ;
25836 int ecode4 = 0 ;
25837 double val5 ;
25838 int ecode5 = 0 ;
25839 double val6 ;
25840 int ecode6 = 0 ;
25841 PyObject * obj0 = 0 ;
25842 PyObject * obj1 = 0 ;
25843 PyObject * obj2 = 0 ;
25844 PyObject * obj3 = 0 ;
25845 PyObject * obj4 = 0 ;
25846 PyObject * obj5 = 0 ;
25847 char * kwnames[] = {
25848 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
25849 };
25850
25851 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
25852 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25853 if (!SWIG_IsOK(res1)) {
25854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25855 }
25856 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25857 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
25858 if (!SWIG_IsOK(res2)) {
25859 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
25860 }
25861 if (!argp2) {
25862 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
25863 }
25864 arg2 = reinterpret_cast< wxBitmap * >(argp2);
25865 ecode3 = SWIG_AsVal_double(obj2, &val3);
25866 if (!SWIG_IsOK(ecode3)) {
25867 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "3"" of type '" "wxDouble""'");
25868 }
25869 arg3 = static_cast< wxDouble >(val3);
25870 ecode4 = SWIG_AsVal_double(obj3, &val4);
25871 if (!SWIG_IsOK(ecode4)) {
25872 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "4"" of type '" "wxDouble""'");
25873 }
25874 arg4 = static_cast< wxDouble >(val4);
25875 ecode5 = SWIG_AsVal_double(obj4, &val5);
25876 if (!SWIG_IsOK(ecode5)) {
25877 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "5"" of type '" "wxDouble""'");
25878 }
25879 arg5 = static_cast< wxDouble >(val5);
25880 ecode6 = SWIG_AsVal_double(obj5, &val6);
25881 if (!SWIG_IsOK(ecode6)) {
25882 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "6"" of type '" "wxDouble""'");
25883 }
25884 arg6 = static_cast< wxDouble >(val6);
25885 {
25886 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5,arg6);
25887 if (PyErr_Occurred()) SWIG_fail;
25888 }
25889 resultobj = SWIG_Py_Void();
25890 return resultobj;
25891 fail:
25892 return NULL;
25893 }
25894
25895
25896 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25897 PyObject *resultobj = 0;
25898 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25899 wxIcon *arg2 = 0 ;
25900 wxDouble arg3 ;
25901 wxDouble arg4 ;
25902 wxDouble arg5 ;
25903 wxDouble arg6 ;
25904 void *argp1 = 0 ;
25905 int res1 = 0 ;
25906 void *argp2 = 0 ;
25907 int res2 = 0 ;
25908 double val3 ;
25909 int ecode3 = 0 ;
25910 double val4 ;
25911 int ecode4 = 0 ;
25912 double val5 ;
25913 int ecode5 = 0 ;
25914 double val6 ;
25915 int ecode6 = 0 ;
25916 PyObject * obj0 = 0 ;
25917 PyObject * obj1 = 0 ;
25918 PyObject * obj2 = 0 ;
25919 PyObject * obj3 = 0 ;
25920 PyObject * obj4 = 0 ;
25921 PyObject * obj5 = 0 ;
25922 char * kwnames[] = {
25923 (char *) "self",(char *) "icon",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
25924 };
25925
25926 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
25927 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25928 if (!SWIG_IsOK(res1)) {
25929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25930 }
25931 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25932 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
25933 if (!SWIG_IsOK(res2)) {
25934 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
25935 }
25936 if (!argp2) {
25937 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
25938 }
25939 arg2 = reinterpret_cast< wxIcon * >(argp2);
25940 ecode3 = SWIG_AsVal_double(obj2, &val3);
25941 if (!SWIG_IsOK(ecode3)) {
25942 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "3"" of type '" "wxDouble""'");
25943 }
25944 arg3 = static_cast< wxDouble >(val3);
25945 ecode4 = SWIG_AsVal_double(obj3, &val4);
25946 if (!SWIG_IsOK(ecode4)) {
25947 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "4"" of type '" "wxDouble""'");
25948 }
25949 arg4 = static_cast< wxDouble >(val4);
25950 ecode5 = SWIG_AsVal_double(obj4, &val5);
25951 if (!SWIG_IsOK(ecode5)) {
25952 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "5"" of type '" "wxDouble""'");
25953 }
25954 arg5 = static_cast< wxDouble >(val5);
25955 ecode6 = SWIG_AsVal_double(obj5, &val6);
25956 if (!SWIG_IsOK(ecode6)) {
25957 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "6"" of type '" "wxDouble""'");
25958 }
25959 arg6 = static_cast< wxDouble >(val6);
25960 {
25961 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4,arg5,arg6);
25962 if (PyErr_Occurred()) SWIG_fail;
25963 }
25964 resultobj = SWIG_Py_Void();
25965 return resultobj;
25966 fail:
25967 return NULL;
25968 }
25969
25970
25971 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25972 PyObject *resultobj = 0;
25973 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25974 wxDouble arg2 ;
25975 wxDouble arg3 ;
25976 wxDouble arg4 ;
25977 wxDouble arg5 ;
25978 void *argp1 = 0 ;
25979 int res1 = 0 ;
25980 double val2 ;
25981 int ecode2 = 0 ;
25982 double val3 ;
25983 int ecode3 = 0 ;
25984 double val4 ;
25985 int ecode4 = 0 ;
25986 double val5 ;
25987 int ecode5 = 0 ;
25988 PyObject * obj0 = 0 ;
25989 PyObject * obj1 = 0 ;
25990 PyObject * obj2 = 0 ;
25991 PyObject * obj3 = 0 ;
25992 PyObject * obj4 = 0 ;
25993 char * kwnames[] = {
25994 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
25995 };
25996
25997 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_StrokeLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25998 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25999 if (!SWIG_IsOK(res1)) {
26000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26001 }
26002 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26003 ecode2 = SWIG_AsVal_double(obj1, &val2);
26004 if (!SWIG_IsOK(ecode2)) {
26005 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "2"" of type '" "wxDouble""'");
26006 }
26007 arg2 = static_cast< wxDouble >(val2);
26008 ecode3 = SWIG_AsVal_double(obj2, &val3);
26009 if (!SWIG_IsOK(ecode3)) {
26010 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "3"" of type '" "wxDouble""'");
26011 }
26012 arg3 = static_cast< wxDouble >(val3);
26013 ecode4 = SWIG_AsVal_double(obj3, &val4);
26014 if (!SWIG_IsOK(ecode4)) {
26015 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "4"" of type '" "wxDouble""'");
26016 }
26017 arg4 = static_cast< wxDouble >(val4);
26018 ecode5 = SWIG_AsVal_double(obj4, &val5);
26019 if (!SWIG_IsOK(ecode5)) {
26020 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "5"" of type '" "wxDouble""'");
26021 }
26022 arg5 = static_cast< wxDouble >(val5);
26023 {
26024 (arg1)->StrokeLine(arg2,arg3,arg4,arg5);
26025 if (PyErr_Occurred()) SWIG_fail;
26026 }
26027 resultobj = SWIG_Py_Void();
26028 return resultobj;
26029 fail:
26030 return NULL;
26031 }
26032
26033
26034 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26035 PyObject *resultobj = 0;
26036 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26037 size_t arg2 ;
26038 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
26039 void *argp1 = 0 ;
26040 int res1 = 0 ;
26041 PyObject * obj0 = 0 ;
26042 PyObject * obj1 = 0 ;
26043 char * kwnames[] = {
26044 (char *) "self",(char *) "points", NULL
26045 };
26046
26047 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokeLines",kwnames,&obj0,&obj1)) SWIG_fail;
26048 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26049 if (!SWIG_IsOK(res1)) {
26050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26051 }
26052 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26053 {
26054 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
26055 if (arg3 == NULL) SWIG_fail;
26056 }
26057 {
26058 (arg1)->StrokeLines(arg2,(wxPoint2D const *)arg3);
26059 if (PyErr_Occurred()) SWIG_fail;
26060 }
26061 resultobj = SWIG_Py_Void();
26062 {
26063 if (arg3) delete [] arg3;
26064 }
26065 return resultobj;
26066 fail:
26067 {
26068 if (arg3) delete [] arg3;
26069 }
26070 return NULL;
26071 }
26072
26073
26074 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLineSegements(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26075 PyObject *resultobj = 0;
26076 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26077 PyObject *arg2 = (PyObject *) 0 ;
26078 PyObject *arg3 = (PyObject *) 0 ;
26079 void *argp1 = 0 ;
26080 int res1 = 0 ;
26081 PyObject * obj0 = 0 ;
26082 PyObject * obj1 = 0 ;
26083 PyObject * obj2 = 0 ;
26084 char * kwnames[] = {
26085 (char *) "self",(char *) "beginPoints",(char *) "endPoints", NULL
26086 };
26087
26088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_StrokeLineSegements",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26090 if (!SWIG_IsOK(res1)) {
26091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLineSegements" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26092 }
26093 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26094 arg2 = obj1;
26095 arg3 = obj2;
26096 {
26097 wxGraphicsContext_StrokeLineSegements(arg1,arg2,arg3);
26098 if (PyErr_Occurred()) SWIG_fail;
26099 }
26100 resultobj = SWIG_Py_Void();
26101 return resultobj;
26102 fail:
26103 return NULL;
26104 }
26105
26106
26107 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26108 PyObject *resultobj = 0;
26109 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26110 size_t arg2 ;
26111 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
26112 int arg4 = (int) wxWINDING_RULE ;
26113 void *argp1 = 0 ;
26114 int res1 = 0 ;
26115 int val4 ;
26116 int ecode4 = 0 ;
26117 PyObject * obj0 = 0 ;
26118 PyObject * obj1 = 0 ;
26119 PyObject * obj2 = 0 ;
26120 char * kwnames[] = {
26121 (char *) "self",(char *) "points",(char *) "fillStyle", NULL
26122 };
26123
26124 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26125 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26126 if (!SWIG_IsOK(res1)) {
26127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26128 }
26129 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26130 {
26131 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
26132 if (arg3 == NULL) SWIG_fail;
26133 }
26134 if (obj2) {
26135 ecode4 = SWIG_AsVal_int(obj2, &val4);
26136 if (!SWIG_IsOK(ecode4)) {
26137 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawLines" "', expected argument " "4"" of type '" "int""'");
26138 }
26139 arg4 = static_cast< int >(val4);
26140 }
26141 {
26142 (arg1)->DrawLines(arg2,(wxPoint2D const *)arg3,arg4);
26143 if (PyErr_Occurred()) SWIG_fail;
26144 }
26145 resultobj = SWIG_Py_Void();
26146 {
26147 if (arg3) delete [] arg3;
26148 }
26149 return resultobj;
26150 fail:
26151 {
26152 if (arg3) delete [] arg3;
26153 }
26154 return NULL;
26155 }
26156
26157
26158 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26159 PyObject *resultobj = 0;
26160 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26161 wxDouble arg2 ;
26162 wxDouble arg3 ;
26163 wxDouble arg4 ;
26164 wxDouble arg5 ;
26165 void *argp1 = 0 ;
26166 int res1 = 0 ;
26167 double val2 ;
26168 int ecode2 = 0 ;
26169 double val3 ;
26170 int ecode3 = 0 ;
26171 double val4 ;
26172 int ecode4 = 0 ;
26173 double val5 ;
26174 int ecode5 = 0 ;
26175 PyObject * obj0 = 0 ;
26176 PyObject * obj1 = 0 ;
26177 PyObject * obj2 = 0 ;
26178 PyObject * obj3 = 0 ;
26179 PyObject * obj4 = 0 ;
26180 char * kwnames[] = {
26181 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26182 };
26183
26184 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26185 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26186 if (!SWIG_IsOK(res1)) {
26187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26188 }
26189 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26190 ecode2 = SWIG_AsVal_double(obj1, &val2);
26191 if (!SWIG_IsOK(ecode2)) {
26192 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
26193 }
26194 arg2 = static_cast< wxDouble >(val2);
26195 ecode3 = SWIG_AsVal_double(obj2, &val3);
26196 if (!SWIG_IsOK(ecode3)) {
26197 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
26198 }
26199 arg3 = static_cast< wxDouble >(val3);
26200 ecode4 = SWIG_AsVal_double(obj3, &val4);
26201 if (!SWIG_IsOK(ecode4)) {
26202 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
26203 }
26204 arg4 = static_cast< wxDouble >(val4);
26205 ecode5 = SWIG_AsVal_double(obj4, &val5);
26206 if (!SWIG_IsOK(ecode5)) {
26207 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
26208 }
26209 arg5 = static_cast< wxDouble >(val5);
26210 {
26211 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
26212 if (PyErr_Occurred()) SWIG_fail;
26213 }
26214 resultobj = SWIG_Py_Void();
26215 return resultobj;
26216 fail:
26217 return NULL;
26218 }
26219
26220
26221 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26222 PyObject *resultobj = 0;
26223 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26224 wxDouble arg2 ;
26225 wxDouble arg3 ;
26226 wxDouble arg4 ;
26227 wxDouble arg5 ;
26228 void *argp1 = 0 ;
26229 int res1 = 0 ;
26230 double val2 ;
26231 int ecode2 = 0 ;
26232 double val3 ;
26233 int ecode3 = 0 ;
26234 double val4 ;
26235 int ecode4 = 0 ;
26236 double val5 ;
26237 int ecode5 = 0 ;
26238 PyObject * obj0 = 0 ;
26239 PyObject * obj1 = 0 ;
26240 PyObject * obj2 = 0 ;
26241 PyObject * obj3 = 0 ;
26242 PyObject * obj4 = 0 ;
26243 char * kwnames[] = {
26244 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26245 };
26246
26247 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26248 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26249 if (!SWIG_IsOK(res1)) {
26250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26251 }
26252 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26253 ecode2 = SWIG_AsVal_double(obj1, &val2);
26254 if (!SWIG_IsOK(ecode2)) {
26255 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
26256 }
26257 arg2 = static_cast< wxDouble >(val2);
26258 ecode3 = SWIG_AsVal_double(obj2, &val3);
26259 if (!SWIG_IsOK(ecode3)) {
26260 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
26261 }
26262 arg3 = static_cast< wxDouble >(val3);
26263 ecode4 = SWIG_AsVal_double(obj3, &val4);
26264 if (!SWIG_IsOK(ecode4)) {
26265 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
26266 }
26267 arg4 = static_cast< wxDouble >(val4);
26268 ecode5 = SWIG_AsVal_double(obj4, &val5);
26269 if (!SWIG_IsOK(ecode5)) {
26270 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
26271 }
26272 arg5 = static_cast< wxDouble >(val5);
26273 {
26274 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
26275 if (PyErr_Occurred()) SWIG_fail;
26276 }
26277 resultobj = SWIG_Py_Void();
26278 return resultobj;
26279 fail:
26280 return NULL;
26281 }
26282
26283
26284 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26285 PyObject *resultobj = 0;
26286 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26287 wxDouble arg2 ;
26288 wxDouble arg3 ;
26289 wxDouble arg4 ;
26290 wxDouble arg5 ;
26291 wxDouble arg6 ;
26292 void *argp1 = 0 ;
26293 int res1 = 0 ;
26294 double val2 ;
26295 int ecode2 = 0 ;
26296 double val3 ;
26297 int ecode3 = 0 ;
26298 double val4 ;
26299 int ecode4 = 0 ;
26300 double val5 ;
26301 int ecode5 = 0 ;
26302 double val6 ;
26303 int ecode6 = 0 ;
26304 PyObject * obj0 = 0 ;
26305 PyObject * obj1 = 0 ;
26306 PyObject * obj2 = 0 ;
26307 PyObject * obj3 = 0 ;
26308 PyObject * obj4 = 0 ;
26309 PyObject * obj5 = 0 ;
26310 char * kwnames[] = {
26311 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
26312 };
26313
26314 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26315 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26316 if (!SWIG_IsOK(res1)) {
26317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26318 }
26319 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26320 ecode2 = SWIG_AsVal_double(obj1, &val2);
26321 if (!SWIG_IsOK(ecode2)) {
26322 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
26323 }
26324 arg2 = static_cast< wxDouble >(val2);
26325 ecode3 = SWIG_AsVal_double(obj2, &val3);
26326 if (!SWIG_IsOK(ecode3)) {
26327 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
26328 }
26329 arg3 = static_cast< wxDouble >(val3);
26330 ecode4 = SWIG_AsVal_double(obj3, &val4);
26331 if (!SWIG_IsOK(ecode4)) {
26332 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
26333 }
26334 arg4 = static_cast< wxDouble >(val4);
26335 ecode5 = SWIG_AsVal_double(obj4, &val5);
26336 if (!SWIG_IsOK(ecode5)) {
26337 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
26338 }
26339 arg5 = static_cast< wxDouble >(val5);
26340 ecode6 = SWIG_AsVal_double(obj5, &val6);
26341 if (!SWIG_IsOK(ecode6)) {
26342 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
26343 }
26344 arg6 = static_cast< wxDouble >(val6);
26345 {
26346 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
26347 if (PyErr_Occurred()) SWIG_fail;
26348 }
26349 resultobj = SWIG_Py_Void();
26350 return resultobj;
26351 fail:
26352 return NULL;
26353 }
26354
26355
26356 SWIGINTERN PyObject *GraphicsContext_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26357 PyObject *obj;
26358 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26359 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsContext, SWIG_NewClientData(obj));
26360 return SWIG_Py_Void();
26361 }
26362
26363 SWIGINTERN PyObject *_wrap_new_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26364 PyObject *resultobj = 0;
26365 wxWindowDC *arg1 = 0 ;
26366 wxGCDC *result = 0 ;
26367 void *argp1 = 0 ;
26368 int res1 = 0 ;
26369 PyObject * obj0 = 0 ;
26370 char * kwnames[] = {
26371 (char *) "dc", NULL
26372 };
26373
26374 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_GCDC",kwnames,&obj0)) SWIG_fail;
26375 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
26376 if (!SWIG_IsOK(res1)) {
26377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
26378 }
26379 if (!argp1) {
26380 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
26381 }
26382 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
26383 {
26384 if (!wxPyCheckForApp()) SWIG_fail;
26385 PyThreadState* __tstate = wxPyBeginAllowThreads();
26386 result = (wxGCDC *)new wxGCDC((wxWindowDC const &)*arg1);
26387 wxPyEndAllowThreads(__tstate);
26388 if (PyErr_Occurred()) SWIG_fail;
26389 }
26390 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
26391 return resultobj;
26392 fail:
26393 return NULL;
26394 }
26395
26396
26397 SWIGINTERN PyObject *_wrap_delete_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26398 PyObject *resultobj = 0;
26399 wxGCDC *arg1 = (wxGCDC *) 0 ;
26400 void *argp1 = 0 ;
26401 int res1 = 0 ;
26402 PyObject *swig_obj[1] ;
26403
26404 if (!args) SWIG_fail;
26405 swig_obj[0] = args;
26406 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, SWIG_POINTER_DISOWN | 0 );
26407 if (!SWIG_IsOK(res1)) {
26408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCDC" "', expected argument " "1"" of type '" "wxGCDC *""'");
26409 }
26410 arg1 = reinterpret_cast< wxGCDC * >(argp1);
26411 {
26412 delete arg1;
26413
26414 if (PyErr_Occurred()) SWIG_fail;
26415 }
26416 resultobj = SWIG_Py_Void();
26417 return resultobj;
26418 fail:
26419 return NULL;
26420 }
26421
26422
26423 SWIGINTERN PyObject *_wrap_GCDC_GetGraphicContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26424 PyObject *resultobj = 0;
26425 wxGCDC *arg1 = (wxGCDC *) 0 ;
26426 wxGraphicsContext *result = 0 ;
26427 void *argp1 = 0 ;
26428 int res1 = 0 ;
26429 PyObject *swig_obj[1] ;
26430
26431 if (!args) SWIG_fail;
26432 swig_obj[0] = args;
26433 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
26434 if (!SWIG_IsOK(res1)) {
26435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_GetGraphicContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
26436 }
26437 arg1 = reinterpret_cast< wxGCDC * >(argp1);
26438 {
26439 result = (wxGraphicsContext *)(arg1)->GetGraphicContext();
26440 if (PyErr_Occurred()) SWIG_fail;
26441 }
26442 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26443 return resultobj;
26444 fail:
26445 return NULL;
26446 }
26447
26448
26449 SWIGINTERN PyObject *GCDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26450 PyObject *obj;
26451 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26452 SWIG_TypeNewClientData(SWIGTYPE_p_wxGCDC, SWIG_NewClientData(obj));
26453 return SWIG_Py_Void();
26454 }
26455
26456 SWIGINTERN PyObject *GCDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26457 return SWIG_Python_InitShadowInstance(args);
26458 }
26459
26460 SWIGINTERN PyObject *_wrap_new_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26461 PyObject *resultobj = 0;
26462 wxOverlay *result = 0 ;
26463
26464 if (!SWIG_Python_UnpackTuple(args,"new_Overlay",0,0,0)) SWIG_fail;
26465 {
26466 PyThreadState* __tstate = wxPyBeginAllowThreads();
26467 result = (wxOverlay *)new wxOverlay();
26468 wxPyEndAllowThreads(__tstate);
26469 if (PyErr_Occurred()) SWIG_fail;
26470 }
26471 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxOverlay, SWIG_POINTER_NEW | 0 );
26472 return resultobj;
26473 fail:
26474 return NULL;
26475 }
26476
26477
26478 SWIGINTERN PyObject *_wrap_delete_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26479 PyObject *resultobj = 0;
26480 wxOverlay *arg1 = (wxOverlay *) 0 ;
26481 void *argp1 = 0 ;
26482 int res1 = 0 ;
26483 PyObject *swig_obj[1] ;
26484
26485 if (!args) SWIG_fail;
26486 swig_obj[0] = args;
26487 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, SWIG_POINTER_DISOWN | 0 );
26488 if (!SWIG_IsOK(res1)) {
26489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Overlay" "', expected argument " "1"" of type '" "wxOverlay *""'");
26490 }
26491 arg1 = reinterpret_cast< wxOverlay * >(argp1);
26492 {
26493 PyThreadState* __tstate = wxPyBeginAllowThreads();
26494 delete arg1;
26495
26496 wxPyEndAllowThreads(__tstate);
26497 if (PyErr_Occurred()) SWIG_fail;
26498 }
26499 resultobj = SWIG_Py_Void();
26500 return resultobj;
26501 fail:
26502 return NULL;
26503 }
26504
26505
26506 SWIGINTERN PyObject *_wrap_Overlay_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26507 PyObject *resultobj = 0;
26508 wxOverlay *arg1 = (wxOverlay *) 0 ;
26509 void *argp1 = 0 ;
26510 int res1 = 0 ;
26511 PyObject *swig_obj[1] ;
26512
26513 if (!args) SWIG_fail;
26514 swig_obj[0] = args;
26515 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, 0 | 0 );
26516 if (!SWIG_IsOK(res1)) {
26517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Overlay_Reset" "', expected argument " "1"" of type '" "wxOverlay *""'");
26518 }
26519 arg1 = reinterpret_cast< wxOverlay * >(argp1);
26520 {
26521 PyThreadState* __tstate = wxPyBeginAllowThreads();
26522 (arg1)->Reset();
26523 wxPyEndAllowThreads(__tstate);
26524 if (PyErr_Occurred()) SWIG_fail;
26525 }
26526 resultobj = SWIG_Py_Void();
26527 return resultobj;
26528 fail:
26529 return NULL;
26530 }
26531
26532
26533 SWIGINTERN PyObject *Overlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26534 PyObject *obj;
26535 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26536 SWIG_TypeNewClientData(SWIGTYPE_p_wxOverlay, SWIG_NewClientData(obj));
26537 return SWIG_Py_Void();
26538 }
26539
26540 SWIGINTERN PyObject *Overlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26541 return SWIG_Python_InitShadowInstance(args);
26542 }
26543
26544 SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26545 PyObject *resultobj = 0;
26546 wxOverlay *arg1 = 0 ;
26547 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
26548 int arg3 ;
26549 int arg4 ;
26550 int arg5 ;
26551 int arg6 ;
26552 wxDCOverlay *result = 0 ;
26553 void *argp1 = 0 ;
26554 int res1 = 0 ;
26555 void *argp2 = 0 ;
26556 int res2 = 0 ;
26557 int val3 ;
26558 int ecode3 = 0 ;
26559 int val4 ;
26560 int ecode4 = 0 ;
26561 int val5 ;
26562 int ecode5 = 0 ;
26563 int val6 ;
26564 int ecode6 = 0 ;
26565
26566 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
26567 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
26568 if (!SWIG_IsOK(res1)) {
26569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
26570 }
26571 if (!argp1) {
26572 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
26573 }
26574 arg1 = reinterpret_cast< wxOverlay * >(argp1);
26575 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
26576 if (!SWIG_IsOK(res2)) {
26577 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
26578 }
26579 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
26580 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
26581 if (!SWIG_IsOK(ecode3)) {
26582 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCOverlay" "', expected argument " "3"" of type '" "int""'");
26583 }
26584 arg3 = static_cast< int >(val3);
26585 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
26586 if (!SWIG_IsOK(ecode4)) {
26587 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCOverlay" "', expected argument " "4"" of type '" "int""'");
26588 }
26589 arg4 = static_cast< int >(val4);
26590 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
26591 if (!SWIG_IsOK(ecode5)) {
26592 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCOverlay" "', expected argument " "5"" of type '" "int""'");
26593 }
26594 arg5 = static_cast< int >(val5);
26595 ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
26596 if (!SWIG_IsOK(ecode6)) {
26597 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DCOverlay" "', expected argument " "6"" of type '" "int""'");
26598 }
26599 arg6 = static_cast< int >(val6);
26600 {
26601 PyThreadState* __tstate = wxPyBeginAllowThreads();
26602 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2,arg3,arg4,arg5,arg6);
26603 wxPyEndAllowThreads(__tstate);
26604 if (PyErr_Occurred()) SWIG_fail;
26605 }
26606 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
26607 return resultobj;
26608 fail:
26609 return NULL;
26610 }
26611
26612
26613 SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26614 PyObject *resultobj = 0;
26615 wxOverlay *arg1 = 0 ;
26616 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
26617 wxDCOverlay *result = 0 ;
26618 void *argp1 = 0 ;
26619 int res1 = 0 ;
26620 void *argp2 = 0 ;
26621 int res2 = 0 ;
26622
26623 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
26624 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
26625 if (!SWIG_IsOK(res1)) {
26626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
26627 }
26628 if (!argp1) {
26629 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
26630 }
26631 arg1 = reinterpret_cast< wxOverlay * >(argp1);
26632 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
26633 if (!SWIG_IsOK(res2)) {
26634 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
26635 }
26636 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
26637 {
26638 PyThreadState* __tstate = wxPyBeginAllowThreads();
26639 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2);
26640 wxPyEndAllowThreads(__tstate);
26641 if (PyErr_Occurred()) SWIG_fail;
26642 }
26643 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
26644 return resultobj;
26645 fail:
26646 return NULL;
26647 }
26648
26649
26650 SWIGINTERN PyObject *_wrap_new_DCOverlay(PyObject *self, PyObject *args) {
26651 int argc;
26652 PyObject *argv[7];
26653
26654 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCOverlay",0,6,argv))) SWIG_fail;
26655 --argc;
26656 if (argc == 2) {
26657 return _wrap_new_DCOverlay__SWIG_1(self, argc, argv);
26658 }
26659 if (argc == 6) {
26660 return _wrap_new_DCOverlay__SWIG_0(self, argc, argv);
26661 }
26662
26663 fail:
26664 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCOverlay'");
26665 return NULL;
26666 }
26667
26668
26669 SWIGINTERN PyObject *_wrap_delete_DCOverlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26670 PyObject *resultobj = 0;
26671 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
26672 void *argp1 = 0 ;
26673 int res1 = 0 ;
26674 PyObject *swig_obj[1] ;
26675
26676 if (!args) SWIG_fail;
26677 swig_obj[0] = args;
26678 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_DISOWN | 0 );
26679 if (!SWIG_IsOK(res1)) {
26680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCOverlay" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
26681 }
26682 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
26683 {
26684 PyThreadState* __tstate = wxPyBeginAllowThreads();
26685 delete arg1;
26686
26687 wxPyEndAllowThreads(__tstate);
26688 if (PyErr_Occurred()) SWIG_fail;
26689 }
26690 resultobj = SWIG_Py_Void();
26691 return resultobj;
26692 fail:
26693 return NULL;
26694 }
26695
26696
26697 SWIGINTERN PyObject *_wrap_DCOverlay_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26698 PyObject *resultobj = 0;
26699 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
26700 void *argp1 = 0 ;
26701 int res1 = 0 ;
26702 PyObject *swig_obj[1] ;
26703
26704 if (!args) SWIG_fail;
26705 swig_obj[0] = args;
26706 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, 0 | 0 );
26707 if (!SWIG_IsOK(res1)) {
26708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DCOverlay_Clear" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
26709 }
26710 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
26711 {
26712 PyThreadState* __tstate = wxPyBeginAllowThreads();
26713 (arg1)->Clear();
26714 wxPyEndAllowThreads(__tstate);
26715 if (PyErr_Occurred()) SWIG_fail;
26716 }
26717 resultobj = SWIG_Py_Void();
26718 return resultobj;
26719 fail:
26720 return NULL;
26721 }
26722
26723
26724 SWIGINTERN PyObject *DCOverlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26725 PyObject *obj;
26726 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26727 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCOverlay, SWIG_NewClientData(obj));
26728 return SWIG_Py_Void();
26729 }
26730
26731 SWIGINTERN PyObject *DCOverlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26732 return SWIG_Python_InitShadowInstance(args);
26733 }
26734
26735 SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26736 PyObject *resultobj = 0;
26737 int arg1 ;
26738 int arg2 ;
26739 int arg3 = (int) true ;
26740 int arg4 = (int) 1 ;
26741 wxImageList *result = 0 ;
26742 int val1 ;
26743 int ecode1 = 0 ;
26744 int val2 ;
26745 int ecode2 = 0 ;
26746 int val3 ;
26747 int ecode3 = 0 ;
26748 int val4 ;
26749 int ecode4 = 0 ;
26750 PyObject * obj0 = 0 ;
26751 PyObject * obj1 = 0 ;
26752 PyObject * obj2 = 0 ;
26753 PyObject * obj3 = 0 ;
26754 char * kwnames[] = {
26755 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
26756 };
26757
26758 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
26759 ecode1 = SWIG_AsVal_int(obj0, &val1);
26760 if (!SWIG_IsOK(ecode1)) {
26761 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
26762 }
26763 arg1 = static_cast< int >(val1);
26764 ecode2 = SWIG_AsVal_int(obj1, &val2);
26765 if (!SWIG_IsOK(ecode2)) {
26766 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
26767 }
26768 arg2 = static_cast< int >(val2);
26769 if (obj2) {
26770 ecode3 = SWIG_AsVal_int(obj2, &val3);
26771 if (!SWIG_IsOK(ecode3)) {
26772 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
26773 }
26774 arg3 = static_cast< int >(val3);
26775 }
26776 if (obj3) {
26777 ecode4 = SWIG_AsVal_int(obj3, &val4);
26778 if (!SWIG_IsOK(ecode4)) {
26779 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
26780 }
26781 arg4 = static_cast< int >(val4);
26782 }
26783 {
26784 if (!wxPyCheckForApp()) SWIG_fail;
26785 PyThreadState* __tstate = wxPyBeginAllowThreads();
26786 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
26787 wxPyEndAllowThreads(__tstate);
26788 if (PyErr_Occurred()) SWIG_fail;
26789 }
26790 {
26791 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW);
26792 }
26793 return resultobj;
26794 fail:
26795 return NULL;
26796 }
26797
26798
26799 SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26800 PyObject *resultobj = 0;
26801 wxImageList *arg1 = (wxImageList *) 0 ;
26802 void *argp1 = 0 ;
26803 int res1 = 0 ;
26804 PyObject *swig_obj[1] ;
26805
26806 if (!args) SWIG_fail;
26807 swig_obj[0] = args;
26808 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
26809 if (!SWIG_IsOK(res1)) {
26810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
26811 }
26812 arg1 = reinterpret_cast< wxImageList * >(argp1);
26813 {
26814 PyThreadState* __tstate = wxPyBeginAllowThreads();
26815 delete arg1;
26816
26817 wxPyEndAllowThreads(__tstate);
26818 if (PyErr_Occurred()) SWIG_fail;
26819 }
26820 resultobj = SWIG_Py_Void();
26821 return resultobj;
26822 fail:
26823 return NULL;
26824 }
26825
26826
26827 SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26828 PyObject *resultobj = 0;
26829 wxImageList *arg1 = (wxImageList *) 0 ;
26830 wxBitmap *arg2 = 0 ;
26831 wxBitmap const &arg3_defvalue = wxNullBitmap ;
26832 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
26833 int result;
26834 void *argp1 = 0 ;
26835 int res1 = 0 ;
26836 void *argp2 = 0 ;
26837 int res2 = 0 ;
26838 void *argp3 = 0 ;
26839 int res3 = 0 ;
26840 PyObject * obj0 = 0 ;
26841 PyObject * obj1 = 0 ;
26842 PyObject * obj2 = 0 ;
26843 char * kwnames[] = {
26844 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
26845 };
26846
26847 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26848 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
26849 if (!SWIG_IsOK(res1)) {
26850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
26851 }
26852 arg1 = reinterpret_cast< wxImageList * >(argp1);
26853 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
26854 if (!SWIG_IsOK(res2)) {
26855 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
26856 }
26857 if (!argp2) {
26858 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
26859 }
26860 arg2 = reinterpret_cast< wxBitmap * >(argp2);
26861 if (obj2) {
26862 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
26863 if (!SWIG_IsOK(res3)) {
26864 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
26865 }
26866 if (!argp3) {
26867 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
26868 }
26869 arg3 = reinterpret_cast< wxBitmap * >(argp3);
26870 }
26871 {
26872 PyThreadState* __tstate = wxPyBeginAllowThreads();
26873 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
26874 wxPyEndAllowThreads(__tstate);
26875 if (PyErr_Occurred()) SWIG_fail;
26876 }
26877 resultobj = SWIG_From_int(static_cast< int >(result));
26878 return resultobj;
26879 fail:
26880 return NULL;
26881 }
26882
26883
26884 SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26885 PyObject *resultobj = 0;
26886 wxImageList *arg1 = (wxImageList *) 0 ;
26887 wxBitmap *arg2 = 0 ;
26888 wxColour *arg3 = 0 ;
26889 int result;
26890 void *argp1 = 0 ;
26891 int res1 = 0 ;
26892 void *argp2 = 0 ;
26893 int res2 = 0 ;
26894 wxColour temp3 ;
26895 PyObject * obj0 = 0 ;
26896 PyObject * obj1 = 0 ;
26897 PyObject * obj2 = 0 ;
26898 char * kwnames[] = {
26899 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
26900 };
26901
26902 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26903 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
26904 if (!SWIG_IsOK(res1)) {
26905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
26906 }
26907 arg1 = reinterpret_cast< wxImageList * >(argp1);
26908 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
26909 if (!SWIG_IsOK(res2)) {
26910 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
26911 }
26912 if (!argp2) {
26913 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
26914 }
26915 arg2 = reinterpret_cast< wxBitmap * >(argp2);
26916 {
26917 arg3 = &temp3;
26918 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
26919 }
26920 {
26921 PyThreadState* __tstate = wxPyBeginAllowThreads();
26922 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
26923 wxPyEndAllowThreads(__tstate);
26924 if (PyErr_Occurred()) SWIG_fail;
26925 }
26926 resultobj = SWIG_From_int(static_cast< int >(result));
26927 return resultobj;
26928 fail:
26929 return NULL;
26930 }
26931
26932
26933 SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26934 PyObject *resultobj = 0;
26935 wxImageList *arg1 = (wxImageList *) 0 ;
26936 wxIcon *arg2 = 0 ;
26937 int result;
26938 void *argp1 = 0 ;
26939 int res1 = 0 ;
26940 void *argp2 = 0 ;
26941 int res2 = 0 ;
26942 PyObject * obj0 = 0 ;
26943 PyObject * obj1 = 0 ;
26944 char * kwnames[] = {
26945 (char *) "self",(char *) "icon", NULL
26946 };
26947
26948 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
26949 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
26950 if (!SWIG_IsOK(res1)) {
26951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
26952 }
26953 arg1 = reinterpret_cast< wxImageList * >(argp1);
26954 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
26955 if (!SWIG_IsOK(res2)) {
26956 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
26957 }
26958 if (!argp2) {
26959 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
26960 }
26961 arg2 = reinterpret_cast< wxIcon * >(argp2);
26962 {
26963 PyThreadState* __tstate = wxPyBeginAllowThreads();
26964 result = (int)(arg1)->Add((wxIcon const &)*arg2);
26965 wxPyEndAllowThreads(__tstate);
26966 if (PyErr_Occurred()) SWIG_fail;
26967 }
26968 resultobj = SWIG_From_int(static_cast< int >(result));
26969 return resultobj;
26970 fail:
26971 return NULL;
26972 }
26973
26974
26975 SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26976 PyObject *resultobj = 0;
26977 wxImageList *arg1 = (wxImageList *) 0 ;
26978 int arg2 ;
26979 SwigValueWrapper<wxBitmap > result;
26980 void *argp1 = 0 ;
26981 int res1 = 0 ;
26982 int val2 ;
26983 int ecode2 = 0 ;
26984 PyObject * obj0 = 0 ;
26985 PyObject * obj1 = 0 ;
26986 char * kwnames[] = {
26987 (char *) "self",(char *) "index", NULL
26988 };
26989
26990 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
26991 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
26992 if (!SWIG_IsOK(res1)) {
26993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
26994 }
26995 arg1 = reinterpret_cast< wxImageList * >(argp1);
26996 ecode2 = SWIG_AsVal_int(obj1, &val2);
26997 if (!SWIG_IsOK(ecode2)) {
26998 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
26999 }
27000 arg2 = static_cast< int >(val2);
27001 {
27002 PyThreadState* __tstate = wxPyBeginAllowThreads();
27003 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
27004 wxPyEndAllowThreads(__tstate);
27005 if (PyErr_Occurred()) SWIG_fail;
27006 }
27007 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
27008 return resultobj;
27009 fail:
27010 return NULL;
27011 }
27012
27013
27014 SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27015 PyObject *resultobj = 0;
27016 wxImageList *arg1 = (wxImageList *) 0 ;
27017 int arg2 ;
27018 wxIcon result;
27019 void *argp1 = 0 ;
27020 int res1 = 0 ;
27021 int val2 ;
27022 int ecode2 = 0 ;
27023 PyObject * obj0 = 0 ;
27024 PyObject * obj1 = 0 ;
27025 char * kwnames[] = {
27026 (char *) "self",(char *) "index", NULL
27027 };
27028
27029 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
27030 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27031 if (!SWIG_IsOK(res1)) {
27032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
27033 }
27034 arg1 = reinterpret_cast< wxImageList * >(argp1);
27035 ecode2 = SWIG_AsVal_int(obj1, &val2);
27036 if (!SWIG_IsOK(ecode2)) {
27037 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
27038 }
27039 arg2 = static_cast< int >(val2);
27040 {
27041 PyThreadState* __tstate = wxPyBeginAllowThreads();
27042 result = ((wxImageList const *)arg1)->GetIcon(arg2);
27043 wxPyEndAllowThreads(__tstate);
27044 if (PyErr_Occurred()) SWIG_fail;
27045 }
27046 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
27047 return resultobj;
27048 fail:
27049 return NULL;
27050 }
27051
27052
27053 SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27054 PyObject *resultobj = 0;
27055 wxImageList *arg1 = (wxImageList *) 0 ;
27056 int arg2 ;
27057 wxBitmap *arg3 = 0 ;
27058 wxBitmap const &arg4_defvalue = wxNullBitmap ;
27059 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
27060 bool result;
27061 void *argp1 = 0 ;
27062 int res1 = 0 ;
27063 int val2 ;
27064 int ecode2 = 0 ;
27065 void *argp3 = 0 ;
27066 int res3 = 0 ;
27067 void *argp4 = 0 ;
27068 int res4 = 0 ;
27069 PyObject * obj0 = 0 ;
27070 PyObject * obj1 = 0 ;
27071 PyObject * obj2 = 0 ;
27072 PyObject * obj3 = 0 ;
27073 char * kwnames[] = {
27074 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
27075 };
27076
27077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27079 if (!SWIG_IsOK(res1)) {
27080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
27081 }
27082 arg1 = reinterpret_cast< wxImageList * >(argp1);
27083 ecode2 = SWIG_AsVal_int(obj1, &val2);
27084 if (!SWIG_IsOK(ecode2)) {
27085 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
27086 }
27087 arg2 = static_cast< int >(val2);
27088 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
27089 if (!SWIG_IsOK(res3)) {
27090 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
27091 }
27092 if (!argp3) {
27093 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
27094 }
27095 arg3 = reinterpret_cast< wxBitmap * >(argp3);
27096 if (obj3) {
27097 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
27098 if (!SWIG_IsOK(res4)) {
27099 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
27100 }
27101 if (!argp4) {
27102 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
27103 }
27104 arg4 = reinterpret_cast< wxBitmap * >(argp4);
27105 }
27106 {
27107 PyThreadState* __tstate = wxPyBeginAllowThreads();
27108 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
27109 wxPyEndAllowThreads(__tstate);
27110 if (PyErr_Occurred()) SWIG_fail;
27111 }
27112 {
27113 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27114 }
27115 return resultobj;
27116 fail:
27117 return NULL;
27118 }
27119
27120
27121 SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27122 PyObject *resultobj = 0;
27123 wxImageList *arg1 = (wxImageList *) 0 ;
27124 int arg2 ;
27125 wxDC *arg3 = 0 ;
27126 int arg4 ;
27127 int arg5 ;
27128 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
27129 bool arg7 = (bool) (bool)false ;
27130 bool result;
27131 void *argp1 = 0 ;
27132 int res1 = 0 ;
27133 int val2 ;
27134 int ecode2 = 0 ;
27135 void *argp3 = 0 ;
27136 int res3 = 0 ;
27137 int val4 ;
27138 int ecode4 = 0 ;
27139 int val5 ;
27140 int ecode5 = 0 ;
27141 int val6 ;
27142 int ecode6 = 0 ;
27143 bool val7 ;
27144 int ecode7 = 0 ;
27145 PyObject * obj0 = 0 ;
27146 PyObject * obj1 = 0 ;
27147 PyObject * obj2 = 0 ;
27148 PyObject * obj3 = 0 ;
27149 PyObject * obj4 = 0 ;
27150 PyObject * obj5 = 0 ;
27151 PyObject * obj6 = 0 ;
27152 char * kwnames[] = {
27153 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
27154 };
27155
27156 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
27157 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27158 if (!SWIG_IsOK(res1)) {
27159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
27160 }
27161 arg1 = reinterpret_cast< wxImageList * >(argp1);
27162 ecode2 = SWIG_AsVal_int(obj1, &val2);
27163 if (!SWIG_IsOK(ecode2)) {
27164 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
27165 }
27166 arg2 = static_cast< int >(val2);
27167 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
27168 if (!SWIG_IsOK(res3)) {
27169 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
27170 }
27171 if (!argp3) {
27172 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
27173 }
27174 arg3 = reinterpret_cast< wxDC * >(argp3);
27175 ecode4 = SWIG_AsVal_int(obj3, &val4);
27176 if (!SWIG_IsOK(ecode4)) {
27177 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
27178 }
27179 arg4 = static_cast< int >(val4);
27180 ecode5 = SWIG_AsVal_int(obj4, &val5);
27181 if (!SWIG_IsOK(ecode5)) {
27182 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
27183 }
27184 arg5 = static_cast< int >(val5);
27185 if (obj5) {
27186 ecode6 = SWIG_AsVal_int(obj5, &val6);
27187 if (!SWIG_IsOK(ecode6)) {
27188 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
27189 }
27190 arg6 = static_cast< int >(val6);
27191 }
27192 if (obj6) {
27193 ecode7 = SWIG_AsVal_bool(obj6, &val7);
27194 if (!SWIG_IsOK(ecode7)) {
27195 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
27196 }
27197 arg7 = static_cast< bool >(val7);
27198 }
27199 {
27200 PyThreadState* __tstate = wxPyBeginAllowThreads();
27201 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
27202 wxPyEndAllowThreads(__tstate);
27203 if (PyErr_Occurred()) SWIG_fail;
27204 }
27205 {
27206 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27207 }
27208 return resultobj;
27209 fail:
27210 return NULL;
27211 }
27212
27213
27214 SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27215 PyObject *resultobj = 0;
27216 wxImageList *arg1 = (wxImageList *) 0 ;
27217 int result;
27218 void *argp1 = 0 ;
27219 int res1 = 0 ;
27220 PyObject *swig_obj[1] ;
27221
27222 if (!args) SWIG_fail;
27223 swig_obj[0] = args;
27224 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27225 if (!SWIG_IsOK(res1)) {
27226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
27227 }
27228 arg1 = reinterpret_cast< wxImageList * >(argp1);
27229 {
27230 PyThreadState* __tstate = wxPyBeginAllowThreads();
27231 result = (int)(arg1)->GetImageCount();
27232 wxPyEndAllowThreads(__tstate);
27233 if (PyErr_Occurred()) SWIG_fail;
27234 }
27235 resultobj = SWIG_From_int(static_cast< int >(result));
27236 return resultobj;
27237 fail:
27238 return NULL;
27239 }
27240
27241
27242 SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27243 PyObject *resultobj = 0;
27244 wxImageList *arg1 = (wxImageList *) 0 ;
27245 int arg2 ;
27246 bool result;
27247 void *argp1 = 0 ;
27248 int res1 = 0 ;
27249 int val2 ;
27250 int ecode2 = 0 ;
27251 PyObject * obj0 = 0 ;
27252 PyObject * obj1 = 0 ;
27253 char * kwnames[] = {
27254 (char *) "self",(char *) "index", NULL
27255 };
27256
27257 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
27258 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27259 if (!SWIG_IsOK(res1)) {
27260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
27261 }
27262 arg1 = reinterpret_cast< wxImageList * >(argp1);
27263 ecode2 = SWIG_AsVal_int(obj1, &val2);
27264 if (!SWIG_IsOK(ecode2)) {
27265 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
27266 }
27267 arg2 = static_cast< int >(val2);
27268 {
27269 PyThreadState* __tstate = wxPyBeginAllowThreads();
27270 result = (bool)(arg1)->Remove(arg2);
27271 wxPyEndAllowThreads(__tstate);
27272 if (PyErr_Occurred()) SWIG_fail;
27273 }
27274 {
27275 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27276 }
27277 return resultobj;
27278 fail:
27279 return NULL;
27280 }
27281
27282
27283 SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27284 PyObject *resultobj = 0;
27285 wxImageList *arg1 = (wxImageList *) 0 ;
27286 bool result;
27287 void *argp1 = 0 ;
27288 int res1 = 0 ;
27289 PyObject *swig_obj[1] ;
27290
27291 if (!args) SWIG_fail;
27292 swig_obj[0] = args;
27293 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27294 if (!SWIG_IsOK(res1)) {
27295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
27296 }
27297 arg1 = reinterpret_cast< wxImageList * >(argp1);
27298 {
27299 PyThreadState* __tstate = wxPyBeginAllowThreads();
27300 result = (bool)(arg1)->RemoveAll();
27301 wxPyEndAllowThreads(__tstate);
27302 if (PyErr_Occurred()) SWIG_fail;
27303 }
27304 {
27305 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27306 }
27307 return resultobj;
27308 fail:
27309 return NULL;
27310 }
27311
27312
27313 SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27314 PyObject *resultobj = 0;
27315 wxImageList *arg1 = (wxImageList *) 0 ;
27316 int arg2 ;
27317 int *arg3 = 0 ;
27318 int *arg4 = 0 ;
27319 void *argp1 = 0 ;
27320 int res1 = 0 ;
27321 int val2 ;
27322 int ecode2 = 0 ;
27323 int temp3 ;
27324 int res3 = SWIG_TMPOBJ ;
27325 int temp4 ;
27326 int res4 = SWIG_TMPOBJ ;
27327 PyObject * obj0 = 0 ;
27328 PyObject * obj1 = 0 ;
27329 char * kwnames[] = {
27330 (char *) "self",(char *) "index", NULL
27331 };
27332
27333 arg3 = &temp3;
27334 arg4 = &temp4;
27335 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
27336 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27337 if (!SWIG_IsOK(res1)) {
27338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
27339 }
27340 arg1 = reinterpret_cast< wxImageList * >(argp1);
27341 ecode2 = SWIG_AsVal_int(obj1, &val2);
27342 if (!SWIG_IsOK(ecode2)) {
27343 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
27344 }
27345 arg2 = static_cast< int >(val2);
27346 {
27347 PyThreadState* __tstate = wxPyBeginAllowThreads();
27348 (arg1)->GetSize(arg2,*arg3,*arg4);
27349 wxPyEndAllowThreads(__tstate);
27350 if (PyErr_Occurred()) SWIG_fail;
27351 }
27352 resultobj = SWIG_Py_Void();
27353 if (SWIG_IsTmpObj(res3)) {
27354 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
27355 } else {
27356 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
27357 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
27358 }
27359 if (SWIG_IsTmpObj(res4)) {
27360 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
27361 } else {
27362 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
27363 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
27364 }
27365 return resultobj;
27366 fail:
27367 return NULL;
27368 }
27369
27370
27371 SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27372 PyObject *obj;
27373 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27374 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
27375 return SWIG_Py_Void();
27376 }
27377
27378 SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27379 return SWIG_Python_InitShadowInstance(args);
27380 }
27381
27382 SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27383 PyObject *resultobj = 0;
27384 wxStockGDI *result = 0 ;
27385
27386 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
27387 {
27388 PyThreadState* __tstate = wxPyBeginAllowThreads();
27389 result = (wxStockGDI *)new wxStockGDI();
27390 wxPyEndAllowThreads(__tstate);
27391 if (PyErr_Occurred()) SWIG_fail;
27392 }
27393 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
27394 return resultobj;
27395 fail:
27396 return NULL;
27397 }
27398
27399
27400 SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27401 PyObject *resultobj = 0;
27402 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
27403 void *argp1 = 0 ;
27404 int res1 = 0 ;
27405 PyObject *swig_obj[1] ;
27406
27407 if (!args) SWIG_fail;
27408 swig_obj[0] = args;
27409 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
27410 if (!SWIG_IsOK(res1)) {
27411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
27412 }
27413 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
27414 {
27415 PyThreadState* __tstate = wxPyBeginAllowThreads();
27416 delete arg1;
27417
27418 wxPyEndAllowThreads(__tstate);
27419 if (PyErr_Occurred()) SWIG_fail;
27420 }
27421 resultobj = SWIG_Py_Void();
27422 return resultobj;
27423 fail:
27424 return NULL;
27425 }
27426
27427
27428 SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27429 PyObject *resultobj = 0;
27430
27431 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
27432 {
27433 PyThreadState* __tstate = wxPyBeginAllowThreads();
27434 wxStockGDI::DeleteAll();
27435 wxPyEndAllowThreads(__tstate);
27436 if (PyErr_Occurred()) SWIG_fail;
27437 }
27438 resultobj = SWIG_Py_Void();
27439 return resultobj;
27440 fail:
27441 return NULL;
27442 }
27443
27444
27445 SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27446 PyObject *resultobj = 0;
27447 wxStockGDI *result = 0 ;
27448
27449 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
27450 {
27451 PyThreadState* __tstate = wxPyBeginAllowThreads();
27452 {
27453 wxStockGDI &_result_ref = wxStockGDI::instance();
27454 result = (wxStockGDI *) &_result_ref;
27455 }
27456 wxPyEndAllowThreads(__tstate);
27457 if (PyErr_Occurred()) SWIG_fail;
27458 }
27459 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
27460 return resultobj;
27461 fail:
27462 return NULL;
27463 }
27464
27465
27466 SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27467 PyObject *resultobj = 0;
27468 wxStockGDI::Item arg1 ;
27469 wxBrush *result = 0 ;
27470 int val1 ;
27471 int ecode1 = 0 ;
27472 PyObject * obj0 = 0 ;
27473 char * kwnames[] = {
27474 (char *) "item", NULL
27475 };
27476
27477 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
27478 ecode1 = SWIG_AsVal_int(obj0, &val1);
27479 if (!SWIG_IsOK(ecode1)) {
27480 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
27481 }
27482 arg1 = static_cast< wxStockGDI::Item >(val1);
27483 {
27484 PyThreadState* __tstate = wxPyBeginAllowThreads();
27485 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
27486 wxPyEndAllowThreads(__tstate);
27487 if (PyErr_Occurred()) SWIG_fail;
27488 }
27489 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
27490 return resultobj;
27491 fail:
27492 return NULL;
27493 }
27494
27495
27496 SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27497 PyObject *resultobj = 0;
27498 wxStockGDI::Item arg1 ;
27499 wxColour *result = 0 ;
27500 int val1 ;
27501 int ecode1 = 0 ;
27502 PyObject * obj0 = 0 ;
27503 char * kwnames[] = {
27504 (char *) "item", NULL
27505 };
27506
27507 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
27508 ecode1 = SWIG_AsVal_int(obj0, &val1);
27509 if (!SWIG_IsOK(ecode1)) {
27510 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
27511 }
27512 arg1 = static_cast< wxStockGDI::Item >(val1);
27513 {
27514 PyThreadState* __tstate = wxPyBeginAllowThreads();
27515 result = (wxColour *)wxStockGDI::GetColour(arg1);
27516 wxPyEndAllowThreads(__tstate);
27517 if (PyErr_Occurred()) SWIG_fail;
27518 }
27519 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
27520 return resultobj;
27521 fail:
27522 return NULL;
27523 }
27524
27525
27526 SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27527 PyObject *resultobj = 0;
27528 wxStockGDI::Item arg1 ;
27529 wxCursor *result = 0 ;
27530 int val1 ;
27531 int ecode1 = 0 ;
27532 PyObject * obj0 = 0 ;
27533 char * kwnames[] = {
27534 (char *) "item", NULL
27535 };
27536
27537 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
27538 ecode1 = SWIG_AsVal_int(obj0, &val1);
27539 if (!SWIG_IsOK(ecode1)) {
27540 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
27541 }
27542 arg1 = static_cast< wxStockGDI::Item >(val1);
27543 {
27544 PyThreadState* __tstate = wxPyBeginAllowThreads();
27545 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
27546 wxPyEndAllowThreads(__tstate);
27547 if (PyErr_Occurred()) SWIG_fail;
27548 }
27549 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
27550 return resultobj;
27551 fail:
27552 return NULL;
27553 }
27554
27555
27556 SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27557 PyObject *resultobj = 0;
27558 wxStockGDI::Item arg1 ;
27559 wxPen *result = 0 ;
27560 int val1 ;
27561 int ecode1 = 0 ;
27562 PyObject * obj0 = 0 ;
27563 char * kwnames[] = {
27564 (char *) "item", NULL
27565 };
27566
27567 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
27568 ecode1 = SWIG_AsVal_int(obj0, &val1);
27569 if (!SWIG_IsOK(ecode1)) {
27570 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
27571 }
27572 arg1 = static_cast< wxStockGDI::Item >(val1);
27573 {
27574 PyThreadState* __tstate = wxPyBeginAllowThreads();
27575 result = (wxPen *)wxStockGDI::GetPen(arg1);
27576 wxPyEndAllowThreads(__tstate);
27577 if (PyErr_Occurred()) SWIG_fail;
27578 }
27579 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
27580 return resultobj;
27581 fail:
27582 return NULL;
27583 }
27584
27585
27586 SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27587 PyObject *resultobj = 0;
27588 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
27589 wxStockGDI::Item arg2 ;
27590 wxFont *result = 0 ;
27591 void *argp1 = 0 ;
27592 int res1 = 0 ;
27593 int val2 ;
27594 int ecode2 = 0 ;
27595 PyObject * obj0 = 0 ;
27596 PyObject * obj1 = 0 ;
27597 char * kwnames[] = {
27598 (char *) "self",(char *) "item", NULL
27599 };
27600
27601 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
27602 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
27603 if (!SWIG_IsOK(res1)) {
27604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
27605 }
27606 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
27607 ecode2 = SWIG_AsVal_int(obj1, &val2);
27608 if (!SWIG_IsOK(ecode2)) {
27609 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
27610 }
27611 arg2 = static_cast< wxStockGDI::Item >(val2);
27612 {
27613 PyThreadState* __tstate = wxPyBeginAllowThreads();
27614 result = (wxFont *)(arg1)->GetFont(arg2);
27615 wxPyEndAllowThreads(__tstate);
27616 if (PyErr_Occurred()) SWIG_fail;
27617 }
27618 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
27619 return resultobj;
27620 fail:
27621 return NULL;
27622 }
27623
27624
27625 SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27626 PyObject *obj;
27627 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27628 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
27629 return SWIG_Py_Void();
27630 }
27631
27632 SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27633 return SWIG_Python_InitShadowInstance(args);
27634 }
27635
27636 SWIGINTERN int NullBitmap_set(PyObject *) {
27637 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
27638 return 1;
27639 }
27640
27641
27642 SWIGINTERN PyObject *NullBitmap_get(void) {
27643 PyObject *pyobj = 0;
27644
27645 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
27646 return pyobj;
27647 }
27648
27649
27650 SWIGINTERN int NullIcon_set(PyObject *) {
27651 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
27652 return 1;
27653 }
27654
27655
27656 SWIGINTERN PyObject *NullIcon_get(void) {
27657 PyObject *pyobj = 0;
27658
27659 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
27660 return pyobj;
27661 }
27662
27663
27664 SWIGINTERN int NullCursor_set(PyObject *) {
27665 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
27666 return 1;
27667 }
27668
27669
27670 SWIGINTERN PyObject *NullCursor_get(void) {
27671 PyObject *pyobj = 0;
27672
27673 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
27674 return pyobj;
27675 }
27676
27677
27678 SWIGINTERN int NullPen_set(PyObject *) {
27679 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
27680 return 1;
27681 }
27682
27683
27684 SWIGINTERN PyObject *NullPen_get(void) {
27685 PyObject *pyobj = 0;
27686
27687 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
27688 return pyobj;
27689 }
27690
27691
27692 SWIGINTERN int NullBrush_set(PyObject *) {
27693 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
27694 return 1;
27695 }
27696
27697
27698 SWIGINTERN PyObject *NullBrush_get(void) {
27699 PyObject *pyobj = 0;
27700
27701 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
27702 return pyobj;
27703 }
27704
27705
27706 SWIGINTERN int NullPalette_set(PyObject *) {
27707 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
27708 return 1;
27709 }
27710
27711
27712 SWIGINTERN PyObject *NullPalette_get(void) {
27713 PyObject *pyobj = 0;
27714
27715 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
27716 return pyobj;
27717 }
27718
27719
27720 SWIGINTERN int NullFont_set(PyObject *) {
27721 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
27722 return 1;
27723 }
27724
27725
27726 SWIGINTERN PyObject *NullFont_get(void) {
27727 PyObject *pyobj = 0;
27728
27729 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
27730 return pyobj;
27731 }
27732
27733
27734 SWIGINTERN int NullColour_set(PyObject *) {
27735 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
27736 return 1;
27737 }
27738
27739
27740 SWIGINTERN PyObject *NullColour_get(void) {
27741 PyObject *pyobj = 0;
27742
27743 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
27744 return pyobj;
27745 }
27746
27747
27748 SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27749 PyObject *resultobj = 0;
27750 wxGDIObjListBase *result = 0 ;
27751
27752 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
27753 {
27754 PyThreadState* __tstate = wxPyBeginAllowThreads();
27755 result = (wxGDIObjListBase *)new wxGDIObjListBase();
27756 wxPyEndAllowThreads(__tstate);
27757 if (PyErr_Occurred()) SWIG_fail;
27758 }
27759 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
27760 return resultobj;
27761 fail:
27762 return NULL;
27763 }
27764
27765
27766 SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27767 PyObject *resultobj = 0;
27768 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
27769 void *argp1 = 0 ;
27770 int res1 = 0 ;
27771 PyObject *swig_obj[1] ;
27772
27773 if (!args) SWIG_fail;
27774 swig_obj[0] = args;
27775 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
27776 if (!SWIG_IsOK(res1)) {
27777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
27778 }
27779 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
27780 {
27781 PyThreadState* __tstate = wxPyBeginAllowThreads();
27782 delete arg1;
27783
27784 wxPyEndAllowThreads(__tstate);
27785 if (PyErr_Occurred()) SWIG_fail;
27786 }
27787 resultobj = SWIG_Py_Void();
27788 return resultobj;
27789 fail:
27790 return NULL;
27791 }
27792
27793
27794 SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27795 PyObject *obj;
27796 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27797 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
27798 return SWIG_Py_Void();
27799 }
27800
27801 SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27802 return SWIG_Python_InitShadowInstance(args);
27803 }
27804
27805 SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27806 PyObject *resultobj = 0;
27807 wxPenList *arg1 = (wxPenList *) 0 ;
27808 wxColour *arg2 = 0 ;
27809 int arg3 ;
27810 int arg4 ;
27811 wxPen *result = 0 ;
27812 void *argp1 = 0 ;
27813 int res1 = 0 ;
27814 wxColour temp2 ;
27815 int val3 ;
27816 int ecode3 = 0 ;
27817 int val4 ;
27818 int ecode4 = 0 ;
27819 PyObject * obj0 = 0 ;
27820 PyObject * obj1 = 0 ;
27821 PyObject * obj2 = 0 ;
27822 PyObject * obj3 = 0 ;
27823 char * kwnames[] = {
27824 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
27825 };
27826
27827 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27828 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
27829 if (!SWIG_IsOK(res1)) {
27830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
27831 }
27832 arg1 = reinterpret_cast< wxPenList * >(argp1);
27833 {
27834 arg2 = &temp2;
27835 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
27836 }
27837 ecode3 = SWIG_AsVal_int(obj2, &val3);
27838 if (!SWIG_IsOK(ecode3)) {
27839 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
27840 }
27841 arg3 = static_cast< int >(val3);
27842 ecode4 = SWIG_AsVal_int(obj3, &val4);
27843 if (!SWIG_IsOK(ecode4)) {
27844 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
27845 }
27846 arg4 = static_cast< int >(val4);
27847 {
27848 PyThreadState* __tstate = wxPyBeginAllowThreads();
27849 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
27850 wxPyEndAllowThreads(__tstate);
27851 if (PyErr_Occurred()) SWIG_fail;
27852 }
27853 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
27854 return resultobj;
27855 fail:
27856 return NULL;
27857 }
27858
27859
27860 SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27861 PyObject *resultobj = 0;
27862 wxPenList *arg1 = (wxPenList *) 0 ;
27863 wxPen *arg2 = (wxPen *) 0 ;
27864 void *argp1 = 0 ;
27865 int res1 = 0 ;
27866 void *argp2 = 0 ;
27867 int res2 = 0 ;
27868 PyObject * obj0 = 0 ;
27869 PyObject * obj1 = 0 ;
27870 char * kwnames[] = {
27871 (char *) "self",(char *) "pen", NULL
27872 };
27873
27874 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
27875 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
27876 if (!SWIG_IsOK(res1)) {
27877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
27878 }
27879 arg1 = reinterpret_cast< wxPenList * >(argp1);
27880 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
27881 if (!SWIG_IsOK(res2)) {
27882 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
27883 }
27884 arg2 = reinterpret_cast< wxPen * >(argp2);
27885 {
27886 PyThreadState* __tstate = wxPyBeginAllowThreads();
27887 (arg1)->AddPen(arg2);
27888 wxPyEndAllowThreads(__tstate);
27889 if (PyErr_Occurred()) SWIG_fail;
27890 }
27891 resultobj = SWIG_Py_Void();
27892 return resultobj;
27893 fail:
27894 return NULL;
27895 }
27896
27897
27898 SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27899 PyObject *resultobj = 0;
27900 wxPenList *arg1 = (wxPenList *) 0 ;
27901 wxPen *arg2 = (wxPen *) 0 ;
27902 void *argp1 = 0 ;
27903 int res1 = 0 ;
27904 void *argp2 = 0 ;
27905 int res2 = 0 ;
27906 PyObject * obj0 = 0 ;
27907 PyObject * obj1 = 0 ;
27908 char * kwnames[] = {
27909 (char *) "self",(char *) "pen", NULL
27910 };
27911
27912 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
27913 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
27914 if (!SWIG_IsOK(res1)) {
27915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
27916 }
27917 arg1 = reinterpret_cast< wxPenList * >(argp1);
27918 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
27919 if (!SWIG_IsOK(res2)) {
27920 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
27921 }
27922 arg2 = reinterpret_cast< wxPen * >(argp2);
27923 {
27924 PyThreadState* __tstate = wxPyBeginAllowThreads();
27925 (arg1)->RemovePen(arg2);
27926 wxPyEndAllowThreads(__tstate);
27927 if (PyErr_Occurred()) SWIG_fail;
27928 }
27929 resultobj = SWIG_Py_Void();
27930 return resultobj;
27931 fail:
27932 return NULL;
27933 }
27934
27935
27936 SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27937 PyObject *obj;
27938 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27939 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
27940 return SWIG_Py_Void();
27941 }
27942
27943 SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27944 PyObject *resultobj = 0;
27945 wxBrushList *arg1 = (wxBrushList *) 0 ;
27946 wxColour *arg2 = 0 ;
27947 int arg3 = (int) wxSOLID ;
27948 wxBrush *result = 0 ;
27949 void *argp1 = 0 ;
27950 int res1 = 0 ;
27951 wxColour temp2 ;
27952 int val3 ;
27953 int ecode3 = 0 ;
27954 PyObject * obj0 = 0 ;
27955 PyObject * obj1 = 0 ;
27956 PyObject * obj2 = 0 ;
27957 char * kwnames[] = {
27958 (char *) "self",(char *) "colour",(char *) "style", NULL
27959 };
27960
27961 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27962 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
27963 if (!SWIG_IsOK(res1)) {
27964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
27965 }
27966 arg1 = reinterpret_cast< wxBrushList * >(argp1);
27967 {
27968 arg2 = &temp2;
27969 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
27970 }
27971 if (obj2) {
27972 ecode3 = SWIG_AsVal_int(obj2, &val3);
27973 if (!SWIG_IsOK(ecode3)) {
27974 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
27975 }
27976 arg3 = static_cast< int >(val3);
27977 }
27978 {
27979 PyThreadState* __tstate = wxPyBeginAllowThreads();
27980 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
27981 wxPyEndAllowThreads(__tstate);
27982 if (PyErr_Occurred()) SWIG_fail;
27983 }
27984 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
27985 return resultobj;
27986 fail:
27987 return NULL;
27988 }
27989
27990
27991 SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27992 PyObject *resultobj = 0;
27993 wxBrushList *arg1 = (wxBrushList *) 0 ;
27994 wxBrush *arg2 = (wxBrush *) 0 ;
27995 void *argp1 = 0 ;
27996 int res1 = 0 ;
27997 void *argp2 = 0 ;
27998 int res2 = 0 ;
27999 PyObject * obj0 = 0 ;
28000 PyObject * obj1 = 0 ;
28001 char * kwnames[] = {
28002 (char *) "self",(char *) "brush", NULL
28003 };
28004
28005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
28006 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
28007 if (!SWIG_IsOK(res1)) {
28008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
28009 }
28010 arg1 = reinterpret_cast< wxBrushList * >(argp1);
28011 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
28012 if (!SWIG_IsOK(res2)) {
28013 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
28014 }
28015 arg2 = reinterpret_cast< wxBrush * >(argp2);
28016 {
28017 PyThreadState* __tstate = wxPyBeginAllowThreads();
28018 (arg1)->AddBrush(arg2);
28019 wxPyEndAllowThreads(__tstate);
28020 if (PyErr_Occurred()) SWIG_fail;
28021 }
28022 resultobj = SWIG_Py_Void();
28023 return resultobj;
28024 fail:
28025 return NULL;
28026 }
28027
28028
28029 SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28030 PyObject *resultobj = 0;
28031 wxBrushList *arg1 = (wxBrushList *) 0 ;
28032 wxBrush *arg2 = (wxBrush *) 0 ;
28033 void *argp1 = 0 ;
28034 int res1 = 0 ;
28035 void *argp2 = 0 ;
28036 int res2 = 0 ;
28037 PyObject * obj0 = 0 ;
28038 PyObject * obj1 = 0 ;
28039 char * kwnames[] = {
28040 (char *) "self",(char *) "brush", NULL
28041 };
28042
28043 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
28044 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
28045 if (!SWIG_IsOK(res1)) {
28046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
28047 }
28048 arg1 = reinterpret_cast< wxBrushList * >(argp1);
28049 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
28050 if (!SWIG_IsOK(res2)) {
28051 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
28052 }
28053 arg2 = reinterpret_cast< wxBrush * >(argp2);
28054 {
28055 PyThreadState* __tstate = wxPyBeginAllowThreads();
28056 (arg1)->RemoveBrush(arg2);
28057 wxPyEndAllowThreads(__tstate);
28058 if (PyErr_Occurred()) SWIG_fail;
28059 }
28060 resultobj = SWIG_Py_Void();
28061 return resultobj;
28062 fail:
28063 return NULL;
28064 }
28065
28066
28067 SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28068 PyObject *obj;
28069 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28070 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
28071 return SWIG_Py_Void();
28072 }
28073
28074 SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28075 PyObject *resultobj = 0;
28076 wxFontList *arg1 = (wxFontList *) 0 ;
28077 int arg2 ;
28078 int arg3 ;
28079 int arg4 ;
28080 int arg5 ;
28081 bool arg6 = (bool) false ;
28082 wxString const &arg7_defvalue = wxPyEmptyString ;
28083 wxString *arg7 = (wxString *) &arg7_defvalue ;
28084 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
28085 wxFont *result = 0 ;
28086 void *argp1 = 0 ;
28087 int res1 = 0 ;
28088 int val2 ;
28089 int ecode2 = 0 ;
28090 int val3 ;
28091 int ecode3 = 0 ;
28092 int val4 ;
28093 int ecode4 = 0 ;
28094 int val5 ;
28095 int ecode5 = 0 ;
28096 bool val6 ;
28097 int ecode6 = 0 ;
28098 bool temp7 = false ;
28099 int val8 ;
28100 int ecode8 = 0 ;
28101 PyObject * obj0 = 0 ;
28102 PyObject * obj1 = 0 ;
28103 PyObject * obj2 = 0 ;
28104 PyObject * obj3 = 0 ;
28105 PyObject * obj4 = 0 ;
28106 PyObject * obj5 = 0 ;
28107 PyObject * obj6 = 0 ;
28108 PyObject * obj7 = 0 ;
28109 char * kwnames[] = {
28110 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
28111 };
28112
28113 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
28114 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
28115 if (!SWIG_IsOK(res1)) {
28116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
28117 }
28118 arg1 = reinterpret_cast< wxFontList * >(argp1);
28119 ecode2 = SWIG_AsVal_int(obj1, &val2);
28120 if (!SWIG_IsOK(ecode2)) {
28121 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
28122 }
28123 arg2 = static_cast< int >(val2);
28124 ecode3 = SWIG_AsVal_int(obj2, &val3);
28125 if (!SWIG_IsOK(ecode3)) {
28126 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
28127 }
28128 arg3 = static_cast< int >(val3);
28129 ecode4 = SWIG_AsVal_int(obj3, &val4);
28130 if (!SWIG_IsOK(ecode4)) {
28131 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
28132 }
28133 arg4 = static_cast< int >(val4);
28134 ecode5 = SWIG_AsVal_int(obj4, &val5);
28135 if (!SWIG_IsOK(ecode5)) {
28136 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
28137 }
28138 arg5 = static_cast< int >(val5);
28139 if (obj5) {
28140 ecode6 = SWIG_AsVal_bool(obj5, &val6);
28141 if (!SWIG_IsOK(ecode6)) {
28142 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
28143 }
28144 arg6 = static_cast< bool >(val6);
28145 }
28146 if (obj6) {
28147 {
28148 arg7 = wxString_in_helper(obj6);
28149 if (arg7 == NULL) SWIG_fail;
28150 temp7 = true;
28151 }
28152 }
28153 if (obj7) {
28154 ecode8 = SWIG_AsVal_int(obj7, &val8);
28155 if (!SWIG_IsOK(ecode8)) {
28156 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
28157 }
28158 arg8 = static_cast< wxFontEncoding >(val8);
28159 }
28160 {
28161 PyThreadState* __tstate = wxPyBeginAllowThreads();
28162 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
28163 wxPyEndAllowThreads(__tstate);
28164 if (PyErr_Occurred()) SWIG_fail;
28165 }
28166 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
28167 {
28168 if (temp7)
28169 delete arg7;
28170 }
28171 return resultobj;
28172 fail:
28173 {
28174 if (temp7)
28175 delete arg7;
28176 }
28177 return NULL;
28178 }
28179
28180
28181 SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28182 PyObject *resultobj = 0;
28183 wxFontList *arg1 = (wxFontList *) 0 ;
28184 wxFont *arg2 = (wxFont *) 0 ;
28185 void *argp1 = 0 ;
28186 int res1 = 0 ;
28187 void *argp2 = 0 ;
28188 int res2 = 0 ;
28189 PyObject * obj0 = 0 ;
28190 PyObject * obj1 = 0 ;
28191 char * kwnames[] = {
28192 (char *) "self",(char *) "font", NULL
28193 };
28194
28195 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
28196 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
28197 if (!SWIG_IsOK(res1)) {
28198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
28199 }
28200 arg1 = reinterpret_cast< wxFontList * >(argp1);
28201 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
28202 if (!SWIG_IsOK(res2)) {
28203 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
28204 }
28205 arg2 = reinterpret_cast< wxFont * >(argp2);
28206 {
28207 PyThreadState* __tstate = wxPyBeginAllowThreads();
28208 (arg1)->AddFont(arg2);
28209 wxPyEndAllowThreads(__tstate);
28210 if (PyErr_Occurred()) SWIG_fail;
28211 }
28212 resultobj = SWIG_Py_Void();
28213 return resultobj;
28214 fail:
28215 return NULL;
28216 }
28217
28218
28219 SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28220 PyObject *resultobj = 0;
28221 wxFontList *arg1 = (wxFontList *) 0 ;
28222 wxFont *arg2 = (wxFont *) 0 ;
28223 void *argp1 = 0 ;
28224 int res1 = 0 ;
28225 void *argp2 = 0 ;
28226 int res2 = 0 ;
28227 PyObject * obj0 = 0 ;
28228 PyObject * obj1 = 0 ;
28229 char * kwnames[] = {
28230 (char *) "self",(char *) "font", NULL
28231 };
28232
28233 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
28234 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
28235 if (!SWIG_IsOK(res1)) {
28236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
28237 }
28238 arg1 = reinterpret_cast< wxFontList * >(argp1);
28239 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
28240 if (!SWIG_IsOK(res2)) {
28241 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
28242 }
28243 arg2 = reinterpret_cast< wxFont * >(argp2);
28244 {
28245 PyThreadState* __tstate = wxPyBeginAllowThreads();
28246 (arg1)->RemoveFont(arg2);
28247 wxPyEndAllowThreads(__tstate);
28248 if (PyErr_Occurred()) SWIG_fail;
28249 }
28250 resultobj = SWIG_Py_Void();
28251 return resultobj;
28252 fail:
28253 return NULL;
28254 }
28255
28256
28257 SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28258 PyObject *obj;
28259 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28260 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
28261 return SWIG_Py_Void();
28262 }
28263
28264 SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28265 PyObject *resultobj = 0;
28266 wxColourDatabase *result = 0 ;
28267
28268 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
28269 {
28270 if (!wxPyCheckForApp()) SWIG_fail;
28271 PyThreadState* __tstate = wxPyBeginAllowThreads();
28272 result = (wxColourDatabase *)new wxColourDatabase();
28273 wxPyEndAllowThreads(__tstate);
28274 if (PyErr_Occurred()) SWIG_fail;
28275 }
28276 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
28277 return resultobj;
28278 fail:
28279 return NULL;
28280 }
28281
28282
28283 SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28284 PyObject *resultobj = 0;
28285 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
28286 void *argp1 = 0 ;
28287 int res1 = 0 ;
28288 PyObject *swig_obj[1] ;
28289
28290 if (!args) SWIG_fail;
28291 swig_obj[0] = args;
28292 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
28293 if (!SWIG_IsOK(res1)) {
28294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
28295 }
28296 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
28297 {
28298 PyThreadState* __tstate = wxPyBeginAllowThreads();
28299 delete arg1;
28300
28301 wxPyEndAllowThreads(__tstate);
28302 if (PyErr_Occurred()) SWIG_fail;
28303 }
28304 resultobj = SWIG_Py_Void();
28305 return resultobj;
28306 fail:
28307 return NULL;
28308 }
28309
28310
28311 SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28312 PyObject *resultobj = 0;
28313 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
28314 wxString *arg2 = 0 ;
28315 wxColour result;
28316 void *argp1 = 0 ;
28317 int res1 = 0 ;
28318 bool temp2 = false ;
28319 PyObject * obj0 = 0 ;
28320 PyObject * obj1 = 0 ;
28321 char * kwnames[] = {
28322 (char *) "self",(char *) "name", NULL
28323 };
28324
28325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
28326 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
28327 if (!SWIG_IsOK(res1)) {
28328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
28329 }
28330 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
28331 {
28332 arg2 = wxString_in_helper(obj1);
28333 if (arg2 == NULL) SWIG_fail;
28334 temp2 = true;
28335 }
28336 {
28337 PyThreadState* __tstate = wxPyBeginAllowThreads();
28338 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
28339 wxPyEndAllowThreads(__tstate);
28340 if (PyErr_Occurred()) SWIG_fail;
28341 }
28342 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
28343 {
28344 if (temp2)
28345 delete arg2;
28346 }
28347 return resultobj;
28348 fail:
28349 {
28350 if (temp2)
28351 delete arg2;
28352 }
28353 return NULL;
28354 }
28355
28356
28357 SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28358 PyObject *resultobj = 0;
28359 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
28360 wxColour *arg2 = 0 ;
28361 wxString result;
28362 void *argp1 = 0 ;
28363 int res1 = 0 ;
28364 wxColour temp2 ;
28365 PyObject * obj0 = 0 ;
28366 PyObject * obj1 = 0 ;
28367 char * kwnames[] = {
28368 (char *) "self",(char *) "colour", NULL
28369 };
28370
28371 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
28372 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
28373 if (!SWIG_IsOK(res1)) {
28374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
28375 }
28376 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
28377 {
28378 arg2 = &temp2;
28379 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28380 }
28381 {
28382 PyThreadState* __tstate = wxPyBeginAllowThreads();
28383 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
28384 wxPyEndAllowThreads(__tstate);
28385 if (PyErr_Occurred()) SWIG_fail;
28386 }
28387 {
28388 #if wxUSE_UNICODE
28389 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28390 #else
28391 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28392 #endif
28393 }
28394 return resultobj;
28395 fail:
28396 return NULL;
28397 }
28398
28399
28400 SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28401 PyObject *resultobj = 0;
28402 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
28403 wxString *arg2 = 0 ;
28404 wxColour *arg3 = 0 ;
28405 void *argp1 = 0 ;
28406 int res1 = 0 ;
28407 bool temp2 = false ;
28408 wxColour temp3 ;
28409 PyObject * obj0 = 0 ;
28410 PyObject * obj1 = 0 ;
28411 PyObject * obj2 = 0 ;
28412 char * kwnames[] = {
28413 (char *) "self",(char *) "name",(char *) "colour", NULL
28414 };
28415
28416 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28417 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
28418 if (!SWIG_IsOK(res1)) {
28419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
28420 }
28421 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
28422 {
28423 arg2 = wxString_in_helper(obj1);
28424 if (arg2 == NULL) SWIG_fail;
28425 temp2 = true;
28426 }
28427 {
28428 arg3 = &temp3;
28429 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
28430 }
28431 {
28432 PyThreadState* __tstate = wxPyBeginAllowThreads();
28433 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
28434 wxPyEndAllowThreads(__tstate);
28435 if (PyErr_Occurred()) SWIG_fail;
28436 }
28437 resultobj = SWIG_Py_Void();
28438 {
28439 if (temp2)
28440 delete arg2;
28441 }
28442 return resultobj;
28443 fail:
28444 {
28445 if (temp2)
28446 delete arg2;
28447 }
28448 return NULL;
28449 }
28450
28451
28452 SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28453 PyObject *resultobj = 0;
28454 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
28455 wxString *arg2 = 0 ;
28456 int arg3 ;
28457 int arg4 ;
28458 int arg5 ;
28459 void *argp1 = 0 ;
28460 int res1 = 0 ;
28461 bool temp2 = false ;
28462 int val3 ;
28463 int ecode3 = 0 ;
28464 int val4 ;
28465 int ecode4 = 0 ;
28466 int val5 ;
28467 int ecode5 = 0 ;
28468 PyObject * obj0 = 0 ;
28469 PyObject * obj1 = 0 ;
28470 PyObject * obj2 = 0 ;
28471 PyObject * obj3 = 0 ;
28472 PyObject * obj4 = 0 ;
28473 char * kwnames[] = {
28474 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
28475 };
28476
28477 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28478 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
28479 if (!SWIG_IsOK(res1)) {
28480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
28481 }
28482 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
28483 {
28484 arg2 = wxString_in_helper(obj1);
28485 if (arg2 == NULL) SWIG_fail;
28486 temp2 = true;
28487 }
28488 ecode3 = SWIG_AsVal_int(obj2, &val3);
28489 if (!SWIG_IsOK(ecode3)) {
28490 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
28491 }
28492 arg3 = static_cast< int >(val3);
28493 ecode4 = SWIG_AsVal_int(obj3, &val4);
28494 if (!SWIG_IsOK(ecode4)) {
28495 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
28496 }
28497 arg4 = static_cast< int >(val4);
28498 ecode5 = SWIG_AsVal_int(obj4, &val5);
28499 if (!SWIG_IsOK(ecode5)) {
28500 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
28501 }
28502 arg5 = static_cast< int >(val5);
28503 {
28504 PyThreadState* __tstate = wxPyBeginAllowThreads();
28505 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
28506 wxPyEndAllowThreads(__tstate);
28507 if (PyErr_Occurred()) SWIG_fail;
28508 }
28509 resultobj = SWIG_Py_Void();
28510 {
28511 if (temp2)
28512 delete arg2;
28513 }
28514 return resultobj;
28515 fail:
28516 {
28517 if (temp2)
28518 delete arg2;
28519 }
28520 return NULL;
28521 }
28522
28523
28524 SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28525 PyObject *obj;
28526 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28527 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
28528 return SWIG_Py_Void();
28529 }
28530
28531 SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28532 return SWIG_Python_InitShadowInstance(args);
28533 }
28534
28535 SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28536 PyObject *resultobj = 0;
28537 wxFontList *result = 0 ;
28538
28539 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
28540 {
28541 PyThreadState* __tstate = wxPyBeginAllowThreads();
28542 result = (wxFontList *)_wxPyInitTheFontList();
28543 wxPyEndAllowThreads(__tstate);
28544 if (PyErr_Occurred()) SWIG_fail;
28545 }
28546 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
28547 return resultobj;
28548 fail:
28549 return NULL;
28550 }
28551
28552
28553 SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28554 PyObject *resultobj = 0;
28555 wxPenList *result = 0 ;
28556
28557 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
28558 {
28559 PyThreadState* __tstate = wxPyBeginAllowThreads();
28560 result = (wxPenList *)_wxPyInitThePenList();
28561 wxPyEndAllowThreads(__tstate);
28562 if (PyErr_Occurred()) SWIG_fail;
28563 }
28564 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
28565 return resultobj;
28566 fail:
28567 return NULL;
28568 }
28569
28570
28571 SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28572 PyObject *resultobj = 0;
28573 wxBrushList *result = 0 ;
28574
28575 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
28576 {
28577 PyThreadState* __tstate = wxPyBeginAllowThreads();
28578 result = (wxBrushList *)_wxPyInitTheBrushList();
28579 wxPyEndAllowThreads(__tstate);
28580 if (PyErr_Occurred()) SWIG_fail;
28581 }
28582 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
28583 return resultobj;
28584 fail:
28585 return NULL;
28586 }
28587
28588
28589 SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28590 PyObject *resultobj = 0;
28591 wxColourDatabase *result = 0 ;
28592
28593 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
28594 {
28595 PyThreadState* __tstate = wxPyBeginAllowThreads();
28596 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
28597 wxPyEndAllowThreads(__tstate);
28598 if (PyErr_Occurred()) SWIG_fail;
28599 }
28600 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
28601 return resultobj;
28602 fail:
28603 return NULL;
28604 }
28605
28606
28607 SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28608 PyObject *resultobj = 0;
28609 wxEffects *result = 0 ;
28610
28611 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
28612 {
28613 PyThreadState* __tstate = wxPyBeginAllowThreads();
28614 result = (wxEffects *)new wxEffects();
28615 wxPyEndAllowThreads(__tstate);
28616 if (PyErr_Occurred()) SWIG_fail;
28617 }
28618 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
28619 return resultobj;
28620 fail:
28621 return NULL;
28622 }
28623
28624
28625 SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28626 PyObject *resultobj = 0;
28627 wxEffects *arg1 = (wxEffects *) 0 ;
28628 wxColour result;
28629 void *argp1 = 0 ;
28630 int res1 = 0 ;
28631 PyObject *swig_obj[1] ;
28632
28633 if (!args) SWIG_fail;
28634 swig_obj[0] = args;
28635 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28636 if (!SWIG_IsOK(res1)) {
28637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
28638 }
28639 arg1 = reinterpret_cast< wxEffects * >(argp1);
28640 {
28641 PyThreadState* __tstate = wxPyBeginAllowThreads();
28642 result = ((wxEffects const *)arg1)->GetHighlightColour();
28643 wxPyEndAllowThreads(__tstate);
28644 if (PyErr_Occurred()) SWIG_fail;
28645 }
28646 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
28647 return resultobj;
28648 fail:
28649 return NULL;
28650 }
28651
28652
28653 SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28654 PyObject *resultobj = 0;
28655 wxEffects *arg1 = (wxEffects *) 0 ;
28656 wxColour result;
28657 void *argp1 = 0 ;
28658 int res1 = 0 ;
28659 PyObject *swig_obj[1] ;
28660
28661 if (!args) SWIG_fail;
28662 swig_obj[0] = args;
28663 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28664 if (!SWIG_IsOK(res1)) {
28665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
28666 }
28667 arg1 = reinterpret_cast< wxEffects * >(argp1);
28668 {
28669 PyThreadState* __tstate = wxPyBeginAllowThreads();
28670 result = ((wxEffects const *)arg1)->GetLightShadow();
28671 wxPyEndAllowThreads(__tstate);
28672 if (PyErr_Occurred()) SWIG_fail;
28673 }
28674 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
28675 return resultobj;
28676 fail:
28677 return NULL;
28678 }
28679
28680
28681 SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28682 PyObject *resultobj = 0;
28683 wxEffects *arg1 = (wxEffects *) 0 ;
28684 wxColour result;
28685 void *argp1 = 0 ;
28686 int res1 = 0 ;
28687 PyObject *swig_obj[1] ;
28688
28689 if (!args) SWIG_fail;
28690 swig_obj[0] = args;
28691 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28692 if (!SWIG_IsOK(res1)) {
28693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
28694 }
28695 arg1 = reinterpret_cast< wxEffects * >(argp1);
28696 {
28697 PyThreadState* __tstate = wxPyBeginAllowThreads();
28698 result = ((wxEffects const *)arg1)->GetFaceColour();
28699 wxPyEndAllowThreads(__tstate);
28700 if (PyErr_Occurred()) SWIG_fail;
28701 }
28702 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
28703 return resultobj;
28704 fail:
28705 return NULL;
28706 }
28707
28708
28709 SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28710 PyObject *resultobj = 0;
28711 wxEffects *arg1 = (wxEffects *) 0 ;
28712 wxColour result;
28713 void *argp1 = 0 ;
28714 int res1 = 0 ;
28715 PyObject *swig_obj[1] ;
28716
28717 if (!args) SWIG_fail;
28718 swig_obj[0] = args;
28719 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28720 if (!SWIG_IsOK(res1)) {
28721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
28722 }
28723 arg1 = reinterpret_cast< wxEffects * >(argp1);
28724 {
28725 PyThreadState* __tstate = wxPyBeginAllowThreads();
28726 result = ((wxEffects const *)arg1)->GetMediumShadow();
28727 wxPyEndAllowThreads(__tstate);
28728 if (PyErr_Occurred()) SWIG_fail;
28729 }
28730 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
28731 return resultobj;
28732 fail:
28733 return NULL;
28734 }
28735
28736
28737 SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28738 PyObject *resultobj = 0;
28739 wxEffects *arg1 = (wxEffects *) 0 ;
28740 wxColour result;
28741 void *argp1 = 0 ;
28742 int res1 = 0 ;
28743 PyObject *swig_obj[1] ;
28744
28745 if (!args) SWIG_fail;
28746 swig_obj[0] = args;
28747 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28748 if (!SWIG_IsOK(res1)) {
28749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
28750 }
28751 arg1 = reinterpret_cast< wxEffects * >(argp1);
28752 {
28753 PyThreadState* __tstate = wxPyBeginAllowThreads();
28754 result = ((wxEffects const *)arg1)->GetDarkShadow();
28755 wxPyEndAllowThreads(__tstate);
28756 if (PyErr_Occurred()) SWIG_fail;
28757 }
28758 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
28759 return resultobj;
28760 fail:
28761 return NULL;
28762 }
28763
28764
28765 SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28766 PyObject *resultobj = 0;
28767 wxEffects *arg1 = (wxEffects *) 0 ;
28768 wxColour *arg2 = 0 ;
28769 void *argp1 = 0 ;
28770 int res1 = 0 ;
28771 wxColour temp2 ;
28772 PyObject * obj0 = 0 ;
28773 PyObject * obj1 = 0 ;
28774 char * kwnames[] = {
28775 (char *) "self",(char *) "c", NULL
28776 };
28777
28778 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
28779 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28780 if (!SWIG_IsOK(res1)) {
28781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
28782 }
28783 arg1 = reinterpret_cast< wxEffects * >(argp1);
28784 {
28785 arg2 = &temp2;
28786 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28787 }
28788 {
28789 PyThreadState* __tstate = wxPyBeginAllowThreads();
28790 (arg1)->SetHighlightColour((wxColour const &)*arg2);
28791 wxPyEndAllowThreads(__tstate);
28792 if (PyErr_Occurred()) SWIG_fail;
28793 }
28794 resultobj = SWIG_Py_Void();
28795 return resultobj;
28796 fail:
28797 return NULL;
28798 }
28799
28800
28801 SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28802 PyObject *resultobj = 0;
28803 wxEffects *arg1 = (wxEffects *) 0 ;
28804 wxColour *arg2 = 0 ;
28805 void *argp1 = 0 ;
28806 int res1 = 0 ;
28807 wxColour temp2 ;
28808 PyObject * obj0 = 0 ;
28809 PyObject * obj1 = 0 ;
28810 char * kwnames[] = {
28811 (char *) "self",(char *) "c", NULL
28812 };
28813
28814 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
28815 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28816 if (!SWIG_IsOK(res1)) {
28817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
28818 }
28819 arg1 = reinterpret_cast< wxEffects * >(argp1);
28820 {
28821 arg2 = &temp2;
28822 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28823 }
28824 {
28825 PyThreadState* __tstate = wxPyBeginAllowThreads();
28826 (arg1)->SetLightShadow((wxColour const &)*arg2);
28827 wxPyEndAllowThreads(__tstate);
28828 if (PyErr_Occurred()) SWIG_fail;
28829 }
28830 resultobj = SWIG_Py_Void();
28831 return resultobj;
28832 fail:
28833 return NULL;
28834 }
28835
28836
28837 SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28838 PyObject *resultobj = 0;
28839 wxEffects *arg1 = (wxEffects *) 0 ;
28840 wxColour *arg2 = 0 ;
28841 void *argp1 = 0 ;
28842 int res1 = 0 ;
28843 wxColour temp2 ;
28844 PyObject * obj0 = 0 ;
28845 PyObject * obj1 = 0 ;
28846 char * kwnames[] = {
28847 (char *) "self",(char *) "c", NULL
28848 };
28849
28850 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
28851 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28852 if (!SWIG_IsOK(res1)) {
28853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
28854 }
28855 arg1 = reinterpret_cast< wxEffects * >(argp1);
28856 {
28857 arg2 = &temp2;
28858 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28859 }
28860 {
28861 PyThreadState* __tstate = wxPyBeginAllowThreads();
28862 (arg1)->SetFaceColour((wxColour const &)*arg2);
28863 wxPyEndAllowThreads(__tstate);
28864 if (PyErr_Occurred()) SWIG_fail;
28865 }
28866 resultobj = SWIG_Py_Void();
28867 return resultobj;
28868 fail:
28869 return NULL;
28870 }
28871
28872
28873 SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28874 PyObject *resultobj = 0;
28875 wxEffects *arg1 = (wxEffects *) 0 ;
28876 wxColour *arg2 = 0 ;
28877 void *argp1 = 0 ;
28878 int res1 = 0 ;
28879 wxColour temp2 ;
28880 PyObject * obj0 = 0 ;
28881 PyObject * obj1 = 0 ;
28882 char * kwnames[] = {
28883 (char *) "self",(char *) "c", NULL
28884 };
28885
28886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
28887 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28888 if (!SWIG_IsOK(res1)) {
28889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
28890 }
28891 arg1 = reinterpret_cast< wxEffects * >(argp1);
28892 {
28893 arg2 = &temp2;
28894 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28895 }
28896 {
28897 PyThreadState* __tstate = wxPyBeginAllowThreads();
28898 (arg1)->SetMediumShadow((wxColour const &)*arg2);
28899 wxPyEndAllowThreads(__tstate);
28900 if (PyErr_Occurred()) SWIG_fail;
28901 }
28902 resultobj = SWIG_Py_Void();
28903 return resultobj;
28904 fail:
28905 return NULL;
28906 }
28907
28908
28909 SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28910 PyObject *resultobj = 0;
28911 wxEffects *arg1 = (wxEffects *) 0 ;
28912 wxColour *arg2 = 0 ;
28913 void *argp1 = 0 ;
28914 int res1 = 0 ;
28915 wxColour temp2 ;
28916 PyObject * obj0 = 0 ;
28917 PyObject * obj1 = 0 ;
28918 char * kwnames[] = {
28919 (char *) "self",(char *) "c", NULL
28920 };
28921
28922 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
28923 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28924 if (!SWIG_IsOK(res1)) {
28925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
28926 }
28927 arg1 = reinterpret_cast< wxEffects * >(argp1);
28928 {
28929 arg2 = &temp2;
28930 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28931 }
28932 {
28933 PyThreadState* __tstate = wxPyBeginAllowThreads();
28934 (arg1)->SetDarkShadow((wxColour const &)*arg2);
28935 wxPyEndAllowThreads(__tstate);
28936 if (PyErr_Occurred()) SWIG_fail;
28937 }
28938 resultobj = SWIG_Py_Void();
28939 return resultobj;
28940 fail:
28941 return NULL;
28942 }
28943
28944
28945 SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28946 PyObject *resultobj = 0;
28947 wxEffects *arg1 = (wxEffects *) 0 ;
28948 wxColour *arg2 = 0 ;
28949 wxColour *arg3 = 0 ;
28950 wxColour *arg4 = 0 ;
28951 wxColour *arg5 = 0 ;
28952 wxColour *arg6 = 0 ;
28953 void *argp1 = 0 ;
28954 int res1 = 0 ;
28955 wxColour temp2 ;
28956 wxColour temp3 ;
28957 wxColour temp4 ;
28958 wxColour temp5 ;
28959 wxColour temp6 ;
28960 PyObject * obj0 = 0 ;
28961 PyObject * obj1 = 0 ;
28962 PyObject * obj2 = 0 ;
28963 PyObject * obj3 = 0 ;
28964 PyObject * obj4 = 0 ;
28965 PyObject * obj5 = 0 ;
28966 char * kwnames[] = {
28967 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
28968 };
28969
28970 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
28971 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28972 if (!SWIG_IsOK(res1)) {
28973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
28974 }
28975 arg1 = reinterpret_cast< wxEffects * >(argp1);
28976 {
28977 arg2 = &temp2;
28978 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28979 }
28980 {
28981 arg3 = &temp3;
28982 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
28983 }
28984 {
28985 arg4 = &temp4;
28986 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
28987 }
28988 {
28989 arg5 = &temp5;
28990 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
28991 }
28992 {
28993 arg6 = &temp6;
28994 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
28995 }
28996 {
28997 PyThreadState* __tstate = wxPyBeginAllowThreads();
28998 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
28999 wxPyEndAllowThreads(__tstate);
29000 if (PyErr_Occurred()) SWIG_fail;
29001 }
29002 resultobj = SWIG_Py_Void();
29003 return resultobj;
29004 fail:
29005 return NULL;
29006 }
29007
29008
29009 SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29010 PyObject *resultobj = 0;
29011 wxEffects *arg1 = (wxEffects *) 0 ;
29012 wxDC *arg2 = 0 ;
29013 wxRect *arg3 = 0 ;
29014 int arg4 = (int) 1 ;
29015 void *argp1 = 0 ;
29016 int res1 = 0 ;
29017 void *argp2 = 0 ;
29018 int res2 = 0 ;
29019 wxRect temp3 ;
29020 int val4 ;
29021 int ecode4 = 0 ;
29022 PyObject * obj0 = 0 ;
29023 PyObject * obj1 = 0 ;
29024 PyObject * obj2 = 0 ;
29025 PyObject * obj3 = 0 ;
29026 char * kwnames[] = {
29027 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
29028 };
29029
29030 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29031 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29032 if (!SWIG_IsOK(res1)) {
29033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
29034 }
29035 arg1 = reinterpret_cast< wxEffects * >(argp1);
29036 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
29037 if (!SWIG_IsOK(res2)) {
29038 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
29039 }
29040 if (!argp2) {
29041 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
29042 }
29043 arg2 = reinterpret_cast< wxDC * >(argp2);
29044 {
29045 arg3 = &temp3;
29046 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
29047 }
29048 if (obj3) {
29049 ecode4 = SWIG_AsVal_int(obj3, &val4);
29050 if (!SWIG_IsOK(ecode4)) {
29051 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
29052 }
29053 arg4 = static_cast< int >(val4);
29054 }
29055 {
29056 PyThreadState* __tstate = wxPyBeginAllowThreads();
29057 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
29058 wxPyEndAllowThreads(__tstate);
29059 if (PyErr_Occurred()) SWIG_fail;
29060 }
29061 resultobj = SWIG_Py_Void();
29062 return resultobj;
29063 fail:
29064 return NULL;
29065 }
29066
29067
29068 SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29069 PyObject *resultobj = 0;
29070 wxEffects *arg1 = (wxEffects *) 0 ;
29071 wxRect *arg2 = 0 ;
29072 wxDC *arg3 = 0 ;
29073 wxBitmap *arg4 = 0 ;
29074 bool result;
29075 void *argp1 = 0 ;
29076 int res1 = 0 ;
29077 wxRect temp2 ;
29078 void *argp3 = 0 ;
29079 int res3 = 0 ;
29080 void *argp4 = 0 ;
29081 int res4 = 0 ;
29082 PyObject * obj0 = 0 ;
29083 PyObject * obj1 = 0 ;
29084 PyObject * obj2 = 0 ;
29085 PyObject * obj3 = 0 ;
29086 char * kwnames[] = {
29087 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
29088 };
29089
29090 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29091 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29092 if (!SWIG_IsOK(res1)) {
29093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
29094 }
29095 arg1 = reinterpret_cast< wxEffects * >(argp1);
29096 {
29097 arg2 = &temp2;
29098 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
29099 }
29100 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
29101 if (!SWIG_IsOK(res3)) {
29102 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
29103 }
29104 if (!argp3) {
29105 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
29106 }
29107 arg3 = reinterpret_cast< wxDC * >(argp3);
29108 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
29109 if (!SWIG_IsOK(res4)) {
29110 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
29111 }
29112 if (!argp4) {
29113 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
29114 }
29115 arg4 = reinterpret_cast< wxBitmap * >(argp4);
29116 {
29117 PyThreadState* __tstate = wxPyBeginAllowThreads();
29118 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
29119 wxPyEndAllowThreads(__tstate);
29120 if (PyErr_Occurred()) SWIG_fail;
29121 }
29122 {
29123 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29124 }
29125 return resultobj;
29126 fail:
29127 return NULL;
29128 }
29129
29130
29131 SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29132 PyObject *obj;
29133 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29134 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
29135 return SWIG_Py_Void();
29136 }
29137
29138 SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29139 return SWIG_Python_InitShadowInstance(args);
29140 }
29141
29142 SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29143 PyObject *resultobj = 0;
29144 int arg1 ;
29145 int arg2 ;
29146 bool arg3 ;
29147 wxSplitterRenderParams *result = 0 ;
29148 int val1 ;
29149 int ecode1 = 0 ;
29150 int val2 ;
29151 int ecode2 = 0 ;
29152 bool val3 ;
29153 int ecode3 = 0 ;
29154 PyObject * obj0 = 0 ;
29155 PyObject * obj1 = 0 ;
29156 PyObject * obj2 = 0 ;
29157 char * kwnames[] = {
29158 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
29159 };
29160
29161 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29162 ecode1 = SWIG_AsVal_int(obj0, &val1);
29163 if (!SWIG_IsOK(ecode1)) {
29164 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
29165 }
29166 arg1 = static_cast< int >(val1);
29167 ecode2 = SWIG_AsVal_int(obj1, &val2);
29168 if (!SWIG_IsOK(ecode2)) {
29169 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
29170 }
29171 arg2 = static_cast< int >(val2);
29172 ecode3 = SWIG_AsVal_bool(obj2, &val3);
29173 if (!SWIG_IsOK(ecode3)) {
29174 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
29175 }
29176 arg3 = static_cast< bool >(val3);
29177 {
29178 PyThreadState* __tstate = wxPyBeginAllowThreads();
29179 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
29180 wxPyEndAllowThreads(__tstate);
29181 if (PyErr_Occurred()) SWIG_fail;
29182 }
29183 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
29184 return resultobj;
29185 fail:
29186 return NULL;
29187 }
29188
29189
29190 SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29191 PyObject *resultobj = 0;
29192 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
29193 void *argp1 = 0 ;
29194 int res1 = 0 ;
29195 PyObject *swig_obj[1] ;
29196
29197 if (!args) SWIG_fail;
29198 swig_obj[0] = args;
29199 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
29200 if (!SWIG_IsOK(res1)) {
29201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
29202 }
29203 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
29204 {
29205 PyThreadState* __tstate = wxPyBeginAllowThreads();
29206 delete arg1;
29207
29208 wxPyEndAllowThreads(__tstate);
29209 if (PyErr_Occurred()) SWIG_fail;
29210 }
29211 resultobj = SWIG_Py_Void();
29212 return resultobj;
29213 fail:
29214 return NULL;
29215 }
29216
29217
29218 SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29219 PyObject *resultobj = 0;
29220 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
29221 int result;
29222 void *argp1 = 0 ;
29223 int res1 = 0 ;
29224 PyObject *swig_obj[1] ;
29225
29226 if (!args) SWIG_fail;
29227 swig_obj[0] = args;
29228 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
29229 if (!SWIG_IsOK(res1)) {
29230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
29231 }
29232 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
29233 result = (int)(int) ((arg1)->widthSash);
29234 resultobj = SWIG_From_int(static_cast< int >(result));
29235 return resultobj;
29236 fail:
29237 return NULL;
29238 }
29239
29240
29241 SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29242 PyObject *resultobj = 0;
29243 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
29244 int result;
29245 void *argp1 = 0 ;
29246 int res1 = 0 ;
29247 PyObject *swig_obj[1] ;
29248
29249 if (!args) SWIG_fail;
29250 swig_obj[0] = args;
29251 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
29252 if (!SWIG_IsOK(res1)) {
29253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
29254 }
29255 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
29256 result = (int)(int) ((arg1)->border);
29257 resultobj = SWIG_From_int(static_cast< int >(result));
29258 return resultobj;
29259 fail:
29260 return NULL;
29261 }
29262
29263
29264 SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29265 PyObject *resultobj = 0;
29266 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
29267 bool result;
29268 void *argp1 = 0 ;
29269 int res1 = 0 ;
29270 PyObject *swig_obj[1] ;
29271
29272 if (!args) SWIG_fail;
29273 swig_obj[0] = args;
29274 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
29275 if (!SWIG_IsOK(res1)) {
29276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
29277 }
29278 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
29279 result = (bool)(bool) ((arg1)->isHotSensitive);
29280 resultobj = SWIG_From_bool(static_cast< bool >(result));
29281 return resultobj;
29282 fail:
29283 return NULL;
29284 }
29285
29286
29287 SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29288 PyObject *obj;
29289 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29290 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
29291 return SWIG_Py_Void();
29292 }
29293
29294 SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29295 return SWIG_Python_InitShadowInstance(args);
29296 }
29297
29298 SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29299 PyObject *resultobj = 0;
29300 wxHeaderButtonParams *result = 0 ;
29301
29302 if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail;
29303 {
29304 PyThreadState* __tstate = wxPyBeginAllowThreads();
29305 result = (wxHeaderButtonParams *)new wxHeaderButtonParams();
29306 wxPyEndAllowThreads(__tstate);
29307 if (PyErr_Occurred()) SWIG_fail;
29308 }
29309 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 );
29310 return resultobj;
29311 fail:
29312 return NULL;
29313 }
29314
29315
29316 SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29317 PyObject *resultobj = 0;
29318 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29319 void *argp1 = 0 ;
29320 int res1 = 0 ;
29321 PyObject *swig_obj[1] ;
29322
29323 if (!args) SWIG_fail;
29324 swig_obj[0] = args;
29325 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 );
29326 if (!SWIG_IsOK(res1)) {
29327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29328 }
29329 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29330 {
29331 PyThreadState* __tstate = wxPyBeginAllowThreads();
29332 delete arg1;
29333
29334 wxPyEndAllowThreads(__tstate);
29335 if (PyErr_Occurred()) SWIG_fail;
29336 }
29337 resultobj = SWIG_Py_Void();
29338 return resultobj;
29339 fail:
29340 return NULL;
29341 }
29342
29343
29344 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29345 PyObject *resultobj = 0;
29346 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29347 wxColour *arg2 = (wxColour *) 0 ;
29348 void *argp1 = 0 ;
29349 int res1 = 0 ;
29350 wxColour temp2 ;
29351 PyObject *swig_obj[2] ;
29352
29353 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_set",2,2,swig_obj)) SWIG_fail;
29354 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29355 if (!SWIG_IsOK(res1)) {
29356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29357 }
29358 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29359 {
29360 arg2 = &temp2;
29361 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
29362 }
29363 if (arg1) (arg1)->m_arrowColour = *arg2;
29364
29365 resultobj = SWIG_Py_Void();
29366 return resultobj;
29367 fail:
29368 return NULL;
29369 }
29370
29371
29372 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29373 PyObject *resultobj = 0;
29374 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29375 wxColour *result = 0 ;
29376 void *argp1 = 0 ;
29377 int res1 = 0 ;
29378 PyObject *swig_obj[1] ;
29379
29380 if (!args) SWIG_fail;
29381 swig_obj[0] = args;
29382 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29383 if (!SWIG_IsOK(res1)) {
29384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29385 }
29386 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29387 result = (wxColour *)& ((arg1)->m_arrowColour);
29388 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
29389 return resultobj;
29390 fail:
29391 return NULL;
29392 }
29393
29394
29395 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29396 PyObject *resultobj = 0;
29397 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29398 wxColour *arg2 = (wxColour *) 0 ;
29399 void *argp1 = 0 ;
29400 int res1 = 0 ;
29401 wxColour temp2 ;
29402 PyObject *swig_obj[2] ;
29403
29404 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail;
29405 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29406 if (!SWIG_IsOK(res1)) {
29407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29408 }
29409 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29410 {
29411 arg2 = &temp2;
29412 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
29413 }
29414 if (arg1) (arg1)->m_selectionColour = *arg2;
29415
29416 resultobj = SWIG_Py_Void();
29417 return resultobj;
29418 fail:
29419 return NULL;
29420 }
29421
29422
29423 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29424 PyObject *resultobj = 0;
29425 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29426 wxColour *result = 0 ;
29427 void *argp1 = 0 ;
29428 int res1 = 0 ;
29429 PyObject *swig_obj[1] ;
29430
29431 if (!args) SWIG_fail;
29432 swig_obj[0] = args;
29433 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29434 if (!SWIG_IsOK(res1)) {
29435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29436 }
29437 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29438 result = (wxColour *)& ((arg1)->m_selectionColour);
29439 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
29440 return resultobj;
29441 fail:
29442 return NULL;
29443 }
29444
29445
29446 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29447 PyObject *resultobj = 0;
29448 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29449 wxString *arg2 = (wxString *) 0 ;
29450 void *argp1 = 0 ;
29451 int res1 = 0 ;
29452 bool temp2 = false ;
29453 PyObject *swig_obj[2] ;
29454
29455 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_set",2,2,swig_obj)) SWIG_fail;
29456 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29457 if (!SWIG_IsOK(res1)) {
29458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29459 }
29460 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29461 {
29462 arg2 = wxString_in_helper(swig_obj[1]);
29463 if (arg2 == NULL) SWIG_fail;
29464 temp2 = true;
29465 }
29466 if (arg1) (arg1)->m_labelText = *arg2;
29467
29468 resultobj = SWIG_Py_Void();
29469 {
29470 if (temp2)
29471 delete arg2;
29472 }
29473 return resultobj;
29474 fail:
29475 {
29476 if (temp2)
29477 delete arg2;
29478 }
29479 return NULL;
29480 }
29481
29482
29483 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29484 PyObject *resultobj = 0;
29485 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29486 wxString *result = 0 ;
29487 void *argp1 = 0 ;
29488 int res1 = 0 ;
29489 PyObject *swig_obj[1] ;
29490
29491 if (!args) SWIG_fail;
29492 swig_obj[0] = args;
29493 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29494 if (!SWIG_IsOK(res1)) {
29495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29496 }
29497 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29498 result = (wxString *)& ((arg1)->m_labelText);
29499 {
29500 #if wxUSE_UNICODE
29501 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
29502 #else
29503 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
29504 #endif
29505 }
29506 return resultobj;
29507 fail:
29508 return NULL;
29509 }
29510
29511
29512 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29513 PyObject *resultobj = 0;
29514 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29515 wxFont *arg2 = (wxFont *) 0 ;
29516 void *argp1 = 0 ;
29517 int res1 = 0 ;
29518 void *argp2 = 0 ;
29519 int res2 = 0 ;
29520 PyObject *swig_obj[2] ;
29521
29522 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail;
29523 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29524 if (!SWIG_IsOK(res1)) {
29525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29526 }
29527 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29528 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
29529 if (!SWIG_IsOK(res2)) {
29530 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'");
29531 }
29532 arg2 = reinterpret_cast< wxFont * >(argp2);
29533 if (arg1) (arg1)->m_labelFont = *arg2;
29534
29535 resultobj = SWIG_Py_Void();
29536 return resultobj;
29537 fail:
29538 return NULL;
29539 }
29540
29541
29542 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29543 PyObject *resultobj = 0;
29544 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29545 wxFont *result = 0 ;
29546 void *argp1 = 0 ;
29547 int res1 = 0 ;
29548 PyObject *swig_obj[1] ;
29549
29550 if (!args) SWIG_fail;
29551 swig_obj[0] = args;
29552 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29553 if (!SWIG_IsOK(res1)) {
29554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29555 }
29556 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29557 result = (wxFont *)& ((arg1)->m_labelFont);
29558 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
29559 return resultobj;
29560 fail:
29561 return NULL;
29562 }
29563
29564
29565 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29566 PyObject *resultobj = 0;
29567 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29568 wxColour *arg2 = (wxColour *) 0 ;
29569 void *argp1 = 0 ;
29570 int res1 = 0 ;
29571 wxColour temp2 ;
29572 PyObject *swig_obj[2] ;
29573
29574 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail;
29575 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29576 if (!SWIG_IsOK(res1)) {
29577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29578 }
29579 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29580 {
29581 arg2 = &temp2;
29582 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
29583 }
29584 if (arg1) (arg1)->m_labelColour = *arg2;
29585
29586 resultobj = SWIG_Py_Void();
29587 return resultobj;
29588 fail:
29589 return NULL;
29590 }
29591
29592
29593 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29594 PyObject *resultobj = 0;
29595 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29596 wxColour *result = 0 ;
29597 void *argp1 = 0 ;
29598 int res1 = 0 ;
29599 PyObject *swig_obj[1] ;
29600
29601 if (!args) SWIG_fail;
29602 swig_obj[0] = args;
29603 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29604 if (!SWIG_IsOK(res1)) {
29605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29606 }
29607 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29608 result = (wxColour *)& ((arg1)->m_labelColour);
29609 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
29610 return resultobj;
29611 fail:
29612 return NULL;
29613 }
29614
29615
29616 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29617 PyObject *resultobj = 0;
29618 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29619 wxBitmap *arg2 = (wxBitmap *) 0 ;
29620 void *argp1 = 0 ;
29621 int res1 = 0 ;
29622 void *argp2 = 0 ;
29623 int res2 = 0 ;
29624 PyObject *swig_obj[2] ;
29625
29626 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail;
29627 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29628 if (!SWIG_IsOK(res1)) {
29629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29630 }
29631 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29632 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
29633 if (!SWIG_IsOK(res2)) {
29634 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'");
29635 }
29636 arg2 = reinterpret_cast< wxBitmap * >(argp2);
29637 if (arg1) (arg1)->m_labelBitmap = *arg2;
29638
29639 resultobj = SWIG_Py_Void();
29640 return resultobj;
29641 fail:
29642 return NULL;
29643 }
29644
29645
29646 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29647 PyObject *resultobj = 0;
29648 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29649 wxBitmap *result = 0 ;
29650 void *argp1 = 0 ;
29651 int res1 = 0 ;
29652 PyObject *swig_obj[1] ;
29653
29654 if (!args) SWIG_fail;
29655 swig_obj[0] = args;
29656 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29657 if (!SWIG_IsOK(res1)) {
29658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29659 }
29660 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29661 result = (wxBitmap *)& ((arg1)->m_labelBitmap);
29662 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
29663 return resultobj;
29664 fail:
29665 return NULL;
29666 }
29667
29668
29669 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29670 PyObject *resultobj = 0;
29671 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29672 int arg2 ;
29673 void *argp1 = 0 ;
29674 int res1 = 0 ;
29675 int val2 ;
29676 int ecode2 = 0 ;
29677 PyObject *swig_obj[2] ;
29678
29679 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail;
29680 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29681 if (!SWIG_IsOK(res1)) {
29682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29683 }
29684 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29685 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
29686 if (!SWIG_IsOK(ecode2)) {
29687 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'");
29688 }
29689 arg2 = static_cast< int >(val2);
29690 if (arg1) (arg1)->m_labelAlignment = arg2;
29691
29692 resultobj = SWIG_Py_Void();
29693 return resultobj;
29694 fail:
29695 return NULL;
29696 }
29697
29698
29699 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29700 PyObject *resultobj = 0;
29701 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29702 int result;
29703 void *argp1 = 0 ;
29704 int res1 = 0 ;
29705 PyObject *swig_obj[1] ;
29706
29707 if (!args) SWIG_fail;
29708 swig_obj[0] = args;
29709 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29710 if (!SWIG_IsOK(res1)) {
29711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29712 }
29713 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29714 result = (int) ((arg1)->m_labelAlignment);
29715 resultobj = SWIG_From_int(static_cast< int >(result));
29716 return resultobj;
29717 fail:
29718 return NULL;
29719 }
29720
29721
29722 SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29723 PyObject *obj;
29724 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29725 SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj));
29726 return SWIG_Py_Void();
29727 }
29728
29729 SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29730 return SWIG_Python_InitShadowInstance(args);
29731 }
29732
29733 SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29734 PyObject *resultobj = 0;
29735 int arg1 ;
29736 int arg2 ;
29737 wxRendererVersion *result = 0 ;
29738 int val1 ;
29739 int ecode1 = 0 ;
29740 int val2 ;
29741 int ecode2 = 0 ;
29742 PyObject * obj0 = 0 ;
29743 PyObject * obj1 = 0 ;
29744 char * kwnames[] = {
29745 (char *) "version_",(char *) "age_", NULL
29746 };
29747
29748 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
29749 ecode1 = SWIG_AsVal_int(obj0, &val1);
29750 if (!SWIG_IsOK(ecode1)) {
29751 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
29752 }
29753 arg1 = static_cast< int >(val1);
29754 ecode2 = SWIG_AsVal_int(obj1, &val2);
29755 if (!SWIG_IsOK(ecode2)) {
29756 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
29757 }
29758 arg2 = static_cast< int >(val2);
29759 {
29760 PyThreadState* __tstate = wxPyBeginAllowThreads();
29761 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
29762 wxPyEndAllowThreads(__tstate);
29763 if (PyErr_Occurred()) SWIG_fail;
29764 }
29765 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
29766 return resultobj;
29767 fail:
29768 return NULL;
29769 }
29770
29771
29772 SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29773 PyObject *resultobj = 0;
29774 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
29775 void *argp1 = 0 ;
29776 int res1 = 0 ;
29777 PyObject *swig_obj[1] ;
29778
29779 if (!args) SWIG_fail;
29780 swig_obj[0] = args;
29781 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
29782 if (!SWIG_IsOK(res1)) {
29783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
29784 }
29785 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
29786 {
29787 PyThreadState* __tstate = wxPyBeginAllowThreads();
29788 delete arg1;
29789
29790 wxPyEndAllowThreads(__tstate);
29791 if (PyErr_Occurred()) SWIG_fail;
29792 }
29793 resultobj = SWIG_Py_Void();
29794 return resultobj;
29795 fail:
29796 return NULL;
29797 }
29798
29799
29800 SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29801 PyObject *resultobj = 0;
29802 wxRendererVersion *arg1 = 0 ;
29803 bool result;
29804 void *argp1 = 0 ;
29805 int res1 = 0 ;
29806 PyObject * obj0 = 0 ;
29807 char * kwnames[] = {
29808 (char *) "ver", NULL
29809 };
29810
29811 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
29812 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
29813 if (!SWIG_IsOK(res1)) {
29814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
29815 }
29816 if (!argp1) {
29817 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
29818 }
29819 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
29820 {
29821 PyThreadState* __tstate = wxPyBeginAllowThreads();
29822 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
29823 wxPyEndAllowThreads(__tstate);
29824 if (PyErr_Occurred()) SWIG_fail;
29825 }
29826 {
29827 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29828 }
29829 return resultobj;
29830 fail:
29831 return NULL;
29832 }
29833
29834
29835 SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29836 PyObject *resultobj = 0;
29837 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
29838 int result;
29839 void *argp1 = 0 ;
29840 int res1 = 0 ;
29841 PyObject *swig_obj[1] ;
29842
29843 if (!args) SWIG_fail;
29844 swig_obj[0] = args;
29845 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
29846 if (!SWIG_IsOK(res1)) {
29847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
29848 }
29849 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
29850 result = (int)(int) ((arg1)->version);
29851 resultobj = SWIG_From_int(static_cast< int >(result));
29852 return resultobj;
29853 fail:
29854 return NULL;
29855 }
29856
29857
29858 SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29859 PyObject *resultobj = 0;
29860 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
29861 int result;
29862 void *argp1 = 0 ;
29863 int res1 = 0 ;
29864 PyObject *swig_obj[1] ;
29865
29866 if (!args) SWIG_fail;
29867 swig_obj[0] = args;
29868 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
29869 if (!SWIG_IsOK(res1)) {
29870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
29871 }
29872 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
29873 result = (int)(int) ((arg1)->age);
29874 resultobj = SWIG_From_int(static_cast< int >(result));
29875 return resultobj;
29876 fail:
29877 return NULL;
29878 }
29879
29880
29881 SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29882 PyObject *obj;
29883 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29884 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
29885 return SWIG_Py_Void();
29886 }
29887
29888 SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29889 return SWIG_Python_InitShadowInstance(args);
29890 }
29891
29892 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29893 PyObject *resultobj = 0;
29894 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
29895 wxWindow *arg2 = (wxWindow *) 0 ;
29896 wxDC *arg3 = 0 ;
29897 wxRect *arg4 = 0 ;
29898 int arg5 = (int) 0 ;
29899 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
29900 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
29901 void *argp1 = 0 ;
29902 int res1 = 0 ;
29903 void *argp2 = 0 ;
29904 int res2 = 0 ;
29905 void *argp3 = 0 ;
29906 int res3 = 0 ;
29907 wxRect temp4 ;
29908 int val5 ;
29909 int ecode5 = 0 ;
29910 int val6 ;
29911 int ecode6 = 0 ;
29912 void *argp7 = 0 ;
29913 int res7 = 0 ;
29914 PyObject * obj0 = 0 ;
29915 PyObject * obj1 = 0 ;
29916 PyObject * obj2 = 0 ;
29917 PyObject * obj3 = 0 ;
29918 PyObject * obj4 = 0 ;
29919 PyObject * obj5 = 0 ;
29920 PyObject * obj6 = 0 ;
29921 char * kwnames[] = {
29922 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
29923 };
29924
29925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
29926 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
29927 if (!SWIG_IsOK(res1)) {
29928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
29929 }
29930 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
29931 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
29932 if (!SWIG_IsOK(res2)) {
29933 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
29934 }
29935 arg2 = reinterpret_cast< wxWindow * >(argp2);
29936 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
29937 if (!SWIG_IsOK(res3)) {
29938 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
29939 }
29940 if (!argp3) {
29941 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
29942 }
29943 arg3 = reinterpret_cast< wxDC * >(argp3);
29944 {
29945 arg4 = &temp4;
29946 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
29947 }
29948 if (obj4) {
29949 ecode5 = SWIG_AsVal_int(obj4, &val5);
29950 if (!SWIG_IsOK(ecode5)) {
29951 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
29952 }
29953 arg5 = static_cast< int >(val5);
29954 }
29955 if (obj5) {
29956 ecode6 = SWIG_AsVal_int(obj5, &val6);
29957 if (!SWIG_IsOK(ecode6)) {
29958 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
29959 }
29960 arg6 = static_cast< wxHeaderSortIconType >(val6);
29961 }
29962 if (obj6) {
29963 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29964 if (!SWIG_IsOK(res7)) {
29965 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
29966 }
29967 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
29968 }
29969 {
29970 PyThreadState* __tstate = wxPyBeginAllowThreads();
29971 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
29972 wxPyEndAllowThreads(__tstate);
29973 if (PyErr_Occurred()) SWIG_fail;
29974 }
29975 resultobj = SWIG_Py_Void();
29976 return resultobj;
29977 fail:
29978 return NULL;
29979 }
29980
29981
29982 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29983 PyObject *resultobj = 0;
29984 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
29985 wxWindow *arg2 = (wxWindow *) 0 ;
29986 wxDC *arg3 = 0 ;
29987 wxRect *arg4 = 0 ;
29988 int arg5 = (int) 0 ;
29989 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
29990 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
29991 void *argp1 = 0 ;
29992 int res1 = 0 ;
29993 void *argp2 = 0 ;
29994 int res2 = 0 ;
29995 void *argp3 = 0 ;
29996 int res3 = 0 ;
29997 wxRect temp4 ;
29998 int val5 ;
29999 int ecode5 = 0 ;
30000 int val6 ;
30001 int ecode6 = 0 ;
30002 void *argp7 = 0 ;
30003 int res7 = 0 ;
30004 PyObject * obj0 = 0 ;
30005 PyObject * obj1 = 0 ;
30006 PyObject * obj2 = 0 ;
30007 PyObject * obj3 = 0 ;
30008 PyObject * obj4 = 0 ;
30009 PyObject * obj5 = 0 ;
30010 PyObject * obj6 = 0 ;
30011 char * kwnames[] = {
30012 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
30013 };
30014
30015 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30016 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30017 if (!SWIG_IsOK(res1)) {
30018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30019 }
30020 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30021 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30022 if (!SWIG_IsOK(res2)) {
30023 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'");
30024 }
30025 arg2 = reinterpret_cast< wxWindow * >(argp2);
30026 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30027 if (!SWIG_IsOK(res3)) {
30028 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
30029 }
30030 if (!argp3) {
30031 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
30032 }
30033 arg3 = reinterpret_cast< wxDC * >(argp3);
30034 {
30035 arg4 = &temp4;
30036 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30037 }
30038 if (obj4) {
30039 ecode5 = SWIG_AsVal_int(obj4, &val5);
30040 if (!SWIG_IsOK(ecode5)) {
30041 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'");
30042 }
30043 arg5 = static_cast< int >(val5);
30044 }
30045 if (obj5) {
30046 ecode6 = SWIG_AsVal_int(obj5, &val6);
30047 if (!SWIG_IsOK(ecode6)) {
30048 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
30049 }
30050 arg6 = static_cast< wxHeaderSortIconType >(val6);
30051 }
30052 if (obj6) {
30053 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30054 if (!SWIG_IsOK(res7)) {
30055 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
30056 }
30057 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
30058 }
30059 {
30060 PyThreadState* __tstate = wxPyBeginAllowThreads();
30061 (arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
30062 wxPyEndAllowThreads(__tstate);
30063 if (PyErr_Occurred()) SWIG_fail;
30064 }
30065 resultobj = SWIG_Py_Void();
30066 return resultobj;
30067 fail:
30068 return NULL;
30069 }
30070
30071
30072 SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30073 PyObject *resultobj = 0;
30074 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30075 wxWindow *arg2 = (wxWindow *) 0 ;
30076 int result;
30077 void *argp1 = 0 ;
30078 int res1 = 0 ;
30079 void *argp2 = 0 ;
30080 int res2 = 0 ;
30081 PyObject * obj0 = 0 ;
30082 PyObject * obj1 = 0 ;
30083 char * kwnames[] = {
30084 (char *) "self",(char *) "win", NULL
30085 };
30086
30087 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail;
30088 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30089 if (!SWIG_IsOK(res1)) {
30090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30091 }
30092 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30093 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30094 if (!SWIG_IsOK(res2)) {
30095 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'");
30096 }
30097 arg2 = reinterpret_cast< wxWindow * >(argp2);
30098 {
30099 PyThreadState* __tstate = wxPyBeginAllowThreads();
30100 result = (int)(arg1)->GetHeaderButtonHeight(arg2);
30101 wxPyEndAllowThreads(__tstate);
30102 if (PyErr_Occurred()) SWIG_fail;
30103 }
30104 resultobj = SWIG_From_int(static_cast< int >(result));
30105 return resultobj;
30106 fail:
30107 return NULL;
30108 }
30109
30110
30111 SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30112 PyObject *resultobj = 0;
30113 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30114 wxWindow *arg2 = (wxWindow *) 0 ;
30115 wxDC *arg3 = 0 ;
30116 wxRect *arg4 = 0 ;
30117 int arg5 = (int) 0 ;
30118 void *argp1 = 0 ;
30119 int res1 = 0 ;
30120 void *argp2 = 0 ;
30121 int res2 = 0 ;
30122 void *argp3 = 0 ;
30123 int res3 = 0 ;
30124 wxRect temp4 ;
30125 int val5 ;
30126 int ecode5 = 0 ;
30127 PyObject * obj0 = 0 ;
30128 PyObject * obj1 = 0 ;
30129 PyObject * obj2 = 0 ;
30130 PyObject * obj3 = 0 ;
30131 PyObject * obj4 = 0 ;
30132 char * kwnames[] = {
30133 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30134 };
30135
30136 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30137 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30138 if (!SWIG_IsOK(res1)) {
30139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30140 }
30141 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30142 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30143 if (!SWIG_IsOK(res2)) {
30144 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
30145 }
30146 arg2 = reinterpret_cast< wxWindow * >(argp2);
30147 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30148 if (!SWIG_IsOK(res3)) {
30149 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
30150 }
30151 if (!argp3) {
30152 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
30153 }
30154 arg3 = reinterpret_cast< wxDC * >(argp3);
30155 {
30156 arg4 = &temp4;
30157 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30158 }
30159 if (obj4) {
30160 ecode5 = SWIG_AsVal_int(obj4, &val5);
30161 if (!SWIG_IsOK(ecode5)) {
30162 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
30163 }
30164 arg5 = static_cast< int >(val5);
30165 }
30166 {
30167 PyThreadState* __tstate = wxPyBeginAllowThreads();
30168 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
30169 wxPyEndAllowThreads(__tstate);
30170 if (PyErr_Occurred()) SWIG_fail;
30171 }
30172 resultobj = SWIG_Py_Void();
30173 return resultobj;
30174 fail:
30175 return NULL;
30176 }
30177
30178
30179 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30180 PyObject *resultobj = 0;
30181 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30182 wxWindow *arg2 = (wxWindow *) 0 ;
30183 wxDC *arg3 = 0 ;
30184 wxRect *arg4 = 0 ;
30185 int arg5 = (int) 0 ;
30186 void *argp1 = 0 ;
30187 int res1 = 0 ;
30188 void *argp2 = 0 ;
30189 int res2 = 0 ;
30190 void *argp3 = 0 ;
30191 int res3 = 0 ;
30192 wxRect temp4 ;
30193 int val5 ;
30194 int ecode5 = 0 ;
30195 PyObject * obj0 = 0 ;
30196 PyObject * obj1 = 0 ;
30197 PyObject * obj2 = 0 ;
30198 PyObject * obj3 = 0 ;
30199 PyObject * obj4 = 0 ;
30200 char * kwnames[] = {
30201 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30202 };
30203
30204 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30205 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30206 if (!SWIG_IsOK(res1)) {
30207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30208 }
30209 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30210 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30211 if (!SWIG_IsOK(res2)) {
30212 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
30213 }
30214 arg2 = reinterpret_cast< wxWindow * >(argp2);
30215 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30216 if (!SWIG_IsOK(res3)) {
30217 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
30218 }
30219 if (!argp3) {
30220 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
30221 }
30222 arg3 = reinterpret_cast< wxDC * >(argp3);
30223 {
30224 arg4 = &temp4;
30225 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30226 }
30227 if (obj4) {
30228 ecode5 = SWIG_AsVal_int(obj4, &val5);
30229 if (!SWIG_IsOK(ecode5)) {
30230 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
30231 }
30232 arg5 = static_cast< int >(val5);
30233 }
30234 {
30235 PyThreadState* __tstate = wxPyBeginAllowThreads();
30236 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
30237 wxPyEndAllowThreads(__tstate);
30238 if (PyErr_Occurred()) SWIG_fail;
30239 }
30240 resultobj = SWIG_Py_Void();
30241 return resultobj;
30242 fail:
30243 return NULL;
30244 }
30245
30246
30247 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30248 PyObject *resultobj = 0;
30249 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30250 wxWindow *arg2 = (wxWindow *) 0 ;
30251 wxDC *arg3 = 0 ;
30252 wxSize *arg4 = 0 ;
30253 int arg5 ;
30254 wxOrientation arg6 ;
30255 int arg7 = (int) 0 ;
30256 void *argp1 = 0 ;
30257 int res1 = 0 ;
30258 void *argp2 = 0 ;
30259 int res2 = 0 ;
30260 void *argp3 = 0 ;
30261 int res3 = 0 ;
30262 wxSize temp4 ;
30263 int val5 ;
30264 int ecode5 = 0 ;
30265 int val6 ;
30266 int ecode6 = 0 ;
30267 int val7 ;
30268 int ecode7 = 0 ;
30269 PyObject * obj0 = 0 ;
30270 PyObject * obj1 = 0 ;
30271 PyObject * obj2 = 0 ;
30272 PyObject * obj3 = 0 ;
30273 PyObject * obj4 = 0 ;
30274 PyObject * obj5 = 0 ;
30275 PyObject * obj6 = 0 ;
30276 char * kwnames[] = {
30277 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
30278 };
30279
30280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30282 if (!SWIG_IsOK(res1)) {
30283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30284 }
30285 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30286 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30287 if (!SWIG_IsOK(res2)) {
30288 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
30289 }
30290 arg2 = reinterpret_cast< wxWindow * >(argp2);
30291 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30292 if (!SWIG_IsOK(res3)) {
30293 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
30294 }
30295 if (!argp3) {
30296 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
30297 }
30298 arg3 = reinterpret_cast< wxDC * >(argp3);
30299 {
30300 arg4 = &temp4;
30301 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
30302 }
30303 ecode5 = SWIG_AsVal_int(obj4, &val5);
30304 if (!SWIG_IsOK(ecode5)) {
30305 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
30306 }
30307 arg5 = static_cast< int >(val5);
30308 ecode6 = SWIG_AsVal_int(obj5, &val6);
30309 if (!SWIG_IsOK(ecode6)) {
30310 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
30311 }
30312 arg6 = static_cast< wxOrientation >(val6);
30313 if (obj6) {
30314 ecode7 = SWIG_AsVal_int(obj6, &val7);
30315 if (!SWIG_IsOK(ecode7)) {
30316 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
30317 }
30318 arg7 = static_cast< int >(val7);
30319 }
30320 {
30321 PyThreadState* __tstate = wxPyBeginAllowThreads();
30322 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
30323 wxPyEndAllowThreads(__tstate);
30324 if (PyErr_Occurred()) SWIG_fail;
30325 }
30326 resultobj = SWIG_Py_Void();
30327 return resultobj;
30328 fail:
30329 return NULL;
30330 }
30331
30332
30333 SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30334 PyObject *resultobj = 0;
30335 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30336 wxWindow *arg2 = (wxWindow *) 0 ;
30337 wxDC *arg3 = 0 ;
30338 wxRect *arg4 = 0 ;
30339 int arg5 = (int) 0 ;
30340 void *argp1 = 0 ;
30341 int res1 = 0 ;
30342 void *argp2 = 0 ;
30343 int res2 = 0 ;
30344 void *argp3 = 0 ;
30345 int res3 = 0 ;
30346 wxRect temp4 ;
30347 int val5 ;
30348 int ecode5 = 0 ;
30349 PyObject * obj0 = 0 ;
30350 PyObject * obj1 = 0 ;
30351 PyObject * obj2 = 0 ;
30352 PyObject * obj3 = 0 ;
30353 PyObject * obj4 = 0 ;
30354 char * kwnames[] = {
30355 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30356 };
30357
30358 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30359 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30360 if (!SWIG_IsOK(res1)) {
30361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30362 }
30363 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30364 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30365 if (!SWIG_IsOK(res2)) {
30366 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
30367 }
30368 arg2 = reinterpret_cast< wxWindow * >(argp2);
30369 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30370 if (!SWIG_IsOK(res3)) {
30371 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
30372 }
30373 if (!argp3) {
30374 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
30375 }
30376 arg3 = reinterpret_cast< wxDC * >(argp3);
30377 {
30378 arg4 = &temp4;
30379 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30380 }
30381 if (obj4) {
30382 ecode5 = SWIG_AsVal_int(obj4, &val5);
30383 if (!SWIG_IsOK(ecode5)) {
30384 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
30385 }
30386 arg5 = static_cast< int >(val5);
30387 }
30388 {
30389 PyThreadState* __tstate = wxPyBeginAllowThreads();
30390 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
30391 wxPyEndAllowThreads(__tstate);
30392 if (PyErr_Occurred()) SWIG_fail;
30393 }
30394 resultobj = SWIG_Py_Void();
30395 return resultobj;
30396 fail:
30397 return NULL;
30398 }
30399
30400
30401 SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30402 PyObject *resultobj = 0;
30403 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30404 wxWindow *arg2 = (wxWindow *) 0 ;
30405 wxDC *arg3 = 0 ;
30406 wxRect *arg4 = 0 ;
30407 int arg5 = (int) 0 ;
30408 void *argp1 = 0 ;
30409 int res1 = 0 ;
30410 void *argp2 = 0 ;
30411 int res2 = 0 ;
30412 void *argp3 = 0 ;
30413 int res3 = 0 ;
30414 wxRect temp4 ;
30415 int val5 ;
30416 int ecode5 = 0 ;
30417 PyObject * obj0 = 0 ;
30418 PyObject * obj1 = 0 ;
30419 PyObject * obj2 = 0 ;
30420 PyObject * obj3 = 0 ;
30421 PyObject * obj4 = 0 ;
30422 char * kwnames[] = {
30423 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30424 };
30425
30426 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30427 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30428 if (!SWIG_IsOK(res1)) {
30429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30430 }
30431 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30432 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30433 if (!SWIG_IsOK(res2)) {
30434 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
30435 }
30436 arg2 = reinterpret_cast< wxWindow * >(argp2);
30437 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30438 if (!SWIG_IsOK(res3)) {
30439 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
30440 }
30441 if (!argp3) {
30442 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
30443 }
30444 arg3 = reinterpret_cast< wxDC * >(argp3);
30445 {
30446 arg4 = &temp4;
30447 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30448 }
30449 if (obj4) {
30450 ecode5 = SWIG_AsVal_int(obj4, &val5);
30451 if (!SWIG_IsOK(ecode5)) {
30452 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
30453 }
30454 arg5 = static_cast< int >(val5);
30455 }
30456 {
30457 PyThreadState* __tstate = wxPyBeginAllowThreads();
30458 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
30459 wxPyEndAllowThreads(__tstate);
30460 if (PyErr_Occurred()) SWIG_fail;
30461 }
30462 resultobj = SWIG_Py_Void();
30463 return resultobj;
30464 fail:
30465 return NULL;
30466 }
30467
30468
30469 SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30470 PyObject *resultobj = 0;
30471 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30472 wxWindow *arg2 = (wxWindow *) 0 ;
30473 wxDC *arg3 = 0 ;
30474 wxRect *arg4 = 0 ;
30475 int arg5 = (int) 0 ;
30476 void *argp1 = 0 ;
30477 int res1 = 0 ;
30478 void *argp2 = 0 ;
30479 int res2 = 0 ;
30480 void *argp3 = 0 ;
30481 int res3 = 0 ;
30482 wxRect temp4 ;
30483 int val5 ;
30484 int ecode5 = 0 ;
30485 PyObject * obj0 = 0 ;
30486 PyObject * obj1 = 0 ;
30487 PyObject * obj2 = 0 ;
30488 PyObject * obj3 = 0 ;
30489 PyObject * obj4 = 0 ;
30490 char * kwnames[] = {
30491 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30492 };
30493
30494 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30495 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30496 if (!SWIG_IsOK(res1)) {
30497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30498 }
30499 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30500 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30501 if (!SWIG_IsOK(res2)) {
30502 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
30503 }
30504 arg2 = reinterpret_cast< wxWindow * >(argp2);
30505 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30506 if (!SWIG_IsOK(res3)) {
30507 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
30508 }
30509 if (!argp3) {
30510 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
30511 }
30512 arg3 = reinterpret_cast< wxDC * >(argp3);
30513 {
30514 arg4 = &temp4;
30515 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30516 }
30517 if (obj4) {
30518 ecode5 = SWIG_AsVal_int(obj4, &val5);
30519 if (!SWIG_IsOK(ecode5)) {
30520 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
30521 }
30522 arg5 = static_cast< int >(val5);
30523 }
30524 {
30525 PyThreadState* __tstate = wxPyBeginAllowThreads();
30526 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
30527 wxPyEndAllowThreads(__tstate);
30528 if (PyErr_Occurred()) SWIG_fail;
30529 }
30530 resultobj = SWIG_Py_Void();
30531 return resultobj;
30532 fail:
30533 return NULL;
30534 }
30535
30536
30537 SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30538 PyObject *resultobj = 0;
30539 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30540 wxWindow *arg2 = (wxWindow *) 0 ;
30541 wxDC *arg3 = 0 ;
30542 wxRect *arg4 = 0 ;
30543 int arg5 = (int) 0 ;
30544 void *argp1 = 0 ;
30545 int res1 = 0 ;
30546 void *argp2 = 0 ;
30547 int res2 = 0 ;
30548 void *argp3 = 0 ;
30549 int res3 = 0 ;
30550 wxRect temp4 ;
30551 int val5 ;
30552 int ecode5 = 0 ;
30553 PyObject * obj0 = 0 ;
30554 PyObject * obj1 = 0 ;
30555 PyObject * obj2 = 0 ;
30556 PyObject * obj3 = 0 ;
30557 PyObject * obj4 = 0 ;
30558 char * kwnames[] = {
30559 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30560 };
30561
30562 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30563 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30564 if (!SWIG_IsOK(res1)) {
30565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30566 }
30567 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30568 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30569 if (!SWIG_IsOK(res2)) {
30570 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
30571 }
30572 arg2 = reinterpret_cast< wxWindow * >(argp2);
30573 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30574 if (!SWIG_IsOK(res3)) {
30575 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
30576 }
30577 if (!argp3) {
30578 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
30579 }
30580 arg3 = reinterpret_cast< wxDC * >(argp3);
30581 {
30582 arg4 = &temp4;
30583 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30584 }
30585 if (obj4) {
30586 ecode5 = SWIG_AsVal_int(obj4, &val5);
30587 if (!SWIG_IsOK(ecode5)) {
30588 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
30589 }
30590 arg5 = static_cast< int >(val5);
30591 }
30592 {
30593 PyThreadState* __tstate = wxPyBeginAllowThreads();
30594 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
30595 wxPyEndAllowThreads(__tstate);
30596 if (PyErr_Occurred()) SWIG_fail;
30597 }
30598 resultobj = SWIG_Py_Void();
30599 return resultobj;
30600 fail:
30601 return NULL;
30602 }
30603
30604
30605 SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30606 PyObject *resultobj = 0;
30607 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30608 wxWindow *arg2 = (wxWindow *) 0 ;
30609 wxDC *arg3 = 0 ;
30610 wxRect *arg4 = 0 ;
30611 int arg5 = (int) 0 ;
30612 void *argp1 = 0 ;
30613 int res1 = 0 ;
30614 void *argp2 = 0 ;
30615 int res2 = 0 ;
30616 void *argp3 = 0 ;
30617 int res3 = 0 ;
30618 wxRect temp4 ;
30619 int val5 ;
30620 int ecode5 = 0 ;
30621 PyObject * obj0 = 0 ;
30622 PyObject * obj1 = 0 ;
30623 PyObject * obj2 = 0 ;
30624 PyObject * obj3 = 0 ;
30625 PyObject * obj4 = 0 ;
30626 char * kwnames[] = {
30627 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30628 };
30629
30630 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30631 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30632 if (!SWIG_IsOK(res1)) {
30633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30634 }
30635 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30636 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30637 if (!SWIG_IsOK(res2)) {
30638 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
30639 }
30640 arg2 = reinterpret_cast< wxWindow * >(argp2);
30641 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30642 if (!SWIG_IsOK(res3)) {
30643 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
30644 }
30645 if (!argp3) {
30646 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
30647 }
30648 arg3 = reinterpret_cast< wxDC * >(argp3);
30649 {
30650 arg4 = &temp4;
30651 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30652 }
30653 if (obj4) {
30654 ecode5 = SWIG_AsVal_int(obj4, &val5);
30655 if (!SWIG_IsOK(ecode5)) {
30656 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
30657 }
30658 arg5 = static_cast< int >(val5);
30659 }
30660 {
30661 PyThreadState* __tstate = wxPyBeginAllowThreads();
30662 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
30663 wxPyEndAllowThreads(__tstate);
30664 if (PyErr_Occurred()) SWIG_fail;
30665 }
30666 resultobj = SWIG_Py_Void();
30667 return resultobj;
30668 fail:
30669 return NULL;
30670 }
30671
30672
30673 SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30674 PyObject *resultobj = 0;
30675 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30676 wxWindow *arg2 = (wxWindow *) 0 ;
30677 SwigValueWrapper<wxSplitterRenderParams > result;
30678 void *argp1 = 0 ;
30679 int res1 = 0 ;
30680 void *argp2 = 0 ;
30681 int res2 = 0 ;
30682 PyObject * obj0 = 0 ;
30683 PyObject * obj1 = 0 ;
30684 char * kwnames[] = {
30685 (char *) "self",(char *) "win", NULL
30686 };
30687
30688 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
30689 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30690 if (!SWIG_IsOK(res1)) {
30691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30692 }
30693 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30694 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30695 if (!SWIG_IsOK(res2)) {
30696 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
30697 }
30698 arg2 = reinterpret_cast< wxWindow * >(argp2);
30699 {
30700 PyThreadState* __tstate = wxPyBeginAllowThreads();
30701 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
30702 wxPyEndAllowThreads(__tstate);
30703 if (PyErr_Occurred()) SWIG_fail;
30704 }
30705 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
30706 return resultobj;
30707 fail:
30708 return NULL;
30709 }
30710
30711
30712 SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30713 PyObject *resultobj = 0;
30714 wxRendererNative *result = 0 ;
30715
30716 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
30717 {
30718 if (!wxPyCheckForApp()) SWIG_fail;
30719 PyThreadState* __tstate = wxPyBeginAllowThreads();
30720 {
30721 wxRendererNative &_result_ref = wxRendererNative::Get();
30722 result = (wxRendererNative *) &_result_ref;
30723 }
30724 wxPyEndAllowThreads(__tstate);
30725 if (PyErr_Occurred()) SWIG_fail;
30726 }
30727 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
30728 return resultobj;
30729 fail:
30730 return NULL;
30731 }
30732
30733
30734 SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30735 PyObject *resultobj = 0;
30736 wxRendererNative *result = 0 ;
30737
30738 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
30739 {
30740 if (!wxPyCheckForApp()) SWIG_fail;
30741 PyThreadState* __tstate = wxPyBeginAllowThreads();
30742 {
30743 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
30744 result = (wxRendererNative *) &_result_ref;
30745 }
30746 wxPyEndAllowThreads(__tstate);
30747 if (PyErr_Occurred()) SWIG_fail;
30748 }
30749 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
30750 return resultobj;
30751 fail:
30752 return NULL;
30753 }
30754
30755
30756 SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30757 PyObject *resultobj = 0;
30758 wxRendererNative *result = 0 ;
30759
30760 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
30761 {
30762 if (!wxPyCheckForApp()) SWIG_fail;
30763 PyThreadState* __tstate = wxPyBeginAllowThreads();
30764 {
30765 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
30766 result = (wxRendererNative *) &_result_ref;
30767 }
30768 wxPyEndAllowThreads(__tstate);
30769 if (PyErr_Occurred()) SWIG_fail;
30770 }
30771 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
30772 return resultobj;
30773 fail:
30774 return NULL;
30775 }
30776
30777
30778 SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30779 PyObject *resultobj = 0;
30780 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30781 wxRendererNative *result = 0 ;
30782 void *argp1 = 0 ;
30783 int res1 = 0 ;
30784 PyObject * obj0 = 0 ;
30785 char * kwnames[] = {
30786 (char *) "renderer", NULL
30787 };
30788
30789 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
30790 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30791 if (!SWIG_IsOK(res1)) {
30792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30793 }
30794 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30795 {
30796 if (!wxPyCheckForApp()) SWIG_fail;
30797 PyThreadState* __tstate = wxPyBeginAllowThreads();
30798 result = (wxRendererNative *)wxRendererNative::Set(arg1);
30799 wxPyEndAllowThreads(__tstate);
30800 if (PyErr_Occurred()) SWIG_fail;
30801 }
30802 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
30803 return resultobj;
30804 fail:
30805 return NULL;
30806 }
30807
30808
30809 SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30810 PyObject *resultobj = 0;
30811 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30812 SwigValueWrapper<wxRendererVersion > result;
30813 void *argp1 = 0 ;
30814 int res1 = 0 ;
30815 PyObject *swig_obj[1] ;
30816
30817 if (!args) SWIG_fail;
30818 swig_obj[0] = args;
30819 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30820 if (!SWIG_IsOK(res1)) {
30821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
30822 }
30823 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30824 {
30825 PyThreadState* __tstate = wxPyBeginAllowThreads();
30826 result = ((wxRendererNative const *)arg1)->GetVersion();
30827 wxPyEndAllowThreads(__tstate);
30828 if (PyErr_Occurred()) SWIG_fail;
30829 }
30830 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
30831 return resultobj;
30832 fail:
30833 return NULL;
30834 }
30835
30836
30837 SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30838 PyObject *obj;
30839 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30840 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
30841 return SWIG_Py_Void();
30842 }
30843
30844 SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30845 PyObject *resultobj = 0;
30846 wxPseudoDC *result = 0 ;
30847
30848 if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail;
30849 {
30850 PyThreadState* __tstate = wxPyBeginAllowThreads();
30851 result = (wxPseudoDC *)new wxPseudoDC();
30852 wxPyEndAllowThreads(__tstate);
30853 if (PyErr_Occurred()) SWIG_fail;
30854 }
30855 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 );
30856 return resultobj;
30857 fail:
30858 return NULL;
30859 }
30860
30861
30862 SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30863 PyObject *resultobj = 0;
30864 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30865 void *argp1 = 0 ;
30866 int res1 = 0 ;
30867 PyObject *swig_obj[1] ;
30868
30869 if (!args) SWIG_fail;
30870 swig_obj[0] = args;
30871 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30872 if (!SWIG_IsOK(res1)) {
30873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30874 }
30875 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30876 {
30877 PyThreadState* __tstate = wxPyBeginAllowThreads();
30878 (arg1)->BeginDrawing();
30879 wxPyEndAllowThreads(__tstate);
30880 if (PyErr_Occurred()) SWIG_fail;
30881 }
30882 resultobj = SWIG_Py_Void();
30883 return resultobj;
30884 fail:
30885 return NULL;
30886 }
30887
30888
30889 SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30890 PyObject *resultobj = 0;
30891 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30892 void *argp1 = 0 ;
30893 int res1 = 0 ;
30894 PyObject *swig_obj[1] ;
30895
30896 if (!args) SWIG_fail;
30897 swig_obj[0] = args;
30898 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30899 if (!SWIG_IsOK(res1)) {
30900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30901 }
30902 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30903 {
30904 PyThreadState* __tstate = wxPyBeginAllowThreads();
30905 (arg1)->EndDrawing();
30906 wxPyEndAllowThreads(__tstate);
30907 if (PyErr_Occurred()) SWIG_fail;
30908 }
30909 resultobj = SWIG_Py_Void();
30910 return resultobj;
30911 fail:
30912 return NULL;
30913 }
30914
30915
30916 SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30917 PyObject *resultobj = 0;
30918 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30919 void *argp1 = 0 ;
30920 int res1 = 0 ;
30921 PyObject *swig_obj[1] ;
30922
30923 if (!args) SWIG_fail;
30924 swig_obj[0] = args;
30925 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 );
30926 if (!SWIG_IsOK(res1)) {
30927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30928 }
30929 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30930 {
30931 PyThreadState* __tstate = wxPyBeginAllowThreads();
30932 delete arg1;
30933
30934 wxPyEndAllowThreads(__tstate);
30935 if (PyErr_Occurred()) SWIG_fail;
30936 }
30937 resultobj = SWIG_Py_Void();
30938 return resultobj;
30939 fail:
30940 return NULL;
30941 }
30942
30943
30944 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30945 PyObject *resultobj = 0;
30946 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30947 void *argp1 = 0 ;
30948 int res1 = 0 ;
30949 PyObject *swig_obj[1] ;
30950
30951 if (!args) SWIG_fail;
30952 swig_obj[0] = args;
30953 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30954 if (!SWIG_IsOK(res1)) {
30955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30956 }
30957 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30958 {
30959 PyThreadState* __tstate = wxPyBeginAllowThreads();
30960 (arg1)->RemoveAll();
30961 wxPyEndAllowThreads(__tstate);
30962 if (PyErr_Occurred()) SWIG_fail;
30963 }
30964 resultobj = SWIG_Py_Void();
30965 return resultobj;
30966 fail:
30967 return NULL;
30968 }
30969
30970
30971 SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30972 PyObject *resultobj = 0;
30973 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30974 int result;
30975 void *argp1 = 0 ;
30976 int res1 = 0 ;
30977 PyObject *swig_obj[1] ;
30978
30979 if (!args) SWIG_fail;
30980 swig_obj[0] = args;
30981 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30982 if (!SWIG_IsOK(res1)) {
30983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30984 }
30985 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30986 {
30987 PyThreadState* __tstate = wxPyBeginAllowThreads();
30988 result = (int)(arg1)->GetLen();
30989 wxPyEndAllowThreads(__tstate);
30990 if (PyErr_Occurred()) SWIG_fail;
30991 }
30992 resultobj = SWIG_From_int(static_cast< int >(result));
30993 return resultobj;
30994 fail:
30995 return NULL;
30996 }
30997
30998
30999 SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31000 PyObject *resultobj = 0;
31001 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31002 int arg2 ;
31003 void *argp1 = 0 ;
31004 int res1 = 0 ;
31005 int val2 ;
31006 int ecode2 = 0 ;
31007 PyObject * obj0 = 0 ;
31008 PyObject * obj1 = 0 ;
31009 char * kwnames[] = {
31010 (char *) "self",(char *) "id", NULL
31011 };
31012
31013 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
31014 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31015 if (!SWIG_IsOK(res1)) {
31016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31017 }
31018 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31019 ecode2 = SWIG_AsVal_int(obj1, &val2);
31020 if (!SWIG_IsOK(ecode2)) {
31021 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'");
31022 }
31023 arg2 = static_cast< int >(val2);
31024 {
31025 PyThreadState* __tstate = wxPyBeginAllowThreads();
31026 (arg1)->SetId(arg2);
31027 wxPyEndAllowThreads(__tstate);
31028 if (PyErr_Occurred()) SWIG_fail;
31029 }
31030 resultobj = SWIG_Py_Void();
31031 return resultobj;
31032 fail:
31033 return NULL;
31034 }
31035
31036
31037 SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31038 PyObject *resultobj = 0;
31039 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31040 int arg2 ;
31041 void *argp1 = 0 ;
31042 int res1 = 0 ;
31043 int val2 ;
31044 int ecode2 = 0 ;
31045 PyObject * obj0 = 0 ;
31046 PyObject * obj1 = 0 ;
31047 char * kwnames[] = {
31048 (char *) "self",(char *) "id", NULL
31049 };
31050
31051 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail;
31052 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31053 if (!SWIG_IsOK(res1)) {
31054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31055 }
31056 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31057 ecode2 = SWIG_AsVal_int(obj1, &val2);
31058 if (!SWIG_IsOK(ecode2)) {
31059 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'");
31060 }
31061 arg2 = static_cast< int >(val2);
31062 {
31063 PyThreadState* __tstate = wxPyBeginAllowThreads();
31064 (arg1)->ClearId(arg2);
31065 wxPyEndAllowThreads(__tstate);
31066 if (PyErr_Occurred()) SWIG_fail;
31067 }
31068 resultobj = SWIG_Py_Void();
31069 return resultobj;
31070 fail:
31071 return NULL;
31072 }
31073
31074
31075 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31076 PyObject *resultobj = 0;
31077 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31078 int arg2 ;
31079 void *argp1 = 0 ;
31080 int res1 = 0 ;
31081 int val2 ;
31082 int ecode2 = 0 ;
31083 PyObject * obj0 = 0 ;
31084 PyObject * obj1 = 0 ;
31085 char * kwnames[] = {
31086 (char *) "self",(char *) "id", NULL
31087 };
31088
31089 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail;
31090 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31091 if (!SWIG_IsOK(res1)) {
31092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31093 }
31094 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31095 ecode2 = SWIG_AsVal_int(obj1, &val2);
31096 if (!SWIG_IsOK(ecode2)) {
31097 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'");
31098 }
31099 arg2 = static_cast< int >(val2);
31100 {
31101 PyThreadState* __tstate = wxPyBeginAllowThreads();
31102 (arg1)->RemoveId(arg2);
31103 wxPyEndAllowThreads(__tstate);
31104 if (PyErr_Occurred()) SWIG_fail;
31105 }
31106 resultobj = SWIG_Py_Void();
31107 return resultobj;
31108 fail:
31109 return NULL;
31110 }
31111
31112
31113 SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31114 PyObject *resultobj = 0;
31115 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31116 int arg2 ;
31117 int arg3 ;
31118 int arg4 ;
31119 void *argp1 = 0 ;
31120 int res1 = 0 ;
31121 int val2 ;
31122 int ecode2 = 0 ;
31123 int val3 ;
31124 int ecode3 = 0 ;
31125 int val4 ;
31126 int ecode4 = 0 ;
31127 PyObject * obj0 = 0 ;
31128 PyObject * obj1 = 0 ;
31129 PyObject * obj2 = 0 ;
31130 PyObject * obj3 = 0 ;
31131 char * kwnames[] = {
31132 (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL
31133 };
31134
31135 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31136 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31137 if (!SWIG_IsOK(res1)) {
31138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31139 }
31140 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31141 ecode2 = SWIG_AsVal_int(obj1, &val2);
31142 if (!SWIG_IsOK(ecode2)) {
31143 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'");
31144 }
31145 arg2 = static_cast< int >(val2);
31146 ecode3 = SWIG_AsVal_int(obj2, &val3);
31147 if (!SWIG_IsOK(ecode3)) {
31148 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'");
31149 }
31150 arg3 = static_cast< int >(val3);
31151 ecode4 = SWIG_AsVal_int(obj3, &val4);
31152 if (!SWIG_IsOK(ecode4)) {
31153 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'");
31154 }
31155 arg4 = static_cast< int >(val4);
31156 {
31157 PyThreadState* __tstate = wxPyBeginAllowThreads();
31158 (arg1)->TranslateId(arg2,arg3,arg4);
31159 wxPyEndAllowThreads(__tstate);
31160 if (PyErr_Occurred()) SWIG_fail;
31161 }
31162 resultobj = SWIG_Py_Void();
31163 return resultobj;
31164 fail:
31165 return NULL;
31166 }
31167
31168
31169 SWIGINTERN PyObject *_wrap_PseudoDC_SetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31170 PyObject *resultobj = 0;
31171 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31172 int arg2 ;
31173 bool arg3 = (bool) true ;
31174 void *argp1 = 0 ;
31175 int res1 = 0 ;
31176 int val2 ;
31177 int ecode2 = 0 ;
31178 bool val3 ;
31179 int ecode3 = 0 ;
31180 PyObject * obj0 = 0 ;
31181 PyObject * obj1 = 0 ;
31182 PyObject * obj2 = 0 ;
31183 char * kwnames[] = {
31184 (char *) "self",(char *) "id",(char *) "greyout", NULL
31185 };
31186
31187 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoDC_SetIdGreyedOut",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31188 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31189 if (!SWIG_IsOK(res1)) {
31190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31191 }
31192 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31193 ecode2 = SWIG_AsVal_int(obj1, &val2);
31194 if (!SWIG_IsOK(ecode2)) {
31195 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
31196 }
31197 arg2 = static_cast< int >(val2);
31198 if (obj2) {
31199 ecode3 = SWIG_AsVal_bool(obj2, &val3);
31200 if (!SWIG_IsOK(ecode3)) {
31201 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "3"" of type '" "bool""'");
31202 }
31203 arg3 = static_cast< bool >(val3);
31204 }
31205 {
31206 PyThreadState* __tstate = wxPyBeginAllowThreads();
31207 (arg1)->SetIdGreyedOut(arg2,arg3);
31208 wxPyEndAllowThreads(__tstate);
31209 if (PyErr_Occurred()) SWIG_fail;
31210 }
31211 resultobj = SWIG_Py_Void();
31212 return resultobj;
31213 fail:
31214 return NULL;
31215 }
31216
31217
31218 SWIGINTERN PyObject *_wrap_PseudoDC_GetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31219 PyObject *resultobj = 0;
31220 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31221 int arg2 ;
31222 bool result;
31223 void *argp1 = 0 ;
31224 int res1 = 0 ;
31225 int val2 ;
31226 int ecode2 = 0 ;
31227 PyObject * obj0 = 0 ;
31228 PyObject * obj1 = 0 ;
31229 char * kwnames[] = {
31230 (char *) "self",(char *) "id", NULL
31231 };
31232
31233 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdGreyedOut",kwnames,&obj0,&obj1)) SWIG_fail;
31234 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31235 if (!SWIG_IsOK(res1)) {
31236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31237 }
31238 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31239 ecode2 = SWIG_AsVal_int(obj1, &val2);
31240 if (!SWIG_IsOK(ecode2)) {
31241 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
31242 }
31243 arg2 = static_cast< int >(val2);
31244 {
31245 PyThreadState* __tstate = wxPyBeginAllowThreads();
31246 result = (bool)(arg1)->GetIdGreyedOut(arg2);
31247 wxPyEndAllowThreads(__tstate);
31248 if (PyErr_Occurred()) SWIG_fail;
31249 }
31250 {
31251 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31252 }
31253 return resultobj;
31254 fail:
31255 return NULL;
31256 }
31257
31258
31259 SWIGINTERN PyObject *_wrap_PseudoDC_FindObjects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31260 PyObject *resultobj = 0;
31261 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31262 int arg2 ;
31263 int arg3 ;
31264 int arg4 = (int) 1 ;
31265 wxColor const &arg5_defvalue = *wxWHITE ;
31266 wxColor *arg5 = (wxColor *) &arg5_defvalue ;
31267 PyObject *result = 0 ;
31268 void *argp1 = 0 ;
31269 int res1 = 0 ;
31270 int val2 ;
31271 int ecode2 = 0 ;
31272 int val3 ;
31273 int ecode3 = 0 ;
31274 int val4 ;
31275 int ecode4 = 0 ;
31276 void *argp5 = 0 ;
31277 int res5 = 0 ;
31278 PyObject * obj0 = 0 ;
31279 PyObject * obj1 = 0 ;
31280 PyObject * obj2 = 0 ;
31281 PyObject * obj3 = 0 ;
31282 PyObject * obj4 = 0 ;
31283 char * kwnames[] = {
31284 (char *) "self",(char *) "x",(char *) "y",(char *) "radius",(char *) "bg", NULL
31285 };
31286
31287 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_FindObjects",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31288 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31289 if (!SWIG_IsOK(res1)) {
31290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjects" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31291 }
31292 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31293 ecode2 = SWIG_AsVal_int(obj1, &val2);
31294 if (!SWIG_IsOK(ecode2)) {
31295 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjects" "', expected argument " "2"" of type '" "int""'");
31296 }
31297 arg2 = static_cast< int >(val2);
31298 ecode3 = SWIG_AsVal_int(obj2, &val3);
31299 if (!SWIG_IsOK(ecode3)) {
31300 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjects" "', expected argument " "3"" of type '" "int""'");
31301 }
31302 arg3 = static_cast< int >(val3);
31303 if (obj3) {
31304 ecode4 = SWIG_AsVal_int(obj3, &val4);
31305 if (!SWIG_IsOK(ecode4)) {
31306 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FindObjects" "', expected argument " "4"" of type '" "int""'");
31307 }
31308 arg4 = static_cast< int >(val4);
31309 }
31310 if (obj4) {
31311 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxColor, 0 | 0);
31312 if (!SWIG_IsOK(res5)) {
31313 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
31314 }
31315 if (!argp5) {
31316 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
31317 }
31318 arg5 = reinterpret_cast< wxColor * >(argp5);
31319 }
31320 {
31321 result = (PyObject *)(arg1)->FindObjects(arg2,arg3,arg4,(wxColor const &)*arg5);
31322 if (PyErr_Occurred()) SWIG_fail;
31323 }
31324 resultobj = result;
31325 return resultobj;
31326 fail:
31327 return NULL;
31328 }
31329
31330
31331 SWIGINTERN PyObject *_wrap_PseudoDC_FindObjectsByBBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31332 PyObject *resultobj = 0;
31333 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31334 int arg2 ;
31335 int arg3 ;
31336 PyObject *result = 0 ;
31337 void *argp1 = 0 ;
31338 int res1 = 0 ;
31339 int val2 ;
31340 int ecode2 = 0 ;
31341 int val3 ;
31342 int ecode3 = 0 ;
31343 PyObject * obj0 = 0 ;
31344 PyObject * obj1 = 0 ;
31345 PyObject * obj2 = 0 ;
31346 char * kwnames[] = {
31347 (char *) "self",(char *) "x",(char *) "y", NULL
31348 };
31349
31350 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_FindObjectsByBBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31351 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31352 if (!SWIG_IsOK(res1)) {
31353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31354 }
31355 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31356 ecode2 = SWIG_AsVal_int(obj1, &val2);
31357 if (!SWIG_IsOK(ecode2)) {
31358 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "2"" of type '" "int""'");
31359 }
31360 arg2 = static_cast< int >(val2);
31361 ecode3 = SWIG_AsVal_int(obj2, &val3);
31362 if (!SWIG_IsOK(ecode3)) {
31363 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "3"" of type '" "int""'");
31364 }
31365 arg3 = static_cast< int >(val3);
31366 {
31367 result = (PyObject *)(arg1)->FindObjectsByBBox(arg2,arg3);
31368 if (PyErr_Occurred()) SWIG_fail;
31369 }
31370 resultobj = result;
31371 return resultobj;
31372 fail:
31373 return NULL;
31374 }
31375
31376
31377 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31378 PyObject *resultobj = 0;
31379 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31380 int arg2 ;
31381 wxDC *arg3 = (wxDC *) 0 ;
31382 void *argp1 = 0 ;
31383 int res1 = 0 ;
31384 int val2 ;
31385 int ecode2 = 0 ;
31386 void *argp3 = 0 ;
31387 int res3 = 0 ;
31388 PyObject * obj0 = 0 ;
31389 PyObject * obj1 = 0 ;
31390 PyObject * obj2 = 0 ;
31391 char * kwnames[] = {
31392 (char *) "self",(char *) "id",(char *) "dc", NULL
31393 };
31394
31395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31397 if (!SWIG_IsOK(res1)) {
31398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31399 }
31400 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31401 ecode2 = SWIG_AsVal_int(obj1, &val2);
31402 if (!SWIG_IsOK(ecode2)) {
31403 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'");
31404 }
31405 arg2 = static_cast< int >(val2);
31406 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 );
31407 if (!SWIG_IsOK(res3)) {
31408 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'");
31409 }
31410 arg3 = reinterpret_cast< wxDC * >(argp3);
31411 {
31412 PyThreadState* __tstate = wxPyBeginAllowThreads();
31413 (arg1)->DrawIdToDC(arg2,arg3);
31414 wxPyEndAllowThreads(__tstate);
31415 if (PyErr_Occurred()) SWIG_fail;
31416 }
31417 resultobj = SWIG_Py_Void();
31418 return resultobj;
31419 fail:
31420 return NULL;
31421 }
31422
31423
31424 SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31425 PyObject *resultobj = 0;
31426 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31427 int arg2 ;
31428 wxRect *arg3 = 0 ;
31429 void *argp1 = 0 ;
31430 int res1 = 0 ;
31431 int val2 ;
31432 int ecode2 = 0 ;
31433 wxRect temp3 ;
31434 PyObject * obj0 = 0 ;
31435 PyObject * obj1 = 0 ;
31436 PyObject * obj2 = 0 ;
31437 char * kwnames[] = {
31438 (char *) "self",(char *) "id",(char *) "rect", NULL
31439 };
31440
31441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31442 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31443 if (!SWIG_IsOK(res1)) {
31444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31445 }
31446 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31447 ecode2 = SWIG_AsVal_int(obj1, &val2);
31448 if (!SWIG_IsOK(ecode2)) {
31449 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'");
31450 }
31451 arg2 = static_cast< int >(val2);
31452 {
31453 arg3 = &temp3;
31454 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
31455 }
31456 {
31457 PyThreadState* __tstate = wxPyBeginAllowThreads();
31458 (arg1)->SetIdBounds(arg2,*arg3);
31459 wxPyEndAllowThreads(__tstate);
31460 if (PyErr_Occurred()) SWIG_fail;
31461 }
31462 resultobj = SWIG_Py_Void();
31463 return resultobj;
31464 fail:
31465 return NULL;
31466 }
31467
31468
31469 SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31470 PyObject *resultobj = 0;
31471 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31472 int arg2 ;
31473 wxRect result;
31474 void *argp1 = 0 ;
31475 int res1 = 0 ;
31476 int val2 ;
31477 int ecode2 = 0 ;
31478 PyObject * obj0 = 0 ;
31479 PyObject * obj1 = 0 ;
31480 char * kwnames[] = {
31481 (char *) "self",(char *) "id", NULL
31482 };
31483
31484 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail;
31485 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31486 if (!SWIG_IsOK(res1)) {
31487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31488 }
31489 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31490 ecode2 = SWIG_AsVal_int(obj1, &val2);
31491 if (!SWIG_IsOK(ecode2)) {
31492 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'");
31493 }
31494 arg2 = static_cast< int >(val2);
31495 {
31496 PyThreadState* __tstate = wxPyBeginAllowThreads();
31497 result = wxPseudoDC_GetIdBounds(arg1,arg2);
31498 wxPyEndAllowThreads(__tstate);
31499 if (PyErr_Occurred()) SWIG_fail;
31500 }
31501 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
31502 return resultobj;
31503 fail:
31504 return NULL;
31505 }
31506
31507
31508 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31509 PyObject *resultobj = 0;
31510 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31511 wxDC *arg2 = (wxDC *) 0 ;
31512 wxRect *arg3 = 0 ;
31513 void *argp1 = 0 ;
31514 int res1 = 0 ;
31515 void *argp2 = 0 ;
31516 int res2 = 0 ;
31517 wxRect temp3 ;
31518 PyObject * obj0 = 0 ;
31519 PyObject * obj1 = 0 ;
31520 PyObject * obj2 = 0 ;
31521 char * kwnames[] = {
31522 (char *) "self",(char *) "dc",(char *) "rect", NULL
31523 };
31524
31525 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31526 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31527 if (!SWIG_IsOK(res1)) {
31528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31529 }
31530 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31531 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
31532 if (!SWIG_IsOK(res2)) {
31533 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'");
31534 }
31535 arg2 = reinterpret_cast< wxDC * >(argp2);
31536 {
31537 arg3 = &temp3;
31538 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
31539 }
31540 {
31541 PyThreadState* __tstate = wxPyBeginAllowThreads();
31542 (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3);
31543 wxPyEndAllowThreads(__tstate);
31544 if (PyErr_Occurred()) SWIG_fail;
31545 }
31546 resultobj = SWIG_Py_Void();
31547 return resultobj;
31548 fail:
31549 return NULL;
31550 }
31551
31552
31553 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31554 PyObject *resultobj = 0;
31555 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31556 wxDC *arg2 = (wxDC *) 0 ;
31557 wxRegion *arg3 = 0 ;
31558 void *argp1 = 0 ;
31559 int res1 = 0 ;
31560 void *argp2 = 0 ;
31561 int res2 = 0 ;
31562 void *argp3 = 0 ;
31563 int res3 = 0 ;
31564 PyObject * obj0 = 0 ;
31565 PyObject * obj1 = 0 ;
31566 PyObject * obj2 = 0 ;
31567 char * kwnames[] = {
31568 (char *) "self",(char *) "dc",(char *) "region", NULL
31569 };
31570
31571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31572 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31573 if (!SWIG_IsOK(res1)) {
31574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31575 }
31576 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31577 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
31578 if (!SWIG_IsOK(res2)) {
31579 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'");
31580 }
31581 arg2 = reinterpret_cast< wxDC * >(argp2);
31582 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0);
31583 if (!SWIG_IsOK(res3)) {
31584 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
31585 }
31586 if (!argp3) {
31587 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
31588 }
31589 arg3 = reinterpret_cast< wxRegion * >(argp3);
31590 {
31591 PyThreadState* __tstate = wxPyBeginAllowThreads();
31592 (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3);
31593 wxPyEndAllowThreads(__tstate);
31594 if (PyErr_Occurred()) SWIG_fail;
31595 }
31596 resultobj = SWIG_Py_Void();
31597 return resultobj;
31598 fail:
31599 return NULL;
31600 }
31601
31602
31603 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31604 PyObject *resultobj = 0;
31605 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31606 wxDC *arg2 = (wxDC *) 0 ;
31607 void *argp1 = 0 ;
31608 int res1 = 0 ;
31609 void *argp2 = 0 ;
31610 int res2 = 0 ;
31611 PyObject * obj0 = 0 ;
31612 PyObject * obj1 = 0 ;
31613 char * kwnames[] = {
31614 (char *) "self",(char *) "dc", NULL
31615 };
31616
31617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail;
31618 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31619 if (!SWIG_IsOK(res1)) {
31620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31621 }
31622 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31623 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
31624 if (!SWIG_IsOK(res2)) {
31625 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'");
31626 }
31627 arg2 = reinterpret_cast< wxDC * >(argp2);
31628 {
31629 PyThreadState* __tstate = wxPyBeginAllowThreads();
31630 (arg1)->DrawToDC(arg2);
31631 wxPyEndAllowThreads(__tstate);
31632 if (PyErr_Occurred()) SWIG_fail;
31633 }
31634 resultobj = SWIG_Py_Void();
31635 return resultobj;
31636 fail:
31637 return NULL;
31638 }
31639
31640
31641 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31642 PyObject *resultobj = 0;
31643 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31644 int arg2 ;
31645 int arg3 ;
31646 wxColour *arg4 = 0 ;
31647 int arg5 = (int) wxFLOOD_SURFACE ;
31648 void *argp1 = 0 ;
31649 int res1 = 0 ;
31650 int val2 ;
31651 int ecode2 = 0 ;
31652 int val3 ;
31653 int ecode3 = 0 ;
31654 wxColour temp4 ;
31655 int val5 ;
31656 int ecode5 = 0 ;
31657 PyObject * obj0 = 0 ;
31658 PyObject * obj1 = 0 ;
31659 PyObject * obj2 = 0 ;
31660 PyObject * obj3 = 0 ;
31661 PyObject * obj4 = 0 ;
31662 char * kwnames[] = {
31663 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
31664 };
31665
31666 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31667 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31668 if (!SWIG_IsOK(res1)) {
31669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31670 }
31671 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31672 ecode2 = SWIG_AsVal_int(obj1, &val2);
31673 if (!SWIG_IsOK(ecode2)) {
31674 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'");
31675 }
31676 arg2 = static_cast< int >(val2);
31677 ecode3 = SWIG_AsVal_int(obj2, &val3);
31678 if (!SWIG_IsOK(ecode3)) {
31679 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'");
31680 }
31681 arg3 = static_cast< int >(val3);
31682 {
31683 arg4 = &temp4;
31684 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
31685 }
31686 if (obj4) {
31687 ecode5 = SWIG_AsVal_int(obj4, &val5);
31688 if (!SWIG_IsOK(ecode5)) {
31689 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'");
31690 }
31691 arg5 = static_cast< int >(val5);
31692 }
31693 {
31694 PyThreadState* __tstate = wxPyBeginAllowThreads();
31695 (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
31696 wxPyEndAllowThreads(__tstate);
31697 if (PyErr_Occurred()) SWIG_fail;
31698 }
31699 resultobj = SWIG_Py_Void();
31700 return resultobj;
31701 fail:
31702 return NULL;
31703 }
31704
31705
31706 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31707 PyObject *resultobj = 0;
31708 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31709 wxPoint *arg2 = 0 ;
31710 wxColour *arg3 = 0 ;
31711 int arg4 = (int) wxFLOOD_SURFACE ;
31712 void *argp1 = 0 ;
31713 int res1 = 0 ;
31714 wxPoint temp2 ;
31715 wxColour temp3 ;
31716 int val4 ;
31717 int ecode4 = 0 ;
31718 PyObject * obj0 = 0 ;
31719 PyObject * obj1 = 0 ;
31720 PyObject * obj2 = 0 ;
31721 PyObject * obj3 = 0 ;
31722 char * kwnames[] = {
31723 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
31724 };
31725
31726 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31727 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31728 if (!SWIG_IsOK(res1)) {
31729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31730 }
31731 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31732 {
31733 arg2 = &temp2;
31734 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31735 }
31736 {
31737 arg3 = &temp3;
31738 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31739 }
31740 if (obj3) {
31741 ecode4 = SWIG_AsVal_int(obj3, &val4);
31742 if (!SWIG_IsOK(ecode4)) {
31743 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
31744 }
31745 arg4 = static_cast< int >(val4);
31746 }
31747 {
31748 PyThreadState* __tstate = wxPyBeginAllowThreads();
31749 (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
31750 wxPyEndAllowThreads(__tstate);
31751 if (PyErr_Occurred()) SWIG_fail;
31752 }
31753 resultobj = SWIG_Py_Void();
31754 return resultobj;
31755 fail:
31756 return NULL;
31757 }
31758
31759
31760 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31761 PyObject *resultobj = 0;
31762 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31763 int arg2 ;
31764 int arg3 ;
31765 int arg4 ;
31766 int arg5 ;
31767 void *argp1 = 0 ;
31768 int res1 = 0 ;
31769 int val2 ;
31770 int ecode2 = 0 ;
31771 int val3 ;
31772 int ecode3 = 0 ;
31773 int val4 ;
31774 int ecode4 = 0 ;
31775 int val5 ;
31776 int ecode5 = 0 ;
31777 PyObject * obj0 = 0 ;
31778 PyObject * obj1 = 0 ;
31779 PyObject * obj2 = 0 ;
31780 PyObject * obj3 = 0 ;
31781 PyObject * obj4 = 0 ;
31782 char * kwnames[] = {
31783 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
31784 };
31785
31786 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31787 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31788 if (!SWIG_IsOK(res1)) {
31789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31790 }
31791 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31792 ecode2 = SWIG_AsVal_int(obj1, &val2);
31793 if (!SWIG_IsOK(ecode2)) {
31794 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'");
31795 }
31796 arg2 = static_cast< int >(val2);
31797 ecode3 = SWIG_AsVal_int(obj2, &val3);
31798 if (!SWIG_IsOK(ecode3)) {
31799 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'");
31800 }
31801 arg3 = static_cast< int >(val3);
31802 ecode4 = SWIG_AsVal_int(obj3, &val4);
31803 if (!SWIG_IsOK(ecode4)) {
31804 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'");
31805 }
31806 arg4 = static_cast< int >(val4);
31807 ecode5 = SWIG_AsVal_int(obj4, &val5);
31808 if (!SWIG_IsOK(ecode5)) {
31809 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'");
31810 }
31811 arg5 = static_cast< int >(val5);
31812 {
31813 PyThreadState* __tstate = wxPyBeginAllowThreads();
31814 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
31815 wxPyEndAllowThreads(__tstate);
31816 if (PyErr_Occurred()) SWIG_fail;
31817 }
31818 resultobj = SWIG_Py_Void();
31819 return resultobj;
31820 fail:
31821 return NULL;
31822 }
31823
31824
31825 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31826 PyObject *resultobj = 0;
31827 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31828 wxPoint *arg2 = 0 ;
31829 wxPoint *arg3 = 0 ;
31830 void *argp1 = 0 ;
31831 int res1 = 0 ;
31832 wxPoint temp2 ;
31833 wxPoint temp3 ;
31834 PyObject * obj0 = 0 ;
31835 PyObject * obj1 = 0 ;
31836 PyObject * obj2 = 0 ;
31837 char * kwnames[] = {
31838 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
31839 };
31840
31841 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31842 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31843 if (!SWIG_IsOK(res1)) {
31844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31845 }
31846 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31847 {
31848 arg2 = &temp2;
31849 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31850 }
31851 {
31852 arg3 = &temp3;
31853 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31854 }
31855 {
31856 PyThreadState* __tstate = wxPyBeginAllowThreads();
31857 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
31858 wxPyEndAllowThreads(__tstate);
31859 if (PyErr_Occurred()) SWIG_fail;
31860 }
31861 resultobj = SWIG_Py_Void();
31862 return resultobj;
31863 fail:
31864 return NULL;
31865 }
31866
31867
31868 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31869 PyObject *resultobj = 0;
31870 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31871 int arg2 ;
31872 int arg3 ;
31873 void *argp1 = 0 ;
31874 int res1 = 0 ;
31875 int val2 ;
31876 int ecode2 = 0 ;
31877 int val3 ;
31878 int ecode3 = 0 ;
31879 PyObject * obj0 = 0 ;
31880 PyObject * obj1 = 0 ;
31881 PyObject * obj2 = 0 ;
31882 char * kwnames[] = {
31883 (char *) "self",(char *) "x",(char *) "y", NULL
31884 };
31885
31886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31887 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31888 if (!SWIG_IsOK(res1)) {
31889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31890 }
31891 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31892 ecode2 = SWIG_AsVal_int(obj1, &val2);
31893 if (!SWIG_IsOK(ecode2)) {
31894 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'");
31895 }
31896 arg2 = static_cast< int >(val2);
31897 ecode3 = SWIG_AsVal_int(obj2, &val3);
31898 if (!SWIG_IsOK(ecode3)) {
31899 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'");
31900 }
31901 arg3 = static_cast< int >(val3);
31902 {
31903 PyThreadState* __tstate = wxPyBeginAllowThreads();
31904 (arg1)->CrossHair(arg2,arg3);
31905 wxPyEndAllowThreads(__tstate);
31906 if (PyErr_Occurred()) SWIG_fail;
31907 }
31908 resultobj = SWIG_Py_Void();
31909 return resultobj;
31910 fail:
31911 return NULL;
31912 }
31913
31914
31915 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31916 PyObject *resultobj = 0;
31917 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31918 wxPoint *arg2 = 0 ;
31919 void *argp1 = 0 ;
31920 int res1 = 0 ;
31921 wxPoint temp2 ;
31922 PyObject * obj0 = 0 ;
31923 PyObject * obj1 = 0 ;
31924 char * kwnames[] = {
31925 (char *) "self",(char *) "pt", NULL
31926 };
31927
31928 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
31929 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31930 if (!SWIG_IsOK(res1)) {
31931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31932 }
31933 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31934 {
31935 arg2 = &temp2;
31936 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31937 }
31938 {
31939 PyThreadState* __tstate = wxPyBeginAllowThreads();
31940 (arg1)->CrossHair((wxPoint const &)*arg2);
31941 wxPyEndAllowThreads(__tstate);
31942 if (PyErr_Occurred()) SWIG_fail;
31943 }
31944 resultobj = SWIG_Py_Void();
31945 return resultobj;
31946 fail:
31947 return NULL;
31948 }
31949
31950
31951 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31952 PyObject *resultobj = 0;
31953 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31954 int arg2 ;
31955 int arg3 ;
31956 int arg4 ;
31957 int arg5 ;
31958 int arg6 ;
31959 int arg7 ;
31960 void *argp1 = 0 ;
31961 int res1 = 0 ;
31962 int val2 ;
31963 int ecode2 = 0 ;
31964 int val3 ;
31965 int ecode3 = 0 ;
31966 int val4 ;
31967 int ecode4 = 0 ;
31968 int val5 ;
31969 int ecode5 = 0 ;
31970 int val6 ;
31971 int ecode6 = 0 ;
31972 int val7 ;
31973 int ecode7 = 0 ;
31974 PyObject * obj0 = 0 ;
31975 PyObject * obj1 = 0 ;
31976 PyObject * obj2 = 0 ;
31977 PyObject * obj3 = 0 ;
31978 PyObject * obj4 = 0 ;
31979 PyObject * obj5 = 0 ;
31980 PyObject * obj6 = 0 ;
31981 char * kwnames[] = {
31982 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
31983 };
31984
31985 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31986 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31987 if (!SWIG_IsOK(res1)) {
31988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31989 }
31990 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31991 ecode2 = SWIG_AsVal_int(obj1, &val2);
31992 if (!SWIG_IsOK(ecode2)) {
31993 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'");
31994 }
31995 arg2 = static_cast< int >(val2);
31996 ecode3 = SWIG_AsVal_int(obj2, &val3);
31997 if (!SWIG_IsOK(ecode3)) {
31998 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'");
31999 }
32000 arg3 = static_cast< int >(val3);
32001 ecode4 = SWIG_AsVal_int(obj3, &val4);
32002 if (!SWIG_IsOK(ecode4)) {
32003 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'");
32004 }
32005 arg4 = static_cast< int >(val4);
32006 ecode5 = SWIG_AsVal_int(obj4, &val5);
32007 if (!SWIG_IsOK(ecode5)) {
32008 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'");
32009 }
32010 arg5 = static_cast< int >(val5);
32011 ecode6 = SWIG_AsVal_int(obj5, &val6);
32012 if (!SWIG_IsOK(ecode6)) {
32013 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'");
32014 }
32015 arg6 = static_cast< int >(val6);
32016 ecode7 = SWIG_AsVal_int(obj6, &val7);
32017 if (!SWIG_IsOK(ecode7)) {
32018 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'");
32019 }
32020 arg7 = static_cast< int >(val7);
32021 {
32022 PyThreadState* __tstate = wxPyBeginAllowThreads();
32023 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
32024 wxPyEndAllowThreads(__tstate);
32025 if (PyErr_Occurred()) SWIG_fail;
32026 }
32027 resultobj = SWIG_Py_Void();
32028 return resultobj;
32029 fail:
32030 return NULL;
32031 }
32032
32033
32034 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32035 PyObject *resultobj = 0;
32036 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32037 wxPoint *arg2 = 0 ;
32038 wxPoint *arg3 = 0 ;
32039 wxPoint *arg4 = 0 ;
32040 void *argp1 = 0 ;
32041 int res1 = 0 ;
32042 wxPoint temp2 ;
32043 wxPoint temp3 ;
32044 wxPoint temp4 ;
32045 PyObject * obj0 = 0 ;
32046 PyObject * obj1 = 0 ;
32047 PyObject * obj2 = 0 ;
32048 PyObject * obj3 = 0 ;
32049 char * kwnames[] = {
32050 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
32051 };
32052
32053 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32054 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32055 if (!SWIG_IsOK(res1)) {
32056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32057 }
32058 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32059 {
32060 arg2 = &temp2;
32061 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32062 }
32063 {
32064 arg3 = &temp3;
32065 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
32066 }
32067 {
32068 arg4 = &temp4;
32069 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
32070 }
32071 {
32072 PyThreadState* __tstate = wxPyBeginAllowThreads();
32073 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
32074 wxPyEndAllowThreads(__tstate);
32075 if (PyErr_Occurred()) SWIG_fail;
32076 }
32077 resultobj = SWIG_Py_Void();
32078 return resultobj;
32079 fail:
32080 return NULL;
32081 }
32082
32083
32084 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32085 PyObject *resultobj = 0;
32086 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32087 int arg2 ;
32088 int arg3 ;
32089 int arg4 ;
32090 int arg5 ;
32091 void *argp1 = 0 ;
32092 int res1 = 0 ;
32093 int val2 ;
32094 int ecode2 = 0 ;
32095 int val3 ;
32096 int ecode3 = 0 ;
32097 int val4 ;
32098 int ecode4 = 0 ;
32099 int val5 ;
32100 int ecode5 = 0 ;
32101 PyObject * obj0 = 0 ;
32102 PyObject * obj1 = 0 ;
32103 PyObject * obj2 = 0 ;
32104 PyObject * obj3 = 0 ;
32105 PyObject * obj4 = 0 ;
32106 char * kwnames[] = {
32107 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
32108 };
32109
32110 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32111 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32112 if (!SWIG_IsOK(res1)) {
32113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32114 }
32115 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32116 ecode2 = SWIG_AsVal_int(obj1, &val2);
32117 if (!SWIG_IsOK(ecode2)) {
32118 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
32119 }
32120 arg2 = static_cast< int >(val2);
32121 ecode3 = SWIG_AsVal_int(obj2, &val3);
32122 if (!SWIG_IsOK(ecode3)) {
32123 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
32124 }
32125 arg3 = static_cast< int >(val3);
32126 ecode4 = SWIG_AsVal_int(obj3, &val4);
32127 if (!SWIG_IsOK(ecode4)) {
32128 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
32129 }
32130 arg4 = static_cast< int >(val4);
32131 ecode5 = SWIG_AsVal_int(obj4, &val5);
32132 if (!SWIG_IsOK(ecode5)) {
32133 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
32134 }
32135 arg5 = static_cast< int >(val5);
32136 {
32137 PyThreadState* __tstate = wxPyBeginAllowThreads();
32138 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
32139 wxPyEndAllowThreads(__tstate);
32140 if (PyErr_Occurred()) SWIG_fail;
32141 }
32142 resultobj = SWIG_Py_Void();
32143 return resultobj;
32144 fail:
32145 return NULL;
32146 }
32147
32148
32149 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32150 PyObject *resultobj = 0;
32151 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32152 wxRect *arg2 = 0 ;
32153 void *argp1 = 0 ;
32154 int res1 = 0 ;
32155 wxRect temp2 ;
32156 PyObject * obj0 = 0 ;
32157 PyObject * obj1 = 0 ;
32158 char * kwnames[] = {
32159 (char *) "self",(char *) "rect", NULL
32160 };
32161
32162 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
32163 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32164 if (!SWIG_IsOK(res1)) {
32165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32166 }
32167 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32168 {
32169 arg2 = &temp2;
32170 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
32171 }
32172 {
32173 PyThreadState* __tstate = wxPyBeginAllowThreads();
32174 (arg1)->DrawCheckMark((wxRect const &)*arg2);
32175 wxPyEndAllowThreads(__tstate);
32176 if (PyErr_Occurred()) SWIG_fail;
32177 }
32178 resultobj = SWIG_Py_Void();
32179 return resultobj;
32180 fail:
32181 return NULL;
32182 }
32183
32184
32185 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32186 PyObject *resultobj = 0;
32187 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32188 int arg2 ;
32189 int arg3 ;
32190 int arg4 ;
32191 int arg5 ;
32192 double arg6 ;
32193 double arg7 ;
32194 void *argp1 = 0 ;
32195 int res1 = 0 ;
32196 int val2 ;
32197 int ecode2 = 0 ;
32198 int val3 ;
32199 int ecode3 = 0 ;
32200 int val4 ;
32201 int ecode4 = 0 ;
32202 int val5 ;
32203 int ecode5 = 0 ;
32204 double val6 ;
32205 int ecode6 = 0 ;
32206 double val7 ;
32207 int ecode7 = 0 ;
32208 PyObject * obj0 = 0 ;
32209 PyObject * obj1 = 0 ;
32210 PyObject * obj2 = 0 ;
32211 PyObject * obj3 = 0 ;
32212 PyObject * obj4 = 0 ;
32213 PyObject * obj5 = 0 ;
32214 PyObject * obj6 = 0 ;
32215 char * kwnames[] = {
32216 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
32217 };
32218
32219 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
32220 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32221 if (!SWIG_IsOK(res1)) {
32222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32223 }
32224 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32225 ecode2 = SWIG_AsVal_int(obj1, &val2);
32226 if (!SWIG_IsOK(ecode2)) {
32227 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
32228 }
32229 arg2 = static_cast< int >(val2);
32230 ecode3 = SWIG_AsVal_int(obj2, &val3);
32231 if (!SWIG_IsOK(ecode3)) {
32232 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
32233 }
32234 arg3 = static_cast< int >(val3);
32235 ecode4 = SWIG_AsVal_int(obj3, &val4);
32236 if (!SWIG_IsOK(ecode4)) {
32237 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
32238 }
32239 arg4 = static_cast< int >(val4);
32240 ecode5 = SWIG_AsVal_int(obj4, &val5);
32241 if (!SWIG_IsOK(ecode5)) {
32242 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
32243 }
32244 arg5 = static_cast< int >(val5);
32245 ecode6 = SWIG_AsVal_double(obj5, &val6);
32246 if (!SWIG_IsOK(ecode6)) {
32247 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
32248 }
32249 arg6 = static_cast< double >(val6);
32250 ecode7 = SWIG_AsVal_double(obj6, &val7);
32251 if (!SWIG_IsOK(ecode7)) {
32252 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
32253 }
32254 arg7 = static_cast< double >(val7);
32255 {
32256 PyThreadState* __tstate = wxPyBeginAllowThreads();
32257 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
32258 wxPyEndAllowThreads(__tstate);
32259 if (PyErr_Occurred()) SWIG_fail;
32260 }
32261 resultobj = SWIG_Py_Void();
32262 return resultobj;
32263 fail:
32264 return NULL;
32265 }
32266
32267
32268 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32269 PyObject *resultobj = 0;
32270 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32271 wxPoint *arg2 = 0 ;
32272 wxSize *arg3 = 0 ;
32273 double arg4 ;
32274 double arg5 ;
32275 void *argp1 = 0 ;
32276 int res1 = 0 ;
32277 wxPoint temp2 ;
32278 wxSize temp3 ;
32279 double val4 ;
32280 int ecode4 = 0 ;
32281 double val5 ;
32282 int ecode5 = 0 ;
32283 PyObject * obj0 = 0 ;
32284 PyObject * obj1 = 0 ;
32285 PyObject * obj2 = 0 ;
32286 PyObject * obj3 = 0 ;
32287 PyObject * obj4 = 0 ;
32288 char * kwnames[] = {
32289 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
32290 };
32291
32292 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32293 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32294 if (!SWIG_IsOK(res1)) {
32295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32296 }
32297 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32298 {
32299 arg2 = &temp2;
32300 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32301 }
32302 {
32303 arg3 = &temp3;
32304 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
32305 }
32306 ecode4 = SWIG_AsVal_double(obj3, &val4);
32307 if (!SWIG_IsOK(ecode4)) {
32308 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
32309 }
32310 arg4 = static_cast< double >(val4);
32311 ecode5 = SWIG_AsVal_double(obj4, &val5);
32312 if (!SWIG_IsOK(ecode5)) {
32313 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
32314 }
32315 arg5 = static_cast< double >(val5);
32316 {
32317 PyThreadState* __tstate = wxPyBeginAllowThreads();
32318 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
32319 wxPyEndAllowThreads(__tstate);
32320 if (PyErr_Occurred()) SWIG_fail;
32321 }
32322 resultobj = SWIG_Py_Void();
32323 return resultobj;
32324 fail:
32325 return NULL;
32326 }
32327
32328
32329 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32330 PyObject *resultobj = 0;
32331 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32332 int arg2 ;
32333 int arg3 ;
32334 void *argp1 = 0 ;
32335 int res1 = 0 ;
32336 int val2 ;
32337 int ecode2 = 0 ;
32338 int val3 ;
32339 int ecode3 = 0 ;
32340 PyObject * obj0 = 0 ;
32341 PyObject * obj1 = 0 ;
32342 PyObject * obj2 = 0 ;
32343 char * kwnames[] = {
32344 (char *) "self",(char *) "x",(char *) "y", NULL
32345 };
32346
32347 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32348 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32349 if (!SWIG_IsOK(res1)) {
32350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32351 }
32352 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32353 ecode2 = SWIG_AsVal_int(obj1, &val2);
32354 if (!SWIG_IsOK(ecode2)) {
32355 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
32356 }
32357 arg2 = static_cast< int >(val2);
32358 ecode3 = SWIG_AsVal_int(obj2, &val3);
32359 if (!SWIG_IsOK(ecode3)) {
32360 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
32361 }
32362 arg3 = static_cast< int >(val3);
32363 {
32364 PyThreadState* __tstate = wxPyBeginAllowThreads();
32365 (arg1)->DrawPoint(arg2,arg3);
32366 wxPyEndAllowThreads(__tstate);
32367 if (PyErr_Occurred()) SWIG_fail;
32368 }
32369 resultobj = SWIG_Py_Void();
32370 return resultobj;
32371 fail:
32372 return NULL;
32373 }
32374
32375
32376 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32377 PyObject *resultobj = 0;
32378 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32379 wxPoint *arg2 = 0 ;
32380 void *argp1 = 0 ;
32381 int res1 = 0 ;
32382 wxPoint temp2 ;
32383 PyObject * obj0 = 0 ;
32384 PyObject * obj1 = 0 ;
32385 char * kwnames[] = {
32386 (char *) "self",(char *) "pt", NULL
32387 };
32388
32389 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
32390 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32391 if (!SWIG_IsOK(res1)) {
32392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32393 }
32394 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32395 {
32396 arg2 = &temp2;
32397 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32398 }
32399 {
32400 PyThreadState* __tstate = wxPyBeginAllowThreads();
32401 (arg1)->DrawPoint((wxPoint const &)*arg2);
32402 wxPyEndAllowThreads(__tstate);
32403 if (PyErr_Occurred()) SWIG_fail;
32404 }
32405 resultobj = SWIG_Py_Void();
32406 return resultobj;
32407 fail:
32408 return NULL;
32409 }
32410
32411
32412 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32413 PyObject *resultobj = 0;
32414 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32415 int arg2 ;
32416 int arg3 ;
32417 int arg4 ;
32418 int arg5 ;
32419 void *argp1 = 0 ;
32420 int res1 = 0 ;
32421 int val2 ;
32422 int ecode2 = 0 ;
32423 int val3 ;
32424 int ecode3 = 0 ;
32425 int val4 ;
32426 int ecode4 = 0 ;
32427 int val5 ;
32428 int ecode5 = 0 ;
32429 PyObject * obj0 = 0 ;
32430 PyObject * obj1 = 0 ;
32431 PyObject * obj2 = 0 ;
32432 PyObject * obj3 = 0 ;
32433 PyObject * obj4 = 0 ;
32434 char * kwnames[] = {
32435 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
32436 };
32437
32438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32439 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32440 if (!SWIG_IsOK(res1)) {
32441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32442 }
32443 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32444 ecode2 = SWIG_AsVal_int(obj1, &val2);
32445 if (!SWIG_IsOK(ecode2)) {
32446 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
32447 }
32448 arg2 = static_cast< int >(val2);
32449 ecode3 = SWIG_AsVal_int(obj2, &val3);
32450 if (!SWIG_IsOK(ecode3)) {
32451 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
32452 }
32453 arg3 = static_cast< int >(val3);
32454 ecode4 = SWIG_AsVal_int(obj3, &val4);
32455 if (!SWIG_IsOK(ecode4)) {
32456 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
32457 }
32458 arg4 = static_cast< int >(val4);
32459 ecode5 = SWIG_AsVal_int(obj4, &val5);
32460 if (!SWIG_IsOK(ecode5)) {
32461 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
32462 }
32463 arg5 = static_cast< int >(val5);
32464 {
32465 PyThreadState* __tstate = wxPyBeginAllowThreads();
32466 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
32467 wxPyEndAllowThreads(__tstate);
32468 if (PyErr_Occurred()) SWIG_fail;
32469 }
32470 resultobj = SWIG_Py_Void();
32471 return resultobj;
32472 fail:
32473 return NULL;
32474 }
32475
32476
32477 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32478 PyObject *resultobj = 0;
32479 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32480 wxRect *arg2 = 0 ;
32481 void *argp1 = 0 ;
32482 int res1 = 0 ;
32483 wxRect temp2 ;
32484 PyObject * obj0 = 0 ;
32485 PyObject * obj1 = 0 ;
32486 char * kwnames[] = {
32487 (char *) "self",(char *) "rect", NULL
32488 };
32489
32490 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
32491 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32492 if (!SWIG_IsOK(res1)) {
32493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32494 }
32495 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32496 {
32497 arg2 = &temp2;
32498 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
32499 }
32500 {
32501 PyThreadState* __tstate = wxPyBeginAllowThreads();
32502 (arg1)->DrawRectangle((wxRect const &)*arg2);
32503 wxPyEndAllowThreads(__tstate);
32504 if (PyErr_Occurred()) SWIG_fail;
32505 }
32506 resultobj = SWIG_Py_Void();
32507 return resultobj;
32508 fail:
32509 return NULL;
32510 }
32511
32512
32513 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32514 PyObject *resultobj = 0;
32515 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32516 wxPoint *arg2 = 0 ;
32517 wxSize *arg3 = 0 ;
32518 void *argp1 = 0 ;
32519 int res1 = 0 ;
32520 wxPoint temp2 ;
32521 wxSize temp3 ;
32522 PyObject * obj0 = 0 ;
32523 PyObject * obj1 = 0 ;
32524 PyObject * obj2 = 0 ;
32525 char * kwnames[] = {
32526 (char *) "self",(char *) "pt",(char *) "sz", NULL
32527 };
32528
32529 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32530 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32531 if (!SWIG_IsOK(res1)) {
32532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32533 }
32534 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32535 {
32536 arg2 = &temp2;
32537 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32538 }
32539 {
32540 arg3 = &temp3;
32541 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
32542 }
32543 {
32544 PyThreadState* __tstate = wxPyBeginAllowThreads();
32545 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
32546 wxPyEndAllowThreads(__tstate);
32547 if (PyErr_Occurred()) SWIG_fail;
32548 }
32549 resultobj = SWIG_Py_Void();
32550 return resultobj;
32551 fail:
32552 return NULL;
32553 }
32554
32555
32556 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32557 PyObject *resultobj = 0;
32558 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32559 int arg2 ;
32560 int arg3 ;
32561 int arg4 ;
32562 int arg5 ;
32563 double arg6 ;
32564 void *argp1 = 0 ;
32565 int res1 = 0 ;
32566 int val2 ;
32567 int ecode2 = 0 ;
32568 int val3 ;
32569 int ecode3 = 0 ;
32570 int val4 ;
32571 int ecode4 = 0 ;
32572 int val5 ;
32573 int ecode5 = 0 ;
32574 double val6 ;
32575 int ecode6 = 0 ;
32576 PyObject * obj0 = 0 ;
32577 PyObject * obj1 = 0 ;
32578 PyObject * obj2 = 0 ;
32579 PyObject * obj3 = 0 ;
32580 PyObject * obj4 = 0 ;
32581 PyObject * obj5 = 0 ;
32582 char * kwnames[] = {
32583 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
32584 };
32585
32586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
32587 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32588 if (!SWIG_IsOK(res1)) {
32589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32590 }
32591 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32592 ecode2 = SWIG_AsVal_int(obj1, &val2);
32593 if (!SWIG_IsOK(ecode2)) {
32594 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
32595 }
32596 arg2 = static_cast< int >(val2);
32597 ecode3 = SWIG_AsVal_int(obj2, &val3);
32598 if (!SWIG_IsOK(ecode3)) {
32599 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
32600 }
32601 arg3 = static_cast< int >(val3);
32602 ecode4 = SWIG_AsVal_int(obj3, &val4);
32603 if (!SWIG_IsOK(ecode4)) {
32604 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
32605 }
32606 arg4 = static_cast< int >(val4);
32607 ecode5 = SWIG_AsVal_int(obj4, &val5);
32608 if (!SWIG_IsOK(ecode5)) {
32609 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
32610 }
32611 arg5 = static_cast< int >(val5);
32612 ecode6 = SWIG_AsVal_double(obj5, &val6);
32613 if (!SWIG_IsOK(ecode6)) {
32614 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
32615 }
32616 arg6 = static_cast< double >(val6);
32617 {
32618 PyThreadState* __tstate = wxPyBeginAllowThreads();
32619 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
32620 wxPyEndAllowThreads(__tstate);
32621 if (PyErr_Occurred()) SWIG_fail;
32622 }
32623 resultobj = SWIG_Py_Void();
32624 return resultobj;
32625 fail:
32626 return NULL;
32627 }
32628
32629
32630 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32631 PyObject *resultobj = 0;
32632 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32633 wxRect *arg2 = 0 ;
32634 double arg3 ;
32635 void *argp1 = 0 ;
32636 int res1 = 0 ;
32637 wxRect temp2 ;
32638 double val3 ;
32639 int ecode3 = 0 ;
32640 PyObject * obj0 = 0 ;
32641 PyObject * obj1 = 0 ;
32642 PyObject * obj2 = 0 ;
32643 char * kwnames[] = {
32644 (char *) "self",(char *) "r",(char *) "radius", NULL
32645 };
32646
32647 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32648 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32649 if (!SWIG_IsOK(res1)) {
32650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32651 }
32652 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32653 {
32654 arg2 = &temp2;
32655 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
32656 }
32657 ecode3 = SWIG_AsVal_double(obj2, &val3);
32658 if (!SWIG_IsOK(ecode3)) {
32659 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
32660 }
32661 arg3 = static_cast< double >(val3);
32662 {
32663 PyThreadState* __tstate = wxPyBeginAllowThreads();
32664 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
32665 wxPyEndAllowThreads(__tstate);
32666 if (PyErr_Occurred()) SWIG_fail;
32667 }
32668 resultobj = SWIG_Py_Void();
32669 return resultobj;
32670 fail:
32671 return NULL;
32672 }
32673
32674
32675 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32676 PyObject *resultobj = 0;
32677 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32678 wxPoint *arg2 = 0 ;
32679 wxSize *arg3 = 0 ;
32680 double arg4 ;
32681 void *argp1 = 0 ;
32682 int res1 = 0 ;
32683 wxPoint temp2 ;
32684 wxSize temp3 ;
32685 double val4 ;
32686 int ecode4 = 0 ;
32687 PyObject * obj0 = 0 ;
32688 PyObject * obj1 = 0 ;
32689 PyObject * obj2 = 0 ;
32690 PyObject * obj3 = 0 ;
32691 char * kwnames[] = {
32692 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
32693 };
32694
32695 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32696 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32697 if (!SWIG_IsOK(res1)) {
32698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32699 }
32700 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32701 {
32702 arg2 = &temp2;
32703 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32704 }
32705 {
32706 arg3 = &temp3;
32707 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
32708 }
32709 ecode4 = SWIG_AsVal_double(obj3, &val4);
32710 if (!SWIG_IsOK(ecode4)) {
32711 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
32712 }
32713 arg4 = static_cast< double >(val4);
32714 {
32715 PyThreadState* __tstate = wxPyBeginAllowThreads();
32716 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
32717 wxPyEndAllowThreads(__tstate);
32718 if (PyErr_Occurred()) SWIG_fail;
32719 }
32720 resultobj = SWIG_Py_Void();
32721 return resultobj;
32722 fail:
32723 return NULL;
32724 }
32725
32726
32727 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32728 PyObject *resultobj = 0;
32729 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32730 int arg2 ;
32731 int arg3 ;
32732 int arg4 ;
32733 void *argp1 = 0 ;
32734 int res1 = 0 ;
32735 int val2 ;
32736 int ecode2 = 0 ;
32737 int val3 ;
32738 int ecode3 = 0 ;
32739 int val4 ;
32740 int ecode4 = 0 ;
32741 PyObject * obj0 = 0 ;
32742 PyObject * obj1 = 0 ;
32743 PyObject * obj2 = 0 ;
32744 PyObject * obj3 = 0 ;
32745 char * kwnames[] = {
32746 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
32747 };
32748
32749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32750 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32751 if (!SWIG_IsOK(res1)) {
32752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32753 }
32754 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32755 ecode2 = SWIG_AsVal_int(obj1, &val2);
32756 if (!SWIG_IsOK(ecode2)) {
32757 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
32758 }
32759 arg2 = static_cast< int >(val2);
32760 ecode3 = SWIG_AsVal_int(obj2, &val3);
32761 if (!SWIG_IsOK(ecode3)) {
32762 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
32763 }
32764 arg3 = static_cast< int >(val3);
32765 ecode4 = SWIG_AsVal_int(obj3, &val4);
32766 if (!SWIG_IsOK(ecode4)) {
32767 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
32768 }
32769 arg4 = static_cast< int >(val4);
32770 {
32771 PyThreadState* __tstate = wxPyBeginAllowThreads();
32772 (arg1)->DrawCircle(arg2,arg3,arg4);
32773 wxPyEndAllowThreads(__tstate);
32774 if (PyErr_Occurred()) SWIG_fail;
32775 }
32776 resultobj = SWIG_Py_Void();
32777 return resultobj;
32778 fail:
32779 return NULL;
32780 }
32781
32782
32783 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32784 PyObject *resultobj = 0;
32785 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32786 wxPoint *arg2 = 0 ;
32787 int arg3 ;
32788 void *argp1 = 0 ;
32789 int res1 = 0 ;
32790 wxPoint temp2 ;
32791 int val3 ;
32792 int ecode3 = 0 ;
32793 PyObject * obj0 = 0 ;
32794 PyObject * obj1 = 0 ;
32795 PyObject * obj2 = 0 ;
32796 char * kwnames[] = {
32797 (char *) "self",(char *) "pt",(char *) "radius", NULL
32798 };
32799
32800 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32801 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32802 if (!SWIG_IsOK(res1)) {
32803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32804 }
32805 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32806 {
32807 arg2 = &temp2;
32808 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32809 }
32810 ecode3 = SWIG_AsVal_int(obj2, &val3);
32811 if (!SWIG_IsOK(ecode3)) {
32812 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
32813 }
32814 arg3 = static_cast< int >(val3);
32815 {
32816 PyThreadState* __tstate = wxPyBeginAllowThreads();
32817 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
32818 wxPyEndAllowThreads(__tstate);
32819 if (PyErr_Occurred()) SWIG_fail;
32820 }
32821 resultobj = SWIG_Py_Void();
32822 return resultobj;
32823 fail:
32824 return NULL;
32825 }
32826
32827
32828 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32829 PyObject *resultobj = 0;
32830 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32831 int arg2 ;
32832 int arg3 ;
32833 int arg4 ;
32834 int arg5 ;
32835 void *argp1 = 0 ;
32836 int res1 = 0 ;
32837 int val2 ;
32838 int ecode2 = 0 ;
32839 int val3 ;
32840 int ecode3 = 0 ;
32841 int val4 ;
32842 int ecode4 = 0 ;
32843 int val5 ;
32844 int ecode5 = 0 ;
32845 PyObject * obj0 = 0 ;
32846 PyObject * obj1 = 0 ;
32847 PyObject * obj2 = 0 ;
32848 PyObject * obj3 = 0 ;
32849 PyObject * obj4 = 0 ;
32850 char * kwnames[] = {
32851 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
32852 };
32853
32854 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32855 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32856 if (!SWIG_IsOK(res1)) {
32857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32858 }
32859 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32860 ecode2 = SWIG_AsVal_int(obj1, &val2);
32861 if (!SWIG_IsOK(ecode2)) {
32862 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
32863 }
32864 arg2 = static_cast< int >(val2);
32865 ecode3 = SWIG_AsVal_int(obj2, &val3);
32866 if (!SWIG_IsOK(ecode3)) {
32867 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
32868 }
32869 arg3 = static_cast< int >(val3);
32870 ecode4 = SWIG_AsVal_int(obj3, &val4);
32871 if (!SWIG_IsOK(ecode4)) {
32872 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
32873 }
32874 arg4 = static_cast< int >(val4);
32875 ecode5 = SWIG_AsVal_int(obj4, &val5);
32876 if (!SWIG_IsOK(ecode5)) {
32877 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
32878 }
32879 arg5 = static_cast< int >(val5);
32880 {
32881 PyThreadState* __tstate = wxPyBeginAllowThreads();
32882 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
32883 wxPyEndAllowThreads(__tstate);
32884 if (PyErr_Occurred()) SWIG_fail;
32885 }
32886 resultobj = SWIG_Py_Void();
32887 return resultobj;
32888 fail:
32889 return NULL;
32890 }
32891
32892
32893 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32894 PyObject *resultobj = 0;
32895 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32896 wxRect *arg2 = 0 ;
32897 void *argp1 = 0 ;
32898 int res1 = 0 ;
32899 wxRect temp2 ;
32900 PyObject * obj0 = 0 ;
32901 PyObject * obj1 = 0 ;
32902 char * kwnames[] = {
32903 (char *) "self",(char *) "rect", NULL
32904 };
32905
32906 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
32907 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32908 if (!SWIG_IsOK(res1)) {
32909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32910 }
32911 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32912 {
32913 arg2 = &temp2;
32914 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
32915 }
32916 {
32917 PyThreadState* __tstate = wxPyBeginAllowThreads();
32918 (arg1)->DrawEllipse((wxRect const &)*arg2);
32919 wxPyEndAllowThreads(__tstate);
32920 if (PyErr_Occurred()) SWIG_fail;
32921 }
32922 resultobj = SWIG_Py_Void();
32923 return resultobj;
32924 fail:
32925 return NULL;
32926 }
32927
32928
32929 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32930 PyObject *resultobj = 0;
32931 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32932 wxPoint *arg2 = 0 ;
32933 wxSize *arg3 = 0 ;
32934 void *argp1 = 0 ;
32935 int res1 = 0 ;
32936 wxPoint temp2 ;
32937 wxSize temp3 ;
32938 PyObject * obj0 = 0 ;
32939 PyObject * obj1 = 0 ;
32940 PyObject * obj2 = 0 ;
32941 char * kwnames[] = {
32942 (char *) "self",(char *) "pt",(char *) "sz", NULL
32943 };
32944
32945 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32946 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32947 if (!SWIG_IsOK(res1)) {
32948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32949 }
32950 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32951 {
32952 arg2 = &temp2;
32953 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32954 }
32955 {
32956 arg3 = &temp3;
32957 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
32958 }
32959 {
32960 PyThreadState* __tstate = wxPyBeginAllowThreads();
32961 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
32962 wxPyEndAllowThreads(__tstate);
32963 if (PyErr_Occurred()) SWIG_fail;
32964 }
32965 resultobj = SWIG_Py_Void();
32966 return resultobj;
32967 fail:
32968 return NULL;
32969 }
32970
32971
32972 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32973 PyObject *resultobj = 0;
32974 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32975 wxIcon *arg2 = 0 ;
32976 int arg3 ;
32977 int arg4 ;
32978 void *argp1 = 0 ;
32979 int res1 = 0 ;
32980 void *argp2 = 0 ;
32981 int res2 = 0 ;
32982 int val3 ;
32983 int ecode3 = 0 ;
32984 int val4 ;
32985 int ecode4 = 0 ;
32986 PyObject * obj0 = 0 ;
32987 PyObject * obj1 = 0 ;
32988 PyObject * obj2 = 0 ;
32989 PyObject * obj3 = 0 ;
32990 char * kwnames[] = {
32991 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
32992 };
32993
32994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32995 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32996 if (!SWIG_IsOK(res1)) {
32997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32998 }
32999 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33000 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
33001 if (!SWIG_IsOK(res2)) {
33002 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
33003 }
33004 if (!argp2) {
33005 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
33006 }
33007 arg2 = reinterpret_cast< wxIcon * >(argp2);
33008 ecode3 = SWIG_AsVal_int(obj2, &val3);
33009 if (!SWIG_IsOK(ecode3)) {
33010 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
33011 }
33012 arg3 = static_cast< int >(val3);
33013 ecode4 = SWIG_AsVal_int(obj3, &val4);
33014 if (!SWIG_IsOK(ecode4)) {
33015 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
33016 }
33017 arg4 = static_cast< int >(val4);
33018 {
33019 PyThreadState* __tstate = wxPyBeginAllowThreads();
33020 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
33021 wxPyEndAllowThreads(__tstate);
33022 if (PyErr_Occurred()) SWIG_fail;
33023 }
33024 resultobj = SWIG_Py_Void();
33025 return resultobj;
33026 fail:
33027 return NULL;
33028 }
33029
33030
33031 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33032 PyObject *resultobj = 0;
33033 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33034 wxIcon *arg2 = 0 ;
33035 wxPoint *arg3 = 0 ;
33036 void *argp1 = 0 ;
33037 int res1 = 0 ;
33038 void *argp2 = 0 ;
33039 int res2 = 0 ;
33040 wxPoint temp3 ;
33041 PyObject * obj0 = 0 ;
33042 PyObject * obj1 = 0 ;
33043 PyObject * obj2 = 0 ;
33044 char * kwnames[] = {
33045 (char *) "self",(char *) "icon",(char *) "pt", NULL
33046 };
33047
33048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33050 if (!SWIG_IsOK(res1)) {
33051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33052 }
33053 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33054 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
33055 if (!SWIG_IsOK(res2)) {
33056 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
33057 }
33058 if (!argp2) {
33059 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
33060 }
33061 arg2 = reinterpret_cast< wxIcon * >(argp2);
33062 {
33063 arg3 = &temp3;
33064 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33065 }
33066 {
33067 PyThreadState* __tstate = wxPyBeginAllowThreads();
33068 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
33069 wxPyEndAllowThreads(__tstate);
33070 if (PyErr_Occurred()) SWIG_fail;
33071 }
33072 resultobj = SWIG_Py_Void();
33073 return resultobj;
33074 fail:
33075 return NULL;
33076 }
33077
33078
33079 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33080 PyObject *resultobj = 0;
33081 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33082 wxBitmap *arg2 = 0 ;
33083 int arg3 ;
33084 int arg4 ;
33085 bool arg5 = (bool) false ;
33086 void *argp1 = 0 ;
33087 int res1 = 0 ;
33088 void *argp2 = 0 ;
33089 int res2 = 0 ;
33090 int val3 ;
33091 int ecode3 = 0 ;
33092 int val4 ;
33093 int ecode4 = 0 ;
33094 bool val5 ;
33095 int ecode5 = 0 ;
33096 PyObject * obj0 = 0 ;
33097 PyObject * obj1 = 0 ;
33098 PyObject * obj2 = 0 ;
33099 PyObject * obj3 = 0 ;
33100 PyObject * obj4 = 0 ;
33101 char * kwnames[] = {
33102 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
33103 };
33104
33105 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33106 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33107 if (!SWIG_IsOK(res1)) {
33108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33109 }
33110 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33111 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
33112 if (!SWIG_IsOK(res2)) {
33113 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
33114 }
33115 if (!argp2) {
33116 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
33117 }
33118 arg2 = reinterpret_cast< wxBitmap * >(argp2);
33119 ecode3 = SWIG_AsVal_int(obj2, &val3);
33120 if (!SWIG_IsOK(ecode3)) {
33121 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
33122 }
33123 arg3 = static_cast< int >(val3);
33124 ecode4 = SWIG_AsVal_int(obj3, &val4);
33125 if (!SWIG_IsOK(ecode4)) {
33126 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
33127 }
33128 arg4 = static_cast< int >(val4);
33129 if (obj4) {
33130 ecode5 = SWIG_AsVal_bool(obj4, &val5);
33131 if (!SWIG_IsOK(ecode5)) {
33132 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
33133 }
33134 arg5 = static_cast< bool >(val5);
33135 }
33136 {
33137 PyThreadState* __tstate = wxPyBeginAllowThreads();
33138 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
33139 wxPyEndAllowThreads(__tstate);
33140 if (PyErr_Occurred()) SWIG_fail;
33141 }
33142 resultobj = SWIG_Py_Void();
33143 return resultobj;
33144 fail:
33145 return NULL;
33146 }
33147
33148
33149 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33150 PyObject *resultobj = 0;
33151 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33152 wxBitmap *arg2 = 0 ;
33153 wxPoint *arg3 = 0 ;
33154 bool arg4 = (bool) false ;
33155 void *argp1 = 0 ;
33156 int res1 = 0 ;
33157 void *argp2 = 0 ;
33158 int res2 = 0 ;
33159 wxPoint temp3 ;
33160 bool val4 ;
33161 int ecode4 = 0 ;
33162 PyObject * obj0 = 0 ;
33163 PyObject * obj1 = 0 ;
33164 PyObject * obj2 = 0 ;
33165 PyObject * obj3 = 0 ;
33166 char * kwnames[] = {
33167 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
33168 };
33169
33170 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33171 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33172 if (!SWIG_IsOK(res1)) {
33173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33174 }
33175 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33176 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
33177 if (!SWIG_IsOK(res2)) {
33178 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
33179 }
33180 if (!argp2) {
33181 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
33182 }
33183 arg2 = reinterpret_cast< wxBitmap * >(argp2);
33184 {
33185 arg3 = &temp3;
33186 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33187 }
33188 if (obj3) {
33189 ecode4 = SWIG_AsVal_bool(obj3, &val4);
33190 if (!SWIG_IsOK(ecode4)) {
33191 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
33192 }
33193 arg4 = static_cast< bool >(val4);
33194 }
33195 {
33196 PyThreadState* __tstate = wxPyBeginAllowThreads();
33197 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
33198 wxPyEndAllowThreads(__tstate);
33199 if (PyErr_Occurred()) SWIG_fail;
33200 }
33201 resultobj = SWIG_Py_Void();
33202 return resultobj;
33203 fail:
33204 return NULL;
33205 }
33206
33207
33208 SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33209 PyObject *resultobj = 0;
33210 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33211 wxString *arg2 = 0 ;
33212 int arg3 ;
33213 int arg4 ;
33214 void *argp1 = 0 ;
33215 int res1 = 0 ;
33216 bool temp2 = false ;
33217 int val3 ;
33218 int ecode3 = 0 ;
33219 int val4 ;
33220 int ecode4 = 0 ;
33221 PyObject * obj0 = 0 ;
33222 PyObject * obj1 = 0 ;
33223 PyObject * obj2 = 0 ;
33224 PyObject * obj3 = 0 ;
33225 char * kwnames[] = {
33226 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
33227 };
33228
33229 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33230 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33231 if (!SWIG_IsOK(res1)) {
33232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33233 }
33234 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33235 {
33236 arg2 = wxString_in_helper(obj1);
33237 if (arg2 == NULL) SWIG_fail;
33238 temp2 = true;
33239 }
33240 ecode3 = SWIG_AsVal_int(obj2, &val3);
33241 if (!SWIG_IsOK(ecode3)) {
33242 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'");
33243 }
33244 arg3 = static_cast< int >(val3);
33245 ecode4 = SWIG_AsVal_int(obj3, &val4);
33246 if (!SWIG_IsOK(ecode4)) {
33247 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'");
33248 }
33249 arg4 = static_cast< int >(val4);
33250 {
33251 PyThreadState* __tstate = wxPyBeginAllowThreads();
33252 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
33253 wxPyEndAllowThreads(__tstate);
33254 if (PyErr_Occurred()) SWIG_fail;
33255 }
33256 resultobj = SWIG_Py_Void();
33257 {
33258 if (temp2)
33259 delete arg2;
33260 }
33261 return resultobj;
33262 fail:
33263 {
33264 if (temp2)
33265 delete arg2;
33266 }
33267 return NULL;
33268 }
33269
33270
33271 SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33272 PyObject *resultobj = 0;
33273 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33274 wxString *arg2 = 0 ;
33275 wxPoint *arg3 = 0 ;
33276 void *argp1 = 0 ;
33277 int res1 = 0 ;
33278 bool temp2 = false ;
33279 wxPoint temp3 ;
33280 PyObject * obj0 = 0 ;
33281 PyObject * obj1 = 0 ;
33282 PyObject * obj2 = 0 ;
33283 char * kwnames[] = {
33284 (char *) "self",(char *) "text",(char *) "pt", NULL
33285 };
33286
33287 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33288 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33289 if (!SWIG_IsOK(res1)) {
33290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33291 }
33292 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33293 {
33294 arg2 = wxString_in_helper(obj1);
33295 if (arg2 == NULL) SWIG_fail;
33296 temp2 = true;
33297 }
33298 {
33299 arg3 = &temp3;
33300 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33301 }
33302 {
33303 PyThreadState* __tstate = wxPyBeginAllowThreads();
33304 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
33305 wxPyEndAllowThreads(__tstate);
33306 if (PyErr_Occurred()) SWIG_fail;
33307 }
33308 resultobj = SWIG_Py_Void();
33309 {
33310 if (temp2)
33311 delete arg2;
33312 }
33313 return resultobj;
33314 fail:
33315 {
33316 if (temp2)
33317 delete arg2;
33318 }
33319 return NULL;
33320 }
33321
33322
33323 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33324 PyObject *resultobj = 0;
33325 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33326 wxString *arg2 = 0 ;
33327 int arg3 ;
33328 int arg4 ;
33329 double arg5 ;
33330 void *argp1 = 0 ;
33331 int res1 = 0 ;
33332 bool temp2 = false ;
33333 int val3 ;
33334 int ecode3 = 0 ;
33335 int val4 ;
33336 int ecode4 = 0 ;
33337 double val5 ;
33338 int ecode5 = 0 ;
33339 PyObject * obj0 = 0 ;
33340 PyObject * obj1 = 0 ;
33341 PyObject * obj2 = 0 ;
33342 PyObject * obj3 = 0 ;
33343 PyObject * obj4 = 0 ;
33344 char * kwnames[] = {
33345 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
33346 };
33347
33348 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33349 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33350 if (!SWIG_IsOK(res1)) {
33351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33352 }
33353 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33354 {
33355 arg2 = wxString_in_helper(obj1);
33356 if (arg2 == NULL) SWIG_fail;
33357 temp2 = true;
33358 }
33359 ecode3 = SWIG_AsVal_int(obj2, &val3);
33360 if (!SWIG_IsOK(ecode3)) {
33361 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
33362 }
33363 arg3 = static_cast< int >(val3);
33364 ecode4 = SWIG_AsVal_int(obj3, &val4);
33365 if (!SWIG_IsOK(ecode4)) {
33366 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
33367 }
33368 arg4 = static_cast< int >(val4);
33369 ecode5 = SWIG_AsVal_double(obj4, &val5);
33370 if (!SWIG_IsOK(ecode5)) {
33371 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
33372 }
33373 arg5 = static_cast< double >(val5);
33374 {
33375 PyThreadState* __tstate = wxPyBeginAllowThreads();
33376 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
33377 wxPyEndAllowThreads(__tstate);
33378 if (PyErr_Occurred()) SWIG_fail;
33379 }
33380 resultobj = SWIG_Py_Void();
33381 {
33382 if (temp2)
33383 delete arg2;
33384 }
33385 return resultobj;
33386 fail:
33387 {
33388 if (temp2)
33389 delete arg2;
33390 }
33391 return NULL;
33392 }
33393
33394
33395 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33396 PyObject *resultobj = 0;
33397 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33398 wxString *arg2 = 0 ;
33399 wxPoint *arg3 = 0 ;
33400 double arg4 ;
33401 void *argp1 = 0 ;
33402 int res1 = 0 ;
33403 bool temp2 = false ;
33404 wxPoint temp3 ;
33405 double val4 ;
33406 int ecode4 = 0 ;
33407 PyObject * obj0 = 0 ;
33408 PyObject * obj1 = 0 ;
33409 PyObject * obj2 = 0 ;
33410 PyObject * obj3 = 0 ;
33411 char * kwnames[] = {
33412 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
33413 };
33414
33415 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33416 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33417 if (!SWIG_IsOK(res1)) {
33418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33419 }
33420 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33421 {
33422 arg2 = wxString_in_helper(obj1);
33423 if (arg2 == NULL) SWIG_fail;
33424 temp2 = true;
33425 }
33426 {
33427 arg3 = &temp3;
33428 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33429 }
33430 ecode4 = SWIG_AsVal_double(obj3, &val4);
33431 if (!SWIG_IsOK(ecode4)) {
33432 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
33433 }
33434 arg4 = static_cast< double >(val4);
33435 {
33436 PyThreadState* __tstate = wxPyBeginAllowThreads();
33437 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
33438 wxPyEndAllowThreads(__tstate);
33439 if (PyErr_Occurred()) SWIG_fail;
33440 }
33441 resultobj = SWIG_Py_Void();
33442 {
33443 if (temp2)
33444 delete arg2;
33445 }
33446 return resultobj;
33447 fail:
33448 {
33449 if (temp2)
33450 delete arg2;
33451 }
33452 return NULL;
33453 }
33454
33455
33456 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33457 PyObject *resultobj = 0;
33458 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33459 int arg2 ;
33460 wxPoint *arg3 = (wxPoint *) 0 ;
33461 int arg4 = (int) 0 ;
33462 int arg5 = (int) 0 ;
33463 void *argp1 = 0 ;
33464 int res1 = 0 ;
33465 int val4 ;
33466 int ecode4 = 0 ;
33467 int val5 ;
33468 int ecode5 = 0 ;
33469 PyObject * obj0 = 0 ;
33470 PyObject * obj1 = 0 ;
33471 PyObject * obj2 = 0 ;
33472 PyObject * obj3 = 0 ;
33473 char * kwnames[] = {
33474 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
33475 };
33476
33477 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33478 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33479 if (!SWIG_IsOK(res1)) {
33480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33481 }
33482 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33483 {
33484 arg3 = wxPoint_LIST_helper(obj1, &arg2);
33485 if (arg3 == NULL) SWIG_fail;
33486 }
33487 if (obj2) {
33488 ecode4 = SWIG_AsVal_int(obj2, &val4);
33489 if (!SWIG_IsOK(ecode4)) {
33490 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'");
33491 }
33492 arg4 = static_cast< int >(val4);
33493 }
33494 if (obj3) {
33495 ecode5 = SWIG_AsVal_int(obj3, &val5);
33496 if (!SWIG_IsOK(ecode5)) {
33497 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'");
33498 }
33499 arg5 = static_cast< int >(val5);
33500 }
33501 {
33502 PyThreadState* __tstate = wxPyBeginAllowThreads();
33503 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
33504 wxPyEndAllowThreads(__tstate);
33505 if (PyErr_Occurred()) SWIG_fail;
33506 }
33507 resultobj = SWIG_Py_Void();
33508 {
33509 if (arg3) delete [] arg3;
33510 }
33511 return resultobj;
33512 fail:
33513 {
33514 if (arg3) delete [] arg3;
33515 }
33516 return NULL;
33517 }
33518
33519
33520 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33521 PyObject *resultobj = 0;
33522 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33523 int arg2 ;
33524 wxPoint *arg3 = (wxPoint *) 0 ;
33525 int arg4 = (int) 0 ;
33526 int arg5 = (int) 0 ;
33527 int arg6 = (int) wxODDEVEN_RULE ;
33528 void *argp1 = 0 ;
33529 int res1 = 0 ;
33530 int val4 ;
33531 int ecode4 = 0 ;
33532 int val5 ;
33533 int ecode5 = 0 ;
33534 int val6 ;
33535 int ecode6 = 0 ;
33536 PyObject * obj0 = 0 ;
33537 PyObject * obj1 = 0 ;
33538 PyObject * obj2 = 0 ;
33539 PyObject * obj3 = 0 ;
33540 PyObject * obj4 = 0 ;
33541 char * kwnames[] = {
33542 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
33543 };
33544
33545 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33546 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33547 if (!SWIG_IsOK(res1)) {
33548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33549 }
33550 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33551 {
33552 arg3 = wxPoint_LIST_helper(obj1, &arg2);
33553 if (arg3 == NULL) SWIG_fail;
33554 }
33555 if (obj2) {
33556 ecode4 = SWIG_AsVal_int(obj2, &val4);
33557 if (!SWIG_IsOK(ecode4)) {
33558 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
33559 }
33560 arg4 = static_cast< int >(val4);
33561 }
33562 if (obj3) {
33563 ecode5 = SWIG_AsVal_int(obj3, &val5);
33564 if (!SWIG_IsOK(ecode5)) {
33565 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
33566 }
33567 arg5 = static_cast< int >(val5);
33568 }
33569 if (obj4) {
33570 ecode6 = SWIG_AsVal_int(obj4, &val6);
33571 if (!SWIG_IsOK(ecode6)) {
33572 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
33573 }
33574 arg6 = static_cast< int >(val6);
33575 }
33576 {
33577 PyThreadState* __tstate = wxPyBeginAllowThreads();
33578 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
33579 wxPyEndAllowThreads(__tstate);
33580 if (PyErr_Occurred()) SWIG_fail;
33581 }
33582 resultobj = SWIG_Py_Void();
33583 {
33584 if (arg3) delete [] arg3;
33585 }
33586 return resultobj;
33587 fail:
33588 {
33589 if (arg3) delete [] arg3;
33590 }
33591 return NULL;
33592 }
33593
33594
33595 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33596 PyObject *resultobj = 0;
33597 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33598 wxString *arg2 = 0 ;
33599 wxRect *arg3 = 0 ;
33600 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
33601 int arg5 = (int) -1 ;
33602 void *argp1 = 0 ;
33603 int res1 = 0 ;
33604 bool temp2 = false ;
33605 wxRect temp3 ;
33606 int val4 ;
33607 int ecode4 = 0 ;
33608 int val5 ;
33609 int ecode5 = 0 ;
33610 PyObject * obj0 = 0 ;
33611 PyObject * obj1 = 0 ;
33612 PyObject * obj2 = 0 ;
33613 PyObject * obj3 = 0 ;
33614 PyObject * obj4 = 0 ;
33615 char * kwnames[] = {
33616 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
33617 };
33618
33619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33621 if (!SWIG_IsOK(res1)) {
33622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33623 }
33624 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33625 {
33626 arg2 = wxString_in_helper(obj1);
33627 if (arg2 == NULL) SWIG_fail;
33628 temp2 = true;
33629 }
33630 {
33631 arg3 = &temp3;
33632 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
33633 }
33634 if (obj3) {
33635 ecode4 = SWIG_AsVal_int(obj3, &val4);
33636 if (!SWIG_IsOK(ecode4)) {
33637 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
33638 }
33639 arg4 = static_cast< int >(val4);
33640 }
33641 if (obj4) {
33642 ecode5 = SWIG_AsVal_int(obj4, &val5);
33643 if (!SWIG_IsOK(ecode5)) {
33644 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
33645 }
33646 arg5 = static_cast< int >(val5);
33647 }
33648 {
33649 PyThreadState* __tstate = wxPyBeginAllowThreads();
33650 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
33651 wxPyEndAllowThreads(__tstate);
33652 if (PyErr_Occurred()) SWIG_fail;
33653 }
33654 resultobj = SWIG_Py_Void();
33655 {
33656 if (temp2)
33657 delete arg2;
33658 }
33659 return resultobj;
33660 fail:
33661 {
33662 if (temp2)
33663 delete arg2;
33664 }
33665 return NULL;
33666 }
33667
33668
33669 SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33670 PyObject *resultobj = 0;
33671 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33672 wxString *arg2 = 0 ;
33673 wxBitmap *arg3 = 0 ;
33674 wxRect *arg4 = 0 ;
33675 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
33676 int arg6 = (int) -1 ;
33677 void *argp1 = 0 ;
33678 int res1 = 0 ;
33679 bool temp2 = false ;
33680 void *argp3 = 0 ;
33681 int res3 = 0 ;
33682 wxRect temp4 ;
33683 int val5 ;
33684 int ecode5 = 0 ;
33685 int val6 ;
33686 int ecode6 = 0 ;
33687 PyObject * obj0 = 0 ;
33688 PyObject * obj1 = 0 ;
33689 PyObject * obj2 = 0 ;
33690 PyObject * obj3 = 0 ;
33691 PyObject * obj4 = 0 ;
33692 PyObject * obj5 = 0 ;
33693 char * kwnames[] = {
33694 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
33695 };
33696
33697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
33698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33699 if (!SWIG_IsOK(res1)) {
33700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33701 }
33702 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33703 {
33704 arg2 = wxString_in_helper(obj1);
33705 if (arg2 == NULL) SWIG_fail;
33706 temp2 = true;
33707 }
33708 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
33709 if (!SWIG_IsOK(res3)) {
33710 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
33711 }
33712 if (!argp3) {
33713 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
33714 }
33715 arg3 = reinterpret_cast< wxBitmap * >(argp3);
33716 {
33717 arg4 = &temp4;
33718 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
33719 }
33720 if (obj4) {
33721 ecode5 = SWIG_AsVal_int(obj4, &val5);
33722 if (!SWIG_IsOK(ecode5)) {
33723 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
33724 }
33725 arg5 = static_cast< int >(val5);
33726 }
33727 if (obj5) {
33728 ecode6 = SWIG_AsVal_int(obj5, &val6);
33729 if (!SWIG_IsOK(ecode6)) {
33730 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
33731 }
33732 arg6 = static_cast< int >(val6);
33733 }
33734 {
33735 PyThreadState* __tstate = wxPyBeginAllowThreads();
33736 (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
33737 wxPyEndAllowThreads(__tstate);
33738 if (PyErr_Occurred()) SWIG_fail;
33739 }
33740 resultobj = SWIG_Py_Void();
33741 {
33742 if (temp2)
33743 delete arg2;
33744 }
33745 return resultobj;
33746 fail:
33747 {
33748 if (temp2)
33749 delete arg2;
33750 }
33751 return NULL;
33752 }
33753
33754
33755 SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33756 PyObject *resultobj = 0;
33757 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33758 int arg2 ;
33759 wxPoint *arg3 = (wxPoint *) 0 ;
33760 void *argp1 = 0 ;
33761 int res1 = 0 ;
33762 PyObject * obj0 = 0 ;
33763 PyObject * obj1 = 0 ;
33764 char * kwnames[] = {
33765 (char *) "self",(char *) "points", NULL
33766 };
33767
33768 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
33769 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33770 if (!SWIG_IsOK(res1)) {
33771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33772 }
33773 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33774 {
33775 arg3 = wxPoint_LIST_helper(obj1, &arg2);
33776 if (arg3 == NULL) SWIG_fail;
33777 }
33778 {
33779 PyThreadState* __tstate = wxPyBeginAllowThreads();
33780 (arg1)->DrawSpline(arg2,arg3);
33781 wxPyEndAllowThreads(__tstate);
33782 if (PyErr_Occurred()) SWIG_fail;
33783 }
33784 resultobj = SWIG_Py_Void();
33785 {
33786 if (arg3) delete [] arg3;
33787 }
33788 return resultobj;
33789 fail:
33790 {
33791 if (arg3) delete [] arg3;
33792 }
33793 return NULL;
33794 }
33795
33796
33797 SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33798 PyObject *resultobj = 0;
33799 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33800 void *argp1 = 0 ;
33801 int res1 = 0 ;
33802 PyObject *swig_obj[1] ;
33803
33804 if (!args) SWIG_fail;
33805 swig_obj[0] = args;
33806 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33807 if (!SWIG_IsOK(res1)) {
33808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33809 }
33810 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33811 {
33812 PyThreadState* __tstate = wxPyBeginAllowThreads();
33813 (arg1)->Clear();
33814 wxPyEndAllowThreads(__tstate);
33815 if (PyErr_Occurred()) SWIG_fail;
33816 }
33817 resultobj = SWIG_Py_Void();
33818 return resultobj;
33819 fail:
33820 return NULL;
33821 }
33822
33823
33824 SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33825 PyObject *resultobj = 0;
33826 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33827 wxFont *arg2 = 0 ;
33828 void *argp1 = 0 ;
33829 int res1 = 0 ;
33830 void *argp2 = 0 ;
33831 int res2 = 0 ;
33832 PyObject * obj0 = 0 ;
33833 PyObject * obj1 = 0 ;
33834 char * kwnames[] = {
33835 (char *) "self",(char *) "font", NULL
33836 };
33837
33838 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
33839 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33840 if (!SWIG_IsOK(res1)) {
33841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33842 }
33843 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33844 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
33845 if (!SWIG_IsOK(res2)) {
33846 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
33847 }
33848 if (!argp2) {
33849 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
33850 }
33851 arg2 = reinterpret_cast< wxFont * >(argp2);
33852 {
33853 PyThreadState* __tstate = wxPyBeginAllowThreads();
33854 (arg1)->SetFont((wxFont const &)*arg2);
33855 wxPyEndAllowThreads(__tstate);
33856 if (PyErr_Occurred()) SWIG_fail;
33857 }
33858 resultobj = SWIG_Py_Void();
33859 return resultobj;
33860 fail:
33861 return NULL;
33862 }
33863
33864
33865 SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33866 PyObject *resultobj = 0;
33867 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33868 wxPen *arg2 = 0 ;
33869 void *argp1 = 0 ;
33870 int res1 = 0 ;
33871 void *argp2 = 0 ;
33872 int res2 = 0 ;
33873 PyObject * obj0 = 0 ;
33874 PyObject * obj1 = 0 ;
33875 char * kwnames[] = {
33876 (char *) "self",(char *) "pen", NULL
33877 };
33878
33879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
33880 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33881 if (!SWIG_IsOK(res1)) {
33882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33883 }
33884 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33885 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
33886 if (!SWIG_IsOK(res2)) {
33887 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
33888 }
33889 if (!argp2) {
33890 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
33891 }
33892 arg2 = reinterpret_cast< wxPen * >(argp2);
33893 {
33894 PyThreadState* __tstate = wxPyBeginAllowThreads();
33895 (arg1)->SetPen((wxPen const &)*arg2);
33896 wxPyEndAllowThreads(__tstate);
33897 if (PyErr_Occurred()) SWIG_fail;
33898 }
33899 resultobj = SWIG_Py_Void();
33900 return resultobj;
33901 fail:
33902 return NULL;
33903 }
33904
33905
33906 SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33907 PyObject *resultobj = 0;
33908 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33909 wxBrush *arg2 = 0 ;
33910 void *argp1 = 0 ;
33911 int res1 = 0 ;
33912 void *argp2 = 0 ;
33913 int res2 = 0 ;
33914 PyObject * obj0 = 0 ;
33915 PyObject * obj1 = 0 ;
33916 char * kwnames[] = {
33917 (char *) "self",(char *) "brush", NULL
33918 };
33919
33920 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
33921 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33922 if (!SWIG_IsOK(res1)) {
33923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33924 }
33925 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33926 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
33927 if (!SWIG_IsOK(res2)) {
33928 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
33929 }
33930 if (!argp2) {
33931 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
33932 }
33933 arg2 = reinterpret_cast< wxBrush * >(argp2);
33934 {
33935 PyThreadState* __tstate = wxPyBeginAllowThreads();
33936 (arg1)->SetBrush((wxBrush const &)*arg2);
33937 wxPyEndAllowThreads(__tstate);
33938 if (PyErr_Occurred()) SWIG_fail;
33939 }
33940 resultobj = SWIG_Py_Void();
33941 return resultobj;
33942 fail:
33943 return NULL;
33944 }
33945
33946
33947 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33948 PyObject *resultobj = 0;
33949 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33950 wxBrush *arg2 = 0 ;
33951 void *argp1 = 0 ;
33952 int res1 = 0 ;
33953 void *argp2 = 0 ;
33954 int res2 = 0 ;
33955 PyObject * obj0 = 0 ;
33956 PyObject * obj1 = 0 ;
33957 char * kwnames[] = {
33958 (char *) "self",(char *) "brush", NULL
33959 };
33960
33961 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
33962 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33963 if (!SWIG_IsOK(res1)) {
33964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33965 }
33966 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33967 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
33968 if (!SWIG_IsOK(res2)) {
33969 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
33970 }
33971 if (!argp2) {
33972 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
33973 }
33974 arg2 = reinterpret_cast< wxBrush * >(argp2);
33975 {
33976 PyThreadState* __tstate = wxPyBeginAllowThreads();
33977 (arg1)->SetBackground((wxBrush const &)*arg2);
33978 wxPyEndAllowThreads(__tstate);
33979 if (PyErr_Occurred()) SWIG_fail;
33980 }
33981 resultobj = SWIG_Py_Void();
33982 return resultobj;
33983 fail:
33984 return NULL;
33985 }
33986
33987
33988 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33989 PyObject *resultobj = 0;
33990 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33991 int arg2 ;
33992 void *argp1 = 0 ;
33993 int res1 = 0 ;
33994 int val2 ;
33995 int ecode2 = 0 ;
33996 PyObject * obj0 = 0 ;
33997 PyObject * obj1 = 0 ;
33998 char * kwnames[] = {
33999 (char *) "self",(char *) "mode", NULL
34000 };
34001
34002 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
34003 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34004 if (!SWIG_IsOK(res1)) {
34005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34006 }
34007 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34008 ecode2 = SWIG_AsVal_int(obj1, &val2);
34009 if (!SWIG_IsOK(ecode2)) {
34010 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
34011 }
34012 arg2 = static_cast< int >(val2);
34013 {
34014 PyThreadState* __tstate = wxPyBeginAllowThreads();
34015 (arg1)->SetBackgroundMode(arg2);
34016 wxPyEndAllowThreads(__tstate);
34017 if (PyErr_Occurred()) SWIG_fail;
34018 }
34019 resultobj = SWIG_Py_Void();
34020 return resultobj;
34021 fail:
34022 return NULL;
34023 }
34024
34025
34026 SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34027 PyObject *resultobj = 0;
34028 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34029 wxPalette *arg2 = 0 ;
34030 void *argp1 = 0 ;
34031 int res1 = 0 ;
34032 void *argp2 = 0 ;
34033 int res2 = 0 ;
34034 PyObject * obj0 = 0 ;
34035 PyObject * obj1 = 0 ;
34036 char * kwnames[] = {
34037 (char *) "self",(char *) "palette", NULL
34038 };
34039
34040 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
34041 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34042 if (!SWIG_IsOK(res1)) {
34043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34044 }
34045 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34046 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
34047 if (!SWIG_IsOK(res2)) {
34048 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
34049 }
34050 if (!argp2) {
34051 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
34052 }
34053 arg2 = reinterpret_cast< wxPalette * >(argp2);
34054 {
34055 PyThreadState* __tstate = wxPyBeginAllowThreads();
34056 (arg1)->SetPalette((wxPalette const &)*arg2);
34057 wxPyEndAllowThreads(__tstate);
34058 if (PyErr_Occurred()) SWIG_fail;
34059 }
34060 resultobj = SWIG_Py_Void();
34061 return resultobj;
34062 fail:
34063 return NULL;
34064 }
34065
34066
34067 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34068 PyObject *resultobj = 0;
34069 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34070 wxColour *arg2 = 0 ;
34071 void *argp1 = 0 ;
34072 int res1 = 0 ;
34073 wxColour temp2 ;
34074 PyObject * obj0 = 0 ;
34075 PyObject * obj1 = 0 ;
34076 char * kwnames[] = {
34077 (char *) "self",(char *) "colour", NULL
34078 };
34079
34080 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
34081 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34082 if (!SWIG_IsOK(res1)) {
34083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34084 }
34085 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34086 {
34087 arg2 = &temp2;
34088 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
34089 }
34090 {
34091 PyThreadState* __tstate = wxPyBeginAllowThreads();
34092 (arg1)->SetTextForeground((wxColour const &)*arg2);
34093 wxPyEndAllowThreads(__tstate);
34094 if (PyErr_Occurred()) SWIG_fail;
34095 }
34096 resultobj = SWIG_Py_Void();
34097 return resultobj;
34098 fail:
34099 return NULL;
34100 }
34101
34102
34103 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34104 PyObject *resultobj = 0;
34105 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34106 wxColour *arg2 = 0 ;
34107 void *argp1 = 0 ;
34108 int res1 = 0 ;
34109 wxColour temp2 ;
34110 PyObject * obj0 = 0 ;
34111 PyObject * obj1 = 0 ;
34112 char * kwnames[] = {
34113 (char *) "self",(char *) "colour", NULL
34114 };
34115
34116 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
34117 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34118 if (!SWIG_IsOK(res1)) {
34119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34120 }
34121 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34122 {
34123 arg2 = &temp2;
34124 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
34125 }
34126 {
34127 PyThreadState* __tstate = wxPyBeginAllowThreads();
34128 (arg1)->SetTextBackground((wxColour const &)*arg2);
34129 wxPyEndAllowThreads(__tstate);
34130 if (PyErr_Occurred()) SWIG_fail;
34131 }
34132 resultobj = SWIG_Py_Void();
34133 return resultobj;
34134 fail:
34135 return NULL;
34136 }
34137
34138
34139 SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34140 PyObject *resultobj = 0;
34141 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34142 int arg2 ;
34143 void *argp1 = 0 ;
34144 int res1 = 0 ;
34145 int val2 ;
34146 int ecode2 = 0 ;
34147 PyObject * obj0 = 0 ;
34148 PyObject * obj1 = 0 ;
34149 char * kwnames[] = {
34150 (char *) "self",(char *) "function", NULL
34151 };
34152
34153 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
34154 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34155 if (!SWIG_IsOK(res1)) {
34156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34157 }
34158 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34159 ecode2 = SWIG_AsVal_int(obj1, &val2);
34160 if (!SWIG_IsOK(ecode2)) {
34161 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
34162 }
34163 arg2 = static_cast< int >(val2);
34164 {
34165 PyThreadState* __tstate = wxPyBeginAllowThreads();
34166 (arg1)->SetLogicalFunction(arg2);
34167 wxPyEndAllowThreads(__tstate);
34168 if (PyErr_Occurred()) SWIG_fail;
34169 }
34170 resultobj = SWIG_Py_Void();
34171 return resultobj;
34172 fail:
34173 return NULL;
34174 }
34175
34176
34177 SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34178 PyObject *obj;
34179 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34180 SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj));
34181 return SWIG_Py_Void();
34182 }
34183
34184 SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34185 return SWIG_Python_InitShadowInstance(args);
34186 }
34187
34188 static PyMethodDef SwigMethods[] = {
34189 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
34190 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
34191 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
34192 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
34193 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
34194 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
34195 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
34196 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
34197 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
34198 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
34199 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
34200 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
34201 { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL},
34202 { (char *)"Colour_IsOk", (PyCFunction)_wrap_Colour_IsOk, METH_O, NULL},
34203 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
34204 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
34205 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
34206 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
34207 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
34208 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
34209 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
34210 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
34211 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
34212 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
34213 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
34214 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
34215 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
34216 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
34217 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
34218 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
34219 { (char *)"Palette_IsOk", (PyCFunction)_wrap_Palette_IsOk, METH_O, NULL},
34220 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
34221 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
34222 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
34223 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
34224 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
34225 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
34226 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
34227 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
34228 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
34229 { (char *)"Pen_IsOk", (PyCFunction)_wrap_Pen_IsOk, METH_O, NULL},
34230 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
34231 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
34232 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
34233 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
34234 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
34235 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
34236 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
34237 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
34238 { (char *)"Pen_GetDashCount", (PyCFunction)_wrap_Pen_GetDashCount, METH_O, NULL},
34239 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
34240 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
34241 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
34242 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
34243 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
34244 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34245 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
34246 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
34247 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
34248 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
34249 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
34250 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
34251 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
34252 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
34253 { (char *)"Brush_IsOk", (PyCFunction)_wrap_Brush_IsOk, METH_O, NULL},
34254 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
34255 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
34256 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34257 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
34258 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34259 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34260 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
34261 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
34262 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
34263 { (char *)"Bitmap_IsOk", (PyCFunction)_wrap_Bitmap_IsOk, METH_O, NULL},
34264 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
34265 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
34266 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
34267 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
34268 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
34269 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
34270 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
34271 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
34272 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34273 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
34274 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
34275 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
34276 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34277 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
34278 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
34279 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
34280 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
34281 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
34282 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
34283 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
34284 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
34285 { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
34286 { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
34287 { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
34288 { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL},
34289 { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL},
34290 { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL},
34291 { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL},
34292 { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL},
34293 { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL},
34294 { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL},
34295 { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL},
34296 { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL},
34297 { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL},
34298 { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL},
34299 { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL},
34300 { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL},
34301 { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL},
34302 { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL},
34303 { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
34304 { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL},
34305 { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL},
34306 { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
34307 { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
34308 { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
34309 { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
34310 { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
34311 { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL},
34312 { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL},
34313 { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL},
34314 { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL},
34315 { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL},
34316 { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL},
34317 { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL},
34318 { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL},
34319 { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL},
34320 { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL},
34321 { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL},
34322 { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL},
34323 { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
34324 { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL},
34325 { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL},
34326 { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
34327 { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
34328 { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
34329 { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
34330 { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
34331 { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL},
34332 { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL},
34333 { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL},
34334 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
34335 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
34336 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
34337 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
34338 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
34339 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
34340 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
34341 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
34342 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34343 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
34344 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
34345 { (char *)"Icon_IsOk", (PyCFunction)_wrap_Icon_IsOk, METH_O, NULL},
34346 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
34347 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
34348 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
34349 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
34350 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
34351 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
34352 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34353 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
34354 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
34355 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
34356 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
34357 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
34358 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
34359 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
34360 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
34361 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
34362 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
34363 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
34364 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
34365 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
34366 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34367 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
34368 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34369 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
34370 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34371 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
34372 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
34373 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
34374 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
34375 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
34376 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
34377 { (char *)"Cursor_IsOk", (PyCFunction)_wrap_Cursor_IsOk, METH_O, NULL},
34378 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
34379 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
34380 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
34381 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34382 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
34383 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
34384 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
34385 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
34386 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
34387 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
34388 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34389 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
34390 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
34391 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
34392 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
34393 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
34394 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
34395 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
34396 { (char *)"Region_IsEqual", (PyCFunction) _wrap_Region_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
34397 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
34398 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
34399 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
34400 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
34401 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
34402 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
34403 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
34404 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
34405 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
34406 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
34407 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34408 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
34409 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
34410 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
34411 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
34412 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
34413 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
34414 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
34415 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
34416 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
34417 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
34418 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
34419 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
34420 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
34421 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
34422 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
34423 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
34424 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
34425 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
34426 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
34427 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
34428 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
34429 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
34430 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
34431 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
34432 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
34433 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
34434 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
34435 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
34436 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
34437 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34438 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
34439 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
34440 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
34441 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
34442 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
34443 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34444 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
34445 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
34446 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
34447 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
34448 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
34449 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
34450 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
34451 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
34452 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
34453 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
34454 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
34455 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
34456 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
34457 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
34458 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
34459 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
34460 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
34461 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34462 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34463 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
34464 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
34465 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
34466 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
34467 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34468 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
34469 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34470 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
34471 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
34472 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
34473 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
34474 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
34475 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34476 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
34477 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
34478 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
34479 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
34480 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
34481 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
34482 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
34483 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
34484 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
34485 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
34486 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
34487 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
34488 { (char *)"Font_IsOk", (PyCFunction)_wrap_Font_IsOk, METH_O, NULL},
34489 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
34490 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
34491 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
34492 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
34493 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
34494 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
34495 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
34496 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
34497 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
34498 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
34499 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
34500 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
34501 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
34502 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
34503 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
34504 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34505 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
34506 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
34507 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
34508 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
34509 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
34510 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
34511 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34512 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
34513 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
34514 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
34515 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
34516 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
34517 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
34518 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
34519 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
34520 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
34521 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34522 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
34523 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
34524 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
34525 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
34526 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
34527 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
34528 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
34529 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
34530 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
34531 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
34532 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
34533 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
34534 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
34535 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
34536 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
34537 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
34538 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
34539 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
34540 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
34541 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
34542 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
34543 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
34544 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
34545 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
34546 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
34547 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
34548 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
34549 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
34550 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
34551 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
34552 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
34553 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
34554 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
34555 { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
34556 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
34557 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
34558 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
34559 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
34560 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
34561 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
34562 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
34563 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
34564 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
34565 { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL},
34566 { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL},
34567 { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
34568 { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL},
34569 { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL},
34570 { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL},
34571 { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL},
34572 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
34573 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
34574 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
34575 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
34576 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
34577 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
34578 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
34579 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
34580 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
34581 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
34582 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
34583 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
34584 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
34585 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34586 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
34587 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
34588 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
34589 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34590 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
34591 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
34592 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
34593 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34594 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
34595 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34596 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
34597 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
34598 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
34599 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34600 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34601 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34602 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
34603 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
34604 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34605 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
34606 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
34607 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34608 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
34609 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
34610 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
34611 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
34612 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34613 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34614 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34615 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34616 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34617 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
34618 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34619 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
34620 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34621 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
34622 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34623 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
34624 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34625 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
34626 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
34627 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
34628 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
34629 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
34630 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
34631 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
34632 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
34633 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
34634 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
34635 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
34636 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
34637 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
34638 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
34639 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
34640 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
34641 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
34642 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
34643 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
34644 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
34645 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
34646 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
34647 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
34648 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
34649 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
34650 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
34651 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
34652 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
34653 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
34654 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
34655 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
34656 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
34657 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
34658 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
34659 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
34660 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
34661 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
34662 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
34663 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
34664 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
34665 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
34666 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
34667 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
34668 { (char *)"DC_IsOk", (PyCFunction)_wrap_DC_IsOk, METH_O, NULL},
34669 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
34670 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
34671 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
34672 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
34673 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
34674 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
34675 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
34676 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
34677 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
34678 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
34679 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
34680 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
34681 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
34682 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
34683 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
34684 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
34685 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
34686 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
34687 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34688 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
34689 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
34690 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
34691 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34692 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
34693 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
34694 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
34695 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
34696 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
34697 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34698 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
34699 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
34700 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
34701 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
34702 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
34703 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
34704 { (char *)"DC_GetLayoutDirection", (PyCFunction)_wrap_DC_GetLayoutDirection, METH_O, NULL},
34705 { (char *)"DC_SetLayoutDirection", (PyCFunction) _wrap_DC_SetLayoutDirection, METH_VARARGS | METH_KEYWORDS, NULL},
34706 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
34707 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
34708 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
34709 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
34710 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
34711 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
34712 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
34713 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL},
34714 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
34715 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
34716 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
34717 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
34718 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
34719 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
34720 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
34721 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
34722 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
34723 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
34724 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
34725 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
34726 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
34727 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
34728 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
34729 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
34730 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
34731 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
34732 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
34733 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
34734 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
34735 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
34736 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
34737 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
34738 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
34739 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
34740 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
34741 { (char *)"new_AutoBufferedPaintDC", (PyCFunction) _wrap_new_AutoBufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
34742 { (char *)"AutoBufferedPaintDC_swigregister", AutoBufferedPaintDC_swigregister, METH_VARARGS, NULL},
34743 { (char *)"AutoBufferedPaintDC_swiginit", AutoBufferedPaintDC_swiginit, METH_VARARGS, NULL},
34744 { (char *)"AutoBufferedPaintDCFactory", (PyCFunction) _wrap_AutoBufferedPaintDCFactory, METH_VARARGS | METH_KEYWORDS, NULL},
34745 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
34746 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
34747 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
34748 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
34749 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
34750 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
34751 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
34752 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
34753 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
34754 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
34755 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
34756 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
34757 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
34758 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
34759 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
34760 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
34761 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
34762 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
34763 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
34764 { (char *)"delete_GraphicsPath", (PyCFunction)_wrap_delete_GraphicsPath, METH_O, NULL},
34765 { (char *)"GraphicsPath_MoveToPoint", (PyCFunction) _wrap_GraphicsPath_MoveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34766 { (char *)"GraphicsPath_AddLineToPoint", (PyCFunction) _wrap_GraphicsPath_AddLineToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34767 { (char *)"GraphicsPath_AddCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34768 { (char *)"GraphicsPath_CloseSubpath", (PyCFunction)_wrap_GraphicsPath_CloseSubpath, METH_O, NULL},
34769 { (char *)"GraphicsPath_GetCurrentPoint", (PyCFunction)_wrap_GraphicsPath_GetCurrentPoint, METH_O, NULL},
34770 { (char *)"GraphicsPath_AddArc", (PyCFunction) _wrap_GraphicsPath_AddArc, METH_VARARGS | METH_KEYWORDS, NULL},
34771 { (char *)"GraphicsPath_AddQuadCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddQuadCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34772 { (char *)"GraphicsPath_AddRectangle", (PyCFunction) _wrap_GraphicsPath_AddRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
34773 { (char *)"GraphicsPath_AddCircle", (PyCFunction) _wrap_GraphicsPath_AddCircle, METH_VARARGS | METH_KEYWORDS, NULL},
34774 { (char *)"GraphicsPath_AddArcToPoint", (PyCFunction) _wrap_GraphicsPath_AddArcToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34775 { (char *)"GraphicsPath_swigregister", GraphicsPath_swigregister, METH_VARARGS, NULL},
34776 { (char *)"delete_GraphicsContext", (PyCFunction)_wrap_delete_GraphicsContext, METH_O, NULL},
34777 { (char *)"GraphicsContext_Create", (PyCFunction) _wrap_GraphicsContext_Create, METH_VARARGS | METH_KEYWORDS, NULL},
34778 { (char *)"GraphicsContext_CreatePath", (PyCFunction)_wrap_GraphicsContext_CreatePath, METH_O, NULL},
34779 { (char *)"GraphicsContext_PushState", (PyCFunction)_wrap_GraphicsContext_PushState, METH_O, NULL},
34780 { (char *)"GraphicsContext_PopState", (PyCFunction)_wrap_GraphicsContext_PopState, METH_O, NULL},
34781 { (char *)"GraphicsContext_Clip", (PyCFunction) _wrap_GraphicsContext_Clip, METH_VARARGS | METH_KEYWORDS, NULL},
34782 { (char *)"GraphicsContext_Translate", (PyCFunction) _wrap_GraphicsContext_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
34783 { (char *)"GraphicsContext_Scale", (PyCFunction) _wrap_GraphicsContext_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
34784 { (char *)"GraphicsContext_Rotate", (PyCFunction) _wrap_GraphicsContext_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
34785 { (char *)"GraphicsContext_SetPen", (PyCFunction) _wrap_GraphicsContext_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
34786 { (char *)"GraphicsContext_SetBrush", (PyCFunction) _wrap_GraphicsContext_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
34787 { (char *)"GraphicsContext_SetLinearGradientBrush", (PyCFunction) _wrap_GraphicsContext_SetLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
34788 { (char *)"GraphicsContext_SetRadialGradientBrush", (PyCFunction) _wrap_GraphicsContext_SetRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
34789 { (char *)"GraphicsContext_SetFont", (PyCFunction) _wrap_GraphicsContext_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
34790 { (char *)"GraphicsContext_SetTextColor", (PyCFunction) _wrap_GraphicsContext_SetTextColor, METH_VARARGS | METH_KEYWORDS, NULL},
34791 { (char *)"GraphicsContext_StrokePath", (PyCFunction) _wrap_GraphicsContext_StrokePath, METH_VARARGS | METH_KEYWORDS, NULL},
34792 { (char *)"GraphicsContext_FillPath", (PyCFunction) _wrap_GraphicsContext_FillPath, METH_VARARGS | METH_KEYWORDS, NULL},
34793 { (char *)"GraphicsContext_DrawPath", (PyCFunction) _wrap_GraphicsContext_DrawPath, METH_VARARGS | METH_KEYWORDS, NULL},
34794 { (char *)"GraphicsContext_DrawText", (PyCFunction) _wrap_GraphicsContext_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
34795 { (char *)"GraphicsContext_DrawRotatedText", (PyCFunction) _wrap_GraphicsContext_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
34796 { (char *)"GraphicsContext_GetTextExtent", (PyCFunction) _wrap_GraphicsContext_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
34797 { (char *)"GraphicsContext_GetPartialTextExtents", (PyCFunction) _wrap_GraphicsContext_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
34798 { (char *)"GraphicsContext_DrawBitmap", (PyCFunction) _wrap_GraphicsContext_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34799 { (char *)"GraphicsContext_DrawIcon", (PyCFunction) _wrap_GraphicsContext_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34800 { (char *)"GraphicsContext_StrokeLine", (PyCFunction) _wrap_GraphicsContext_StrokeLine, METH_VARARGS | METH_KEYWORDS, NULL},
34801 { (char *)"GraphicsContext_StrokeLines", (PyCFunction) _wrap_GraphicsContext_StrokeLines, METH_VARARGS | METH_KEYWORDS, NULL},
34802 { (char *)"GraphicsContext_StrokeLineSegements", (PyCFunction) _wrap_GraphicsContext_StrokeLineSegements, METH_VARARGS | METH_KEYWORDS, NULL},
34803 { (char *)"GraphicsContext_DrawLines", (PyCFunction) _wrap_GraphicsContext_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
34804 { (char *)"GraphicsContext_DrawRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
34805 { (char *)"GraphicsContext_DrawEllipse", (PyCFunction) _wrap_GraphicsContext_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
34806 { (char *)"GraphicsContext_DrawRoundedRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
34807 { (char *)"GraphicsContext_swigregister", GraphicsContext_swigregister, METH_VARARGS, NULL},
34808 { (char *)"new_GCDC", (PyCFunction) _wrap_new_GCDC, METH_VARARGS | METH_KEYWORDS, NULL},
34809 { (char *)"delete_GCDC", (PyCFunction)_wrap_delete_GCDC, METH_O, NULL},
34810 { (char *)"GCDC_GetGraphicContext", (PyCFunction)_wrap_GCDC_GetGraphicContext, METH_O, NULL},
34811 { (char *)"GCDC_swigregister", GCDC_swigregister, METH_VARARGS, NULL},
34812 { (char *)"GCDC_swiginit", GCDC_swiginit, METH_VARARGS, NULL},
34813 { (char *)"new_Overlay", (PyCFunction)_wrap_new_Overlay, METH_NOARGS, NULL},
34814 { (char *)"delete_Overlay", (PyCFunction)_wrap_delete_Overlay, METH_O, NULL},
34815 { (char *)"Overlay_Reset", (PyCFunction)_wrap_Overlay_Reset, METH_O, NULL},
34816 { (char *)"Overlay_swigregister", Overlay_swigregister, METH_VARARGS, NULL},
34817 { (char *)"Overlay_swiginit", Overlay_swiginit, METH_VARARGS, NULL},
34818 { (char *)"new_DCOverlay", _wrap_new_DCOverlay, METH_VARARGS, NULL},
34819 { (char *)"delete_DCOverlay", (PyCFunction)_wrap_delete_DCOverlay, METH_O, NULL},
34820 { (char *)"DCOverlay_Clear", (PyCFunction)_wrap_DCOverlay_Clear, METH_O, NULL},
34821 { (char *)"DCOverlay_swigregister", DCOverlay_swigregister, METH_VARARGS, NULL},
34822 { (char *)"DCOverlay_swiginit", DCOverlay_swiginit, METH_VARARGS, NULL},
34823 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
34824 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
34825 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
34826 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
34827 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34828 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34829 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34830 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
34831 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
34832 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
34833 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
34834 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
34835 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
34836 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
34837 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
34838 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
34839 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
34840 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
34841 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
34842 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
34843 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
34844 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
34845 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
34846 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
34847 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
34848 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
34849 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
34850 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
34851 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
34852 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
34853 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
34854 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
34855 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
34856 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
34857 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
34858 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
34859 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
34860 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
34861 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
34862 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
34863 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
34864 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
34865 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
34866 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
34867 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
34868 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
34869 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
34870 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
34871 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
34872 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
34873 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
34874 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
34875 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
34876 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
34877 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
34878 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
34879 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
34880 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
34881 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
34882 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
34883 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
34884 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
34885 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
34886 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
34887 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
34888 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
34889 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
34890 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34891 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
34892 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
34893 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
34894 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
34895 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
34896 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
34897 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
34898 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
34899 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
34900 { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL},
34901 { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL},
34902 { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL},
34903 { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL},
34904 { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL},
34905 { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL},
34906 { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL},
34907 { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL},
34908 { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL},
34909 { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL},
34910 { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL},
34911 { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL},
34912 { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL},
34913 { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL},
34914 { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL},
34915 { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL},
34916 { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL},
34917 { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL},
34918 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
34919 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
34920 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
34921 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
34922 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
34923 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
34924 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
34925 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
34926 { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL},
34927 { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL},
34928 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
34929 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
34930 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
34931 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
34932 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
34933 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
34934 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
34935 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
34936 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
34937 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
34938 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
34939 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
34940 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
34941 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
34942 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
34943 { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL},
34944 { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL},
34945 { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL},
34946 { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL},
34947 { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL},
34948 { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL},
34949 { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
34950 { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL},
34951 { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL},
34952 { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL},
34953 { (char *)"PseudoDC_SetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_SetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
34954 { (char *)"PseudoDC_GetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_GetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
34955 { (char *)"PseudoDC_FindObjects", (PyCFunction) _wrap_PseudoDC_FindObjects, METH_VARARGS | METH_KEYWORDS, NULL},
34956 { (char *)"PseudoDC_FindObjectsByBBox", (PyCFunction) _wrap_PseudoDC_FindObjectsByBBox, METH_VARARGS | METH_KEYWORDS, NULL},
34957 { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL},
34958 { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
34959 { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
34960 { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL},
34961 { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL},
34962 { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL},
34963 { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
34964 { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34965 { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
34966 { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
34967 { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
34968 { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34969 { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
34970 { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34971 { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
34972 { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
34973 { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
34974 { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34975 { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34976 { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34977 { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
34978 { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
34979 { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34980 { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
34981 { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
34982 { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34983 { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
34984 { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
34985 { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
34986 { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
34987 { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34988 { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34989 { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34990 { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34991 { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34992 { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
34993 { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34994 { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
34995 { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34996 { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
34997 { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
34998 { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
34999 { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
35000 { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
35001 { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL},
35002 { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
35003 { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
35004 { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35005 { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
35006 { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
35007 { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
35008 { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
35009 { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
35010 { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
35011 { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
35012 { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL},
35013 { NULL, NULL, 0, NULL }
35014 };
35015
35016
35017 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
35018
35019 static void *_p_wxPaintDCTo_p_wxClientDC(void *x) {
35020 return (void *)((wxClientDC *) ((wxPaintDC *) x));
35021 }
35022 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
35023 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
35024 }
35025 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
35026 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
35027 }
35028 static void *_p_wxClientDCTo_p_wxWindowDC(void *x) {
35029 return (void *)((wxWindowDC *) ((wxClientDC *) x));
35030 }
35031 static void *_p_wxPaintDCTo_p_wxWindowDC(void *x) {
35032 return (void *)((wxWindowDC *) (wxClientDC *) ((wxPaintDC *) x));
35033 }
35034 static void *_p_wxPyLocaleTo_p_wxLocale(void *x) {
35035 return (void *)((wxLocale *) ((wxPyLocale *) x));
35036 }
35037 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
35038 return (void *)((wxGDIObject *) ((wxIcon *) x));
35039 }
35040 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
35041 return (void *)((wxGDIObject *) ((wxPalette *) x));
35042 }
35043 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
35044 return (void *)((wxGDIObject *) ((wxPen *) x));
35045 }
35046 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
35047 return (void *)((wxGDIObject *) ((wxFont *) x));
35048 }
35049 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
35050 return (void *)((wxGDIObject *) ((wxCursor *) x));
35051 }
35052 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
35053 return (void *)((wxGDIObject *) ((wxBitmap *) x));
35054 }
35055 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
35056 return (void *)((wxGDIObject *) ((wxRegion *) x));
35057 }
35058 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
35059 return (void *)((wxGDIObject *) ((wxBrush *) x));
35060 }
35061 static void *_p_wxGCDCTo_p_wxDC(void *x) {
35062 return (void *)((wxDC *) ((wxGCDC *) x));
35063 }
35064 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
35065 return (void *)((wxDC *) ((wxScreenDC *) x));
35066 }
35067 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
35068 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
35069 }
35070 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
35071 return (void *)((wxDC *) ((wxMirrorDC *) x));
35072 }
35073 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
35074 return (void *)((wxDC *) ((wxMemoryDC *) x));
35075 }
35076 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
35077 return (void *)((wxDC *) ((wxWindowDC *) x));
35078 }
35079 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
35080 return (void *)((wxDC *) ((wxMetaFileDC *) x));
35081 }
35082 static void *_p_wxClientDCTo_p_wxDC(void *x) {
35083 return (void *)((wxDC *) (wxWindowDC *) ((wxClientDC *) x));
35084 }
35085 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
35086 return (void *)((wxDC *) (wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
35087 }
35088 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
35089 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
35090 }
35091 static void *_p_wxAutoBufferedPaintDCTo_p_wxDC(void *x) {
35092 return (void *)((wxDC *) ((wxAutoBufferedPaintDC *) x));
35093 }
35094 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
35095 return (void *)((wxDC *) ((wxPostScriptDC *) x));
35096 }
35097 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
35098 return (void *)((wxDC *) ((wxPrinterDC *) x));
35099 }
35100 static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
35101 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
35102 }
35103 static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
35104 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
35105 }
35106 static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
35107 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
35108 }
35109 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
35110 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
35111 }
35112 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
35113 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
35114 }
35115 static void *_p_wxPenTo_p_wxObject(void *x) {
35116 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
35117 }
35118 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
35119 return (void *)((wxObject *) ((wxRegionIterator *) x));
35120 }
35121 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
35122 return (void *)((wxObject *) ((wxSizerItem *) x));
35123 }
35124 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
35125 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
35126 }
35127 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
35128 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
35129 }
35130 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
35131 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
35132 }
35133 static void *_p_wxIconTo_p_wxObject(void *x) {
35134 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
35135 }
35136 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
35137 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
35138 }
35139 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
35140 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
35141 }
35142 static void *_p_wxSizerTo_p_wxObject(void *x) {
35143 return (void *)((wxObject *) ((wxSizer *) x));
35144 }
35145 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
35146 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
35147 }
35148 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
35149 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
35150 }
35151 static void *_p_wxEventTo_p_wxObject(void *x) {
35152 return (void *)((wxObject *) ((wxEvent *) x));
35153 }
35154 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
35155 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
35156 }
35157 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
35158 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
35159 }
35160 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
35161 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
35162 }
35163 static void *_p_wxPseudoDCTo_p_wxObject(void *x) {
35164 return (void *)((wxObject *) ((wxPseudoDC *) x));
35165 }
35166 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
35167 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
35168 }
35169 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
35170 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
35171 }
35172 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
35173 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
35174 }
35175 static void *_p_wxDCTo_p_wxObject(void *x) {
35176 return (void *)((wxObject *) ((wxDC *) x));
35177 }
35178 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
35179 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
35180 }
35181 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
35182 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
35183 }
35184 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
35185 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
35186 }
35187 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
35188 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
35189 }
35190 static void *_p_wxControlTo_p_wxObject(void *x) {
35191 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
35192 }
35193 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
35194 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
35195 }
35196 static void *_p_wxClientDCTo_p_wxObject(void *x) {
35197 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxClientDC *) x));
35198 }
35199 static void *_p_wxFSFileTo_p_wxObject(void *x) {
35200 return (void *)((wxObject *) ((wxFSFile *) x));
35201 }
35202 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
35203 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
35204 }
35205 static void *_p_wxRegionTo_p_wxObject(void *x) {
35206 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
35207 }
35208 static void *_p_wxPySizerTo_p_wxObject(void *x) {
35209 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
35210 }
35211 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
35212 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
35213 }
35214 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
35215 return (void *)((wxObject *) ((wxGDIObject *) x));
35216 }
35217 static void *_p_wxEffectsTo_p_wxObject(void *x) {
35218 return (void *)((wxObject *) ((wxEffects *) x));
35219 }
35220 static void *_p_wxPyEventTo_p_wxObject(void *x) {
35221 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
35222 }
35223 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
35224 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
35225 }
35226 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
35227 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
35228 }
35229 static void *_p_wxShowEventTo_p_wxObject(void *x) {
35230 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
35231 }
35232 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
35233 return (void *)((wxObject *) ((wxMenuItem *) x));
35234 }
35235 static void *_p_wxDateEventTo_p_wxObject(void *x) {
35236 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
35237 }
35238 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
35239 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
35240 }
35241 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
35242 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
35243 }
35244 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
35245 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
35246 }
35247 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
35248 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
35249 }
35250 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
35251 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
35252 }
35253 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
35254 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
35255 }
35256 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
35257 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
35258 }
35259 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
35260 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
35261 }
35262 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
35263 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
35264 }
35265 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
35266 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
35267 }
35268 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
35269 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
35270 }
35271 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
35272 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
35273 }
35274 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
35275 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
35276 }
35277 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
35278 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
35279 }
35280 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
35281 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
35282 }
35283 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
35284 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
35285 }
35286 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
35287 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
35288 }
35289 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
35290 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
35291 }
35292 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
35293 return (void *)((wxObject *) ((wxImageHandler *) x));
35294 }
35295 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
35296 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
35297 }
35298 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
35299 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
35300 }
35301 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
35302 return (void *)((wxObject *) ((wxEvtHandler *) x));
35303 }
35304 static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
35305 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
35306 }
35307 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
35308 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
35309 }
35310 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
35311 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
35312 }
35313 static void *_p_wxAutoBufferedPaintDCTo_p_wxObject(void *x) {
35314 return (void *)((wxObject *) (wxDC *) ((wxAutoBufferedPaintDC *) x));
35315 }
35316 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
35317 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
35318 }
35319 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
35320 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
35321 }
35322 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
35323 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
35324 }
35325 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
35326 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
35327 }
35328 static void *_p_wxImageTo_p_wxObject(void *x) {
35329 return (void *)((wxObject *) ((wxImage *) x));
35330 }
35331 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
35332 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
35333 }
35334 static void *_p_wxPaletteTo_p_wxObject(void *x) {
35335 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
35336 }
35337 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
35338 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
35339 }
35340 static void *_p_wxImageListTo_p_wxObject(void *x) {
35341 return (void *)((wxObject *) ((wxImageList *) x));
35342 }
35343 static void *_p_wxGCDCTo_p_wxObject(void *x) {
35344 return (void *)((wxObject *) (wxDC *) ((wxGCDC *) x));
35345 }
35346 static void *_p_wxCursorTo_p_wxObject(void *x) {
35347 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
35348 }
35349 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
35350 return (void *)((wxObject *) ((wxEncodingConverter *) x));
35351 }
35352 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
35353 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
35354 }
35355 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
35356 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
35357 }
35358 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
35359 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
35360 }
35361 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
35362 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
35363 }
35364 static void *_p_wxWindowTo_p_wxObject(void *x) {
35365 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
35366 }
35367 static void *_p_wxMenuTo_p_wxObject(void *x) {
35368 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
35369 }
35370 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
35371 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
35372 }
35373 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
35374 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
35375 }
35376 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
35377 return (void *)((wxObject *) ((wxFileSystem *) x));
35378 }
35379 static void *_p_wxBitmapTo_p_wxObject(void *x) {
35380 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
35381 }
35382 static void *_p_wxMaskTo_p_wxObject(void *x) {
35383 return (void *)((wxObject *) ((wxMask *) x));
35384 }
35385 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
35386 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
35387 }
35388 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
35389 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
35390 }
35391 static void *_p_wxPyAppTo_p_wxObject(void *x) {
35392 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
35393 }
35394 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
35395 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
35396 }
35397 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
35398 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
35399 }
35400 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
35401 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
35402 }
35403 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
35404 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
35405 }
35406 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
35407 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
35408 }
35409 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
35410 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
35411 }
35412 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
35413 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
35414 }
35415 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
35416 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
35417 }
35418 static void *_p_wxFontTo_p_wxObject(void *x) {
35419 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
35420 }
35421 static void *_p_wxBrushTo_p_wxObject(void *x) {
35422 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
35423 }
35424 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
35425 return (void *)((wxObject *) ((wxMetaFile *) x));
35426 }
35427 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
35428 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
35429 }
35430 static void *_p_wxColourTo_p_wxObject(void *x) {
35431 return (void *)((wxObject *) ((wxColour *) x));
35432 }
35433 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
35434 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
35435 }
35436 static void *_p_wxValidatorTo_p_wxObject(void *x) {
35437 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
35438 }
35439 static void *_p_wxControlTo_p_wxWindow(void *x) {
35440 return (void *)((wxWindow *) ((wxControl *) x));
35441 }
35442 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
35443 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
35444 }
35445 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
35446 return (void *)((wxWindow *) ((wxMenuBar *) x));
35447 }
35448 static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) {
35449 return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x));
35450 }
35451 static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) {
35452 return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x));
35453 }
35454 static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0};
35455 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
35456 static swig_type_info _swigt__p_double = {"_p_double", "double *|wxDouble *", 0, 0, (void*)0, 0};
35457 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};
35458 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
35459 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
35460 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
35461 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
35462 static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0};
35463 static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0};
35464 static swig_type_info _swigt__p_wxAutoBufferedPaintDC = {"_p_wxAutoBufferedPaintDC", "wxAutoBufferedPaintDC *", 0, 0, (void*)0, 0};
35465 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
35466 static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
35467 static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
35468 static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
35469 static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
35470 static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0};
35471 static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
35472 static swig_type_info _swigt__p_wxColor = {"_p_wxColor", "wxColor *", 0, 0, (void*)0, 0};
35473 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
35474 static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
35475 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
35476 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
35477 static swig_type_info _swigt__p_wxDCOverlay = {"_p_wxDCOverlay", "wxDCOverlay *", 0, 0, (void*)0, 0};
35478 static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
35479 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
35480 static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
35481 static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
35482 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
35483 static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
35484 static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
35485 static swig_type_info _swigt__p_wxGCDC = {"_p_wxGCDC", "wxGCDC *", 0, 0, (void*)0, 0};
35486 static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
35487 static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
35488 static swig_type_info _swigt__p_wxGraphicsContext = {"_p_wxGraphicsContext", "wxGraphicsContext *", 0, 0, (void*)0, 0};
35489 static swig_type_info _swigt__p_wxGraphicsPath = {"_p_wxGraphicsPath", "wxGraphicsPath *", 0, 0, (void*)0, 0};
35490 static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0};
35491 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
35492 static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
35493 static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
35494 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
35495 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
35496 static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
35497 static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
35498 static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
35499 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
35500 static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
35501 static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
35502 static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
35503 static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
35504 static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
35505 static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0};
35506 static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0};
35507 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
35508 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
35509 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
35510 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
35511 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
35512 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
35513 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
35514 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
35515 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
35516 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
35517 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
35518 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
35519 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
35520 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
35521 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
35522 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
35523 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
35524 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
35525 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
35526 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
35527 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
35528 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
35529 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
35530 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
35531 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
35532 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
35533 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
35534 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
35535 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
35536 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
35537 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
35538 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
35539 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
35540 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
35541 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
35542 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
35543 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
35544 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
35545 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
35546 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
35547 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
35548 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
35549 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
35550 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
35551 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
35552 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
35553 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
35554 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
35555 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
35556 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
35557 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
35558 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
35559 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
35560 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
35561 static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
35562 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
35563 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
35564 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
35565 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
35566 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
35567 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
35568 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
35569 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
35570 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
35571 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
35572 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
35573 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
35574 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
35575 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
35576 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
35577 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
35578 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
35579 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
35580 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
35581 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
35582 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
35583 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
35584 static swig_type_info _swigt__p_wxOverlay = {"_p_wxOverlay", "wxOverlay *", 0, 0, (void*)0, 0};
35585 static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
35586 static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
35587 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
35588 static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
35589 static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
35590 static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0};
35591 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
35592 static swig_type_info _swigt__p_wxPoint2D = {"_p_wxPoint2D", "wxPoint2D *", 0, 0, (void*)0, 0};
35593 static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
35594 static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
35595 static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
35596 static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0};
35597 static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
35598 static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0};
35599 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
35600 static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
35601 static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
35602 static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
35603 static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
35604 static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
35605 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
35606 static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
35607 static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
35608 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
35609 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
35610 static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
35611
35612 static swig_type_info *swig_type_initial[] = {
35613 &_swigt__p_buffer,
35614 &_swigt__p_char,
35615 &_swigt__p_double,
35616 &_swigt__p_form_ops_t,
35617 &_swigt__p_int,
35618 &_swigt__p_unsigned_char,
35619 &_swigt__p_unsigned_int,
35620 &_swigt__p_unsigned_long,
35621 &_swigt__p_wxANIHandler,
35622 &_swigt__p_wxAcceleratorTable,
35623 &_swigt__p_wxActivateEvent,
35624 &_swigt__p_wxAlphaPixelData,
35625 &_swigt__p_wxAlphaPixelData_Accessor,
35626 &_swigt__p_wxAutoBufferedPaintDC,
35627 &_swigt__p_wxBMPHandler,
35628 &_swigt__p_wxBitmap,
35629 &_swigt__p_wxBoxSizer,
35630 &_swigt__p_wxBrush,
35631 &_swigt__p_wxBrushList,
35632 &_swigt__p_wxBufferedDC,
35633 &_swigt__p_wxBufferedPaintDC,
35634 &_swigt__p_wxCURHandler,
35635 &_swigt__p_wxChar,
35636 &_swigt__p_wxChildFocusEvent,
35637 &_swigt__p_wxClientDC,
35638 &_swigt__p_wxClipboardTextEvent,
35639 &_swigt__p_wxCloseEvent,
35640 &_swigt__p_wxColor,
35641 &_swigt__p_wxColour,
35642 &_swigt__p_wxColourDatabase,
35643 &_swigt__p_wxCommandEvent,
35644 &_swigt__p_wxContextMenuEvent,
35645 &_swigt__p_wxControl,
35646 &_swigt__p_wxControlWithItems,
35647 &_swigt__p_wxCursor,
35648 &_swigt__p_wxDC,
35649 &_swigt__p_wxDCOverlay,
35650 &_swigt__p_wxDash,
35651 &_swigt__p_wxDateEvent,
35652 &_swigt__p_wxDisplayChangedEvent,
35653 &_swigt__p_wxDropFilesEvent,
35654 &_swigt__p_wxDuplexMode,
35655 &_swigt__p_wxEffects,
35656 &_swigt__p_wxEncodingConverter,
35657 &_swigt__p_wxEraseEvent,
35658 &_swigt__p_wxEvent,
35659 &_swigt__p_wxEvtHandler,
35660 &_swigt__p_wxFSFile,
35661 &_swigt__p_wxFileSystem,
35662 &_swigt__p_wxFlexGridSizer,
35663 &_swigt__p_wxFocusEvent,
35664 &_swigt__p_wxFont,
35665 &_swigt__p_wxFontList,
35666 &_swigt__p_wxFontMapper,
35667 &_swigt__p_wxGBSizerItem,
35668 &_swigt__p_wxGCDC,
35669 &_swigt__p_wxGDIObjListBase,
35670 &_swigt__p_wxGDIObject,
35671 &_swigt__p_wxGIFHandler,
35672 &_swigt__p_wxGraphicsContext,
35673 &_swigt__p_wxGraphicsPath,
35674 &_swigt__p_wxGridBagSizer,
35675 &_swigt__p_wxGridSizer,
35676 &_swigt__p_wxHeaderButtonParams,
35677 &_swigt__p_wxICOHandler,
35678 &_swigt__p_wxIcon,
35679 &_swigt__p_wxIconBundle,
35680 &_swigt__p_wxIconLocation,
35681 &_swigt__p_wxIconizeEvent,
35682 &_swigt__p_wxIdleEvent,
35683 &_swigt__p_wxImage,
35684 &_swigt__p_wxImageHandler,
35685 &_swigt__p_wxImageList,
35686 &_swigt__p_wxIndividualLayoutConstraint,
35687 &_swigt__p_wxInitDialogEvent,
35688 &_swigt__p_wxJPEGHandler,
35689 &_swigt__p_wxKeyEvent,
35690 &_swigt__p_wxLanguageInfo,
35691 &_swigt__p_wxLayoutConstraints,
35692 &_swigt__p_wxLocale,
35693 &_swigt__p_wxMask,
35694 &_swigt__p_wxMaximizeEvent,
35695 &_swigt__p_wxMemoryDC,
35696 &_swigt__p_wxMenu,
35697 &_swigt__p_wxMenuBar,
35698 &_swigt__p_wxMenuEvent,
35699 &_swigt__p_wxMenuItem,
35700 &_swigt__p_wxMetaFile,
35701 &_swigt__p_wxMetaFileDC,
35702 &_swigt__p_wxMirrorDC,
35703 &_swigt__p_wxMouseCaptureChangedEvent,
35704 &_swigt__p_wxMouseCaptureLostEvent,
35705 &_swigt__p_wxMouseEvent,
35706 &_swigt__p_wxMoveEvent,
35707 &_swigt__p_wxNativeEncodingInfo,
35708 &_swigt__p_wxNativeFontInfo,
35709 &_swigt__p_wxNativePixelData,
35710 &_swigt__p_wxNativePixelData_Accessor,
35711 &_swigt__p_wxNavigationKeyEvent,
35712 &_swigt__p_wxNcPaintEvent,
35713 &_swigt__p_wxNotifyEvent,
35714 &_swigt__p_wxObject,
35715 &_swigt__p_wxOverlay,
35716 &_swigt__p_wxPCXHandler,
35717 &_swigt__p_wxPNGHandler,
35718 &_swigt__p_wxPNMHandler,
35719 &_swigt__p_wxPaintDC,
35720 &_swigt__p_wxPaintEvent,
35721 &_swigt__p_wxPalette,
35722 &_swigt__p_wxPaletteChangedEvent,
35723 &_swigt__p_wxPaperSize,
35724 &_swigt__p_wxPen,
35725 &_swigt__p_wxPenList,
35726 &_swigt__p_wxPixelDataBase,
35727 &_swigt__p_wxPoint,
35728 &_swigt__p_wxPoint2D,
35729 &_swigt__p_wxPostScriptDC,
35730 &_swigt__p_wxPrintData,
35731 &_swigt__p_wxPrinterDC,
35732 &_swigt__p_wxPseudoDC,
35733 &_swigt__p_wxPyApp,
35734 &_swigt__p_wxPyCommandEvent,
35735 &_swigt__p_wxPyEvent,
35736 &_swigt__p_wxPyFontEnumerator,
35737 &_swigt__p_wxPyImageHandler,
35738 &_swigt__p_wxPyLocale,
35739 &_swigt__p_wxPySizer,
35740 &_swigt__p_wxPyValidator,
35741 &_swigt__p_wxQueryNewPaletteEvent,
35742 &_swigt__p_wxRect,
35743 &_swigt__p_wxRegion,
35744 &_swigt__p_wxRegionIterator,
35745 &_swigt__p_wxRendererNative,
35746 &_swigt__p_wxRendererVersion,
35747 &_swigt__p_wxScreenDC,
35748 &_swigt__p_wxScrollEvent,
35749 &_swigt__p_wxScrollWinEvent,
35750 &_swigt__p_wxSetCursorEvent,
35751 &_swigt__p_wxShowEvent,
35752 &_swigt__p_wxSize,
35753 &_swigt__p_wxSizeEvent,
35754 &_swigt__p_wxSizer,
35755 &_swigt__p_wxSizerItem,
35756 &_swigt__p_wxSplitterRenderParams,
35757 &_swigt__p_wxStaticBoxSizer,
35758 &_swigt__p_wxStdDialogButtonSizer,
35759 &_swigt__p_wxStockGDI,
35760 &_swigt__p_wxString,
35761 &_swigt__p_wxSysColourChangedEvent,
35762 &_swigt__p_wxTIFFHandler,
35763 &_swigt__p_wxUpdateUIEvent,
35764 &_swigt__p_wxValidator,
35765 &_swigt__p_wxWindow,
35766 &_swigt__p_wxWindowCreateEvent,
35767 &_swigt__p_wxWindowDC,
35768 &_swigt__p_wxWindowDestroyEvent,
35769 &_swigt__p_wxXPMHandler,
35770 };
35771
35772 static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}};
35773 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
35774 static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
35775 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
35776 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
35777 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
35778 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
35779 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
35780 static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}};
35781 static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
35782 static swig_cast_info _swigc__p_wxAutoBufferedPaintDC[] = { {&_swigt__p_wxAutoBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
35783 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
35784 static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
35785 static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
35786 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}};
35787 static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
35788 static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}};
35789 static swig_cast_info _swigc__p_wxClientDC[] = { {&_swigt__p_wxClientDC, 0, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxClientDC, 0, 0},{0, 0, 0, 0}};
35790 static swig_cast_info _swigc__p_wxColor[] = { {&_swigt__p_wxColor, 0, 0, 0},{0, 0, 0, 0}};
35791 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
35792 static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
35793 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
35794 static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxPrinterDC, _p_wxPrinterDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxAutoBufferedPaintDC, _p_wxAutoBufferedPaintDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxMetaFileDC, _p_wxMetaFileDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxPostScriptDC, _p_wxPostScriptDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxDC, 0, 0, 0}, {&_swigt__p_wxWindowDC, _p_wxWindowDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxScreenDC, _p_wxScreenDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxMemoryDC, _p_wxMemoryDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxGCDC, _p_wxGCDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxMirrorDC, _p_wxMirrorDCTo_p_wxDC, 0, 0},{0, 0, 0, 0}};
35795 static swig_cast_info _swigc__p_wxDCOverlay[] = { {&_swigt__p_wxDCOverlay, 0, 0, 0},{0, 0, 0, 0}};
35796 static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
35797 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
35798 static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
35799 static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
35800 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
35801 static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
35802 static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
35803 static swig_cast_info _swigc__p_wxGCDC[] = { {&_swigt__p_wxGCDC, 0, 0, 0},{0, 0, 0, 0}};
35804 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}};
35805 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}};
35806 static swig_cast_info _swigc__p_wxGraphicsContext[] = { {&_swigt__p_wxGraphicsContext, 0, 0, 0},{0, 0, 0, 0}};
35807 static swig_cast_info _swigc__p_wxGraphicsPath[] = { {&_swigt__p_wxGraphicsPath, 0, 0, 0},{0, 0, 0, 0}};
35808 static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}};
35809 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
35810 static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
35811 static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
35812 static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
35813 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
35814 static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
35815 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}};
35816 static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
35817 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}};
35818 static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
35819 static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
35820 static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
35821 static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
35822 static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
35823 static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}};
35824 static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
35825 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
35826 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
35827 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
35828 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
35829 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
35830 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
35831 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
35832 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
35833 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
35834 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
35835 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
35836 static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
35837 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
35838 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
35839 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
35840 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
35841 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
35842 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
35843 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
35844 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
35845 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
35846 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
35847 static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
35848 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
35849 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
35850 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
35851 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
35852 static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
35853 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
35854 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
35855 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
35856 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
35857 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
35858 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
35859 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
35860 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
35861 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
35862 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
35863 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
35864 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
35865 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
35866 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
35867 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
35868 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
35869 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
35870 static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
35871 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
35872 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
35873 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
35874 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
35875 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
35876 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
35877 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
35878 static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
35879 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
35880 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
35881 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
35882 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
35883 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
35884 static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
35885 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
35886 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
35887 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
35888 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
35889 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
35890 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
35891 static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
35892 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
35893 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
35894 static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
35895 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
35896 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
35897 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
35898 static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
35899 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
35900 static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
35901 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_wxGCDC, _p_wxGCDCTo_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_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_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_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_wxAutoBufferedPaintDC, _p_wxAutoBufferedPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_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}};
35902 static swig_cast_info _swigc__p_wxOverlay[] = { {&_swigt__p_wxOverlay, 0, 0, 0},{0, 0, 0, 0}};
35903 static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
35904 static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
35905 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
35906 static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
35907 static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
35908 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}};
35909 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
35910 static swig_cast_info _swigc__p_wxPoint2D[] = { {&_swigt__p_wxPoint2D, 0, 0, 0},{0, 0, 0, 0}};
35911 static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
35912 static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
35913 static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
35914 static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
35915 static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
35916 static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}};
35917 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
35918 static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
35919 static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
35920 static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
35921 static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
35922 static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
35923 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
35924 static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
35925 static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
35926 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
35927 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}};
35928 static swig_cast_info _swigc__p_wxWindowDC[] = { {&_swigt__p_wxWindowDC, 0, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxWindowDC, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxWindowDC, 0, 0},{0, 0, 0, 0}};
35929
35930 static swig_cast_info *swig_cast_initial[] = {
35931 _swigc__p_buffer,
35932 _swigc__p_char,
35933 _swigc__p_double,
35934 _swigc__p_form_ops_t,
35935 _swigc__p_int,
35936 _swigc__p_unsigned_char,
35937 _swigc__p_unsigned_int,
35938 _swigc__p_unsigned_long,
35939 _swigc__p_wxANIHandler,
35940 _swigc__p_wxAcceleratorTable,
35941 _swigc__p_wxActivateEvent,
35942 _swigc__p_wxAlphaPixelData,
35943 _swigc__p_wxAlphaPixelData_Accessor,
35944 _swigc__p_wxAutoBufferedPaintDC,
35945 _swigc__p_wxBMPHandler,
35946 _swigc__p_wxBitmap,
35947 _swigc__p_wxBoxSizer,
35948 _swigc__p_wxBrush,
35949 _swigc__p_wxBrushList,
35950 _swigc__p_wxBufferedDC,
35951 _swigc__p_wxBufferedPaintDC,
35952 _swigc__p_wxCURHandler,
35953 _swigc__p_wxChar,
35954 _swigc__p_wxChildFocusEvent,
35955 _swigc__p_wxClientDC,
35956 _swigc__p_wxClipboardTextEvent,
35957 _swigc__p_wxCloseEvent,
35958 _swigc__p_wxColor,
35959 _swigc__p_wxColour,
35960 _swigc__p_wxColourDatabase,
35961 _swigc__p_wxCommandEvent,
35962 _swigc__p_wxContextMenuEvent,
35963 _swigc__p_wxControl,
35964 _swigc__p_wxControlWithItems,
35965 _swigc__p_wxCursor,
35966 _swigc__p_wxDC,
35967 _swigc__p_wxDCOverlay,
35968 _swigc__p_wxDash,
35969 _swigc__p_wxDateEvent,
35970 _swigc__p_wxDisplayChangedEvent,
35971 _swigc__p_wxDropFilesEvent,
35972 _swigc__p_wxDuplexMode,
35973 _swigc__p_wxEffects,
35974 _swigc__p_wxEncodingConverter,
35975 _swigc__p_wxEraseEvent,
35976 _swigc__p_wxEvent,
35977 _swigc__p_wxEvtHandler,
35978 _swigc__p_wxFSFile,
35979 _swigc__p_wxFileSystem,
35980 _swigc__p_wxFlexGridSizer,
35981 _swigc__p_wxFocusEvent,
35982 _swigc__p_wxFont,
35983 _swigc__p_wxFontList,
35984 _swigc__p_wxFontMapper,
35985 _swigc__p_wxGBSizerItem,
35986 _swigc__p_wxGCDC,
35987 _swigc__p_wxGDIObjListBase,
35988 _swigc__p_wxGDIObject,
35989 _swigc__p_wxGIFHandler,
35990 _swigc__p_wxGraphicsContext,
35991 _swigc__p_wxGraphicsPath,
35992 _swigc__p_wxGridBagSizer,
35993 _swigc__p_wxGridSizer,
35994 _swigc__p_wxHeaderButtonParams,
35995 _swigc__p_wxICOHandler,
35996 _swigc__p_wxIcon,
35997 _swigc__p_wxIconBundle,
35998 _swigc__p_wxIconLocation,
35999 _swigc__p_wxIconizeEvent,
36000 _swigc__p_wxIdleEvent,
36001 _swigc__p_wxImage,
36002 _swigc__p_wxImageHandler,
36003 _swigc__p_wxImageList,
36004 _swigc__p_wxIndividualLayoutConstraint,
36005 _swigc__p_wxInitDialogEvent,
36006 _swigc__p_wxJPEGHandler,
36007 _swigc__p_wxKeyEvent,
36008 _swigc__p_wxLanguageInfo,
36009 _swigc__p_wxLayoutConstraints,
36010 _swigc__p_wxLocale,
36011 _swigc__p_wxMask,
36012 _swigc__p_wxMaximizeEvent,
36013 _swigc__p_wxMemoryDC,
36014 _swigc__p_wxMenu,
36015 _swigc__p_wxMenuBar,
36016 _swigc__p_wxMenuEvent,
36017 _swigc__p_wxMenuItem,
36018 _swigc__p_wxMetaFile,
36019 _swigc__p_wxMetaFileDC,
36020 _swigc__p_wxMirrorDC,
36021 _swigc__p_wxMouseCaptureChangedEvent,
36022 _swigc__p_wxMouseCaptureLostEvent,
36023 _swigc__p_wxMouseEvent,
36024 _swigc__p_wxMoveEvent,
36025 _swigc__p_wxNativeEncodingInfo,
36026 _swigc__p_wxNativeFontInfo,
36027 _swigc__p_wxNativePixelData,
36028 _swigc__p_wxNativePixelData_Accessor,
36029 _swigc__p_wxNavigationKeyEvent,
36030 _swigc__p_wxNcPaintEvent,
36031 _swigc__p_wxNotifyEvent,
36032 _swigc__p_wxObject,
36033 _swigc__p_wxOverlay,
36034 _swigc__p_wxPCXHandler,
36035 _swigc__p_wxPNGHandler,
36036 _swigc__p_wxPNMHandler,
36037 _swigc__p_wxPaintDC,
36038 _swigc__p_wxPaintEvent,
36039 _swigc__p_wxPalette,
36040 _swigc__p_wxPaletteChangedEvent,
36041 _swigc__p_wxPaperSize,
36042 _swigc__p_wxPen,
36043 _swigc__p_wxPenList,
36044 _swigc__p_wxPixelDataBase,
36045 _swigc__p_wxPoint,
36046 _swigc__p_wxPoint2D,
36047 _swigc__p_wxPostScriptDC,
36048 _swigc__p_wxPrintData,
36049 _swigc__p_wxPrinterDC,
36050 _swigc__p_wxPseudoDC,
36051 _swigc__p_wxPyApp,
36052 _swigc__p_wxPyCommandEvent,
36053 _swigc__p_wxPyEvent,
36054 _swigc__p_wxPyFontEnumerator,
36055 _swigc__p_wxPyImageHandler,
36056 _swigc__p_wxPyLocale,
36057 _swigc__p_wxPySizer,
36058 _swigc__p_wxPyValidator,
36059 _swigc__p_wxQueryNewPaletteEvent,
36060 _swigc__p_wxRect,
36061 _swigc__p_wxRegion,
36062 _swigc__p_wxRegionIterator,
36063 _swigc__p_wxRendererNative,
36064 _swigc__p_wxRendererVersion,
36065 _swigc__p_wxScreenDC,
36066 _swigc__p_wxScrollEvent,
36067 _swigc__p_wxScrollWinEvent,
36068 _swigc__p_wxSetCursorEvent,
36069 _swigc__p_wxShowEvent,
36070 _swigc__p_wxSize,
36071 _swigc__p_wxSizeEvent,
36072 _swigc__p_wxSizer,
36073 _swigc__p_wxSizerItem,
36074 _swigc__p_wxSplitterRenderParams,
36075 _swigc__p_wxStaticBoxSizer,
36076 _swigc__p_wxStdDialogButtonSizer,
36077 _swigc__p_wxStockGDI,
36078 _swigc__p_wxString,
36079 _swigc__p_wxSysColourChangedEvent,
36080 _swigc__p_wxTIFFHandler,
36081 _swigc__p_wxUpdateUIEvent,
36082 _swigc__p_wxValidator,
36083 _swigc__p_wxWindow,
36084 _swigc__p_wxWindowCreateEvent,
36085 _swigc__p_wxWindowDC,
36086 _swigc__p_wxWindowDestroyEvent,
36087 _swigc__p_wxXPMHandler,
36088 };
36089
36090
36091 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
36092
36093 static swig_const_info swig_const_table[] = {
36094 {0, 0, 0, 0.0, 0, 0}};
36095
36096 #ifdef __cplusplus
36097 }
36098 #endif
36099 /* -----------------------------------------------------------------------------
36100 * Type initialization:
36101 * This problem is tough by the requirement that no dynamic
36102 * memory is used. Also, since swig_type_info structures store pointers to
36103 * swig_cast_info structures and swig_cast_info structures store pointers back
36104 * to swig_type_info structures, we need some lookup code at initialization.
36105 * The idea is that swig generates all the structures that are needed.
36106 * The runtime then collects these partially filled structures.
36107 * The SWIG_InitializeModule function takes these initial arrays out of
36108 * swig_module, and does all the lookup, filling in the swig_module.types
36109 * array with the correct data and linking the correct swig_cast_info
36110 * structures together.
36111 *
36112 * The generated swig_type_info structures are assigned staticly to an initial
36113 * array. We just loop though that array, and handle each type individually.
36114 * First we lookup if this type has been already loaded, and if so, use the
36115 * loaded structure instead of the generated one. Then we have to fill in the
36116 * cast linked list. The cast data is initially stored in something like a
36117 * two-dimensional array. Each row corresponds to a type (there are the same
36118 * number of rows as there are in the swig_type_initial array). Each entry in
36119 * a column is one of the swig_cast_info structures for that type.
36120 * The cast_initial array is actually an array of arrays, because each row has
36121 * a variable number of columns. So to actually build the cast linked list,
36122 * we find the array of casts associated with the type, and loop through it
36123 * adding the casts to the list. The one last trick we need to do is making
36124 * sure the type pointer in the swig_cast_info struct is correct.
36125 *
36126 * First off, we lookup the cast->type name to see if it is already loaded.
36127 * There are three cases to handle:
36128 * 1) If the cast->type has already been loaded AND the type we are adding
36129 * casting info to has not been loaded (it is in this module), THEN we
36130 * replace the cast->type pointer with the type pointer that has already
36131 * been loaded.
36132 * 2) If BOTH types (the one we are adding casting info to, and the
36133 * cast->type) are loaded, THEN the cast info has already been loaded by
36134 * the previous module so we just ignore it.
36135 * 3) Finally, if cast->type has not already been loaded, then we add that
36136 * swig_cast_info to the linked list (because the cast->type) pointer will
36137 * be correct.
36138 * ----------------------------------------------------------------------------- */
36139
36140 #ifdef __cplusplus
36141 extern "C" {
36142 #if 0
36143 } /* c-mode */
36144 #endif
36145 #endif
36146
36147 #if 0
36148 #define SWIGRUNTIME_DEBUG
36149 #endif
36150
36151 SWIGRUNTIME void
36152 SWIG_InitializeModule(void *clientdata) {
36153 size_t i;
36154 swig_module_info *module_head;
36155 static int init_run = 0;
36156
36157 clientdata = clientdata;
36158
36159 if (init_run) return;
36160 init_run = 1;
36161
36162 /* Initialize the swig_module */
36163 swig_module.type_initial = swig_type_initial;
36164 swig_module.cast_initial = swig_cast_initial;
36165
36166 /* Try and load any already created modules */
36167 module_head = SWIG_GetModule(clientdata);
36168 if (module_head) {
36169 swig_module.next = module_head->next;
36170 module_head->next = &swig_module;
36171 } else {
36172 /* This is the first module loaded */
36173 swig_module.next = &swig_module;
36174 SWIG_SetModule(clientdata, &swig_module);
36175 }
36176
36177 /* Now work on filling in swig_module.types */
36178 #ifdef SWIGRUNTIME_DEBUG
36179 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
36180 #endif
36181 for (i = 0; i < swig_module.size; ++i) {
36182 swig_type_info *type = 0;
36183 swig_type_info *ret;
36184 swig_cast_info *cast;
36185
36186 #ifdef SWIGRUNTIME_DEBUG
36187 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
36188 #endif
36189
36190 /* if there is another module already loaded */
36191 if (swig_module.next != &swig_module) {
36192 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
36193 }
36194 if (type) {
36195 /* Overwrite clientdata field */
36196 #ifdef SWIGRUNTIME_DEBUG
36197 printf("SWIG_InitializeModule: found type %s\n", type->name);
36198 #endif
36199 if (swig_module.type_initial[i]->clientdata) {
36200 type->clientdata = swig_module.type_initial[i]->clientdata;
36201 #ifdef SWIGRUNTIME_DEBUG
36202 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
36203 #endif
36204 }
36205 } else {
36206 type = swig_module.type_initial[i];
36207 }
36208
36209 /* Insert casting types */
36210 cast = swig_module.cast_initial[i];
36211 while (cast->type) {
36212 /* Don't need to add information already in the list */
36213 ret = 0;
36214 #ifdef SWIGRUNTIME_DEBUG
36215 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
36216 #endif
36217 if (swig_module.next != &swig_module) {
36218 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
36219 #ifdef SWIGRUNTIME_DEBUG
36220 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
36221 #endif
36222 }
36223 if (ret) {
36224 if (type == swig_module.type_initial[i]) {
36225 #ifdef SWIGRUNTIME_DEBUG
36226 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
36227 #endif
36228 cast->type = ret;
36229 ret = 0;
36230 } else {
36231 /* Check for casting already in the list */
36232 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
36233 #ifdef SWIGRUNTIME_DEBUG
36234 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
36235 #endif
36236 if (!ocast) ret = 0;
36237 }
36238 }
36239
36240 if (!ret) {
36241 #ifdef SWIGRUNTIME_DEBUG
36242 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
36243 #endif
36244 if (type->cast) {
36245 type->cast->prev = cast;
36246 cast->next = type->cast;
36247 }
36248 type->cast = cast;
36249 }
36250 cast++;
36251 }
36252 /* Set entry in modules->types array equal to the type */
36253 swig_module.types[i] = type;
36254 }
36255 swig_module.types[i] = 0;
36256
36257 #ifdef SWIGRUNTIME_DEBUG
36258 printf("**** SWIG_InitializeModule: Cast List ******\n");
36259 for (i = 0; i < swig_module.size; ++i) {
36260 int j = 0;
36261 swig_cast_info *cast = swig_module.cast_initial[i];
36262 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
36263 while (cast->type) {
36264 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
36265 cast++;
36266 ++j;
36267 }
36268 printf("---- Total casts: %d\n",j);
36269 }
36270 printf("**** SWIG_InitializeModule: Cast List ******\n");
36271 #endif
36272 }
36273
36274 /* This function will propagate the clientdata field of type to
36275 * any new swig_type_info structures that have been added into the list
36276 * of equivalent types. It is like calling
36277 * SWIG_TypeClientData(type, clientdata) a second time.
36278 */
36279 SWIGRUNTIME void
36280 SWIG_PropagateClientData(void) {
36281 size_t i;
36282 swig_cast_info *equiv;
36283 static int init_run = 0;
36284
36285 if (init_run) return;
36286 init_run = 1;
36287
36288 for (i = 0; i < swig_module.size; i++) {
36289 if (swig_module.types[i]->clientdata) {
36290 equiv = swig_module.types[i]->cast;
36291 while (equiv) {
36292 if (!equiv->converter) {
36293 if (equiv->type && !equiv->type->clientdata)
36294 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
36295 }
36296 equiv = equiv->next;
36297 }
36298 }
36299 }
36300 }
36301
36302 #ifdef __cplusplus
36303 #if 0
36304 {
36305 /* c-mode */
36306 #endif
36307 }
36308 #endif
36309
36310
36311
36312 #ifdef __cplusplus
36313 extern "C" {
36314 #endif
36315
36316 /* Python-specific SWIG API */
36317 #define SWIG_newvarlink() SWIG_Python_newvarlink()
36318 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
36319 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
36320
36321 /* -----------------------------------------------------------------------------
36322 * global variable support code.
36323 * ----------------------------------------------------------------------------- */
36324
36325 typedef struct swig_globalvar {
36326 char *name; /* Name of global variable */
36327 PyObject *(*get_attr)(void); /* Return the current value */
36328 int (*set_attr)(PyObject *); /* Set the value */
36329 struct swig_globalvar *next;
36330 } swig_globalvar;
36331
36332 typedef struct swig_varlinkobject {
36333 PyObject_HEAD
36334 swig_globalvar *vars;
36335 } swig_varlinkobject;
36336
36337 SWIGINTERN PyObject *
36338 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
36339 return PyString_FromString("<Swig global variables>");
36340 }
36341
36342 SWIGINTERN PyObject *
36343 swig_varlink_str(swig_varlinkobject *v) {
36344 PyObject *str = PyString_FromString("(");
36345 swig_globalvar *var;
36346 for (var = v->vars; var; var=var->next) {
36347 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
36348 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
36349 }
36350 PyString_ConcatAndDel(&str,PyString_FromString(")"));
36351 return str;
36352 }
36353
36354 SWIGINTERN int
36355 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
36356 PyObject *str = swig_varlink_str(v);
36357 fprintf(fp,"Swig global variables ");
36358 fprintf(fp,"%s\n", PyString_AsString(str));
36359 Py_DECREF(str);
36360 return 0;
36361 }
36362
36363 SWIGINTERN void
36364 swig_varlink_dealloc(swig_varlinkobject *v) {
36365 swig_globalvar *var = v->vars;
36366 while (var) {
36367 swig_globalvar *n = var->next;
36368 free(var->name);
36369 free(var);
36370 var = n;
36371 }
36372 }
36373
36374 SWIGINTERN PyObject *
36375 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
36376 PyObject *res = NULL;
36377 swig_globalvar *var = v->vars;
36378 while (var) {
36379 if (strcmp(var->name,n) == 0) {
36380 res = (*var->get_attr)();
36381 break;
36382 }
36383 var = var->next;
36384 }
36385 if (res == NULL && !PyErr_Occurred()) {
36386 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
36387 }
36388 return res;
36389 }
36390
36391 SWIGINTERN int
36392 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
36393 int res = 1;
36394 swig_globalvar *var = v->vars;
36395 while (var) {
36396 if (strcmp(var->name,n) == 0) {
36397 res = (*var->set_attr)(p);
36398 break;
36399 }
36400 var = var->next;
36401 }
36402 if (res == 1 && !PyErr_Occurred()) {
36403 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
36404 }
36405 return res;
36406 }
36407
36408 SWIGINTERN PyTypeObject*
36409 swig_varlink_type(void) {
36410 static char varlink__doc__[] = "Swig var link object";
36411 static PyTypeObject varlink_type;
36412 static int type_init = 0;
36413 if (!type_init) {
36414 const PyTypeObject tmp
36415 = {
36416 PyObject_HEAD_INIT(NULL)
36417 0, /* Number of items in variable part (ob_size) */
36418 (char *)"swigvarlink", /* Type name (tp_name) */
36419 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
36420 0, /* Itemsize (tp_itemsize) */
36421 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
36422 (printfunc) swig_varlink_print, /* Print (tp_print) */
36423 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
36424 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
36425 0, /* tp_compare */
36426 (reprfunc) swig_varlink_repr, /* tp_repr */
36427 0, /* tp_as_number */
36428 0, /* tp_as_sequence */
36429 0, /* tp_as_mapping */
36430 0, /* tp_hash */
36431 0, /* tp_call */
36432 (reprfunc)swig_varlink_str, /* tp_str */
36433 0, /* tp_getattro */
36434 0, /* tp_setattro */
36435 0, /* tp_as_buffer */
36436 0, /* tp_flags */
36437 varlink__doc__, /* tp_doc */
36438 0, /* tp_traverse */
36439 0, /* tp_clear */
36440 0, /* tp_richcompare */
36441 0, /* tp_weaklistoffset */
36442 #if PY_VERSION_HEX >= 0x02020000
36443 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
36444 #endif
36445 #if PY_VERSION_HEX >= 0x02030000
36446 0, /* tp_del */
36447 #endif
36448 #ifdef COUNT_ALLOCS
36449 0,0,0,0 /* tp_alloc -> tp_next */
36450 #endif
36451 };
36452 varlink_type = tmp;
36453 varlink_type.ob_type = &PyType_Type;
36454 type_init = 1;
36455 }
36456 return &varlink_type;
36457 }
36458
36459 /* Create a variable linking object for use later */
36460 SWIGINTERN PyObject *
36461 SWIG_Python_newvarlink(void) {
36462 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
36463 if (result) {
36464 result->vars = 0;
36465 }
36466 return ((PyObject*) result);
36467 }
36468
36469 SWIGINTERN void
36470 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
36471 swig_varlinkobject *v = (swig_varlinkobject *) p;
36472 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
36473 if (gv) {
36474 size_t size = strlen(name)+1;
36475 gv->name = (char *)malloc(size);
36476 if (gv->name) {
36477 strncpy(gv->name,name,size);
36478 gv->get_attr = get_attr;
36479 gv->set_attr = set_attr;
36480 gv->next = v->vars;
36481 }
36482 }
36483 v->vars = gv;
36484 }
36485
36486 SWIGINTERN PyObject *
36487 SWIG_globals() {
36488 static PyObject *_SWIG_globals = 0;
36489 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
36490 return _SWIG_globals;
36491 }
36492
36493 /* -----------------------------------------------------------------------------
36494 * constants/methods manipulation
36495 * ----------------------------------------------------------------------------- */
36496
36497 /* Install Constants */
36498 SWIGINTERN void
36499 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
36500 PyObject *obj = 0;
36501 size_t i;
36502 for (i = 0; constants[i].type; ++i) {
36503 switch(constants[i].type) {
36504 case SWIG_PY_POINTER:
36505 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
36506 break;
36507 case SWIG_PY_BINARY:
36508 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
36509 break;
36510 default:
36511 obj = 0;
36512 break;
36513 }
36514 if (obj) {
36515 PyDict_SetItemString(d, constants[i].name, obj);
36516 Py_DECREF(obj);
36517 }
36518 }
36519 }
36520
36521 /* -----------------------------------------------------------------------------*/
36522 /* Fix SwigMethods to carry the callback ptrs when needed */
36523 /* -----------------------------------------------------------------------------*/
36524
36525 SWIGINTERN void
36526 SWIG_Python_FixMethods(PyMethodDef *methods,
36527 swig_const_info *const_table,
36528 swig_type_info **types,
36529 swig_type_info **types_initial) {
36530 size_t i;
36531 for (i = 0; methods[i].ml_name; ++i) {
36532 const char *c = methods[i].ml_doc;
36533 if (c && (c = strstr(c, "swig_ptr: "))) {
36534 int j;
36535 swig_const_info *ci = 0;
36536 const char *name = c + 10;
36537 for (j = 0; const_table[j].type; ++j) {
36538 if (strncmp(const_table[j].name, name,
36539 strlen(const_table[j].name)) == 0) {
36540 ci = &(const_table[j]);
36541 break;
36542 }
36543 }
36544 if (ci) {
36545 size_t shift = (ci->ptype) - types;
36546 swig_type_info *ty = types_initial[shift];
36547 size_t ldoc = (c - methods[i].ml_doc);
36548 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
36549 char *ndoc = (char*)malloc(ldoc + lptr + 10);
36550 if (ndoc) {
36551 char *buff = ndoc;
36552 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
36553 if (ptr) {
36554 strncpy(buff, methods[i].ml_doc, ldoc);
36555 buff += ldoc;
36556 strncpy(buff, "swig_ptr: ", 10);
36557 buff += 10;
36558 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
36559 methods[i].ml_doc = ndoc;
36560 }
36561 }
36562 }
36563 }
36564 }
36565 }
36566
36567 #ifdef __cplusplus
36568 }
36569 #endif
36570
36571 /* -----------------------------------------------------------------------------*
36572 * Partial Init method
36573 * -----------------------------------------------------------------------------*/
36574
36575 #ifdef __cplusplus
36576 extern "C"
36577 #endif
36578 SWIGEXPORT void SWIG_init(void) {
36579 PyObject *m, *d;
36580
36581 /* Fix SwigMethods to carry the callback ptrs when needed */
36582 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
36583
36584 m = Py_InitModule((char *) SWIG_name, SwigMethods);
36585 d = PyModule_GetDict(m);
36586
36587 SWIG_InitializeModule(0);
36588 SWIG_InstallConstants(d,swig_const_table);
36589
36590
36591 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
36592 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
36593 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
36594 SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT)));
36595 SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE)));
36596 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
36597 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
36598 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
36599 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
36600 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
36601 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
36602 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
36603 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
36604 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
36605 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
36606 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
36607 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
36608 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
36609 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
36610 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
36611 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
36612 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
36613 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
36614 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
36615 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
36616 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
36617 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
36618 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
36619 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
36620 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
36621 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
36622 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
36623 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
36624 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
36625 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
36626 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
36627 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
36628 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
36629 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
36630 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
36631 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
36632 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
36633 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
36634 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
36635 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
36636 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
36637 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
36638 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
36639 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
36640 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
36641 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
36642 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
36643 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
36644 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
36645 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
36646 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
36647 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
36648 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
36649 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
36650 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
36651 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
36652 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
36653 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
36654 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
36655 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
36656 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
36657 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
36658 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
36659 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
36660 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
36661 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
36662 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
36663 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
36664 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
36665 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
36666 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
36667 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
36668 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
36669 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
36670 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
36671 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
36672 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
36673 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
36674 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
36675 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
36676 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
36677 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
36678 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
36679 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
36680 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
36681 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
36682 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
36683 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
36684 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
36685 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
36686 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
36687 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
36688 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
36689 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
36690 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
36691 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
36692 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
36693 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
36694 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
36695 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
36696 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
36697 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
36698 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
36699 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
36700 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
36701 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
36702 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
36703 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
36704 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
36705 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
36706 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
36707 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
36708 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
36709 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
36710 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
36711 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
36712 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
36713 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
36714 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
36715 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
36716 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
36717 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
36718 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
36719 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
36720 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
36721 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
36722 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
36723
36724 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
36725
36726 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
36727 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
36728 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
36729 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
36730 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
36731 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
36732 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
36733 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
36734 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
36735 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
36736 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
36737 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
36738 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
36739 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
36740 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
36741 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
36742 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
36743 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
36744 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
36745 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
36746 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
36747 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
36748 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
36749 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
36750 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
36751 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
36752 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
36753 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
36754 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
36755 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
36756 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
36757 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
36758 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
36759 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
36760 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
36761 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
36762 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
36763 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
36764 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
36765 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
36766 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
36767 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
36768 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
36769 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
36770 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
36771 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
36772 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
36773 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
36774 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
36775 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
36776 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
36777 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
36778 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
36779 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
36780 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
36781 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
36782 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
36783 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
36784 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
36785 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
36786 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
36787 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
36788 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
36789 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
36790 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
36791 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
36792 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
36793 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
36794 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
36795 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
36796 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
36797 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
36798 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
36799 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
36800 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
36801 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
36802 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
36803 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
36804 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
36805 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
36806 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
36807 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
36808 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
36809 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
36810 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
36811 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
36812 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
36813 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
36814 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
36815 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
36816 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
36817 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
36818 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
36819 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
36820 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
36821 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
36822 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
36823 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
36824 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
36825 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
36826 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
36827 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
36828 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
36829 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
36830 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
36831 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
36832 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
36833 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
36834 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
36835 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
36836 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
36837 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
36838 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
36839 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
36840 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
36841 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
36842 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
36843 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
36844 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
36845 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
36846 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
36847 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
36848 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
36849 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
36850 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
36851 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
36852 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
36853 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
36854 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
36855 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
36856 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
36857 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
36858 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
36859 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
36860 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
36861 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
36862 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
36863 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
36864 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
36865 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
36866 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
36867 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
36868 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
36869 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
36870 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
36871 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
36872 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
36873 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
36874 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
36875 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
36876 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
36877 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
36878 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
36879 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
36880 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
36881 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
36882 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
36883 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
36884 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
36885 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
36886 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
36887 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
36888 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
36889 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
36890 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
36891 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
36892 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
36893 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
36894 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
36895 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
36896 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
36897 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
36898 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
36899 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
36900 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
36901 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
36902 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
36903 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
36904 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
36905 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
36906 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
36907 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
36908 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
36909 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
36910 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
36911 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
36912 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
36913 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
36914 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
36915 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
36916 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
36917 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
36918 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
36919 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
36920 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
36921 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
36922 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
36923 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
36924 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
36925 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
36926 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
36927 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
36928 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
36929 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
36930 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
36931 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
36932 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
36933 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
36934 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
36935 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
36936 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
36937 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
36938 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
36939 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
36940 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
36941 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
36942 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
36943 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
36944 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
36945 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
36946 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
36947 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
36948 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
36949 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
36950 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
36951 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
36952 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
36953 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
36954 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
36955 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
36956 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
36957 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
36958 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
36959 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
36960 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
36961 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
36962 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
36963 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
36964 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
36965 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
36966 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
36967 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
36968 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
36969 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
36970 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
36971 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
36972 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
36973 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
36974 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
36975 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
36976 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
36977 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
36978 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
36979 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
36980 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
36981 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
36982 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
36983 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
36984 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
36985 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
36986 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
36987 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
36988 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
36989 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
36990 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
36991 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
36992 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
36993 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
36994 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
36995 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
36996 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
36997 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
36998 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
36999 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
37000 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
37001 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
37002 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
37003 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
37004 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
37005 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
37006 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
37007 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
37008 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
37009 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
37010 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
37011 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
37012 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
37013 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
37014 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
37015 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
37016 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
37017 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
37018 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
37019 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
37020 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
37021 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
37022 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
37023 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
37024 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
37025 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
37026 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
37027 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
37028 SWIG_Python_SetConstant(d, "CONTROL_SPECIAL",SWIG_From_int(static_cast< int >(wxCONTROL_SPECIAL)));
37029 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
37030 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
37031 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
37032 SWIG_Python_SetConstant(d, "CONTROL_SIZEGRIP",SWIG_From_int(static_cast< int >(wxCONTROL_SIZEGRIP)));
37033 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
37034 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
37035 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
37036 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
37037 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
37038 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
37039 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
37040 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE)));
37041 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP)));
37042 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN)));
37043 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
37044 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
37045
37046 // Work around a chicken/egg problem in drawlist.cpp
37047 wxPyDrawList_SetAPIPtr();
37048
37049 }
37050