]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/_gdi_wrap.cpp
reSWIGged
[wxWidgets.git] / wxPython / src / msw / _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 void wxBitmap_SetHandle(wxBitmap *self,long handle){ self->SetHandle((WXHANDLE)handle); }
2955 SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
2956 wxSize size(self->GetWidth(), self->GetHeight());
2957 return size;
2958 }
2959 SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
2960 wxMask *mask = new wxMask(*self, colour);
2961 self->SetMask(mask);
2962 }
2963 SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
2964 self->SetWidth(size.x);
2965 self->SetHeight(size.y);
2966 }
2967 SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : false; }
2968 SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : true; }
2969
2970 // See http://tinyurl.com/e5adr for what premultiplying alpha means. It
2971 // appears to me that the other platforms are already doing it, so I'll just
2972 // automatically do it for wxMSW here.
2973 #ifdef __WXMSW__
2974 #define wxPy_premultiply(p, a) ((p) * (a) / 0xff)
2975 #define wxPy_unpremultiply(p, a) ((a) ? ((p) * 0xff / (a)) : (p))
2976 #else
2977 #define wxPy_premultiply(p, a) (p)
2978 #define wxPy_unpremultiply(p, a) (p)
2979 #endif
2980
2981
2982 wxBitmap* _BitmapFromBufferAlpha(int width, int height,
2983 buffer data, int DATASIZE,
2984 buffer alpha, int ALPHASIZE)
2985 {
2986 if (DATASIZE != width*height*3) {
2987 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
2988 return NULL;
2989 }
2990
2991 if (ALPHASIZE != width*height) {
2992 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
2993 return NULL;
2994 }
2995
2996 wxBitmap* bmp = new wxBitmap(width, height, 32);
2997 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
2998 if (! pixData) {
2999 // raise an exception...
3000 wxPyErr_SetString(PyExc_RuntimeError,
3001 "Failed to gain raw access to bitmap data.");
3002 return NULL;
3003 }
3004
3005 pixData.UseAlpha();
3006 wxAlphaPixelData::Iterator p(pixData);
3007 for (int y=0; y<height; y++) {
3008 wxAlphaPixelData::Iterator rowStart = p;
3009 for (int x=0; x<width; x++) {
3010 byte a = *(alpha++);
3011 p.Red() = wxPy_premultiply(*(data++), a);
3012 p.Green() = wxPy_premultiply(*(data++), a);
3013 p.Blue() = wxPy_premultiply(*(data++), a);
3014 p.Alpha() = a;
3015 ++p;
3016 }
3017 p = rowStart;
3018 p.OffsetY(pixData, 1);
3019 }
3020 return bmp;
3021 }
3022
3023 wxBitmap* _BitmapFromBuffer(int width, int height, buffer data, int DATASIZE)
3024 {
3025 if (DATASIZE != width*height*3) {
3026 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3027 return NULL;
3028 }
3029
3030 wxBitmap* bmp = new wxBitmap(width, height, 24);
3031 wxNativePixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3032 if (! pixData) {
3033 // raise an exception...
3034 wxPyErr_SetString(PyExc_RuntimeError,
3035 "Failed to gain raw access to bitmap data.");
3036 return NULL;
3037 }
3038
3039 wxNativePixelData::Iterator p(pixData);
3040 for (int y=0; y<height; y++) {
3041 wxNativePixelData::Iterator rowStart = p;
3042 for (int x=0; x<width; x++) {
3043 p.Red() = *(data++);
3044 p.Green() = *(data++);
3045 p.Blue() = *(data++);
3046 ++p;
3047 }
3048 p = rowStart;
3049 p.OffsetY(pixData, 1);
3050 }
3051 return bmp;
3052 }
3053
3054
3055 wxBitmap* _BitmapFromBufferRGBA(int width, int height, buffer data, int DATASIZE)
3056 {
3057 if (DATASIZE != width*height*4) {
3058 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3059 return NULL;
3060 }
3061
3062 wxBitmap* bmp = new wxBitmap(width, height, 32);
3063 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3064 if (! pixData) {
3065 // raise an exception...
3066 wxPyErr_SetString(PyExc_RuntimeError,
3067 "Failed to gain raw access to bitmap data.");
3068 return NULL;
3069 }
3070
3071 pixData.UseAlpha();
3072 wxAlphaPixelData::Iterator p(pixData);
3073 for (int y=0; y<height; y++) {
3074 wxAlphaPixelData::Iterator rowStart = p;
3075 for (int x=0; x<width; x++) {
3076 byte a = data[3];
3077 p.Red() = wxPy_premultiply(*(data++), a);
3078 p.Green() = wxPy_premultiply(*(data++), a);
3079 p.Blue() = wxPy_premultiply(*(data++), a);
3080 p.Alpha() = a; data++;
3081 ++p;
3082 }
3083 p = rowStart;
3084 p.OffsetY(pixData, 1);
3085 }
3086 return bmp;
3087 }
3088
3089
3090 typedef wxNativePixelData::Iterator wxNativePixelData_Accessor;
3091
3092 SWIGINTERN bool wxNativePixelData___nonzero__(wxNativePixelData *self){ return self->operator bool(); }
3093 SWIGINTERN void wxNativePixelData_Accessor_nextPixel(wxNativePixelData_Accessor *self){ ++(*self); }
3094 SWIGINTERN void wxNativePixelData_Accessor_Set(wxNativePixelData_Accessor *self,byte red,byte green,byte blue){
3095 self->Red() = red;
3096 self->Green() = green;
3097 self->Blue() = blue;
3098 }
3099 SWIGINTERN PyObject *wxNativePixelData_Accessor_Get(wxNativePixelData_Accessor *self){
3100 PyObject* rv = PyTuple_New(3);
3101 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
3102 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
3103 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
3104 return rv;
3105 }
3106
3107 typedef wxAlphaPixelData::Iterator wxAlphaPixelData_Accessor;
3108
3109 SWIGINTERN bool wxAlphaPixelData___nonzero__(wxAlphaPixelData *self){ return self->operator bool(); }
3110 SWIGINTERN void wxAlphaPixelData_Accessor_nextPixel(wxAlphaPixelData_Accessor *self){ ++(*self); }
3111 SWIGINTERN void wxAlphaPixelData_Accessor_Set(wxAlphaPixelData_Accessor *self,byte red,byte green,byte blue,byte alpha){
3112 self->Red() = wxPy_premultiply(red, alpha);
3113 self->Green() = wxPy_premultiply(green, alpha);
3114 self->Blue() = wxPy_premultiply(blue, alpha);
3115 self->Alpha() = alpha;
3116 }
3117 SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *self){
3118 PyObject* rv = PyTuple_New(4);
3119 int red = self->Red();
3120 int green = self->Green();
3121 int blue = self->Blue();
3122 int alpha = self->Alpha();
3123
3124 PyTuple_SetItem(rv, 0, PyInt_FromLong( wxPy_unpremultiply(red, alpha) ));
3125 PyTuple_SetItem(rv, 1, PyInt_FromLong( wxPy_unpremultiply(green, alpha) ));
3126 PyTuple_SetItem(rv, 2, PyInt_FromLong( wxPy_unpremultiply(blue, alpha) ));
3127 PyTuple_SetItem(rv, 3, PyInt_FromLong( alpha ));
3128 return rv;
3129 }
3130 SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
3131 if ( !colour.IsOk() )
3132 return new wxMask(bitmap, *wxBLACK);
3133 else
3134 return new wxMask(bitmap, colour);
3135 }
3136
3137 #include <wx/iconbndl.h>
3138
3139 SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
3140 wxIcon* icon = new wxIcon();
3141 icon->CopyFromBitmap(bmp);
3142 return icon;
3143 }
3144 SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
3145 char** cArray = NULL;
3146 wxIcon* icon;
3147
3148 cArray = ConvertListOfStrings(listOfStrings);
3149 if (! cArray)
3150 return NULL;
3151 icon = new wxIcon(cArray);
3152 delete [] cArray;
3153 return icon;
3154 }
3155 SWIGINTERN void wxIcon_SetHandle(wxIcon *self,long handle){ self->SetHandle((WXHANDLE)handle); }
3156 SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
3157
3158 return new wxIconLocation(*filename, num);
3159
3160
3161
3162 }
3163 SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
3164
3165 self->SetIndex(num);
3166
3167
3168
3169 }
3170 SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
3171
3172 return self->GetIndex();
3173
3174
3175
3176 }
3177 SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
3178 #ifdef __WXGTK__
3179 wxImage img(cursorName, type);
3180 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
3181 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
3182 return new wxCursor(img);
3183 #else
3184 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
3185 #endif
3186 }
3187 SWIGINTERN void wxCursor_SetHandle(wxCursor *self,long handle){ self->SetHandle((WXHANDLE)handle); }
3188
3189
3190 SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
3191 (*self) ++;
3192 }
3193 SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
3194 return self->operator bool();
3195 }
3196
3197 #include <wx/fontutil.h>
3198 #include <wx/fontmap.h>
3199 #include <wx/fontenum.h>
3200
3201 SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
3202 return self->ToString();
3203 }
3204
3205 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding)
3206 { wxPyRaiseNotImplemented(); return NULL; }
3207
3208 bool wxTestFontEncoding(const wxNativeEncodingInfo& info)
3209 { wxPyRaiseNotImplemented(); return false; }
3210
3211
3212 SWIGINTERNINLINE PyObject *
3213 SWIG_From_size_t (size_t value)
3214 {
3215 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3216 }
3217
3218
3219 SWIGINTERNINLINE int
3220 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3221 {
3222 unsigned long v;
3223 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3224 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3225 return res;
3226 }
3227
3228 SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
3229 wxFontEncoding alt_enc;
3230 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3231 return PyInt_FromLong(alt_enc);
3232 else {
3233 Py_INCREF(Py_None);
3234 return Py_None;
3235 }
3236 }
3237 SWIGINTERN wxFont *new_wxFont(wxString const &info){
3238 wxNativeFontInfo nfi;
3239 nfi.FromString(info);
3240 return new wxFont(nfi);
3241 }
3242 SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3243 return wxFont::New(pointSize, family, flags, face, encoding);
3244 }
3245 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,int family,int style,int weight,bool underlined=false,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3246 return wxFontBase::New(pixelSize, family,
3247 style, weight, underlined,
3248 face, encoding);
3249 }
3250 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3251 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3252 }
3253 SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3254 SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
3255
3256 class wxPyFontEnumerator : public wxFontEnumerator {
3257 public:
3258 wxPyFontEnumerator() {}
3259 ~wxPyFontEnumerator() {}
3260
3261 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3262 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
3263
3264 PYPRIVATE;
3265 };
3266
3267 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3268 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
3269
3270
3271 SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){
3272 PyObject* ret;
3273 wxArrayString arr = wxFontEnumerator::GetEncodings();
3274 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3275 ret = wxArrayString2PyList_helper(arr);
3276 wxPyEndBlockThreads(blocked);
3277 return ret;
3278 }
3279 SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){
3280 PyObject* ret;
3281 wxArrayString arr = wxFontEnumerator::GetFacenames();
3282 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3283 ret = wxArrayString2PyList_helper(arr);
3284 wxPyEndBlockThreads(blocked);
3285 return ret;
3286 }
3287
3288 #include <locale.h>
3289
3290 SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3291 wxLocale* loc;
3292 if (language == -1)
3293 loc = new wxLocale();
3294 else
3295 loc = new wxLocale(language, flags);
3296 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3297 // for the floating point conversions and such to work right.
3298 #if PY_VERSION_HEX < 0x02040000
3299 setlocale(LC_NUMERIC, "C");
3300 #endif
3301 return loc;
3302 }
3303 SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
3304 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
3305 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3306 // for the floating point conversions and such to work right.
3307 #if PY_VERSION_HEX < 0x02040000
3308 setlocale(LC_NUMERIC, "C");
3309 #endif
3310 return rc;
3311 }
3312 SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3313 bool rc = self->Init(language, flags);
3314 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3315 // for the floating point conversions and such to work right.
3316 #if PY_VERSION_HEX < 0x02040000
3317 setlocale(LC_NUMERIC, "C");
3318 #endif
3319 return rc;
3320 }
3321
3322 class wxPyLocale : public wxLocale
3323 {
3324 public:
3325 wxPyLocale();
3326
3327 wxPyLocale(const wxChar *szName, // name (for messages)
3328 const wxChar *szShort = (const wxChar *) NULL, // dir prefix (for msg files)
3329 const wxChar *szLocale = (const wxChar *) NULL, // locale (for setlocale)
3330 bool bLoadDefault = true, // preload wxstd.mo?
3331 bool bConvertEncoding = false); // convert Win<->Unix if necessary?
3332
3333 wxPyLocale(int language, // wxLanguage id or custom language
3334 int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING);
3335
3336 ~wxPyLocale();
3337
3338 virtual const wxChar *GetString(const wxChar *szOrigString,
3339 const wxChar *szDomain = NULL) const;
3340 virtual const wxChar *GetString(const wxChar *szOrigString,
3341 const wxChar *szOrigString2, size_t n,
3342 const wxChar *szDomain = NULL) const;
3343
3344 virtual wxChar *GetSingularString(const wxChar *szOrigString,
3345 const wxChar *szDomain = NULL) const;
3346 virtual wxChar *GetPluralString(const wxChar *szOrigString,
3347 const wxChar *szOrigString2, size_t n,
3348 const wxChar *szDomain = NULL) const;
3349
3350 PYPRIVATE;
3351 private:
3352 DECLARE_NO_COPY_CLASS(wxPyLocale)
3353 };
3354
3355 wxPyLocale::wxPyLocale() : wxLocale()
3356 {
3357 }
3358
3359 wxPyLocale::wxPyLocale(const wxChar *szName, // name (for messages)
3360 const wxChar *szShort, // dir prefix (for msg files)
3361 const wxChar *szLocale, // locale (for setlocale)
3362 bool bLoadDefault, // preload wxstd.mo?
3363 bool bConvertEncoding) // convert Win<->Unix if necessary?
3364 : wxLocale(szName, szShort, szLocale, bLoadDefault, bConvertEncoding)
3365 {
3366 }
3367
3368 wxPyLocale::wxPyLocale(int language, // wxLanguage id or custom language
3369 int flags) : wxLocale(language, flags)
3370 {
3371 }
3372
3373 wxPyLocale::~wxPyLocale()
3374 {
3375 }
3376
3377 const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3378 const wxChar *szDomain) const
3379 {
3380 wxChar *str = GetSingularString(szOrigString, szDomain);
3381 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szDomain);
3382 }
3383
3384 const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3385 const wxChar *szOrigString2, size_t n,
3386 const wxChar *szDomain) const
3387 {
3388 wxChar *str = GetPluralString(szOrigString, szOrigString2, n, szDomain);
3389 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szOrigString2, n, szDomain);
3390 }
3391
3392 wxChar *wxPyLocale::GetSingularString(const wxChar *szOrigString,
3393 const wxChar *szDomain) const
3394 {
3395 bool found;
3396 static wxString str;
3397 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.
3398 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3399 if((found=wxPyCBH_findCallback(m_myInst, "GetSingularString"))) {
3400 PyObject* param1 = wx2PyString(szOrigString);
3401 PyObject* param2 = wx2PyString(szDomain);
3402 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OO)", param1, param2));
3403 Py_DECREF(param1);
3404 Py_DECREF(param2);
3405 if (ret) {
3406 str = Py2wxString(ret);
3407 Py_DECREF(ret);
3408 }
3409 }
3410 wxPyEndBlockThreads(blocked);
3411 return (found ? (wxChar*)str.c_str() : NULL);
3412 }
3413
3414 wxChar *wxPyLocale::GetPluralString(const wxChar *szOrigString,
3415 const wxChar *szOrigString2, size_t n,
3416 const wxChar *szDomain) const
3417 {
3418 bool found;
3419 static wxString str;
3420 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.
3421 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3422 if((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) {
3423 PyObject* param1 = wx2PyString(szOrigString);
3424 PyObject* param2 = wx2PyString(szOrigString2);
3425 PyObject* param4 = wx2PyString(szDomain);
3426 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOiO)", param1, param2, (int)n, param4));
3427 Py_DECREF(param1);
3428 Py_DECREF(param2);
3429 Py_DECREF(param4);
3430 if( ret) {
3431 str = Py2wxString(ret);
3432 Py_DECREF(ret);
3433 }
3434 }
3435 wxPyEndBlockThreads(blocked);
3436 return (found ? (wxChar*)str.c_str() : NULL);
3437 }
3438
3439 SWIGINTERN wxPyLocale *new_wxPyLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3440 wxPyLocale* loc;
3441 if (language == -1)
3442 loc = new wxPyLocale();
3443 else
3444 loc = new wxPyLocale(language, flags);
3445 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3446 // for the floating point conversions and such to work right.
3447 #if PY_VERSION_HEX < 0x02040000
3448 setlocale(LC_NUMERIC, "C");
3449 #endif
3450 return loc;
3451 }
3452
3453 #include "wx/wxPython/pydrawxxx.h"
3454
3455 SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
3456 wxColour col;
3457 self->GetPixel(x, y, &col);
3458 return col;
3459 }
3460 SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
3461 wxColour col;
3462 self->GetPixel(pt, &col);
3463 return col;
3464 }
3465
3466 SWIGINTERN int
3467 SWIG_AsVal_double (PyObject *obj, double* val)
3468 {
3469 if (PyNumber_Check(obj)) {
3470 if (val) *val = PyFloat_AsDouble(obj);
3471 return SWIG_OK;
3472 }
3473 return SWIG_TypeError;
3474 }
3475
3476 SWIGINTERN wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){
3477 wxRect rv;
3478 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3479 return rv;
3480 }
3481 SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
3482 wxRect rect;
3483 self->GetClippingBox(rect);
3484 return rect;
3485 }
3486 SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
3487 wxArrayInt widths;
3488 self->GetPartialTextExtents(text, widths);
3489 return widths;
3490 }
3491
3492 #define SWIG_From_double PyFloat_FromDouble
3493
3494 SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
3495 self->SetLogicalOrigin(point.x, point.y);
3496 }
3497 SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
3498 self->SetDeviceOrigin(point.x, point.y);
3499 }
3500 SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
3501 self->CalcBoundingBox(point.x, point.y);
3502 }
3503 SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3504 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3505 }
3506 SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3507 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3508 }
3509 SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3510 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3511 }
3512 SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3513 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3514 }
3515 SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3516 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3517 }
3518 SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
3519 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3520 }
3521
3522 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3523 *x1 = dc->MinX();
3524 *y1 = dc->MinY();
3525 *x2 = dc->MaxX();
3526 *y2 = dc->MaxY();
3527 }
3528
3529
3530 #include <wx/dcbuffer.h>
3531
3532
3533 #include <wx/dcps.h>
3534
3535
3536 #include <wx/metafile.h>
3537
3538
3539 #include <wx/graphics.h>
3540
3541
3542 #if !wxUSE_GRAPHICS_CONTEXT
3543 // C++ stub classes for platforms that don't have wxGraphicsContext yet.
3544
3545 class wxGraphicsPath
3546 {
3547 public :
3548 wxGraphicsPath() {
3549 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3550 PyErr_SetString(PyExc_NotImplementedError,
3551 "wxGraphicsPath is not available on this platform.");
3552 wxPyEndBlockThreads(blocked);
3553 }
3554 virtual ~wxGraphicsPath() {}
3555
3556 void MoveToPoint( wxDouble, wxDouble ) {}
3557 void AddLineToPoint( wxDouble, wxDouble ) {}
3558 void AddCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, wxDouble ) {}
3559 void CloseSubpath() {}
3560 void GetCurrentPoint( wxDouble&, wxDouble&) {}
3561 void AddArc( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, bool ) {}
3562
3563 void AddQuadCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3564 void AddRectangle( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3565 void AddCircle( wxDouble, wxDouble, wxDouble ) {}
3566 void AddArcToPoint( wxDouble, wxDouble , wxDouble, wxDouble, wxDouble ) {}
3567
3568 wxPoint2DDouble GetCurrentPoint() { return wxPoint2DDouble(0,0); }
3569 void MoveToPoint( const wxPoint2DDouble& ) {}
3570 void AddLineToPoint( const wxPoint2DDouble&) {}
3571 void AddCurveToPoint( const wxPoint2DDouble&, const wxPoint2DDouble&, const wxPoint2DDouble&) {}
3572 void AddArc( const wxPoint2DDouble&, wxDouble, wxDouble, wxDouble, bool) {}
3573 };
3574
3575
3576 class wxGraphicsContext
3577 {
3578 public:
3579 wxGraphicsContext() {
3580 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3581 PyErr_SetString(PyExc_NotImplementedError,
3582 "wxGraphicsContext is not available on this platform.");
3583 wxPyEndBlockThreads(blocked);
3584 }
3585 virtual ~wxGraphicsContext() {}
3586
3587 static wxGraphicsContext* Create( const wxWindowDC&) {
3588 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3589 PyErr_SetString(PyExc_NotImplementedError,
3590 "wxGraphicsPath is not available on this platform.");
3591 wxPyEndBlockThreads(blocked);
3592 return NULL;
3593 }
3594
3595 wxGraphicsPath * CreatePath() { return NULL; }
3596 void PushState() {}
3597 void PopState() {}
3598 void Clip( const wxRegion & ) {}
3599 void Translate( wxDouble , wxDouble ) {}
3600 void Scale( wxDouble , wxDouble ) {}
3601 void Rotate( wxDouble ) {}
3602 void SetPen( const wxPen & ) {}
3603 void SetBrush( const wxBrush & ) {}
3604 void SetLinearGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble ,
3605 const wxColour&, const wxColour&) {}
3606 void SetRadialGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ,
3607 const wxColour &, const wxColour &) {}
3608 void SetFont( const wxFont & ) {}
3609 void SetTextColor( const wxColour & ) {}
3610 void StrokePath( const wxGraphicsPath * ) {}
3611 void FillPath( const wxGraphicsPath *, int ) {}
3612 void DrawPath( const wxGraphicsPath *, int ) {}
3613 void DrawText( const wxString &, wxDouble , wxDouble ) {}
3614 void DrawText( const wxString &, wxDouble , wxDouble , wxDouble ) {}
3615 void GetTextExtent( const wxString &, wxDouble *, wxDouble *,
3616 wxDouble *, wxDouble * ) const {}
3617 void GetPartialTextExtents(const wxString& , wxArrayDouble& ) const {}
3618 void DrawBitmap( const wxBitmap &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3619 void DrawIcon( const wxIcon &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3620 void StrokeLine( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3621 void StrokeLines( size_t , const wxPoint2DDouble *) {}
3622 void StrokeLines( size_t , const wxPoint2DDouble *, const wxPoint2DDouble *) {}
3623 void DrawLines( size_t , const wxPoint2DDouble *, int ) {}
3624 void DrawRectangle( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3625 void DrawEllipse( wxDouble , wxDouble, wxDouble , wxDouble) {}
3626 void DrawRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
3627 };
3628
3629
3630 class wxGCDC: public wxWindowDC
3631 {
3632 public:
3633 wxGCDC(const wxWindowDC&) {
3634 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3635 PyErr_SetString(PyExc_NotImplementedError,
3636 "wxGCDC is not available on this platform.");
3637 wxPyEndBlockThreads(blocked);
3638 }
3639
3640 wxGCDC() {
3641 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3642 PyErr_SetString(PyExc_NotImplementedError,
3643 "wxGCDC is not available on this platform.");
3644 wxPyEndBlockThreads(blocked);
3645 }
3646
3647 virtual ~wxGCDC() {}
3648
3649 wxGraphicsContext* GetGraphicContext() { return NULL; }
3650 };
3651
3652 #endif
3653
3654 SWIGINTERN wxArrayDouble wxGraphicsContext_GetPartialTextExtents(wxGraphicsContext *self,wxString const &text){
3655 wxArrayDouble widths;
3656 self->GetPartialTextExtents(text, widths);
3657 return widths;
3658 }
3659 SWIGINTERN void wxGraphicsContext_StrokeLineSegements(wxGraphicsContext *self,PyObject *beginPoints,PyObject *endPoints){
3660 size_t c1, c2, count;
3661 wxPoint2D* beginP = wxPoint2D_LIST_helper(beginPoints, &c1);
3662 wxPoint2D* endP = wxPoint2D_LIST_helper(endPoints, &c2);
3663
3664 if ( beginP != NULL && endP != NULL )
3665 {
3666 count = wxMin(c1, c2);
3667 self->StrokeLines(count, beginP, endP);
3668 }
3669 delete [] beginP;
3670 delete [] endP;
3671 }
3672
3673
3674 SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
3675 self->AddColour(name, wxColour(red, green, blue));
3676 }
3677
3678 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3679 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3680 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3681 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3682
3683
3684 #include <wx/effects.h>
3685
3686
3687 #include "wx/renderer.h"
3688
3689
3690 SWIGINTERNINLINE PyObject*
3691 SWIG_From_bool (bool value)
3692 {
3693 return PyBool_FromLong(value ? 1 : 0);
3694 }
3695
3696
3697 #include "wx/wxPython/pseudodc.h"
3698
3699 SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){
3700 wxRect rect;
3701 self->GetIdBounds(id, rect);
3702 return rect;
3703 }
3704 #ifdef __cplusplus
3705 extern "C" {
3706 #endif
3707 SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3708 PyObject *resultobj = 0;
3709 wxGDIObject *result = 0 ;
3710
3711 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
3712 {
3713 if (!wxPyCheckForApp()) SWIG_fail;
3714 PyThreadState* __tstate = wxPyBeginAllowThreads();
3715 result = (wxGDIObject *)new wxGDIObject();
3716 wxPyEndAllowThreads(__tstate);
3717 if (PyErr_Occurred()) SWIG_fail;
3718 }
3719 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
3720 return resultobj;
3721 fail:
3722 return NULL;
3723 }
3724
3725
3726 SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3727 PyObject *resultobj = 0;
3728 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3729 void *argp1 = 0 ;
3730 int res1 = 0 ;
3731 PyObject *swig_obj[1] ;
3732
3733 if (!args) SWIG_fail;
3734 swig_obj[0] = args;
3735 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
3736 if (!SWIG_IsOK(res1)) {
3737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3738 }
3739 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3740 {
3741 PyThreadState* __tstate = wxPyBeginAllowThreads();
3742 delete arg1;
3743
3744 wxPyEndAllowThreads(__tstate);
3745 if (PyErr_Occurred()) SWIG_fail;
3746 }
3747 resultobj = SWIG_Py_Void();
3748 return resultobj;
3749 fail:
3750 return NULL;
3751 }
3752
3753
3754 SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3755 PyObject *resultobj = 0;
3756 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3757 bool result;
3758 void *argp1 = 0 ;
3759 int res1 = 0 ;
3760 PyObject *swig_obj[1] ;
3761
3762 if (!args) SWIG_fail;
3763 swig_obj[0] = args;
3764 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
3765 if (!SWIG_IsOK(res1)) {
3766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3767 }
3768 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3769 {
3770 PyThreadState* __tstate = wxPyBeginAllowThreads();
3771 result = (bool)(arg1)->IsNull();
3772 wxPyEndAllowThreads(__tstate);
3773 if (PyErr_Occurred()) SWIG_fail;
3774 }
3775 {
3776 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3777 }
3778 return resultobj;
3779 fail:
3780 return NULL;
3781 }
3782
3783
3784 SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3785 PyObject *obj;
3786 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3787 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
3788 return SWIG_Py_Void();
3789 }
3790
3791 SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3792 return SWIG_Python_InitShadowInstance(args);
3793 }
3794
3795 SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3796 PyObject *resultobj = 0;
3797 byte arg1 = (byte) 0 ;
3798 byte arg2 = (byte) 0 ;
3799 byte arg3 = (byte) 0 ;
3800 byte arg4 = (byte) wxALPHA_OPAQUE ;
3801 wxColour *result = 0 ;
3802 unsigned char val1 ;
3803 int ecode1 = 0 ;
3804 unsigned char val2 ;
3805 int ecode2 = 0 ;
3806 unsigned char val3 ;
3807 int ecode3 = 0 ;
3808 unsigned char val4 ;
3809 int ecode4 = 0 ;
3810 PyObject * obj0 = 0 ;
3811 PyObject * obj1 = 0 ;
3812 PyObject * obj2 = 0 ;
3813 PyObject * obj3 = 0 ;
3814 char * kwnames[] = {
3815 (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
3816 };
3817
3818 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
3819 if (obj0) {
3820 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
3821 if (!SWIG_IsOK(ecode1)) {
3822 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
3823 }
3824 arg1 = static_cast< byte >(val1);
3825 }
3826 if (obj1) {
3827 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
3828 if (!SWIG_IsOK(ecode2)) {
3829 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
3830 }
3831 arg2 = static_cast< byte >(val2);
3832 }
3833 if (obj2) {
3834 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
3835 if (!SWIG_IsOK(ecode3)) {
3836 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
3837 }
3838 arg3 = static_cast< byte >(val3);
3839 }
3840 if (obj3) {
3841 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
3842 if (!SWIG_IsOK(ecode4)) {
3843 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'");
3844 }
3845 arg4 = static_cast< byte >(val4);
3846 }
3847 {
3848 PyThreadState* __tstate = wxPyBeginAllowThreads();
3849 result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4);
3850 wxPyEndAllowThreads(__tstate);
3851 if (PyErr_Occurred()) SWIG_fail;
3852 }
3853 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
3854 return resultobj;
3855 fail:
3856 return NULL;
3857 }
3858
3859
3860 SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3861 PyObject *resultobj = 0;
3862 wxString *arg1 = 0 ;
3863 wxColour *result = 0 ;
3864 bool temp1 = false ;
3865 PyObject * obj0 = 0 ;
3866 char * kwnames[] = {
3867 (char *) "colorName", NULL
3868 };
3869
3870 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
3871 {
3872 arg1 = wxString_in_helper(obj0);
3873 if (arg1 == NULL) SWIG_fail;
3874 temp1 = true;
3875 }
3876 {
3877 if (!wxPyCheckForApp()) SWIG_fail;
3878 PyThreadState* __tstate = wxPyBeginAllowThreads();
3879 result = (wxColour *)new wxColour((wxString const &)*arg1);
3880 wxPyEndAllowThreads(__tstate);
3881 if (PyErr_Occurred()) SWIG_fail;
3882 }
3883 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3884 {
3885 if (temp1)
3886 delete arg1;
3887 }
3888 return resultobj;
3889 fail:
3890 {
3891 if (temp1)
3892 delete arg1;
3893 }
3894 return NULL;
3895 }
3896
3897
3898 SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3899 PyObject *resultobj = 0;
3900 unsigned long arg1 ;
3901 wxColour *result = 0 ;
3902 unsigned long val1 ;
3903 int ecode1 = 0 ;
3904 PyObject * obj0 = 0 ;
3905 char * kwnames[] = {
3906 (char *) "colRGB", NULL
3907 };
3908
3909 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
3910 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
3911 if (!SWIG_IsOK(ecode1)) {
3912 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
3913 }
3914 arg1 = static_cast< unsigned long >(val1);
3915 {
3916 PyThreadState* __tstate = wxPyBeginAllowThreads();
3917 result = (wxColour *)new wxColour(arg1);
3918 wxPyEndAllowThreads(__tstate);
3919 if (PyErr_Occurred()) SWIG_fail;
3920 }
3921 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3922 return resultobj;
3923 fail:
3924 return NULL;
3925 }
3926
3927
3928 SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3929 PyObject *resultobj = 0;
3930 wxColour *arg1 = (wxColour *) 0 ;
3931 void *argp1 = 0 ;
3932 int res1 = 0 ;
3933 PyObject *swig_obj[1] ;
3934
3935 if (!args) SWIG_fail;
3936 swig_obj[0] = args;
3937 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
3938 if (!SWIG_IsOK(res1)) {
3939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
3940 }
3941 arg1 = reinterpret_cast< wxColour * >(argp1);
3942 {
3943 PyThreadState* __tstate = wxPyBeginAllowThreads();
3944 delete arg1;
3945
3946 wxPyEndAllowThreads(__tstate);
3947 if (PyErr_Occurred()) SWIG_fail;
3948 }
3949 resultobj = SWIG_Py_Void();
3950 return resultobj;
3951 fail:
3952 return NULL;
3953 }
3954
3955
3956 SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3957 PyObject *resultobj = 0;
3958 wxColour *arg1 = (wxColour *) 0 ;
3959 byte result;
3960 void *argp1 = 0 ;
3961 int res1 = 0 ;
3962 PyObject *swig_obj[1] ;
3963
3964 if (!args) SWIG_fail;
3965 swig_obj[0] = args;
3966 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3967 if (!SWIG_IsOK(res1)) {
3968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
3969 }
3970 arg1 = reinterpret_cast< wxColour * >(argp1);
3971 {
3972 PyThreadState* __tstate = wxPyBeginAllowThreads();
3973 result = (byte)(arg1)->Red();
3974 wxPyEndAllowThreads(__tstate);
3975 if (PyErr_Occurred()) SWIG_fail;
3976 }
3977 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3978 return resultobj;
3979 fail:
3980 return NULL;
3981 }
3982
3983
3984 SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3985 PyObject *resultobj = 0;
3986 wxColour *arg1 = (wxColour *) 0 ;
3987 byte result;
3988 void *argp1 = 0 ;
3989 int res1 = 0 ;
3990 PyObject *swig_obj[1] ;
3991
3992 if (!args) SWIG_fail;
3993 swig_obj[0] = args;
3994 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3995 if (!SWIG_IsOK(res1)) {
3996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
3997 }
3998 arg1 = reinterpret_cast< wxColour * >(argp1);
3999 {
4000 PyThreadState* __tstate = wxPyBeginAllowThreads();
4001 result = (byte)(arg1)->Green();
4002 wxPyEndAllowThreads(__tstate);
4003 if (PyErr_Occurred()) SWIG_fail;
4004 }
4005 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4006 return resultobj;
4007 fail:
4008 return NULL;
4009 }
4010
4011
4012 SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4013 PyObject *resultobj = 0;
4014 wxColour *arg1 = (wxColour *) 0 ;
4015 byte result;
4016 void *argp1 = 0 ;
4017 int res1 = 0 ;
4018 PyObject *swig_obj[1] ;
4019
4020 if (!args) SWIG_fail;
4021 swig_obj[0] = args;
4022 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4023 if (!SWIG_IsOK(res1)) {
4024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
4025 }
4026 arg1 = reinterpret_cast< wxColour * >(argp1);
4027 {
4028 PyThreadState* __tstate = wxPyBeginAllowThreads();
4029 result = (byte)(arg1)->Blue();
4030 wxPyEndAllowThreads(__tstate);
4031 if (PyErr_Occurred()) SWIG_fail;
4032 }
4033 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4034 return resultobj;
4035 fail:
4036 return NULL;
4037 }
4038
4039
4040 SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4041 PyObject *resultobj = 0;
4042 wxColour *arg1 = (wxColour *) 0 ;
4043 byte result;
4044 void *argp1 = 0 ;
4045 int res1 = 0 ;
4046 PyObject *swig_obj[1] ;
4047
4048 if (!args) SWIG_fail;
4049 swig_obj[0] = args;
4050 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4051 if (!SWIG_IsOK(res1)) {
4052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'");
4053 }
4054 arg1 = reinterpret_cast< wxColour * >(argp1);
4055 {
4056 PyThreadState* __tstate = wxPyBeginAllowThreads();
4057 result = (byte)(arg1)->Alpha();
4058 wxPyEndAllowThreads(__tstate);
4059 if (PyErr_Occurred()) SWIG_fail;
4060 }
4061 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4062 return resultobj;
4063 fail:
4064 return NULL;
4065 }
4066
4067
4068 SWIGINTERN PyObject *_wrap_Colour_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4069 PyObject *resultobj = 0;
4070 wxColour *arg1 = (wxColour *) 0 ;
4071 bool result;
4072 void *argp1 = 0 ;
4073 int res1 = 0 ;
4074 PyObject *swig_obj[1] ;
4075
4076 if (!args) SWIG_fail;
4077 swig_obj[0] = args;
4078 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4079 if (!SWIG_IsOK(res1)) {
4080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_IsOk" "', expected argument " "1"" of type '" "wxColour *""'");
4081 }
4082 arg1 = reinterpret_cast< wxColour * >(argp1);
4083 {
4084 PyThreadState* __tstate = wxPyBeginAllowThreads();
4085 result = (bool)(arg1)->IsOk();
4086 wxPyEndAllowThreads(__tstate);
4087 if (PyErr_Occurred()) SWIG_fail;
4088 }
4089 {
4090 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4091 }
4092 return resultobj;
4093 fail:
4094 return NULL;
4095 }
4096
4097
4098 SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4099 PyObject *resultobj = 0;
4100 wxColour *arg1 = (wxColour *) 0 ;
4101 byte arg2 ;
4102 byte arg3 ;
4103 byte arg4 ;
4104 byte arg5 = (byte) wxALPHA_OPAQUE ;
4105 void *argp1 = 0 ;
4106 int res1 = 0 ;
4107 unsigned char val2 ;
4108 int ecode2 = 0 ;
4109 unsigned char val3 ;
4110 int ecode3 = 0 ;
4111 unsigned char val4 ;
4112 int ecode4 = 0 ;
4113 unsigned char val5 ;
4114 int ecode5 = 0 ;
4115 PyObject * obj0 = 0 ;
4116 PyObject * obj1 = 0 ;
4117 PyObject * obj2 = 0 ;
4118 PyObject * obj3 = 0 ;
4119 PyObject * obj4 = 0 ;
4120 char * kwnames[] = {
4121 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
4122 };
4123
4124 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
4125 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4126 if (!SWIG_IsOK(res1)) {
4127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
4128 }
4129 arg1 = reinterpret_cast< wxColour * >(argp1);
4130 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4131 if (!SWIG_IsOK(ecode2)) {
4132 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
4133 }
4134 arg2 = static_cast< byte >(val2);
4135 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4136 if (!SWIG_IsOK(ecode3)) {
4137 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
4138 }
4139 arg3 = static_cast< byte >(val3);
4140 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4141 if (!SWIG_IsOK(ecode4)) {
4142 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
4143 }
4144 arg4 = static_cast< byte >(val4);
4145 if (obj4) {
4146 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
4147 if (!SWIG_IsOK(ecode5)) {
4148 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'");
4149 }
4150 arg5 = static_cast< byte >(val5);
4151 }
4152 {
4153 PyThreadState* __tstate = wxPyBeginAllowThreads();
4154 (arg1)->Set(arg2,arg3,arg4,arg5);
4155 wxPyEndAllowThreads(__tstate);
4156 if (PyErr_Occurred()) SWIG_fail;
4157 }
4158 resultobj = SWIG_Py_Void();
4159 return resultobj;
4160 fail:
4161 return NULL;
4162 }
4163
4164
4165 SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4166 PyObject *resultobj = 0;
4167 wxColour *arg1 = (wxColour *) 0 ;
4168 unsigned long arg2 ;
4169 void *argp1 = 0 ;
4170 int res1 = 0 ;
4171 unsigned long val2 ;
4172 int ecode2 = 0 ;
4173 PyObject * obj0 = 0 ;
4174 PyObject * obj1 = 0 ;
4175 char * kwnames[] = {
4176 (char *) "self",(char *) "colRGB", NULL
4177 };
4178
4179 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4180 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4181 if (!SWIG_IsOK(res1)) {
4182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4183 }
4184 arg1 = reinterpret_cast< wxColour * >(argp1);
4185 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
4186 if (!SWIG_IsOK(ecode2)) {
4187 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
4188 }
4189 arg2 = static_cast< unsigned long >(val2);
4190 {
4191 PyThreadState* __tstate = wxPyBeginAllowThreads();
4192 (arg1)->Set(arg2);
4193 wxPyEndAllowThreads(__tstate);
4194 if (PyErr_Occurred()) SWIG_fail;
4195 }
4196 resultobj = SWIG_Py_Void();
4197 return resultobj;
4198 fail:
4199 return NULL;
4200 }
4201
4202
4203 SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4204 PyObject *resultobj = 0;
4205 wxColour *arg1 = (wxColour *) 0 ;
4206 wxString *arg2 = 0 ;
4207 void *argp1 = 0 ;
4208 int res1 = 0 ;
4209 bool temp2 = false ;
4210 PyObject * obj0 = 0 ;
4211 PyObject * obj1 = 0 ;
4212 char * kwnames[] = {
4213 (char *) "self",(char *) "colourName", NULL
4214 };
4215
4216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
4217 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4218 if (!SWIG_IsOK(res1)) {
4219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
4220 }
4221 arg1 = reinterpret_cast< wxColour * >(argp1);
4222 {
4223 arg2 = wxString_in_helper(obj1);
4224 if (arg2 == NULL) SWIG_fail;
4225 temp2 = true;
4226 }
4227 {
4228 PyThreadState* __tstate = wxPyBeginAllowThreads();
4229 (arg1)->Set((wxString const &)*arg2);
4230 wxPyEndAllowThreads(__tstate);
4231 if (PyErr_Occurred()) SWIG_fail;
4232 }
4233 resultobj = SWIG_Py_Void();
4234 {
4235 if (temp2)
4236 delete arg2;
4237 }
4238 return resultobj;
4239 fail:
4240 {
4241 if (temp2)
4242 delete arg2;
4243 }
4244 return NULL;
4245 }
4246
4247
4248 SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4249 PyObject *resultobj = 0;
4250 wxColour *arg1 = (wxColour *) 0 ;
4251 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
4252 wxString result;
4253 void *argp1 = 0 ;
4254 int res1 = 0 ;
4255 long val2 ;
4256 int ecode2 = 0 ;
4257 PyObject * obj0 = 0 ;
4258 PyObject * obj1 = 0 ;
4259 char * kwnames[] = {
4260 (char *) "self",(char *) "flags", NULL
4261 };
4262
4263 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
4264 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4265 if (!SWIG_IsOK(res1)) {
4266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
4267 }
4268 arg1 = reinterpret_cast< wxColour * >(argp1);
4269 if (obj1) {
4270 ecode2 = SWIG_AsVal_long(obj1, &val2);
4271 if (!SWIG_IsOK(ecode2)) {
4272 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
4273 }
4274 arg2 = static_cast< long >(val2);
4275 }
4276 {
4277 PyThreadState* __tstate = wxPyBeginAllowThreads();
4278 result = ((wxColour const *)arg1)->GetAsString(arg2);
4279 wxPyEndAllowThreads(__tstate);
4280 if (PyErr_Occurred()) SWIG_fail;
4281 }
4282 {
4283 #if wxUSE_UNICODE
4284 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4285 #else
4286 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4287 #endif
4288 }
4289 return resultobj;
4290 fail:
4291 return NULL;
4292 }
4293
4294
4295 SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4296 PyObject *resultobj = 0;
4297 wxColour *arg1 = (wxColour *) 0 ;
4298 long result;
4299 void *argp1 = 0 ;
4300 int res1 = 0 ;
4301 PyObject *swig_obj[1] ;
4302
4303 if (!args) SWIG_fail;
4304 swig_obj[0] = args;
4305 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4306 if (!SWIG_IsOK(res1)) {
4307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
4308 }
4309 arg1 = reinterpret_cast< wxColour * >(argp1);
4310 {
4311 PyThreadState* __tstate = wxPyBeginAllowThreads();
4312 result = (long)((wxColour const *)arg1)->GetPixel();
4313 wxPyEndAllowThreads(__tstate);
4314 if (PyErr_Occurred()) SWIG_fail;
4315 }
4316 resultobj = SWIG_From_long(static_cast< long >(result));
4317 return resultobj;
4318 fail:
4319 return NULL;
4320 }
4321
4322
4323 SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4324 PyObject *resultobj = 0;
4325 wxColour *arg1 = (wxColour *) 0 ;
4326 PyObject *arg2 = (PyObject *) 0 ;
4327 bool result;
4328 void *argp1 = 0 ;
4329 int res1 = 0 ;
4330 PyObject * obj0 = 0 ;
4331 PyObject * obj1 = 0 ;
4332 char * kwnames[] = {
4333 (char *) "self",(char *) "other", NULL
4334 };
4335
4336 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4337 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4338 if (!SWIG_IsOK(res1)) {
4339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
4340 }
4341 arg1 = reinterpret_cast< wxColour * >(argp1);
4342 arg2 = obj1;
4343 {
4344 result = (bool)wxColour___eq__(arg1,arg2);
4345 if (PyErr_Occurred()) SWIG_fail;
4346 }
4347 {
4348 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4349 }
4350 return resultobj;
4351 fail:
4352 return NULL;
4353 }
4354
4355
4356 SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4357 PyObject *resultobj = 0;
4358 wxColour *arg1 = (wxColour *) 0 ;
4359 PyObject *arg2 = (PyObject *) 0 ;
4360 bool result;
4361 void *argp1 = 0 ;
4362 int res1 = 0 ;
4363 PyObject * obj0 = 0 ;
4364 PyObject * obj1 = 0 ;
4365 char * kwnames[] = {
4366 (char *) "self",(char *) "other", NULL
4367 };
4368
4369 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4370 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4371 if (!SWIG_IsOK(res1)) {
4372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
4373 }
4374 arg1 = reinterpret_cast< wxColour * >(argp1);
4375 arg2 = obj1;
4376 {
4377 result = (bool)wxColour___ne__(arg1,arg2);
4378 if (PyErr_Occurred()) SWIG_fail;
4379 }
4380 {
4381 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4382 }
4383 return resultobj;
4384 fail:
4385 return NULL;
4386 }
4387
4388
4389 SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4390 PyObject *resultobj = 0;
4391 wxColour *arg1 = (wxColour *) 0 ;
4392 bool arg2 = (bool) false ;
4393 PyObject *result = 0 ;
4394 void *argp1 = 0 ;
4395 int res1 = 0 ;
4396 bool val2 ;
4397 int ecode2 = 0 ;
4398 PyObject * obj0 = 0 ;
4399 PyObject * obj1 = 0 ;
4400 char * kwnames[] = {
4401 (char *) "self",(char *) "includeAlpha", NULL
4402 };
4403
4404 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail;
4405 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4406 if (!SWIG_IsOK(res1)) {
4407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
4408 }
4409 arg1 = reinterpret_cast< wxColour * >(argp1);
4410 if (obj1) {
4411 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4412 if (!SWIG_IsOK(ecode2)) {
4413 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'");
4414 }
4415 arg2 = static_cast< bool >(val2);
4416 }
4417 {
4418 result = (PyObject *)wxColour_Get(arg1,arg2);
4419 if (PyErr_Occurred()) SWIG_fail;
4420 }
4421 resultobj = result;
4422 return resultobj;
4423 fail:
4424 return NULL;
4425 }
4426
4427
4428 SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4429 PyObject *resultobj = 0;
4430 wxColour *arg1 = (wxColour *) 0 ;
4431 unsigned long result;
4432 void *argp1 = 0 ;
4433 int res1 = 0 ;
4434 PyObject *swig_obj[1] ;
4435
4436 if (!args) SWIG_fail;
4437 swig_obj[0] = args;
4438 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4439 if (!SWIG_IsOK(res1)) {
4440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4441 }
4442 arg1 = reinterpret_cast< wxColour * >(argp1);
4443 {
4444 result = (unsigned long)wxColour_GetRGB(arg1);
4445 if (PyErr_Occurred()) SWIG_fail;
4446 }
4447 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
4448 return resultobj;
4449 fail:
4450 return NULL;
4451 }
4452
4453
4454 SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4455 PyObject *obj;
4456 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4457 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
4458 return SWIG_Py_Void();
4459 }
4460
4461 SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4462 return SWIG_Python_InitShadowInstance(args);
4463 }
4464
4465 SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4466 PyObject *resultobj = 0;
4467 int arg1 ;
4468 unsigned char *arg2 = (unsigned char *) 0 ;
4469 unsigned char *arg3 = (unsigned char *) 0 ;
4470 unsigned char *arg4 = (unsigned char *) 0 ;
4471 wxPalette *result = 0 ;
4472 int val1 ;
4473 int ecode1 = 0 ;
4474 void *argp2 = 0 ;
4475 int res2 = 0 ;
4476 void *argp3 = 0 ;
4477 int res3 = 0 ;
4478 void *argp4 = 0 ;
4479 int res4 = 0 ;
4480 PyObject * obj0 = 0 ;
4481 PyObject * obj1 = 0 ;
4482 PyObject * obj2 = 0 ;
4483 PyObject * obj3 = 0 ;
4484 char * kwnames[] = {
4485 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
4486 };
4487
4488 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4489 ecode1 = SWIG_AsVal_int(obj0, &val1);
4490 if (!SWIG_IsOK(ecode1)) {
4491 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
4492 }
4493 arg1 = static_cast< int >(val1);
4494 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
4495 if (!SWIG_IsOK(res2)) {
4496 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
4497 }
4498 arg2 = reinterpret_cast< unsigned char * >(argp2);
4499 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
4500 if (!SWIG_IsOK(res3)) {
4501 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4502 }
4503 arg3 = reinterpret_cast< unsigned char * >(argp3);
4504 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4505 if (!SWIG_IsOK(res4)) {
4506 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4507 }
4508 arg4 = reinterpret_cast< unsigned char * >(argp4);
4509 {
4510 if (!wxPyCheckForApp()) SWIG_fail;
4511 PyThreadState* __tstate = wxPyBeginAllowThreads();
4512 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4513 wxPyEndAllowThreads(__tstate);
4514 if (PyErr_Occurred()) SWIG_fail;
4515 }
4516 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4517 return resultobj;
4518 fail:
4519 return NULL;
4520 }
4521
4522
4523 SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4524 PyObject *resultobj = 0;
4525 wxPalette *arg1 = (wxPalette *) 0 ;
4526 void *argp1 = 0 ;
4527 int res1 = 0 ;
4528 PyObject *swig_obj[1] ;
4529
4530 if (!args) SWIG_fail;
4531 swig_obj[0] = args;
4532 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4533 if (!SWIG_IsOK(res1)) {
4534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4535 }
4536 arg1 = reinterpret_cast< wxPalette * >(argp1);
4537 {
4538 PyThreadState* __tstate = wxPyBeginAllowThreads();
4539 delete arg1;
4540
4541 wxPyEndAllowThreads(__tstate);
4542 if (PyErr_Occurred()) SWIG_fail;
4543 }
4544 resultobj = SWIG_Py_Void();
4545 return resultobj;
4546 fail:
4547 return NULL;
4548 }
4549
4550
4551 SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4552 PyObject *resultobj = 0;
4553 wxPalette *arg1 = (wxPalette *) 0 ;
4554 byte arg2 ;
4555 byte arg3 ;
4556 byte arg4 ;
4557 int result;
4558 void *argp1 = 0 ;
4559 int res1 = 0 ;
4560 unsigned char val2 ;
4561 int ecode2 = 0 ;
4562 unsigned char val3 ;
4563 int ecode3 = 0 ;
4564 unsigned char val4 ;
4565 int ecode4 = 0 ;
4566 PyObject * obj0 = 0 ;
4567 PyObject * obj1 = 0 ;
4568 PyObject * obj2 = 0 ;
4569 PyObject * obj3 = 0 ;
4570 char * kwnames[] = {
4571 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4572 };
4573
4574 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4575 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4576 if (!SWIG_IsOK(res1)) {
4577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4578 }
4579 arg1 = reinterpret_cast< wxPalette * >(argp1);
4580 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4581 if (!SWIG_IsOK(ecode2)) {
4582 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4583 }
4584 arg2 = static_cast< byte >(val2);
4585 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4586 if (!SWIG_IsOK(ecode3)) {
4587 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4588 }
4589 arg3 = static_cast< byte >(val3);
4590 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4591 if (!SWIG_IsOK(ecode4)) {
4592 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4593 }
4594 arg4 = static_cast< byte >(val4);
4595 {
4596 PyThreadState* __tstate = wxPyBeginAllowThreads();
4597 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4598 wxPyEndAllowThreads(__tstate);
4599 if (PyErr_Occurred()) SWIG_fail;
4600 }
4601 resultobj = SWIG_From_int(static_cast< int >(result));
4602 return resultobj;
4603 fail:
4604 return NULL;
4605 }
4606
4607
4608 SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4609 PyObject *resultobj = 0;
4610 wxPalette *arg1 = (wxPalette *) 0 ;
4611 int arg2 ;
4612 byte *arg3 = (byte *) 0 ;
4613 byte *arg4 = (byte *) 0 ;
4614 byte *arg5 = (byte *) 0 ;
4615 bool result;
4616 void *argp1 = 0 ;
4617 int res1 = 0 ;
4618 int val2 ;
4619 int ecode2 = 0 ;
4620 byte temp3 ;
4621 int res3 = SWIG_TMPOBJ ;
4622 byte temp4 ;
4623 int res4 = SWIG_TMPOBJ ;
4624 byte temp5 ;
4625 int res5 = SWIG_TMPOBJ ;
4626 PyObject * obj0 = 0 ;
4627 PyObject * obj1 = 0 ;
4628 char * kwnames[] = {
4629 (char *) "self",(char *) "pixel", NULL
4630 };
4631
4632 arg3 = &temp3;
4633 arg4 = &temp4;
4634 arg5 = &temp5;
4635 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4636 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4637 if (!SWIG_IsOK(res1)) {
4638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4639 }
4640 arg1 = reinterpret_cast< wxPalette * >(argp1);
4641 ecode2 = SWIG_AsVal_int(obj1, &val2);
4642 if (!SWIG_IsOK(ecode2)) {
4643 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4644 }
4645 arg2 = static_cast< int >(val2);
4646 {
4647 PyThreadState* __tstate = wxPyBeginAllowThreads();
4648 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4649 wxPyEndAllowThreads(__tstate);
4650 if (PyErr_Occurred()) SWIG_fail;
4651 }
4652 {
4653 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4654 }
4655 if (SWIG_IsTmpObj(res3)) {
4656 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4657 } else {
4658 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4659 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4660 }
4661 if (SWIG_IsTmpObj(res4)) {
4662 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4663 } else {
4664 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4665 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4666 }
4667 if (SWIG_IsTmpObj(res5)) {
4668 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4669 } else {
4670 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4671 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4672 }
4673 return resultobj;
4674 fail:
4675 return NULL;
4676 }
4677
4678
4679 SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4680 PyObject *resultobj = 0;
4681 wxPalette *arg1 = (wxPalette *) 0 ;
4682 int result;
4683 void *argp1 = 0 ;
4684 int res1 = 0 ;
4685 PyObject *swig_obj[1] ;
4686
4687 if (!args) SWIG_fail;
4688 swig_obj[0] = args;
4689 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4690 if (!SWIG_IsOK(res1)) {
4691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4692 }
4693 arg1 = reinterpret_cast< wxPalette * >(argp1);
4694 {
4695 PyThreadState* __tstate = wxPyBeginAllowThreads();
4696 result = (int)((wxPalette const *)arg1)->GetColoursCount();
4697 wxPyEndAllowThreads(__tstate);
4698 if (PyErr_Occurred()) SWIG_fail;
4699 }
4700 resultobj = SWIG_From_int(static_cast< int >(result));
4701 return resultobj;
4702 fail:
4703 return NULL;
4704 }
4705
4706
4707 SWIGINTERN PyObject *_wrap_Palette_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4708 PyObject *resultobj = 0;
4709 wxPalette *arg1 = (wxPalette *) 0 ;
4710 bool result;
4711 void *argp1 = 0 ;
4712 int res1 = 0 ;
4713 PyObject *swig_obj[1] ;
4714
4715 if (!args) SWIG_fail;
4716 swig_obj[0] = args;
4717 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4718 if (!SWIG_IsOK(res1)) {
4719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_IsOk" "', expected argument " "1"" of type '" "wxPalette *""'");
4720 }
4721 arg1 = reinterpret_cast< wxPalette * >(argp1);
4722 {
4723 PyThreadState* __tstate = wxPyBeginAllowThreads();
4724 result = (bool)(arg1)->IsOk();
4725 wxPyEndAllowThreads(__tstate);
4726 if (PyErr_Occurred()) SWIG_fail;
4727 }
4728 {
4729 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4730 }
4731 return resultobj;
4732 fail:
4733 return NULL;
4734 }
4735
4736
4737 SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4738 PyObject *obj;
4739 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4740 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
4741 return SWIG_Py_Void();
4742 }
4743
4744 SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4745 return SWIG_Python_InitShadowInstance(args);
4746 }
4747
4748 SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4749 PyObject *resultobj = 0;
4750 wxColour *arg1 = 0 ;
4751 int arg2 = (int) 1 ;
4752 int arg3 = (int) wxSOLID ;
4753 wxPen *result = 0 ;
4754 wxColour temp1 ;
4755 int val2 ;
4756 int ecode2 = 0 ;
4757 int val3 ;
4758 int ecode3 = 0 ;
4759 PyObject * obj0 = 0 ;
4760 PyObject * obj1 = 0 ;
4761 PyObject * obj2 = 0 ;
4762 char * kwnames[] = {
4763 (char *) "colour",(char *) "width",(char *) "style", NULL
4764 };
4765
4766 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4767 {
4768 arg1 = &temp1;
4769 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
4770 }
4771 if (obj1) {
4772 ecode2 = SWIG_AsVal_int(obj1, &val2);
4773 if (!SWIG_IsOK(ecode2)) {
4774 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
4775 }
4776 arg2 = static_cast< int >(val2);
4777 }
4778 if (obj2) {
4779 ecode3 = SWIG_AsVal_int(obj2, &val3);
4780 if (!SWIG_IsOK(ecode3)) {
4781 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
4782 }
4783 arg3 = static_cast< int >(val3);
4784 }
4785 {
4786 if (!wxPyCheckForApp()) SWIG_fail;
4787 PyThreadState* __tstate = wxPyBeginAllowThreads();
4788 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
4789 wxPyEndAllowThreads(__tstate);
4790 if (PyErr_Occurred()) SWIG_fail;
4791 }
4792 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
4793 return resultobj;
4794 fail:
4795 return NULL;
4796 }
4797
4798
4799 SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4800 PyObject *resultobj = 0;
4801 wxPen *arg1 = (wxPen *) 0 ;
4802 void *argp1 = 0 ;
4803 int res1 = 0 ;
4804 PyObject *swig_obj[1] ;
4805
4806 if (!args) SWIG_fail;
4807 swig_obj[0] = args;
4808 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
4809 if (!SWIG_IsOK(res1)) {
4810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
4811 }
4812 arg1 = reinterpret_cast< wxPen * >(argp1);
4813 {
4814 PyThreadState* __tstate = wxPyBeginAllowThreads();
4815 delete arg1;
4816
4817 wxPyEndAllowThreads(__tstate);
4818 if (PyErr_Occurred()) SWIG_fail;
4819 }
4820 resultobj = SWIG_Py_Void();
4821 return resultobj;
4822 fail:
4823 return NULL;
4824 }
4825
4826
4827 SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4828 PyObject *resultobj = 0;
4829 wxPen *arg1 = (wxPen *) 0 ;
4830 int result;
4831 void *argp1 = 0 ;
4832 int res1 = 0 ;
4833 PyObject *swig_obj[1] ;
4834
4835 if (!args) SWIG_fail;
4836 swig_obj[0] = args;
4837 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4838 if (!SWIG_IsOK(res1)) {
4839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4840 }
4841 arg1 = reinterpret_cast< wxPen * >(argp1);
4842 {
4843 PyThreadState* __tstate = wxPyBeginAllowThreads();
4844 result = (int)(arg1)->GetCap();
4845 wxPyEndAllowThreads(__tstate);
4846 if (PyErr_Occurred()) SWIG_fail;
4847 }
4848 resultobj = SWIG_From_int(static_cast< int >(result));
4849 return resultobj;
4850 fail:
4851 return NULL;
4852 }
4853
4854
4855 SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4856 PyObject *resultobj = 0;
4857 wxPen *arg1 = (wxPen *) 0 ;
4858 wxColour result;
4859 void *argp1 = 0 ;
4860 int res1 = 0 ;
4861 PyObject *swig_obj[1] ;
4862
4863 if (!args) SWIG_fail;
4864 swig_obj[0] = args;
4865 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4866 if (!SWIG_IsOK(res1)) {
4867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4868 }
4869 arg1 = reinterpret_cast< wxPen * >(argp1);
4870 {
4871 PyThreadState* __tstate = wxPyBeginAllowThreads();
4872 result = (arg1)->GetColour();
4873 wxPyEndAllowThreads(__tstate);
4874 if (PyErr_Occurred()) SWIG_fail;
4875 }
4876 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4877 return resultobj;
4878 fail:
4879 return NULL;
4880 }
4881
4882
4883 SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4884 PyObject *resultobj = 0;
4885 wxPen *arg1 = (wxPen *) 0 ;
4886 int result;
4887 void *argp1 = 0 ;
4888 int res1 = 0 ;
4889 PyObject *swig_obj[1] ;
4890
4891 if (!args) SWIG_fail;
4892 swig_obj[0] = args;
4893 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4894 if (!SWIG_IsOK(res1)) {
4895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4896 }
4897 arg1 = reinterpret_cast< wxPen * >(argp1);
4898 {
4899 PyThreadState* __tstate = wxPyBeginAllowThreads();
4900 result = (int)(arg1)->GetJoin();
4901 wxPyEndAllowThreads(__tstate);
4902 if (PyErr_Occurred()) SWIG_fail;
4903 }
4904 resultobj = SWIG_From_int(static_cast< int >(result));
4905 return resultobj;
4906 fail:
4907 return NULL;
4908 }
4909
4910
4911 SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4912 PyObject *resultobj = 0;
4913 wxPen *arg1 = (wxPen *) 0 ;
4914 int result;
4915 void *argp1 = 0 ;
4916 int res1 = 0 ;
4917 PyObject *swig_obj[1] ;
4918
4919 if (!args) SWIG_fail;
4920 swig_obj[0] = args;
4921 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4922 if (!SWIG_IsOK(res1)) {
4923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
4924 }
4925 arg1 = reinterpret_cast< wxPen * >(argp1);
4926 {
4927 PyThreadState* __tstate = wxPyBeginAllowThreads();
4928 result = (int)(arg1)->GetStyle();
4929 wxPyEndAllowThreads(__tstate);
4930 if (PyErr_Occurred()) SWIG_fail;
4931 }
4932 resultobj = SWIG_From_int(static_cast< int >(result));
4933 return resultobj;
4934 fail:
4935 return NULL;
4936 }
4937
4938
4939 SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4940 PyObject *resultobj = 0;
4941 wxPen *arg1 = (wxPen *) 0 ;
4942 int result;
4943 void *argp1 = 0 ;
4944 int res1 = 0 ;
4945 PyObject *swig_obj[1] ;
4946
4947 if (!args) SWIG_fail;
4948 swig_obj[0] = args;
4949 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4950 if (!SWIG_IsOK(res1)) {
4951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
4952 }
4953 arg1 = reinterpret_cast< wxPen * >(argp1);
4954 {
4955 PyThreadState* __tstate = wxPyBeginAllowThreads();
4956 result = (int)(arg1)->GetWidth();
4957 wxPyEndAllowThreads(__tstate);
4958 if (PyErr_Occurred()) SWIG_fail;
4959 }
4960 resultobj = SWIG_From_int(static_cast< int >(result));
4961 return resultobj;
4962 fail:
4963 return NULL;
4964 }
4965
4966
4967 SWIGINTERN PyObject *_wrap_Pen_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4968 PyObject *resultobj = 0;
4969 wxPen *arg1 = (wxPen *) 0 ;
4970 bool result;
4971 void *argp1 = 0 ;
4972 int res1 = 0 ;
4973 PyObject *swig_obj[1] ;
4974
4975 if (!args) SWIG_fail;
4976 swig_obj[0] = args;
4977 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4978 if (!SWIG_IsOK(res1)) {
4979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_IsOk" "', expected argument " "1"" of type '" "wxPen *""'");
4980 }
4981 arg1 = reinterpret_cast< wxPen * >(argp1);
4982 {
4983 PyThreadState* __tstate = wxPyBeginAllowThreads();
4984 result = (bool)(arg1)->IsOk();
4985 wxPyEndAllowThreads(__tstate);
4986 if (PyErr_Occurred()) SWIG_fail;
4987 }
4988 {
4989 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4990 }
4991 return resultobj;
4992 fail:
4993 return NULL;
4994 }
4995
4996
4997 SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4998 PyObject *resultobj = 0;
4999 wxPen *arg1 = (wxPen *) 0 ;
5000 int arg2 ;
5001 void *argp1 = 0 ;
5002 int res1 = 0 ;
5003 int val2 ;
5004 int ecode2 = 0 ;
5005 PyObject * obj0 = 0 ;
5006 PyObject * obj1 = 0 ;
5007 char * kwnames[] = {
5008 (char *) "self",(char *) "cap_style", NULL
5009 };
5010
5011 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
5012 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5013 if (!SWIG_IsOK(res1)) {
5014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5015 }
5016 arg1 = reinterpret_cast< wxPen * >(argp1);
5017 ecode2 = SWIG_AsVal_int(obj1, &val2);
5018 if (!SWIG_IsOK(ecode2)) {
5019 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
5020 }
5021 arg2 = static_cast< int >(val2);
5022 {
5023 PyThreadState* __tstate = wxPyBeginAllowThreads();
5024 (arg1)->SetCap(arg2);
5025 wxPyEndAllowThreads(__tstate);
5026 if (PyErr_Occurred()) SWIG_fail;
5027 }
5028 resultobj = SWIG_Py_Void();
5029 return resultobj;
5030 fail:
5031 return NULL;
5032 }
5033
5034
5035 SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5036 PyObject *resultobj = 0;
5037 wxPen *arg1 = (wxPen *) 0 ;
5038 wxColour *arg2 = 0 ;
5039 void *argp1 = 0 ;
5040 int res1 = 0 ;
5041 wxColour temp2 ;
5042 PyObject * obj0 = 0 ;
5043 PyObject * obj1 = 0 ;
5044 char * kwnames[] = {
5045 (char *) "self",(char *) "colour", NULL
5046 };
5047
5048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5050 if (!SWIG_IsOK(res1)) {
5051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5052 }
5053 arg1 = reinterpret_cast< wxPen * >(argp1);
5054 {
5055 arg2 = &temp2;
5056 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5057 }
5058 {
5059 PyThreadState* __tstate = wxPyBeginAllowThreads();
5060 (arg1)->SetColour(*arg2);
5061 wxPyEndAllowThreads(__tstate);
5062 if (PyErr_Occurred()) SWIG_fail;
5063 }
5064 resultobj = SWIG_Py_Void();
5065 return resultobj;
5066 fail:
5067 return NULL;
5068 }
5069
5070
5071 SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5072 PyObject *resultobj = 0;
5073 wxPen *arg1 = (wxPen *) 0 ;
5074 int arg2 ;
5075 void *argp1 = 0 ;
5076 int res1 = 0 ;
5077 int val2 ;
5078 int ecode2 = 0 ;
5079 PyObject * obj0 = 0 ;
5080 PyObject * obj1 = 0 ;
5081 char * kwnames[] = {
5082 (char *) "self",(char *) "join_style", NULL
5083 };
5084
5085 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
5086 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5087 if (!SWIG_IsOK(res1)) {
5088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5089 }
5090 arg1 = reinterpret_cast< wxPen * >(argp1);
5091 ecode2 = SWIG_AsVal_int(obj1, &val2);
5092 if (!SWIG_IsOK(ecode2)) {
5093 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
5094 }
5095 arg2 = static_cast< int >(val2);
5096 {
5097 PyThreadState* __tstate = wxPyBeginAllowThreads();
5098 (arg1)->SetJoin(arg2);
5099 wxPyEndAllowThreads(__tstate);
5100 if (PyErr_Occurred()) SWIG_fail;
5101 }
5102 resultobj = SWIG_Py_Void();
5103 return resultobj;
5104 fail:
5105 return NULL;
5106 }
5107
5108
5109 SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5110 PyObject *resultobj = 0;
5111 wxPen *arg1 = (wxPen *) 0 ;
5112 int arg2 ;
5113 void *argp1 = 0 ;
5114 int res1 = 0 ;
5115 int val2 ;
5116 int ecode2 = 0 ;
5117 PyObject * obj0 = 0 ;
5118 PyObject * obj1 = 0 ;
5119 char * kwnames[] = {
5120 (char *) "self",(char *) "style", NULL
5121 };
5122
5123 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5124 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5125 if (!SWIG_IsOK(res1)) {
5126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5127 }
5128 arg1 = reinterpret_cast< wxPen * >(argp1);
5129 ecode2 = SWIG_AsVal_int(obj1, &val2);
5130 if (!SWIG_IsOK(ecode2)) {
5131 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
5132 }
5133 arg2 = static_cast< int >(val2);
5134 {
5135 PyThreadState* __tstate = wxPyBeginAllowThreads();
5136 (arg1)->SetStyle(arg2);
5137 wxPyEndAllowThreads(__tstate);
5138 if (PyErr_Occurred()) SWIG_fail;
5139 }
5140 resultobj = SWIG_Py_Void();
5141 return resultobj;
5142 fail:
5143 return NULL;
5144 }
5145
5146
5147 SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5148 PyObject *resultobj = 0;
5149 wxPen *arg1 = (wxPen *) 0 ;
5150 int arg2 ;
5151 void *argp1 = 0 ;
5152 int res1 = 0 ;
5153 int val2 ;
5154 int ecode2 = 0 ;
5155 PyObject * obj0 = 0 ;
5156 PyObject * obj1 = 0 ;
5157 char * kwnames[] = {
5158 (char *) "self",(char *) "width", NULL
5159 };
5160
5161 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
5162 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5163 if (!SWIG_IsOK(res1)) {
5164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5165 }
5166 arg1 = reinterpret_cast< wxPen * >(argp1);
5167 ecode2 = SWIG_AsVal_int(obj1, &val2);
5168 if (!SWIG_IsOK(ecode2)) {
5169 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
5170 }
5171 arg2 = static_cast< int >(val2);
5172 {
5173 PyThreadState* __tstate = wxPyBeginAllowThreads();
5174 (arg1)->SetWidth(arg2);
5175 wxPyEndAllowThreads(__tstate);
5176 if (PyErr_Occurred()) SWIG_fail;
5177 }
5178 resultobj = SWIG_Py_Void();
5179 return resultobj;
5180 fail:
5181 return NULL;
5182 }
5183
5184
5185 SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5186 PyObject *resultobj = 0;
5187 wxPen *arg1 = (wxPen *) 0 ;
5188 int arg2 ;
5189 wxDash *arg3 = (wxDash *) 0 ;
5190 void *argp1 = 0 ;
5191 int res1 = 0 ;
5192 PyObject * obj0 = 0 ;
5193 PyObject * obj1 = 0 ;
5194 char * kwnames[] = {
5195 (char *) "self",(char *) "dashes", NULL
5196 };
5197
5198 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
5199 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5200 if (!SWIG_IsOK(res1)) {
5201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5202 }
5203 arg1 = reinterpret_cast< wxPen * >(argp1);
5204 {
5205 arg2 = PyList_Size(obj1);
5206 arg3 = (wxDash*)byte_LIST_helper(obj1);
5207 if (arg3 == NULL) SWIG_fail;
5208 }
5209 {
5210 PyThreadState* __tstate = wxPyBeginAllowThreads();
5211 (arg1)->SetDashes(arg2,arg3);
5212 wxPyEndAllowThreads(__tstate);
5213 if (PyErr_Occurred()) SWIG_fail;
5214 }
5215 resultobj = SWIG_Py_Void();
5216 {
5217 if (arg3) delete [] arg3;
5218 }
5219 return resultobj;
5220 fail:
5221 {
5222 if (arg3) delete [] arg3;
5223 }
5224 return NULL;
5225 }
5226
5227
5228 SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5229 PyObject *resultobj = 0;
5230 wxPen *arg1 = (wxPen *) 0 ;
5231 PyObject *result = 0 ;
5232 void *argp1 = 0 ;
5233 int res1 = 0 ;
5234 PyObject *swig_obj[1] ;
5235
5236 if (!args) SWIG_fail;
5237 swig_obj[0] = args;
5238 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5239 if (!SWIG_IsOK(res1)) {
5240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5241 }
5242 arg1 = reinterpret_cast< wxPen * >(argp1);
5243 {
5244 PyThreadState* __tstate = wxPyBeginAllowThreads();
5245 result = (PyObject *)wxPen_GetDashes(arg1);
5246 wxPyEndAllowThreads(__tstate);
5247 if (PyErr_Occurred()) SWIG_fail;
5248 }
5249 resultobj = result;
5250 return resultobj;
5251 fail:
5252 return NULL;
5253 }
5254
5255
5256 SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5257 PyObject *resultobj = 0;
5258 wxPen *arg1 = (wxPen *) 0 ;
5259 PyObject *arg2 = (PyObject *) 0 ;
5260 PyObject *arg3 = (PyObject *) 0 ;
5261 void *argp1 = 0 ;
5262 int res1 = 0 ;
5263 PyObject * obj0 = 0 ;
5264 PyObject * obj1 = 0 ;
5265 PyObject * obj2 = 0 ;
5266 char * kwnames[] = {
5267 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
5268 };
5269
5270 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5271 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5272 if (!SWIG_IsOK(res1)) {
5273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5274 }
5275 arg1 = reinterpret_cast< wxPen * >(argp1);
5276 arg2 = obj1;
5277 arg3 = obj2;
5278 {
5279 PyThreadState* __tstate = wxPyBeginAllowThreads();
5280 wxPen__SetDashes(arg1,arg2,arg3);
5281 wxPyEndAllowThreads(__tstate);
5282 if (PyErr_Occurred()) SWIG_fail;
5283 }
5284 resultobj = SWIG_Py_Void();
5285 return resultobj;
5286 fail:
5287 return NULL;
5288 }
5289
5290
5291 SWIGINTERN PyObject *_wrap_Pen_GetDashCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5292 PyObject *resultobj = 0;
5293 wxPen *arg1 = (wxPen *) 0 ;
5294 int result;
5295 void *argp1 = 0 ;
5296 int res1 = 0 ;
5297 PyObject *swig_obj[1] ;
5298
5299 if (!args) SWIG_fail;
5300 swig_obj[0] = args;
5301 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5302 if (!SWIG_IsOK(res1)) {
5303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashCount" "', expected argument " "1"" of type '" "wxPen const *""'");
5304 }
5305 arg1 = reinterpret_cast< wxPen * >(argp1);
5306 {
5307 PyThreadState* __tstate = wxPyBeginAllowThreads();
5308 result = (int)((wxPen const *)arg1)->GetDashCount();
5309 wxPyEndAllowThreads(__tstate);
5310 if (PyErr_Occurred()) SWIG_fail;
5311 }
5312 resultobj = SWIG_From_int(static_cast< int >(result));
5313 return resultobj;
5314 fail:
5315 return NULL;
5316 }
5317
5318
5319 SWIGINTERN PyObject *_wrap_Pen_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5320 PyObject *resultobj = 0;
5321 wxPen *arg1 = (wxPen *) 0 ;
5322 wxBitmap *result = 0 ;
5323 void *argp1 = 0 ;
5324 int res1 = 0 ;
5325 PyObject *swig_obj[1] ;
5326
5327 if (!args) SWIG_fail;
5328 swig_obj[0] = args;
5329 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5330 if (!SWIG_IsOK(res1)) {
5331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStipple" "', expected argument " "1"" of type '" "wxPen *""'");
5332 }
5333 arg1 = reinterpret_cast< wxPen * >(argp1);
5334 {
5335 PyThreadState* __tstate = wxPyBeginAllowThreads();
5336 result = (wxBitmap *)(arg1)->GetStipple();
5337 wxPyEndAllowThreads(__tstate);
5338 if (PyErr_Occurred()) SWIG_fail;
5339 }
5340 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5341 return resultobj;
5342 fail:
5343 return NULL;
5344 }
5345
5346
5347 SWIGINTERN PyObject *_wrap_Pen_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5348 PyObject *resultobj = 0;
5349 wxPen *arg1 = (wxPen *) 0 ;
5350 wxBitmap *arg2 = 0 ;
5351 void *argp1 = 0 ;
5352 int res1 = 0 ;
5353 void *argp2 = 0 ;
5354 int res2 = 0 ;
5355 PyObject * obj0 = 0 ;
5356 PyObject * obj1 = 0 ;
5357 char * kwnames[] = {
5358 (char *) "self",(char *) "stipple", NULL
5359 };
5360
5361 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5362 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5363 if (!SWIG_IsOK(res1)) {
5364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStipple" "', expected argument " "1"" of type '" "wxPen *""'");
5365 }
5366 arg1 = reinterpret_cast< wxPen * >(argp1);
5367 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
5368 if (!SWIG_IsOK(res2)) {
5369 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen_SetStipple" "', expected argument " "2"" of type '" "wxBitmap &""'");
5370 }
5371 if (!argp2) {
5372 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Pen_SetStipple" "', expected argument " "2"" of type '" "wxBitmap &""'");
5373 }
5374 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5375 {
5376 PyThreadState* __tstate = wxPyBeginAllowThreads();
5377 (arg1)->SetStipple(*arg2);
5378 wxPyEndAllowThreads(__tstate);
5379 if (PyErr_Occurred()) SWIG_fail;
5380 }
5381 resultobj = SWIG_Py_Void();
5382 return resultobj;
5383 fail:
5384 return NULL;
5385 }
5386
5387
5388 SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5389 PyObject *resultobj = 0;
5390 wxPen *arg1 = (wxPen *) 0 ;
5391 wxPen *arg2 = (wxPen *) 0 ;
5392 bool result;
5393 void *argp1 = 0 ;
5394 int res1 = 0 ;
5395 void *argp2 = 0 ;
5396 int res2 = 0 ;
5397 PyObject * obj0 = 0 ;
5398 PyObject * obj1 = 0 ;
5399 char * kwnames[] = {
5400 (char *) "self",(char *) "other", NULL
5401 };
5402
5403 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
5404 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5405 if (!SWIG_IsOK(res1)) {
5406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
5407 }
5408 arg1 = reinterpret_cast< wxPen * >(argp1);
5409 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5410 if (!SWIG_IsOK(res2)) {
5411 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
5412 }
5413 arg2 = reinterpret_cast< wxPen * >(argp2);
5414 {
5415 PyThreadState* __tstate = wxPyBeginAllowThreads();
5416 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
5417 wxPyEndAllowThreads(__tstate);
5418 if (PyErr_Occurred()) SWIG_fail;
5419 }
5420 {
5421 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5422 }
5423 return resultobj;
5424 fail:
5425 return NULL;
5426 }
5427
5428
5429 SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5430 PyObject *resultobj = 0;
5431 wxPen *arg1 = (wxPen *) 0 ;
5432 wxPen *arg2 = (wxPen *) 0 ;
5433 bool result;
5434 void *argp1 = 0 ;
5435 int res1 = 0 ;
5436 void *argp2 = 0 ;
5437 int res2 = 0 ;
5438 PyObject * obj0 = 0 ;
5439 PyObject * obj1 = 0 ;
5440 char * kwnames[] = {
5441 (char *) "self",(char *) "other", NULL
5442 };
5443
5444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
5445 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5446 if (!SWIG_IsOK(res1)) {
5447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
5448 }
5449 arg1 = reinterpret_cast< wxPen * >(argp1);
5450 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5451 if (!SWIG_IsOK(res2)) {
5452 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
5453 }
5454 arg2 = reinterpret_cast< wxPen * >(argp2);
5455 {
5456 PyThreadState* __tstate = wxPyBeginAllowThreads();
5457 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
5458 wxPyEndAllowThreads(__tstate);
5459 if (PyErr_Occurred()) SWIG_fail;
5460 }
5461 {
5462 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5463 }
5464 return resultobj;
5465 fail:
5466 return NULL;
5467 }
5468
5469
5470 SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5471 PyObject *obj;
5472 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5473 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
5474 return SWIG_Py_Void();
5475 }
5476
5477 SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5478 return SWIG_Python_InitShadowInstance(args);
5479 }
5480
5481 SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5482 PyObject *resultobj = 0;
5483 wxColour *arg1 = 0 ;
5484 int arg2 = (int) wxSOLID ;
5485 wxBrush *result = 0 ;
5486 wxColour temp1 ;
5487 int val2 ;
5488 int ecode2 = 0 ;
5489 PyObject * obj0 = 0 ;
5490 PyObject * obj1 = 0 ;
5491 char * kwnames[] = {
5492 (char *) "colour",(char *) "style", NULL
5493 };
5494
5495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
5496 {
5497 arg1 = &temp1;
5498 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5499 }
5500 if (obj1) {
5501 ecode2 = SWIG_AsVal_int(obj1, &val2);
5502 if (!SWIG_IsOK(ecode2)) {
5503 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
5504 }
5505 arg2 = static_cast< int >(val2);
5506 }
5507 {
5508 if (!wxPyCheckForApp()) SWIG_fail;
5509 PyThreadState* __tstate = wxPyBeginAllowThreads();
5510 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
5511 wxPyEndAllowThreads(__tstate);
5512 if (PyErr_Occurred()) SWIG_fail;
5513 }
5514 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
5515 return resultobj;
5516 fail:
5517 return NULL;
5518 }
5519
5520
5521 SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5522 PyObject *resultobj = 0;
5523 wxBitmap *arg1 = 0 ;
5524 wxBrush *result = 0 ;
5525 void *argp1 = 0 ;
5526 int res1 = 0 ;
5527 PyObject * obj0 = 0 ;
5528 char * kwnames[] = {
5529 (char *) "stippleBitmap", NULL
5530 };
5531
5532 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
5533 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
5534 if (!SWIG_IsOK(res1)) {
5535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5536 }
5537 if (!argp1) {
5538 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5539 }
5540 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5541 {
5542 if (!wxPyCheckForApp()) SWIG_fail;
5543 PyThreadState* __tstate = wxPyBeginAllowThreads();
5544 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
5545 wxPyEndAllowThreads(__tstate);
5546 if (PyErr_Occurred()) SWIG_fail;
5547 }
5548 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
5549 return resultobj;
5550 fail:
5551 return NULL;
5552 }
5553
5554
5555 SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5556 PyObject *resultobj = 0;
5557 wxBrush *arg1 = (wxBrush *) 0 ;
5558 void *argp1 = 0 ;
5559 int res1 = 0 ;
5560 PyObject *swig_obj[1] ;
5561
5562 if (!args) SWIG_fail;
5563 swig_obj[0] = args;
5564 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5565 if (!SWIG_IsOK(res1)) {
5566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5567 }
5568 arg1 = reinterpret_cast< wxBrush * >(argp1);
5569 {
5570 PyThreadState* __tstate = wxPyBeginAllowThreads();
5571 delete arg1;
5572
5573 wxPyEndAllowThreads(__tstate);
5574 if (PyErr_Occurred()) SWIG_fail;
5575 }
5576 resultobj = SWIG_Py_Void();
5577 return resultobj;
5578 fail:
5579 return NULL;
5580 }
5581
5582
5583 SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5584 PyObject *resultobj = 0;
5585 wxBrush *arg1 = (wxBrush *) 0 ;
5586 wxColour *arg2 = 0 ;
5587 void *argp1 = 0 ;
5588 int res1 = 0 ;
5589 wxColour temp2 ;
5590 PyObject * obj0 = 0 ;
5591 PyObject * obj1 = 0 ;
5592 char * kwnames[] = {
5593 (char *) "self",(char *) "col", NULL
5594 };
5595
5596 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5597 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5598 if (!SWIG_IsOK(res1)) {
5599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5600 }
5601 arg1 = reinterpret_cast< wxBrush * >(argp1);
5602 {
5603 arg2 = &temp2;
5604 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5605 }
5606 {
5607 PyThreadState* __tstate = wxPyBeginAllowThreads();
5608 (arg1)->SetColour((wxColour const &)*arg2);
5609 wxPyEndAllowThreads(__tstate);
5610 if (PyErr_Occurred()) SWIG_fail;
5611 }
5612 resultobj = SWIG_Py_Void();
5613 return resultobj;
5614 fail:
5615 return NULL;
5616 }
5617
5618
5619 SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5620 PyObject *resultobj = 0;
5621 wxBrush *arg1 = (wxBrush *) 0 ;
5622 int arg2 ;
5623 void *argp1 = 0 ;
5624 int res1 = 0 ;
5625 int val2 ;
5626 int ecode2 = 0 ;
5627 PyObject * obj0 = 0 ;
5628 PyObject * obj1 = 0 ;
5629 char * kwnames[] = {
5630 (char *) "self",(char *) "style", NULL
5631 };
5632
5633 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5634 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5635 if (!SWIG_IsOK(res1)) {
5636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5637 }
5638 arg1 = reinterpret_cast< wxBrush * >(argp1);
5639 ecode2 = SWIG_AsVal_int(obj1, &val2);
5640 if (!SWIG_IsOK(ecode2)) {
5641 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5642 }
5643 arg2 = static_cast< int >(val2);
5644 {
5645 PyThreadState* __tstate = wxPyBeginAllowThreads();
5646 (arg1)->SetStyle(arg2);
5647 wxPyEndAllowThreads(__tstate);
5648 if (PyErr_Occurred()) SWIG_fail;
5649 }
5650 resultobj = SWIG_Py_Void();
5651 return resultobj;
5652 fail:
5653 return NULL;
5654 }
5655
5656
5657 SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5658 PyObject *resultobj = 0;
5659 wxBrush *arg1 = (wxBrush *) 0 ;
5660 wxBitmap *arg2 = 0 ;
5661 void *argp1 = 0 ;
5662 int res1 = 0 ;
5663 void *argp2 = 0 ;
5664 int res2 = 0 ;
5665 PyObject * obj0 = 0 ;
5666 PyObject * obj1 = 0 ;
5667 char * kwnames[] = {
5668 (char *) "self",(char *) "stipple", NULL
5669 };
5670
5671 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5672 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5673 if (!SWIG_IsOK(res1)) {
5674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5675 }
5676 arg1 = reinterpret_cast< wxBrush * >(argp1);
5677 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5678 if (!SWIG_IsOK(res2)) {
5679 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5680 }
5681 if (!argp2) {
5682 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5683 }
5684 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5685 {
5686 PyThreadState* __tstate = wxPyBeginAllowThreads();
5687 (arg1)->SetStipple((wxBitmap const &)*arg2);
5688 wxPyEndAllowThreads(__tstate);
5689 if (PyErr_Occurred()) SWIG_fail;
5690 }
5691 resultobj = SWIG_Py_Void();
5692 return resultobj;
5693 fail:
5694 return NULL;
5695 }
5696
5697
5698 SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5699 PyObject *resultobj = 0;
5700 wxBrush *arg1 = (wxBrush *) 0 ;
5701 wxColour result;
5702 void *argp1 = 0 ;
5703 int res1 = 0 ;
5704 PyObject *swig_obj[1] ;
5705
5706 if (!args) SWIG_fail;
5707 swig_obj[0] = args;
5708 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5709 if (!SWIG_IsOK(res1)) {
5710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5711 }
5712 arg1 = reinterpret_cast< wxBrush * >(argp1);
5713 {
5714 PyThreadState* __tstate = wxPyBeginAllowThreads();
5715 result = ((wxBrush const *)arg1)->GetColour();
5716 wxPyEndAllowThreads(__tstate);
5717 if (PyErr_Occurred()) SWIG_fail;
5718 }
5719 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5720 return resultobj;
5721 fail:
5722 return NULL;
5723 }
5724
5725
5726 SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5727 PyObject *resultobj = 0;
5728 wxBrush *arg1 = (wxBrush *) 0 ;
5729 int result;
5730 void *argp1 = 0 ;
5731 int res1 = 0 ;
5732 PyObject *swig_obj[1] ;
5733
5734 if (!args) SWIG_fail;
5735 swig_obj[0] = args;
5736 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5737 if (!SWIG_IsOK(res1)) {
5738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5739 }
5740 arg1 = reinterpret_cast< wxBrush * >(argp1);
5741 {
5742 PyThreadState* __tstate = wxPyBeginAllowThreads();
5743 result = (int)((wxBrush const *)arg1)->GetStyle();
5744 wxPyEndAllowThreads(__tstate);
5745 if (PyErr_Occurred()) SWIG_fail;
5746 }
5747 resultobj = SWIG_From_int(static_cast< int >(result));
5748 return resultobj;
5749 fail:
5750 return NULL;
5751 }
5752
5753
5754 SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5755 PyObject *resultobj = 0;
5756 wxBrush *arg1 = (wxBrush *) 0 ;
5757 wxBitmap *result = 0 ;
5758 void *argp1 = 0 ;
5759 int res1 = 0 ;
5760 PyObject *swig_obj[1] ;
5761
5762 if (!args) SWIG_fail;
5763 swig_obj[0] = args;
5764 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5765 if (!SWIG_IsOK(res1)) {
5766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
5767 }
5768 arg1 = reinterpret_cast< wxBrush * >(argp1);
5769 {
5770 PyThreadState* __tstate = wxPyBeginAllowThreads();
5771 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
5772 wxPyEndAllowThreads(__tstate);
5773 if (PyErr_Occurred()) SWIG_fail;
5774 }
5775 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5776 return resultobj;
5777 fail:
5778 return NULL;
5779 }
5780
5781
5782 SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5783 PyObject *resultobj = 0;
5784 wxBrush *arg1 = (wxBrush *) 0 ;
5785 bool result;
5786 void *argp1 = 0 ;
5787 int res1 = 0 ;
5788 PyObject *swig_obj[1] ;
5789
5790 if (!args) SWIG_fail;
5791 swig_obj[0] = args;
5792 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5793 if (!SWIG_IsOK(res1)) {
5794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
5795 }
5796 arg1 = reinterpret_cast< wxBrush * >(argp1);
5797 {
5798 PyThreadState* __tstate = wxPyBeginAllowThreads();
5799 result = (bool)((wxBrush const *)arg1)->IsHatch();
5800 wxPyEndAllowThreads(__tstate);
5801 if (PyErr_Occurred()) SWIG_fail;
5802 }
5803 {
5804 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5805 }
5806 return resultobj;
5807 fail:
5808 return NULL;
5809 }
5810
5811
5812 SWIGINTERN PyObject *_wrap_Brush_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5813 PyObject *resultobj = 0;
5814 wxBrush *arg1 = (wxBrush *) 0 ;
5815 bool result;
5816 void *argp1 = 0 ;
5817 int res1 = 0 ;
5818 PyObject *swig_obj[1] ;
5819
5820 if (!args) SWIG_fail;
5821 swig_obj[0] = args;
5822 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5823 if (!SWIG_IsOK(res1)) {
5824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsOk" "', expected argument " "1"" of type '" "wxBrush *""'");
5825 }
5826 arg1 = reinterpret_cast< wxBrush * >(argp1);
5827 {
5828 PyThreadState* __tstate = wxPyBeginAllowThreads();
5829 result = (bool)(arg1)->IsOk();
5830 wxPyEndAllowThreads(__tstate);
5831 if (PyErr_Occurred()) SWIG_fail;
5832 }
5833 {
5834 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5835 }
5836 return resultobj;
5837 fail:
5838 return NULL;
5839 }
5840
5841
5842 SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5843 PyObject *obj;
5844 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5845 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
5846 return SWIG_Py_Void();
5847 }
5848
5849 SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5850 return SWIG_Python_InitShadowInstance(args);
5851 }
5852
5853 SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5854 PyObject *resultobj = 0;
5855 wxString *arg1 = 0 ;
5856 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
5857 wxBitmap *result = 0 ;
5858 bool temp1 = false ;
5859 int val2 ;
5860 int ecode2 = 0 ;
5861 PyObject * obj0 = 0 ;
5862 PyObject * obj1 = 0 ;
5863 char * kwnames[] = {
5864 (char *) "name",(char *) "type", NULL
5865 };
5866
5867 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
5868 {
5869 arg1 = wxString_in_helper(obj0);
5870 if (arg1 == NULL) SWIG_fail;
5871 temp1 = true;
5872 }
5873 if (obj1) {
5874 ecode2 = SWIG_AsVal_int(obj1, &val2);
5875 if (!SWIG_IsOK(ecode2)) {
5876 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
5877 }
5878 arg2 = static_cast< wxBitmapType >(val2);
5879 }
5880 {
5881 if (!wxPyCheckForApp()) SWIG_fail;
5882 PyThreadState* __tstate = wxPyBeginAllowThreads();
5883 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
5884 wxPyEndAllowThreads(__tstate);
5885 if (PyErr_Occurred()) SWIG_fail;
5886 }
5887 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
5888 {
5889 if (temp1)
5890 delete arg1;
5891 }
5892 return resultobj;
5893 fail:
5894 {
5895 if (temp1)
5896 delete arg1;
5897 }
5898 return NULL;
5899 }
5900
5901
5902 SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5903 PyObject *resultobj = 0;
5904 wxBitmap *arg1 = (wxBitmap *) 0 ;
5905 void *argp1 = 0 ;
5906 int res1 = 0 ;
5907 PyObject *swig_obj[1] ;
5908
5909 if (!args) SWIG_fail;
5910 swig_obj[0] = args;
5911 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
5912 if (!SWIG_IsOK(res1)) {
5913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
5914 }
5915 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5916 {
5917 delete arg1;
5918
5919 if (PyErr_Occurred()) SWIG_fail;
5920 }
5921 resultobj = SWIG_Py_Void();
5922 return resultobj;
5923 fail:
5924 return NULL;
5925 }
5926
5927
5928 SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5929 PyObject *resultobj = 0;
5930 int arg1 ;
5931 int arg2 ;
5932 int arg3 = (int) -1 ;
5933 wxBitmap *result = 0 ;
5934 int val1 ;
5935 int ecode1 = 0 ;
5936 int val2 ;
5937 int ecode2 = 0 ;
5938 int val3 ;
5939 int ecode3 = 0 ;
5940 PyObject * obj0 = 0 ;
5941 PyObject * obj1 = 0 ;
5942 PyObject * obj2 = 0 ;
5943 char * kwnames[] = {
5944 (char *) "width",(char *) "height",(char *) "depth", NULL
5945 };
5946
5947 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5948 ecode1 = SWIG_AsVal_int(obj0, &val1);
5949 if (!SWIG_IsOK(ecode1)) {
5950 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
5951 }
5952 arg1 = static_cast< int >(val1);
5953 ecode2 = SWIG_AsVal_int(obj1, &val2);
5954 if (!SWIG_IsOK(ecode2)) {
5955 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
5956 }
5957 arg2 = static_cast< int >(val2);
5958 if (obj2) {
5959 ecode3 = SWIG_AsVal_int(obj2, &val3);
5960 if (!SWIG_IsOK(ecode3)) {
5961 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
5962 }
5963 arg3 = static_cast< int >(val3);
5964 }
5965 {
5966 if (!wxPyCheckForApp()) SWIG_fail;
5967 PyThreadState* __tstate = wxPyBeginAllowThreads();
5968 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
5969 wxPyEndAllowThreads(__tstate);
5970 if (PyErr_Occurred()) SWIG_fail;
5971 }
5972 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5973 return resultobj;
5974 fail:
5975 return NULL;
5976 }
5977
5978
5979 SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5980 PyObject *resultobj = 0;
5981 wxIcon *arg1 = 0 ;
5982 wxBitmap *result = 0 ;
5983 void *argp1 = 0 ;
5984 int res1 = 0 ;
5985 PyObject * obj0 = 0 ;
5986 char * kwnames[] = {
5987 (char *) "icon", NULL
5988 };
5989
5990 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
5991 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
5992 if (!SWIG_IsOK(res1)) {
5993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5994 }
5995 if (!argp1) {
5996 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5997 }
5998 arg1 = reinterpret_cast< wxIcon * >(argp1);
5999 {
6000 if (!wxPyCheckForApp()) SWIG_fail;
6001 PyThreadState* __tstate = wxPyBeginAllowThreads();
6002 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
6003 wxPyEndAllowThreads(__tstate);
6004 if (PyErr_Occurred()) SWIG_fail;
6005 }
6006 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6007 return resultobj;
6008 fail:
6009 return NULL;
6010 }
6011
6012
6013 SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6014 PyObject *resultobj = 0;
6015 wxImage *arg1 = 0 ;
6016 int arg2 = (int) -1 ;
6017 wxBitmap *result = 0 ;
6018 void *argp1 = 0 ;
6019 int res1 = 0 ;
6020 int val2 ;
6021 int ecode2 = 0 ;
6022 PyObject * obj0 = 0 ;
6023 PyObject * obj1 = 0 ;
6024 char * kwnames[] = {
6025 (char *) "image",(char *) "depth", NULL
6026 };
6027
6028 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
6029 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
6030 if (!SWIG_IsOK(res1)) {
6031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6032 }
6033 if (!argp1) {
6034 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6035 }
6036 arg1 = reinterpret_cast< wxImage * >(argp1);
6037 if (obj1) {
6038 ecode2 = SWIG_AsVal_int(obj1, &val2);
6039 if (!SWIG_IsOK(ecode2)) {
6040 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
6041 }
6042 arg2 = static_cast< int >(val2);
6043 }
6044 {
6045 if (!wxPyCheckForApp()) SWIG_fail;
6046 PyThreadState* __tstate = wxPyBeginAllowThreads();
6047 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
6048 wxPyEndAllowThreads(__tstate);
6049 if (PyErr_Occurred()) SWIG_fail;
6050 }
6051 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6052 return resultobj;
6053 fail:
6054 return NULL;
6055 }
6056
6057
6058 SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6059 PyObject *resultobj = 0;
6060 PyObject *arg1 = (PyObject *) 0 ;
6061 wxBitmap *result = 0 ;
6062 PyObject * obj0 = 0 ;
6063 char * kwnames[] = {
6064 (char *) "listOfStrings", NULL
6065 };
6066
6067 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
6068 arg1 = obj0;
6069 {
6070 if (!wxPyCheckForApp()) SWIG_fail;
6071 PyThreadState* __tstate = wxPyBeginAllowThreads();
6072 result = (wxBitmap *)new_wxBitmap(arg1);
6073 wxPyEndAllowThreads(__tstate);
6074 if (PyErr_Occurred()) SWIG_fail;
6075 }
6076 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6077 return resultobj;
6078 fail:
6079 return NULL;
6080 }
6081
6082
6083 SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6084 PyObject *resultobj = 0;
6085 PyObject *arg1 = (PyObject *) 0 ;
6086 int arg2 ;
6087 int arg3 ;
6088 int arg4 = (int) 1 ;
6089 wxBitmap *result = 0 ;
6090 int val2 ;
6091 int ecode2 = 0 ;
6092 int val3 ;
6093 int ecode3 = 0 ;
6094 int val4 ;
6095 int ecode4 = 0 ;
6096 PyObject * obj0 = 0 ;
6097 PyObject * obj1 = 0 ;
6098 PyObject * obj2 = 0 ;
6099 PyObject * obj3 = 0 ;
6100 char * kwnames[] = {
6101 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
6102 };
6103
6104 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6105 arg1 = obj0;
6106 ecode2 = SWIG_AsVal_int(obj1, &val2);
6107 if (!SWIG_IsOK(ecode2)) {
6108 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
6109 }
6110 arg2 = static_cast< int >(val2);
6111 ecode3 = SWIG_AsVal_int(obj2, &val3);
6112 if (!SWIG_IsOK(ecode3)) {
6113 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
6114 }
6115 arg3 = static_cast< int >(val3);
6116 if (obj3) {
6117 ecode4 = SWIG_AsVal_int(obj3, &val4);
6118 if (!SWIG_IsOK(ecode4)) {
6119 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
6120 }
6121 arg4 = static_cast< int >(val4);
6122 }
6123 {
6124 if (!wxPyCheckForApp()) SWIG_fail;
6125 PyThreadState* __tstate = wxPyBeginAllowThreads();
6126 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
6127 wxPyEndAllowThreads(__tstate);
6128 if (PyErr_Occurred()) SWIG_fail;
6129 }
6130 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6131 return resultobj;
6132 fail:
6133 return NULL;
6134 }
6135
6136
6137 SWIGINTERN PyObject *_wrap_Bitmap_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6138 PyObject *resultobj = 0;
6139 wxBitmap *arg1 = (wxBitmap *) 0 ;
6140 long result;
6141 void *argp1 = 0 ;
6142 int res1 = 0 ;
6143 PyObject *swig_obj[1] ;
6144
6145 if (!args) SWIG_fail;
6146 swig_obj[0] = args;
6147 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6148 if (!SWIG_IsOK(res1)) {
6149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHandle" "', expected argument " "1"" of type '" "wxBitmap *""'");
6150 }
6151 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6152 {
6153 result = (long)(arg1)->GetHandle();
6154 if (PyErr_Occurred()) SWIG_fail;
6155 }
6156 resultobj = SWIG_From_long(static_cast< long >(result));
6157 return resultobj;
6158 fail:
6159 return NULL;
6160 }
6161
6162
6163 SWIGINTERN PyObject *_wrap_Bitmap_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6164 PyObject *resultobj = 0;
6165 wxBitmap *arg1 = (wxBitmap *) 0 ;
6166 long arg2 ;
6167 void *argp1 = 0 ;
6168 int res1 = 0 ;
6169 long val2 ;
6170 int ecode2 = 0 ;
6171 PyObject * obj0 = 0 ;
6172 PyObject * obj1 = 0 ;
6173 char * kwnames[] = {
6174 (char *) "self",(char *) "handle", NULL
6175 };
6176
6177 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
6178 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6179 if (!SWIG_IsOK(res1)) {
6180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHandle" "', expected argument " "1"" of type '" "wxBitmap *""'");
6181 }
6182 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6183 ecode2 = SWIG_AsVal_long(obj1, &val2);
6184 if (!SWIG_IsOK(ecode2)) {
6185 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHandle" "', expected argument " "2"" of type '" "long""'");
6186 }
6187 arg2 = static_cast< long >(val2);
6188 {
6189 wxBitmap_SetHandle(arg1,arg2);
6190 if (PyErr_Occurred()) SWIG_fail;
6191 }
6192 resultobj = SWIG_Py_Void();
6193 return resultobj;
6194 fail:
6195 return NULL;
6196 }
6197
6198
6199 SWIGINTERN PyObject *_wrap_Bitmap_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6200 PyObject *resultobj = 0;
6201 wxBitmap *arg1 = (wxBitmap *) 0 ;
6202 bool result;
6203 void *argp1 = 0 ;
6204 int res1 = 0 ;
6205 PyObject *swig_obj[1] ;
6206
6207 if (!args) SWIG_fail;
6208 swig_obj[0] = args;
6209 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6210 if (!SWIG_IsOK(res1)) {
6211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_IsOk" "', expected argument " "1"" of type '" "wxBitmap *""'");
6212 }
6213 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6214 {
6215 result = (bool)(arg1)->IsOk();
6216 if (PyErr_Occurred()) SWIG_fail;
6217 }
6218 {
6219 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6220 }
6221 return resultobj;
6222 fail:
6223 return NULL;
6224 }
6225
6226
6227 SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6228 PyObject *resultobj = 0;
6229 wxBitmap *arg1 = (wxBitmap *) 0 ;
6230 int result;
6231 void *argp1 = 0 ;
6232 int res1 = 0 ;
6233 PyObject *swig_obj[1] ;
6234
6235 if (!args) SWIG_fail;
6236 swig_obj[0] = args;
6237 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6238 if (!SWIG_IsOK(res1)) {
6239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6240 }
6241 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6242 {
6243 result = (int)(arg1)->GetWidth();
6244 if (PyErr_Occurred()) SWIG_fail;
6245 }
6246 resultobj = SWIG_From_int(static_cast< int >(result));
6247 return resultobj;
6248 fail:
6249 return NULL;
6250 }
6251
6252
6253 SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6254 PyObject *resultobj = 0;
6255 wxBitmap *arg1 = (wxBitmap *) 0 ;
6256 int result;
6257 void *argp1 = 0 ;
6258 int res1 = 0 ;
6259 PyObject *swig_obj[1] ;
6260
6261 if (!args) SWIG_fail;
6262 swig_obj[0] = args;
6263 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6264 if (!SWIG_IsOK(res1)) {
6265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6266 }
6267 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6268 {
6269 result = (int)(arg1)->GetHeight();
6270 if (PyErr_Occurred()) SWIG_fail;
6271 }
6272 resultobj = SWIG_From_int(static_cast< int >(result));
6273 return resultobj;
6274 fail:
6275 return NULL;
6276 }
6277
6278
6279 SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6280 PyObject *resultobj = 0;
6281 wxBitmap *arg1 = (wxBitmap *) 0 ;
6282 int result;
6283 void *argp1 = 0 ;
6284 int res1 = 0 ;
6285 PyObject *swig_obj[1] ;
6286
6287 if (!args) SWIG_fail;
6288 swig_obj[0] = args;
6289 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6290 if (!SWIG_IsOK(res1)) {
6291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6292 }
6293 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6294 {
6295 result = (int)(arg1)->GetDepth();
6296 if (PyErr_Occurred()) SWIG_fail;
6297 }
6298 resultobj = SWIG_From_int(static_cast< int >(result));
6299 return resultobj;
6300 fail:
6301 return NULL;
6302 }
6303
6304
6305 SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6306 PyObject *resultobj = 0;
6307 wxBitmap *arg1 = (wxBitmap *) 0 ;
6308 wxSize result;
6309 void *argp1 = 0 ;
6310 int res1 = 0 ;
6311 PyObject *swig_obj[1] ;
6312
6313 if (!args) SWIG_fail;
6314 swig_obj[0] = args;
6315 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6316 if (!SWIG_IsOK(res1)) {
6317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6318 }
6319 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6320 {
6321 result = wxBitmap_GetSize(arg1);
6322 if (PyErr_Occurred()) SWIG_fail;
6323 }
6324 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6325 return resultobj;
6326 fail:
6327 return NULL;
6328 }
6329
6330
6331 SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6332 PyObject *resultobj = 0;
6333 wxBitmap *arg1 = (wxBitmap *) 0 ;
6334 SwigValueWrapper<wxImage > result;
6335 void *argp1 = 0 ;
6336 int res1 = 0 ;
6337 PyObject *swig_obj[1] ;
6338
6339 if (!args) SWIG_fail;
6340 swig_obj[0] = args;
6341 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6342 if (!SWIG_IsOK(res1)) {
6343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6344 }
6345 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6346 {
6347 result = ((wxBitmap const *)arg1)->ConvertToImage();
6348 if (PyErr_Occurred()) SWIG_fail;
6349 }
6350 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
6351 return resultobj;
6352 fail:
6353 return NULL;
6354 }
6355
6356
6357 SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6358 PyObject *resultobj = 0;
6359 wxBitmap *arg1 = (wxBitmap *) 0 ;
6360 wxMask *result = 0 ;
6361 void *argp1 = 0 ;
6362 int res1 = 0 ;
6363 PyObject *swig_obj[1] ;
6364
6365 if (!args) SWIG_fail;
6366 swig_obj[0] = args;
6367 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6368 if (!SWIG_IsOK(res1)) {
6369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6370 }
6371 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6372 {
6373 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
6374 if (PyErr_Occurred()) SWIG_fail;
6375 }
6376 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
6377 return resultobj;
6378 fail:
6379 return NULL;
6380 }
6381
6382
6383 SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6384 PyObject *resultobj = 0;
6385 wxBitmap *arg1 = (wxBitmap *) 0 ;
6386 wxMask *arg2 = (wxMask *) 0 ;
6387 void *argp1 = 0 ;
6388 int res1 = 0 ;
6389 int res2 = 0 ;
6390 PyObject * obj0 = 0 ;
6391 PyObject * obj1 = 0 ;
6392 char * kwnames[] = {
6393 (char *) "self",(char *) "mask", NULL
6394 };
6395
6396 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
6397 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6398 if (!SWIG_IsOK(res1)) {
6399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
6400 }
6401 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6402 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6403 if (!SWIG_IsOK(res2)) {
6404 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
6405 }
6406 {
6407 (arg1)->SetMask(arg2);
6408 if (PyErr_Occurred()) SWIG_fail;
6409 }
6410 resultobj = SWIG_Py_Void();
6411 return resultobj;
6412 fail:
6413 return NULL;
6414 }
6415
6416
6417 SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6418 PyObject *resultobj = 0;
6419 wxBitmap *arg1 = (wxBitmap *) 0 ;
6420 wxColour *arg2 = 0 ;
6421 void *argp1 = 0 ;
6422 int res1 = 0 ;
6423 wxColour temp2 ;
6424 PyObject * obj0 = 0 ;
6425 PyObject * obj1 = 0 ;
6426 char * kwnames[] = {
6427 (char *) "self",(char *) "colour", NULL
6428 };
6429
6430 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
6431 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6432 if (!SWIG_IsOK(res1)) {
6433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
6434 }
6435 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6436 {
6437 arg2 = &temp2;
6438 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6439 }
6440 {
6441 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
6442 if (PyErr_Occurred()) SWIG_fail;
6443 }
6444 resultobj = SWIG_Py_Void();
6445 return resultobj;
6446 fail:
6447 return NULL;
6448 }
6449
6450
6451 SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6452 PyObject *resultobj = 0;
6453 wxBitmap *arg1 = (wxBitmap *) 0 ;
6454 wxRect *arg2 = 0 ;
6455 SwigValueWrapper<wxBitmap > result;
6456 void *argp1 = 0 ;
6457 int res1 = 0 ;
6458 wxRect temp2 ;
6459 PyObject * obj0 = 0 ;
6460 PyObject * obj1 = 0 ;
6461 char * kwnames[] = {
6462 (char *) "self",(char *) "rect", NULL
6463 };
6464
6465 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6466 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6467 if (!SWIG_IsOK(res1)) {
6468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6469 }
6470 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6471 {
6472 arg2 = &temp2;
6473 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6474 }
6475 {
6476 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
6477 if (PyErr_Occurred()) SWIG_fail;
6478 }
6479 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6480 return resultobj;
6481 fail:
6482 return NULL;
6483 }
6484
6485
6486 SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6487 PyObject *resultobj = 0;
6488 wxBitmap *arg1 = (wxBitmap *) 0 ;
6489 wxString *arg2 = 0 ;
6490 wxBitmapType arg3 ;
6491 wxPalette *arg4 = (wxPalette *) NULL ;
6492 bool result;
6493 void *argp1 = 0 ;
6494 int res1 = 0 ;
6495 bool temp2 = false ;
6496 int val3 ;
6497 int ecode3 = 0 ;
6498 void *argp4 = 0 ;
6499 int res4 = 0 ;
6500 PyObject * obj0 = 0 ;
6501 PyObject * obj1 = 0 ;
6502 PyObject * obj2 = 0 ;
6503 PyObject * obj3 = 0 ;
6504 char * kwnames[] = {
6505 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
6506 };
6507
6508 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6509 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6510 if (!SWIG_IsOK(res1)) {
6511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6512 }
6513 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6514 {
6515 arg2 = wxString_in_helper(obj1);
6516 if (arg2 == NULL) SWIG_fail;
6517 temp2 = true;
6518 }
6519 ecode3 = SWIG_AsVal_int(obj2, &val3);
6520 if (!SWIG_IsOK(ecode3)) {
6521 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6522 }
6523 arg3 = static_cast< wxBitmapType >(val3);
6524 if (obj3) {
6525 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
6526 if (!SWIG_IsOK(res4)) {
6527 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
6528 }
6529 arg4 = reinterpret_cast< wxPalette * >(argp4);
6530 }
6531 {
6532 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
6533 if (PyErr_Occurred()) SWIG_fail;
6534 }
6535 {
6536 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6537 }
6538 {
6539 if (temp2)
6540 delete arg2;
6541 }
6542 return resultobj;
6543 fail:
6544 {
6545 if (temp2)
6546 delete arg2;
6547 }
6548 return NULL;
6549 }
6550
6551
6552 SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6553 PyObject *resultobj = 0;
6554 wxBitmap *arg1 = (wxBitmap *) 0 ;
6555 wxString *arg2 = 0 ;
6556 wxBitmapType arg3 ;
6557 bool result;
6558 void *argp1 = 0 ;
6559 int res1 = 0 ;
6560 bool temp2 = false ;
6561 int val3 ;
6562 int ecode3 = 0 ;
6563 PyObject * obj0 = 0 ;
6564 PyObject * obj1 = 0 ;
6565 PyObject * obj2 = 0 ;
6566 char * kwnames[] = {
6567 (char *) "self",(char *) "name",(char *) "type", NULL
6568 };
6569
6570 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6571 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6572 if (!SWIG_IsOK(res1)) {
6573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6574 }
6575 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6576 {
6577 arg2 = wxString_in_helper(obj1);
6578 if (arg2 == NULL) SWIG_fail;
6579 temp2 = true;
6580 }
6581 ecode3 = SWIG_AsVal_int(obj2, &val3);
6582 if (!SWIG_IsOK(ecode3)) {
6583 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6584 }
6585 arg3 = static_cast< wxBitmapType >(val3);
6586 {
6587 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
6588 if (PyErr_Occurred()) SWIG_fail;
6589 }
6590 {
6591 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6592 }
6593 {
6594 if (temp2)
6595 delete arg2;
6596 }
6597 return resultobj;
6598 fail:
6599 {
6600 if (temp2)
6601 delete arg2;
6602 }
6603 return NULL;
6604 }
6605
6606
6607 SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6608 PyObject *resultobj = 0;
6609 wxBitmap *arg1 = (wxBitmap *) 0 ;
6610 wxPalette *result = 0 ;
6611 void *argp1 = 0 ;
6612 int res1 = 0 ;
6613 PyObject *swig_obj[1] ;
6614
6615 if (!args) SWIG_fail;
6616 swig_obj[0] = args;
6617 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6618 if (!SWIG_IsOK(res1)) {
6619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6620 }
6621 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6622 {
6623 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
6624 if (PyErr_Occurred()) SWIG_fail;
6625 }
6626 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6627 return resultobj;
6628 fail:
6629 return NULL;
6630 }
6631
6632
6633 SWIGINTERN PyObject *_wrap_Bitmap_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6634 PyObject *resultobj = 0;
6635 wxBitmap *arg1 = (wxBitmap *) 0 ;
6636 wxPalette *arg2 = 0 ;
6637 void *argp1 = 0 ;
6638 int res1 = 0 ;
6639 void *argp2 = 0 ;
6640 int res2 = 0 ;
6641 PyObject * obj0 = 0 ;
6642 PyObject * obj1 = 0 ;
6643 char * kwnames[] = {
6644 (char *) "self",(char *) "palette", NULL
6645 };
6646
6647 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
6648 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6649 if (!SWIG_IsOK(res1)) {
6650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetPalette" "', expected argument " "1"" of type '" "wxBitmap *""'");
6651 }
6652 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6653 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
6654 if (!SWIG_IsOK(res2)) {
6655 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
6656 }
6657 if (!argp2) {
6658 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
6659 }
6660 arg2 = reinterpret_cast< wxPalette * >(argp2);
6661 {
6662 (arg1)->SetPalette((wxPalette const &)*arg2);
6663 if (PyErr_Occurred()) SWIG_fail;
6664 }
6665 resultobj = SWIG_Py_Void();
6666 return resultobj;
6667 fail:
6668 return NULL;
6669 }
6670
6671
6672 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6673 PyObject *resultobj = 0;
6674 wxBitmap *arg1 = (wxBitmap *) 0 ;
6675 wxIcon *arg2 = 0 ;
6676 bool result;
6677 void *argp1 = 0 ;
6678 int res1 = 0 ;
6679 void *argp2 = 0 ;
6680 int res2 = 0 ;
6681 PyObject * obj0 = 0 ;
6682 PyObject * obj1 = 0 ;
6683 char * kwnames[] = {
6684 (char *) "self",(char *) "icon", NULL
6685 };
6686
6687 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6688 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6689 if (!SWIG_IsOK(res1)) {
6690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6691 }
6692 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6693 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6694 if (!SWIG_IsOK(res2)) {
6695 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6696 }
6697 if (!argp2) {
6698 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6699 }
6700 arg2 = reinterpret_cast< wxIcon * >(argp2);
6701 {
6702 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
6703 if (PyErr_Occurred()) SWIG_fail;
6704 }
6705 {
6706 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6707 }
6708 return resultobj;
6709 fail:
6710 return NULL;
6711 }
6712
6713
6714 SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6715 PyObject *resultobj = 0;
6716 wxBitmap *arg1 = (wxBitmap *) 0 ;
6717 int arg2 ;
6718 void *argp1 = 0 ;
6719 int res1 = 0 ;
6720 int val2 ;
6721 int ecode2 = 0 ;
6722 PyObject * obj0 = 0 ;
6723 PyObject * obj1 = 0 ;
6724 char * kwnames[] = {
6725 (char *) "self",(char *) "height", NULL
6726 };
6727
6728 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6729 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6730 if (!SWIG_IsOK(res1)) {
6731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6732 }
6733 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6734 ecode2 = SWIG_AsVal_int(obj1, &val2);
6735 if (!SWIG_IsOK(ecode2)) {
6736 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6737 }
6738 arg2 = static_cast< int >(val2);
6739 {
6740 (arg1)->SetHeight(arg2);
6741 if (PyErr_Occurred()) SWIG_fail;
6742 }
6743 resultobj = SWIG_Py_Void();
6744 return resultobj;
6745 fail:
6746 return NULL;
6747 }
6748
6749
6750 SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6751 PyObject *resultobj = 0;
6752 wxBitmap *arg1 = (wxBitmap *) 0 ;
6753 int arg2 ;
6754 void *argp1 = 0 ;
6755 int res1 = 0 ;
6756 int val2 ;
6757 int ecode2 = 0 ;
6758 PyObject * obj0 = 0 ;
6759 PyObject * obj1 = 0 ;
6760 char * kwnames[] = {
6761 (char *) "self",(char *) "width", NULL
6762 };
6763
6764 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6765 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6766 if (!SWIG_IsOK(res1)) {
6767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6768 }
6769 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6770 ecode2 = SWIG_AsVal_int(obj1, &val2);
6771 if (!SWIG_IsOK(ecode2)) {
6772 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6773 }
6774 arg2 = static_cast< int >(val2);
6775 {
6776 (arg1)->SetWidth(arg2);
6777 if (PyErr_Occurred()) SWIG_fail;
6778 }
6779 resultobj = SWIG_Py_Void();
6780 return resultobj;
6781 fail:
6782 return NULL;
6783 }
6784
6785
6786 SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6787 PyObject *resultobj = 0;
6788 wxBitmap *arg1 = (wxBitmap *) 0 ;
6789 int arg2 ;
6790 void *argp1 = 0 ;
6791 int res1 = 0 ;
6792 int val2 ;
6793 int ecode2 = 0 ;
6794 PyObject * obj0 = 0 ;
6795 PyObject * obj1 = 0 ;
6796 char * kwnames[] = {
6797 (char *) "self",(char *) "depth", NULL
6798 };
6799
6800 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6801 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6802 if (!SWIG_IsOK(res1)) {
6803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6804 }
6805 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6806 ecode2 = SWIG_AsVal_int(obj1, &val2);
6807 if (!SWIG_IsOK(ecode2)) {
6808 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6809 }
6810 arg2 = static_cast< int >(val2);
6811 {
6812 (arg1)->SetDepth(arg2);
6813 if (PyErr_Occurred()) SWIG_fail;
6814 }
6815 resultobj = SWIG_Py_Void();
6816 return resultobj;
6817 fail:
6818 return NULL;
6819 }
6820
6821
6822 SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6823 PyObject *resultobj = 0;
6824 wxBitmap *arg1 = (wxBitmap *) 0 ;
6825 wxSize *arg2 = 0 ;
6826 void *argp1 = 0 ;
6827 int res1 = 0 ;
6828 wxSize temp2 ;
6829 PyObject * obj0 = 0 ;
6830 PyObject * obj1 = 0 ;
6831 char * kwnames[] = {
6832 (char *) "self",(char *) "size", NULL
6833 };
6834
6835 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
6836 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6837 if (!SWIG_IsOK(res1)) {
6838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6839 }
6840 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6841 {
6842 arg2 = &temp2;
6843 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6844 }
6845 {
6846 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
6847 if (PyErr_Occurred()) SWIG_fail;
6848 }
6849 resultobj = SWIG_Py_Void();
6850 return resultobj;
6851 fail:
6852 return NULL;
6853 }
6854
6855
6856 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6857 PyObject *resultobj = 0;
6858 wxBitmap *arg1 = (wxBitmap *) 0 ;
6859 wxCursor *arg2 = 0 ;
6860 bool result;
6861 void *argp1 = 0 ;
6862 int res1 = 0 ;
6863 void *argp2 = 0 ;
6864 int res2 = 0 ;
6865 PyObject * obj0 = 0 ;
6866 PyObject * obj1 = 0 ;
6867 char * kwnames[] = {
6868 (char *) "self",(char *) "cursor", NULL
6869 };
6870
6871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromCursor",kwnames,&obj0,&obj1)) SWIG_fail;
6872 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6873 if (!SWIG_IsOK(res1)) {
6874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromCursor" "', expected argument " "1"" of type '" "wxBitmap *""'");
6875 }
6876 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6877 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
6878 if (!SWIG_IsOK(res2)) {
6879 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromCursor" "', expected argument " "2"" of type '" "wxCursor const &""'");
6880 }
6881 if (!argp2) {
6882 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromCursor" "', expected argument " "2"" of type '" "wxCursor const &""'");
6883 }
6884 arg2 = reinterpret_cast< wxCursor * >(argp2);
6885 {
6886 result = (bool)(arg1)->CopyFromCursor((wxCursor const &)*arg2);
6887 if (PyErr_Occurred()) SWIG_fail;
6888 }
6889 {
6890 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6891 }
6892 return resultobj;
6893 fail:
6894 return NULL;
6895 }
6896
6897
6898 SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6899 PyObject *resultobj = 0;
6900 wxBitmap *arg1 = (wxBitmap *) 0 ;
6901 wxBitmap *arg2 = (wxBitmap *) 0 ;
6902 bool result;
6903 void *argp1 = 0 ;
6904 int res1 = 0 ;
6905 void *argp2 = 0 ;
6906 int res2 = 0 ;
6907 PyObject * obj0 = 0 ;
6908 PyObject * obj1 = 0 ;
6909 char * kwnames[] = {
6910 (char *) "self",(char *) "other", NULL
6911 };
6912
6913 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
6914 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6915 if (!SWIG_IsOK(res1)) {
6916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6917 }
6918 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6919 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6920 if (!SWIG_IsOK(res2)) {
6921 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6922 }
6923 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6924 {
6925 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
6926 if (PyErr_Occurred()) SWIG_fail;
6927 }
6928 {
6929 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6930 }
6931 return resultobj;
6932 fail:
6933 return NULL;
6934 }
6935
6936
6937 SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6938 PyObject *resultobj = 0;
6939 wxBitmap *arg1 = (wxBitmap *) 0 ;
6940 wxBitmap *arg2 = (wxBitmap *) 0 ;
6941 bool result;
6942 void *argp1 = 0 ;
6943 int res1 = 0 ;
6944 void *argp2 = 0 ;
6945 int res2 = 0 ;
6946 PyObject * obj0 = 0 ;
6947 PyObject * obj1 = 0 ;
6948 char * kwnames[] = {
6949 (char *) "self",(char *) "other", NULL
6950 };
6951
6952 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
6953 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6954 if (!SWIG_IsOK(res1)) {
6955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6956 }
6957 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6958 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6959 if (!SWIG_IsOK(res2)) {
6960 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6961 }
6962 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6963 {
6964 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
6965 if (PyErr_Occurred()) SWIG_fail;
6966 }
6967 {
6968 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6969 }
6970 return resultobj;
6971 fail:
6972 return NULL;
6973 }
6974
6975
6976 SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6977 PyObject *obj;
6978 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6979 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
6980 return SWIG_Py_Void();
6981 }
6982
6983 SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6984 return SWIG_Python_InitShadowInstance(args);
6985 }
6986
6987 SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6988 PyObject *resultobj = 0;
6989 int arg1 ;
6990 int arg2 ;
6991 buffer arg3 ;
6992 int arg4 ;
6993 buffer arg5 ;
6994 int arg6 ;
6995 wxBitmap *result = 0 ;
6996 int val1 ;
6997 int ecode1 = 0 ;
6998 int val2 ;
6999 int ecode2 = 0 ;
7000 Py_ssize_t temp3 ;
7001 Py_ssize_t temp5 ;
7002 PyObject * obj0 = 0 ;
7003 PyObject * obj1 = 0 ;
7004 PyObject * obj2 = 0 ;
7005 PyObject * obj3 = 0 ;
7006 char * kwnames[] = {
7007 (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
7008 };
7009
7010 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7011 ecode1 = SWIG_AsVal_int(obj0, &val1);
7012 if (!SWIG_IsOK(ecode1)) {
7013 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'");
7014 }
7015 arg1 = static_cast< int >(val1);
7016 ecode2 = SWIG_AsVal_int(obj1, &val2);
7017 if (!SWIG_IsOK(ecode2)) {
7018 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'");
7019 }
7020 arg2 = static_cast< int >(val2);
7021 {
7022 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7023 arg4 = (int)temp3;
7024 }
7025 {
7026 if (obj3 != Py_None) {
7027 if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail;
7028 arg6 = (int)temp5;
7029 }
7030 }
7031 {
7032 result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6);
7033 if (PyErr_Occurred()) SWIG_fail;
7034 }
7035 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7036 return resultobj;
7037 fail:
7038 return NULL;
7039 }
7040
7041
7042 SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7043 PyObject *resultobj = 0;
7044 int arg1 ;
7045 int arg2 ;
7046 buffer arg3 ;
7047 int arg4 ;
7048 wxBitmap *result = 0 ;
7049 int val1 ;
7050 int ecode1 = 0 ;
7051 int val2 ;
7052 int ecode2 = 0 ;
7053 Py_ssize_t temp3 ;
7054 PyObject * obj0 = 0 ;
7055 PyObject * obj1 = 0 ;
7056 PyObject * obj2 = 0 ;
7057 char * kwnames[] = {
7058 (char *) "width",(char *) "height",(char *) "data", NULL
7059 };
7060
7061 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7062 ecode1 = SWIG_AsVal_int(obj0, &val1);
7063 if (!SWIG_IsOK(ecode1)) {
7064 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'");
7065 }
7066 arg1 = static_cast< int >(val1);
7067 ecode2 = SWIG_AsVal_int(obj1, &val2);
7068 if (!SWIG_IsOK(ecode2)) {
7069 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'");
7070 }
7071 arg2 = static_cast< int >(val2);
7072 {
7073 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7074 arg4 = (int)temp3;
7075 }
7076 {
7077 result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4);
7078 if (PyErr_Occurred()) SWIG_fail;
7079 }
7080 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7081 return resultobj;
7082 fail:
7083 return NULL;
7084 }
7085
7086
7087 SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7088 PyObject *resultobj = 0;
7089 int arg1 ;
7090 int arg2 ;
7091 buffer arg3 ;
7092 int arg4 ;
7093 wxBitmap *result = 0 ;
7094 int val1 ;
7095 int ecode1 = 0 ;
7096 int val2 ;
7097 int ecode2 = 0 ;
7098 Py_ssize_t temp3 ;
7099 PyObject * obj0 = 0 ;
7100 PyObject * obj1 = 0 ;
7101 PyObject * obj2 = 0 ;
7102 char * kwnames[] = {
7103 (char *) "width",(char *) "height",(char *) "data", NULL
7104 };
7105
7106 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7107 ecode1 = SWIG_AsVal_int(obj0, &val1);
7108 if (!SWIG_IsOK(ecode1)) {
7109 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'");
7110 }
7111 arg1 = static_cast< int >(val1);
7112 ecode2 = SWIG_AsVal_int(obj1, &val2);
7113 if (!SWIG_IsOK(ecode2)) {
7114 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'");
7115 }
7116 arg2 = static_cast< int >(val2);
7117 {
7118 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7119 arg4 = (int)temp3;
7120 }
7121 {
7122 result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4);
7123 if (PyErr_Occurred()) SWIG_fail;
7124 }
7125 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7126 return resultobj;
7127 fail:
7128 return NULL;
7129 }
7130
7131
7132 SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7133 PyObject *resultobj = 0;
7134 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7135 wxPoint result;
7136 void *argp1 = 0 ;
7137 int res1 = 0 ;
7138 PyObject *swig_obj[1] ;
7139
7140 if (!args) SWIG_fail;
7141 swig_obj[0] = args;
7142 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7143 if (!SWIG_IsOK(res1)) {
7144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7145 }
7146 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7147 {
7148 result = ((wxPixelDataBase const *)arg1)->GetOrigin();
7149 if (PyErr_Occurred()) SWIG_fail;
7150 }
7151 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
7152 return resultobj;
7153 fail:
7154 return NULL;
7155 }
7156
7157
7158 SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7159 PyObject *resultobj = 0;
7160 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7161 int result;
7162 void *argp1 = 0 ;
7163 int res1 = 0 ;
7164 PyObject *swig_obj[1] ;
7165
7166 if (!args) SWIG_fail;
7167 swig_obj[0] = args;
7168 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7169 if (!SWIG_IsOK(res1)) {
7170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7171 }
7172 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7173 {
7174 result = (int)((wxPixelDataBase const *)arg1)->GetWidth();
7175 if (PyErr_Occurred()) SWIG_fail;
7176 }
7177 resultobj = SWIG_From_int(static_cast< int >(result));
7178 return resultobj;
7179 fail:
7180 return NULL;
7181 }
7182
7183
7184 SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7185 PyObject *resultobj = 0;
7186 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7187 int result;
7188 void *argp1 = 0 ;
7189 int res1 = 0 ;
7190 PyObject *swig_obj[1] ;
7191
7192 if (!args) SWIG_fail;
7193 swig_obj[0] = args;
7194 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7195 if (!SWIG_IsOK(res1)) {
7196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7197 }
7198 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7199 {
7200 result = (int)((wxPixelDataBase const *)arg1)->GetHeight();
7201 if (PyErr_Occurred()) SWIG_fail;
7202 }
7203 resultobj = SWIG_From_int(static_cast< int >(result));
7204 return resultobj;
7205 fail:
7206 return NULL;
7207 }
7208
7209
7210 SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7211 PyObject *resultobj = 0;
7212 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7213 wxSize result;
7214 void *argp1 = 0 ;
7215 int res1 = 0 ;
7216 PyObject *swig_obj[1] ;
7217
7218 if (!args) SWIG_fail;
7219 swig_obj[0] = args;
7220 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7221 if (!SWIG_IsOK(res1)) {
7222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7223 }
7224 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7225 {
7226 result = ((wxPixelDataBase const *)arg1)->GetSize();
7227 if (PyErr_Occurred()) SWIG_fail;
7228 }
7229 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
7230 return resultobj;
7231 fail:
7232 return NULL;
7233 }
7234
7235
7236 SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7237 PyObject *resultobj = 0;
7238 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7239 int result;
7240 void *argp1 = 0 ;
7241 int res1 = 0 ;
7242 PyObject *swig_obj[1] ;
7243
7244 if (!args) SWIG_fail;
7245 swig_obj[0] = args;
7246 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7247 if (!SWIG_IsOK(res1)) {
7248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7249 }
7250 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7251 {
7252 result = (int)((wxPixelDataBase const *)arg1)->GetRowStride();
7253 if (PyErr_Occurred()) SWIG_fail;
7254 }
7255 resultobj = SWIG_From_int(static_cast< int >(result));
7256 return resultobj;
7257 fail:
7258 return NULL;
7259 }
7260
7261
7262 SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7263 PyObject *obj;
7264 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7265 SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj));
7266 return SWIG_Py_Void();
7267 }
7268
7269 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7270 PyObject *resultobj = 0;
7271 wxBitmap *arg1 = 0 ;
7272 wxNativePixelData *result = 0 ;
7273 void *argp1 = 0 ;
7274 int res1 = 0 ;
7275
7276 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7277 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7278 if (!SWIG_IsOK(res1)) {
7279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7280 }
7281 if (!argp1) {
7282 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7283 }
7284 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7285 {
7286 result = (wxNativePixelData *)new wxNativePixelData(*arg1);
7287 if (PyErr_Occurred()) SWIG_fail;
7288 }
7289 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7290 return resultobj;
7291 fail:
7292 return NULL;
7293 }
7294
7295
7296 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7297 PyObject *resultobj = 0;
7298 wxBitmap *arg1 = 0 ;
7299 wxRect *arg2 = 0 ;
7300 wxNativePixelData *result = 0 ;
7301 void *argp1 = 0 ;
7302 int res1 = 0 ;
7303 wxRect temp2 ;
7304
7305 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7306 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7307 if (!SWIG_IsOK(res1)) {
7308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7309 }
7310 if (!argp1) {
7311 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7312 }
7313 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7314 {
7315 arg2 = &temp2;
7316 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7317 }
7318 {
7319 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2);
7320 if (PyErr_Occurred()) SWIG_fail;
7321 }
7322 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7323 return resultobj;
7324 fail:
7325 return NULL;
7326 }
7327
7328
7329 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7330 PyObject *resultobj = 0;
7331 wxBitmap *arg1 = 0 ;
7332 wxPoint *arg2 = 0 ;
7333 wxSize *arg3 = 0 ;
7334 wxNativePixelData *result = 0 ;
7335 void *argp1 = 0 ;
7336 int res1 = 0 ;
7337 wxPoint temp2 ;
7338 wxSize temp3 ;
7339
7340 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7341 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7342 if (!SWIG_IsOK(res1)) {
7343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7344 }
7345 if (!argp1) {
7346 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7347 }
7348 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7349 {
7350 arg2 = &temp2;
7351 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7352 }
7353 {
7354 arg3 = &temp3;
7355 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7356 }
7357 {
7358 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7359 if (PyErr_Occurred()) SWIG_fail;
7360 }
7361 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7362 return resultobj;
7363 fail:
7364 return NULL;
7365 }
7366
7367
7368 SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) {
7369 int argc;
7370 PyObject *argv[4];
7371
7372 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail;
7373 --argc;
7374 if (argc == 1) {
7375 return _wrap_new_NativePixelData__SWIG_0(self, argc, argv);
7376 }
7377 if (argc == 2) {
7378 return _wrap_new_NativePixelData__SWIG_1(self, argc, argv);
7379 }
7380 if (argc == 3) {
7381 return _wrap_new_NativePixelData__SWIG_2(self, argc, argv);
7382 }
7383
7384 fail:
7385 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'");
7386 return NULL;
7387 }
7388
7389
7390 SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7391 PyObject *resultobj = 0;
7392 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7393 void *argp1 = 0 ;
7394 int res1 = 0 ;
7395 PyObject *swig_obj[1] ;
7396
7397 if (!args) SWIG_fail;
7398 swig_obj[0] = args;
7399 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 );
7400 if (!SWIG_IsOK(res1)) {
7401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7402 }
7403 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7404 {
7405 delete arg1;
7406
7407 if (PyErr_Occurred()) SWIG_fail;
7408 }
7409 resultobj = SWIG_Py_Void();
7410 return resultobj;
7411 fail:
7412 return NULL;
7413 }
7414
7415
7416 SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7417 PyObject *resultobj = 0;
7418 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7419 wxNativePixelData_Accessor result;
7420 void *argp1 = 0 ;
7421 int res1 = 0 ;
7422 PyObject *swig_obj[1] ;
7423
7424 if (!args) SWIG_fail;
7425 swig_obj[0] = args;
7426 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7427 if (!SWIG_IsOK(res1)) {
7428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'");
7429 }
7430 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7431 {
7432 result = ((wxNativePixelData const *)arg1)->GetPixels();
7433 if (PyErr_Occurred()) SWIG_fail;
7434 }
7435 resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 );
7436 return resultobj;
7437 fail:
7438 return NULL;
7439 }
7440
7441
7442 SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7443 PyObject *resultobj = 0;
7444 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7445 void *argp1 = 0 ;
7446 int res1 = 0 ;
7447 PyObject *swig_obj[1] ;
7448
7449 if (!args) SWIG_fail;
7450 swig_obj[0] = args;
7451 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7452 if (!SWIG_IsOK(res1)) {
7453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7454 }
7455 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7456 {
7457 (arg1)->UseAlpha();
7458 if (PyErr_Occurred()) SWIG_fail;
7459 }
7460 resultobj = SWIG_Py_Void();
7461 return resultobj;
7462 fail:
7463 return NULL;
7464 }
7465
7466
7467 SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7468 PyObject *resultobj = 0;
7469 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7470 bool result;
7471 void *argp1 = 0 ;
7472 int res1 = 0 ;
7473 PyObject *swig_obj[1] ;
7474
7475 if (!args) SWIG_fail;
7476 swig_obj[0] = args;
7477 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7478 if (!SWIG_IsOK(res1)) {
7479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7480 }
7481 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7482 {
7483 result = (bool)wxNativePixelData___nonzero__(arg1);
7484 if (PyErr_Occurred()) SWIG_fail;
7485 }
7486 {
7487 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7488 }
7489 return resultobj;
7490 fail:
7491 return NULL;
7492 }
7493
7494
7495 SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7496 PyObject *obj;
7497 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7498 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj));
7499 return SWIG_Py_Void();
7500 }
7501
7502 SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7503 return SWIG_Python_InitShadowInstance(args);
7504 }
7505
7506 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7507 PyObject *resultobj = 0;
7508 wxNativePixelData *arg1 = 0 ;
7509 wxNativePixelData_Accessor *result = 0 ;
7510 void *argp1 = 0 ;
7511 int res1 = 0 ;
7512
7513 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7514 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 );
7515 if (!SWIG_IsOK(res1)) {
7516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7517 }
7518 if (!argp1) {
7519 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7520 }
7521 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7522 {
7523 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1);
7524 if (PyErr_Occurred()) SWIG_fail;
7525 }
7526 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7527 return resultobj;
7528 fail:
7529 return NULL;
7530 }
7531
7532
7533 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7534 PyObject *resultobj = 0;
7535 wxBitmap *arg1 = 0 ;
7536 wxNativePixelData *arg2 = 0 ;
7537 wxNativePixelData_Accessor *result = 0 ;
7538 void *argp1 = 0 ;
7539 int res1 = 0 ;
7540 void *argp2 = 0 ;
7541 int res2 = 0 ;
7542
7543 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7544 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7545 if (!SWIG_IsOK(res1)) {
7546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7547 }
7548 if (!argp1) {
7549 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7550 }
7551 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7552 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 );
7553 if (!SWIG_IsOK(res2)) {
7554 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7555 }
7556 if (!argp2) {
7557 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7558 }
7559 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7560 {
7561 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2);
7562 if (PyErr_Occurred()) SWIG_fail;
7563 }
7564 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7565 return resultobj;
7566 fail:
7567 return NULL;
7568 }
7569
7570
7571 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
7572 PyObject *resultobj = 0;
7573 wxNativePixelData_Accessor *result = 0 ;
7574
7575 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
7576 {
7577 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor();
7578 if (PyErr_Occurred()) SWIG_fail;
7579 }
7580 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7581 return resultobj;
7582 fail:
7583 return NULL;
7584 }
7585
7586
7587 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) {
7588 int argc;
7589 PyObject *argv[3];
7590
7591 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail;
7592 --argc;
7593 if (argc == 0) {
7594 return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv);
7595 }
7596 if (argc == 1) {
7597 return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv);
7598 }
7599 if (argc == 2) {
7600 return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv);
7601 }
7602
7603 fail:
7604 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'");
7605 return NULL;
7606 }
7607
7608
7609 SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7610 PyObject *resultobj = 0;
7611 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7612 void *argp1 = 0 ;
7613 int res1 = 0 ;
7614 PyObject *swig_obj[1] ;
7615
7616 if (!args) SWIG_fail;
7617 swig_obj[0] = args;
7618 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
7619 if (!SWIG_IsOK(res1)) {
7620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7621 }
7622 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7623 {
7624 delete arg1;
7625
7626 if (PyErr_Occurred()) SWIG_fail;
7627 }
7628 resultobj = SWIG_Py_Void();
7629 return resultobj;
7630 fail:
7631 return NULL;
7632 }
7633
7634
7635 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7636 PyObject *resultobj = 0;
7637 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7638 wxNativePixelData *arg2 = 0 ;
7639 void *argp1 = 0 ;
7640 int res1 = 0 ;
7641 void *argp2 = 0 ;
7642 int res2 = 0 ;
7643 PyObject * obj0 = 0 ;
7644 PyObject * obj1 = 0 ;
7645 char * kwnames[] = {
7646 (char *) "self",(char *) "data", NULL
7647 };
7648
7649 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
7650 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7651 if (!SWIG_IsOK(res1)) {
7652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7653 }
7654 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7655 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7656 if (!SWIG_IsOK(res2)) {
7657 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7658 }
7659 if (!argp2) {
7660 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7661 }
7662 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7663 {
7664 (arg1)->Reset((wxNativePixelData const &)*arg2);
7665 if (PyErr_Occurred()) SWIG_fail;
7666 }
7667 resultobj = SWIG_Py_Void();
7668 return resultobj;
7669 fail:
7670 return NULL;
7671 }
7672
7673
7674 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7675 PyObject *resultobj = 0;
7676 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7677 bool result;
7678 void *argp1 = 0 ;
7679 int res1 = 0 ;
7680 PyObject *swig_obj[1] ;
7681
7682 if (!args) SWIG_fail;
7683 swig_obj[0] = args;
7684 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7685 if (!SWIG_IsOK(res1)) {
7686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'");
7687 }
7688 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7689 {
7690 result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk();
7691 if (PyErr_Occurred()) SWIG_fail;
7692 }
7693 {
7694 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7695 }
7696 return resultobj;
7697 fail:
7698 return NULL;
7699 }
7700
7701
7702 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7703 PyObject *resultobj = 0;
7704 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7705 void *argp1 = 0 ;
7706 int res1 = 0 ;
7707 PyObject *swig_obj[1] ;
7708
7709 if (!args) SWIG_fail;
7710 swig_obj[0] = args;
7711 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7712 if (!SWIG_IsOK(res1)) {
7713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7714 }
7715 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7716 {
7717 wxNativePixelData_Accessor_nextPixel(arg1);
7718 if (PyErr_Occurred()) SWIG_fail;
7719 }
7720 resultobj = SWIG_Py_Void();
7721 return resultobj;
7722 fail:
7723 return NULL;
7724 }
7725
7726
7727 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7728 PyObject *resultobj = 0;
7729 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7730 wxNativePixelData *arg2 = 0 ;
7731 int arg3 ;
7732 int arg4 ;
7733 void *argp1 = 0 ;
7734 int res1 = 0 ;
7735 void *argp2 = 0 ;
7736 int res2 = 0 ;
7737 int val3 ;
7738 int ecode3 = 0 ;
7739 int val4 ;
7740 int ecode4 = 0 ;
7741 PyObject * obj0 = 0 ;
7742 PyObject * obj1 = 0 ;
7743 PyObject * obj2 = 0 ;
7744 PyObject * obj3 = 0 ;
7745 char * kwnames[] = {
7746 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7747 };
7748
7749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7750 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7751 if (!SWIG_IsOK(res1)) {
7752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7753 }
7754 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7755 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7756 if (!SWIG_IsOK(res2)) {
7757 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7758 }
7759 if (!argp2) {
7760 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7761 }
7762 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7763 ecode3 = SWIG_AsVal_int(obj2, &val3);
7764 if (!SWIG_IsOK(ecode3)) {
7765 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
7766 }
7767 arg3 = static_cast< int >(val3);
7768 ecode4 = SWIG_AsVal_int(obj3, &val4);
7769 if (!SWIG_IsOK(ecode4)) {
7770 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
7771 }
7772 arg4 = static_cast< int >(val4);
7773 {
7774 (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4);
7775 if (PyErr_Occurred()) SWIG_fail;
7776 }
7777 resultobj = SWIG_Py_Void();
7778 return resultobj;
7779 fail:
7780 return NULL;
7781 }
7782
7783
7784 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7785 PyObject *resultobj = 0;
7786 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7787 wxNativePixelData *arg2 = 0 ;
7788 int arg3 ;
7789 void *argp1 = 0 ;
7790 int res1 = 0 ;
7791 void *argp2 = 0 ;
7792 int res2 = 0 ;
7793 int val3 ;
7794 int ecode3 = 0 ;
7795 PyObject * obj0 = 0 ;
7796 PyObject * obj1 = 0 ;
7797 PyObject * obj2 = 0 ;
7798 char * kwnames[] = {
7799 (char *) "self",(char *) "data",(char *) "x", NULL
7800 };
7801
7802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7803 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7804 if (!SWIG_IsOK(res1)) {
7805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7806 }
7807 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7808 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7809 if (!SWIG_IsOK(res2)) {
7810 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7811 }
7812 if (!argp2) {
7813 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7814 }
7815 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7816 ecode3 = SWIG_AsVal_int(obj2, &val3);
7817 if (!SWIG_IsOK(ecode3)) {
7818 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
7819 }
7820 arg3 = static_cast< int >(val3);
7821 {
7822 (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3);
7823 if (PyErr_Occurred()) SWIG_fail;
7824 }
7825 resultobj = SWIG_Py_Void();
7826 return resultobj;
7827 fail:
7828 return NULL;
7829 }
7830
7831
7832 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7833 PyObject *resultobj = 0;
7834 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7835 wxNativePixelData *arg2 = 0 ;
7836 int arg3 ;
7837 void *argp1 = 0 ;
7838 int res1 = 0 ;
7839 void *argp2 = 0 ;
7840 int res2 = 0 ;
7841 int val3 ;
7842 int ecode3 = 0 ;
7843 PyObject * obj0 = 0 ;
7844 PyObject * obj1 = 0 ;
7845 PyObject * obj2 = 0 ;
7846 char * kwnames[] = {
7847 (char *) "self",(char *) "data",(char *) "y", NULL
7848 };
7849
7850 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7851 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7852 if (!SWIG_IsOK(res1)) {
7853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7854 }
7855 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7856 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7857 if (!SWIG_IsOK(res2)) {
7858 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7859 }
7860 if (!argp2) {
7861 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7862 }
7863 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7864 ecode3 = SWIG_AsVal_int(obj2, &val3);
7865 if (!SWIG_IsOK(ecode3)) {
7866 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
7867 }
7868 arg3 = static_cast< int >(val3);
7869 {
7870 (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3);
7871 if (PyErr_Occurred()) SWIG_fail;
7872 }
7873 resultobj = SWIG_Py_Void();
7874 return resultobj;
7875 fail:
7876 return NULL;
7877 }
7878
7879
7880 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7881 PyObject *resultobj = 0;
7882 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7883 wxNativePixelData *arg2 = 0 ;
7884 int arg3 ;
7885 int arg4 ;
7886 void *argp1 = 0 ;
7887 int res1 = 0 ;
7888 void *argp2 = 0 ;
7889 int res2 = 0 ;
7890 int val3 ;
7891 int ecode3 = 0 ;
7892 int val4 ;
7893 int ecode4 = 0 ;
7894 PyObject * obj0 = 0 ;
7895 PyObject * obj1 = 0 ;
7896 PyObject * obj2 = 0 ;
7897 PyObject * obj3 = 0 ;
7898 char * kwnames[] = {
7899 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7900 };
7901
7902 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7903 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7904 if (!SWIG_IsOK(res1)) {
7905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7906 }
7907 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7908 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7909 if (!SWIG_IsOK(res2)) {
7910 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7911 }
7912 if (!argp2) {
7913 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7914 }
7915 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7916 ecode3 = SWIG_AsVal_int(obj2, &val3);
7917 if (!SWIG_IsOK(ecode3)) {
7918 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
7919 }
7920 arg3 = static_cast< int >(val3);
7921 ecode4 = SWIG_AsVal_int(obj3, &val4);
7922 if (!SWIG_IsOK(ecode4)) {
7923 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
7924 }
7925 arg4 = static_cast< int >(val4);
7926 {
7927 (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4);
7928 if (PyErr_Occurred()) SWIG_fail;
7929 }
7930 resultobj = SWIG_Py_Void();
7931 return resultobj;
7932 fail:
7933 return NULL;
7934 }
7935
7936
7937 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7938 PyObject *resultobj = 0;
7939 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7940 byte arg2 ;
7941 byte arg3 ;
7942 byte arg4 ;
7943 void *argp1 = 0 ;
7944 int res1 = 0 ;
7945 unsigned char val2 ;
7946 int ecode2 = 0 ;
7947 unsigned char val3 ;
7948 int ecode3 = 0 ;
7949 unsigned char val4 ;
7950 int ecode4 = 0 ;
7951 PyObject * obj0 = 0 ;
7952 PyObject * obj1 = 0 ;
7953 PyObject * obj2 = 0 ;
7954 PyObject * obj3 = 0 ;
7955 char * kwnames[] = {
7956 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
7957 };
7958
7959 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7960 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7961 if (!SWIG_IsOK(res1)) {
7962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7963 }
7964 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7965 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
7966 if (!SWIG_IsOK(ecode2)) {
7967 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
7968 }
7969 arg2 = static_cast< byte >(val2);
7970 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
7971 if (!SWIG_IsOK(ecode3)) {
7972 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
7973 }
7974 arg3 = static_cast< byte >(val3);
7975 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
7976 if (!SWIG_IsOK(ecode4)) {
7977 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
7978 }
7979 arg4 = static_cast< byte >(val4);
7980 {
7981 wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4);
7982 if (PyErr_Occurred()) SWIG_fail;
7983 }
7984 resultobj = SWIG_Py_Void();
7985 return resultobj;
7986 fail:
7987 return NULL;
7988 }
7989
7990
7991 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7992 PyObject *resultobj = 0;
7993 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7994 PyObject *result = 0 ;
7995 void *argp1 = 0 ;
7996 int res1 = 0 ;
7997 PyObject *swig_obj[1] ;
7998
7999 if (!args) SWIG_fail;
8000 swig_obj[0] = args;
8001 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8002 if (!SWIG_IsOK(res1)) {
8003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8004 }
8005 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8006 {
8007 result = (PyObject *)wxNativePixelData_Accessor_Get(arg1);
8008 if (PyErr_Occurred()) SWIG_fail;
8009 }
8010 resultobj = result;
8011 return resultobj;
8012 fail:
8013 return NULL;
8014 }
8015
8016
8017 SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8018 PyObject *obj;
8019 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8020 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj));
8021 return SWIG_Py_Void();
8022 }
8023
8024 SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8025 return SWIG_Python_InitShadowInstance(args);
8026 }
8027
8028 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8029 PyObject *resultobj = 0;
8030 wxBitmap *arg1 = 0 ;
8031 wxAlphaPixelData *result = 0 ;
8032 void *argp1 = 0 ;
8033 int res1 = 0 ;
8034
8035 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8036 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8037 if (!SWIG_IsOK(res1)) {
8038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8039 }
8040 if (!argp1) {
8041 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8042 }
8043 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8044 {
8045 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1);
8046 if (PyErr_Occurred()) SWIG_fail;
8047 }
8048 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8049 return resultobj;
8050 fail:
8051 return NULL;
8052 }
8053
8054
8055 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8056 PyObject *resultobj = 0;
8057 wxBitmap *arg1 = 0 ;
8058 wxRect *arg2 = 0 ;
8059 wxAlphaPixelData *result = 0 ;
8060 void *argp1 = 0 ;
8061 int res1 = 0 ;
8062 wxRect temp2 ;
8063
8064 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8065 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8066 if (!SWIG_IsOK(res1)) {
8067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8068 }
8069 if (!argp1) {
8070 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8071 }
8072 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8073 {
8074 arg2 = &temp2;
8075 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
8076 }
8077 {
8078 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2);
8079 if (PyErr_Occurred()) SWIG_fail;
8080 }
8081 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8082 return resultobj;
8083 fail:
8084 return NULL;
8085 }
8086
8087
8088 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8089 PyObject *resultobj = 0;
8090 wxBitmap *arg1 = 0 ;
8091 wxPoint *arg2 = 0 ;
8092 wxSize *arg3 = 0 ;
8093 wxAlphaPixelData *result = 0 ;
8094 void *argp1 = 0 ;
8095 int res1 = 0 ;
8096 wxPoint temp2 ;
8097 wxSize temp3 ;
8098
8099 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
8100 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8101 if (!SWIG_IsOK(res1)) {
8102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8103 }
8104 if (!argp1) {
8105 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8106 }
8107 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8108 {
8109 arg2 = &temp2;
8110 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
8111 }
8112 {
8113 arg3 = &temp3;
8114 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
8115 }
8116 {
8117 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
8118 if (PyErr_Occurred()) SWIG_fail;
8119 }
8120 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8121 return resultobj;
8122 fail:
8123 return NULL;
8124 }
8125
8126
8127 SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) {
8128 int argc;
8129 PyObject *argv[4];
8130
8131 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail;
8132 --argc;
8133 if (argc == 1) {
8134 return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv);
8135 }
8136 if (argc == 2) {
8137 return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv);
8138 }
8139 if (argc == 3) {
8140 return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv);
8141 }
8142
8143 fail:
8144 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'");
8145 return NULL;
8146 }
8147
8148
8149 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8150 PyObject *resultobj = 0;
8151 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8152 void *argp1 = 0 ;
8153 int res1 = 0 ;
8154 PyObject *swig_obj[1] ;
8155
8156 if (!args) SWIG_fail;
8157 swig_obj[0] = args;
8158 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 );
8159 if (!SWIG_IsOK(res1)) {
8160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8161 }
8162 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8163 {
8164 delete arg1;
8165
8166 if (PyErr_Occurred()) SWIG_fail;
8167 }
8168 resultobj = SWIG_Py_Void();
8169 return resultobj;
8170 fail:
8171 return NULL;
8172 }
8173
8174
8175 SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8176 PyObject *resultobj = 0;
8177 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8178 wxAlphaPixelData_Accessor result;
8179 void *argp1 = 0 ;
8180 int res1 = 0 ;
8181 PyObject *swig_obj[1] ;
8182
8183 if (!args) SWIG_fail;
8184 swig_obj[0] = args;
8185 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8186 if (!SWIG_IsOK(res1)) {
8187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'");
8188 }
8189 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8190 {
8191 result = ((wxAlphaPixelData const *)arg1)->GetPixels();
8192 if (PyErr_Occurred()) SWIG_fail;
8193 }
8194 resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 );
8195 return resultobj;
8196 fail:
8197 return NULL;
8198 }
8199
8200
8201 SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8202 PyObject *resultobj = 0;
8203 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8204 void *argp1 = 0 ;
8205 int res1 = 0 ;
8206 PyObject *swig_obj[1] ;
8207
8208 if (!args) SWIG_fail;
8209 swig_obj[0] = args;
8210 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8211 if (!SWIG_IsOK(res1)) {
8212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8213 }
8214 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8215 {
8216 (arg1)->UseAlpha();
8217 if (PyErr_Occurred()) SWIG_fail;
8218 }
8219 resultobj = SWIG_Py_Void();
8220 return resultobj;
8221 fail:
8222 return NULL;
8223 }
8224
8225
8226 SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8227 PyObject *resultobj = 0;
8228 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8229 bool result;
8230 void *argp1 = 0 ;
8231 int res1 = 0 ;
8232 PyObject *swig_obj[1] ;
8233
8234 if (!args) SWIG_fail;
8235 swig_obj[0] = args;
8236 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8237 if (!SWIG_IsOK(res1)) {
8238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8239 }
8240 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8241 {
8242 result = (bool)wxAlphaPixelData___nonzero__(arg1);
8243 if (PyErr_Occurred()) SWIG_fail;
8244 }
8245 {
8246 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8247 }
8248 return resultobj;
8249 fail:
8250 return NULL;
8251 }
8252
8253
8254 SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8255 PyObject *obj;
8256 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8257 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj));
8258 return SWIG_Py_Void();
8259 }
8260
8261 SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8262 return SWIG_Python_InitShadowInstance(args);
8263 }
8264
8265 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8266 PyObject *resultobj = 0;
8267 wxAlphaPixelData *arg1 = 0 ;
8268 wxAlphaPixelData_Accessor *result = 0 ;
8269 void *argp1 = 0 ;
8270 int res1 = 0 ;
8271
8272 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8273 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 );
8274 if (!SWIG_IsOK(res1)) {
8275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8276 }
8277 if (!argp1) {
8278 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8279 }
8280 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8281 {
8282 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1);
8283 if (PyErr_Occurred()) SWIG_fail;
8284 }
8285 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8286 return resultobj;
8287 fail:
8288 return NULL;
8289 }
8290
8291
8292 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8293 PyObject *resultobj = 0;
8294 wxBitmap *arg1 = 0 ;
8295 wxAlphaPixelData *arg2 = 0 ;
8296 wxAlphaPixelData_Accessor *result = 0 ;
8297 void *argp1 = 0 ;
8298 int res1 = 0 ;
8299 void *argp2 = 0 ;
8300 int res2 = 0 ;
8301
8302 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8303 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8304 if (!SWIG_IsOK(res1)) {
8305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8306 }
8307 if (!argp1) {
8308 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8309 }
8310 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8311 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 );
8312 if (!SWIG_IsOK(res2)) {
8313 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8314 }
8315 if (!argp2) {
8316 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8317 }
8318 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8319 {
8320 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2);
8321 if (PyErr_Occurred()) SWIG_fail;
8322 }
8323 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8324 return resultobj;
8325 fail:
8326 return NULL;
8327 }
8328
8329
8330 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
8331 PyObject *resultobj = 0;
8332 wxAlphaPixelData_Accessor *result = 0 ;
8333
8334 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
8335 {
8336 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor();
8337 if (PyErr_Occurred()) SWIG_fail;
8338 }
8339 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8340 return resultobj;
8341 fail:
8342 return NULL;
8343 }
8344
8345
8346 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) {
8347 int argc;
8348 PyObject *argv[3];
8349
8350 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail;
8351 --argc;
8352 if (argc == 0) {
8353 return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv);
8354 }
8355 if (argc == 1) {
8356 return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv);
8357 }
8358 if (argc == 2) {
8359 return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv);
8360 }
8361
8362 fail:
8363 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'");
8364 return NULL;
8365 }
8366
8367
8368 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8369 PyObject *resultobj = 0;
8370 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8371 void *argp1 = 0 ;
8372 int res1 = 0 ;
8373 PyObject *swig_obj[1] ;
8374
8375 if (!args) SWIG_fail;
8376 swig_obj[0] = args;
8377 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
8378 if (!SWIG_IsOK(res1)) {
8379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8380 }
8381 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8382 {
8383 delete arg1;
8384
8385 if (PyErr_Occurred()) SWIG_fail;
8386 }
8387 resultobj = SWIG_Py_Void();
8388 return resultobj;
8389 fail:
8390 return NULL;
8391 }
8392
8393
8394 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8395 PyObject *resultobj = 0;
8396 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8397 wxAlphaPixelData *arg2 = 0 ;
8398 void *argp1 = 0 ;
8399 int res1 = 0 ;
8400 void *argp2 = 0 ;
8401 int res2 = 0 ;
8402 PyObject * obj0 = 0 ;
8403 PyObject * obj1 = 0 ;
8404 char * kwnames[] = {
8405 (char *) "self",(char *) "data", NULL
8406 };
8407
8408 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
8409 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8410 if (!SWIG_IsOK(res1)) {
8411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8412 }
8413 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8414 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8415 if (!SWIG_IsOK(res2)) {
8416 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8417 }
8418 if (!argp2) {
8419 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8420 }
8421 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8422 {
8423 (arg1)->Reset((wxAlphaPixelData const &)*arg2);
8424 if (PyErr_Occurred()) SWIG_fail;
8425 }
8426 resultobj = SWIG_Py_Void();
8427 return resultobj;
8428 fail:
8429 return NULL;
8430 }
8431
8432
8433 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8434 PyObject *resultobj = 0;
8435 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8436 bool result;
8437 void *argp1 = 0 ;
8438 int res1 = 0 ;
8439 PyObject *swig_obj[1] ;
8440
8441 if (!args) SWIG_fail;
8442 swig_obj[0] = args;
8443 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8444 if (!SWIG_IsOK(res1)) {
8445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'");
8446 }
8447 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8448 {
8449 result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk();
8450 if (PyErr_Occurred()) SWIG_fail;
8451 }
8452 {
8453 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8454 }
8455 return resultobj;
8456 fail:
8457 return NULL;
8458 }
8459
8460
8461 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8462 PyObject *resultobj = 0;
8463 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8464 void *argp1 = 0 ;
8465 int res1 = 0 ;
8466 PyObject *swig_obj[1] ;
8467
8468 if (!args) SWIG_fail;
8469 swig_obj[0] = args;
8470 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8471 if (!SWIG_IsOK(res1)) {
8472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8473 }
8474 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8475 {
8476 wxAlphaPixelData_Accessor_nextPixel(arg1);
8477 if (PyErr_Occurred()) SWIG_fail;
8478 }
8479 resultobj = SWIG_Py_Void();
8480 return resultobj;
8481 fail:
8482 return NULL;
8483 }
8484
8485
8486 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8487 PyObject *resultobj = 0;
8488 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8489 wxAlphaPixelData *arg2 = 0 ;
8490 int arg3 ;
8491 int arg4 ;
8492 void *argp1 = 0 ;
8493 int res1 = 0 ;
8494 void *argp2 = 0 ;
8495 int res2 = 0 ;
8496 int val3 ;
8497 int ecode3 = 0 ;
8498 int val4 ;
8499 int ecode4 = 0 ;
8500 PyObject * obj0 = 0 ;
8501 PyObject * obj1 = 0 ;
8502 PyObject * obj2 = 0 ;
8503 PyObject * obj3 = 0 ;
8504 char * kwnames[] = {
8505 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8506 };
8507
8508 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8509 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8510 if (!SWIG_IsOK(res1)) {
8511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8512 }
8513 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8514 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8515 if (!SWIG_IsOK(res2)) {
8516 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8517 }
8518 if (!argp2) {
8519 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8520 }
8521 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8522 ecode3 = SWIG_AsVal_int(obj2, &val3);
8523 if (!SWIG_IsOK(ecode3)) {
8524 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8525 }
8526 arg3 = static_cast< int >(val3);
8527 ecode4 = SWIG_AsVal_int(obj3, &val4);
8528 if (!SWIG_IsOK(ecode4)) {
8529 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8530 }
8531 arg4 = static_cast< int >(val4);
8532 {
8533 (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4);
8534 if (PyErr_Occurred()) SWIG_fail;
8535 }
8536 resultobj = SWIG_Py_Void();
8537 return resultobj;
8538 fail:
8539 return NULL;
8540 }
8541
8542
8543 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8544 PyObject *resultobj = 0;
8545 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8546 wxAlphaPixelData *arg2 = 0 ;
8547 int arg3 ;
8548 void *argp1 = 0 ;
8549 int res1 = 0 ;
8550 void *argp2 = 0 ;
8551 int res2 = 0 ;
8552 int val3 ;
8553 int ecode3 = 0 ;
8554 PyObject * obj0 = 0 ;
8555 PyObject * obj1 = 0 ;
8556 PyObject * obj2 = 0 ;
8557 char * kwnames[] = {
8558 (char *) "self",(char *) "data",(char *) "x", NULL
8559 };
8560
8561 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8562 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8563 if (!SWIG_IsOK(res1)) {
8564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8565 }
8566 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8567 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8568 if (!SWIG_IsOK(res2)) {
8569 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8570 }
8571 if (!argp2) {
8572 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8573 }
8574 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8575 ecode3 = SWIG_AsVal_int(obj2, &val3);
8576 if (!SWIG_IsOK(ecode3)) {
8577 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8578 }
8579 arg3 = static_cast< int >(val3);
8580 {
8581 (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3);
8582 if (PyErr_Occurred()) SWIG_fail;
8583 }
8584 resultobj = SWIG_Py_Void();
8585 return resultobj;
8586 fail:
8587 return NULL;
8588 }
8589
8590
8591 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8592 PyObject *resultobj = 0;
8593 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8594 wxAlphaPixelData *arg2 = 0 ;
8595 int arg3 ;
8596 void *argp1 = 0 ;
8597 int res1 = 0 ;
8598 void *argp2 = 0 ;
8599 int res2 = 0 ;
8600 int val3 ;
8601 int ecode3 = 0 ;
8602 PyObject * obj0 = 0 ;
8603 PyObject * obj1 = 0 ;
8604 PyObject * obj2 = 0 ;
8605 char * kwnames[] = {
8606 (char *) "self",(char *) "data",(char *) "y", NULL
8607 };
8608
8609 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8610 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8611 if (!SWIG_IsOK(res1)) {
8612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8613 }
8614 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8615 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8616 if (!SWIG_IsOK(res2)) {
8617 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8618 }
8619 if (!argp2) {
8620 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8621 }
8622 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8623 ecode3 = SWIG_AsVal_int(obj2, &val3);
8624 if (!SWIG_IsOK(ecode3)) {
8625 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8626 }
8627 arg3 = static_cast< int >(val3);
8628 {
8629 (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3);
8630 if (PyErr_Occurred()) SWIG_fail;
8631 }
8632 resultobj = SWIG_Py_Void();
8633 return resultobj;
8634 fail:
8635 return NULL;
8636 }
8637
8638
8639 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8640 PyObject *resultobj = 0;
8641 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8642 wxAlphaPixelData *arg2 = 0 ;
8643 int arg3 ;
8644 int arg4 ;
8645 void *argp1 = 0 ;
8646 int res1 = 0 ;
8647 void *argp2 = 0 ;
8648 int res2 = 0 ;
8649 int val3 ;
8650 int ecode3 = 0 ;
8651 int val4 ;
8652 int ecode4 = 0 ;
8653 PyObject * obj0 = 0 ;
8654 PyObject * obj1 = 0 ;
8655 PyObject * obj2 = 0 ;
8656 PyObject * obj3 = 0 ;
8657 char * kwnames[] = {
8658 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8659 };
8660
8661 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8662 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8663 if (!SWIG_IsOK(res1)) {
8664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8665 }
8666 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8667 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8668 if (!SWIG_IsOK(res2)) {
8669 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8670 }
8671 if (!argp2) {
8672 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8673 }
8674 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8675 ecode3 = SWIG_AsVal_int(obj2, &val3);
8676 if (!SWIG_IsOK(ecode3)) {
8677 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8678 }
8679 arg3 = static_cast< int >(val3);
8680 ecode4 = SWIG_AsVal_int(obj3, &val4);
8681 if (!SWIG_IsOK(ecode4)) {
8682 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8683 }
8684 arg4 = static_cast< int >(val4);
8685 {
8686 (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4);
8687 if (PyErr_Occurred()) SWIG_fail;
8688 }
8689 resultobj = SWIG_Py_Void();
8690 return resultobj;
8691 fail:
8692 return NULL;
8693 }
8694
8695
8696 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8697 PyObject *resultobj = 0;
8698 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8699 byte arg2 ;
8700 byte arg3 ;
8701 byte arg4 ;
8702 byte arg5 ;
8703 void *argp1 = 0 ;
8704 int res1 = 0 ;
8705 unsigned char val2 ;
8706 int ecode2 = 0 ;
8707 unsigned char val3 ;
8708 int ecode3 = 0 ;
8709 unsigned char val4 ;
8710 int ecode4 = 0 ;
8711 unsigned char val5 ;
8712 int ecode5 = 0 ;
8713 PyObject * obj0 = 0 ;
8714 PyObject * obj1 = 0 ;
8715 PyObject * obj2 = 0 ;
8716 PyObject * obj3 = 0 ;
8717 PyObject * obj4 = 0 ;
8718 char * kwnames[] = {
8719 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
8720 };
8721
8722 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8723 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8724 if (!SWIG_IsOK(res1)) {
8725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8726 }
8727 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8728 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8729 if (!SWIG_IsOK(ecode2)) {
8730 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8731 }
8732 arg2 = static_cast< byte >(val2);
8733 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8734 if (!SWIG_IsOK(ecode3)) {
8735 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8736 }
8737 arg3 = static_cast< byte >(val3);
8738 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8739 if (!SWIG_IsOK(ecode4)) {
8740 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8741 }
8742 arg4 = static_cast< byte >(val4);
8743 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
8744 if (!SWIG_IsOK(ecode5)) {
8745 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'");
8746 }
8747 arg5 = static_cast< byte >(val5);
8748 {
8749 wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5);
8750 if (PyErr_Occurred()) SWIG_fail;
8751 }
8752 resultobj = SWIG_Py_Void();
8753 return resultobj;
8754 fail:
8755 return NULL;
8756 }
8757
8758
8759 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8760 PyObject *resultobj = 0;
8761 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8762 PyObject *result = 0 ;
8763 void *argp1 = 0 ;
8764 int res1 = 0 ;
8765 PyObject *swig_obj[1] ;
8766
8767 if (!args) SWIG_fail;
8768 swig_obj[0] = args;
8769 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8770 if (!SWIG_IsOK(res1)) {
8771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8772 }
8773 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8774 {
8775 result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1);
8776 if (PyErr_Occurred()) SWIG_fail;
8777 }
8778 resultobj = result;
8779 return resultobj;
8780 fail:
8781 return NULL;
8782 }
8783
8784
8785 SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8786 PyObject *obj;
8787 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8788 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj));
8789 return SWIG_Py_Void();
8790 }
8791
8792 SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8793 return SWIG_Python_InitShadowInstance(args);
8794 }
8795
8796 SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8797 PyObject *resultobj = 0;
8798 wxBitmap *arg1 = 0 ;
8799 wxColour const &arg2_defvalue = wxNullColour ;
8800 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
8801 wxMask *result = 0 ;
8802 void *argp1 = 0 ;
8803 int res1 = 0 ;
8804 wxColour temp2 ;
8805 PyObject * obj0 = 0 ;
8806 PyObject * obj1 = 0 ;
8807 char * kwnames[] = {
8808 (char *) "bitmap",(char *) "colour", NULL
8809 };
8810
8811 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
8812 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8813 if (!SWIG_IsOK(res1)) {
8814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8815 }
8816 if (!argp1) {
8817 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8818 }
8819 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8820 if (obj1) {
8821 {
8822 arg2 = &temp2;
8823 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
8824 }
8825 }
8826 {
8827 if (!wxPyCheckForApp()) SWIG_fail;
8828 PyThreadState* __tstate = wxPyBeginAllowThreads();
8829 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
8830 wxPyEndAllowThreads(__tstate);
8831 if (PyErr_Occurred()) SWIG_fail;
8832 }
8833 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
8834 return resultobj;
8835 fail:
8836 return NULL;
8837 }
8838
8839
8840 SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8841 PyObject *resultobj = 0;
8842 wxMask *arg1 = (wxMask *) 0 ;
8843 void *argp1 = 0 ;
8844 int res1 = 0 ;
8845 PyObject *swig_obj[1] ;
8846
8847 if (!args) SWIG_fail;
8848 swig_obj[0] = args;
8849 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
8850 if (!SWIG_IsOK(res1)) {
8851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
8852 }
8853 arg1 = reinterpret_cast< wxMask * >(argp1);
8854 {
8855 delete arg1;
8856
8857 if (PyErr_Occurred()) SWIG_fail;
8858 }
8859 resultobj = SWIG_Py_Void();
8860 return resultobj;
8861 fail:
8862 return NULL;
8863 }
8864
8865
8866 SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8867 PyObject *obj;
8868 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8869 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
8870 return SWIG_Py_Void();
8871 }
8872
8873 SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8874 return SWIG_Python_InitShadowInstance(args);
8875 }
8876
8877 SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8878 PyObject *resultobj = 0;
8879 wxString *arg1 = 0 ;
8880 wxBitmapType arg2 ;
8881 int arg3 = (int) -1 ;
8882 int arg4 = (int) -1 ;
8883 wxIcon *result = 0 ;
8884 bool temp1 = false ;
8885 int val2 ;
8886 int ecode2 = 0 ;
8887 int val3 ;
8888 int ecode3 = 0 ;
8889 int val4 ;
8890 int ecode4 = 0 ;
8891 PyObject * obj0 = 0 ;
8892 PyObject * obj1 = 0 ;
8893 PyObject * obj2 = 0 ;
8894 PyObject * obj3 = 0 ;
8895 char * kwnames[] = {
8896 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
8897 };
8898
8899 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8900 {
8901 arg1 = wxString_in_helper(obj0);
8902 if (arg1 == NULL) SWIG_fail;
8903 temp1 = true;
8904 }
8905 ecode2 = SWIG_AsVal_int(obj1, &val2);
8906 if (!SWIG_IsOK(ecode2)) {
8907 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
8908 }
8909 arg2 = static_cast< wxBitmapType >(val2);
8910 if (obj2) {
8911 ecode3 = SWIG_AsVal_int(obj2, &val3);
8912 if (!SWIG_IsOK(ecode3)) {
8913 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
8914 }
8915 arg3 = static_cast< int >(val3);
8916 }
8917 if (obj3) {
8918 ecode4 = SWIG_AsVal_int(obj3, &val4);
8919 if (!SWIG_IsOK(ecode4)) {
8920 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
8921 }
8922 arg4 = static_cast< int >(val4);
8923 }
8924 {
8925 if (!wxPyCheckForApp()) SWIG_fail;
8926 PyThreadState* __tstate = wxPyBeginAllowThreads();
8927 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
8928 wxPyEndAllowThreads(__tstate);
8929 if (PyErr_Occurred()) SWIG_fail;
8930 }
8931 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
8932 {
8933 if (temp1)
8934 delete arg1;
8935 }
8936 return resultobj;
8937 fail:
8938 {
8939 if (temp1)
8940 delete arg1;
8941 }
8942 return NULL;
8943 }
8944
8945
8946 SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8947 PyObject *resultobj = 0;
8948 wxIcon *arg1 = (wxIcon *) 0 ;
8949 void *argp1 = 0 ;
8950 int res1 = 0 ;
8951 PyObject *swig_obj[1] ;
8952
8953 if (!args) SWIG_fail;
8954 swig_obj[0] = args;
8955 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
8956 if (!SWIG_IsOK(res1)) {
8957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
8958 }
8959 arg1 = reinterpret_cast< wxIcon * >(argp1);
8960 {
8961 PyThreadState* __tstate = wxPyBeginAllowThreads();
8962 delete arg1;
8963
8964 wxPyEndAllowThreads(__tstate);
8965 if (PyErr_Occurred()) SWIG_fail;
8966 }
8967 resultobj = SWIG_Py_Void();
8968 return resultobj;
8969 fail:
8970 return NULL;
8971 }
8972
8973
8974 SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8975 PyObject *resultobj = 0;
8976 wxIcon *result = 0 ;
8977
8978 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
8979 {
8980 if (!wxPyCheckForApp()) SWIG_fail;
8981 PyThreadState* __tstate = wxPyBeginAllowThreads();
8982 result = (wxIcon *)new wxIcon();
8983 wxPyEndAllowThreads(__tstate);
8984 if (PyErr_Occurred()) SWIG_fail;
8985 }
8986 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8987 return resultobj;
8988 fail:
8989 return NULL;
8990 }
8991
8992
8993 SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8994 PyObject *resultobj = 0;
8995 wxIconLocation *arg1 = 0 ;
8996 wxIcon *result = 0 ;
8997 void *argp1 = 0 ;
8998 int res1 = 0 ;
8999 PyObject * obj0 = 0 ;
9000 char * kwnames[] = {
9001 (char *) "loc", NULL
9002 };
9003
9004 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
9005 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
9006 if (!SWIG_IsOK(res1)) {
9007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9008 }
9009 if (!argp1) {
9010 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9011 }
9012 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9013 {
9014 if (!wxPyCheckForApp()) SWIG_fail;
9015 PyThreadState* __tstate = wxPyBeginAllowThreads();
9016 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
9017 wxPyEndAllowThreads(__tstate);
9018 if (PyErr_Occurred()) SWIG_fail;
9019 }
9020 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9021 return resultobj;
9022 fail:
9023 return NULL;
9024 }
9025
9026
9027 SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9028 PyObject *resultobj = 0;
9029 wxBitmap *arg1 = 0 ;
9030 wxIcon *result = 0 ;
9031 void *argp1 = 0 ;
9032 int res1 = 0 ;
9033 PyObject * obj0 = 0 ;
9034 char * kwnames[] = {
9035 (char *) "bmp", NULL
9036 };
9037
9038 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
9039 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9040 if (!SWIG_IsOK(res1)) {
9041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9042 }
9043 if (!argp1) {
9044 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9045 }
9046 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9047 {
9048 if (!wxPyCheckForApp()) SWIG_fail;
9049 PyThreadState* __tstate = wxPyBeginAllowThreads();
9050 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
9051 wxPyEndAllowThreads(__tstate);
9052 if (PyErr_Occurred()) SWIG_fail;
9053 }
9054 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9055 return resultobj;
9056 fail:
9057 return NULL;
9058 }
9059
9060
9061 SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9062 PyObject *resultobj = 0;
9063 PyObject *arg1 = (PyObject *) 0 ;
9064 wxIcon *result = 0 ;
9065 PyObject * obj0 = 0 ;
9066 char * kwnames[] = {
9067 (char *) "listOfStrings", NULL
9068 };
9069
9070 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
9071 arg1 = obj0;
9072 {
9073 if (!wxPyCheckForApp()) SWIG_fail;
9074 PyThreadState* __tstate = wxPyBeginAllowThreads();
9075 result = (wxIcon *)new_wxIcon(arg1);
9076 wxPyEndAllowThreads(__tstate);
9077 if (PyErr_Occurred()) SWIG_fail;
9078 }
9079 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9080 return resultobj;
9081 fail:
9082 return NULL;
9083 }
9084
9085
9086 SWIGINTERN PyObject *_wrap_Icon_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9087 PyObject *resultobj = 0;
9088 wxIcon *arg1 = (wxIcon *) 0 ;
9089 wxString *arg2 = 0 ;
9090 wxBitmapType arg3 ;
9091 bool result;
9092 void *argp1 = 0 ;
9093 int res1 = 0 ;
9094 bool temp2 = false ;
9095 int val3 ;
9096 int ecode3 = 0 ;
9097 PyObject * obj0 = 0 ;
9098 PyObject * obj1 = 0 ;
9099 PyObject * obj2 = 0 ;
9100 char * kwnames[] = {
9101 (char *) "self",(char *) "name",(char *) "type", NULL
9102 };
9103
9104 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9105 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9106 if (!SWIG_IsOK(res1)) {
9107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_LoadFile" "', expected argument " "1"" of type '" "wxIcon *""'");
9108 }
9109 arg1 = reinterpret_cast< wxIcon * >(argp1);
9110 {
9111 arg2 = wxString_in_helper(obj1);
9112 if (arg2 == NULL) SWIG_fail;
9113 temp2 = true;
9114 }
9115 ecode3 = SWIG_AsVal_int(obj2, &val3);
9116 if (!SWIG_IsOK(ecode3)) {
9117 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Icon_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
9118 }
9119 arg3 = static_cast< wxBitmapType >(val3);
9120 {
9121 PyThreadState* __tstate = wxPyBeginAllowThreads();
9122 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
9123 wxPyEndAllowThreads(__tstate);
9124 if (PyErr_Occurred()) SWIG_fail;
9125 }
9126 {
9127 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9128 }
9129 {
9130 if (temp2)
9131 delete arg2;
9132 }
9133 return resultobj;
9134 fail:
9135 {
9136 if (temp2)
9137 delete arg2;
9138 }
9139 return NULL;
9140 }
9141
9142
9143 SWIGINTERN PyObject *_wrap_Icon_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9144 PyObject *resultobj = 0;
9145 wxIcon *arg1 = (wxIcon *) 0 ;
9146 long result;
9147 void *argp1 = 0 ;
9148 int res1 = 0 ;
9149 PyObject *swig_obj[1] ;
9150
9151 if (!args) SWIG_fail;
9152 swig_obj[0] = args;
9153 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9154 if (!SWIG_IsOK(res1)) {
9155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHandle" "', expected argument " "1"" of type '" "wxIcon *""'");
9156 }
9157 arg1 = reinterpret_cast< wxIcon * >(argp1);
9158 {
9159 PyThreadState* __tstate = wxPyBeginAllowThreads();
9160 result = (long)(arg1)->GetHandle();
9161 wxPyEndAllowThreads(__tstate);
9162 if (PyErr_Occurred()) SWIG_fail;
9163 }
9164 resultobj = SWIG_From_long(static_cast< long >(result));
9165 return resultobj;
9166 fail:
9167 return NULL;
9168 }
9169
9170
9171 SWIGINTERN PyObject *_wrap_Icon_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9172 PyObject *resultobj = 0;
9173 wxIcon *arg1 = (wxIcon *) 0 ;
9174 long arg2 ;
9175 void *argp1 = 0 ;
9176 int res1 = 0 ;
9177 long val2 ;
9178 int ecode2 = 0 ;
9179 PyObject * obj0 = 0 ;
9180 PyObject * obj1 = 0 ;
9181 char * kwnames[] = {
9182 (char *) "self",(char *) "handle", NULL
9183 };
9184
9185 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
9186 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9187 if (!SWIG_IsOK(res1)) {
9188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHandle" "', expected argument " "1"" of type '" "wxIcon *""'");
9189 }
9190 arg1 = reinterpret_cast< wxIcon * >(argp1);
9191 ecode2 = SWIG_AsVal_long(obj1, &val2);
9192 if (!SWIG_IsOK(ecode2)) {
9193 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHandle" "', expected argument " "2"" of type '" "long""'");
9194 }
9195 arg2 = static_cast< long >(val2);
9196 {
9197 PyThreadState* __tstate = wxPyBeginAllowThreads();
9198 wxIcon_SetHandle(arg1,arg2);
9199 wxPyEndAllowThreads(__tstate);
9200 if (PyErr_Occurred()) SWIG_fail;
9201 }
9202 resultobj = SWIG_Py_Void();
9203 return resultobj;
9204 fail:
9205 return NULL;
9206 }
9207
9208
9209 SWIGINTERN PyObject *_wrap_Icon_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9210 PyObject *resultobj = 0;
9211 wxIcon *arg1 = (wxIcon *) 0 ;
9212 bool result;
9213 void *argp1 = 0 ;
9214 int res1 = 0 ;
9215 PyObject *swig_obj[1] ;
9216
9217 if (!args) SWIG_fail;
9218 swig_obj[0] = args;
9219 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9220 if (!SWIG_IsOK(res1)) {
9221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_IsOk" "', expected argument " "1"" of type '" "wxIcon *""'");
9222 }
9223 arg1 = reinterpret_cast< wxIcon * >(argp1);
9224 {
9225 PyThreadState* __tstate = wxPyBeginAllowThreads();
9226 result = (bool)(arg1)->IsOk();
9227 wxPyEndAllowThreads(__tstate);
9228 if (PyErr_Occurred()) SWIG_fail;
9229 }
9230 {
9231 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9232 }
9233 return resultobj;
9234 fail:
9235 return NULL;
9236 }
9237
9238
9239 SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9240 PyObject *resultobj = 0;
9241 wxIcon *arg1 = (wxIcon *) 0 ;
9242 int result;
9243 void *argp1 = 0 ;
9244 int res1 = 0 ;
9245 PyObject *swig_obj[1] ;
9246
9247 if (!args) SWIG_fail;
9248 swig_obj[0] = args;
9249 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9250 if (!SWIG_IsOK(res1)) {
9251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9252 }
9253 arg1 = reinterpret_cast< wxIcon * >(argp1);
9254 {
9255 PyThreadState* __tstate = wxPyBeginAllowThreads();
9256 result = (int)(arg1)->GetWidth();
9257 wxPyEndAllowThreads(__tstate);
9258 if (PyErr_Occurred()) SWIG_fail;
9259 }
9260 resultobj = SWIG_From_int(static_cast< int >(result));
9261 return resultobj;
9262 fail:
9263 return NULL;
9264 }
9265
9266
9267 SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9268 PyObject *resultobj = 0;
9269 wxIcon *arg1 = (wxIcon *) 0 ;
9270 int result;
9271 void *argp1 = 0 ;
9272 int res1 = 0 ;
9273 PyObject *swig_obj[1] ;
9274
9275 if (!args) SWIG_fail;
9276 swig_obj[0] = args;
9277 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9278 if (!SWIG_IsOK(res1)) {
9279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9280 }
9281 arg1 = reinterpret_cast< wxIcon * >(argp1);
9282 {
9283 PyThreadState* __tstate = wxPyBeginAllowThreads();
9284 result = (int)(arg1)->GetHeight();
9285 wxPyEndAllowThreads(__tstate);
9286 if (PyErr_Occurred()) SWIG_fail;
9287 }
9288 resultobj = SWIG_From_int(static_cast< int >(result));
9289 return resultobj;
9290 fail:
9291 return NULL;
9292 }
9293
9294
9295 SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9296 PyObject *resultobj = 0;
9297 wxIcon *arg1 = (wxIcon *) 0 ;
9298 int result;
9299 void *argp1 = 0 ;
9300 int res1 = 0 ;
9301 PyObject *swig_obj[1] ;
9302
9303 if (!args) SWIG_fail;
9304 swig_obj[0] = args;
9305 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9306 if (!SWIG_IsOK(res1)) {
9307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9308 }
9309 arg1 = reinterpret_cast< wxIcon * >(argp1);
9310 {
9311 PyThreadState* __tstate = wxPyBeginAllowThreads();
9312 result = (int)(arg1)->GetDepth();
9313 wxPyEndAllowThreads(__tstate);
9314 if (PyErr_Occurred()) SWIG_fail;
9315 }
9316 resultobj = SWIG_From_int(static_cast< int >(result));
9317 return resultobj;
9318 fail:
9319 return NULL;
9320 }
9321
9322
9323 SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9324 PyObject *resultobj = 0;
9325 wxIcon *arg1 = (wxIcon *) 0 ;
9326 int arg2 ;
9327 void *argp1 = 0 ;
9328 int res1 = 0 ;
9329 int val2 ;
9330 int ecode2 = 0 ;
9331 PyObject * obj0 = 0 ;
9332 PyObject * obj1 = 0 ;
9333 char * kwnames[] = {
9334 (char *) "self",(char *) "w", NULL
9335 };
9336
9337 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
9338 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9339 if (!SWIG_IsOK(res1)) {
9340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9341 }
9342 arg1 = reinterpret_cast< wxIcon * >(argp1);
9343 ecode2 = SWIG_AsVal_int(obj1, &val2);
9344 if (!SWIG_IsOK(ecode2)) {
9345 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
9346 }
9347 arg2 = static_cast< int >(val2);
9348 {
9349 PyThreadState* __tstate = wxPyBeginAllowThreads();
9350 (arg1)->SetWidth(arg2);
9351 wxPyEndAllowThreads(__tstate);
9352 if (PyErr_Occurred()) SWIG_fail;
9353 }
9354 resultobj = SWIG_Py_Void();
9355 return resultobj;
9356 fail:
9357 return NULL;
9358 }
9359
9360
9361 SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9362 PyObject *resultobj = 0;
9363 wxIcon *arg1 = (wxIcon *) 0 ;
9364 int arg2 ;
9365 void *argp1 = 0 ;
9366 int res1 = 0 ;
9367 int val2 ;
9368 int ecode2 = 0 ;
9369 PyObject * obj0 = 0 ;
9370 PyObject * obj1 = 0 ;
9371 char * kwnames[] = {
9372 (char *) "self",(char *) "h", NULL
9373 };
9374
9375 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
9376 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9377 if (!SWIG_IsOK(res1)) {
9378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9379 }
9380 arg1 = reinterpret_cast< wxIcon * >(argp1);
9381 ecode2 = SWIG_AsVal_int(obj1, &val2);
9382 if (!SWIG_IsOK(ecode2)) {
9383 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
9384 }
9385 arg2 = static_cast< int >(val2);
9386 {
9387 PyThreadState* __tstate = wxPyBeginAllowThreads();
9388 (arg1)->SetHeight(arg2);
9389 wxPyEndAllowThreads(__tstate);
9390 if (PyErr_Occurred()) SWIG_fail;
9391 }
9392 resultobj = SWIG_Py_Void();
9393 return resultobj;
9394 fail:
9395 return NULL;
9396 }
9397
9398
9399 SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9400 PyObject *resultobj = 0;
9401 wxIcon *arg1 = (wxIcon *) 0 ;
9402 int arg2 ;
9403 void *argp1 = 0 ;
9404 int res1 = 0 ;
9405 int val2 ;
9406 int ecode2 = 0 ;
9407 PyObject * obj0 = 0 ;
9408 PyObject * obj1 = 0 ;
9409 char * kwnames[] = {
9410 (char *) "self",(char *) "d", NULL
9411 };
9412
9413 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
9414 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9415 if (!SWIG_IsOK(res1)) {
9416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9417 }
9418 arg1 = reinterpret_cast< wxIcon * >(argp1);
9419 ecode2 = SWIG_AsVal_int(obj1, &val2);
9420 if (!SWIG_IsOK(ecode2)) {
9421 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
9422 }
9423 arg2 = static_cast< int >(val2);
9424 {
9425 PyThreadState* __tstate = wxPyBeginAllowThreads();
9426 (arg1)->SetDepth(arg2);
9427 wxPyEndAllowThreads(__tstate);
9428 if (PyErr_Occurred()) SWIG_fail;
9429 }
9430 resultobj = SWIG_Py_Void();
9431 return resultobj;
9432 fail:
9433 return NULL;
9434 }
9435
9436
9437 SWIGINTERN PyObject *_wrap_Icon_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9438 PyObject *resultobj = 0;
9439 wxIcon *arg1 = (wxIcon *) 0 ;
9440 wxSize *arg2 = 0 ;
9441 void *argp1 = 0 ;
9442 int res1 = 0 ;
9443 wxSize temp2 ;
9444 PyObject * obj0 = 0 ;
9445 PyObject * obj1 = 0 ;
9446 char * kwnames[] = {
9447 (char *) "self",(char *) "size", NULL
9448 };
9449
9450 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
9451 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9452 if (!SWIG_IsOK(res1)) {
9453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetSize" "', expected argument " "1"" of type '" "wxIcon *""'");
9454 }
9455 arg1 = reinterpret_cast< wxIcon * >(argp1);
9456 {
9457 arg2 = &temp2;
9458 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
9459 }
9460 {
9461 PyThreadState* __tstate = wxPyBeginAllowThreads();
9462 (arg1)->SetSize((wxSize const &)*arg2);
9463 wxPyEndAllowThreads(__tstate);
9464 if (PyErr_Occurred()) SWIG_fail;
9465 }
9466 resultobj = SWIG_Py_Void();
9467 return resultobj;
9468 fail:
9469 return NULL;
9470 }
9471
9472
9473 SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9474 PyObject *resultobj = 0;
9475 wxIcon *arg1 = (wxIcon *) 0 ;
9476 wxBitmap *arg2 = 0 ;
9477 void *argp1 = 0 ;
9478 int res1 = 0 ;
9479 void *argp2 = 0 ;
9480 int res2 = 0 ;
9481 PyObject * obj0 = 0 ;
9482 PyObject * obj1 = 0 ;
9483 char * kwnames[] = {
9484 (char *) "self",(char *) "bmp", NULL
9485 };
9486
9487 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9488 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9489 if (!SWIG_IsOK(res1)) {
9490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
9491 }
9492 arg1 = reinterpret_cast< wxIcon * >(argp1);
9493 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9494 if (!SWIG_IsOK(res2)) {
9495 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9496 }
9497 if (!argp2) {
9498 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9499 }
9500 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9501 {
9502 PyThreadState* __tstate = wxPyBeginAllowThreads();
9503 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
9504 wxPyEndAllowThreads(__tstate);
9505 if (PyErr_Occurred()) SWIG_fail;
9506 }
9507 resultobj = SWIG_Py_Void();
9508 return resultobj;
9509 fail:
9510 return NULL;
9511 }
9512
9513
9514 SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9515 PyObject *obj;
9516 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9517 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
9518 return SWIG_Py_Void();
9519 }
9520
9521 SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9522 return SWIG_Python_InitShadowInstance(args);
9523 }
9524
9525 SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9526 PyObject *resultobj = 0;
9527 wxString *arg1 = (wxString *) &wxPyEmptyString ;
9528 int arg2 = (int) 0 ;
9529 wxIconLocation *result = 0 ;
9530 bool temp1 = false ;
9531 int val2 ;
9532 int ecode2 = 0 ;
9533 PyObject * obj0 = 0 ;
9534 PyObject * obj1 = 0 ;
9535 char * kwnames[] = {
9536 (char *) "filename",(char *) "num", NULL
9537 };
9538
9539 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
9540 if (obj0) {
9541 {
9542 arg1 = wxString_in_helper(obj0);
9543 if (arg1 == NULL) SWIG_fail;
9544 temp1 = true;
9545 }
9546 }
9547 if (obj1) {
9548 ecode2 = SWIG_AsVal_int(obj1, &val2);
9549 if (!SWIG_IsOK(ecode2)) {
9550 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
9551 }
9552 arg2 = static_cast< int >(val2);
9553 }
9554 {
9555 PyThreadState* __tstate = wxPyBeginAllowThreads();
9556 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
9557 wxPyEndAllowThreads(__tstate);
9558 if (PyErr_Occurred()) SWIG_fail;
9559 }
9560 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
9561 {
9562 if (temp1)
9563 delete arg1;
9564 }
9565 return resultobj;
9566 fail:
9567 {
9568 if (temp1)
9569 delete arg1;
9570 }
9571 return NULL;
9572 }
9573
9574
9575 SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9576 PyObject *resultobj = 0;
9577 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9578 void *argp1 = 0 ;
9579 int res1 = 0 ;
9580 PyObject *swig_obj[1] ;
9581
9582 if (!args) SWIG_fail;
9583 swig_obj[0] = args;
9584 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
9585 if (!SWIG_IsOK(res1)) {
9586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9587 }
9588 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9589 {
9590 PyThreadState* __tstate = wxPyBeginAllowThreads();
9591 delete arg1;
9592
9593 wxPyEndAllowThreads(__tstate);
9594 if (PyErr_Occurred()) SWIG_fail;
9595 }
9596 resultobj = SWIG_Py_Void();
9597 return resultobj;
9598 fail:
9599 return NULL;
9600 }
9601
9602
9603 SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9604 PyObject *resultobj = 0;
9605 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9606 bool result;
9607 void *argp1 = 0 ;
9608 int res1 = 0 ;
9609 PyObject *swig_obj[1] ;
9610
9611 if (!args) SWIG_fail;
9612 swig_obj[0] = args;
9613 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9614 if (!SWIG_IsOK(res1)) {
9615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9616 }
9617 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9618 {
9619 PyThreadState* __tstate = wxPyBeginAllowThreads();
9620 result = (bool)((wxIconLocation const *)arg1)->IsOk();
9621 wxPyEndAllowThreads(__tstate);
9622 if (PyErr_Occurred()) SWIG_fail;
9623 }
9624 {
9625 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9626 }
9627 return resultobj;
9628 fail:
9629 return NULL;
9630 }
9631
9632
9633 SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9634 PyObject *resultobj = 0;
9635 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9636 wxString *arg2 = 0 ;
9637 void *argp1 = 0 ;
9638 int res1 = 0 ;
9639 bool temp2 = false ;
9640 PyObject * obj0 = 0 ;
9641 PyObject * obj1 = 0 ;
9642 char * kwnames[] = {
9643 (char *) "self",(char *) "filename", NULL
9644 };
9645
9646 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
9647 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9648 if (!SWIG_IsOK(res1)) {
9649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9650 }
9651 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9652 {
9653 arg2 = wxString_in_helper(obj1);
9654 if (arg2 == NULL) SWIG_fail;
9655 temp2 = true;
9656 }
9657 {
9658 PyThreadState* __tstate = wxPyBeginAllowThreads();
9659 (arg1)->SetFileName((wxString const &)*arg2);
9660 wxPyEndAllowThreads(__tstate);
9661 if (PyErr_Occurred()) SWIG_fail;
9662 }
9663 resultobj = SWIG_Py_Void();
9664 {
9665 if (temp2)
9666 delete arg2;
9667 }
9668 return resultobj;
9669 fail:
9670 {
9671 if (temp2)
9672 delete arg2;
9673 }
9674 return NULL;
9675 }
9676
9677
9678 SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9679 PyObject *resultobj = 0;
9680 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9681 wxString *result = 0 ;
9682 void *argp1 = 0 ;
9683 int res1 = 0 ;
9684 PyObject *swig_obj[1] ;
9685
9686 if (!args) SWIG_fail;
9687 swig_obj[0] = args;
9688 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9689 if (!SWIG_IsOK(res1)) {
9690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9691 }
9692 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9693 {
9694 PyThreadState* __tstate = wxPyBeginAllowThreads();
9695 {
9696 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
9697 result = (wxString *) &_result_ref;
9698 }
9699 wxPyEndAllowThreads(__tstate);
9700 if (PyErr_Occurred()) SWIG_fail;
9701 }
9702 {
9703 #if wxUSE_UNICODE
9704 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9705 #else
9706 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9707 #endif
9708 }
9709 return resultobj;
9710 fail:
9711 return NULL;
9712 }
9713
9714
9715 SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9716 PyObject *resultobj = 0;
9717 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9718 int arg2 ;
9719 void *argp1 = 0 ;
9720 int res1 = 0 ;
9721 int val2 ;
9722 int ecode2 = 0 ;
9723 PyObject * obj0 = 0 ;
9724 PyObject * obj1 = 0 ;
9725 char * kwnames[] = {
9726 (char *) "self",(char *) "num", NULL
9727 };
9728
9729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
9730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9731 if (!SWIG_IsOK(res1)) {
9732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9733 }
9734 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9735 ecode2 = SWIG_AsVal_int(obj1, &val2);
9736 if (!SWIG_IsOK(ecode2)) {
9737 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
9738 }
9739 arg2 = static_cast< int >(val2);
9740 {
9741 PyThreadState* __tstate = wxPyBeginAllowThreads();
9742 wxIconLocation_SetIndex(arg1,arg2);
9743 wxPyEndAllowThreads(__tstate);
9744 if (PyErr_Occurred()) SWIG_fail;
9745 }
9746 resultobj = SWIG_Py_Void();
9747 return resultobj;
9748 fail:
9749 return NULL;
9750 }
9751
9752
9753 SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9754 PyObject *resultobj = 0;
9755 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9756 int result;
9757 void *argp1 = 0 ;
9758 int res1 = 0 ;
9759 PyObject *swig_obj[1] ;
9760
9761 if (!args) SWIG_fail;
9762 swig_obj[0] = args;
9763 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9764 if (!SWIG_IsOK(res1)) {
9765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9766 }
9767 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9768 {
9769 PyThreadState* __tstate = wxPyBeginAllowThreads();
9770 result = (int)wxIconLocation_GetIndex(arg1);
9771 wxPyEndAllowThreads(__tstate);
9772 if (PyErr_Occurred()) SWIG_fail;
9773 }
9774 resultobj = SWIG_From_int(static_cast< int >(result));
9775 return resultobj;
9776 fail:
9777 return NULL;
9778 }
9779
9780
9781 SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9782 PyObject *obj;
9783 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9784 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
9785 return SWIG_Py_Void();
9786 }
9787
9788 SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9789 return SWIG_Python_InitShadowInstance(args);
9790 }
9791
9792 SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9793 PyObject *resultobj = 0;
9794 wxIconBundle *result = 0 ;
9795
9796 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
9797 {
9798 PyThreadState* __tstate = wxPyBeginAllowThreads();
9799 result = (wxIconBundle *)new wxIconBundle();
9800 wxPyEndAllowThreads(__tstate);
9801 if (PyErr_Occurred()) SWIG_fail;
9802 }
9803 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
9804 return resultobj;
9805 fail:
9806 return NULL;
9807 }
9808
9809
9810 SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9811 PyObject *resultobj = 0;
9812 wxString *arg1 = 0 ;
9813 long arg2 ;
9814 wxIconBundle *result = 0 ;
9815 bool temp1 = false ;
9816 long val2 ;
9817 int ecode2 = 0 ;
9818 PyObject * obj0 = 0 ;
9819 PyObject * obj1 = 0 ;
9820 char * kwnames[] = {
9821 (char *) "file",(char *) "type", NULL
9822 };
9823
9824 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
9825 {
9826 arg1 = wxString_in_helper(obj0);
9827 if (arg1 == NULL) SWIG_fail;
9828 temp1 = true;
9829 }
9830 ecode2 = SWIG_AsVal_long(obj1, &val2);
9831 if (!SWIG_IsOK(ecode2)) {
9832 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
9833 }
9834 arg2 = static_cast< long >(val2);
9835 {
9836 PyThreadState* __tstate = wxPyBeginAllowThreads();
9837 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
9838 wxPyEndAllowThreads(__tstate);
9839 if (PyErr_Occurred()) SWIG_fail;
9840 }
9841 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9842 {
9843 if (temp1)
9844 delete arg1;
9845 }
9846 return resultobj;
9847 fail:
9848 {
9849 if (temp1)
9850 delete arg1;
9851 }
9852 return NULL;
9853 }
9854
9855
9856 SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9857 PyObject *resultobj = 0;
9858 wxIcon *arg1 = 0 ;
9859 wxIconBundle *result = 0 ;
9860 void *argp1 = 0 ;
9861 int res1 = 0 ;
9862 PyObject * obj0 = 0 ;
9863 char * kwnames[] = {
9864 (char *) "icon", NULL
9865 };
9866
9867 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
9868 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
9869 if (!SWIG_IsOK(res1)) {
9870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9871 }
9872 if (!argp1) {
9873 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9874 }
9875 arg1 = reinterpret_cast< wxIcon * >(argp1);
9876 {
9877 PyThreadState* __tstate = wxPyBeginAllowThreads();
9878 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
9879 wxPyEndAllowThreads(__tstate);
9880 if (PyErr_Occurred()) SWIG_fail;
9881 }
9882 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9883 return resultobj;
9884 fail:
9885 return NULL;
9886 }
9887
9888
9889 SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9890 PyObject *resultobj = 0;
9891 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9892 void *argp1 = 0 ;
9893 int res1 = 0 ;
9894 PyObject *swig_obj[1] ;
9895
9896 if (!args) SWIG_fail;
9897 swig_obj[0] = args;
9898 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
9899 if (!SWIG_IsOK(res1)) {
9900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9901 }
9902 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9903 {
9904 PyThreadState* __tstate = wxPyBeginAllowThreads();
9905 delete arg1;
9906
9907 wxPyEndAllowThreads(__tstate);
9908 if (PyErr_Occurred()) SWIG_fail;
9909 }
9910 resultobj = SWIG_Py_Void();
9911 return resultobj;
9912 fail:
9913 return NULL;
9914 }
9915
9916
9917 SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9918 PyObject *resultobj = 0;
9919 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9920 wxIcon *arg2 = 0 ;
9921 void *argp1 = 0 ;
9922 int res1 = 0 ;
9923 void *argp2 = 0 ;
9924 int res2 = 0 ;
9925 PyObject * obj0 = 0 ;
9926 PyObject * obj1 = 0 ;
9927 char * kwnames[] = {
9928 (char *) "self",(char *) "icon", NULL
9929 };
9930
9931 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9932 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9933 if (!SWIG_IsOK(res1)) {
9934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9935 }
9936 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9937 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
9938 if (!SWIG_IsOK(res2)) {
9939 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9940 }
9941 if (!argp2) {
9942 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9943 }
9944 arg2 = reinterpret_cast< wxIcon * >(argp2);
9945 {
9946 PyThreadState* __tstate = wxPyBeginAllowThreads();
9947 (arg1)->AddIcon((wxIcon const &)*arg2);
9948 wxPyEndAllowThreads(__tstate);
9949 if (PyErr_Occurred()) SWIG_fail;
9950 }
9951 resultobj = SWIG_Py_Void();
9952 return resultobj;
9953 fail:
9954 return NULL;
9955 }
9956
9957
9958 SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9959 PyObject *resultobj = 0;
9960 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9961 wxString *arg2 = 0 ;
9962 long arg3 ;
9963 void *argp1 = 0 ;
9964 int res1 = 0 ;
9965 bool temp2 = false ;
9966 long val3 ;
9967 int ecode3 = 0 ;
9968 PyObject * obj0 = 0 ;
9969 PyObject * obj1 = 0 ;
9970 PyObject * obj2 = 0 ;
9971 char * kwnames[] = {
9972 (char *) "self",(char *) "file",(char *) "type", NULL
9973 };
9974
9975 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9976 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9977 if (!SWIG_IsOK(res1)) {
9978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9979 }
9980 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9981 {
9982 arg2 = wxString_in_helper(obj1);
9983 if (arg2 == NULL) SWIG_fail;
9984 temp2 = true;
9985 }
9986 ecode3 = SWIG_AsVal_long(obj2, &val3);
9987 if (!SWIG_IsOK(ecode3)) {
9988 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
9989 }
9990 arg3 = static_cast< long >(val3);
9991 {
9992 PyThreadState* __tstate = wxPyBeginAllowThreads();
9993 (arg1)->AddIcon((wxString const &)*arg2,arg3);
9994 wxPyEndAllowThreads(__tstate);
9995 if (PyErr_Occurred()) SWIG_fail;
9996 }
9997 resultobj = SWIG_Py_Void();
9998 {
9999 if (temp2)
10000 delete arg2;
10001 }
10002 return resultobj;
10003 fail:
10004 {
10005 if (temp2)
10006 delete arg2;
10007 }
10008 return NULL;
10009 }
10010
10011
10012 SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10013 PyObject *resultobj = 0;
10014 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10015 wxSize *arg2 = 0 ;
10016 wxIcon *result = 0 ;
10017 void *argp1 = 0 ;
10018 int res1 = 0 ;
10019 wxSize temp2 ;
10020 PyObject * obj0 = 0 ;
10021 PyObject * obj1 = 0 ;
10022 char * kwnames[] = {
10023 (char *) "self",(char *) "size", NULL
10024 };
10025
10026 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
10027 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10028 if (!SWIG_IsOK(res1)) {
10029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
10030 }
10031 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10032 {
10033 arg2 = &temp2;
10034 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10035 }
10036 {
10037 PyThreadState* __tstate = wxPyBeginAllowThreads();
10038 {
10039 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
10040 result = (wxIcon *) &_result_ref;
10041 }
10042 wxPyEndAllowThreads(__tstate);
10043 if (PyErr_Occurred()) SWIG_fail;
10044 }
10045 {
10046 wxIcon* resultptr = new wxIcon(*result);
10047 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
10048 }
10049 return resultobj;
10050 fail:
10051 return NULL;
10052 }
10053
10054
10055 SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10056 PyObject *obj;
10057 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10058 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
10059 return SWIG_Py_Void();
10060 }
10061
10062 SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10063 return SWIG_Python_InitShadowInstance(args);
10064 }
10065
10066 SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10067 PyObject *resultobj = 0;
10068 wxString *arg1 = 0 ;
10069 long arg2 ;
10070 int arg3 = (int) 0 ;
10071 int arg4 = (int) 0 ;
10072 wxCursor *result = 0 ;
10073 bool temp1 = false ;
10074 long val2 ;
10075 int ecode2 = 0 ;
10076 int val3 ;
10077 int ecode3 = 0 ;
10078 int val4 ;
10079 int ecode4 = 0 ;
10080 PyObject * obj0 = 0 ;
10081 PyObject * obj1 = 0 ;
10082 PyObject * obj2 = 0 ;
10083 PyObject * obj3 = 0 ;
10084 char * kwnames[] = {
10085 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
10086 };
10087
10088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10089 {
10090 arg1 = wxString_in_helper(obj0);
10091 if (arg1 == NULL) SWIG_fail;
10092 temp1 = true;
10093 }
10094 ecode2 = SWIG_AsVal_long(obj1, &val2);
10095 if (!SWIG_IsOK(ecode2)) {
10096 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
10097 }
10098 arg2 = static_cast< long >(val2);
10099 if (obj2) {
10100 ecode3 = SWIG_AsVal_int(obj2, &val3);
10101 if (!SWIG_IsOK(ecode3)) {
10102 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
10103 }
10104 arg3 = static_cast< int >(val3);
10105 }
10106 if (obj3) {
10107 ecode4 = SWIG_AsVal_int(obj3, &val4);
10108 if (!SWIG_IsOK(ecode4)) {
10109 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
10110 }
10111 arg4 = static_cast< int >(val4);
10112 }
10113 {
10114 if (!wxPyCheckForApp()) SWIG_fail;
10115 PyThreadState* __tstate = wxPyBeginAllowThreads();
10116 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
10117 wxPyEndAllowThreads(__tstate);
10118 if (PyErr_Occurred()) SWIG_fail;
10119 }
10120 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
10121 {
10122 if (temp1)
10123 delete arg1;
10124 }
10125 return resultobj;
10126 fail:
10127 {
10128 if (temp1)
10129 delete arg1;
10130 }
10131 return NULL;
10132 }
10133
10134
10135 SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10136 PyObject *resultobj = 0;
10137 wxCursor *arg1 = (wxCursor *) 0 ;
10138 void *argp1 = 0 ;
10139 int res1 = 0 ;
10140 PyObject *swig_obj[1] ;
10141
10142 if (!args) SWIG_fail;
10143 swig_obj[0] = args;
10144 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
10145 if (!SWIG_IsOK(res1)) {
10146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
10147 }
10148 arg1 = reinterpret_cast< wxCursor * >(argp1);
10149 {
10150 PyThreadState* __tstate = wxPyBeginAllowThreads();
10151 delete arg1;
10152
10153 wxPyEndAllowThreads(__tstate);
10154 if (PyErr_Occurred()) SWIG_fail;
10155 }
10156 resultobj = SWIG_Py_Void();
10157 return resultobj;
10158 fail:
10159 return NULL;
10160 }
10161
10162
10163 SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10164 PyObject *resultobj = 0;
10165 int arg1 ;
10166 wxCursor *result = 0 ;
10167 int val1 ;
10168 int ecode1 = 0 ;
10169 PyObject * obj0 = 0 ;
10170 char * kwnames[] = {
10171 (char *) "id", NULL
10172 };
10173
10174 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
10175 ecode1 = SWIG_AsVal_int(obj0, &val1);
10176 if (!SWIG_IsOK(ecode1)) {
10177 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
10178 }
10179 arg1 = static_cast< int >(val1);
10180 {
10181 if (!wxPyCheckForApp()) SWIG_fail;
10182 PyThreadState* __tstate = wxPyBeginAllowThreads();
10183 result = (wxCursor *)new wxCursor(arg1);
10184 wxPyEndAllowThreads(__tstate);
10185 if (PyErr_Occurred()) SWIG_fail;
10186 }
10187 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10188 return resultobj;
10189 fail:
10190 return NULL;
10191 }
10192
10193
10194 SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10195 PyObject *resultobj = 0;
10196 wxImage *arg1 = 0 ;
10197 wxCursor *result = 0 ;
10198 void *argp1 = 0 ;
10199 int res1 = 0 ;
10200 PyObject * obj0 = 0 ;
10201 char * kwnames[] = {
10202 (char *) "image", NULL
10203 };
10204
10205 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
10206 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
10207 if (!SWIG_IsOK(res1)) {
10208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10209 }
10210 if (!argp1) {
10211 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10212 }
10213 arg1 = reinterpret_cast< wxImage * >(argp1);
10214 {
10215 if (!wxPyCheckForApp()) SWIG_fail;
10216 PyThreadState* __tstate = wxPyBeginAllowThreads();
10217 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
10218 wxPyEndAllowThreads(__tstate);
10219 if (PyErr_Occurred()) SWIG_fail;
10220 }
10221 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10222 return resultobj;
10223 fail:
10224 return NULL;
10225 }
10226
10227
10228 SWIGINTERN PyObject *_wrap_Cursor_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10229 PyObject *resultobj = 0;
10230 wxCursor *arg1 = (wxCursor *) 0 ;
10231 long result;
10232 void *argp1 = 0 ;
10233 int res1 = 0 ;
10234 PyObject *swig_obj[1] ;
10235
10236 if (!args) SWIG_fail;
10237 swig_obj[0] = args;
10238 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10239 if (!SWIG_IsOK(res1)) {
10240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetHandle" "', expected argument " "1"" of type '" "wxCursor *""'");
10241 }
10242 arg1 = reinterpret_cast< wxCursor * >(argp1);
10243 {
10244 PyThreadState* __tstate = wxPyBeginAllowThreads();
10245 result = (long)(arg1)->GetHandle();
10246 wxPyEndAllowThreads(__tstate);
10247 if (PyErr_Occurred()) SWIG_fail;
10248 }
10249 resultobj = SWIG_From_long(static_cast< long >(result));
10250 return resultobj;
10251 fail:
10252 return NULL;
10253 }
10254
10255
10256 SWIGINTERN PyObject *_wrap_Cursor_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10257 PyObject *resultobj = 0;
10258 wxCursor *arg1 = (wxCursor *) 0 ;
10259 long arg2 ;
10260 void *argp1 = 0 ;
10261 int res1 = 0 ;
10262 long val2 ;
10263 int ecode2 = 0 ;
10264 PyObject * obj0 = 0 ;
10265 PyObject * obj1 = 0 ;
10266 char * kwnames[] = {
10267 (char *) "self",(char *) "handle", NULL
10268 };
10269
10270 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
10271 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10272 if (!SWIG_IsOK(res1)) {
10273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetHandle" "', expected argument " "1"" of type '" "wxCursor *""'");
10274 }
10275 arg1 = reinterpret_cast< wxCursor * >(argp1);
10276 ecode2 = SWIG_AsVal_long(obj1, &val2);
10277 if (!SWIG_IsOK(ecode2)) {
10278 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetHandle" "', expected argument " "2"" of type '" "long""'");
10279 }
10280 arg2 = static_cast< long >(val2);
10281 {
10282 PyThreadState* __tstate = wxPyBeginAllowThreads();
10283 wxCursor_SetHandle(arg1,arg2);
10284 wxPyEndAllowThreads(__tstate);
10285 if (PyErr_Occurred()) SWIG_fail;
10286 }
10287 resultobj = SWIG_Py_Void();
10288 return resultobj;
10289 fail:
10290 return NULL;
10291 }
10292
10293
10294 SWIGINTERN PyObject *_wrap_Cursor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10295 PyObject *resultobj = 0;
10296 wxCursor *arg1 = (wxCursor *) 0 ;
10297 bool result;
10298 void *argp1 = 0 ;
10299 int res1 = 0 ;
10300 PyObject *swig_obj[1] ;
10301
10302 if (!args) SWIG_fail;
10303 swig_obj[0] = args;
10304 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10305 if (!SWIG_IsOK(res1)) {
10306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_IsOk" "', expected argument " "1"" of type '" "wxCursor *""'");
10307 }
10308 arg1 = reinterpret_cast< wxCursor * >(argp1);
10309 {
10310 PyThreadState* __tstate = wxPyBeginAllowThreads();
10311 result = (bool)(arg1)->IsOk();
10312 wxPyEndAllowThreads(__tstate);
10313 if (PyErr_Occurred()) SWIG_fail;
10314 }
10315 {
10316 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10317 }
10318 return resultobj;
10319 fail:
10320 return NULL;
10321 }
10322
10323
10324 SWIGINTERN PyObject *_wrap_Cursor_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10325 PyObject *resultobj = 0;
10326 wxCursor *arg1 = (wxCursor *) 0 ;
10327 int result;
10328 void *argp1 = 0 ;
10329 int res1 = 0 ;
10330 PyObject *swig_obj[1] ;
10331
10332 if (!args) SWIG_fail;
10333 swig_obj[0] = args;
10334 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10335 if (!SWIG_IsOK(res1)) {
10336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetWidth" "', expected argument " "1"" of type '" "wxCursor *""'");
10337 }
10338 arg1 = reinterpret_cast< wxCursor * >(argp1);
10339 {
10340 PyThreadState* __tstate = wxPyBeginAllowThreads();
10341 result = (int)(arg1)->GetWidth();
10342 wxPyEndAllowThreads(__tstate);
10343 if (PyErr_Occurred()) SWIG_fail;
10344 }
10345 resultobj = SWIG_From_int(static_cast< int >(result));
10346 return resultobj;
10347 fail:
10348 return NULL;
10349 }
10350
10351
10352 SWIGINTERN PyObject *_wrap_Cursor_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10353 PyObject *resultobj = 0;
10354 wxCursor *arg1 = (wxCursor *) 0 ;
10355 int result;
10356 void *argp1 = 0 ;
10357 int res1 = 0 ;
10358 PyObject *swig_obj[1] ;
10359
10360 if (!args) SWIG_fail;
10361 swig_obj[0] = args;
10362 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10363 if (!SWIG_IsOK(res1)) {
10364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetHeight" "', expected argument " "1"" of type '" "wxCursor *""'");
10365 }
10366 arg1 = reinterpret_cast< wxCursor * >(argp1);
10367 {
10368 PyThreadState* __tstate = wxPyBeginAllowThreads();
10369 result = (int)(arg1)->GetHeight();
10370 wxPyEndAllowThreads(__tstate);
10371 if (PyErr_Occurred()) SWIG_fail;
10372 }
10373 resultobj = SWIG_From_int(static_cast< int >(result));
10374 return resultobj;
10375 fail:
10376 return NULL;
10377 }
10378
10379
10380 SWIGINTERN PyObject *_wrap_Cursor_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10381 PyObject *resultobj = 0;
10382 wxCursor *arg1 = (wxCursor *) 0 ;
10383 int result;
10384 void *argp1 = 0 ;
10385 int res1 = 0 ;
10386 PyObject *swig_obj[1] ;
10387
10388 if (!args) SWIG_fail;
10389 swig_obj[0] = args;
10390 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10391 if (!SWIG_IsOK(res1)) {
10392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetDepth" "', expected argument " "1"" of type '" "wxCursor *""'");
10393 }
10394 arg1 = reinterpret_cast< wxCursor * >(argp1);
10395 {
10396 PyThreadState* __tstate = wxPyBeginAllowThreads();
10397 result = (int)(arg1)->GetDepth();
10398 wxPyEndAllowThreads(__tstate);
10399 if (PyErr_Occurred()) SWIG_fail;
10400 }
10401 resultobj = SWIG_From_int(static_cast< int >(result));
10402 return resultobj;
10403 fail:
10404 return NULL;
10405 }
10406
10407
10408 SWIGINTERN PyObject *_wrap_Cursor_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10409 PyObject *resultobj = 0;
10410 wxCursor *arg1 = (wxCursor *) 0 ;
10411 int arg2 ;
10412 void *argp1 = 0 ;
10413 int res1 = 0 ;
10414 int val2 ;
10415 int ecode2 = 0 ;
10416 PyObject * obj0 = 0 ;
10417 PyObject * obj1 = 0 ;
10418 char * kwnames[] = {
10419 (char *) "self",(char *) "w", NULL
10420 };
10421
10422 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
10423 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10424 if (!SWIG_IsOK(res1)) {
10425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetWidth" "', expected argument " "1"" of type '" "wxCursor *""'");
10426 }
10427 arg1 = reinterpret_cast< wxCursor * >(argp1);
10428 ecode2 = SWIG_AsVal_int(obj1, &val2);
10429 if (!SWIG_IsOK(ecode2)) {
10430 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetWidth" "', expected argument " "2"" of type '" "int""'");
10431 }
10432 arg2 = static_cast< int >(val2);
10433 {
10434 PyThreadState* __tstate = wxPyBeginAllowThreads();
10435 (arg1)->SetWidth(arg2);
10436 wxPyEndAllowThreads(__tstate);
10437 if (PyErr_Occurred()) SWIG_fail;
10438 }
10439 resultobj = SWIG_Py_Void();
10440 return resultobj;
10441 fail:
10442 return NULL;
10443 }
10444
10445
10446 SWIGINTERN PyObject *_wrap_Cursor_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10447 PyObject *resultobj = 0;
10448 wxCursor *arg1 = (wxCursor *) 0 ;
10449 int arg2 ;
10450 void *argp1 = 0 ;
10451 int res1 = 0 ;
10452 int val2 ;
10453 int ecode2 = 0 ;
10454 PyObject * obj0 = 0 ;
10455 PyObject * obj1 = 0 ;
10456 char * kwnames[] = {
10457 (char *) "self",(char *) "h", NULL
10458 };
10459
10460 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
10461 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10462 if (!SWIG_IsOK(res1)) {
10463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetHeight" "', expected argument " "1"" of type '" "wxCursor *""'");
10464 }
10465 arg1 = reinterpret_cast< wxCursor * >(argp1);
10466 ecode2 = SWIG_AsVal_int(obj1, &val2);
10467 if (!SWIG_IsOK(ecode2)) {
10468 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetHeight" "', expected argument " "2"" of type '" "int""'");
10469 }
10470 arg2 = static_cast< int >(val2);
10471 {
10472 PyThreadState* __tstate = wxPyBeginAllowThreads();
10473 (arg1)->SetHeight(arg2);
10474 wxPyEndAllowThreads(__tstate);
10475 if (PyErr_Occurred()) SWIG_fail;
10476 }
10477 resultobj = SWIG_Py_Void();
10478 return resultobj;
10479 fail:
10480 return NULL;
10481 }
10482
10483
10484 SWIGINTERN PyObject *_wrap_Cursor_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10485 PyObject *resultobj = 0;
10486 wxCursor *arg1 = (wxCursor *) 0 ;
10487 int arg2 ;
10488 void *argp1 = 0 ;
10489 int res1 = 0 ;
10490 int val2 ;
10491 int ecode2 = 0 ;
10492 PyObject * obj0 = 0 ;
10493 PyObject * obj1 = 0 ;
10494 char * kwnames[] = {
10495 (char *) "self",(char *) "d", NULL
10496 };
10497
10498 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
10499 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10500 if (!SWIG_IsOK(res1)) {
10501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetDepth" "', expected argument " "1"" of type '" "wxCursor *""'");
10502 }
10503 arg1 = reinterpret_cast< wxCursor * >(argp1);
10504 ecode2 = SWIG_AsVal_int(obj1, &val2);
10505 if (!SWIG_IsOK(ecode2)) {
10506 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetDepth" "', expected argument " "2"" of type '" "int""'");
10507 }
10508 arg2 = static_cast< int >(val2);
10509 {
10510 PyThreadState* __tstate = wxPyBeginAllowThreads();
10511 (arg1)->SetDepth(arg2);
10512 wxPyEndAllowThreads(__tstate);
10513 if (PyErr_Occurred()) SWIG_fail;
10514 }
10515 resultobj = SWIG_Py_Void();
10516 return resultobj;
10517 fail:
10518 return NULL;
10519 }
10520
10521
10522 SWIGINTERN PyObject *_wrap_Cursor_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10523 PyObject *resultobj = 0;
10524 wxCursor *arg1 = (wxCursor *) 0 ;
10525 wxSize *arg2 = 0 ;
10526 void *argp1 = 0 ;
10527 int res1 = 0 ;
10528 wxSize temp2 ;
10529 PyObject * obj0 = 0 ;
10530 PyObject * obj1 = 0 ;
10531 char * kwnames[] = {
10532 (char *) "self",(char *) "size", NULL
10533 };
10534
10535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
10536 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10537 if (!SWIG_IsOK(res1)) {
10538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetSize" "', expected argument " "1"" of type '" "wxCursor *""'");
10539 }
10540 arg1 = reinterpret_cast< wxCursor * >(argp1);
10541 {
10542 arg2 = &temp2;
10543 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10544 }
10545 {
10546 PyThreadState* __tstate = wxPyBeginAllowThreads();
10547 (arg1)->SetSize((wxSize const &)*arg2);
10548 wxPyEndAllowThreads(__tstate);
10549 if (PyErr_Occurred()) SWIG_fail;
10550 }
10551 resultobj = SWIG_Py_Void();
10552 return resultobj;
10553 fail:
10554 return NULL;
10555 }
10556
10557
10558 SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10559 PyObject *obj;
10560 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10561 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
10562 return SWIG_Py_Void();
10563 }
10564
10565 SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10566 return SWIG_Python_InitShadowInstance(args);
10567 }
10568
10569 SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10570 PyObject *resultobj = 0;
10571 int arg1 = (int) 0 ;
10572 int arg2 = (int) 0 ;
10573 int arg3 = (int) 0 ;
10574 int arg4 = (int) 0 ;
10575 wxRegion *result = 0 ;
10576 int val1 ;
10577 int ecode1 = 0 ;
10578 int val2 ;
10579 int ecode2 = 0 ;
10580 int val3 ;
10581 int ecode3 = 0 ;
10582 int val4 ;
10583 int ecode4 = 0 ;
10584 PyObject * obj0 = 0 ;
10585 PyObject * obj1 = 0 ;
10586 PyObject * obj2 = 0 ;
10587 PyObject * obj3 = 0 ;
10588 char * kwnames[] = {
10589 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10590 };
10591
10592 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10593 if (obj0) {
10594 ecode1 = SWIG_AsVal_int(obj0, &val1);
10595 if (!SWIG_IsOK(ecode1)) {
10596 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
10597 }
10598 arg1 = static_cast< int >(val1);
10599 }
10600 if (obj1) {
10601 ecode2 = SWIG_AsVal_int(obj1, &val2);
10602 if (!SWIG_IsOK(ecode2)) {
10603 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
10604 }
10605 arg2 = static_cast< int >(val2);
10606 }
10607 if (obj2) {
10608 ecode3 = SWIG_AsVal_int(obj2, &val3);
10609 if (!SWIG_IsOK(ecode3)) {
10610 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
10611 }
10612 arg3 = static_cast< int >(val3);
10613 }
10614 if (obj3) {
10615 ecode4 = SWIG_AsVal_int(obj3, &val4);
10616 if (!SWIG_IsOK(ecode4)) {
10617 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
10618 }
10619 arg4 = static_cast< int >(val4);
10620 }
10621 {
10622 if (!wxPyCheckForApp()) SWIG_fail;
10623 PyThreadState* __tstate = wxPyBeginAllowThreads();
10624 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
10625 wxPyEndAllowThreads(__tstate);
10626 if (PyErr_Occurred()) SWIG_fail;
10627 }
10628 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
10629 return resultobj;
10630 fail:
10631 return NULL;
10632 }
10633
10634
10635 SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10636 PyObject *resultobj = 0;
10637 wxBitmap *arg1 = 0 ;
10638 wxRegion *result = 0 ;
10639 void *argp1 = 0 ;
10640 int res1 = 0 ;
10641 PyObject * obj0 = 0 ;
10642 char * kwnames[] = {
10643 (char *) "bmp", NULL
10644 };
10645
10646 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
10647 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10648 if (!SWIG_IsOK(res1)) {
10649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10650 }
10651 if (!argp1) {
10652 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10653 }
10654 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10655 {
10656 if (!wxPyCheckForApp()) SWIG_fail;
10657 PyThreadState* __tstate = wxPyBeginAllowThreads();
10658 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
10659 wxPyEndAllowThreads(__tstate);
10660 if (PyErr_Occurred()) SWIG_fail;
10661 }
10662 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10663 return resultobj;
10664 fail:
10665 return NULL;
10666 }
10667
10668
10669 SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10670 PyObject *resultobj = 0;
10671 wxBitmap *arg1 = 0 ;
10672 wxColour *arg2 = 0 ;
10673 int arg3 = (int) 0 ;
10674 wxRegion *result = 0 ;
10675 void *argp1 = 0 ;
10676 int res1 = 0 ;
10677 wxColour temp2 ;
10678 int val3 ;
10679 int ecode3 = 0 ;
10680 PyObject * obj0 = 0 ;
10681 PyObject * obj1 = 0 ;
10682 PyObject * obj2 = 0 ;
10683 char * kwnames[] = {
10684 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
10685 };
10686
10687 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10688 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10689 if (!SWIG_IsOK(res1)) {
10690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10691 }
10692 if (!argp1) {
10693 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10694 }
10695 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10696 {
10697 arg2 = &temp2;
10698 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10699 }
10700 if (obj2) {
10701 ecode3 = SWIG_AsVal_int(obj2, &val3);
10702 if (!SWIG_IsOK(ecode3)) {
10703 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
10704 }
10705 arg3 = static_cast< int >(val3);
10706 }
10707 {
10708 if (!wxPyCheckForApp()) SWIG_fail;
10709 PyThreadState* __tstate = wxPyBeginAllowThreads();
10710 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
10711 wxPyEndAllowThreads(__tstate);
10712 if (PyErr_Occurred()) SWIG_fail;
10713 }
10714 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10715 return resultobj;
10716 fail:
10717 return NULL;
10718 }
10719
10720
10721 SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10722 PyObject *resultobj = 0;
10723 int arg1 ;
10724 wxPoint *arg2 = (wxPoint *) 0 ;
10725 int arg3 = (int) wxWINDING_RULE ;
10726 wxRegion *result = 0 ;
10727 int val3 ;
10728 int ecode3 = 0 ;
10729 PyObject * obj0 = 0 ;
10730 PyObject * obj1 = 0 ;
10731 char * kwnames[] = {
10732 (char *) "points",(char *) "fillStyle", NULL
10733 };
10734
10735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
10736 {
10737 arg2 = wxPoint_LIST_helper(obj0, &arg1);
10738 if (arg2 == NULL) SWIG_fail;
10739 }
10740 if (obj1) {
10741 ecode3 = SWIG_AsVal_int(obj1, &val3);
10742 if (!SWIG_IsOK(ecode3)) {
10743 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
10744 }
10745 arg3 = static_cast< int >(val3);
10746 }
10747 {
10748 if (!wxPyCheckForApp()) SWIG_fail;
10749 PyThreadState* __tstate = wxPyBeginAllowThreads();
10750 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
10751 wxPyEndAllowThreads(__tstate);
10752 if (PyErr_Occurred()) SWIG_fail;
10753 }
10754 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10755 {
10756 if (arg2) delete [] arg2;
10757 }
10758 return resultobj;
10759 fail:
10760 {
10761 if (arg2) delete [] arg2;
10762 }
10763 return NULL;
10764 }
10765
10766
10767 SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10768 PyObject *resultobj = 0;
10769 wxRegion *arg1 = (wxRegion *) 0 ;
10770 void *argp1 = 0 ;
10771 int res1 = 0 ;
10772 PyObject *swig_obj[1] ;
10773
10774 if (!args) SWIG_fail;
10775 swig_obj[0] = args;
10776 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
10777 if (!SWIG_IsOK(res1)) {
10778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
10779 }
10780 arg1 = reinterpret_cast< wxRegion * >(argp1);
10781 {
10782 PyThreadState* __tstate = wxPyBeginAllowThreads();
10783 delete arg1;
10784
10785 wxPyEndAllowThreads(__tstate);
10786 if (PyErr_Occurred()) SWIG_fail;
10787 }
10788 resultobj = SWIG_Py_Void();
10789 return resultobj;
10790 fail:
10791 return NULL;
10792 }
10793
10794
10795 SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10796 PyObject *resultobj = 0;
10797 wxRegion *arg1 = (wxRegion *) 0 ;
10798 void *argp1 = 0 ;
10799 int res1 = 0 ;
10800 PyObject *swig_obj[1] ;
10801
10802 if (!args) SWIG_fail;
10803 swig_obj[0] = args;
10804 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10805 if (!SWIG_IsOK(res1)) {
10806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
10807 }
10808 arg1 = reinterpret_cast< wxRegion * >(argp1);
10809 {
10810 PyThreadState* __tstate = wxPyBeginAllowThreads();
10811 (arg1)->Clear();
10812 wxPyEndAllowThreads(__tstate);
10813 if (PyErr_Occurred()) SWIG_fail;
10814 }
10815 resultobj = SWIG_Py_Void();
10816 return resultobj;
10817 fail:
10818 return NULL;
10819 }
10820
10821
10822 SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10823 PyObject *resultobj = 0;
10824 wxRegion *arg1 = (wxRegion *) 0 ;
10825 int arg2 ;
10826 int arg3 ;
10827 bool result;
10828 void *argp1 = 0 ;
10829 int res1 = 0 ;
10830 int val2 ;
10831 int ecode2 = 0 ;
10832 int val3 ;
10833 int ecode3 = 0 ;
10834 PyObject * obj0 = 0 ;
10835 PyObject * obj1 = 0 ;
10836 PyObject * obj2 = 0 ;
10837 char * kwnames[] = {
10838 (char *) "self",(char *) "x",(char *) "y", NULL
10839 };
10840
10841 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10842 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10843 if (!SWIG_IsOK(res1)) {
10844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
10845 }
10846 arg1 = reinterpret_cast< wxRegion * >(argp1);
10847 ecode2 = SWIG_AsVal_int(obj1, &val2);
10848 if (!SWIG_IsOK(ecode2)) {
10849 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
10850 }
10851 arg2 = static_cast< int >(val2);
10852 ecode3 = SWIG_AsVal_int(obj2, &val3);
10853 if (!SWIG_IsOK(ecode3)) {
10854 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
10855 }
10856 arg3 = static_cast< int >(val3);
10857 {
10858 PyThreadState* __tstate = wxPyBeginAllowThreads();
10859 result = (bool)(arg1)->Offset(arg2,arg3);
10860 wxPyEndAllowThreads(__tstate);
10861 if (PyErr_Occurred()) SWIG_fail;
10862 }
10863 {
10864 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10865 }
10866 return resultobj;
10867 fail:
10868 return NULL;
10869 }
10870
10871
10872 SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10873 PyObject *resultobj = 0;
10874 wxRegion *arg1 = (wxRegion *) 0 ;
10875 int arg2 ;
10876 int arg3 ;
10877 wxRegionContain result;
10878 void *argp1 = 0 ;
10879 int res1 = 0 ;
10880 int val2 ;
10881 int ecode2 = 0 ;
10882 int val3 ;
10883 int ecode3 = 0 ;
10884 PyObject * obj0 = 0 ;
10885 PyObject * obj1 = 0 ;
10886 PyObject * obj2 = 0 ;
10887 char * kwnames[] = {
10888 (char *) "self",(char *) "x",(char *) "y", NULL
10889 };
10890
10891 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10892 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10893 if (!SWIG_IsOK(res1)) {
10894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
10895 }
10896 arg1 = reinterpret_cast< wxRegion * >(argp1);
10897 ecode2 = SWIG_AsVal_int(obj1, &val2);
10898 if (!SWIG_IsOK(ecode2)) {
10899 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
10900 }
10901 arg2 = static_cast< int >(val2);
10902 ecode3 = SWIG_AsVal_int(obj2, &val3);
10903 if (!SWIG_IsOK(ecode3)) {
10904 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
10905 }
10906 arg3 = static_cast< int >(val3);
10907 {
10908 PyThreadState* __tstate = wxPyBeginAllowThreads();
10909 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
10910 wxPyEndAllowThreads(__tstate);
10911 if (PyErr_Occurred()) SWIG_fail;
10912 }
10913 resultobj = SWIG_From_int(static_cast< int >(result));
10914 return resultobj;
10915 fail:
10916 return NULL;
10917 }
10918
10919
10920 SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10921 PyObject *resultobj = 0;
10922 wxRegion *arg1 = (wxRegion *) 0 ;
10923 wxPoint *arg2 = 0 ;
10924 wxRegionContain result;
10925 void *argp1 = 0 ;
10926 int res1 = 0 ;
10927 wxPoint temp2 ;
10928 PyObject * obj0 = 0 ;
10929 PyObject * obj1 = 0 ;
10930 char * kwnames[] = {
10931 (char *) "self",(char *) "pt", NULL
10932 };
10933
10934 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
10935 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10936 if (!SWIG_IsOK(res1)) {
10937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
10938 }
10939 arg1 = reinterpret_cast< wxRegion * >(argp1);
10940 {
10941 arg2 = &temp2;
10942 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10943 }
10944 {
10945 PyThreadState* __tstate = wxPyBeginAllowThreads();
10946 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
10947 wxPyEndAllowThreads(__tstate);
10948 if (PyErr_Occurred()) SWIG_fail;
10949 }
10950 resultobj = SWIG_From_int(static_cast< int >(result));
10951 return resultobj;
10952 fail:
10953 return NULL;
10954 }
10955
10956
10957 SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10958 PyObject *resultobj = 0;
10959 wxRegion *arg1 = (wxRegion *) 0 ;
10960 wxRect *arg2 = 0 ;
10961 wxRegionContain result;
10962 void *argp1 = 0 ;
10963 int res1 = 0 ;
10964 wxRect temp2 ;
10965 PyObject * obj0 = 0 ;
10966 PyObject * obj1 = 0 ;
10967 char * kwnames[] = {
10968 (char *) "self",(char *) "rect", NULL
10969 };
10970
10971 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
10972 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10973 if (!SWIG_IsOK(res1)) {
10974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10975 }
10976 arg1 = reinterpret_cast< wxRegion * >(argp1);
10977 {
10978 arg2 = &temp2;
10979 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10980 }
10981 {
10982 PyThreadState* __tstate = wxPyBeginAllowThreads();
10983 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
10984 wxPyEndAllowThreads(__tstate);
10985 if (PyErr_Occurred()) SWIG_fail;
10986 }
10987 resultobj = SWIG_From_int(static_cast< int >(result));
10988 return resultobj;
10989 fail:
10990 return NULL;
10991 }
10992
10993
10994 SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10995 PyObject *resultobj = 0;
10996 wxRegion *arg1 = (wxRegion *) 0 ;
10997 int arg2 ;
10998 int arg3 ;
10999 int arg4 ;
11000 int arg5 ;
11001 wxRegionContain result;
11002 void *argp1 = 0 ;
11003 int res1 = 0 ;
11004 int val2 ;
11005 int ecode2 = 0 ;
11006 int val3 ;
11007 int ecode3 = 0 ;
11008 int val4 ;
11009 int ecode4 = 0 ;
11010 int val5 ;
11011 int ecode5 = 0 ;
11012 PyObject * obj0 = 0 ;
11013 PyObject * obj1 = 0 ;
11014 PyObject * obj2 = 0 ;
11015 PyObject * obj3 = 0 ;
11016 PyObject * obj4 = 0 ;
11017 char * kwnames[] = {
11018 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
11019 };
11020
11021 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11022 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11023 if (!SWIG_IsOK(res1)) {
11024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
11025 }
11026 arg1 = reinterpret_cast< wxRegion * >(argp1);
11027 ecode2 = SWIG_AsVal_int(obj1, &val2);
11028 if (!SWIG_IsOK(ecode2)) {
11029 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
11030 }
11031 arg2 = static_cast< int >(val2);
11032 ecode3 = SWIG_AsVal_int(obj2, &val3);
11033 if (!SWIG_IsOK(ecode3)) {
11034 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
11035 }
11036 arg3 = static_cast< int >(val3);
11037 ecode4 = SWIG_AsVal_int(obj3, &val4);
11038 if (!SWIG_IsOK(ecode4)) {
11039 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
11040 }
11041 arg4 = static_cast< int >(val4);
11042 ecode5 = SWIG_AsVal_int(obj4, &val5);
11043 if (!SWIG_IsOK(ecode5)) {
11044 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
11045 }
11046 arg5 = static_cast< int >(val5);
11047 {
11048 PyThreadState* __tstate = wxPyBeginAllowThreads();
11049 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
11050 wxPyEndAllowThreads(__tstate);
11051 if (PyErr_Occurred()) SWIG_fail;
11052 }
11053 resultobj = SWIG_From_int(static_cast< int >(result));
11054 return resultobj;
11055 fail:
11056 return NULL;
11057 }
11058
11059
11060 SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11061 PyObject *resultobj = 0;
11062 wxRegion *arg1 = (wxRegion *) 0 ;
11063 wxRect result;
11064 void *argp1 = 0 ;
11065 int res1 = 0 ;
11066 PyObject *swig_obj[1] ;
11067
11068 if (!args) SWIG_fail;
11069 swig_obj[0] = args;
11070 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11071 if (!SWIG_IsOK(res1)) {
11072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
11073 }
11074 arg1 = reinterpret_cast< wxRegion * >(argp1);
11075 {
11076 PyThreadState* __tstate = wxPyBeginAllowThreads();
11077 result = (arg1)->GetBox();
11078 wxPyEndAllowThreads(__tstate);
11079 if (PyErr_Occurred()) SWIG_fail;
11080 }
11081 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
11082 return resultobj;
11083 fail:
11084 return NULL;
11085 }
11086
11087
11088 SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11089 PyObject *resultobj = 0;
11090 wxRegion *arg1 = (wxRegion *) 0 ;
11091 int arg2 ;
11092 int arg3 ;
11093 int arg4 ;
11094 int arg5 ;
11095 bool result;
11096 void *argp1 = 0 ;
11097 int res1 = 0 ;
11098 int val2 ;
11099 int ecode2 = 0 ;
11100 int val3 ;
11101 int ecode3 = 0 ;
11102 int val4 ;
11103 int ecode4 = 0 ;
11104 int val5 ;
11105 int ecode5 = 0 ;
11106 PyObject * obj0 = 0 ;
11107 PyObject * obj1 = 0 ;
11108 PyObject * obj2 = 0 ;
11109 PyObject * obj3 = 0 ;
11110 PyObject * obj4 = 0 ;
11111 char * kwnames[] = {
11112 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11113 };
11114
11115 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11116 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11117 if (!SWIG_IsOK(res1)) {
11118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
11119 }
11120 arg1 = reinterpret_cast< wxRegion * >(argp1);
11121 ecode2 = SWIG_AsVal_int(obj1, &val2);
11122 if (!SWIG_IsOK(ecode2)) {
11123 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
11124 }
11125 arg2 = static_cast< int >(val2);
11126 ecode3 = SWIG_AsVal_int(obj2, &val3);
11127 if (!SWIG_IsOK(ecode3)) {
11128 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
11129 }
11130 arg3 = static_cast< int >(val3);
11131 ecode4 = SWIG_AsVal_int(obj3, &val4);
11132 if (!SWIG_IsOK(ecode4)) {
11133 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
11134 }
11135 arg4 = static_cast< int >(val4);
11136 ecode5 = SWIG_AsVal_int(obj4, &val5);
11137 if (!SWIG_IsOK(ecode5)) {
11138 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
11139 }
11140 arg5 = static_cast< int >(val5);
11141 {
11142 PyThreadState* __tstate = wxPyBeginAllowThreads();
11143 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
11144 wxPyEndAllowThreads(__tstate);
11145 if (PyErr_Occurred()) SWIG_fail;
11146 }
11147 {
11148 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11149 }
11150 return resultobj;
11151 fail:
11152 return NULL;
11153 }
11154
11155
11156 SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11157 PyObject *resultobj = 0;
11158 wxRegion *arg1 = (wxRegion *) 0 ;
11159 wxRect *arg2 = 0 ;
11160 bool result;
11161 void *argp1 = 0 ;
11162 int res1 = 0 ;
11163 wxRect temp2 ;
11164 PyObject * obj0 = 0 ;
11165 PyObject * obj1 = 0 ;
11166 char * kwnames[] = {
11167 (char *) "self",(char *) "rect", NULL
11168 };
11169
11170 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
11171 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11172 if (!SWIG_IsOK(res1)) {
11173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11174 }
11175 arg1 = reinterpret_cast< wxRegion * >(argp1);
11176 {
11177 arg2 = &temp2;
11178 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11179 }
11180 {
11181 PyThreadState* __tstate = wxPyBeginAllowThreads();
11182 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
11183 wxPyEndAllowThreads(__tstate);
11184 if (PyErr_Occurred()) SWIG_fail;
11185 }
11186 {
11187 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11188 }
11189 return resultobj;
11190 fail:
11191 return NULL;
11192 }
11193
11194
11195 SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11196 PyObject *resultobj = 0;
11197 wxRegion *arg1 = (wxRegion *) 0 ;
11198 wxRegion *arg2 = 0 ;
11199 bool result;
11200 void *argp1 = 0 ;
11201 int res1 = 0 ;
11202 void *argp2 = 0 ;
11203 int res2 = 0 ;
11204 PyObject * obj0 = 0 ;
11205 PyObject * obj1 = 0 ;
11206 char * kwnames[] = {
11207 (char *) "self",(char *) "region", NULL
11208 };
11209
11210 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11211 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11212 if (!SWIG_IsOK(res1)) {
11213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11214 }
11215 arg1 = reinterpret_cast< wxRegion * >(argp1);
11216 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11217 if (!SWIG_IsOK(res2)) {
11218 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11219 }
11220 if (!argp2) {
11221 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11222 }
11223 arg2 = reinterpret_cast< wxRegion * >(argp2);
11224 {
11225 PyThreadState* __tstate = wxPyBeginAllowThreads();
11226 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
11227 wxPyEndAllowThreads(__tstate);
11228 if (PyErr_Occurred()) SWIG_fail;
11229 }
11230 {
11231 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11232 }
11233 return resultobj;
11234 fail:
11235 return NULL;
11236 }
11237
11238
11239 SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11240 PyObject *resultobj = 0;
11241 wxRegion *arg1 = (wxRegion *) 0 ;
11242 bool result;
11243 void *argp1 = 0 ;
11244 int res1 = 0 ;
11245 PyObject *swig_obj[1] ;
11246
11247 if (!args) SWIG_fail;
11248 swig_obj[0] = args;
11249 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11250 if (!SWIG_IsOK(res1)) {
11251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
11252 }
11253 arg1 = reinterpret_cast< wxRegion * >(argp1);
11254 {
11255 PyThreadState* __tstate = wxPyBeginAllowThreads();
11256 result = (bool)(arg1)->IsEmpty();
11257 wxPyEndAllowThreads(__tstate);
11258 if (PyErr_Occurred()) SWIG_fail;
11259 }
11260 {
11261 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11262 }
11263 return resultobj;
11264 fail:
11265 return NULL;
11266 }
11267
11268
11269 SWIGINTERN PyObject *_wrap_Region_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11270 PyObject *resultobj = 0;
11271 wxRegion *arg1 = (wxRegion *) 0 ;
11272 wxRegion *arg2 = 0 ;
11273 bool result;
11274 void *argp1 = 0 ;
11275 int res1 = 0 ;
11276 void *argp2 = 0 ;
11277 int res2 = 0 ;
11278 PyObject * obj0 = 0 ;
11279 PyObject * obj1 = 0 ;
11280 char * kwnames[] = {
11281 (char *) "self",(char *) "region", NULL
11282 };
11283
11284 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
11285 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11286 if (!SWIG_IsOK(res1)) {
11287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEqual" "', expected argument " "1"" of type '" "wxRegion const *""'");
11288 }
11289 arg1 = reinterpret_cast< wxRegion * >(argp1);
11290 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11291 if (!SWIG_IsOK(res2)) {
11292 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11293 }
11294 if (!argp2) {
11295 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11296 }
11297 arg2 = reinterpret_cast< wxRegion * >(argp2);
11298 {
11299 PyThreadState* __tstate = wxPyBeginAllowThreads();
11300 result = (bool)((wxRegion const *)arg1)->IsEqual((wxRegion const &)*arg2);
11301 wxPyEndAllowThreads(__tstate);
11302 if (PyErr_Occurred()) SWIG_fail;
11303 }
11304 {
11305 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11306 }
11307 return resultobj;
11308 fail:
11309 return NULL;
11310 }
11311
11312
11313 SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11314 PyObject *resultobj = 0;
11315 wxRegion *arg1 = (wxRegion *) 0 ;
11316 int arg2 ;
11317 int arg3 ;
11318 int arg4 ;
11319 int arg5 ;
11320 bool result;
11321 void *argp1 = 0 ;
11322 int res1 = 0 ;
11323 int val2 ;
11324 int ecode2 = 0 ;
11325 int val3 ;
11326 int ecode3 = 0 ;
11327 int val4 ;
11328 int ecode4 = 0 ;
11329 int val5 ;
11330 int ecode5 = 0 ;
11331 PyObject * obj0 = 0 ;
11332 PyObject * obj1 = 0 ;
11333 PyObject * obj2 = 0 ;
11334 PyObject * obj3 = 0 ;
11335 PyObject * obj4 = 0 ;
11336 char * kwnames[] = {
11337 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11338 };
11339
11340 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11341 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11342 if (!SWIG_IsOK(res1)) {
11343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
11344 }
11345 arg1 = reinterpret_cast< wxRegion * >(argp1);
11346 ecode2 = SWIG_AsVal_int(obj1, &val2);
11347 if (!SWIG_IsOK(ecode2)) {
11348 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
11349 }
11350 arg2 = static_cast< int >(val2);
11351 ecode3 = SWIG_AsVal_int(obj2, &val3);
11352 if (!SWIG_IsOK(ecode3)) {
11353 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
11354 }
11355 arg3 = static_cast< int >(val3);
11356 ecode4 = SWIG_AsVal_int(obj3, &val4);
11357 if (!SWIG_IsOK(ecode4)) {
11358 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
11359 }
11360 arg4 = static_cast< int >(val4);
11361 ecode5 = SWIG_AsVal_int(obj4, &val5);
11362 if (!SWIG_IsOK(ecode5)) {
11363 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
11364 }
11365 arg5 = static_cast< int >(val5);
11366 {
11367 PyThreadState* __tstate = wxPyBeginAllowThreads();
11368 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
11369 wxPyEndAllowThreads(__tstate);
11370 if (PyErr_Occurred()) SWIG_fail;
11371 }
11372 {
11373 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11374 }
11375 return resultobj;
11376 fail:
11377 return NULL;
11378 }
11379
11380
11381 SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11382 PyObject *resultobj = 0;
11383 wxRegion *arg1 = (wxRegion *) 0 ;
11384 wxRect *arg2 = 0 ;
11385 bool result;
11386 void *argp1 = 0 ;
11387 int res1 = 0 ;
11388 wxRect temp2 ;
11389 PyObject * obj0 = 0 ;
11390 PyObject * obj1 = 0 ;
11391 char * kwnames[] = {
11392 (char *) "self",(char *) "rect", NULL
11393 };
11394
11395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
11396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11397 if (!SWIG_IsOK(res1)) {
11398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11399 }
11400 arg1 = reinterpret_cast< wxRegion * >(argp1);
11401 {
11402 arg2 = &temp2;
11403 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11404 }
11405 {
11406 PyThreadState* __tstate = wxPyBeginAllowThreads();
11407 result = (bool)(arg1)->Union((wxRect const &)*arg2);
11408 wxPyEndAllowThreads(__tstate);
11409 if (PyErr_Occurred()) SWIG_fail;
11410 }
11411 {
11412 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11413 }
11414 return resultobj;
11415 fail:
11416 return NULL;
11417 }
11418
11419
11420 SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11421 PyObject *resultobj = 0;
11422 wxRegion *arg1 = (wxRegion *) 0 ;
11423 wxRegion *arg2 = 0 ;
11424 bool result;
11425 void *argp1 = 0 ;
11426 int res1 = 0 ;
11427 void *argp2 = 0 ;
11428 int res2 = 0 ;
11429 PyObject * obj0 = 0 ;
11430 PyObject * obj1 = 0 ;
11431 char * kwnames[] = {
11432 (char *) "self",(char *) "region", NULL
11433 };
11434
11435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11436 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11437 if (!SWIG_IsOK(res1)) {
11438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11439 }
11440 arg1 = reinterpret_cast< wxRegion * >(argp1);
11441 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11442 if (!SWIG_IsOK(res2)) {
11443 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11444 }
11445 if (!argp2) {
11446 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11447 }
11448 arg2 = reinterpret_cast< wxRegion * >(argp2);
11449 {
11450 PyThreadState* __tstate = wxPyBeginAllowThreads();
11451 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
11452 wxPyEndAllowThreads(__tstate);
11453 if (PyErr_Occurred()) SWIG_fail;
11454 }
11455 {
11456 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11457 }
11458 return resultobj;
11459 fail:
11460 return NULL;
11461 }
11462
11463
11464 SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11465 PyObject *resultobj = 0;
11466 wxRegion *arg1 = (wxRegion *) 0 ;
11467 int arg2 ;
11468 int arg3 ;
11469 int arg4 ;
11470 int arg5 ;
11471 bool result;
11472 void *argp1 = 0 ;
11473 int res1 = 0 ;
11474 int val2 ;
11475 int ecode2 = 0 ;
11476 int val3 ;
11477 int ecode3 = 0 ;
11478 int val4 ;
11479 int ecode4 = 0 ;
11480 int val5 ;
11481 int ecode5 = 0 ;
11482 PyObject * obj0 = 0 ;
11483 PyObject * obj1 = 0 ;
11484 PyObject * obj2 = 0 ;
11485 PyObject * obj3 = 0 ;
11486 PyObject * obj4 = 0 ;
11487 char * kwnames[] = {
11488 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11489 };
11490
11491 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11492 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11493 if (!SWIG_IsOK(res1)) {
11494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
11495 }
11496 arg1 = reinterpret_cast< wxRegion * >(argp1);
11497 ecode2 = SWIG_AsVal_int(obj1, &val2);
11498 if (!SWIG_IsOK(ecode2)) {
11499 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
11500 }
11501 arg2 = static_cast< int >(val2);
11502 ecode3 = SWIG_AsVal_int(obj2, &val3);
11503 if (!SWIG_IsOK(ecode3)) {
11504 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
11505 }
11506 arg3 = static_cast< int >(val3);
11507 ecode4 = SWIG_AsVal_int(obj3, &val4);
11508 if (!SWIG_IsOK(ecode4)) {
11509 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
11510 }
11511 arg4 = static_cast< int >(val4);
11512 ecode5 = SWIG_AsVal_int(obj4, &val5);
11513 if (!SWIG_IsOK(ecode5)) {
11514 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
11515 }
11516 arg5 = static_cast< int >(val5);
11517 {
11518 PyThreadState* __tstate = wxPyBeginAllowThreads();
11519 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
11520 wxPyEndAllowThreads(__tstate);
11521 if (PyErr_Occurred()) SWIG_fail;
11522 }
11523 {
11524 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11525 }
11526 return resultobj;
11527 fail:
11528 return NULL;
11529 }
11530
11531
11532 SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11533 PyObject *resultobj = 0;
11534 wxRegion *arg1 = (wxRegion *) 0 ;
11535 wxRect *arg2 = 0 ;
11536 bool result;
11537 void *argp1 = 0 ;
11538 int res1 = 0 ;
11539 wxRect temp2 ;
11540 PyObject * obj0 = 0 ;
11541 PyObject * obj1 = 0 ;
11542 char * kwnames[] = {
11543 (char *) "self",(char *) "rect", NULL
11544 };
11545
11546 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
11547 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11548 if (!SWIG_IsOK(res1)) {
11549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11550 }
11551 arg1 = reinterpret_cast< wxRegion * >(argp1);
11552 {
11553 arg2 = &temp2;
11554 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11555 }
11556 {
11557 PyThreadState* __tstate = wxPyBeginAllowThreads();
11558 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
11559 wxPyEndAllowThreads(__tstate);
11560 if (PyErr_Occurred()) SWIG_fail;
11561 }
11562 {
11563 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11564 }
11565 return resultobj;
11566 fail:
11567 return NULL;
11568 }
11569
11570
11571 SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11572 PyObject *resultobj = 0;
11573 wxRegion *arg1 = (wxRegion *) 0 ;
11574 wxRegion *arg2 = 0 ;
11575 bool result;
11576 void *argp1 = 0 ;
11577 int res1 = 0 ;
11578 void *argp2 = 0 ;
11579 int res2 = 0 ;
11580 PyObject * obj0 = 0 ;
11581 PyObject * obj1 = 0 ;
11582 char * kwnames[] = {
11583 (char *) "self",(char *) "region", NULL
11584 };
11585
11586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11587 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11588 if (!SWIG_IsOK(res1)) {
11589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11590 }
11591 arg1 = reinterpret_cast< wxRegion * >(argp1);
11592 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11593 if (!SWIG_IsOK(res2)) {
11594 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11595 }
11596 if (!argp2) {
11597 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11598 }
11599 arg2 = reinterpret_cast< wxRegion * >(argp2);
11600 {
11601 PyThreadState* __tstate = wxPyBeginAllowThreads();
11602 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
11603 wxPyEndAllowThreads(__tstate);
11604 if (PyErr_Occurred()) SWIG_fail;
11605 }
11606 {
11607 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11608 }
11609 return resultobj;
11610 fail:
11611 return NULL;
11612 }
11613
11614
11615 SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11616 PyObject *resultobj = 0;
11617 wxRegion *arg1 = (wxRegion *) 0 ;
11618 int arg2 ;
11619 int arg3 ;
11620 int arg4 ;
11621 int arg5 ;
11622 bool result;
11623 void *argp1 = 0 ;
11624 int res1 = 0 ;
11625 int val2 ;
11626 int ecode2 = 0 ;
11627 int val3 ;
11628 int ecode3 = 0 ;
11629 int val4 ;
11630 int ecode4 = 0 ;
11631 int val5 ;
11632 int ecode5 = 0 ;
11633 PyObject * obj0 = 0 ;
11634 PyObject * obj1 = 0 ;
11635 PyObject * obj2 = 0 ;
11636 PyObject * obj3 = 0 ;
11637 PyObject * obj4 = 0 ;
11638 char * kwnames[] = {
11639 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11640 };
11641
11642 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11643 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11644 if (!SWIG_IsOK(res1)) {
11645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
11646 }
11647 arg1 = reinterpret_cast< wxRegion * >(argp1);
11648 ecode2 = SWIG_AsVal_int(obj1, &val2);
11649 if (!SWIG_IsOK(ecode2)) {
11650 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
11651 }
11652 arg2 = static_cast< int >(val2);
11653 ecode3 = SWIG_AsVal_int(obj2, &val3);
11654 if (!SWIG_IsOK(ecode3)) {
11655 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
11656 }
11657 arg3 = static_cast< int >(val3);
11658 ecode4 = SWIG_AsVal_int(obj3, &val4);
11659 if (!SWIG_IsOK(ecode4)) {
11660 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
11661 }
11662 arg4 = static_cast< int >(val4);
11663 ecode5 = SWIG_AsVal_int(obj4, &val5);
11664 if (!SWIG_IsOK(ecode5)) {
11665 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
11666 }
11667 arg5 = static_cast< int >(val5);
11668 {
11669 PyThreadState* __tstate = wxPyBeginAllowThreads();
11670 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
11671 wxPyEndAllowThreads(__tstate);
11672 if (PyErr_Occurred()) SWIG_fail;
11673 }
11674 {
11675 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11676 }
11677 return resultobj;
11678 fail:
11679 return NULL;
11680 }
11681
11682
11683 SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11684 PyObject *resultobj = 0;
11685 wxRegion *arg1 = (wxRegion *) 0 ;
11686 wxRect *arg2 = 0 ;
11687 bool result;
11688 void *argp1 = 0 ;
11689 int res1 = 0 ;
11690 wxRect temp2 ;
11691 PyObject * obj0 = 0 ;
11692 PyObject * obj1 = 0 ;
11693 char * kwnames[] = {
11694 (char *) "self",(char *) "rect", NULL
11695 };
11696
11697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
11698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11699 if (!SWIG_IsOK(res1)) {
11700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11701 }
11702 arg1 = reinterpret_cast< wxRegion * >(argp1);
11703 {
11704 arg2 = &temp2;
11705 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11706 }
11707 {
11708 PyThreadState* __tstate = wxPyBeginAllowThreads();
11709 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
11710 wxPyEndAllowThreads(__tstate);
11711 if (PyErr_Occurred()) SWIG_fail;
11712 }
11713 {
11714 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11715 }
11716 return resultobj;
11717 fail:
11718 return NULL;
11719 }
11720
11721
11722 SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11723 PyObject *resultobj = 0;
11724 wxRegion *arg1 = (wxRegion *) 0 ;
11725 wxRegion *arg2 = 0 ;
11726 bool result;
11727 void *argp1 = 0 ;
11728 int res1 = 0 ;
11729 void *argp2 = 0 ;
11730 int res2 = 0 ;
11731 PyObject * obj0 = 0 ;
11732 PyObject * obj1 = 0 ;
11733 char * kwnames[] = {
11734 (char *) "self",(char *) "region", NULL
11735 };
11736
11737 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11738 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11739 if (!SWIG_IsOK(res1)) {
11740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11741 }
11742 arg1 = reinterpret_cast< wxRegion * >(argp1);
11743 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11744 if (!SWIG_IsOK(res2)) {
11745 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11746 }
11747 if (!argp2) {
11748 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11749 }
11750 arg2 = reinterpret_cast< wxRegion * >(argp2);
11751 {
11752 PyThreadState* __tstate = wxPyBeginAllowThreads();
11753 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
11754 wxPyEndAllowThreads(__tstate);
11755 if (PyErr_Occurred()) SWIG_fail;
11756 }
11757 {
11758 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11759 }
11760 return resultobj;
11761 fail:
11762 return NULL;
11763 }
11764
11765
11766 SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11767 PyObject *resultobj = 0;
11768 wxRegion *arg1 = (wxRegion *) 0 ;
11769 SwigValueWrapper<wxBitmap > result;
11770 void *argp1 = 0 ;
11771 int res1 = 0 ;
11772 PyObject *swig_obj[1] ;
11773
11774 if (!args) SWIG_fail;
11775 swig_obj[0] = args;
11776 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11777 if (!SWIG_IsOK(res1)) {
11778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11779 }
11780 arg1 = reinterpret_cast< wxRegion * >(argp1);
11781 {
11782 PyThreadState* __tstate = wxPyBeginAllowThreads();
11783 result = (arg1)->ConvertToBitmap();
11784 wxPyEndAllowThreads(__tstate);
11785 if (PyErr_Occurred()) SWIG_fail;
11786 }
11787 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
11788 return resultobj;
11789 fail:
11790 return NULL;
11791 }
11792
11793
11794 SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11795 PyObject *resultobj = 0;
11796 wxRegion *arg1 = (wxRegion *) 0 ;
11797 wxBitmap *arg2 = 0 ;
11798 bool result;
11799 void *argp1 = 0 ;
11800 int res1 = 0 ;
11801 void *argp2 = 0 ;
11802 int res2 = 0 ;
11803 PyObject * obj0 = 0 ;
11804 PyObject * obj1 = 0 ;
11805 char * kwnames[] = {
11806 (char *) "self",(char *) "bmp", NULL
11807 };
11808
11809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
11810 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11811 if (!SWIG_IsOK(res1)) {
11812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11813 }
11814 arg1 = reinterpret_cast< wxRegion * >(argp1);
11815 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11816 if (!SWIG_IsOK(res2)) {
11817 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11818 }
11819 if (!argp2) {
11820 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11821 }
11822 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11823 {
11824 PyThreadState* __tstate = wxPyBeginAllowThreads();
11825 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
11826 wxPyEndAllowThreads(__tstate);
11827 if (PyErr_Occurred()) SWIG_fail;
11828 }
11829 {
11830 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11831 }
11832 return resultobj;
11833 fail:
11834 return NULL;
11835 }
11836
11837
11838 SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11839 PyObject *resultobj = 0;
11840 wxRegion *arg1 = (wxRegion *) 0 ;
11841 wxBitmap *arg2 = 0 ;
11842 wxColour *arg3 = 0 ;
11843 int arg4 = (int) 0 ;
11844 bool result;
11845 void *argp1 = 0 ;
11846 int res1 = 0 ;
11847 void *argp2 = 0 ;
11848 int res2 = 0 ;
11849 wxColour temp3 ;
11850 int val4 ;
11851 int ecode4 = 0 ;
11852 PyObject * obj0 = 0 ;
11853 PyObject * obj1 = 0 ;
11854 PyObject * obj2 = 0 ;
11855 PyObject * obj3 = 0 ;
11856 char * kwnames[] = {
11857 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
11858 };
11859
11860 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
11861 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11862 if (!SWIG_IsOK(res1)) {
11863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
11864 }
11865 arg1 = reinterpret_cast< wxRegion * >(argp1);
11866 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11867 if (!SWIG_IsOK(res2)) {
11868 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11869 }
11870 if (!argp2) {
11871 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11872 }
11873 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11874 {
11875 arg3 = &temp3;
11876 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
11877 }
11878 if (obj3) {
11879 ecode4 = SWIG_AsVal_int(obj3, &val4);
11880 if (!SWIG_IsOK(ecode4)) {
11881 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
11882 }
11883 arg4 = static_cast< int >(val4);
11884 }
11885 {
11886 PyThreadState* __tstate = wxPyBeginAllowThreads();
11887 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
11888 wxPyEndAllowThreads(__tstate);
11889 if (PyErr_Occurred()) SWIG_fail;
11890 }
11891 {
11892 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11893 }
11894 return resultobj;
11895 fail:
11896 return NULL;
11897 }
11898
11899
11900 SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11901 PyObject *obj;
11902 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11903 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
11904 return SWIG_Py_Void();
11905 }
11906
11907 SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11908 return SWIG_Python_InitShadowInstance(args);
11909 }
11910
11911 SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11912 PyObject *resultobj = 0;
11913 wxRegion *arg1 = 0 ;
11914 wxRegionIterator *result = 0 ;
11915 void *argp1 = 0 ;
11916 int res1 = 0 ;
11917 PyObject * obj0 = 0 ;
11918 char * kwnames[] = {
11919 (char *) "region", NULL
11920 };
11921
11922 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
11923 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
11924 if (!SWIG_IsOK(res1)) {
11925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11926 }
11927 if (!argp1) {
11928 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11929 }
11930 arg1 = reinterpret_cast< wxRegion * >(argp1);
11931 {
11932 if (!wxPyCheckForApp()) SWIG_fail;
11933 PyThreadState* __tstate = wxPyBeginAllowThreads();
11934 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
11935 wxPyEndAllowThreads(__tstate);
11936 if (PyErr_Occurred()) SWIG_fail;
11937 }
11938 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
11939 return resultobj;
11940 fail:
11941 return NULL;
11942 }
11943
11944
11945 SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11946 PyObject *resultobj = 0;
11947 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11948 void *argp1 = 0 ;
11949 int res1 = 0 ;
11950 PyObject *swig_obj[1] ;
11951
11952 if (!args) SWIG_fail;
11953 swig_obj[0] = args;
11954 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
11955 if (!SWIG_IsOK(res1)) {
11956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11957 }
11958 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11959 {
11960 PyThreadState* __tstate = wxPyBeginAllowThreads();
11961 delete arg1;
11962
11963 wxPyEndAllowThreads(__tstate);
11964 if (PyErr_Occurred()) SWIG_fail;
11965 }
11966 resultobj = SWIG_Py_Void();
11967 return resultobj;
11968 fail:
11969 return NULL;
11970 }
11971
11972
11973 SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11974 PyObject *resultobj = 0;
11975 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11976 int result;
11977 void *argp1 = 0 ;
11978 int res1 = 0 ;
11979 PyObject *swig_obj[1] ;
11980
11981 if (!args) SWIG_fail;
11982 swig_obj[0] = args;
11983 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11984 if (!SWIG_IsOK(res1)) {
11985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11986 }
11987 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11988 {
11989 PyThreadState* __tstate = wxPyBeginAllowThreads();
11990 result = (int)(arg1)->GetX();
11991 wxPyEndAllowThreads(__tstate);
11992 if (PyErr_Occurred()) SWIG_fail;
11993 }
11994 resultobj = SWIG_From_int(static_cast< int >(result));
11995 return resultobj;
11996 fail:
11997 return NULL;
11998 }
11999
12000
12001 SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12002 PyObject *resultobj = 0;
12003 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12004 int result;
12005 void *argp1 = 0 ;
12006 int res1 = 0 ;
12007 PyObject *swig_obj[1] ;
12008
12009 if (!args) SWIG_fail;
12010 swig_obj[0] = args;
12011 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12012 if (!SWIG_IsOK(res1)) {
12013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12014 }
12015 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12016 {
12017 PyThreadState* __tstate = wxPyBeginAllowThreads();
12018 result = (int)(arg1)->GetY();
12019 wxPyEndAllowThreads(__tstate);
12020 if (PyErr_Occurred()) SWIG_fail;
12021 }
12022 resultobj = SWIG_From_int(static_cast< int >(result));
12023 return resultobj;
12024 fail:
12025 return NULL;
12026 }
12027
12028
12029 SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12030 PyObject *resultobj = 0;
12031 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12032 int result;
12033 void *argp1 = 0 ;
12034 int res1 = 0 ;
12035 PyObject *swig_obj[1] ;
12036
12037 if (!args) SWIG_fail;
12038 swig_obj[0] = args;
12039 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12040 if (!SWIG_IsOK(res1)) {
12041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12042 }
12043 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12044 {
12045 PyThreadState* __tstate = wxPyBeginAllowThreads();
12046 result = (int)(arg1)->GetW();
12047 wxPyEndAllowThreads(__tstate);
12048 if (PyErr_Occurred()) SWIG_fail;
12049 }
12050 resultobj = SWIG_From_int(static_cast< int >(result));
12051 return resultobj;
12052 fail:
12053 return NULL;
12054 }
12055
12056
12057 SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12058 PyObject *resultobj = 0;
12059 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12060 int result;
12061 void *argp1 = 0 ;
12062 int res1 = 0 ;
12063 PyObject *swig_obj[1] ;
12064
12065 if (!args) SWIG_fail;
12066 swig_obj[0] = args;
12067 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12068 if (!SWIG_IsOK(res1)) {
12069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12070 }
12071 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12072 {
12073 PyThreadState* __tstate = wxPyBeginAllowThreads();
12074 result = (int)(arg1)->GetWidth();
12075 wxPyEndAllowThreads(__tstate);
12076 if (PyErr_Occurred()) SWIG_fail;
12077 }
12078 resultobj = SWIG_From_int(static_cast< int >(result));
12079 return resultobj;
12080 fail:
12081 return NULL;
12082 }
12083
12084
12085 SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12086 PyObject *resultobj = 0;
12087 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12088 int result;
12089 void *argp1 = 0 ;
12090 int res1 = 0 ;
12091 PyObject *swig_obj[1] ;
12092
12093 if (!args) SWIG_fail;
12094 swig_obj[0] = args;
12095 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12096 if (!SWIG_IsOK(res1)) {
12097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12098 }
12099 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12100 {
12101 PyThreadState* __tstate = wxPyBeginAllowThreads();
12102 result = (int)(arg1)->GetH();
12103 wxPyEndAllowThreads(__tstate);
12104 if (PyErr_Occurred()) SWIG_fail;
12105 }
12106 resultobj = SWIG_From_int(static_cast< int >(result));
12107 return resultobj;
12108 fail:
12109 return NULL;
12110 }
12111
12112
12113 SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12114 PyObject *resultobj = 0;
12115 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12116 int result;
12117 void *argp1 = 0 ;
12118 int res1 = 0 ;
12119 PyObject *swig_obj[1] ;
12120
12121 if (!args) SWIG_fail;
12122 swig_obj[0] = args;
12123 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12124 if (!SWIG_IsOK(res1)) {
12125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12126 }
12127 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12128 {
12129 PyThreadState* __tstate = wxPyBeginAllowThreads();
12130 result = (int)(arg1)->GetHeight();
12131 wxPyEndAllowThreads(__tstate);
12132 if (PyErr_Occurred()) SWIG_fail;
12133 }
12134 resultobj = SWIG_From_int(static_cast< int >(result));
12135 return resultobj;
12136 fail:
12137 return NULL;
12138 }
12139
12140
12141 SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12142 PyObject *resultobj = 0;
12143 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12144 wxRect result;
12145 void *argp1 = 0 ;
12146 int res1 = 0 ;
12147 PyObject *swig_obj[1] ;
12148
12149 if (!args) SWIG_fail;
12150 swig_obj[0] = args;
12151 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12152 if (!SWIG_IsOK(res1)) {
12153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12154 }
12155 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12156 {
12157 PyThreadState* __tstate = wxPyBeginAllowThreads();
12158 result = (arg1)->GetRect();
12159 wxPyEndAllowThreads(__tstate);
12160 if (PyErr_Occurred()) SWIG_fail;
12161 }
12162 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
12163 return resultobj;
12164 fail:
12165 return NULL;
12166 }
12167
12168
12169 SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12170 PyObject *resultobj = 0;
12171 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12172 bool result;
12173 void *argp1 = 0 ;
12174 int res1 = 0 ;
12175 PyObject *swig_obj[1] ;
12176
12177 if (!args) SWIG_fail;
12178 swig_obj[0] = args;
12179 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12180 if (!SWIG_IsOK(res1)) {
12181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12182 }
12183 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12184 {
12185 PyThreadState* __tstate = wxPyBeginAllowThreads();
12186 result = (bool)(arg1)->HaveRects();
12187 wxPyEndAllowThreads(__tstate);
12188 if (PyErr_Occurred()) SWIG_fail;
12189 }
12190 {
12191 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12192 }
12193 return resultobj;
12194 fail:
12195 return NULL;
12196 }
12197
12198
12199 SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12200 PyObject *resultobj = 0;
12201 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12202 void *argp1 = 0 ;
12203 int res1 = 0 ;
12204 PyObject *swig_obj[1] ;
12205
12206 if (!args) SWIG_fail;
12207 swig_obj[0] = args;
12208 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12209 if (!SWIG_IsOK(res1)) {
12210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12211 }
12212 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12213 {
12214 PyThreadState* __tstate = wxPyBeginAllowThreads();
12215 (arg1)->Reset();
12216 wxPyEndAllowThreads(__tstate);
12217 if (PyErr_Occurred()) SWIG_fail;
12218 }
12219 resultobj = SWIG_Py_Void();
12220 return resultobj;
12221 fail:
12222 return NULL;
12223 }
12224
12225
12226 SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12227 PyObject *resultobj = 0;
12228 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12229 void *argp1 = 0 ;
12230 int res1 = 0 ;
12231 PyObject *swig_obj[1] ;
12232
12233 if (!args) SWIG_fail;
12234 swig_obj[0] = args;
12235 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12236 if (!SWIG_IsOK(res1)) {
12237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12238 }
12239 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12240 {
12241 PyThreadState* __tstate = wxPyBeginAllowThreads();
12242 wxRegionIterator_Next(arg1);
12243 wxPyEndAllowThreads(__tstate);
12244 if (PyErr_Occurred()) SWIG_fail;
12245 }
12246 resultobj = SWIG_Py_Void();
12247 return resultobj;
12248 fail:
12249 return NULL;
12250 }
12251
12252
12253 SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12254 PyObject *resultobj = 0;
12255 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12256 bool result;
12257 void *argp1 = 0 ;
12258 int res1 = 0 ;
12259 PyObject *swig_obj[1] ;
12260
12261 if (!args) SWIG_fail;
12262 swig_obj[0] = args;
12263 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12264 if (!SWIG_IsOK(res1)) {
12265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12266 }
12267 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12268 {
12269 PyThreadState* __tstate = wxPyBeginAllowThreads();
12270 result = (bool)wxRegionIterator___nonzero__(arg1);
12271 wxPyEndAllowThreads(__tstate);
12272 if (PyErr_Occurred()) SWIG_fail;
12273 }
12274 {
12275 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12276 }
12277 return resultobj;
12278 fail:
12279 return NULL;
12280 }
12281
12282
12283 SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12284 PyObject *obj;
12285 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12286 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
12287 return SWIG_Py_Void();
12288 }
12289
12290 SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12291 return SWIG_Python_InitShadowInstance(args);
12292 }
12293
12294 SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12295 PyObject *resultobj = 0;
12296 wxNativeFontInfo *result = 0 ;
12297
12298 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
12299 {
12300 PyThreadState* __tstate = wxPyBeginAllowThreads();
12301 result = (wxNativeFontInfo *)new wxNativeFontInfo();
12302 wxPyEndAllowThreads(__tstate);
12303 if (PyErr_Occurred()) SWIG_fail;
12304 }
12305 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
12306 return resultobj;
12307 fail:
12308 return NULL;
12309 }
12310
12311
12312 SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12313 PyObject *resultobj = 0;
12314 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12315 void *argp1 = 0 ;
12316 int res1 = 0 ;
12317 PyObject *swig_obj[1] ;
12318
12319 if (!args) SWIG_fail;
12320 swig_obj[0] = args;
12321 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
12322 if (!SWIG_IsOK(res1)) {
12323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12324 }
12325 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12326 {
12327 PyThreadState* __tstate = wxPyBeginAllowThreads();
12328 delete arg1;
12329
12330 wxPyEndAllowThreads(__tstate);
12331 if (PyErr_Occurred()) SWIG_fail;
12332 }
12333 resultobj = SWIG_Py_Void();
12334 return resultobj;
12335 fail:
12336 return NULL;
12337 }
12338
12339
12340 SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12341 PyObject *resultobj = 0;
12342 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12343 void *argp1 = 0 ;
12344 int res1 = 0 ;
12345 PyObject *swig_obj[1] ;
12346
12347 if (!args) SWIG_fail;
12348 swig_obj[0] = args;
12349 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12350 if (!SWIG_IsOK(res1)) {
12351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12352 }
12353 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12354 {
12355 PyThreadState* __tstate = wxPyBeginAllowThreads();
12356 (arg1)->Init();
12357 wxPyEndAllowThreads(__tstate);
12358 if (PyErr_Occurred()) SWIG_fail;
12359 }
12360 resultobj = SWIG_Py_Void();
12361 return resultobj;
12362 fail:
12363 return NULL;
12364 }
12365
12366
12367 SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12368 PyObject *resultobj = 0;
12369 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12370 wxFont *arg2 = 0 ;
12371 void *argp1 = 0 ;
12372 int res1 = 0 ;
12373 void *argp2 = 0 ;
12374 int res2 = 0 ;
12375 PyObject * obj0 = 0 ;
12376 PyObject * obj1 = 0 ;
12377 char * kwnames[] = {
12378 (char *) "self",(char *) "font", NULL
12379 };
12380
12381 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
12382 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12383 if (!SWIG_IsOK(res1)) {
12384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12385 }
12386 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12387 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
12388 if (!SWIG_IsOK(res2)) {
12389 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12390 }
12391 if (!argp2) {
12392 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12393 }
12394 arg2 = reinterpret_cast< wxFont * >(argp2);
12395 {
12396 PyThreadState* __tstate = wxPyBeginAllowThreads();
12397 (arg1)->InitFromFont((wxFont const &)*arg2);
12398 wxPyEndAllowThreads(__tstate);
12399 if (PyErr_Occurred()) SWIG_fail;
12400 }
12401 resultobj = SWIG_Py_Void();
12402 return resultobj;
12403 fail:
12404 return NULL;
12405 }
12406
12407
12408 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12409 PyObject *resultobj = 0;
12410 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12411 int result;
12412 void *argp1 = 0 ;
12413 int res1 = 0 ;
12414 PyObject *swig_obj[1] ;
12415
12416 if (!args) SWIG_fail;
12417 swig_obj[0] = args;
12418 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12419 if (!SWIG_IsOK(res1)) {
12420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12421 }
12422 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12423 {
12424 PyThreadState* __tstate = wxPyBeginAllowThreads();
12425 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
12426 wxPyEndAllowThreads(__tstate);
12427 if (PyErr_Occurred()) SWIG_fail;
12428 }
12429 resultobj = SWIG_From_int(static_cast< int >(result));
12430 return resultobj;
12431 fail:
12432 return NULL;
12433 }
12434
12435
12436 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12437 PyObject *resultobj = 0;
12438 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12439 wxSize result;
12440 void *argp1 = 0 ;
12441 int res1 = 0 ;
12442 PyObject *swig_obj[1] ;
12443
12444 if (!args) SWIG_fail;
12445 swig_obj[0] = args;
12446 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12447 if (!SWIG_IsOK(res1)) {
12448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPixelSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12449 }
12450 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12451 {
12452 PyThreadState* __tstate = wxPyBeginAllowThreads();
12453 result = ((wxNativeFontInfo const *)arg1)->GetPixelSize();
12454 wxPyEndAllowThreads(__tstate);
12455 if (PyErr_Occurred()) SWIG_fail;
12456 }
12457 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
12458 return resultobj;
12459 fail:
12460 return NULL;
12461 }
12462
12463
12464 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12465 PyObject *resultobj = 0;
12466 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12467 wxFontStyle result;
12468 void *argp1 = 0 ;
12469 int res1 = 0 ;
12470 PyObject *swig_obj[1] ;
12471
12472 if (!args) SWIG_fail;
12473 swig_obj[0] = args;
12474 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12475 if (!SWIG_IsOK(res1)) {
12476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12477 }
12478 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12479 {
12480 PyThreadState* __tstate = wxPyBeginAllowThreads();
12481 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
12482 wxPyEndAllowThreads(__tstate);
12483 if (PyErr_Occurred()) SWIG_fail;
12484 }
12485 resultobj = SWIG_From_int(static_cast< int >(result));
12486 return resultobj;
12487 fail:
12488 return NULL;
12489 }
12490
12491
12492 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12493 PyObject *resultobj = 0;
12494 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12495 wxFontWeight result;
12496 void *argp1 = 0 ;
12497 int res1 = 0 ;
12498 PyObject *swig_obj[1] ;
12499
12500 if (!args) SWIG_fail;
12501 swig_obj[0] = args;
12502 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12503 if (!SWIG_IsOK(res1)) {
12504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12505 }
12506 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12507 {
12508 PyThreadState* __tstate = wxPyBeginAllowThreads();
12509 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
12510 wxPyEndAllowThreads(__tstate);
12511 if (PyErr_Occurred()) SWIG_fail;
12512 }
12513 resultobj = SWIG_From_int(static_cast< int >(result));
12514 return resultobj;
12515 fail:
12516 return NULL;
12517 }
12518
12519
12520 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12521 PyObject *resultobj = 0;
12522 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12523 bool result;
12524 void *argp1 = 0 ;
12525 int res1 = 0 ;
12526 PyObject *swig_obj[1] ;
12527
12528 if (!args) SWIG_fail;
12529 swig_obj[0] = args;
12530 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12531 if (!SWIG_IsOK(res1)) {
12532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12533 }
12534 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12535 {
12536 PyThreadState* __tstate = wxPyBeginAllowThreads();
12537 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
12538 wxPyEndAllowThreads(__tstate);
12539 if (PyErr_Occurred()) SWIG_fail;
12540 }
12541 {
12542 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12543 }
12544 return resultobj;
12545 fail:
12546 return NULL;
12547 }
12548
12549
12550 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12551 PyObject *resultobj = 0;
12552 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12553 wxString result;
12554 void *argp1 = 0 ;
12555 int res1 = 0 ;
12556 PyObject *swig_obj[1] ;
12557
12558 if (!args) SWIG_fail;
12559 swig_obj[0] = args;
12560 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12561 if (!SWIG_IsOK(res1)) {
12562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12563 }
12564 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12565 {
12566 PyThreadState* __tstate = wxPyBeginAllowThreads();
12567 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
12568 wxPyEndAllowThreads(__tstate);
12569 if (PyErr_Occurred()) SWIG_fail;
12570 }
12571 {
12572 #if wxUSE_UNICODE
12573 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12574 #else
12575 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12576 #endif
12577 }
12578 return resultobj;
12579 fail:
12580 return NULL;
12581 }
12582
12583
12584 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12585 PyObject *resultobj = 0;
12586 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12587 wxFontFamily result;
12588 void *argp1 = 0 ;
12589 int res1 = 0 ;
12590 PyObject *swig_obj[1] ;
12591
12592 if (!args) SWIG_fail;
12593 swig_obj[0] = args;
12594 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12595 if (!SWIG_IsOK(res1)) {
12596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12597 }
12598 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12599 {
12600 PyThreadState* __tstate = wxPyBeginAllowThreads();
12601 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
12602 wxPyEndAllowThreads(__tstate);
12603 if (PyErr_Occurred()) SWIG_fail;
12604 }
12605 resultobj = SWIG_From_int(static_cast< int >(result));
12606 return resultobj;
12607 fail:
12608 return NULL;
12609 }
12610
12611
12612 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12613 PyObject *resultobj = 0;
12614 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12615 wxFontEncoding result;
12616 void *argp1 = 0 ;
12617 int res1 = 0 ;
12618 PyObject *swig_obj[1] ;
12619
12620 if (!args) SWIG_fail;
12621 swig_obj[0] = args;
12622 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12623 if (!SWIG_IsOK(res1)) {
12624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12625 }
12626 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12627 {
12628 PyThreadState* __tstate = wxPyBeginAllowThreads();
12629 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
12630 wxPyEndAllowThreads(__tstate);
12631 if (PyErr_Occurred()) SWIG_fail;
12632 }
12633 resultobj = SWIG_From_int(static_cast< int >(result));
12634 return resultobj;
12635 fail:
12636 return NULL;
12637 }
12638
12639
12640 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12641 PyObject *resultobj = 0;
12642 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12643 int arg2 ;
12644 void *argp1 = 0 ;
12645 int res1 = 0 ;
12646 int val2 ;
12647 int ecode2 = 0 ;
12648 PyObject * obj0 = 0 ;
12649 PyObject * obj1 = 0 ;
12650 char * kwnames[] = {
12651 (char *) "self",(char *) "pointsize", NULL
12652 };
12653
12654 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
12655 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12656 if (!SWIG_IsOK(res1)) {
12657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12658 }
12659 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12660 ecode2 = SWIG_AsVal_int(obj1, &val2);
12661 if (!SWIG_IsOK(ecode2)) {
12662 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
12663 }
12664 arg2 = static_cast< int >(val2);
12665 {
12666 PyThreadState* __tstate = wxPyBeginAllowThreads();
12667 (arg1)->SetPointSize(arg2);
12668 wxPyEndAllowThreads(__tstate);
12669 if (PyErr_Occurred()) SWIG_fail;
12670 }
12671 resultobj = SWIG_Py_Void();
12672 return resultobj;
12673 fail:
12674 return NULL;
12675 }
12676
12677
12678 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12679 PyObject *resultobj = 0;
12680 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12681 wxSize *arg2 = 0 ;
12682 void *argp1 = 0 ;
12683 int res1 = 0 ;
12684 wxSize temp2 ;
12685 PyObject * obj0 = 0 ;
12686 PyObject * obj1 = 0 ;
12687 char * kwnames[] = {
12688 (char *) "self",(char *) "pixelSize", NULL
12689 };
12690
12691 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
12692 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12693 if (!SWIG_IsOK(res1)) {
12694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPixelSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12695 }
12696 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12697 {
12698 arg2 = &temp2;
12699 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
12700 }
12701 {
12702 PyThreadState* __tstate = wxPyBeginAllowThreads();
12703 (arg1)->SetPixelSize((wxSize const &)*arg2);
12704 wxPyEndAllowThreads(__tstate);
12705 if (PyErr_Occurred()) SWIG_fail;
12706 }
12707 resultobj = SWIG_Py_Void();
12708 return resultobj;
12709 fail:
12710 return NULL;
12711 }
12712
12713
12714 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12715 PyObject *resultobj = 0;
12716 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12717 wxFontStyle arg2 ;
12718 void *argp1 = 0 ;
12719 int res1 = 0 ;
12720 int val2 ;
12721 int ecode2 = 0 ;
12722 PyObject * obj0 = 0 ;
12723 PyObject * obj1 = 0 ;
12724 char * kwnames[] = {
12725 (char *) "self",(char *) "style", NULL
12726 };
12727
12728 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12729 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12730 if (!SWIG_IsOK(res1)) {
12731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12732 }
12733 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12734 ecode2 = SWIG_AsVal_int(obj1, &val2);
12735 if (!SWIG_IsOK(ecode2)) {
12736 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
12737 }
12738 arg2 = static_cast< wxFontStyle >(val2);
12739 {
12740 PyThreadState* __tstate = wxPyBeginAllowThreads();
12741 (arg1)->SetStyle(arg2);
12742 wxPyEndAllowThreads(__tstate);
12743 if (PyErr_Occurred()) SWIG_fail;
12744 }
12745 resultobj = SWIG_Py_Void();
12746 return resultobj;
12747 fail:
12748 return NULL;
12749 }
12750
12751
12752 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12753 PyObject *resultobj = 0;
12754 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12755 wxFontWeight arg2 ;
12756 void *argp1 = 0 ;
12757 int res1 = 0 ;
12758 int val2 ;
12759 int ecode2 = 0 ;
12760 PyObject * obj0 = 0 ;
12761 PyObject * obj1 = 0 ;
12762 char * kwnames[] = {
12763 (char *) "self",(char *) "weight", NULL
12764 };
12765
12766 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
12767 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12768 if (!SWIG_IsOK(res1)) {
12769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12770 }
12771 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12772 ecode2 = SWIG_AsVal_int(obj1, &val2);
12773 if (!SWIG_IsOK(ecode2)) {
12774 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
12775 }
12776 arg2 = static_cast< wxFontWeight >(val2);
12777 {
12778 PyThreadState* __tstate = wxPyBeginAllowThreads();
12779 (arg1)->SetWeight(arg2);
12780 wxPyEndAllowThreads(__tstate);
12781 if (PyErr_Occurred()) SWIG_fail;
12782 }
12783 resultobj = SWIG_Py_Void();
12784 return resultobj;
12785 fail:
12786 return NULL;
12787 }
12788
12789
12790 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12791 PyObject *resultobj = 0;
12792 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12793 bool arg2 ;
12794 void *argp1 = 0 ;
12795 int res1 = 0 ;
12796 bool val2 ;
12797 int ecode2 = 0 ;
12798 PyObject * obj0 = 0 ;
12799 PyObject * obj1 = 0 ;
12800 char * kwnames[] = {
12801 (char *) "self",(char *) "underlined", NULL
12802 };
12803
12804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
12805 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12806 if (!SWIG_IsOK(res1)) {
12807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12808 }
12809 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12810 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12811 if (!SWIG_IsOK(ecode2)) {
12812 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
12813 }
12814 arg2 = static_cast< bool >(val2);
12815 {
12816 PyThreadState* __tstate = wxPyBeginAllowThreads();
12817 (arg1)->SetUnderlined(arg2);
12818 wxPyEndAllowThreads(__tstate);
12819 if (PyErr_Occurred()) SWIG_fail;
12820 }
12821 resultobj = SWIG_Py_Void();
12822 return resultobj;
12823 fail:
12824 return NULL;
12825 }
12826
12827
12828 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12829 PyObject *resultobj = 0;
12830 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12831 wxString arg2 ;
12832 bool result;
12833 void *argp1 = 0 ;
12834 int res1 = 0 ;
12835 PyObject * obj0 = 0 ;
12836 PyObject * obj1 = 0 ;
12837 char * kwnames[] = {
12838 (char *) "self",(char *) "facename", NULL
12839 };
12840
12841 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
12842 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12843 if (!SWIG_IsOK(res1)) {
12844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12845 }
12846 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12847 {
12848 wxString* sptr = wxString_in_helper(obj1);
12849 if (sptr == NULL) SWIG_fail;
12850 arg2 = *sptr;
12851 delete sptr;
12852 }
12853 {
12854 PyThreadState* __tstate = wxPyBeginAllowThreads();
12855 result = (bool)(arg1)->SetFaceName(arg2);
12856 wxPyEndAllowThreads(__tstate);
12857 if (PyErr_Occurred()) SWIG_fail;
12858 }
12859 {
12860 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12861 }
12862 return resultobj;
12863 fail:
12864 return NULL;
12865 }
12866
12867
12868 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12869 PyObject *resultobj = 0;
12870 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12871 wxFontFamily arg2 ;
12872 void *argp1 = 0 ;
12873 int res1 = 0 ;
12874 int val2 ;
12875 int ecode2 = 0 ;
12876 PyObject * obj0 = 0 ;
12877 PyObject * obj1 = 0 ;
12878 char * kwnames[] = {
12879 (char *) "self",(char *) "family", NULL
12880 };
12881
12882 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
12883 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12884 if (!SWIG_IsOK(res1)) {
12885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12886 }
12887 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12888 ecode2 = SWIG_AsVal_int(obj1, &val2);
12889 if (!SWIG_IsOK(ecode2)) {
12890 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
12891 }
12892 arg2 = static_cast< wxFontFamily >(val2);
12893 {
12894 PyThreadState* __tstate = wxPyBeginAllowThreads();
12895 (arg1)->SetFamily(arg2);
12896 wxPyEndAllowThreads(__tstate);
12897 if (PyErr_Occurred()) SWIG_fail;
12898 }
12899 resultobj = SWIG_Py_Void();
12900 return resultobj;
12901 fail:
12902 return NULL;
12903 }
12904
12905
12906 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12907 PyObject *resultobj = 0;
12908 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12909 wxFontEncoding arg2 ;
12910 void *argp1 = 0 ;
12911 int res1 = 0 ;
12912 int val2 ;
12913 int ecode2 = 0 ;
12914 PyObject * obj0 = 0 ;
12915 PyObject * obj1 = 0 ;
12916 char * kwnames[] = {
12917 (char *) "self",(char *) "encoding", NULL
12918 };
12919
12920 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
12921 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12922 if (!SWIG_IsOK(res1)) {
12923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12924 }
12925 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12926 ecode2 = SWIG_AsVal_int(obj1, &val2);
12927 if (!SWIG_IsOK(ecode2)) {
12928 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12929 }
12930 arg2 = static_cast< wxFontEncoding >(val2);
12931 {
12932 PyThreadState* __tstate = wxPyBeginAllowThreads();
12933 (arg1)->SetEncoding(arg2);
12934 wxPyEndAllowThreads(__tstate);
12935 if (PyErr_Occurred()) SWIG_fail;
12936 }
12937 resultobj = SWIG_Py_Void();
12938 return resultobj;
12939 fail:
12940 return NULL;
12941 }
12942
12943
12944 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12945 PyObject *resultobj = 0;
12946 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12947 wxString *arg2 = 0 ;
12948 bool result;
12949 void *argp1 = 0 ;
12950 int res1 = 0 ;
12951 bool temp2 = false ;
12952 PyObject * obj0 = 0 ;
12953 PyObject * obj1 = 0 ;
12954 char * kwnames[] = {
12955 (char *) "self",(char *) "s", NULL
12956 };
12957
12958 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12959 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12960 if (!SWIG_IsOK(res1)) {
12961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12962 }
12963 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12964 {
12965 arg2 = wxString_in_helper(obj1);
12966 if (arg2 == NULL) SWIG_fail;
12967 temp2 = true;
12968 }
12969 {
12970 PyThreadState* __tstate = wxPyBeginAllowThreads();
12971 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12972 wxPyEndAllowThreads(__tstate);
12973 if (PyErr_Occurred()) SWIG_fail;
12974 }
12975 {
12976 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12977 }
12978 {
12979 if (temp2)
12980 delete arg2;
12981 }
12982 return resultobj;
12983 fail:
12984 {
12985 if (temp2)
12986 delete arg2;
12987 }
12988 return NULL;
12989 }
12990
12991
12992 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12993 PyObject *resultobj = 0;
12994 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12995 wxString result;
12996 void *argp1 = 0 ;
12997 int res1 = 0 ;
12998 PyObject *swig_obj[1] ;
12999
13000 if (!args) SWIG_fail;
13001 swig_obj[0] = args;
13002 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13003 if (!SWIG_IsOK(res1)) {
13004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
13005 }
13006 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13007 {
13008 PyThreadState* __tstate = wxPyBeginAllowThreads();
13009 result = ((wxNativeFontInfo const *)arg1)->ToString();
13010 wxPyEndAllowThreads(__tstate);
13011 if (PyErr_Occurred()) SWIG_fail;
13012 }
13013 {
13014 #if wxUSE_UNICODE
13015 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13016 #else
13017 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13018 #endif
13019 }
13020 return resultobj;
13021 fail:
13022 return NULL;
13023 }
13024
13025
13026 SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13027 PyObject *resultobj = 0;
13028 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13029 wxString result;
13030 void *argp1 = 0 ;
13031 int res1 = 0 ;
13032 PyObject *swig_obj[1] ;
13033
13034 if (!args) SWIG_fail;
13035 swig_obj[0] = args;
13036 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13037 if (!SWIG_IsOK(res1)) {
13038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13039 }
13040 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13041 {
13042 PyThreadState* __tstate = wxPyBeginAllowThreads();
13043 result = wxNativeFontInfo___str__(arg1);
13044 wxPyEndAllowThreads(__tstate);
13045 if (PyErr_Occurred()) SWIG_fail;
13046 }
13047 {
13048 #if wxUSE_UNICODE
13049 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13050 #else
13051 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13052 #endif
13053 }
13054 return resultobj;
13055 fail:
13056 return NULL;
13057 }
13058
13059
13060 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13061 PyObject *resultobj = 0;
13062 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13063 wxString *arg2 = 0 ;
13064 bool result;
13065 void *argp1 = 0 ;
13066 int res1 = 0 ;
13067 bool temp2 = false ;
13068 PyObject * obj0 = 0 ;
13069 PyObject * obj1 = 0 ;
13070 char * kwnames[] = {
13071 (char *) "self",(char *) "s", NULL
13072 };
13073
13074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
13075 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13076 if (!SWIG_IsOK(res1)) {
13077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13078 }
13079 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13080 {
13081 arg2 = wxString_in_helper(obj1);
13082 if (arg2 == NULL) SWIG_fail;
13083 temp2 = true;
13084 }
13085 {
13086 PyThreadState* __tstate = wxPyBeginAllowThreads();
13087 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
13088 wxPyEndAllowThreads(__tstate);
13089 if (PyErr_Occurred()) SWIG_fail;
13090 }
13091 {
13092 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13093 }
13094 {
13095 if (temp2)
13096 delete arg2;
13097 }
13098 return resultobj;
13099 fail:
13100 {
13101 if (temp2)
13102 delete arg2;
13103 }
13104 return NULL;
13105 }
13106
13107
13108 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13109 PyObject *resultobj = 0;
13110 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13111 wxString result;
13112 void *argp1 = 0 ;
13113 int res1 = 0 ;
13114 PyObject *swig_obj[1] ;
13115
13116 if (!args) SWIG_fail;
13117 swig_obj[0] = args;
13118 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13119 if (!SWIG_IsOK(res1)) {
13120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
13121 }
13122 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13123 {
13124 PyThreadState* __tstate = wxPyBeginAllowThreads();
13125 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
13126 wxPyEndAllowThreads(__tstate);
13127 if (PyErr_Occurred()) SWIG_fail;
13128 }
13129 {
13130 #if wxUSE_UNICODE
13131 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13132 #else
13133 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13134 #endif
13135 }
13136 return resultobj;
13137 fail:
13138 return NULL;
13139 }
13140
13141
13142 SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13143 PyObject *obj;
13144 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13145 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
13146 return SWIG_Py_Void();
13147 }
13148
13149 SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13150 return SWIG_Python_InitShadowInstance(args);
13151 }
13152
13153 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13154 PyObject *resultobj = 0;
13155 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13156 wxString *arg2 = (wxString *) 0 ;
13157 void *argp1 = 0 ;
13158 int res1 = 0 ;
13159 bool temp2 = false ;
13160 PyObject *swig_obj[2] ;
13161
13162 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
13163 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13164 if (!SWIG_IsOK(res1)) {
13165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13166 }
13167 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13168 {
13169 arg2 = wxString_in_helper(swig_obj[1]);
13170 if (arg2 == NULL) SWIG_fail;
13171 temp2 = true;
13172 }
13173 if (arg1) (arg1)->facename = *arg2;
13174
13175 resultobj = SWIG_Py_Void();
13176 {
13177 if (temp2)
13178 delete arg2;
13179 }
13180 return resultobj;
13181 fail:
13182 {
13183 if (temp2)
13184 delete arg2;
13185 }
13186 return NULL;
13187 }
13188
13189
13190 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13191 PyObject *resultobj = 0;
13192 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13193 wxString *result = 0 ;
13194 void *argp1 = 0 ;
13195 int res1 = 0 ;
13196 PyObject *swig_obj[1] ;
13197
13198 if (!args) SWIG_fail;
13199 swig_obj[0] = args;
13200 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13201 if (!SWIG_IsOK(res1)) {
13202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13203 }
13204 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13205 result = (wxString *)& ((arg1)->facename);
13206 {
13207 #if wxUSE_UNICODE
13208 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
13209 #else
13210 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
13211 #endif
13212 }
13213 return resultobj;
13214 fail:
13215 return NULL;
13216 }
13217
13218
13219 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13220 PyObject *resultobj = 0;
13221 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13222 wxFontEncoding arg2 ;
13223 void *argp1 = 0 ;
13224 int res1 = 0 ;
13225 int val2 ;
13226 int ecode2 = 0 ;
13227 PyObject *swig_obj[2] ;
13228
13229 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
13230 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13231 if (!SWIG_IsOK(res1)) {
13232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13233 }
13234 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13235 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
13236 if (!SWIG_IsOK(ecode2)) {
13237 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13238 }
13239 arg2 = static_cast< wxFontEncoding >(val2);
13240 if (arg1) (arg1)->encoding = arg2;
13241
13242 resultobj = SWIG_Py_Void();
13243 return resultobj;
13244 fail:
13245 return NULL;
13246 }
13247
13248
13249 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13250 PyObject *resultobj = 0;
13251 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13252 wxFontEncoding result;
13253 void *argp1 = 0 ;
13254 int res1 = 0 ;
13255 PyObject *swig_obj[1] ;
13256
13257 if (!args) SWIG_fail;
13258 swig_obj[0] = args;
13259 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13260 if (!SWIG_IsOK(res1)) {
13261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13262 }
13263 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13264 result = (wxFontEncoding) ((arg1)->encoding);
13265 resultobj = SWIG_From_int(static_cast< int >(result));
13266 return resultobj;
13267 fail:
13268 return NULL;
13269 }
13270
13271
13272 SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13273 PyObject *resultobj = 0;
13274 wxNativeEncodingInfo *result = 0 ;
13275
13276 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
13277 {
13278 PyThreadState* __tstate = wxPyBeginAllowThreads();
13279 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
13280 wxPyEndAllowThreads(__tstate);
13281 if (PyErr_Occurred()) SWIG_fail;
13282 }
13283 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
13284 return resultobj;
13285 fail:
13286 return NULL;
13287 }
13288
13289
13290 SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13291 PyObject *resultobj = 0;
13292 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13293 void *argp1 = 0 ;
13294 int res1 = 0 ;
13295 PyObject *swig_obj[1] ;
13296
13297 if (!args) SWIG_fail;
13298 swig_obj[0] = args;
13299 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
13300 if (!SWIG_IsOK(res1)) {
13301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13302 }
13303 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13304 {
13305 PyThreadState* __tstate = wxPyBeginAllowThreads();
13306 delete arg1;
13307
13308 wxPyEndAllowThreads(__tstate);
13309 if (PyErr_Occurred()) SWIG_fail;
13310 }
13311 resultobj = SWIG_Py_Void();
13312 return resultobj;
13313 fail:
13314 return NULL;
13315 }
13316
13317
13318 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13319 PyObject *resultobj = 0;
13320 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13321 wxString *arg2 = 0 ;
13322 bool result;
13323 void *argp1 = 0 ;
13324 int res1 = 0 ;
13325 bool temp2 = false ;
13326 PyObject * obj0 = 0 ;
13327 PyObject * obj1 = 0 ;
13328 char * kwnames[] = {
13329 (char *) "self",(char *) "s", NULL
13330 };
13331
13332 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
13333 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13334 if (!SWIG_IsOK(res1)) {
13335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13336 }
13337 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13338 {
13339 arg2 = wxString_in_helper(obj1);
13340 if (arg2 == NULL) SWIG_fail;
13341 temp2 = true;
13342 }
13343 {
13344 PyThreadState* __tstate = wxPyBeginAllowThreads();
13345 result = (bool)(arg1)->FromString((wxString const &)*arg2);
13346 wxPyEndAllowThreads(__tstate);
13347 if (PyErr_Occurred()) SWIG_fail;
13348 }
13349 {
13350 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13351 }
13352 {
13353 if (temp2)
13354 delete arg2;
13355 }
13356 return resultobj;
13357 fail:
13358 {
13359 if (temp2)
13360 delete arg2;
13361 }
13362 return NULL;
13363 }
13364
13365
13366 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13367 PyObject *resultobj = 0;
13368 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13369 wxString result;
13370 void *argp1 = 0 ;
13371 int res1 = 0 ;
13372 PyObject *swig_obj[1] ;
13373
13374 if (!args) SWIG_fail;
13375 swig_obj[0] = args;
13376 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13377 if (!SWIG_IsOK(res1)) {
13378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
13379 }
13380 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13381 {
13382 PyThreadState* __tstate = wxPyBeginAllowThreads();
13383 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
13384 wxPyEndAllowThreads(__tstate);
13385 if (PyErr_Occurred()) SWIG_fail;
13386 }
13387 {
13388 #if wxUSE_UNICODE
13389 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13390 #else
13391 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13392 #endif
13393 }
13394 return resultobj;
13395 fail:
13396 return NULL;
13397 }
13398
13399
13400 SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13401 PyObject *obj;
13402 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13403 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
13404 return SWIG_Py_Void();
13405 }
13406
13407 SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13408 return SWIG_Python_InitShadowInstance(args);
13409 }
13410
13411 SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13412 PyObject *resultobj = 0;
13413 wxFontEncoding arg1 ;
13414 wxNativeEncodingInfo *result = 0 ;
13415 int val1 ;
13416 int ecode1 = 0 ;
13417 PyObject * obj0 = 0 ;
13418 char * kwnames[] = {
13419 (char *) "encoding", NULL
13420 };
13421
13422 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
13423 ecode1 = SWIG_AsVal_int(obj0, &val1);
13424 if (!SWIG_IsOK(ecode1)) {
13425 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13426 }
13427 arg1 = static_cast< wxFontEncoding >(val1);
13428 {
13429 PyThreadState* __tstate = wxPyBeginAllowThreads();
13430 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
13431 wxPyEndAllowThreads(__tstate);
13432 if (PyErr_Occurred()) SWIG_fail;
13433 }
13434 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13435 return resultobj;
13436 fail:
13437 return NULL;
13438 }
13439
13440
13441 SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13442 PyObject *resultobj = 0;
13443 wxNativeEncodingInfo *arg1 = 0 ;
13444 bool result;
13445 void *argp1 = 0 ;
13446 int res1 = 0 ;
13447 PyObject * obj0 = 0 ;
13448 char * kwnames[] = {
13449 (char *) "info", NULL
13450 };
13451
13452 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
13453 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
13454 if (!SWIG_IsOK(res1)) {
13455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13456 }
13457 if (!argp1) {
13458 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13459 }
13460 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13461 {
13462 PyThreadState* __tstate = wxPyBeginAllowThreads();
13463 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
13464 wxPyEndAllowThreads(__tstate);
13465 if (PyErr_Occurred()) SWIG_fail;
13466 }
13467 {
13468 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13469 }
13470 return resultobj;
13471 fail:
13472 return NULL;
13473 }
13474
13475
13476 SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13477 PyObject *resultobj = 0;
13478 wxFontMapper *result = 0 ;
13479
13480 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
13481 {
13482 PyThreadState* __tstate = wxPyBeginAllowThreads();
13483 result = (wxFontMapper *)new wxFontMapper();
13484 wxPyEndAllowThreads(__tstate);
13485 if (PyErr_Occurred()) SWIG_fail;
13486 }
13487 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
13488 return resultobj;
13489 fail:
13490 return NULL;
13491 }
13492
13493
13494 SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13495 PyObject *resultobj = 0;
13496 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13497 void *argp1 = 0 ;
13498 int res1 = 0 ;
13499 PyObject *swig_obj[1] ;
13500
13501 if (!args) SWIG_fail;
13502 swig_obj[0] = args;
13503 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
13504 if (!SWIG_IsOK(res1)) {
13505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13506 }
13507 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13508 {
13509 PyThreadState* __tstate = wxPyBeginAllowThreads();
13510 delete arg1;
13511
13512 wxPyEndAllowThreads(__tstate);
13513 if (PyErr_Occurred()) SWIG_fail;
13514 }
13515 resultobj = SWIG_Py_Void();
13516 return resultobj;
13517 fail:
13518 return NULL;
13519 }
13520
13521
13522 SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13523 PyObject *resultobj = 0;
13524 wxFontMapper *result = 0 ;
13525
13526 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
13527 {
13528 PyThreadState* __tstate = wxPyBeginAllowThreads();
13529 result = (wxFontMapper *)wxFontMapper::Get();
13530 wxPyEndAllowThreads(__tstate);
13531 if (PyErr_Occurred()) SWIG_fail;
13532 }
13533 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13534 return resultobj;
13535 fail:
13536 return NULL;
13537 }
13538
13539
13540 SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13541 PyObject *resultobj = 0;
13542 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13543 wxFontMapper *result = 0 ;
13544 void *argp1 = 0 ;
13545 int res1 = 0 ;
13546 PyObject * obj0 = 0 ;
13547 char * kwnames[] = {
13548 (char *) "mapper", NULL
13549 };
13550
13551 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
13552 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13553 if (!SWIG_IsOK(res1)) {
13554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13555 }
13556 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13557 {
13558 PyThreadState* __tstate = wxPyBeginAllowThreads();
13559 result = (wxFontMapper *)wxFontMapper::Set(arg1);
13560 wxPyEndAllowThreads(__tstate);
13561 if (PyErr_Occurred()) SWIG_fail;
13562 }
13563 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13564 return resultobj;
13565 fail:
13566 return NULL;
13567 }
13568
13569
13570 SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13571 PyObject *resultobj = 0;
13572 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13573 wxString *arg2 = 0 ;
13574 bool arg3 = (bool) true ;
13575 wxFontEncoding result;
13576 void *argp1 = 0 ;
13577 int res1 = 0 ;
13578 bool temp2 = false ;
13579 bool val3 ;
13580 int ecode3 = 0 ;
13581 PyObject * obj0 = 0 ;
13582 PyObject * obj1 = 0 ;
13583 PyObject * obj2 = 0 ;
13584 char * kwnames[] = {
13585 (char *) "self",(char *) "charset",(char *) "interactive", NULL
13586 };
13587
13588 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13589 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13590 if (!SWIG_IsOK(res1)) {
13591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13592 }
13593 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13594 {
13595 arg2 = wxString_in_helper(obj1);
13596 if (arg2 == NULL) SWIG_fail;
13597 temp2 = true;
13598 }
13599 if (obj2) {
13600 ecode3 = SWIG_AsVal_bool(obj2, &val3);
13601 if (!SWIG_IsOK(ecode3)) {
13602 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
13603 }
13604 arg3 = static_cast< bool >(val3);
13605 }
13606 {
13607 PyThreadState* __tstate = wxPyBeginAllowThreads();
13608 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
13609 wxPyEndAllowThreads(__tstate);
13610 if (PyErr_Occurred()) SWIG_fail;
13611 }
13612 resultobj = SWIG_From_int(static_cast< int >(result));
13613 {
13614 if (temp2)
13615 delete arg2;
13616 }
13617 return resultobj;
13618 fail:
13619 {
13620 if (temp2)
13621 delete arg2;
13622 }
13623 return NULL;
13624 }
13625
13626
13627 SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13628 PyObject *resultobj = 0;
13629 size_t result;
13630
13631 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
13632 {
13633 PyThreadState* __tstate = wxPyBeginAllowThreads();
13634 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
13635 wxPyEndAllowThreads(__tstate);
13636 if (PyErr_Occurred()) SWIG_fail;
13637 }
13638 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
13639 return resultobj;
13640 fail:
13641 return NULL;
13642 }
13643
13644
13645 SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13646 PyObject *resultobj = 0;
13647 size_t arg1 ;
13648 wxFontEncoding result;
13649 size_t val1 ;
13650 int ecode1 = 0 ;
13651 PyObject * obj0 = 0 ;
13652 char * kwnames[] = {
13653 (char *) "n", NULL
13654 };
13655
13656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
13657 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
13658 if (!SWIG_IsOK(ecode1)) {
13659 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
13660 }
13661 arg1 = static_cast< size_t >(val1);
13662 {
13663 PyThreadState* __tstate = wxPyBeginAllowThreads();
13664 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
13665 wxPyEndAllowThreads(__tstate);
13666 if (PyErr_Occurred()) SWIG_fail;
13667 }
13668 resultobj = SWIG_From_int(static_cast< int >(result));
13669 return resultobj;
13670 fail:
13671 return NULL;
13672 }
13673
13674
13675 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13676 PyObject *resultobj = 0;
13677 wxFontEncoding arg1 ;
13678 wxString result;
13679 int val1 ;
13680 int ecode1 = 0 ;
13681 PyObject * obj0 = 0 ;
13682 char * kwnames[] = {
13683 (char *) "encoding", NULL
13684 };
13685
13686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
13687 ecode1 = SWIG_AsVal_int(obj0, &val1);
13688 if (!SWIG_IsOK(ecode1)) {
13689 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13690 }
13691 arg1 = static_cast< wxFontEncoding >(val1);
13692 {
13693 PyThreadState* __tstate = wxPyBeginAllowThreads();
13694 result = wxFontMapper::GetEncodingName(arg1);
13695 wxPyEndAllowThreads(__tstate);
13696 if (PyErr_Occurred()) SWIG_fail;
13697 }
13698 {
13699 #if wxUSE_UNICODE
13700 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13701 #else
13702 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13703 #endif
13704 }
13705 return resultobj;
13706 fail:
13707 return NULL;
13708 }
13709
13710
13711 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13712 PyObject *resultobj = 0;
13713 wxFontEncoding arg1 ;
13714 wxString result;
13715 int val1 ;
13716 int ecode1 = 0 ;
13717 PyObject * obj0 = 0 ;
13718 char * kwnames[] = {
13719 (char *) "encoding", NULL
13720 };
13721
13722 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
13723 ecode1 = SWIG_AsVal_int(obj0, &val1);
13724 if (!SWIG_IsOK(ecode1)) {
13725 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13726 }
13727 arg1 = static_cast< wxFontEncoding >(val1);
13728 {
13729 PyThreadState* __tstate = wxPyBeginAllowThreads();
13730 result = wxFontMapper::GetEncodingDescription(arg1);
13731 wxPyEndAllowThreads(__tstate);
13732 if (PyErr_Occurred()) SWIG_fail;
13733 }
13734 {
13735 #if wxUSE_UNICODE
13736 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13737 #else
13738 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13739 #endif
13740 }
13741 return resultobj;
13742 fail:
13743 return NULL;
13744 }
13745
13746
13747 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13748 PyObject *resultobj = 0;
13749 wxString *arg1 = 0 ;
13750 wxFontEncoding result;
13751 bool temp1 = false ;
13752 PyObject * obj0 = 0 ;
13753 char * kwnames[] = {
13754 (char *) "name", NULL
13755 };
13756
13757 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
13758 {
13759 arg1 = wxString_in_helper(obj0);
13760 if (arg1 == NULL) SWIG_fail;
13761 temp1 = true;
13762 }
13763 {
13764 PyThreadState* __tstate = wxPyBeginAllowThreads();
13765 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
13766 wxPyEndAllowThreads(__tstate);
13767 if (PyErr_Occurred()) SWIG_fail;
13768 }
13769 resultobj = SWIG_From_int(static_cast< int >(result));
13770 {
13771 if (temp1)
13772 delete arg1;
13773 }
13774 return resultobj;
13775 fail:
13776 {
13777 if (temp1)
13778 delete arg1;
13779 }
13780 return NULL;
13781 }
13782
13783
13784 SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13785 PyObject *resultobj = 0;
13786 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13787 wxString *arg2 = 0 ;
13788 void *argp1 = 0 ;
13789 int res1 = 0 ;
13790 bool temp2 = false ;
13791 PyObject * obj0 = 0 ;
13792 PyObject * obj1 = 0 ;
13793 char * kwnames[] = {
13794 (char *) "self",(char *) "prefix", NULL
13795 };
13796
13797 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
13798 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13799 if (!SWIG_IsOK(res1)) {
13800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13801 }
13802 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13803 {
13804 arg2 = wxString_in_helper(obj1);
13805 if (arg2 == NULL) SWIG_fail;
13806 temp2 = true;
13807 }
13808 {
13809 PyThreadState* __tstate = wxPyBeginAllowThreads();
13810 (arg1)->SetConfigPath((wxString const &)*arg2);
13811 wxPyEndAllowThreads(__tstate);
13812 if (PyErr_Occurred()) SWIG_fail;
13813 }
13814 resultobj = SWIG_Py_Void();
13815 {
13816 if (temp2)
13817 delete arg2;
13818 }
13819 return resultobj;
13820 fail:
13821 {
13822 if (temp2)
13823 delete arg2;
13824 }
13825 return NULL;
13826 }
13827
13828
13829 SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13830 PyObject *resultobj = 0;
13831 wxString result;
13832
13833 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
13834 {
13835 PyThreadState* __tstate = wxPyBeginAllowThreads();
13836 result = wxFontMapper::GetDefaultConfigPath();
13837 wxPyEndAllowThreads(__tstate);
13838 if (PyErr_Occurred()) SWIG_fail;
13839 }
13840 {
13841 #if wxUSE_UNICODE
13842 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13843 #else
13844 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13845 #endif
13846 }
13847 return resultobj;
13848 fail:
13849 return NULL;
13850 }
13851
13852
13853 SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13854 PyObject *resultobj = 0;
13855 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13856 wxFontEncoding arg2 ;
13857 wxString const &arg3_defvalue = wxPyEmptyString ;
13858 wxString *arg3 = (wxString *) &arg3_defvalue ;
13859 bool arg4 = (bool) true ;
13860 PyObject *result = 0 ;
13861 void *argp1 = 0 ;
13862 int res1 = 0 ;
13863 int val2 ;
13864 int ecode2 = 0 ;
13865 bool temp3 = false ;
13866 bool val4 ;
13867 int ecode4 = 0 ;
13868 PyObject * obj0 = 0 ;
13869 PyObject * obj1 = 0 ;
13870 PyObject * obj2 = 0 ;
13871 PyObject * obj3 = 0 ;
13872 char * kwnames[] = {
13873 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
13874 };
13875
13876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13877 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13878 if (!SWIG_IsOK(res1)) {
13879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13880 }
13881 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13882 ecode2 = SWIG_AsVal_int(obj1, &val2);
13883 if (!SWIG_IsOK(ecode2)) {
13884 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13885 }
13886 arg2 = static_cast< wxFontEncoding >(val2);
13887 if (obj2) {
13888 {
13889 arg3 = wxString_in_helper(obj2);
13890 if (arg3 == NULL) SWIG_fail;
13891 temp3 = true;
13892 }
13893 }
13894 if (obj3) {
13895 ecode4 = SWIG_AsVal_bool(obj3, &val4);
13896 if (!SWIG_IsOK(ecode4)) {
13897 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
13898 }
13899 arg4 = static_cast< bool >(val4);
13900 }
13901 {
13902 PyThreadState* __tstate = wxPyBeginAllowThreads();
13903 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
13904 wxPyEndAllowThreads(__tstate);
13905 if (PyErr_Occurred()) SWIG_fail;
13906 }
13907 resultobj = result;
13908 {
13909 if (temp3)
13910 delete arg3;
13911 }
13912 return resultobj;
13913 fail:
13914 {
13915 if (temp3)
13916 delete arg3;
13917 }
13918 return NULL;
13919 }
13920
13921
13922 SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13923 PyObject *resultobj = 0;
13924 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13925 wxFontEncoding arg2 ;
13926 wxString const &arg3_defvalue = wxPyEmptyString ;
13927 wxString *arg3 = (wxString *) &arg3_defvalue ;
13928 bool result;
13929 void *argp1 = 0 ;
13930 int res1 = 0 ;
13931 int val2 ;
13932 int ecode2 = 0 ;
13933 bool temp3 = false ;
13934 PyObject * obj0 = 0 ;
13935 PyObject * obj1 = 0 ;
13936 PyObject * obj2 = 0 ;
13937 char * kwnames[] = {
13938 (char *) "self",(char *) "encoding",(char *) "facename", NULL
13939 };
13940
13941 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13942 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13943 if (!SWIG_IsOK(res1)) {
13944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13945 }
13946 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13947 ecode2 = SWIG_AsVal_int(obj1, &val2);
13948 if (!SWIG_IsOK(ecode2)) {
13949 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13950 }
13951 arg2 = static_cast< wxFontEncoding >(val2);
13952 if (obj2) {
13953 {
13954 arg3 = wxString_in_helper(obj2);
13955 if (arg3 == NULL) SWIG_fail;
13956 temp3 = true;
13957 }
13958 }
13959 {
13960 PyThreadState* __tstate = wxPyBeginAllowThreads();
13961 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
13962 wxPyEndAllowThreads(__tstate);
13963 if (PyErr_Occurred()) SWIG_fail;
13964 }
13965 {
13966 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13967 }
13968 {
13969 if (temp3)
13970 delete arg3;
13971 }
13972 return resultobj;
13973 fail:
13974 {
13975 if (temp3)
13976 delete arg3;
13977 }
13978 return NULL;
13979 }
13980
13981
13982 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13983 PyObject *resultobj = 0;
13984 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13985 wxWindow *arg2 = (wxWindow *) 0 ;
13986 void *argp1 = 0 ;
13987 int res1 = 0 ;
13988 void *argp2 = 0 ;
13989 int res2 = 0 ;
13990 PyObject * obj0 = 0 ;
13991 PyObject * obj1 = 0 ;
13992 char * kwnames[] = {
13993 (char *) "self",(char *) "parent", NULL
13994 };
13995
13996 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
13997 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13998 if (!SWIG_IsOK(res1)) {
13999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14000 }
14001 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14002 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14003 if (!SWIG_IsOK(res2)) {
14004 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
14005 }
14006 arg2 = reinterpret_cast< wxWindow * >(argp2);
14007 {
14008 PyThreadState* __tstate = wxPyBeginAllowThreads();
14009 (arg1)->SetDialogParent(arg2);
14010 wxPyEndAllowThreads(__tstate);
14011 if (PyErr_Occurred()) SWIG_fail;
14012 }
14013 resultobj = SWIG_Py_Void();
14014 return resultobj;
14015 fail:
14016 return NULL;
14017 }
14018
14019
14020 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14021 PyObject *resultobj = 0;
14022 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14023 wxString *arg2 = 0 ;
14024 void *argp1 = 0 ;
14025 int res1 = 0 ;
14026 bool temp2 = false ;
14027 PyObject * obj0 = 0 ;
14028 PyObject * obj1 = 0 ;
14029 char * kwnames[] = {
14030 (char *) "self",(char *) "title", NULL
14031 };
14032
14033 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
14034 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14035 if (!SWIG_IsOK(res1)) {
14036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14037 }
14038 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14039 {
14040 arg2 = wxString_in_helper(obj1);
14041 if (arg2 == NULL) SWIG_fail;
14042 temp2 = true;
14043 }
14044 {
14045 PyThreadState* __tstate = wxPyBeginAllowThreads();
14046 (arg1)->SetDialogTitle((wxString const &)*arg2);
14047 wxPyEndAllowThreads(__tstate);
14048 if (PyErr_Occurred()) SWIG_fail;
14049 }
14050 resultobj = SWIG_Py_Void();
14051 {
14052 if (temp2)
14053 delete arg2;
14054 }
14055 return resultobj;
14056 fail:
14057 {
14058 if (temp2)
14059 delete arg2;
14060 }
14061 return NULL;
14062 }
14063
14064
14065 SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14066 PyObject *obj;
14067 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14068 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
14069 return SWIG_Py_Void();
14070 }
14071
14072 SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14073 return SWIG_Python_InitShadowInstance(args);
14074 }
14075
14076 SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14077 PyObject *resultobj = 0;
14078 int arg1 ;
14079 int arg2 ;
14080 int arg3 ;
14081 int arg4 ;
14082 bool arg5 = (bool) false ;
14083 wxString const &arg6_defvalue = wxPyEmptyString ;
14084 wxString *arg6 = (wxString *) &arg6_defvalue ;
14085 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14086 wxFont *result = 0 ;
14087 int val1 ;
14088 int ecode1 = 0 ;
14089 int val2 ;
14090 int ecode2 = 0 ;
14091 int val3 ;
14092 int ecode3 = 0 ;
14093 int val4 ;
14094 int ecode4 = 0 ;
14095 bool val5 ;
14096 int ecode5 = 0 ;
14097 bool temp6 = false ;
14098 int val7 ;
14099 int ecode7 = 0 ;
14100 PyObject * obj0 = 0 ;
14101 PyObject * obj1 = 0 ;
14102 PyObject * obj2 = 0 ;
14103 PyObject * obj3 = 0 ;
14104 PyObject * obj4 = 0 ;
14105 PyObject * obj5 = 0 ;
14106 PyObject * obj6 = 0 ;
14107 char * kwnames[] = {
14108 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
14109 };
14110
14111 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14112 ecode1 = SWIG_AsVal_int(obj0, &val1);
14113 if (!SWIG_IsOK(ecode1)) {
14114 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
14115 }
14116 arg1 = static_cast< int >(val1);
14117 ecode2 = SWIG_AsVal_int(obj1, &val2);
14118 if (!SWIG_IsOK(ecode2)) {
14119 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
14120 }
14121 arg2 = static_cast< int >(val2);
14122 ecode3 = SWIG_AsVal_int(obj2, &val3);
14123 if (!SWIG_IsOK(ecode3)) {
14124 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
14125 }
14126 arg3 = static_cast< int >(val3);
14127 ecode4 = SWIG_AsVal_int(obj3, &val4);
14128 if (!SWIG_IsOK(ecode4)) {
14129 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
14130 }
14131 arg4 = static_cast< int >(val4);
14132 if (obj4) {
14133 ecode5 = SWIG_AsVal_bool(obj4, &val5);
14134 if (!SWIG_IsOK(ecode5)) {
14135 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
14136 }
14137 arg5 = static_cast< bool >(val5);
14138 }
14139 if (obj5) {
14140 {
14141 arg6 = wxString_in_helper(obj5);
14142 if (arg6 == NULL) SWIG_fail;
14143 temp6 = true;
14144 }
14145 }
14146 if (obj6) {
14147 ecode7 = SWIG_AsVal_int(obj6, &val7);
14148 if (!SWIG_IsOK(ecode7)) {
14149 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
14150 }
14151 arg7 = static_cast< wxFontEncoding >(val7);
14152 }
14153 {
14154 if (!wxPyCheckForApp()) SWIG_fail;
14155 PyThreadState* __tstate = wxPyBeginAllowThreads();
14156 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
14157 wxPyEndAllowThreads(__tstate);
14158 if (PyErr_Occurred()) SWIG_fail;
14159 }
14160 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
14161 {
14162 if (temp6)
14163 delete arg6;
14164 }
14165 return resultobj;
14166 fail:
14167 {
14168 if (temp6)
14169 delete arg6;
14170 }
14171 return NULL;
14172 }
14173
14174
14175 SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14176 PyObject *resultobj = 0;
14177 wxFont *arg1 = (wxFont *) 0 ;
14178 void *argp1 = 0 ;
14179 int res1 = 0 ;
14180 PyObject *swig_obj[1] ;
14181
14182 if (!args) SWIG_fail;
14183 swig_obj[0] = args;
14184 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
14185 if (!SWIG_IsOK(res1)) {
14186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
14187 }
14188 arg1 = reinterpret_cast< wxFont * >(argp1);
14189 {
14190 PyThreadState* __tstate = wxPyBeginAllowThreads();
14191 delete arg1;
14192
14193 wxPyEndAllowThreads(__tstate);
14194 if (PyErr_Occurred()) SWIG_fail;
14195 }
14196 resultobj = SWIG_Py_Void();
14197 return resultobj;
14198 fail:
14199 return NULL;
14200 }
14201
14202
14203 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14204 PyObject *resultobj = 0;
14205 wxNativeFontInfo *arg1 = 0 ;
14206 wxFont *result = 0 ;
14207 void *argp1 = 0 ;
14208 int res1 = 0 ;
14209 PyObject * obj0 = 0 ;
14210 char * kwnames[] = {
14211 (char *) "info", NULL
14212 };
14213
14214 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
14215 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
14216 if (!SWIG_IsOK(res1)) {
14217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
14218 }
14219 if (!argp1) {
14220 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
14221 }
14222 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
14223 {
14224 if (!wxPyCheckForApp()) SWIG_fail;
14225 PyThreadState* __tstate = wxPyBeginAllowThreads();
14226 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
14227 wxPyEndAllowThreads(__tstate);
14228 if (PyErr_Occurred()) SWIG_fail;
14229 }
14230 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14231 return resultobj;
14232 fail:
14233 return NULL;
14234 }
14235
14236
14237 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14238 PyObject *resultobj = 0;
14239 wxString *arg1 = 0 ;
14240 wxFont *result = 0 ;
14241 bool temp1 = false ;
14242 PyObject * obj0 = 0 ;
14243 char * kwnames[] = {
14244 (char *) "info", NULL
14245 };
14246
14247 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
14248 {
14249 arg1 = wxString_in_helper(obj0);
14250 if (arg1 == NULL) SWIG_fail;
14251 temp1 = true;
14252 }
14253 {
14254 if (!wxPyCheckForApp()) SWIG_fail;
14255 PyThreadState* __tstate = wxPyBeginAllowThreads();
14256 result = (wxFont *)new_wxFont((wxString const &)*arg1);
14257 wxPyEndAllowThreads(__tstate);
14258 if (PyErr_Occurred()) SWIG_fail;
14259 }
14260 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14261 {
14262 if (temp1)
14263 delete arg1;
14264 }
14265 return resultobj;
14266 fail:
14267 {
14268 if (temp1)
14269 delete arg1;
14270 }
14271 return NULL;
14272 }
14273
14274
14275 SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14276 PyObject *resultobj = 0;
14277 int arg1 ;
14278 wxFontFamily arg2 ;
14279 int arg3 = (int) wxFONTFLAG_DEFAULT ;
14280 wxString const &arg4_defvalue = wxPyEmptyString ;
14281 wxString *arg4 = (wxString *) &arg4_defvalue ;
14282 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14283 wxFont *result = 0 ;
14284 int val1 ;
14285 int ecode1 = 0 ;
14286 int val2 ;
14287 int ecode2 = 0 ;
14288 int val3 ;
14289 int ecode3 = 0 ;
14290 bool temp4 = false ;
14291 int val5 ;
14292 int ecode5 = 0 ;
14293 PyObject * obj0 = 0 ;
14294 PyObject * obj1 = 0 ;
14295 PyObject * obj2 = 0 ;
14296 PyObject * obj3 = 0 ;
14297 PyObject * obj4 = 0 ;
14298 char * kwnames[] = {
14299 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14300 };
14301
14302 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14303 ecode1 = SWIG_AsVal_int(obj0, &val1);
14304 if (!SWIG_IsOK(ecode1)) {
14305 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
14306 }
14307 arg1 = static_cast< int >(val1);
14308 ecode2 = SWIG_AsVal_int(obj1, &val2);
14309 if (!SWIG_IsOK(ecode2)) {
14310 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
14311 }
14312 arg2 = static_cast< wxFontFamily >(val2);
14313 if (obj2) {
14314 ecode3 = SWIG_AsVal_int(obj2, &val3);
14315 if (!SWIG_IsOK(ecode3)) {
14316 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
14317 }
14318 arg3 = static_cast< int >(val3);
14319 }
14320 if (obj3) {
14321 {
14322 arg4 = wxString_in_helper(obj3);
14323 if (arg4 == NULL) SWIG_fail;
14324 temp4 = true;
14325 }
14326 }
14327 if (obj4) {
14328 ecode5 = SWIG_AsVal_int(obj4, &val5);
14329 if (!SWIG_IsOK(ecode5)) {
14330 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14331 }
14332 arg5 = static_cast< wxFontEncoding >(val5);
14333 }
14334 {
14335 if (!wxPyCheckForApp()) SWIG_fail;
14336 PyThreadState* __tstate = wxPyBeginAllowThreads();
14337 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14338 wxPyEndAllowThreads(__tstate);
14339 if (PyErr_Occurred()) SWIG_fail;
14340 }
14341 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14342 {
14343 if (temp4)
14344 delete arg4;
14345 }
14346 return resultobj;
14347 fail:
14348 {
14349 if (temp4)
14350 delete arg4;
14351 }
14352 return NULL;
14353 }
14354
14355
14356 SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14357 PyObject *resultobj = 0;
14358 wxSize *arg1 = 0 ;
14359 int arg2 ;
14360 int arg3 ;
14361 int arg4 ;
14362 bool arg5 = (bool) false ;
14363 wxString const &arg6_defvalue = wxEmptyString ;
14364 wxString *arg6 = (wxString *) &arg6_defvalue ;
14365 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14366 wxFont *result = 0 ;
14367 wxSize temp1 ;
14368 int val2 ;
14369 int ecode2 = 0 ;
14370 int val3 ;
14371 int ecode3 = 0 ;
14372 int val4 ;
14373 int ecode4 = 0 ;
14374 bool val5 ;
14375 int ecode5 = 0 ;
14376 bool temp6 = false ;
14377 int val7 ;
14378 int ecode7 = 0 ;
14379 PyObject * obj0 = 0 ;
14380 PyObject * obj1 = 0 ;
14381 PyObject * obj2 = 0 ;
14382 PyObject * obj3 = 0 ;
14383 PyObject * obj4 = 0 ;
14384 PyObject * obj5 = 0 ;
14385 PyObject * obj6 = 0 ;
14386 char * kwnames[] = {
14387 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
14388 };
14389
14390 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14391 {
14392 arg1 = &temp1;
14393 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14394 }
14395 ecode2 = SWIG_AsVal_int(obj1, &val2);
14396 if (!SWIG_IsOK(ecode2)) {
14397 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
14398 }
14399 arg2 = static_cast< int >(val2);
14400 ecode3 = SWIG_AsVal_int(obj2, &val3);
14401 if (!SWIG_IsOK(ecode3)) {
14402 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14403 }
14404 arg3 = static_cast< int >(val3);
14405 ecode4 = SWIG_AsVal_int(obj3, &val4);
14406 if (!SWIG_IsOK(ecode4)) {
14407 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
14408 }
14409 arg4 = static_cast< int >(val4);
14410 if (obj4) {
14411 ecode5 = SWIG_AsVal_bool(obj4, &val5);
14412 if (!SWIG_IsOK(ecode5)) {
14413 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
14414 }
14415 arg5 = static_cast< bool >(val5);
14416 }
14417 if (obj5) {
14418 {
14419 arg6 = wxString_in_helper(obj5);
14420 if (arg6 == NULL) SWIG_fail;
14421 temp6 = true;
14422 }
14423 }
14424 if (obj6) {
14425 ecode7 = SWIG_AsVal_int(obj6, &val7);
14426 if (!SWIG_IsOK(ecode7)) {
14427 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
14428 }
14429 arg7 = static_cast< wxFontEncoding >(val7);
14430 }
14431 {
14432 if (!wxPyCheckForApp()) SWIG_fail;
14433 PyThreadState* __tstate = wxPyBeginAllowThreads();
14434 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
14435 wxPyEndAllowThreads(__tstate);
14436 if (PyErr_Occurred()) SWIG_fail;
14437 }
14438 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14439 {
14440 if (temp6)
14441 delete arg6;
14442 }
14443 return resultobj;
14444 fail:
14445 {
14446 if (temp6)
14447 delete arg6;
14448 }
14449 return NULL;
14450 }
14451
14452
14453 SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14454 PyObject *resultobj = 0;
14455 wxSize *arg1 = 0 ;
14456 wxFontFamily arg2 ;
14457 int arg3 = (int) wxFONTFLAG_DEFAULT ;
14458 wxString const &arg4_defvalue = wxEmptyString ;
14459 wxString *arg4 = (wxString *) &arg4_defvalue ;
14460 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14461 wxFont *result = 0 ;
14462 wxSize temp1 ;
14463 int val2 ;
14464 int ecode2 = 0 ;
14465 int val3 ;
14466 int ecode3 = 0 ;
14467 bool temp4 = false ;
14468 int val5 ;
14469 int ecode5 = 0 ;
14470 PyObject * obj0 = 0 ;
14471 PyObject * obj1 = 0 ;
14472 PyObject * obj2 = 0 ;
14473 PyObject * obj3 = 0 ;
14474 PyObject * obj4 = 0 ;
14475 char * kwnames[] = {
14476 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14477 };
14478
14479 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14480 {
14481 arg1 = &temp1;
14482 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14483 }
14484 ecode2 = SWIG_AsVal_int(obj1, &val2);
14485 if (!SWIG_IsOK(ecode2)) {
14486 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
14487 }
14488 arg2 = static_cast< wxFontFamily >(val2);
14489 if (obj2) {
14490 ecode3 = SWIG_AsVal_int(obj2, &val3);
14491 if (!SWIG_IsOK(ecode3)) {
14492 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14493 }
14494 arg3 = static_cast< int >(val3);
14495 }
14496 if (obj3) {
14497 {
14498 arg4 = wxString_in_helper(obj3);
14499 if (arg4 == NULL) SWIG_fail;
14500 temp4 = true;
14501 }
14502 }
14503 if (obj4) {
14504 ecode5 = SWIG_AsVal_int(obj4, &val5);
14505 if (!SWIG_IsOK(ecode5)) {
14506 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14507 }
14508 arg5 = static_cast< wxFontEncoding >(val5);
14509 }
14510 {
14511 if (!wxPyCheckForApp()) SWIG_fail;
14512 PyThreadState* __tstate = wxPyBeginAllowThreads();
14513 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14514 wxPyEndAllowThreads(__tstate);
14515 if (PyErr_Occurred()) SWIG_fail;
14516 }
14517 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14518 {
14519 if (temp4)
14520 delete arg4;
14521 }
14522 return resultobj;
14523 fail:
14524 {
14525 if (temp4)
14526 delete arg4;
14527 }
14528 return NULL;
14529 }
14530
14531
14532 SWIGINTERN PyObject *_wrap_Font_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14533 PyObject *resultobj = 0;
14534 wxFont *arg1 = (wxFont *) 0 ;
14535 bool result;
14536 void *argp1 = 0 ;
14537 int res1 = 0 ;
14538 PyObject *swig_obj[1] ;
14539
14540 if (!args) SWIG_fail;
14541 swig_obj[0] = args;
14542 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14543 if (!SWIG_IsOK(res1)) {
14544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsOk" "', expected argument " "1"" of type '" "wxFont const *""'");
14545 }
14546 arg1 = reinterpret_cast< wxFont * >(argp1);
14547 {
14548 PyThreadState* __tstate = wxPyBeginAllowThreads();
14549 result = (bool)((wxFont const *)arg1)->IsOk();
14550 wxPyEndAllowThreads(__tstate);
14551 if (PyErr_Occurred()) SWIG_fail;
14552 }
14553 {
14554 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14555 }
14556 return resultobj;
14557 fail:
14558 return NULL;
14559 }
14560
14561
14562 SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14563 PyObject *resultobj = 0;
14564 wxFont *arg1 = (wxFont *) 0 ;
14565 wxFont *arg2 = (wxFont *) 0 ;
14566 bool result;
14567 void *argp1 = 0 ;
14568 int res1 = 0 ;
14569 void *argp2 = 0 ;
14570 int res2 = 0 ;
14571 PyObject * obj0 = 0 ;
14572 PyObject * obj1 = 0 ;
14573 char * kwnames[] = {
14574 (char *) "self",(char *) "other", NULL
14575 };
14576
14577 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
14578 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14579 if (!SWIG_IsOK(res1)) {
14580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
14581 }
14582 arg1 = reinterpret_cast< wxFont * >(argp1);
14583 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14584 if (!SWIG_IsOK(res2)) {
14585 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
14586 }
14587 arg2 = reinterpret_cast< wxFont * >(argp2);
14588 {
14589 PyThreadState* __tstate = wxPyBeginAllowThreads();
14590 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
14591 wxPyEndAllowThreads(__tstate);
14592 if (PyErr_Occurred()) SWIG_fail;
14593 }
14594 {
14595 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14596 }
14597 return resultobj;
14598 fail:
14599 return NULL;
14600 }
14601
14602
14603 SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14604 PyObject *resultobj = 0;
14605 wxFont *arg1 = (wxFont *) 0 ;
14606 wxFont *arg2 = (wxFont *) 0 ;
14607 bool result;
14608 void *argp1 = 0 ;
14609 int res1 = 0 ;
14610 void *argp2 = 0 ;
14611 int res2 = 0 ;
14612 PyObject * obj0 = 0 ;
14613 PyObject * obj1 = 0 ;
14614 char * kwnames[] = {
14615 (char *) "self",(char *) "other", NULL
14616 };
14617
14618 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
14619 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14620 if (!SWIG_IsOK(res1)) {
14621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
14622 }
14623 arg1 = reinterpret_cast< wxFont * >(argp1);
14624 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14625 if (!SWIG_IsOK(res2)) {
14626 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
14627 }
14628 arg2 = reinterpret_cast< wxFont * >(argp2);
14629 {
14630 PyThreadState* __tstate = wxPyBeginAllowThreads();
14631 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
14632 wxPyEndAllowThreads(__tstate);
14633 if (PyErr_Occurred()) SWIG_fail;
14634 }
14635 {
14636 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14637 }
14638 return resultobj;
14639 fail:
14640 return NULL;
14641 }
14642
14643
14644 SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14645 PyObject *resultobj = 0;
14646 wxFont *arg1 = (wxFont *) 0 ;
14647 int result;
14648 void *argp1 = 0 ;
14649 int res1 = 0 ;
14650 PyObject *swig_obj[1] ;
14651
14652 if (!args) SWIG_fail;
14653 swig_obj[0] = args;
14654 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14655 if (!SWIG_IsOK(res1)) {
14656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14657 }
14658 arg1 = reinterpret_cast< wxFont * >(argp1);
14659 {
14660 PyThreadState* __tstate = wxPyBeginAllowThreads();
14661 result = (int)((wxFont const *)arg1)->GetPointSize();
14662 wxPyEndAllowThreads(__tstate);
14663 if (PyErr_Occurred()) SWIG_fail;
14664 }
14665 resultobj = SWIG_From_int(static_cast< int >(result));
14666 return resultobj;
14667 fail:
14668 return NULL;
14669 }
14670
14671
14672 SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14673 PyObject *resultobj = 0;
14674 wxFont *arg1 = (wxFont *) 0 ;
14675 wxSize result;
14676 void *argp1 = 0 ;
14677 int res1 = 0 ;
14678 PyObject *swig_obj[1] ;
14679
14680 if (!args) SWIG_fail;
14681 swig_obj[0] = args;
14682 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14683 if (!SWIG_IsOK(res1)) {
14684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14685 }
14686 arg1 = reinterpret_cast< wxFont * >(argp1);
14687 {
14688 PyThreadState* __tstate = wxPyBeginAllowThreads();
14689 result = ((wxFont const *)arg1)->GetPixelSize();
14690 wxPyEndAllowThreads(__tstate);
14691 if (PyErr_Occurred()) SWIG_fail;
14692 }
14693 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
14694 return resultobj;
14695 fail:
14696 return NULL;
14697 }
14698
14699
14700 SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14701 PyObject *resultobj = 0;
14702 wxFont *arg1 = (wxFont *) 0 ;
14703 bool result;
14704 void *argp1 = 0 ;
14705 int res1 = 0 ;
14706 PyObject *swig_obj[1] ;
14707
14708 if (!args) SWIG_fail;
14709 swig_obj[0] = args;
14710 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14711 if (!SWIG_IsOK(res1)) {
14712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
14713 }
14714 arg1 = reinterpret_cast< wxFont * >(argp1);
14715 {
14716 PyThreadState* __tstate = wxPyBeginAllowThreads();
14717 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
14718 wxPyEndAllowThreads(__tstate);
14719 if (PyErr_Occurred()) SWIG_fail;
14720 }
14721 {
14722 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14723 }
14724 return resultobj;
14725 fail:
14726 return NULL;
14727 }
14728
14729
14730 SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14731 PyObject *resultobj = 0;
14732 wxFont *arg1 = (wxFont *) 0 ;
14733 int result;
14734 void *argp1 = 0 ;
14735 int res1 = 0 ;
14736 PyObject *swig_obj[1] ;
14737
14738 if (!args) SWIG_fail;
14739 swig_obj[0] = args;
14740 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14741 if (!SWIG_IsOK(res1)) {
14742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
14743 }
14744 arg1 = reinterpret_cast< wxFont * >(argp1);
14745 {
14746 PyThreadState* __tstate = wxPyBeginAllowThreads();
14747 result = (int)((wxFont const *)arg1)->GetFamily();
14748 wxPyEndAllowThreads(__tstate);
14749 if (PyErr_Occurred()) SWIG_fail;
14750 }
14751 resultobj = SWIG_From_int(static_cast< int >(result));
14752 return resultobj;
14753 fail:
14754 return NULL;
14755 }
14756
14757
14758 SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14759 PyObject *resultobj = 0;
14760 wxFont *arg1 = (wxFont *) 0 ;
14761 int result;
14762 void *argp1 = 0 ;
14763 int res1 = 0 ;
14764 PyObject *swig_obj[1] ;
14765
14766 if (!args) SWIG_fail;
14767 swig_obj[0] = args;
14768 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14769 if (!SWIG_IsOK(res1)) {
14770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
14771 }
14772 arg1 = reinterpret_cast< wxFont * >(argp1);
14773 {
14774 PyThreadState* __tstate = wxPyBeginAllowThreads();
14775 result = (int)((wxFont const *)arg1)->GetStyle();
14776 wxPyEndAllowThreads(__tstate);
14777 if (PyErr_Occurred()) SWIG_fail;
14778 }
14779 resultobj = SWIG_From_int(static_cast< int >(result));
14780 return resultobj;
14781 fail:
14782 return NULL;
14783 }
14784
14785
14786 SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14787 PyObject *resultobj = 0;
14788 wxFont *arg1 = (wxFont *) 0 ;
14789 int result;
14790 void *argp1 = 0 ;
14791 int res1 = 0 ;
14792 PyObject *swig_obj[1] ;
14793
14794 if (!args) SWIG_fail;
14795 swig_obj[0] = args;
14796 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14797 if (!SWIG_IsOK(res1)) {
14798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
14799 }
14800 arg1 = reinterpret_cast< wxFont * >(argp1);
14801 {
14802 PyThreadState* __tstate = wxPyBeginAllowThreads();
14803 result = (int)((wxFont const *)arg1)->GetWeight();
14804 wxPyEndAllowThreads(__tstate);
14805 if (PyErr_Occurred()) SWIG_fail;
14806 }
14807 resultobj = SWIG_From_int(static_cast< int >(result));
14808 return resultobj;
14809 fail:
14810 return NULL;
14811 }
14812
14813
14814 SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14815 PyObject *resultobj = 0;
14816 wxFont *arg1 = (wxFont *) 0 ;
14817 bool result;
14818 void *argp1 = 0 ;
14819 int res1 = 0 ;
14820 PyObject *swig_obj[1] ;
14821
14822 if (!args) SWIG_fail;
14823 swig_obj[0] = args;
14824 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14825 if (!SWIG_IsOK(res1)) {
14826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
14827 }
14828 arg1 = reinterpret_cast< wxFont * >(argp1);
14829 {
14830 PyThreadState* __tstate = wxPyBeginAllowThreads();
14831 result = (bool)((wxFont const *)arg1)->GetUnderlined();
14832 wxPyEndAllowThreads(__tstate);
14833 if (PyErr_Occurred()) SWIG_fail;
14834 }
14835 {
14836 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14837 }
14838 return resultobj;
14839 fail:
14840 return NULL;
14841 }
14842
14843
14844 SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14845 PyObject *resultobj = 0;
14846 wxFont *arg1 = (wxFont *) 0 ;
14847 wxString result;
14848 void *argp1 = 0 ;
14849 int res1 = 0 ;
14850 PyObject *swig_obj[1] ;
14851
14852 if (!args) SWIG_fail;
14853 swig_obj[0] = args;
14854 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14855 if (!SWIG_IsOK(res1)) {
14856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
14857 }
14858 arg1 = reinterpret_cast< wxFont * >(argp1);
14859 {
14860 PyThreadState* __tstate = wxPyBeginAllowThreads();
14861 result = ((wxFont const *)arg1)->GetFaceName();
14862 wxPyEndAllowThreads(__tstate);
14863 if (PyErr_Occurred()) SWIG_fail;
14864 }
14865 {
14866 #if wxUSE_UNICODE
14867 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14868 #else
14869 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14870 #endif
14871 }
14872 return resultobj;
14873 fail:
14874 return NULL;
14875 }
14876
14877
14878 SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14879 PyObject *resultobj = 0;
14880 wxFont *arg1 = (wxFont *) 0 ;
14881 wxFontEncoding result;
14882 void *argp1 = 0 ;
14883 int res1 = 0 ;
14884 PyObject *swig_obj[1] ;
14885
14886 if (!args) SWIG_fail;
14887 swig_obj[0] = args;
14888 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14889 if (!SWIG_IsOK(res1)) {
14890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
14891 }
14892 arg1 = reinterpret_cast< wxFont * >(argp1);
14893 {
14894 PyThreadState* __tstate = wxPyBeginAllowThreads();
14895 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
14896 wxPyEndAllowThreads(__tstate);
14897 if (PyErr_Occurred()) SWIG_fail;
14898 }
14899 resultobj = SWIG_From_int(static_cast< int >(result));
14900 return resultobj;
14901 fail:
14902 return NULL;
14903 }
14904
14905
14906 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14907 PyObject *resultobj = 0;
14908 wxFont *arg1 = (wxFont *) 0 ;
14909 wxNativeFontInfo *result = 0 ;
14910 void *argp1 = 0 ;
14911 int res1 = 0 ;
14912 PyObject *swig_obj[1] ;
14913
14914 if (!args) SWIG_fail;
14915 swig_obj[0] = args;
14916 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14917 if (!SWIG_IsOK(res1)) {
14918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
14919 }
14920 arg1 = reinterpret_cast< wxFont * >(argp1);
14921 {
14922 PyThreadState* __tstate = wxPyBeginAllowThreads();
14923 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
14924 wxPyEndAllowThreads(__tstate);
14925 if (PyErr_Occurred()) SWIG_fail;
14926 }
14927 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
14928 return resultobj;
14929 fail:
14930 return NULL;
14931 }
14932
14933
14934 SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14935 PyObject *resultobj = 0;
14936 wxFont *arg1 = (wxFont *) 0 ;
14937 bool result;
14938 void *argp1 = 0 ;
14939 int res1 = 0 ;
14940 PyObject *swig_obj[1] ;
14941
14942 if (!args) SWIG_fail;
14943 swig_obj[0] = args;
14944 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14945 if (!SWIG_IsOK(res1)) {
14946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
14947 }
14948 arg1 = reinterpret_cast< wxFont * >(argp1);
14949 {
14950 PyThreadState* __tstate = wxPyBeginAllowThreads();
14951 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
14952 wxPyEndAllowThreads(__tstate);
14953 if (PyErr_Occurred()) SWIG_fail;
14954 }
14955 {
14956 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14957 }
14958 return resultobj;
14959 fail:
14960 return NULL;
14961 }
14962
14963
14964 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14965 PyObject *resultobj = 0;
14966 wxFont *arg1 = (wxFont *) 0 ;
14967 wxString result;
14968 void *argp1 = 0 ;
14969 int res1 = 0 ;
14970 PyObject *swig_obj[1] ;
14971
14972 if (!args) SWIG_fail;
14973 swig_obj[0] = args;
14974 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14975 if (!SWIG_IsOK(res1)) {
14976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14977 }
14978 arg1 = reinterpret_cast< wxFont * >(argp1);
14979 {
14980 PyThreadState* __tstate = wxPyBeginAllowThreads();
14981 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
14982 wxPyEndAllowThreads(__tstate);
14983 if (PyErr_Occurred()) SWIG_fail;
14984 }
14985 {
14986 #if wxUSE_UNICODE
14987 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14988 #else
14989 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14990 #endif
14991 }
14992 return resultobj;
14993 fail:
14994 return NULL;
14995 }
14996
14997
14998 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14999 PyObject *resultobj = 0;
15000 wxFont *arg1 = (wxFont *) 0 ;
15001 wxString result;
15002 void *argp1 = 0 ;
15003 int res1 = 0 ;
15004 PyObject *swig_obj[1] ;
15005
15006 if (!args) SWIG_fail;
15007 swig_obj[0] = args;
15008 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15009 if (!SWIG_IsOK(res1)) {
15010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
15011 }
15012 arg1 = reinterpret_cast< wxFont * >(argp1);
15013 {
15014 PyThreadState* __tstate = wxPyBeginAllowThreads();
15015 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
15016 wxPyEndAllowThreads(__tstate);
15017 if (PyErr_Occurred()) SWIG_fail;
15018 }
15019 {
15020 #if wxUSE_UNICODE
15021 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15022 #else
15023 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15024 #endif
15025 }
15026 return resultobj;
15027 fail:
15028 return NULL;
15029 }
15030
15031
15032 SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15033 PyObject *resultobj = 0;
15034 wxFont *arg1 = (wxFont *) 0 ;
15035 int arg2 ;
15036 void *argp1 = 0 ;
15037 int res1 = 0 ;
15038 int val2 ;
15039 int ecode2 = 0 ;
15040 PyObject * obj0 = 0 ;
15041 PyObject * obj1 = 0 ;
15042 char * kwnames[] = {
15043 (char *) "self",(char *) "pointSize", NULL
15044 };
15045
15046 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
15047 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15048 if (!SWIG_IsOK(res1)) {
15049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
15050 }
15051 arg1 = reinterpret_cast< wxFont * >(argp1);
15052 ecode2 = SWIG_AsVal_int(obj1, &val2);
15053 if (!SWIG_IsOK(ecode2)) {
15054 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
15055 }
15056 arg2 = static_cast< int >(val2);
15057 {
15058 PyThreadState* __tstate = wxPyBeginAllowThreads();
15059 (arg1)->SetPointSize(arg2);
15060 wxPyEndAllowThreads(__tstate);
15061 if (PyErr_Occurred()) SWIG_fail;
15062 }
15063 resultobj = SWIG_Py_Void();
15064 return resultobj;
15065 fail:
15066 return NULL;
15067 }
15068
15069
15070 SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15071 PyObject *resultobj = 0;
15072 wxFont *arg1 = (wxFont *) 0 ;
15073 wxSize *arg2 = 0 ;
15074 void *argp1 = 0 ;
15075 int res1 = 0 ;
15076 wxSize temp2 ;
15077 PyObject * obj0 = 0 ;
15078 PyObject * obj1 = 0 ;
15079 char * kwnames[] = {
15080 (char *) "self",(char *) "pixelSize", NULL
15081 };
15082
15083 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
15084 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15085 if (!SWIG_IsOK(res1)) {
15086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
15087 }
15088 arg1 = reinterpret_cast< wxFont * >(argp1);
15089 {
15090 arg2 = &temp2;
15091 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15092 }
15093 {
15094 PyThreadState* __tstate = wxPyBeginAllowThreads();
15095 (arg1)->SetPixelSize((wxSize const &)*arg2);
15096 wxPyEndAllowThreads(__tstate);
15097 if (PyErr_Occurred()) SWIG_fail;
15098 }
15099 resultobj = SWIG_Py_Void();
15100 return resultobj;
15101 fail:
15102 return NULL;
15103 }
15104
15105
15106 SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15107 PyObject *resultobj = 0;
15108 wxFont *arg1 = (wxFont *) 0 ;
15109 int arg2 ;
15110 void *argp1 = 0 ;
15111 int res1 = 0 ;
15112 int val2 ;
15113 int ecode2 = 0 ;
15114 PyObject * obj0 = 0 ;
15115 PyObject * obj1 = 0 ;
15116 char * kwnames[] = {
15117 (char *) "self",(char *) "family", NULL
15118 };
15119
15120 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
15121 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15122 if (!SWIG_IsOK(res1)) {
15123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
15124 }
15125 arg1 = reinterpret_cast< wxFont * >(argp1);
15126 ecode2 = SWIG_AsVal_int(obj1, &val2);
15127 if (!SWIG_IsOK(ecode2)) {
15128 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
15129 }
15130 arg2 = static_cast< int >(val2);
15131 {
15132 PyThreadState* __tstate = wxPyBeginAllowThreads();
15133 (arg1)->SetFamily(arg2);
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_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15145 PyObject *resultobj = 0;
15146 wxFont *arg1 = (wxFont *) 0 ;
15147 int arg2 ;
15148 void *argp1 = 0 ;
15149 int res1 = 0 ;
15150 int val2 ;
15151 int ecode2 = 0 ;
15152 PyObject * obj0 = 0 ;
15153 PyObject * obj1 = 0 ;
15154 char * kwnames[] = {
15155 (char *) "self",(char *) "style", NULL
15156 };
15157
15158 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
15159 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15160 if (!SWIG_IsOK(res1)) {
15161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
15162 }
15163 arg1 = reinterpret_cast< wxFont * >(argp1);
15164 ecode2 = SWIG_AsVal_int(obj1, &val2);
15165 if (!SWIG_IsOK(ecode2)) {
15166 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
15167 }
15168 arg2 = static_cast< int >(val2);
15169 {
15170 PyThreadState* __tstate = wxPyBeginAllowThreads();
15171 (arg1)->SetStyle(arg2);
15172 wxPyEndAllowThreads(__tstate);
15173 if (PyErr_Occurred()) SWIG_fail;
15174 }
15175 resultobj = SWIG_Py_Void();
15176 return resultobj;
15177 fail:
15178 return NULL;
15179 }
15180
15181
15182 SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15183 PyObject *resultobj = 0;
15184 wxFont *arg1 = (wxFont *) 0 ;
15185 int arg2 ;
15186 void *argp1 = 0 ;
15187 int res1 = 0 ;
15188 int val2 ;
15189 int ecode2 = 0 ;
15190 PyObject * obj0 = 0 ;
15191 PyObject * obj1 = 0 ;
15192 char * kwnames[] = {
15193 (char *) "self",(char *) "weight", NULL
15194 };
15195
15196 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
15197 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15198 if (!SWIG_IsOK(res1)) {
15199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
15200 }
15201 arg1 = reinterpret_cast< wxFont * >(argp1);
15202 ecode2 = SWIG_AsVal_int(obj1, &val2);
15203 if (!SWIG_IsOK(ecode2)) {
15204 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
15205 }
15206 arg2 = static_cast< int >(val2);
15207 {
15208 PyThreadState* __tstate = wxPyBeginAllowThreads();
15209 (arg1)->SetWeight(arg2);
15210 wxPyEndAllowThreads(__tstate);
15211 if (PyErr_Occurred()) SWIG_fail;
15212 }
15213 resultobj = SWIG_Py_Void();
15214 return resultobj;
15215 fail:
15216 return NULL;
15217 }
15218
15219
15220 SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15221 PyObject *resultobj = 0;
15222 wxFont *arg1 = (wxFont *) 0 ;
15223 wxString *arg2 = 0 ;
15224 bool result;
15225 void *argp1 = 0 ;
15226 int res1 = 0 ;
15227 bool temp2 = false ;
15228 PyObject * obj0 = 0 ;
15229 PyObject * obj1 = 0 ;
15230 char * kwnames[] = {
15231 (char *) "self",(char *) "faceName", NULL
15232 };
15233
15234 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
15235 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15236 if (!SWIG_IsOK(res1)) {
15237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
15238 }
15239 arg1 = reinterpret_cast< wxFont * >(argp1);
15240 {
15241 arg2 = wxString_in_helper(obj1);
15242 if (arg2 == NULL) SWIG_fail;
15243 temp2 = true;
15244 }
15245 {
15246 PyThreadState* __tstate = wxPyBeginAllowThreads();
15247 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
15248 wxPyEndAllowThreads(__tstate);
15249 if (PyErr_Occurred()) SWIG_fail;
15250 }
15251 {
15252 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15253 }
15254 {
15255 if (temp2)
15256 delete arg2;
15257 }
15258 return resultobj;
15259 fail:
15260 {
15261 if (temp2)
15262 delete arg2;
15263 }
15264 return NULL;
15265 }
15266
15267
15268 SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15269 PyObject *resultobj = 0;
15270 wxFont *arg1 = (wxFont *) 0 ;
15271 bool arg2 ;
15272 void *argp1 = 0 ;
15273 int res1 = 0 ;
15274 bool val2 ;
15275 int ecode2 = 0 ;
15276 PyObject * obj0 = 0 ;
15277 PyObject * obj1 = 0 ;
15278 char * kwnames[] = {
15279 (char *) "self",(char *) "underlined", NULL
15280 };
15281
15282 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
15283 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15284 if (!SWIG_IsOK(res1)) {
15285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
15286 }
15287 arg1 = reinterpret_cast< wxFont * >(argp1);
15288 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15289 if (!SWIG_IsOK(ecode2)) {
15290 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
15291 }
15292 arg2 = static_cast< bool >(val2);
15293 {
15294 PyThreadState* __tstate = wxPyBeginAllowThreads();
15295 (arg1)->SetUnderlined(arg2);
15296 wxPyEndAllowThreads(__tstate);
15297 if (PyErr_Occurred()) SWIG_fail;
15298 }
15299 resultobj = SWIG_Py_Void();
15300 return resultobj;
15301 fail:
15302 return NULL;
15303 }
15304
15305
15306 SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15307 PyObject *resultobj = 0;
15308 wxFont *arg1 = (wxFont *) 0 ;
15309 wxFontEncoding arg2 ;
15310 void *argp1 = 0 ;
15311 int res1 = 0 ;
15312 int val2 ;
15313 int ecode2 = 0 ;
15314 PyObject * obj0 = 0 ;
15315 PyObject * obj1 = 0 ;
15316 char * kwnames[] = {
15317 (char *) "self",(char *) "encoding", NULL
15318 };
15319
15320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
15321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15322 if (!SWIG_IsOK(res1)) {
15323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
15324 }
15325 arg1 = reinterpret_cast< wxFont * >(argp1);
15326 ecode2 = SWIG_AsVal_int(obj1, &val2);
15327 if (!SWIG_IsOK(ecode2)) {
15328 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15329 }
15330 arg2 = static_cast< wxFontEncoding >(val2);
15331 {
15332 PyThreadState* __tstate = wxPyBeginAllowThreads();
15333 (arg1)->SetEncoding(arg2);
15334 wxPyEndAllowThreads(__tstate);
15335 if (PyErr_Occurred()) SWIG_fail;
15336 }
15337 resultobj = SWIG_Py_Void();
15338 return resultobj;
15339 fail:
15340 return NULL;
15341 }
15342
15343
15344 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15345 PyObject *resultobj = 0;
15346 wxFont *arg1 = (wxFont *) 0 ;
15347 wxNativeFontInfo *arg2 = 0 ;
15348 void *argp1 = 0 ;
15349 int res1 = 0 ;
15350 void *argp2 = 0 ;
15351 int res2 = 0 ;
15352 PyObject * obj0 = 0 ;
15353 PyObject * obj1 = 0 ;
15354 char * kwnames[] = {
15355 (char *) "self",(char *) "info", NULL
15356 };
15357
15358 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
15359 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15360 if (!SWIG_IsOK(res1)) {
15361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
15362 }
15363 arg1 = reinterpret_cast< wxFont * >(argp1);
15364 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
15365 if (!SWIG_IsOK(res2)) {
15366 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15367 }
15368 if (!argp2) {
15369 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15370 }
15371 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
15372 {
15373 PyThreadState* __tstate = wxPyBeginAllowThreads();
15374 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
15375 wxPyEndAllowThreads(__tstate);
15376 if (PyErr_Occurred()) SWIG_fail;
15377 }
15378 resultobj = SWIG_Py_Void();
15379 return resultobj;
15380 fail:
15381 return NULL;
15382 }
15383
15384
15385 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15386 PyObject *resultobj = 0;
15387 wxFont *arg1 = (wxFont *) 0 ;
15388 wxString *arg2 = 0 ;
15389 bool result;
15390 void *argp1 = 0 ;
15391 int res1 = 0 ;
15392 bool temp2 = false ;
15393 PyObject * obj0 = 0 ;
15394 PyObject * obj1 = 0 ;
15395 char * kwnames[] = {
15396 (char *) "self",(char *) "info", NULL
15397 };
15398
15399 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
15400 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15401 if (!SWIG_IsOK(res1)) {
15402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
15403 }
15404 arg1 = reinterpret_cast< wxFont * >(argp1);
15405 {
15406 arg2 = wxString_in_helper(obj1);
15407 if (arg2 == NULL) SWIG_fail;
15408 temp2 = true;
15409 }
15410 {
15411 PyThreadState* __tstate = wxPyBeginAllowThreads();
15412 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
15413 wxPyEndAllowThreads(__tstate);
15414 if (PyErr_Occurred()) SWIG_fail;
15415 }
15416 {
15417 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15418 }
15419 {
15420 if (temp2)
15421 delete arg2;
15422 }
15423 return resultobj;
15424 fail:
15425 {
15426 if (temp2)
15427 delete arg2;
15428 }
15429 return NULL;
15430 }
15431
15432
15433 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15434 PyObject *resultobj = 0;
15435 wxFont *arg1 = (wxFont *) 0 ;
15436 wxString *arg2 = 0 ;
15437 bool result;
15438 void *argp1 = 0 ;
15439 int res1 = 0 ;
15440 bool temp2 = false ;
15441 PyObject * obj0 = 0 ;
15442 PyObject * obj1 = 0 ;
15443 char * kwnames[] = {
15444 (char *) "self",(char *) "info", NULL
15445 };
15446
15447 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
15448 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15449 if (!SWIG_IsOK(res1)) {
15450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
15451 }
15452 arg1 = reinterpret_cast< wxFont * >(argp1);
15453 {
15454 arg2 = wxString_in_helper(obj1);
15455 if (arg2 == NULL) SWIG_fail;
15456 temp2 = true;
15457 }
15458 {
15459 PyThreadState* __tstate = wxPyBeginAllowThreads();
15460 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
15461 wxPyEndAllowThreads(__tstate);
15462 if (PyErr_Occurred()) SWIG_fail;
15463 }
15464 {
15465 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15466 }
15467 {
15468 if (temp2)
15469 delete arg2;
15470 }
15471 return resultobj;
15472 fail:
15473 {
15474 if (temp2)
15475 delete arg2;
15476 }
15477 return NULL;
15478 }
15479
15480
15481 SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15482 PyObject *resultobj = 0;
15483 wxFont *arg1 = (wxFont *) 0 ;
15484 wxString result;
15485 void *argp1 = 0 ;
15486 int res1 = 0 ;
15487 PyObject *swig_obj[1] ;
15488
15489 if (!args) SWIG_fail;
15490 swig_obj[0] = args;
15491 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15492 if (!SWIG_IsOK(res1)) {
15493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
15494 }
15495 arg1 = reinterpret_cast< wxFont * >(argp1);
15496 {
15497 PyThreadState* __tstate = wxPyBeginAllowThreads();
15498 result = ((wxFont const *)arg1)->GetFamilyString();
15499 wxPyEndAllowThreads(__tstate);
15500 if (PyErr_Occurred()) SWIG_fail;
15501 }
15502 {
15503 #if wxUSE_UNICODE
15504 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15505 #else
15506 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15507 #endif
15508 }
15509 return resultobj;
15510 fail:
15511 return NULL;
15512 }
15513
15514
15515 SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15516 PyObject *resultobj = 0;
15517 wxFont *arg1 = (wxFont *) 0 ;
15518 wxString result;
15519 void *argp1 = 0 ;
15520 int res1 = 0 ;
15521 PyObject *swig_obj[1] ;
15522
15523 if (!args) SWIG_fail;
15524 swig_obj[0] = args;
15525 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15526 if (!SWIG_IsOK(res1)) {
15527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
15528 }
15529 arg1 = reinterpret_cast< wxFont * >(argp1);
15530 {
15531 PyThreadState* __tstate = wxPyBeginAllowThreads();
15532 result = ((wxFont const *)arg1)->GetStyleString();
15533 wxPyEndAllowThreads(__tstate);
15534 if (PyErr_Occurred()) SWIG_fail;
15535 }
15536 {
15537 #if wxUSE_UNICODE
15538 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15539 #else
15540 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15541 #endif
15542 }
15543 return resultobj;
15544 fail:
15545 return NULL;
15546 }
15547
15548
15549 SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15550 PyObject *resultobj = 0;
15551 wxFont *arg1 = (wxFont *) 0 ;
15552 wxString result;
15553 void *argp1 = 0 ;
15554 int res1 = 0 ;
15555 PyObject *swig_obj[1] ;
15556
15557 if (!args) SWIG_fail;
15558 swig_obj[0] = args;
15559 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15560 if (!SWIG_IsOK(res1)) {
15561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
15562 }
15563 arg1 = reinterpret_cast< wxFont * >(argp1);
15564 {
15565 PyThreadState* __tstate = wxPyBeginAllowThreads();
15566 result = ((wxFont const *)arg1)->GetWeightString();
15567 wxPyEndAllowThreads(__tstate);
15568 if (PyErr_Occurred()) SWIG_fail;
15569 }
15570 {
15571 #if wxUSE_UNICODE
15572 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15573 #else
15574 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15575 #endif
15576 }
15577 return resultobj;
15578 fail:
15579 return NULL;
15580 }
15581
15582
15583 SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15584 PyObject *resultobj = 0;
15585 wxFont *arg1 = (wxFont *) 0 ;
15586 bool arg2 = (bool) true ;
15587 void *argp1 = 0 ;
15588 int res1 = 0 ;
15589 bool val2 ;
15590 int ecode2 = 0 ;
15591 PyObject * obj0 = 0 ;
15592 PyObject * obj1 = 0 ;
15593 char * kwnames[] = {
15594 (char *) "self",(char *) "no", NULL
15595 };
15596
15597 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
15598 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15599 if (!SWIG_IsOK(res1)) {
15600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
15601 }
15602 arg1 = reinterpret_cast< wxFont * >(argp1);
15603 if (obj1) {
15604 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15605 if (!SWIG_IsOK(ecode2)) {
15606 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
15607 }
15608 arg2 = static_cast< bool >(val2);
15609 }
15610 {
15611 PyThreadState* __tstate = wxPyBeginAllowThreads();
15612 (arg1)->SetNoAntiAliasing(arg2);
15613 wxPyEndAllowThreads(__tstate);
15614 if (PyErr_Occurred()) SWIG_fail;
15615 }
15616 resultobj = SWIG_Py_Void();
15617 return resultobj;
15618 fail:
15619 return NULL;
15620 }
15621
15622
15623 SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15624 PyObject *resultobj = 0;
15625 wxFont *arg1 = (wxFont *) 0 ;
15626 bool result;
15627 void *argp1 = 0 ;
15628 int res1 = 0 ;
15629 PyObject *swig_obj[1] ;
15630
15631 if (!args) SWIG_fail;
15632 swig_obj[0] = args;
15633 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15634 if (!SWIG_IsOK(res1)) {
15635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
15636 }
15637 arg1 = reinterpret_cast< wxFont * >(argp1);
15638 {
15639 PyThreadState* __tstate = wxPyBeginAllowThreads();
15640 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
15641 wxPyEndAllowThreads(__tstate);
15642 if (PyErr_Occurred()) SWIG_fail;
15643 }
15644 {
15645 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15646 }
15647 return resultobj;
15648 fail:
15649 return NULL;
15650 }
15651
15652
15653 SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15654 PyObject *resultobj = 0;
15655 wxFontEncoding result;
15656
15657 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
15658 {
15659 if (!wxPyCheckForApp()) SWIG_fail;
15660 PyThreadState* __tstate = wxPyBeginAllowThreads();
15661 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
15662 wxPyEndAllowThreads(__tstate);
15663 if (PyErr_Occurred()) SWIG_fail;
15664 }
15665 resultobj = SWIG_From_int(static_cast< int >(result));
15666 return resultobj;
15667 fail:
15668 return NULL;
15669 }
15670
15671
15672 SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15673 PyObject *resultobj = 0;
15674 wxFontEncoding arg1 ;
15675 int val1 ;
15676 int ecode1 = 0 ;
15677 PyObject * obj0 = 0 ;
15678 char * kwnames[] = {
15679 (char *) "encoding", NULL
15680 };
15681
15682 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
15683 ecode1 = SWIG_AsVal_int(obj0, &val1);
15684 if (!SWIG_IsOK(ecode1)) {
15685 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
15686 }
15687 arg1 = static_cast< wxFontEncoding >(val1);
15688 {
15689 if (!wxPyCheckForApp()) SWIG_fail;
15690 PyThreadState* __tstate = wxPyBeginAllowThreads();
15691 wxFont::SetDefaultEncoding(arg1);
15692 wxPyEndAllowThreads(__tstate);
15693 if (PyErr_Occurred()) SWIG_fail;
15694 }
15695 resultobj = SWIG_Py_Void();
15696 return resultobj;
15697 fail:
15698 return NULL;
15699 }
15700
15701
15702 SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15703 PyObject *obj;
15704 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15705 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
15706 return SWIG_Py_Void();
15707 }
15708
15709 SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15710 return SWIG_Python_InitShadowInstance(args);
15711 }
15712
15713 SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15714 PyObject *resultobj = 0;
15715 wxPyFontEnumerator *result = 0 ;
15716
15717 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
15718 {
15719 if (!wxPyCheckForApp()) SWIG_fail;
15720 PyThreadState* __tstate = wxPyBeginAllowThreads();
15721 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
15722 wxPyEndAllowThreads(__tstate);
15723 if (PyErr_Occurred()) SWIG_fail;
15724 }
15725 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
15726 return resultobj;
15727 fail:
15728 return NULL;
15729 }
15730
15731
15732 SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15733 PyObject *resultobj = 0;
15734 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15735 void *argp1 = 0 ;
15736 int res1 = 0 ;
15737 PyObject *swig_obj[1] ;
15738
15739 if (!args) SWIG_fail;
15740 swig_obj[0] = args;
15741 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
15742 if (!SWIG_IsOK(res1)) {
15743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15744 }
15745 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15746 {
15747 PyThreadState* __tstate = wxPyBeginAllowThreads();
15748 delete arg1;
15749
15750 wxPyEndAllowThreads(__tstate);
15751 if (PyErr_Occurred()) SWIG_fail;
15752 }
15753 resultobj = SWIG_Py_Void();
15754 return resultobj;
15755 fail:
15756 return NULL;
15757 }
15758
15759
15760 SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15761 PyObject *resultobj = 0;
15762 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15763 PyObject *arg2 = (PyObject *) 0 ;
15764 PyObject *arg3 = (PyObject *) 0 ;
15765 bool arg4 ;
15766 void *argp1 = 0 ;
15767 int res1 = 0 ;
15768 bool val4 ;
15769 int ecode4 = 0 ;
15770 PyObject * obj0 = 0 ;
15771 PyObject * obj1 = 0 ;
15772 PyObject * obj2 = 0 ;
15773 PyObject * obj3 = 0 ;
15774 char * kwnames[] = {
15775 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
15776 };
15777
15778 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15779 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15780 if (!SWIG_IsOK(res1)) {
15781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15782 }
15783 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15784 arg2 = obj1;
15785 arg3 = obj2;
15786 ecode4 = SWIG_AsVal_bool(obj3, &val4);
15787 if (!SWIG_IsOK(ecode4)) {
15788 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'");
15789 }
15790 arg4 = static_cast< bool >(val4);
15791 {
15792 PyThreadState* __tstate = wxPyBeginAllowThreads();
15793 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
15794 wxPyEndAllowThreads(__tstate);
15795 if (PyErr_Occurred()) SWIG_fail;
15796 }
15797 resultobj = SWIG_Py_Void();
15798 return resultobj;
15799 fail:
15800 return NULL;
15801 }
15802
15803
15804 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15805 PyObject *resultobj = 0;
15806 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15807 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
15808 bool arg3 = (bool) false ;
15809 bool result;
15810 void *argp1 = 0 ;
15811 int res1 = 0 ;
15812 int val2 ;
15813 int ecode2 = 0 ;
15814 bool val3 ;
15815 int ecode3 = 0 ;
15816 PyObject * obj0 = 0 ;
15817 PyObject * obj1 = 0 ;
15818 PyObject * obj2 = 0 ;
15819 char * kwnames[] = {
15820 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
15821 };
15822
15823 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15824 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15825 if (!SWIG_IsOK(res1)) {
15826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15827 }
15828 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15829 if (obj1) {
15830 ecode2 = SWIG_AsVal_int(obj1, &val2);
15831 if (!SWIG_IsOK(ecode2)) {
15832 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15833 }
15834 arg2 = static_cast< wxFontEncoding >(val2);
15835 }
15836 if (obj2) {
15837 ecode3 = SWIG_AsVal_bool(obj2, &val3);
15838 if (!SWIG_IsOK(ecode3)) {
15839 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
15840 }
15841 arg3 = static_cast< bool >(val3);
15842 }
15843 {
15844 PyThreadState* __tstate = wxPyBeginAllowThreads();
15845 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
15846 wxPyEndAllowThreads(__tstate);
15847 if (PyErr_Occurred()) SWIG_fail;
15848 }
15849 {
15850 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15851 }
15852 return resultobj;
15853 fail:
15854 return NULL;
15855 }
15856
15857
15858 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15859 PyObject *resultobj = 0;
15860 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15861 wxString const &arg2_defvalue = wxPyEmptyString ;
15862 wxString *arg2 = (wxString *) &arg2_defvalue ;
15863 bool result;
15864 void *argp1 = 0 ;
15865 int res1 = 0 ;
15866 bool temp2 = false ;
15867 PyObject * obj0 = 0 ;
15868 PyObject * obj1 = 0 ;
15869 char * kwnames[] = {
15870 (char *) "self",(char *) "facename", NULL
15871 };
15872
15873 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
15874 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15875 if (!SWIG_IsOK(res1)) {
15876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15877 }
15878 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15879 if (obj1) {
15880 {
15881 arg2 = wxString_in_helper(obj1);
15882 if (arg2 == NULL) SWIG_fail;
15883 temp2 = true;
15884 }
15885 }
15886 {
15887 PyThreadState* __tstate = wxPyBeginAllowThreads();
15888 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
15889 wxPyEndAllowThreads(__tstate);
15890 if (PyErr_Occurred()) SWIG_fail;
15891 }
15892 {
15893 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15894 }
15895 {
15896 if (temp2)
15897 delete arg2;
15898 }
15899 return resultobj;
15900 fail:
15901 {
15902 if (temp2)
15903 delete arg2;
15904 }
15905 return NULL;
15906 }
15907
15908
15909 SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15910 PyObject *resultobj = 0;
15911 PyObject *result = 0 ;
15912
15913 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
15914 {
15915 PyThreadState* __tstate = wxPyBeginAllowThreads();
15916 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
15917 wxPyEndAllowThreads(__tstate);
15918 if (PyErr_Occurred()) SWIG_fail;
15919 }
15920 resultobj = result;
15921 return resultobj;
15922 fail:
15923 return NULL;
15924 }
15925
15926
15927 SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15928 PyObject *resultobj = 0;
15929 PyObject *result = 0 ;
15930
15931 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
15932 {
15933 PyThreadState* __tstate = wxPyBeginAllowThreads();
15934 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
15935 wxPyEndAllowThreads(__tstate);
15936 if (PyErr_Occurred()) SWIG_fail;
15937 }
15938 resultobj = result;
15939 return resultobj;
15940 fail:
15941 return NULL;
15942 }
15943
15944
15945 SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15946 PyObject *resultobj = 0;
15947 wxString *arg1 = 0 ;
15948 bool result;
15949 bool temp1 = false ;
15950 PyObject * obj0 = 0 ;
15951 char * kwnames[] = {
15952 (char *) "str", NULL
15953 };
15954
15955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
15956 {
15957 arg1 = wxString_in_helper(obj0);
15958 if (arg1 == NULL) SWIG_fail;
15959 temp1 = true;
15960 }
15961 {
15962 PyThreadState* __tstate = wxPyBeginAllowThreads();
15963 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
15964 wxPyEndAllowThreads(__tstate);
15965 if (PyErr_Occurred()) SWIG_fail;
15966 }
15967 {
15968 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15969 }
15970 {
15971 if (temp1)
15972 delete arg1;
15973 }
15974 return resultobj;
15975 fail:
15976 {
15977 if (temp1)
15978 delete arg1;
15979 }
15980 return NULL;
15981 }
15982
15983
15984 SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15985 PyObject *obj;
15986 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15987 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
15988 return SWIG_Py_Void();
15989 }
15990
15991 SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15992 return SWIG_Python_InitShadowInstance(args);
15993 }
15994
15995 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15996 PyObject *resultobj = 0;
15997 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15998 int arg2 ;
15999 void *argp1 = 0 ;
16000 int res1 = 0 ;
16001 int val2 ;
16002 int ecode2 = 0 ;
16003 PyObject *swig_obj[2] ;
16004
16005 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
16006 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16007 if (!SWIG_IsOK(res1)) {
16008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16009 }
16010 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16011 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
16012 if (!SWIG_IsOK(ecode2)) {
16013 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
16014 }
16015 arg2 = static_cast< int >(val2);
16016 if (arg1) (arg1)->Language = arg2;
16017
16018 resultobj = SWIG_Py_Void();
16019 return resultobj;
16020 fail:
16021 return NULL;
16022 }
16023
16024
16025 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16026 PyObject *resultobj = 0;
16027 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16028 int result;
16029 void *argp1 = 0 ;
16030 int res1 = 0 ;
16031 PyObject *swig_obj[1] ;
16032
16033 if (!args) SWIG_fail;
16034 swig_obj[0] = args;
16035 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16036 if (!SWIG_IsOK(res1)) {
16037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16038 }
16039 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16040 result = (int) ((arg1)->Language);
16041 resultobj = SWIG_From_int(static_cast< int >(result));
16042 return resultobj;
16043 fail:
16044 return NULL;
16045 }
16046
16047
16048 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16049 PyObject *resultobj = 0;
16050 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16051 wxString *arg2 = (wxString *) 0 ;
16052 void *argp1 = 0 ;
16053 int res1 = 0 ;
16054 bool temp2 = false ;
16055 PyObject *swig_obj[2] ;
16056
16057 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
16058 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16059 if (!SWIG_IsOK(res1)) {
16060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16061 }
16062 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16063 {
16064 arg2 = wxString_in_helper(swig_obj[1]);
16065 if (arg2 == NULL) SWIG_fail;
16066 temp2 = true;
16067 }
16068 if (arg1) (arg1)->CanonicalName = *arg2;
16069
16070 resultobj = SWIG_Py_Void();
16071 {
16072 if (temp2)
16073 delete arg2;
16074 }
16075 return resultobj;
16076 fail:
16077 {
16078 if (temp2)
16079 delete arg2;
16080 }
16081 return NULL;
16082 }
16083
16084
16085 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16086 PyObject *resultobj = 0;
16087 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16088 wxString *result = 0 ;
16089 void *argp1 = 0 ;
16090 int res1 = 0 ;
16091 PyObject *swig_obj[1] ;
16092
16093 if (!args) SWIG_fail;
16094 swig_obj[0] = args;
16095 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16096 if (!SWIG_IsOK(res1)) {
16097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16098 }
16099 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16100 result = (wxString *)& ((arg1)->CanonicalName);
16101 {
16102 #if wxUSE_UNICODE
16103 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16104 #else
16105 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16106 #endif
16107 }
16108 return resultobj;
16109 fail:
16110 return NULL;
16111 }
16112
16113
16114 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16115 PyObject *resultobj = 0;
16116 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16117 wxString *arg2 = (wxString *) 0 ;
16118 void *argp1 = 0 ;
16119 int res1 = 0 ;
16120 bool temp2 = false ;
16121 PyObject *swig_obj[2] ;
16122
16123 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
16124 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16125 if (!SWIG_IsOK(res1)) {
16126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16127 }
16128 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16129 {
16130 arg2 = wxString_in_helper(swig_obj[1]);
16131 if (arg2 == NULL) SWIG_fail;
16132 temp2 = true;
16133 }
16134 if (arg1) (arg1)->Description = *arg2;
16135
16136 resultobj = SWIG_Py_Void();
16137 {
16138 if (temp2)
16139 delete arg2;
16140 }
16141 return resultobj;
16142 fail:
16143 {
16144 if (temp2)
16145 delete arg2;
16146 }
16147 return NULL;
16148 }
16149
16150
16151 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16152 PyObject *resultobj = 0;
16153 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16154 wxString *result = 0 ;
16155 void *argp1 = 0 ;
16156 int res1 = 0 ;
16157 PyObject *swig_obj[1] ;
16158
16159 if (!args) SWIG_fail;
16160 swig_obj[0] = args;
16161 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16162 if (!SWIG_IsOK(res1)) {
16163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16164 }
16165 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16166 result = (wxString *)& ((arg1)->Description);
16167 {
16168 #if wxUSE_UNICODE
16169 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16170 #else
16171 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16172 #endif
16173 }
16174 return resultobj;
16175 fail:
16176 return NULL;
16177 }
16178
16179
16180 SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16181 PyObject *obj;
16182 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16183 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
16184 return SWIG_Py_Void();
16185 }
16186
16187 SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16188 PyObject *resultobj = 0;
16189 int arg1 = (int) -1 ;
16190 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16191 wxLocale *result = 0 ;
16192 int val1 ;
16193 int ecode1 = 0 ;
16194 int val2 ;
16195 int ecode2 = 0 ;
16196 PyObject * obj0 = 0 ;
16197 PyObject * obj1 = 0 ;
16198 char * kwnames[] = {
16199 (char *) "language",(char *) "flags", NULL
16200 };
16201
16202 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
16203 if (obj0) {
16204 ecode1 = SWIG_AsVal_int(obj0, &val1);
16205 if (!SWIG_IsOK(ecode1)) {
16206 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
16207 }
16208 arg1 = static_cast< int >(val1);
16209 }
16210 if (obj1) {
16211 ecode2 = SWIG_AsVal_int(obj1, &val2);
16212 if (!SWIG_IsOK(ecode2)) {
16213 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
16214 }
16215 arg2 = static_cast< int >(val2);
16216 }
16217 {
16218 PyThreadState* __tstate = wxPyBeginAllowThreads();
16219 result = (wxLocale *)new_wxLocale(arg1,arg2);
16220 wxPyEndAllowThreads(__tstate);
16221 if (PyErr_Occurred()) SWIG_fail;
16222 }
16223 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
16224 return resultobj;
16225 fail:
16226 return NULL;
16227 }
16228
16229
16230 SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16231 PyObject *resultobj = 0;
16232 wxLocale *arg1 = (wxLocale *) 0 ;
16233 void *argp1 = 0 ;
16234 int res1 = 0 ;
16235 PyObject *swig_obj[1] ;
16236
16237 if (!args) SWIG_fail;
16238 swig_obj[0] = args;
16239 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
16240 if (!SWIG_IsOK(res1)) {
16241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
16242 }
16243 arg1 = reinterpret_cast< wxLocale * >(argp1);
16244 {
16245 PyThreadState* __tstate = wxPyBeginAllowThreads();
16246 delete arg1;
16247
16248 wxPyEndAllowThreads(__tstate);
16249 if (PyErr_Occurred()) SWIG_fail;
16250 }
16251 resultobj = SWIG_Py_Void();
16252 return resultobj;
16253 fail:
16254 return NULL;
16255 }
16256
16257
16258 SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16259 PyObject *resultobj = 0;
16260 wxLocale *arg1 = (wxLocale *) 0 ;
16261 wxString *arg2 = 0 ;
16262 wxString const &arg3_defvalue = wxPyEmptyString ;
16263 wxString *arg3 = (wxString *) &arg3_defvalue ;
16264 wxString const &arg4_defvalue = wxPyEmptyString ;
16265 wxString *arg4 = (wxString *) &arg4_defvalue ;
16266 bool arg5 = (bool) true ;
16267 bool arg6 = (bool) false ;
16268 bool result;
16269 void *argp1 = 0 ;
16270 int res1 = 0 ;
16271 bool temp2 = false ;
16272 bool temp3 = false ;
16273 bool temp4 = false ;
16274 bool val5 ;
16275 int ecode5 = 0 ;
16276 bool val6 ;
16277 int ecode6 = 0 ;
16278 PyObject * obj0 = 0 ;
16279 PyObject * obj1 = 0 ;
16280 PyObject * obj2 = 0 ;
16281 PyObject * obj3 = 0 ;
16282 PyObject * obj4 = 0 ;
16283 PyObject * obj5 = 0 ;
16284 char * kwnames[] = {
16285 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
16286 };
16287
16288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
16289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16290 if (!SWIG_IsOK(res1)) {
16291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
16292 }
16293 arg1 = reinterpret_cast< wxLocale * >(argp1);
16294 {
16295 arg2 = wxString_in_helper(obj1);
16296 if (arg2 == NULL) SWIG_fail;
16297 temp2 = true;
16298 }
16299 if (obj2) {
16300 {
16301 arg3 = wxString_in_helper(obj2);
16302 if (arg3 == NULL) SWIG_fail;
16303 temp3 = true;
16304 }
16305 }
16306 if (obj3) {
16307 {
16308 arg4 = wxString_in_helper(obj3);
16309 if (arg4 == NULL) SWIG_fail;
16310 temp4 = true;
16311 }
16312 }
16313 if (obj4) {
16314 ecode5 = SWIG_AsVal_bool(obj4, &val5);
16315 if (!SWIG_IsOK(ecode5)) {
16316 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
16317 }
16318 arg5 = static_cast< bool >(val5);
16319 }
16320 if (obj5) {
16321 ecode6 = SWIG_AsVal_bool(obj5, &val6);
16322 if (!SWIG_IsOK(ecode6)) {
16323 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
16324 }
16325 arg6 = static_cast< bool >(val6);
16326 }
16327 {
16328 PyThreadState* __tstate = wxPyBeginAllowThreads();
16329 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
16330 wxPyEndAllowThreads(__tstate);
16331 if (PyErr_Occurred()) SWIG_fail;
16332 }
16333 {
16334 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16335 }
16336 {
16337 if (temp2)
16338 delete arg2;
16339 }
16340 {
16341 if (temp3)
16342 delete arg3;
16343 }
16344 {
16345 if (temp4)
16346 delete arg4;
16347 }
16348 return resultobj;
16349 fail:
16350 {
16351 if (temp2)
16352 delete arg2;
16353 }
16354 {
16355 if (temp3)
16356 delete arg3;
16357 }
16358 {
16359 if (temp4)
16360 delete arg4;
16361 }
16362 return NULL;
16363 }
16364
16365
16366 SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16367 PyObject *resultobj = 0;
16368 wxLocale *arg1 = (wxLocale *) 0 ;
16369 int arg2 = (int) wxLANGUAGE_DEFAULT ;
16370 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16371 bool result;
16372 void *argp1 = 0 ;
16373 int res1 = 0 ;
16374 int val2 ;
16375 int ecode2 = 0 ;
16376 int val3 ;
16377 int ecode3 = 0 ;
16378 PyObject * obj0 = 0 ;
16379 PyObject * obj1 = 0 ;
16380 PyObject * obj2 = 0 ;
16381 char * kwnames[] = {
16382 (char *) "self",(char *) "language",(char *) "flags", NULL
16383 };
16384
16385 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16386 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16387 if (!SWIG_IsOK(res1)) {
16388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
16389 }
16390 arg1 = reinterpret_cast< wxLocale * >(argp1);
16391 if (obj1) {
16392 ecode2 = SWIG_AsVal_int(obj1, &val2);
16393 if (!SWIG_IsOK(ecode2)) {
16394 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
16395 }
16396 arg2 = static_cast< int >(val2);
16397 }
16398 if (obj2) {
16399 ecode3 = SWIG_AsVal_int(obj2, &val3);
16400 if (!SWIG_IsOK(ecode3)) {
16401 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
16402 }
16403 arg3 = static_cast< int >(val3);
16404 }
16405 {
16406 PyThreadState* __tstate = wxPyBeginAllowThreads();
16407 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
16408 wxPyEndAllowThreads(__tstate);
16409 if (PyErr_Occurred()) SWIG_fail;
16410 }
16411 {
16412 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16413 }
16414 return resultobj;
16415 fail:
16416 return NULL;
16417 }
16418
16419
16420 SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16421 PyObject *resultobj = 0;
16422 int result;
16423
16424 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
16425 {
16426 PyThreadState* __tstate = wxPyBeginAllowThreads();
16427 result = (int)wxLocale::GetSystemLanguage();
16428 wxPyEndAllowThreads(__tstate);
16429 if (PyErr_Occurred()) SWIG_fail;
16430 }
16431 resultobj = SWIG_From_int(static_cast< int >(result));
16432 return resultobj;
16433 fail:
16434 return NULL;
16435 }
16436
16437
16438 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16439 PyObject *resultobj = 0;
16440 wxFontEncoding result;
16441
16442 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
16443 {
16444 PyThreadState* __tstate = wxPyBeginAllowThreads();
16445 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
16446 wxPyEndAllowThreads(__tstate);
16447 if (PyErr_Occurred()) SWIG_fail;
16448 }
16449 resultobj = SWIG_From_int(static_cast< int >(result));
16450 return resultobj;
16451 fail:
16452 return NULL;
16453 }
16454
16455
16456 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16457 PyObject *resultobj = 0;
16458 wxString result;
16459
16460 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
16461 {
16462 PyThreadState* __tstate = wxPyBeginAllowThreads();
16463 result = wxLocale::GetSystemEncodingName();
16464 wxPyEndAllowThreads(__tstate);
16465 if (PyErr_Occurred()) SWIG_fail;
16466 }
16467 {
16468 #if wxUSE_UNICODE
16469 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16470 #else
16471 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16472 #endif
16473 }
16474 return resultobj;
16475 fail:
16476 return NULL;
16477 }
16478
16479
16480 SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16481 PyObject *resultobj = 0;
16482 wxLocale *arg1 = (wxLocale *) 0 ;
16483 bool result;
16484 void *argp1 = 0 ;
16485 int res1 = 0 ;
16486 PyObject *swig_obj[1] ;
16487
16488 if (!args) SWIG_fail;
16489 swig_obj[0] = args;
16490 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16491 if (!SWIG_IsOK(res1)) {
16492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
16493 }
16494 arg1 = reinterpret_cast< wxLocale * >(argp1);
16495 {
16496 PyThreadState* __tstate = wxPyBeginAllowThreads();
16497 result = (bool)((wxLocale const *)arg1)->IsOk();
16498 wxPyEndAllowThreads(__tstate);
16499 if (PyErr_Occurred()) SWIG_fail;
16500 }
16501 {
16502 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16503 }
16504 return resultobj;
16505 fail:
16506 return NULL;
16507 }
16508
16509
16510 SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16511 PyObject *resultobj = 0;
16512 wxLocale *arg1 = (wxLocale *) 0 ;
16513 wxString result;
16514 void *argp1 = 0 ;
16515 int res1 = 0 ;
16516 PyObject *swig_obj[1] ;
16517
16518 if (!args) SWIG_fail;
16519 swig_obj[0] = args;
16520 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16521 if (!SWIG_IsOK(res1)) {
16522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
16523 }
16524 arg1 = reinterpret_cast< wxLocale * >(argp1);
16525 {
16526 PyThreadState* __tstate = wxPyBeginAllowThreads();
16527 result = ((wxLocale const *)arg1)->GetLocale();
16528 wxPyEndAllowThreads(__tstate);
16529 if (PyErr_Occurred()) SWIG_fail;
16530 }
16531 {
16532 #if wxUSE_UNICODE
16533 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16534 #else
16535 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16536 #endif
16537 }
16538 return resultobj;
16539 fail:
16540 return NULL;
16541 }
16542
16543
16544 SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16545 PyObject *resultobj = 0;
16546 wxLocale *arg1 = (wxLocale *) 0 ;
16547 int result;
16548 void *argp1 = 0 ;
16549 int res1 = 0 ;
16550 PyObject *swig_obj[1] ;
16551
16552 if (!args) SWIG_fail;
16553 swig_obj[0] = args;
16554 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16555 if (!SWIG_IsOK(res1)) {
16556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
16557 }
16558 arg1 = reinterpret_cast< wxLocale * >(argp1);
16559 {
16560 PyThreadState* __tstate = wxPyBeginAllowThreads();
16561 result = (int)((wxLocale const *)arg1)->GetLanguage();
16562 wxPyEndAllowThreads(__tstate);
16563 if (PyErr_Occurred()) SWIG_fail;
16564 }
16565 resultobj = SWIG_From_int(static_cast< int >(result));
16566 return resultobj;
16567 fail:
16568 return NULL;
16569 }
16570
16571
16572 SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16573 PyObject *resultobj = 0;
16574 wxLocale *arg1 = (wxLocale *) 0 ;
16575 wxString result;
16576 void *argp1 = 0 ;
16577 int res1 = 0 ;
16578 PyObject *swig_obj[1] ;
16579
16580 if (!args) SWIG_fail;
16581 swig_obj[0] = args;
16582 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16583 if (!SWIG_IsOK(res1)) {
16584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16585 }
16586 arg1 = reinterpret_cast< wxLocale * >(argp1);
16587 {
16588 PyThreadState* __tstate = wxPyBeginAllowThreads();
16589 result = ((wxLocale const *)arg1)->GetSysName();
16590 wxPyEndAllowThreads(__tstate);
16591 if (PyErr_Occurred()) SWIG_fail;
16592 }
16593 {
16594 #if wxUSE_UNICODE
16595 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16596 #else
16597 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16598 #endif
16599 }
16600 return resultobj;
16601 fail:
16602 return NULL;
16603 }
16604
16605
16606 SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16607 PyObject *resultobj = 0;
16608 wxLocale *arg1 = (wxLocale *) 0 ;
16609 wxString result;
16610 void *argp1 = 0 ;
16611 int res1 = 0 ;
16612 PyObject *swig_obj[1] ;
16613
16614 if (!args) SWIG_fail;
16615 swig_obj[0] = args;
16616 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16617 if (!SWIG_IsOK(res1)) {
16618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16619 }
16620 arg1 = reinterpret_cast< wxLocale * >(argp1);
16621 {
16622 PyThreadState* __tstate = wxPyBeginAllowThreads();
16623 result = ((wxLocale const *)arg1)->GetCanonicalName();
16624 wxPyEndAllowThreads(__tstate);
16625 if (PyErr_Occurred()) SWIG_fail;
16626 }
16627 {
16628 #if wxUSE_UNICODE
16629 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16630 #else
16631 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16632 #endif
16633 }
16634 return resultobj;
16635 fail:
16636 return NULL;
16637 }
16638
16639
16640 SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16641 PyObject *resultobj = 0;
16642 wxString *arg1 = 0 ;
16643 bool temp1 = false ;
16644 PyObject * obj0 = 0 ;
16645 char * kwnames[] = {
16646 (char *) "prefix", NULL
16647 };
16648
16649 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
16650 {
16651 arg1 = wxString_in_helper(obj0);
16652 if (arg1 == NULL) SWIG_fail;
16653 temp1 = true;
16654 }
16655 {
16656 PyThreadState* __tstate = wxPyBeginAllowThreads();
16657 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
16658 wxPyEndAllowThreads(__tstate);
16659 if (PyErr_Occurred()) SWIG_fail;
16660 }
16661 resultobj = SWIG_Py_Void();
16662 {
16663 if (temp1)
16664 delete arg1;
16665 }
16666 return resultobj;
16667 fail:
16668 {
16669 if (temp1)
16670 delete arg1;
16671 }
16672 return NULL;
16673 }
16674
16675
16676 SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16677 PyObject *resultobj = 0;
16678 wxLocale *arg1 = (wxLocale *) 0 ;
16679 wxString *arg2 = 0 ;
16680 bool result;
16681 void *argp1 = 0 ;
16682 int res1 = 0 ;
16683 bool temp2 = false ;
16684 PyObject * obj0 = 0 ;
16685 PyObject * obj1 = 0 ;
16686 char * kwnames[] = {
16687 (char *) "self",(char *) "szDomain", NULL
16688 };
16689
16690 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
16691 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16692 if (!SWIG_IsOK(res1)) {
16693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
16694 }
16695 arg1 = reinterpret_cast< wxLocale * >(argp1);
16696 {
16697 arg2 = wxString_in_helper(obj1);
16698 if (arg2 == NULL) SWIG_fail;
16699 temp2 = true;
16700 }
16701 {
16702 PyThreadState* __tstate = wxPyBeginAllowThreads();
16703 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
16704 wxPyEndAllowThreads(__tstate);
16705 if (PyErr_Occurred()) SWIG_fail;
16706 }
16707 {
16708 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16709 }
16710 {
16711 if (temp2)
16712 delete arg2;
16713 }
16714 return resultobj;
16715 fail:
16716 {
16717 if (temp2)
16718 delete arg2;
16719 }
16720 return NULL;
16721 }
16722
16723
16724 SWIGINTERN PyObject *_wrap_Locale_IsAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16725 PyObject *resultobj = 0;
16726 int arg1 ;
16727 bool result;
16728 int val1 ;
16729 int ecode1 = 0 ;
16730 PyObject * obj0 = 0 ;
16731 char * kwnames[] = {
16732 (char *) "lang", NULL
16733 };
16734
16735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsAvailable",kwnames,&obj0)) SWIG_fail;
16736 ecode1 = SWIG_AsVal_int(obj0, &val1);
16737 if (!SWIG_IsOK(ecode1)) {
16738 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_IsAvailable" "', expected argument " "1"" of type '" "int""'");
16739 }
16740 arg1 = static_cast< int >(val1);
16741 {
16742 PyThreadState* __tstate = wxPyBeginAllowThreads();
16743 result = (bool)wxLocale::IsAvailable(arg1);
16744 wxPyEndAllowThreads(__tstate);
16745 if (PyErr_Occurred()) SWIG_fail;
16746 }
16747 {
16748 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16749 }
16750 return resultobj;
16751 fail:
16752 return NULL;
16753 }
16754
16755
16756 SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16757 PyObject *resultobj = 0;
16758 wxLocale *arg1 = (wxLocale *) 0 ;
16759 wxString *arg2 = 0 ;
16760 bool result;
16761 void *argp1 = 0 ;
16762 int res1 = 0 ;
16763 bool temp2 = false ;
16764 PyObject * obj0 = 0 ;
16765 PyObject * obj1 = 0 ;
16766 char * kwnames[] = {
16767 (char *) "self",(char *) "szDomain", NULL
16768 };
16769
16770 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
16771 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16772 if (!SWIG_IsOK(res1)) {
16773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
16774 }
16775 arg1 = reinterpret_cast< wxLocale * >(argp1);
16776 {
16777 arg2 = wxString_in_helper(obj1);
16778 if (arg2 == NULL) SWIG_fail;
16779 temp2 = true;
16780 }
16781 {
16782 PyThreadState* __tstate = wxPyBeginAllowThreads();
16783 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
16784 wxPyEndAllowThreads(__tstate);
16785 if (PyErr_Occurred()) SWIG_fail;
16786 }
16787 {
16788 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16789 }
16790 {
16791 if (temp2)
16792 delete arg2;
16793 }
16794 return resultobj;
16795 fail:
16796 {
16797 if (temp2)
16798 delete arg2;
16799 }
16800 return NULL;
16801 }
16802
16803
16804 SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16805 PyObject *resultobj = 0;
16806 int arg1 ;
16807 wxLanguageInfo *result = 0 ;
16808 int val1 ;
16809 int ecode1 = 0 ;
16810 PyObject * obj0 = 0 ;
16811 char * kwnames[] = {
16812 (char *) "lang", NULL
16813 };
16814
16815 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
16816 ecode1 = SWIG_AsVal_int(obj0, &val1);
16817 if (!SWIG_IsOK(ecode1)) {
16818 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
16819 }
16820 arg1 = static_cast< int >(val1);
16821 {
16822 PyThreadState* __tstate = wxPyBeginAllowThreads();
16823 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
16824 wxPyEndAllowThreads(__tstate);
16825 if (PyErr_Occurred()) SWIG_fail;
16826 }
16827 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16828 return resultobj;
16829 fail:
16830 return NULL;
16831 }
16832
16833
16834 SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16835 PyObject *resultobj = 0;
16836 int arg1 ;
16837 wxString result;
16838 int val1 ;
16839 int ecode1 = 0 ;
16840 PyObject * obj0 = 0 ;
16841 char * kwnames[] = {
16842 (char *) "lang", NULL
16843 };
16844
16845 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
16846 ecode1 = SWIG_AsVal_int(obj0, &val1);
16847 if (!SWIG_IsOK(ecode1)) {
16848 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
16849 }
16850 arg1 = static_cast< int >(val1);
16851 {
16852 PyThreadState* __tstate = wxPyBeginAllowThreads();
16853 result = wxLocale::GetLanguageName(arg1);
16854 wxPyEndAllowThreads(__tstate);
16855 if (PyErr_Occurred()) SWIG_fail;
16856 }
16857 {
16858 #if wxUSE_UNICODE
16859 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16860 #else
16861 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16862 #endif
16863 }
16864 return resultobj;
16865 fail:
16866 return NULL;
16867 }
16868
16869
16870 SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16871 PyObject *resultobj = 0;
16872 wxString *arg1 = 0 ;
16873 wxLanguageInfo *result = 0 ;
16874 bool temp1 = false ;
16875 PyObject * obj0 = 0 ;
16876 char * kwnames[] = {
16877 (char *) "locale", NULL
16878 };
16879
16880 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
16881 {
16882 arg1 = wxString_in_helper(obj0);
16883 if (arg1 == NULL) SWIG_fail;
16884 temp1 = true;
16885 }
16886 {
16887 PyThreadState* __tstate = wxPyBeginAllowThreads();
16888 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
16889 wxPyEndAllowThreads(__tstate);
16890 if (PyErr_Occurred()) SWIG_fail;
16891 }
16892 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16893 {
16894 if (temp1)
16895 delete arg1;
16896 }
16897 return resultobj;
16898 fail:
16899 {
16900 if (temp1)
16901 delete arg1;
16902 }
16903 return NULL;
16904 }
16905
16906
16907 SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16908 PyObject *resultobj = 0;
16909 wxLanguageInfo *arg1 = 0 ;
16910 void *argp1 = 0 ;
16911 int res1 = 0 ;
16912 PyObject * obj0 = 0 ;
16913 char * kwnames[] = {
16914 (char *) "info", NULL
16915 };
16916
16917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
16918 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
16919 if (!SWIG_IsOK(res1)) {
16920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16921 }
16922 if (!argp1) {
16923 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16924 }
16925 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16926 {
16927 PyThreadState* __tstate = wxPyBeginAllowThreads();
16928 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
16929 wxPyEndAllowThreads(__tstate);
16930 if (PyErr_Occurred()) SWIG_fail;
16931 }
16932 resultobj = SWIG_Py_Void();
16933 return resultobj;
16934 fail:
16935 return NULL;
16936 }
16937
16938
16939 SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16940 PyObject *resultobj = 0;
16941 wxLocale *arg1 = (wxLocale *) 0 ;
16942 wxString *arg2 = 0 ;
16943 wxString const &arg3_defvalue = wxPyEmptyString ;
16944 wxString *arg3 = (wxString *) &arg3_defvalue ;
16945 wxString result;
16946 void *argp1 = 0 ;
16947 int res1 = 0 ;
16948 bool temp2 = false ;
16949 bool temp3 = false ;
16950 PyObject * obj0 = 0 ;
16951 PyObject * obj1 = 0 ;
16952 PyObject * obj2 = 0 ;
16953 char * kwnames[] = {
16954 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16955 };
16956
16957 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16958 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16959 if (!SWIG_IsOK(res1)) {
16960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
16961 }
16962 arg1 = reinterpret_cast< wxLocale * >(argp1);
16963 {
16964 arg2 = wxString_in_helper(obj1);
16965 if (arg2 == NULL) SWIG_fail;
16966 temp2 = true;
16967 }
16968 if (obj2) {
16969 {
16970 arg3 = wxString_in_helper(obj2);
16971 if (arg3 == NULL) SWIG_fail;
16972 temp3 = true;
16973 }
16974 }
16975 {
16976 PyThreadState* __tstate = wxPyBeginAllowThreads();
16977 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
16978 wxPyEndAllowThreads(__tstate);
16979 if (PyErr_Occurred()) SWIG_fail;
16980 }
16981 {
16982 #if wxUSE_UNICODE
16983 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16984 #else
16985 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16986 #endif
16987 }
16988 {
16989 if (temp2)
16990 delete arg2;
16991 }
16992 {
16993 if (temp3)
16994 delete arg3;
16995 }
16996 return resultobj;
16997 fail:
16998 {
16999 if (temp2)
17000 delete arg2;
17001 }
17002 {
17003 if (temp3)
17004 delete arg3;
17005 }
17006 return NULL;
17007 }
17008
17009
17010 SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17011 PyObject *resultobj = 0;
17012 wxLocale *arg1 = (wxLocale *) 0 ;
17013 wxString *result = 0 ;
17014 void *argp1 = 0 ;
17015 int res1 = 0 ;
17016 PyObject *swig_obj[1] ;
17017
17018 if (!args) SWIG_fail;
17019 swig_obj[0] = args;
17020 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
17021 if (!SWIG_IsOK(res1)) {
17022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
17023 }
17024 arg1 = reinterpret_cast< wxLocale * >(argp1);
17025 {
17026 PyThreadState* __tstate = wxPyBeginAllowThreads();
17027 {
17028 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
17029 result = (wxString *) &_result_ref;
17030 }
17031 wxPyEndAllowThreads(__tstate);
17032 if (PyErr_Occurred()) SWIG_fail;
17033 }
17034 {
17035 #if wxUSE_UNICODE
17036 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
17037 #else
17038 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
17039 #endif
17040 }
17041 return resultobj;
17042 fail:
17043 return NULL;
17044 }
17045
17046
17047 SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17048 PyObject *obj;
17049 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17050 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
17051 return SWIG_Py_Void();
17052 }
17053
17054 SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17055 return SWIG_Python_InitShadowInstance(args);
17056 }
17057
17058 SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17059 PyObject *resultobj = 0;
17060 int arg1 = (int) -1 ;
17061 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
17062 wxPyLocale *result = 0 ;
17063 int val1 ;
17064 int ecode1 = 0 ;
17065 int val2 ;
17066 int ecode2 = 0 ;
17067 PyObject * obj0 = 0 ;
17068 PyObject * obj1 = 0 ;
17069 char * kwnames[] = {
17070 (char *) "language",(char *) "flags", NULL
17071 };
17072
17073 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail;
17074 if (obj0) {
17075 ecode1 = SWIG_AsVal_int(obj0, &val1);
17076 if (!SWIG_IsOK(ecode1)) {
17077 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'");
17078 }
17079 arg1 = static_cast< int >(val1);
17080 }
17081 if (obj1) {
17082 ecode2 = SWIG_AsVal_int(obj1, &val2);
17083 if (!SWIG_IsOK(ecode2)) {
17084 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'");
17085 }
17086 arg2 = static_cast< int >(val2);
17087 }
17088 {
17089 PyThreadState* __tstate = wxPyBeginAllowThreads();
17090 result = (wxPyLocale *)new_wxPyLocale(arg1,arg2);
17091 wxPyEndAllowThreads(__tstate);
17092 if (PyErr_Occurred()) SWIG_fail;
17093 }
17094 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 );
17095 return resultobj;
17096 fail:
17097 return NULL;
17098 }
17099
17100
17101 SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17102 PyObject *resultobj = 0;
17103 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17104 void *argp1 = 0 ;
17105 int res1 = 0 ;
17106 PyObject *swig_obj[1] ;
17107
17108 if (!args) SWIG_fail;
17109 swig_obj[0] = args;
17110 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 );
17111 if (!SWIG_IsOK(res1)) {
17112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'");
17113 }
17114 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17115 {
17116 PyThreadState* __tstate = wxPyBeginAllowThreads();
17117 delete arg1;
17118
17119 wxPyEndAllowThreads(__tstate);
17120 if (PyErr_Occurred()) SWIG_fail;
17121 }
17122 resultobj = SWIG_Py_Void();
17123 return resultobj;
17124 fail:
17125 return NULL;
17126 }
17127
17128
17129 SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17130 PyObject *resultobj = 0;
17131 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17132 PyObject *arg2 = (PyObject *) 0 ;
17133 PyObject *arg3 = (PyObject *) 0 ;
17134 void *argp1 = 0 ;
17135 int res1 = 0 ;
17136 PyObject * obj0 = 0 ;
17137 PyObject * obj1 = 0 ;
17138 PyObject * obj2 = 0 ;
17139 char * kwnames[] = {
17140 (char *) "self",(char *) "self",(char *) "_class", NULL
17141 };
17142
17143 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17144 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
17145 if (!SWIG_IsOK(res1)) {
17146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'");
17147 }
17148 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17149 arg2 = obj1;
17150 arg3 = obj2;
17151 {
17152 PyThreadState* __tstate = wxPyBeginAllowThreads();
17153 (arg1)->_setCallbackInfo(arg2,arg3);
17154 wxPyEndAllowThreads(__tstate);
17155 if (PyErr_Occurred()) SWIG_fail;
17156 }
17157 resultobj = SWIG_Py_Void();
17158 return resultobj;
17159 fail:
17160 return NULL;
17161 }
17162
17163
17164 SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17165 PyObject *resultobj = 0;
17166 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17167 wxChar *arg2 = (wxChar *) 0 ;
17168 wxChar *arg3 = (wxChar *) NULL ;
17169 wxChar *result = 0 ;
17170 void *argp1 = 0 ;
17171 int res1 = 0 ;
17172 void *argp2 = 0 ;
17173 int res2 = 0 ;
17174 void *argp3 = 0 ;
17175 int res3 = 0 ;
17176 PyObject * obj0 = 0 ;
17177 PyObject * obj1 = 0 ;
17178 PyObject * obj2 = 0 ;
17179 char * kwnames[] = {
17180 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
17181 };
17182
17183 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17184 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
17185 if (!SWIG_IsOK(res1)) {
17186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
17187 }
17188 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17189 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
17190 if (!SWIG_IsOK(res2)) {
17191 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetSingularString" "', expected argument " "2"" of type '" "wxChar const *""'");
17192 }
17193 arg2 = reinterpret_cast< wxChar * >(argp2);
17194 if (obj2) {
17195 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
17196 if (!SWIG_IsOK(res3)) {
17197 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetSingularString" "', expected argument " "3"" of type '" "wxChar const *""'");
17198 }
17199 arg3 = reinterpret_cast< wxChar * >(argp3);
17200 }
17201 {
17202 PyThreadState* __tstate = wxPyBeginAllowThreads();
17203 result = (wxChar *)((wxPyLocale const *)arg1)->GetSingularString((wxChar const *)arg2,(wxChar const *)arg3);
17204 wxPyEndAllowThreads(__tstate);
17205 if (PyErr_Occurred()) SWIG_fail;
17206 }
17207 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
17208 return resultobj;
17209 fail:
17210 return NULL;
17211 }
17212
17213
17214 SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17215 PyObject *resultobj = 0;
17216 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17217 wxChar *arg2 = (wxChar *) 0 ;
17218 wxChar *arg3 = (wxChar *) 0 ;
17219 size_t arg4 ;
17220 wxChar *arg5 = (wxChar *) NULL ;
17221 wxChar *result = 0 ;
17222 void *argp1 = 0 ;
17223 int res1 = 0 ;
17224 void *argp2 = 0 ;
17225 int res2 = 0 ;
17226 void *argp3 = 0 ;
17227 int res3 = 0 ;
17228 size_t val4 ;
17229 int ecode4 = 0 ;
17230 void *argp5 = 0 ;
17231 int res5 = 0 ;
17232 PyObject * obj0 = 0 ;
17233 PyObject * obj1 = 0 ;
17234 PyObject * obj2 = 0 ;
17235 PyObject * obj3 = 0 ;
17236 PyObject * obj4 = 0 ;
17237 char * kwnames[] = {
17238 (char *) "self",(char *) "szOrigString",(char *) "szOrigString2",(char *) "n",(char *) "szDomain", NULL
17239 };
17240
17241 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17242 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
17243 if (!SWIG_IsOK(res1)) {
17244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
17245 }
17246 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17247 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
17248 if (!SWIG_IsOK(res2)) {
17249 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetPluralString" "', expected argument " "2"" of type '" "wxChar const *""'");
17250 }
17251 arg2 = reinterpret_cast< wxChar * >(argp2);
17252 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
17253 if (!SWIG_IsOK(res3)) {
17254 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetPluralString" "', expected argument " "3"" of type '" "wxChar const *""'");
17255 }
17256 arg3 = reinterpret_cast< wxChar * >(argp3);
17257 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
17258 if (!SWIG_IsOK(ecode4)) {
17259 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'");
17260 }
17261 arg4 = static_cast< size_t >(val4);
17262 if (obj4) {
17263 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxChar, 0 | 0 );
17264 if (!SWIG_IsOK(res5)) {
17265 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PyLocale_GetPluralString" "', expected argument " "5"" of type '" "wxChar const *""'");
17266 }
17267 arg5 = reinterpret_cast< wxChar * >(argp5);
17268 }
17269 {
17270 PyThreadState* __tstate = wxPyBeginAllowThreads();
17271 result = (wxChar *)((wxPyLocale const *)arg1)->GetPluralString((wxChar const *)arg2,(wxChar const *)arg3,arg4,(wxChar const *)arg5);
17272 wxPyEndAllowThreads(__tstate);
17273 if (PyErr_Occurred()) SWIG_fail;
17274 }
17275 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
17276 return resultobj;
17277 fail:
17278 return NULL;
17279 }
17280
17281
17282 SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17283 PyObject *obj;
17284 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17285 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj));
17286 return SWIG_Py_Void();
17287 }
17288
17289 SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17290 return SWIG_Python_InitShadowInstance(args);
17291 }
17292
17293 SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17294 PyObject *resultobj = 0;
17295 wxLocale *result = 0 ;
17296
17297 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
17298 {
17299 PyThreadState* __tstate = wxPyBeginAllowThreads();
17300 result = (wxLocale *)wxGetLocale();
17301 wxPyEndAllowThreads(__tstate);
17302 if (PyErr_Occurred()) SWIG_fail;
17303 }
17304 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
17305 return resultobj;
17306 fail:
17307 return NULL;
17308 }
17309
17310
17311 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17312 PyObject *resultobj = 0;
17313 wxString *arg1 = 0 ;
17314 wxString result;
17315 bool temp1 = false ;
17316
17317 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
17318 {
17319 arg1 = wxString_in_helper(swig_obj[0]);
17320 if (arg1 == NULL) SWIG_fail;
17321 temp1 = true;
17322 }
17323 {
17324 PyThreadState* __tstate = wxPyBeginAllowThreads();
17325 result = wxGetTranslation((wxString const &)*arg1);
17326 wxPyEndAllowThreads(__tstate);
17327 if (PyErr_Occurred()) SWIG_fail;
17328 }
17329 {
17330 #if wxUSE_UNICODE
17331 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17332 #else
17333 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17334 #endif
17335 }
17336 {
17337 if (temp1)
17338 delete arg1;
17339 }
17340 return resultobj;
17341 fail:
17342 {
17343 if (temp1)
17344 delete arg1;
17345 }
17346 return NULL;
17347 }
17348
17349
17350 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17351 PyObject *resultobj = 0;
17352 wxString *arg1 = 0 ;
17353 wxString *arg2 = 0 ;
17354 wxString result;
17355 bool temp1 = false ;
17356 bool temp2 = false ;
17357
17358 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
17359 {
17360 arg1 = wxString_in_helper(swig_obj[0]);
17361 if (arg1 == NULL) SWIG_fail;
17362 temp1 = true;
17363 }
17364 {
17365 arg2 = wxString_in_helper(swig_obj[1]);
17366 if (arg2 == NULL) SWIG_fail;
17367 temp2 = true;
17368 }
17369 {
17370 PyThreadState* __tstate = wxPyBeginAllowThreads();
17371 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2);
17372 wxPyEndAllowThreads(__tstate);
17373 if (PyErr_Occurred()) SWIG_fail;
17374 }
17375 {
17376 #if wxUSE_UNICODE
17377 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17378 #else
17379 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17380 #endif
17381 }
17382 {
17383 if (temp1)
17384 delete arg1;
17385 }
17386 {
17387 if (temp2)
17388 delete arg2;
17389 }
17390 return resultobj;
17391 fail:
17392 {
17393 if (temp1)
17394 delete arg1;
17395 }
17396 {
17397 if (temp2)
17398 delete arg2;
17399 }
17400 return NULL;
17401 }
17402
17403
17404 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17405 PyObject *resultobj = 0;
17406 wxString *arg1 = 0 ;
17407 wxString *arg2 = 0 ;
17408 size_t arg3 ;
17409 wxString result;
17410 bool temp1 = false ;
17411 bool temp2 = false ;
17412 size_t val3 ;
17413 int ecode3 = 0 ;
17414
17415 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
17416 {
17417 arg1 = wxString_in_helper(swig_obj[0]);
17418 if (arg1 == NULL) SWIG_fail;
17419 temp1 = true;
17420 }
17421 {
17422 arg2 = wxString_in_helper(swig_obj[1]);
17423 if (arg2 == NULL) SWIG_fail;
17424 temp2 = true;
17425 }
17426 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17427 if (!SWIG_IsOK(ecode3)) {
17428 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17429 }
17430 arg3 = static_cast< size_t >(val3);
17431 {
17432 PyThreadState* __tstate = wxPyBeginAllowThreads();
17433 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
17434 wxPyEndAllowThreads(__tstate);
17435 if (PyErr_Occurred()) SWIG_fail;
17436 }
17437 {
17438 #if wxUSE_UNICODE
17439 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17440 #else
17441 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17442 #endif
17443 }
17444 {
17445 if (temp1)
17446 delete arg1;
17447 }
17448 {
17449 if (temp2)
17450 delete arg2;
17451 }
17452 return resultobj;
17453 fail:
17454 {
17455 if (temp1)
17456 delete arg1;
17457 }
17458 {
17459 if (temp2)
17460 delete arg2;
17461 }
17462 return NULL;
17463 }
17464
17465
17466 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17467 PyObject *resultobj = 0;
17468 wxString *arg1 = 0 ;
17469 wxString *arg2 = 0 ;
17470 size_t arg3 ;
17471 wxString *arg4 = 0 ;
17472 wxString result;
17473 bool temp1 = false ;
17474 bool temp2 = false ;
17475 size_t val3 ;
17476 int ecode3 = 0 ;
17477 bool temp4 = false ;
17478
17479 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
17480 {
17481 arg1 = wxString_in_helper(swig_obj[0]);
17482 if (arg1 == NULL) SWIG_fail;
17483 temp1 = true;
17484 }
17485 {
17486 arg2 = wxString_in_helper(swig_obj[1]);
17487 if (arg2 == NULL) SWIG_fail;
17488 temp2 = true;
17489 }
17490 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17491 if (!SWIG_IsOK(ecode3)) {
17492 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17493 }
17494 arg3 = static_cast< size_t >(val3);
17495 {
17496 arg4 = wxString_in_helper(swig_obj[3]);
17497 if (arg4 == NULL) SWIG_fail;
17498 temp4 = true;
17499 }
17500 {
17501 PyThreadState* __tstate = wxPyBeginAllowThreads();
17502 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4);
17503 wxPyEndAllowThreads(__tstate);
17504 if (PyErr_Occurred()) SWIG_fail;
17505 }
17506 {
17507 #if wxUSE_UNICODE
17508 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17509 #else
17510 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17511 #endif
17512 }
17513 {
17514 if (temp1)
17515 delete arg1;
17516 }
17517 {
17518 if (temp2)
17519 delete arg2;
17520 }
17521 {
17522 if (temp4)
17523 delete arg4;
17524 }
17525 return resultobj;
17526 fail:
17527 {
17528 if (temp1)
17529 delete arg1;
17530 }
17531 {
17532 if (temp2)
17533 delete arg2;
17534 }
17535 {
17536 if (temp4)
17537 delete arg4;
17538 }
17539 return NULL;
17540 }
17541
17542
17543 SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
17544 int argc;
17545 PyObject *argv[5];
17546
17547 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail;
17548 --argc;
17549 if (argc == 1) {
17550 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
17551 }
17552 if (argc == 2) {
17553 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
17554 }
17555 if (argc == 3) {
17556 return _wrap_GetTranslation__SWIG_2(self, argc, argv);
17557 }
17558 if (argc == 4) {
17559 return _wrap_GetTranslation__SWIG_3(self, argc, argv);
17560 }
17561
17562 fail:
17563 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
17564 return NULL;
17565 }
17566
17567
17568 SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17569 PyObject *resultobj = 0;
17570 wxEncodingConverter *result = 0 ;
17571
17572 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
17573 {
17574 PyThreadState* __tstate = wxPyBeginAllowThreads();
17575 result = (wxEncodingConverter *)new wxEncodingConverter();
17576 wxPyEndAllowThreads(__tstate);
17577 if (PyErr_Occurred()) SWIG_fail;
17578 }
17579 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
17580 return resultobj;
17581 fail:
17582 return NULL;
17583 }
17584
17585
17586 SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17587 PyObject *resultobj = 0;
17588 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17589 void *argp1 = 0 ;
17590 int res1 = 0 ;
17591 PyObject *swig_obj[1] ;
17592
17593 if (!args) SWIG_fail;
17594 swig_obj[0] = args;
17595 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
17596 if (!SWIG_IsOK(res1)) {
17597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17598 }
17599 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17600 {
17601 PyThreadState* __tstate = wxPyBeginAllowThreads();
17602 delete arg1;
17603
17604 wxPyEndAllowThreads(__tstate);
17605 if (PyErr_Occurred()) SWIG_fail;
17606 }
17607 resultobj = SWIG_Py_Void();
17608 return resultobj;
17609 fail:
17610 return NULL;
17611 }
17612
17613
17614 SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17615 PyObject *resultobj = 0;
17616 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17617 wxFontEncoding arg2 ;
17618 wxFontEncoding arg3 ;
17619 int arg4 = (int) wxCONVERT_STRICT ;
17620 bool result;
17621 void *argp1 = 0 ;
17622 int res1 = 0 ;
17623 int val2 ;
17624 int ecode2 = 0 ;
17625 int val3 ;
17626 int ecode3 = 0 ;
17627 int val4 ;
17628 int ecode4 = 0 ;
17629 PyObject * obj0 = 0 ;
17630 PyObject * obj1 = 0 ;
17631 PyObject * obj2 = 0 ;
17632 PyObject * obj3 = 0 ;
17633 char * kwnames[] = {
17634 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
17635 };
17636
17637 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17638 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17639 if (!SWIG_IsOK(res1)) {
17640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17641 }
17642 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17643 ecode2 = SWIG_AsVal_int(obj1, &val2);
17644 if (!SWIG_IsOK(ecode2)) {
17645 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17646 }
17647 arg2 = static_cast< wxFontEncoding >(val2);
17648 ecode3 = SWIG_AsVal_int(obj2, &val3);
17649 if (!SWIG_IsOK(ecode3)) {
17650 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
17651 }
17652 arg3 = static_cast< wxFontEncoding >(val3);
17653 if (obj3) {
17654 ecode4 = SWIG_AsVal_int(obj3, &val4);
17655 if (!SWIG_IsOK(ecode4)) {
17656 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
17657 }
17658 arg4 = static_cast< int >(val4);
17659 }
17660 {
17661 PyThreadState* __tstate = wxPyBeginAllowThreads();
17662 result = (bool)(arg1)->Init(arg2,arg3,arg4);
17663 wxPyEndAllowThreads(__tstate);
17664 if (PyErr_Occurred()) SWIG_fail;
17665 }
17666 {
17667 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17668 }
17669 return resultobj;
17670 fail:
17671 return NULL;
17672 }
17673
17674
17675 SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17676 PyObject *resultobj = 0;
17677 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17678 wxString *arg2 = 0 ;
17679 wxString result;
17680 void *argp1 = 0 ;
17681 int res1 = 0 ;
17682 bool temp2 = false ;
17683 PyObject * obj0 = 0 ;
17684 PyObject * obj1 = 0 ;
17685 char * kwnames[] = {
17686 (char *) "self",(char *) "input", NULL
17687 };
17688
17689 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
17690 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17691 if (!SWIG_IsOK(res1)) {
17692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17693 }
17694 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17695 {
17696 arg2 = wxString_in_helper(obj1);
17697 if (arg2 == NULL) SWIG_fail;
17698 temp2 = true;
17699 }
17700 {
17701 PyThreadState* __tstate = wxPyBeginAllowThreads();
17702 result = (arg1)->Convert((wxString const &)*arg2);
17703 wxPyEndAllowThreads(__tstate);
17704 if (PyErr_Occurred()) SWIG_fail;
17705 }
17706 {
17707 #if wxUSE_UNICODE
17708 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17709 #else
17710 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17711 #endif
17712 }
17713 {
17714 if (temp2)
17715 delete arg2;
17716 }
17717 return resultobj;
17718 fail:
17719 {
17720 if (temp2)
17721 delete arg2;
17722 }
17723 return NULL;
17724 }
17725
17726
17727 SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17728 PyObject *resultobj = 0;
17729 wxFontEncoding arg1 ;
17730 int arg2 = (int) wxPLATFORM_CURRENT ;
17731 wxFontEncodingArray result;
17732 int val1 ;
17733 int ecode1 = 0 ;
17734 int val2 ;
17735 int ecode2 = 0 ;
17736 PyObject * obj0 = 0 ;
17737 PyObject * obj1 = 0 ;
17738 char * kwnames[] = {
17739 (char *) "enc",(char *) "platform", NULL
17740 };
17741
17742 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
17743 ecode1 = SWIG_AsVal_int(obj0, &val1);
17744 if (!SWIG_IsOK(ecode1)) {
17745 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17746 }
17747 arg1 = static_cast< wxFontEncoding >(val1);
17748 if (obj1) {
17749 ecode2 = SWIG_AsVal_int(obj1, &val2);
17750 if (!SWIG_IsOK(ecode2)) {
17751 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
17752 }
17753 arg2 = static_cast< int >(val2);
17754 }
17755 {
17756 PyThreadState* __tstate = wxPyBeginAllowThreads();
17757 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
17758 wxPyEndAllowThreads(__tstate);
17759 if (PyErr_Occurred()) SWIG_fail;
17760 }
17761 {
17762 resultobj = PyList_New(0);
17763 for (size_t i=0; i < (&result)->GetCount(); i++) {
17764 PyObject* number = PyInt_FromLong((&result)->Item(i));
17765 PyList_Append(resultobj, number);
17766 Py_DECREF(number);
17767 }
17768 }
17769 return resultobj;
17770 fail:
17771 return NULL;
17772 }
17773
17774
17775 SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17776 PyObject *resultobj = 0;
17777 wxFontEncoding arg1 ;
17778 wxFontEncodingArray result;
17779 int val1 ;
17780 int ecode1 = 0 ;
17781 PyObject * obj0 = 0 ;
17782 char * kwnames[] = {
17783 (char *) "enc", NULL
17784 };
17785
17786 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
17787 ecode1 = SWIG_AsVal_int(obj0, &val1);
17788 if (!SWIG_IsOK(ecode1)) {
17789 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17790 }
17791 arg1 = static_cast< wxFontEncoding >(val1);
17792 {
17793 PyThreadState* __tstate = wxPyBeginAllowThreads();
17794 result = wxEncodingConverter::GetAllEquivalents(arg1);
17795 wxPyEndAllowThreads(__tstate);
17796 if (PyErr_Occurred()) SWIG_fail;
17797 }
17798 {
17799 resultobj = PyList_New(0);
17800 for (size_t i=0; i < (&result)->GetCount(); i++) {
17801 PyObject* number = PyInt_FromLong((&result)->Item(i));
17802 PyList_Append(resultobj, number);
17803 Py_DECREF(number);
17804 }
17805 }
17806 return resultobj;
17807 fail:
17808 return NULL;
17809 }
17810
17811
17812 SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17813 PyObject *resultobj = 0;
17814 wxFontEncoding arg1 ;
17815 wxFontEncoding arg2 ;
17816 bool result;
17817 int val1 ;
17818 int ecode1 = 0 ;
17819 int val2 ;
17820 int ecode2 = 0 ;
17821 PyObject * obj0 = 0 ;
17822 PyObject * obj1 = 0 ;
17823 char * kwnames[] = {
17824 (char *) "encIn",(char *) "encOut", NULL
17825 };
17826
17827 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
17828 ecode1 = SWIG_AsVal_int(obj0, &val1);
17829 if (!SWIG_IsOK(ecode1)) {
17830 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17831 }
17832 arg1 = static_cast< wxFontEncoding >(val1);
17833 ecode2 = SWIG_AsVal_int(obj1, &val2);
17834 if (!SWIG_IsOK(ecode2)) {
17835 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17836 }
17837 arg2 = static_cast< wxFontEncoding >(val2);
17838 {
17839 PyThreadState* __tstate = wxPyBeginAllowThreads();
17840 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
17841 wxPyEndAllowThreads(__tstate);
17842 if (PyErr_Occurred()) SWIG_fail;
17843 }
17844 {
17845 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17846 }
17847 return resultobj;
17848 fail:
17849 return NULL;
17850 }
17851
17852
17853 SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17854 PyObject *obj;
17855 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17856 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
17857 return SWIG_Py_Void();
17858 }
17859
17860 SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17861 return SWIG_Python_InitShadowInstance(args);
17862 }
17863
17864 SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17865 PyObject *resultobj = 0;
17866 wxDC *arg1 = (wxDC *) 0 ;
17867 void *argp1 = 0 ;
17868 int res1 = 0 ;
17869 PyObject *swig_obj[1] ;
17870
17871 if (!args) SWIG_fail;
17872 swig_obj[0] = args;
17873 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
17874 if (!SWIG_IsOK(res1)) {
17875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
17876 }
17877 arg1 = reinterpret_cast< wxDC * >(argp1);
17878 {
17879 PyThreadState* __tstate = wxPyBeginAllowThreads();
17880 delete arg1;
17881
17882 wxPyEndAllowThreads(__tstate);
17883 if (PyErr_Occurred()) SWIG_fail;
17884 }
17885 resultobj = SWIG_Py_Void();
17886 return resultobj;
17887 fail:
17888 return NULL;
17889 }
17890
17891
17892 SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17893 PyObject *resultobj = 0;
17894 wxDC *arg1 = (wxDC *) 0 ;
17895 int arg2 ;
17896 int arg3 ;
17897 wxColour *arg4 = 0 ;
17898 int arg5 = (int) wxFLOOD_SURFACE ;
17899 bool result;
17900 void *argp1 = 0 ;
17901 int res1 = 0 ;
17902 int val2 ;
17903 int ecode2 = 0 ;
17904 int val3 ;
17905 int ecode3 = 0 ;
17906 wxColour temp4 ;
17907 int val5 ;
17908 int ecode5 = 0 ;
17909 PyObject * obj0 = 0 ;
17910 PyObject * obj1 = 0 ;
17911 PyObject * obj2 = 0 ;
17912 PyObject * obj3 = 0 ;
17913 PyObject * obj4 = 0 ;
17914 char * kwnames[] = {
17915 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
17916 };
17917
17918 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17919 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17920 if (!SWIG_IsOK(res1)) {
17921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
17922 }
17923 arg1 = reinterpret_cast< wxDC * >(argp1);
17924 ecode2 = SWIG_AsVal_int(obj1, &val2);
17925 if (!SWIG_IsOK(ecode2)) {
17926 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
17927 }
17928 arg2 = static_cast< int >(val2);
17929 ecode3 = SWIG_AsVal_int(obj2, &val3);
17930 if (!SWIG_IsOK(ecode3)) {
17931 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
17932 }
17933 arg3 = static_cast< int >(val3);
17934 {
17935 arg4 = &temp4;
17936 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17937 }
17938 if (obj4) {
17939 ecode5 = SWIG_AsVal_int(obj4, &val5);
17940 if (!SWIG_IsOK(ecode5)) {
17941 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
17942 }
17943 arg5 = static_cast< int >(val5);
17944 }
17945 {
17946 PyThreadState* __tstate = wxPyBeginAllowThreads();
17947 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
17948 wxPyEndAllowThreads(__tstate);
17949 if (PyErr_Occurred()) SWIG_fail;
17950 }
17951 {
17952 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17953 }
17954 return resultobj;
17955 fail:
17956 return NULL;
17957 }
17958
17959
17960 SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17961 PyObject *resultobj = 0;
17962 wxDC *arg1 = (wxDC *) 0 ;
17963 wxPoint *arg2 = 0 ;
17964 wxColour *arg3 = 0 ;
17965 int arg4 = (int) wxFLOOD_SURFACE ;
17966 bool result;
17967 void *argp1 = 0 ;
17968 int res1 = 0 ;
17969 wxPoint temp2 ;
17970 wxColour temp3 ;
17971 int val4 ;
17972 int ecode4 = 0 ;
17973 PyObject * obj0 = 0 ;
17974 PyObject * obj1 = 0 ;
17975 PyObject * obj2 = 0 ;
17976 PyObject * obj3 = 0 ;
17977 char * kwnames[] = {
17978 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
17979 };
17980
17981 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17982 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17983 if (!SWIG_IsOK(res1)) {
17984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17985 }
17986 arg1 = reinterpret_cast< wxDC * >(argp1);
17987 {
17988 arg2 = &temp2;
17989 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17990 }
17991 {
17992 arg3 = &temp3;
17993 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17994 }
17995 if (obj3) {
17996 ecode4 = SWIG_AsVal_int(obj3, &val4);
17997 if (!SWIG_IsOK(ecode4)) {
17998 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
17999 }
18000 arg4 = static_cast< int >(val4);
18001 }
18002 {
18003 PyThreadState* __tstate = wxPyBeginAllowThreads();
18004 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
18005 wxPyEndAllowThreads(__tstate);
18006 if (PyErr_Occurred()) SWIG_fail;
18007 }
18008 {
18009 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18010 }
18011 return resultobj;
18012 fail:
18013 return NULL;
18014 }
18015
18016
18017 SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18018 PyObject *resultobj = 0;
18019 wxDC *arg1 = (wxDC *) 0 ;
18020 wxRect *arg2 = 0 ;
18021 wxColour *arg3 = 0 ;
18022 wxColour *arg4 = 0 ;
18023 wxPoint *arg5 = 0 ;
18024 void *argp1 = 0 ;
18025 int res1 = 0 ;
18026 wxRect temp2 ;
18027 wxColour temp3 ;
18028 wxColour temp4 ;
18029 wxPoint temp5 ;
18030 PyObject * obj0 = 0 ;
18031 PyObject * obj1 = 0 ;
18032 PyObject * obj2 = 0 ;
18033 PyObject * obj3 = 0 ;
18034 PyObject * obj4 = 0 ;
18035 char * kwnames[] = {
18036 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
18037 };
18038
18039 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18040 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18041 if (!SWIG_IsOK(res1)) {
18042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
18043 }
18044 arg1 = reinterpret_cast< wxDC * >(argp1);
18045 {
18046 arg2 = &temp2;
18047 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18048 }
18049 {
18050 arg3 = &temp3;
18051 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18052 }
18053 {
18054 arg4 = &temp4;
18055 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18056 }
18057 {
18058 arg5 = &temp5;
18059 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
18060 }
18061 {
18062 PyThreadState* __tstate = wxPyBeginAllowThreads();
18063 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
18064 wxPyEndAllowThreads(__tstate);
18065 if (PyErr_Occurred()) SWIG_fail;
18066 }
18067 resultobj = SWIG_Py_Void();
18068 return resultobj;
18069 fail:
18070 return NULL;
18071 }
18072
18073
18074 SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18075 PyObject *resultobj = 0;
18076 wxDC *arg1 = (wxDC *) 0 ;
18077 wxRect *arg2 = 0 ;
18078 wxColour *arg3 = 0 ;
18079 wxColour *arg4 = 0 ;
18080 wxDirection arg5 = (wxDirection) wxEAST ;
18081 void *argp1 = 0 ;
18082 int res1 = 0 ;
18083 wxRect temp2 ;
18084 wxColour temp3 ;
18085 wxColour temp4 ;
18086 int val5 ;
18087 int ecode5 = 0 ;
18088 PyObject * obj0 = 0 ;
18089 PyObject * obj1 = 0 ;
18090 PyObject * obj2 = 0 ;
18091 PyObject * obj3 = 0 ;
18092 PyObject * obj4 = 0 ;
18093 char * kwnames[] = {
18094 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
18095 };
18096
18097 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18098 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18099 if (!SWIG_IsOK(res1)) {
18100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
18101 }
18102 arg1 = reinterpret_cast< wxDC * >(argp1);
18103 {
18104 arg2 = &temp2;
18105 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18106 }
18107 {
18108 arg3 = &temp3;
18109 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18110 }
18111 {
18112 arg4 = &temp4;
18113 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18114 }
18115 if (obj4) {
18116 ecode5 = SWIG_AsVal_int(obj4, &val5);
18117 if (!SWIG_IsOK(ecode5)) {
18118 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
18119 }
18120 arg5 = static_cast< wxDirection >(val5);
18121 }
18122 {
18123 PyThreadState* __tstate = wxPyBeginAllowThreads();
18124 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
18125 wxPyEndAllowThreads(__tstate);
18126 if (PyErr_Occurred()) SWIG_fail;
18127 }
18128 resultobj = SWIG_Py_Void();
18129 return resultobj;
18130 fail:
18131 return NULL;
18132 }
18133
18134
18135 SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18136 PyObject *resultobj = 0;
18137 wxDC *arg1 = (wxDC *) 0 ;
18138 int arg2 ;
18139 int arg3 ;
18140 wxColour result;
18141 void *argp1 = 0 ;
18142 int res1 = 0 ;
18143 int val2 ;
18144 int ecode2 = 0 ;
18145 int val3 ;
18146 int ecode3 = 0 ;
18147 PyObject * obj0 = 0 ;
18148 PyObject * obj1 = 0 ;
18149 PyObject * obj2 = 0 ;
18150 char * kwnames[] = {
18151 (char *) "self",(char *) "x",(char *) "y", NULL
18152 };
18153
18154 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18155 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18156 if (!SWIG_IsOK(res1)) {
18157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
18158 }
18159 arg1 = reinterpret_cast< wxDC * >(argp1);
18160 ecode2 = SWIG_AsVal_int(obj1, &val2);
18161 if (!SWIG_IsOK(ecode2)) {
18162 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
18163 }
18164 arg2 = static_cast< int >(val2);
18165 ecode3 = SWIG_AsVal_int(obj2, &val3);
18166 if (!SWIG_IsOK(ecode3)) {
18167 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
18168 }
18169 arg3 = static_cast< int >(val3);
18170 {
18171 PyThreadState* __tstate = wxPyBeginAllowThreads();
18172 result = wxDC_GetPixel(arg1,arg2,arg3);
18173 wxPyEndAllowThreads(__tstate);
18174 if (PyErr_Occurred()) SWIG_fail;
18175 }
18176 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
18177 return resultobj;
18178 fail:
18179 return NULL;
18180 }
18181
18182
18183 SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18184 PyObject *resultobj = 0;
18185 wxDC *arg1 = (wxDC *) 0 ;
18186 wxPoint *arg2 = 0 ;
18187 wxColour result;
18188 void *argp1 = 0 ;
18189 int res1 = 0 ;
18190 wxPoint temp2 ;
18191 PyObject * obj0 = 0 ;
18192 PyObject * obj1 = 0 ;
18193 char * kwnames[] = {
18194 (char *) "self",(char *) "pt", NULL
18195 };
18196
18197 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18198 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18199 if (!SWIG_IsOK(res1)) {
18200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18201 }
18202 arg1 = reinterpret_cast< wxDC * >(argp1);
18203 {
18204 arg2 = &temp2;
18205 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18206 }
18207 {
18208 PyThreadState* __tstate = wxPyBeginAllowThreads();
18209 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
18210 wxPyEndAllowThreads(__tstate);
18211 if (PyErr_Occurred()) SWIG_fail;
18212 }
18213 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
18214 return resultobj;
18215 fail:
18216 return NULL;
18217 }
18218
18219
18220 SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18221 PyObject *resultobj = 0;
18222 wxDC *arg1 = (wxDC *) 0 ;
18223 int arg2 ;
18224 int arg3 ;
18225 int arg4 ;
18226 int arg5 ;
18227 void *argp1 = 0 ;
18228 int res1 = 0 ;
18229 int val2 ;
18230 int ecode2 = 0 ;
18231 int val3 ;
18232 int ecode3 = 0 ;
18233 int val4 ;
18234 int ecode4 = 0 ;
18235 int val5 ;
18236 int ecode5 = 0 ;
18237 PyObject * obj0 = 0 ;
18238 PyObject * obj1 = 0 ;
18239 PyObject * obj2 = 0 ;
18240 PyObject * obj3 = 0 ;
18241 PyObject * obj4 = 0 ;
18242 char * kwnames[] = {
18243 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
18244 };
18245
18246 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18247 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18248 if (!SWIG_IsOK(res1)) {
18249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
18250 }
18251 arg1 = reinterpret_cast< wxDC * >(argp1);
18252 ecode2 = SWIG_AsVal_int(obj1, &val2);
18253 if (!SWIG_IsOK(ecode2)) {
18254 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
18255 }
18256 arg2 = static_cast< int >(val2);
18257 ecode3 = SWIG_AsVal_int(obj2, &val3);
18258 if (!SWIG_IsOK(ecode3)) {
18259 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
18260 }
18261 arg3 = static_cast< int >(val3);
18262 ecode4 = SWIG_AsVal_int(obj3, &val4);
18263 if (!SWIG_IsOK(ecode4)) {
18264 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
18265 }
18266 arg4 = static_cast< int >(val4);
18267 ecode5 = SWIG_AsVal_int(obj4, &val5);
18268 if (!SWIG_IsOK(ecode5)) {
18269 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
18270 }
18271 arg5 = static_cast< int >(val5);
18272 {
18273 PyThreadState* __tstate = wxPyBeginAllowThreads();
18274 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
18275 wxPyEndAllowThreads(__tstate);
18276 if (PyErr_Occurred()) SWIG_fail;
18277 }
18278 resultobj = SWIG_Py_Void();
18279 return resultobj;
18280 fail:
18281 return NULL;
18282 }
18283
18284
18285 SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18286 PyObject *resultobj = 0;
18287 wxDC *arg1 = (wxDC *) 0 ;
18288 wxPoint *arg2 = 0 ;
18289 wxPoint *arg3 = 0 ;
18290 void *argp1 = 0 ;
18291 int res1 = 0 ;
18292 wxPoint temp2 ;
18293 wxPoint temp3 ;
18294 PyObject * obj0 = 0 ;
18295 PyObject * obj1 = 0 ;
18296 PyObject * obj2 = 0 ;
18297 char * kwnames[] = {
18298 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
18299 };
18300
18301 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18302 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18303 if (!SWIG_IsOK(res1)) {
18304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
18305 }
18306 arg1 = reinterpret_cast< wxDC * >(argp1);
18307 {
18308 arg2 = &temp2;
18309 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18310 }
18311 {
18312 arg3 = &temp3;
18313 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18314 }
18315 {
18316 PyThreadState* __tstate = wxPyBeginAllowThreads();
18317 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
18318 wxPyEndAllowThreads(__tstate);
18319 if (PyErr_Occurred()) SWIG_fail;
18320 }
18321 resultobj = SWIG_Py_Void();
18322 return resultobj;
18323 fail:
18324 return NULL;
18325 }
18326
18327
18328 SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18329 PyObject *resultobj = 0;
18330 wxDC *arg1 = (wxDC *) 0 ;
18331 int arg2 ;
18332 int arg3 ;
18333 void *argp1 = 0 ;
18334 int res1 = 0 ;
18335 int val2 ;
18336 int ecode2 = 0 ;
18337 int val3 ;
18338 int ecode3 = 0 ;
18339 PyObject * obj0 = 0 ;
18340 PyObject * obj1 = 0 ;
18341 PyObject * obj2 = 0 ;
18342 char * kwnames[] = {
18343 (char *) "self",(char *) "x",(char *) "y", NULL
18344 };
18345
18346 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18347 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18348 if (!SWIG_IsOK(res1)) {
18349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
18350 }
18351 arg1 = reinterpret_cast< wxDC * >(argp1);
18352 ecode2 = SWIG_AsVal_int(obj1, &val2);
18353 if (!SWIG_IsOK(ecode2)) {
18354 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
18355 }
18356 arg2 = static_cast< int >(val2);
18357 ecode3 = SWIG_AsVal_int(obj2, &val3);
18358 if (!SWIG_IsOK(ecode3)) {
18359 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
18360 }
18361 arg3 = static_cast< int >(val3);
18362 {
18363 PyThreadState* __tstate = wxPyBeginAllowThreads();
18364 (arg1)->CrossHair(arg2,arg3);
18365 wxPyEndAllowThreads(__tstate);
18366 if (PyErr_Occurred()) SWIG_fail;
18367 }
18368 resultobj = SWIG_Py_Void();
18369 return resultobj;
18370 fail:
18371 return NULL;
18372 }
18373
18374
18375 SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18376 PyObject *resultobj = 0;
18377 wxDC *arg1 = (wxDC *) 0 ;
18378 wxPoint *arg2 = 0 ;
18379 void *argp1 = 0 ;
18380 int res1 = 0 ;
18381 wxPoint temp2 ;
18382 PyObject * obj0 = 0 ;
18383 PyObject * obj1 = 0 ;
18384 char * kwnames[] = {
18385 (char *) "self",(char *) "pt", NULL
18386 };
18387
18388 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18389 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18390 if (!SWIG_IsOK(res1)) {
18391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18392 }
18393 arg1 = reinterpret_cast< wxDC * >(argp1);
18394 {
18395 arg2 = &temp2;
18396 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18397 }
18398 {
18399 PyThreadState* __tstate = wxPyBeginAllowThreads();
18400 (arg1)->CrossHair((wxPoint const &)*arg2);
18401 wxPyEndAllowThreads(__tstate);
18402 if (PyErr_Occurred()) SWIG_fail;
18403 }
18404 resultobj = SWIG_Py_Void();
18405 return resultobj;
18406 fail:
18407 return NULL;
18408 }
18409
18410
18411 SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18412 PyObject *resultobj = 0;
18413 wxDC *arg1 = (wxDC *) 0 ;
18414 int arg2 ;
18415 int arg3 ;
18416 int arg4 ;
18417 int arg5 ;
18418 int arg6 ;
18419 int arg7 ;
18420 void *argp1 = 0 ;
18421 int res1 = 0 ;
18422 int val2 ;
18423 int ecode2 = 0 ;
18424 int val3 ;
18425 int ecode3 = 0 ;
18426 int val4 ;
18427 int ecode4 = 0 ;
18428 int val5 ;
18429 int ecode5 = 0 ;
18430 int val6 ;
18431 int ecode6 = 0 ;
18432 int val7 ;
18433 int ecode7 = 0 ;
18434 PyObject * obj0 = 0 ;
18435 PyObject * obj1 = 0 ;
18436 PyObject * obj2 = 0 ;
18437 PyObject * obj3 = 0 ;
18438 PyObject * obj4 = 0 ;
18439 PyObject * obj5 = 0 ;
18440 PyObject * obj6 = 0 ;
18441 char * kwnames[] = {
18442 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
18443 };
18444
18445 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18446 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18447 if (!SWIG_IsOK(res1)) {
18448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
18449 }
18450 arg1 = reinterpret_cast< wxDC * >(argp1);
18451 ecode2 = SWIG_AsVal_int(obj1, &val2);
18452 if (!SWIG_IsOK(ecode2)) {
18453 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
18454 }
18455 arg2 = static_cast< int >(val2);
18456 ecode3 = SWIG_AsVal_int(obj2, &val3);
18457 if (!SWIG_IsOK(ecode3)) {
18458 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
18459 }
18460 arg3 = static_cast< int >(val3);
18461 ecode4 = SWIG_AsVal_int(obj3, &val4);
18462 if (!SWIG_IsOK(ecode4)) {
18463 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
18464 }
18465 arg4 = static_cast< int >(val4);
18466 ecode5 = SWIG_AsVal_int(obj4, &val5);
18467 if (!SWIG_IsOK(ecode5)) {
18468 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
18469 }
18470 arg5 = static_cast< int >(val5);
18471 ecode6 = SWIG_AsVal_int(obj5, &val6);
18472 if (!SWIG_IsOK(ecode6)) {
18473 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
18474 }
18475 arg6 = static_cast< int >(val6);
18476 ecode7 = SWIG_AsVal_int(obj6, &val7);
18477 if (!SWIG_IsOK(ecode7)) {
18478 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
18479 }
18480 arg7 = static_cast< int >(val7);
18481 {
18482 PyThreadState* __tstate = wxPyBeginAllowThreads();
18483 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
18484 wxPyEndAllowThreads(__tstate);
18485 if (PyErr_Occurred()) SWIG_fail;
18486 }
18487 resultobj = SWIG_Py_Void();
18488 return resultobj;
18489 fail:
18490 return NULL;
18491 }
18492
18493
18494 SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18495 PyObject *resultobj = 0;
18496 wxDC *arg1 = (wxDC *) 0 ;
18497 wxPoint *arg2 = 0 ;
18498 wxPoint *arg3 = 0 ;
18499 wxPoint *arg4 = 0 ;
18500 void *argp1 = 0 ;
18501 int res1 = 0 ;
18502 wxPoint temp2 ;
18503 wxPoint temp3 ;
18504 wxPoint temp4 ;
18505 PyObject * obj0 = 0 ;
18506 PyObject * obj1 = 0 ;
18507 PyObject * obj2 = 0 ;
18508 PyObject * obj3 = 0 ;
18509 char * kwnames[] = {
18510 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
18511 };
18512
18513 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18514 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18515 if (!SWIG_IsOK(res1)) {
18516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18517 }
18518 arg1 = reinterpret_cast< wxDC * >(argp1);
18519 {
18520 arg2 = &temp2;
18521 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18522 }
18523 {
18524 arg3 = &temp3;
18525 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18526 }
18527 {
18528 arg4 = &temp4;
18529 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18530 }
18531 {
18532 PyThreadState* __tstate = wxPyBeginAllowThreads();
18533 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
18534 wxPyEndAllowThreads(__tstate);
18535 if (PyErr_Occurred()) SWIG_fail;
18536 }
18537 resultobj = SWIG_Py_Void();
18538 return resultobj;
18539 fail:
18540 return NULL;
18541 }
18542
18543
18544 SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18545 PyObject *resultobj = 0;
18546 wxDC *arg1 = (wxDC *) 0 ;
18547 int arg2 ;
18548 int arg3 ;
18549 int arg4 ;
18550 int arg5 ;
18551 void *argp1 = 0 ;
18552 int res1 = 0 ;
18553 int val2 ;
18554 int ecode2 = 0 ;
18555 int val3 ;
18556 int ecode3 = 0 ;
18557 int val4 ;
18558 int ecode4 = 0 ;
18559 int val5 ;
18560 int ecode5 = 0 ;
18561 PyObject * obj0 = 0 ;
18562 PyObject * obj1 = 0 ;
18563 PyObject * obj2 = 0 ;
18564 PyObject * obj3 = 0 ;
18565 PyObject * obj4 = 0 ;
18566 char * kwnames[] = {
18567 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18568 };
18569
18570 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18571 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18572 if (!SWIG_IsOK(res1)) {
18573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
18574 }
18575 arg1 = reinterpret_cast< wxDC * >(argp1);
18576 ecode2 = SWIG_AsVal_int(obj1, &val2);
18577 if (!SWIG_IsOK(ecode2)) {
18578 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
18579 }
18580 arg2 = static_cast< int >(val2);
18581 ecode3 = SWIG_AsVal_int(obj2, &val3);
18582 if (!SWIG_IsOK(ecode3)) {
18583 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
18584 }
18585 arg3 = static_cast< int >(val3);
18586 ecode4 = SWIG_AsVal_int(obj3, &val4);
18587 if (!SWIG_IsOK(ecode4)) {
18588 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
18589 }
18590 arg4 = static_cast< int >(val4);
18591 ecode5 = SWIG_AsVal_int(obj4, &val5);
18592 if (!SWIG_IsOK(ecode5)) {
18593 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
18594 }
18595 arg5 = static_cast< int >(val5);
18596 {
18597 PyThreadState* __tstate = wxPyBeginAllowThreads();
18598 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
18599 wxPyEndAllowThreads(__tstate);
18600 if (PyErr_Occurred()) SWIG_fail;
18601 }
18602 resultobj = SWIG_Py_Void();
18603 return resultobj;
18604 fail:
18605 return NULL;
18606 }
18607
18608
18609 SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18610 PyObject *resultobj = 0;
18611 wxDC *arg1 = (wxDC *) 0 ;
18612 wxRect *arg2 = 0 ;
18613 void *argp1 = 0 ;
18614 int res1 = 0 ;
18615 wxRect temp2 ;
18616 PyObject * obj0 = 0 ;
18617 PyObject * obj1 = 0 ;
18618 char * kwnames[] = {
18619 (char *) "self",(char *) "rect", NULL
18620 };
18621
18622 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
18623 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18624 if (!SWIG_IsOK(res1)) {
18625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
18626 }
18627 arg1 = reinterpret_cast< wxDC * >(argp1);
18628 {
18629 arg2 = &temp2;
18630 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18631 }
18632 {
18633 PyThreadState* __tstate = wxPyBeginAllowThreads();
18634 (arg1)->DrawCheckMark((wxRect const &)*arg2);
18635 wxPyEndAllowThreads(__tstate);
18636 if (PyErr_Occurred()) SWIG_fail;
18637 }
18638 resultobj = SWIG_Py_Void();
18639 return resultobj;
18640 fail:
18641 return NULL;
18642 }
18643
18644
18645 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18646 PyObject *resultobj = 0;
18647 wxDC *arg1 = (wxDC *) 0 ;
18648 int arg2 ;
18649 int arg3 ;
18650 int arg4 ;
18651 int arg5 ;
18652 double arg6 ;
18653 double arg7 ;
18654 void *argp1 = 0 ;
18655 int res1 = 0 ;
18656 int val2 ;
18657 int ecode2 = 0 ;
18658 int val3 ;
18659 int ecode3 = 0 ;
18660 int val4 ;
18661 int ecode4 = 0 ;
18662 int val5 ;
18663 int ecode5 = 0 ;
18664 double val6 ;
18665 int ecode6 = 0 ;
18666 double val7 ;
18667 int ecode7 = 0 ;
18668 PyObject * obj0 = 0 ;
18669 PyObject * obj1 = 0 ;
18670 PyObject * obj2 = 0 ;
18671 PyObject * obj3 = 0 ;
18672 PyObject * obj4 = 0 ;
18673 PyObject * obj5 = 0 ;
18674 PyObject * obj6 = 0 ;
18675 char * kwnames[] = {
18676 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
18677 };
18678
18679 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18680 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18681 if (!SWIG_IsOK(res1)) {
18682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
18683 }
18684 arg1 = reinterpret_cast< wxDC * >(argp1);
18685 ecode2 = SWIG_AsVal_int(obj1, &val2);
18686 if (!SWIG_IsOK(ecode2)) {
18687 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
18688 }
18689 arg2 = static_cast< int >(val2);
18690 ecode3 = SWIG_AsVal_int(obj2, &val3);
18691 if (!SWIG_IsOK(ecode3)) {
18692 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
18693 }
18694 arg3 = static_cast< int >(val3);
18695 ecode4 = SWIG_AsVal_int(obj3, &val4);
18696 if (!SWIG_IsOK(ecode4)) {
18697 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
18698 }
18699 arg4 = static_cast< int >(val4);
18700 ecode5 = SWIG_AsVal_int(obj4, &val5);
18701 if (!SWIG_IsOK(ecode5)) {
18702 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
18703 }
18704 arg5 = static_cast< int >(val5);
18705 ecode6 = SWIG_AsVal_double(obj5, &val6);
18706 if (!SWIG_IsOK(ecode6)) {
18707 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
18708 }
18709 arg6 = static_cast< double >(val6);
18710 ecode7 = SWIG_AsVal_double(obj6, &val7);
18711 if (!SWIG_IsOK(ecode7)) {
18712 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
18713 }
18714 arg7 = static_cast< double >(val7);
18715 {
18716 PyThreadState* __tstate = wxPyBeginAllowThreads();
18717 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
18718 wxPyEndAllowThreads(__tstate);
18719 if (PyErr_Occurred()) SWIG_fail;
18720 }
18721 resultobj = SWIG_Py_Void();
18722 return resultobj;
18723 fail:
18724 return NULL;
18725 }
18726
18727
18728 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18729 PyObject *resultobj = 0;
18730 wxDC *arg1 = (wxDC *) 0 ;
18731 wxPoint *arg2 = 0 ;
18732 wxSize *arg3 = 0 ;
18733 double arg4 ;
18734 double arg5 ;
18735 void *argp1 = 0 ;
18736 int res1 = 0 ;
18737 wxPoint temp2 ;
18738 wxSize temp3 ;
18739 double val4 ;
18740 int ecode4 = 0 ;
18741 double val5 ;
18742 int ecode5 = 0 ;
18743 PyObject * obj0 = 0 ;
18744 PyObject * obj1 = 0 ;
18745 PyObject * obj2 = 0 ;
18746 PyObject * obj3 = 0 ;
18747 PyObject * obj4 = 0 ;
18748 char * kwnames[] = {
18749 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
18750 };
18751
18752 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18753 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18754 if (!SWIG_IsOK(res1)) {
18755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18756 }
18757 arg1 = reinterpret_cast< wxDC * >(argp1);
18758 {
18759 arg2 = &temp2;
18760 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18761 }
18762 {
18763 arg3 = &temp3;
18764 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18765 }
18766 ecode4 = SWIG_AsVal_double(obj3, &val4);
18767 if (!SWIG_IsOK(ecode4)) {
18768 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
18769 }
18770 arg4 = static_cast< double >(val4);
18771 ecode5 = SWIG_AsVal_double(obj4, &val5);
18772 if (!SWIG_IsOK(ecode5)) {
18773 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
18774 }
18775 arg5 = static_cast< double >(val5);
18776 {
18777 PyThreadState* __tstate = wxPyBeginAllowThreads();
18778 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
18779 wxPyEndAllowThreads(__tstate);
18780 if (PyErr_Occurred()) SWIG_fail;
18781 }
18782 resultobj = SWIG_Py_Void();
18783 return resultobj;
18784 fail:
18785 return NULL;
18786 }
18787
18788
18789 SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18790 PyObject *resultobj = 0;
18791 wxDC *arg1 = (wxDC *) 0 ;
18792 int arg2 ;
18793 int arg3 ;
18794 void *argp1 = 0 ;
18795 int res1 = 0 ;
18796 int val2 ;
18797 int ecode2 = 0 ;
18798 int val3 ;
18799 int ecode3 = 0 ;
18800 PyObject * obj0 = 0 ;
18801 PyObject * obj1 = 0 ;
18802 PyObject * obj2 = 0 ;
18803 char * kwnames[] = {
18804 (char *) "self",(char *) "x",(char *) "y", NULL
18805 };
18806
18807 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18808 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18809 if (!SWIG_IsOK(res1)) {
18810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18811 }
18812 arg1 = reinterpret_cast< wxDC * >(argp1);
18813 ecode2 = SWIG_AsVal_int(obj1, &val2);
18814 if (!SWIG_IsOK(ecode2)) {
18815 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
18816 }
18817 arg2 = static_cast< int >(val2);
18818 ecode3 = SWIG_AsVal_int(obj2, &val3);
18819 if (!SWIG_IsOK(ecode3)) {
18820 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
18821 }
18822 arg3 = static_cast< int >(val3);
18823 {
18824 PyThreadState* __tstate = wxPyBeginAllowThreads();
18825 (arg1)->DrawPoint(arg2,arg3);
18826 wxPyEndAllowThreads(__tstate);
18827 if (PyErr_Occurred()) SWIG_fail;
18828 }
18829 resultobj = SWIG_Py_Void();
18830 return resultobj;
18831 fail:
18832 return NULL;
18833 }
18834
18835
18836 SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18837 PyObject *resultobj = 0;
18838 wxDC *arg1 = (wxDC *) 0 ;
18839 wxPoint *arg2 = 0 ;
18840 void *argp1 = 0 ;
18841 int res1 = 0 ;
18842 wxPoint temp2 ;
18843 PyObject * obj0 = 0 ;
18844 PyObject * obj1 = 0 ;
18845 char * kwnames[] = {
18846 (char *) "self",(char *) "pt", NULL
18847 };
18848
18849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18851 if (!SWIG_IsOK(res1)) {
18852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18853 }
18854 arg1 = reinterpret_cast< wxDC * >(argp1);
18855 {
18856 arg2 = &temp2;
18857 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18858 }
18859 {
18860 PyThreadState* __tstate = wxPyBeginAllowThreads();
18861 (arg1)->DrawPoint((wxPoint const &)*arg2);
18862 wxPyEndAllowThreads(__tstate);
18863 if (PyErr_Occurred()) SWIG_fail;
18864 }
18865 resultobj = SWIG_Py_Void();
18866 return resultobj;
18867 fail:
18868 return NULL;
18869 }
18870
18871
18872 SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18873 PyObject *resultobj = 0;
18874 wxDC *arg1 = (wxDC *) 0 ;
18875 int arg2 ;
18876 int arg3 ;
18877 int arg4 ;
18878 int arg5 ;
18879 void *argp1 = 0 ;
18880 int res1 = 0 ;
18881 int val2 ;
18882 int ecode2 = 0 ;
18883 int val3 ;
18884 int ecode3 = 0 ;
18885 int val4 ;
18886 int ecode4 = 0 ;
18887 int val5 ;
18888 int ecode5 = 0 ;
18889 PyObject * obj0 = 0 ;
18890 PyObject * obj1 = 0 ;
18891 PyObject * obj2 = 0 ;
18892 PyObject * obj3 = 0 ;
18893 PyObject * obj4 = 0 ;
18894 char * kwnames[] = {
18895 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18896 };
18897
18898 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18899 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18900 if (!SWIG_IsOK(res1)) {
18901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18902 }
18903 arg1 = reinterpret_cast< wxDC * >(argp1);
18904 ecode2 = SWIG_AsVal_int(obj1, &val2);
18905 if (!SWIG_IsOK(ecode2)) {
18906 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
18907 }
18908 arg2 = static_cast< int >(val2);
18909 ecode3 = SWIG_AsVal_int(obj2, &val3);
18910 if (!SWIG_IsOK(ecode3)) {
18911 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
18912 }
18913 arg3 = static_cast< int >(val3);
18914 ecode4 = SWIG_AsVal_int(obj3, &val4);
18915 if (!SWIG_IsOK(ecode4)) {
18916 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
18917 }
18918 arg4 = static_cast< int >(val4);
18919 ecode5 = SWIG_AsVal_int(obj4, &val5);
18920 if (!SWIG_IsOK(ecode5)) {
18921 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
18922 }
18923 arg5 = static_cast< int >(val5);
18924 {
18925 PyThreadState* __tstate = wxPyBeginAllowThreads();
18926 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
18927 wxPyEndAllowThreads(__tstate);
18928 if (PyErr_Occurred()) SWIG_fail;
18929 }
18930 resultobj = SWIG_Py_Void();
18931 return resultobj;
18932 fail:
18933 return NULL;
18934 }
18935
18936
18937 SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18938 PyObject *resultobj = 0;
18939 wxDC *arg1 = (wxDC *) 0 ;
18940 wxRect *arg2 = 0 ;
18941 void *argp1 = 0 ;
18942 int res1 = 0 ;
18943 wxRect temp2 ;
18944 PyObject * obj0 = 0 ;
18945 PyObject * obj1 = 0 ;
18946 char * kwnames[] = {
18947 (char *) "self",(char *) "rect", NULL
18948 };
18949
18950 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
18951 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18952 if (!SWIG_IsOK(res1)) {
18953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18954 }
18955 arg1 = reinterpret_cast< wxDC * >(argp1);
18956 {
18957 arg2 = &temp2;
18958 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18959 }
18960 {
18961 PyThreadState* __tstate = wxPyBeginAllowThreads();
18962 (arg1)->DrawRectangle((wxRect const &)*arg2);
18963 wxPyEndAllowThreads(__tstate);
18964 if (PyErr_Occurred()) SWIG_fail;
18965 }
18966 resultobj = SWIG_Py_Void();
18967 return resultobj;
18968 fail:
18969 return NULL;
18970 }
18971
18972
18973 SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18974 PyObject *resultobj = 0;
18975 wxDC *arg1 = (wxDC *) 0 ;
18976 wxPoint *arg2 = 0 ;
18977 wxSize *arg3 = 0 ;
18978 void *argp1 = 0 ;
18979 int res1 = 0 ;
18980 wxPoint temp2 ;
18981 wxSize temp3 ;
18982 PyObject * obj0 = 0 ;
18983 PyObject * obj1 = 0 ;
18984 PyObject * obj2 = 0 ;
18985 char * kwnames[] = {
18986 (char *) "self",(char *) "pt",(char *) "sz", NULL
18987 };
18988
18989 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18990 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18991 if (!SWIG_IsOK(res1)) {
18992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18993 }
18994 arg1 = reinterpret_cast< wxDC * >(argp1);
18995 {
18996 arg2 = &temp2;
18997 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18998 }
18999 {
19000 arg3 = &temp3;
19001 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19002 }
19003 {
19004 PyThreadState* __tstate = wxPyBeginAllowThreads();
19005 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
19006 wxPyEndAllowThreads(__tstate);
19007 if (PyErr_Occurred()) SWIG_fail;
19008 }
19009 resultobj = SWIG_Py_Void();
19010 return resultobj;
19011 fail:
19012 return NULL;
19013 }
19014
19015
19016 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19017 PyObject *resultobj = 0;
19018 wxDC *arg1 = (wxDC *) 0 ;
19019 int arg2 ;
19020 int arg3 ;
19021 int arg4 ;
19022 int arg5 ;
19023 double arg6 ;
19024 void *argp1 = 0 ;
19025 int res1 = 0 ;
19026 int val2 ;
19027 int ecode2 = 0 ;
19028 int val3 ;
19029 int ecode3 = 0 ;
19030 int val4 ;
19031 int ecode4 = 0 ;
19032 int val5 ;
19033 int ecode5 = 0 ;
19034 double val6 ;
19035 int ecode6 = 0 ;
19036 PyObject * obj0 = 0 ;
19037 PyObject * obj1 = 0 ;
19038 PyObject * obj2 = 0 ;
19039 PyObject * obj3 = 0 ;
19040 PyObject * obj4 = 0 ;
19041 PyObject * obj5 = 0 ;
19042 char * kwnames[] = {
19043 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
19044 };
19045
19046 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
19047 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19048 if (!SWIG_IsOK(res1)) {
19049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
19050 }
19051 arg1 = reinterpret_cast< wxDC * >(argp1);
19052 ecode2 = SWIG_AsVal_int(obj1, &val2);
19053 if (!SWIG_IsOK(ecode2)) {
19054 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
19055 }
19056 arg2 = static_cast< int >(val2);
19057 ecode3 = SWIG_AsVal_int(obj2, &val3);
19058 if (!SWIG_IsOK(ecode3)) {
19059 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
19060 }
19061 arg3 = static_cast< int >(val3);
19062 ecode4 = SWIG_AsVal_int(obj3, &val4);
19063 if (!SWIG_IsOK(ecode4)) {
19064 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
19065 }
19066 arg4 = static_cast< int >(val4);
19067 ecode5 = SWIG_AsVal_int(obj4, &val5);
19068 if (!SWIG_IsOK(ecode5)) {
19069 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
19070 }
19071 arg5 = static_cast< int >(val5);
19072 ecode6 = SWIG_AsVal_double(obj5, &val6);
19073 if (!SWIG_IsOK(ecode6)) {
19074 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
19075 }
19076 arg6 = static_cast< double >(val6);
19077 {
19078 PyThreadState* __tstate = wxPyBeginAllowThreads();
19079 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
19080 wxPyEndAllowThreads(__tstate);
19081 if (PyErr_Occurred()) SWIG_fail;
19082 }
19083 resultobj = SWIG_Py_Void();
19084 return resultobj;
19085 fail:
19086 return NULL;
19087 }
19088
19089
19090 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19091 PyObject *resultobj = 0;
19092 wxDC *arg1 = (wxDC *) 0 ;
19093 wxRect *arg2 = 0 ;
19094 double arg3 ;
19095 void *argp1 = 0 ;
19096 int res1 = 0 ;
19097 wxRect temp2 ;
19098 double val3 ;
19099 int ecode3 = 0 ;
19100 PyObject * obj0 = 0 ;
19101 PyObject * obj1 = 0 ;
19102 PyObject * obj2 = 0 ;
19103 char * kwnames[] = {
19104 (char *) "self",(char *) "r",(char *) "radius", NULL
19105 };
19106
19107 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19108 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19109 if (!SWIG_IsOK(res1)) {
19110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
19111 }
19112 arg1 = reinterpret_cast< wxDC * >(argp1);
19113 {
19114 arg2 = &temp2;
19115 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19116 }
19117 ecode3 = SWIG_AsVal_double(obj2, &val3);
19118 if (!SWIG_IsOK(ecode3)) {
19119 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
19120 }
19121 arg3 = static_cast< double >(val3);
19122 {
19123 PyThreadState* __tstate = wxPyBeginAllowThreads();
19124 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
19125 wxPyEndAllowThreads(__tstate);
19126 if (PyErr_Occurred()) SWIG_fail;
19127 }
19128 resultobj = SWIG_Py_Void();
19129 return resultobj;
19130 fail:
19131 return NULL;
19132 }
19133
19134
19135 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19136 PyObject *resultobj = 0;
19137 wxDC *arg1 = (wxDC *) 0 ;
19138 wxPoint *arg2 = 0 ;
19139 wxSize *arg3 = 0 ;
19140 double arg4 ;
19141 void *argp1 = 0 ;
19142 int res1 = 0 ;
19143 wxPoint temp2 ;
19144 wxSize temp3 ;
19145 double val4 ;
19146 int ecode4 = 0 ;
19147 PyObject * obj0 = 0 ;
19148 PyObject * obj1 = 0 ;
19149 PyObject * obj2 = 0 ;
19150 PyObject * obj3 = 0 ;
19151 char * kwnames[] = {
19152 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
19153 };
19154
19155 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19156 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19157 if (!SWIG_IsOK(res1)) {
19158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19159 }
19160 arg1 = reinterpret_cast< wxDC * >(argp1);
19161 {
19162 arg2 = &temp2;
19163 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19164 }
19165 {
19166 arg3 = &temp3;
19167 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19168 }
19169 ecode4 = SWIG_AsVal_double(obj3, &val4);
19170 if (!SWIG_IsOK(ecode4)) {
19171 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
19172 }
19173 arg4 = static_cast< double >(val4);
19174 {
19175 PyThreadState* __tstate = wxPyBeginAllowThreads();
19176 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
19177 wxPyEndAllowThreads(__tstate);
19178 if (PyErr_Occurred()) SWIG_fail;
19179 }
19180 resultobj = SWIG_Py_Void();
19181 return resultobj;
19182 fail:
19183 return NULL;
19184 }
19185
19186
19187 SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19188 PyObject *resultobj = 0;
19189 wxDC *arg1 = (wxDC *) 0 ;
19190 int arg2 ;
19191 int arg3 ;
19192 int arg4 ;
19193 void *argp1 = 0 ;
19194 int res1 = 0 ;
19195 int val2 ;
19196 int ecode2 = 0 ;
19197 int val3 ;
19198 int ecode3 = 0 ;
19199 int val4 ;
19200 int ecode4 = 0 ;
19201 PyObject * obj0 = 0 ;
19202 PyObject * obj1 = 0 ;
19203 PyObject * obj2 = 0 ;
19204 PyObject * obj3 = 0 ;
19205 char * kwnames[] = {
19206 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
19207 };
19208
19209 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19210 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19211 if (!SWIG_IsOK(res1)) {
19212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
19213 }
19214 arg1 = reinterpret_cast< wxDC * >(argp1);
19215 ecode2 = SWIG_AsVal_int(obj1, &val2);
19216 if (!SWIG_IsOK(ecode2)) {
19217 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
19218 }
19219 arg2 = static_cast< int >(val2);
19220 ecode3 = SWIG_AsVal_int(obj2, &val3);
19221 if (!SWIG_IsOK(ecode3)) {
19222 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
19223 }
19224 arg3 = static_cast< int >(val3);
19225 ecode4 = SWIG_AsVal_int(obj3, &val4);
19226 if (!SWIG_IsOK(ecode4)) {
19227 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
19228 }
19229 arg4 = static_cast< int >(val4);
19230 {
19231 PyThreadState* __tstate = wxPyBeginAllowThreads();
19232 (arg1)->DrawCircle(arg2,arg3,arg4);
19233 wxPyEndAllowThreads(__tstate);
19234 if (PyErr_Occurred()) SWIG_fail;
19235 }
19236 resultobj = SWIG_Py_Void();
19237 return resultobj;
19238 fail:
19239 return NULL;
19240 }
19241
19242
19243 SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19244 PyObject *resultobj = 0;
19245 wxDC *arg1 = (wxDC *) 0 ;
19246 wxPoint *arg2 = 0 ;
19247 int arg3 ;
19248 void *argp1 = 0 ;
19249 int res1 = 0 ;
19250 wxPoint temp2 ;
19251 int val3 ;
19252 int ecode3 = 0 ;
19253 PyObject * obj0 = 0 ;
19254 PyObject * obj1 = 0 ;
19255 PyObject * obj2 = 0 ;
19256 char * kwnames[] = {
19257 (char *) "self",(char *) "pt",(char *) "radius", NULL
19258 };
19259
19260 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19261 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19262 if (!SWIG_IsOK(res1)) {
19263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
19264 }
19265 arg1 = reinterpret_cast< wxDC * >(argp1);
19266 {
19267 arg2 = &temp2;
19268 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19269 }
19270 ecode3 = SWIG_AsVal_int(obj2, &val3);
19271 if (!SWIG_IsOK(ecode3)) {
19272 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
19273 }
19274 arg3 = static_cast< int >(val3);
19275 {
19276 PyThreadState* __tstate = wxPyBeginAllowThreads();
19277 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
19278 wxPyEndAllowThreads(__tstate);
19279 if (PyErr_Occurred()) SWIG_fail;
19280 }
19281 resultobj = SWIG_Py_Void();
19282 return resultobj;
19283 fail:
19284 return NULL;
19285 }
19286
19287
19288 SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19289 PyObject *resultobj = 0;
19290 wxDC *arg1 = (wxDC *) 0 ;
19291 int arg2 ;
19292 int arg3 ;
19293 int arg4 ;
19294 int arg5 ;
19295 void *argp1 = 0 ;
19296 int res1 = 0 ;
19297 int val2 ;
19298 int ecode2 = 0 ;
19299 int val3 ;
19300 int ecode3 = 0 ;
19301 int val4 ;
19302 int ecode4 = 0 ;
19303 int val5 ;
19304 int ecode5 = 0 ;
19305 PyObject * obj0 = 0 ;
19306 PyObject * obj1 = 0 ;
19307 PyObject * obj2 = 0 ;
19308 PyObject * obj3 = 0 ;
19309 PyObject * obj4 = 0 ;
19310 char * kwnames[] = {
19311 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19312 };
19313
19314 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19315 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19316 if (!SWIG_IsOK(res1)) {
19317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
19318 }
19319 arg1 = reinterpret_cast< wxDC * >(argp1);
19320 ecode2 = SWIG_AsVal_int(obj1, &val2);
19321 if (!SWIG_IsOK(ecode2)) {
19322 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
19323 }
19324 arg2 = static_cast< int >(val2);
19325 ecode3 = SWIG_AsVal_int(obj2, &val3);
19326 if (!SWIG_IsOK(ecode3)) {
19327 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
19328 }
19329 arg3 = static_cast< int >(val3);
19330 ecode4 = SWIG_AsVal_int(obj3, &val4);
19331 if (!SWIG_IsOK(ecode4)) {
19332 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
19333 }
19334 arg4 = static_cast< int >(val4);
19335 ecode5 = SWIG_AsVal_int(obj4, &val5);
19336 if (!SWIG_IsOK(ecode5)) {
19337 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
19338 }
19339 arg5 = static_cast< int >(val5);
19340 {
19341 PyThreadState* __tstate = wxPyBeginAllowThreads();
19342 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
19343 wxPyEndAllowThreads(__tstate);
19344 if (PyErr_Occurred()) SWIG_fail;
19345 }
19346 resultobj = SWIG_Py_Void();
19347 return resultobj;
19348 fail:
19349 return NULL;
19350 }
19351
19352
19353 SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19354 PyObject *resultobj = 0;
19355 wxDC *arg1 = (wxDC *) 0 ;
19356 wxRect *arg2 = 0 ;
19357 void *argp1 = 0 ;
19358 int res1 = 0 ;
19359 wxRect temp2 ;
19360 PyObject * obj0 = 0 ;
19361 PyObject * obj1 = 0 ;
19362 char * kwnames[] = {
19363 (char *) "self",(char *) "rect", NULL
19364 };
19365
19366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
19367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19368 if (!SWIG_IsOK(res1)) {
19369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
19370 }
19371 arg1 = reinterpret_cast< wxDC * >(argp1);
19372 {
19373 arg2 = &temp2;
19374 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19375 }
19376 {
19377 PyThreadState* __tstate = wxPyBeginAllowThreads();
19378 (arg1)->DrawEllipse((wxRect const &)*arg2);
19379 wxPyEndAllowThreads(__tstate);
19380 if (PyErr_Occurred()) SWIG_fail;
19381 }
19382 resultobj = SWIG_Py_Void();
19383 return resultobj;
19384 fail:
19385 return NULL;
19386 }
19387
19388
19389 SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19390 PyObject *resultobj = 0;
19391 wxDC *arg1 = (wxDC *) 0 ;
19392 wxPoint *arg2 = 0 ;
19393 wxSize *arg3 = 0 ;
19394 void *argp1 = 0 ;
19395 int res1 = 0 ;
19396 wxPoint temp2 ;
19397 wxSize temp3 ;
19398 PyObject * obj0 = 0 ;
19399 PyObject * obj1 = 0 ;
19400 PyObject * obj2 = 0 ;
19401 char * kwnames[] = {
19402 (char *) "self",(char *) "pt",(char *) "sz", NULL
19403 };
19404
19405 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19406 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19407 if (!SWIG_IsOK(res1)) {
19408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19409 }
19410 arg1 = reinterpret_cast< wxDC * >(argp1);
19411 {
19412 arg2 = &temp2;
19413 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19414 }
19415 {
19416 arg3 = &temp3;
19417 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19418 }
19419 {
19420 PyThreadState* __tstate = wxPyBeginAllowThreads();
19421 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
19422 wxPyEndAllowThreads(__tstate);
19423 if (PyErr_Occurred()) SWIG_fail;
19424 }
19425 resultobj = SWIG_Py_Void();
19426 return resultobj;
19427 fail:
19428 return NULL;
19429 }
19430
19431
19432 SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19433 PyObject *resultobj = 0;
19434 wxDC *arg1 = (wxDC *) 0 ;
19435 wxIcon *arg2 = 0 ;
19436 int arg3 ;
19437 int arg4 ;
19438 void *argp1 = 0 ;
19439 int res1 = 0 ;
19440 void *argp2 = 0 ;
19441 int res2 = 0 ;
19442 int val3 ;
19443 int ecode3 = 0 ;
19444 int val4 ;
19445 int ecode4 = 0 ;
19446 PyObject * obj0 = 0 ;
19447 PyObject * obj1 = 0 ;
19448 PyObject * obj2 = 0 ;
19449 PyObject * obj3 = 0 ;
19450 char * kwnames[] = {
19451 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
19452 };
19453
19454 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19455 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19456 if (!SWIG_IsOK(res1)) {
19457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
19458 }
19459 arg1 = reinterpret_cast< wxDC * >(argp1);
19460 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19461 if (!SWIG_IsOK(res2)) {
19462 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19463 }
19464 if (!argp2) {
19465 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19466 }
19467 arg2 = reinterpret_cast< wxIcon * >(argp2);
19468 ecode3 = SWIG_AsVal_int(obj2, &val3);
19469 if (!SWIG_IsOK(ecode3)) {
19470 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
19471 }
19472 arg3 = static_cast< int >(val3);
19473 ecode4 = SWIG_AsVal_int(obj3, &val4);
19474 if (!SWIG_IsOK(ecode4)) {
19475 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
19476 }
19477 arg4 = static_cast< int >(val4);
19478 {
19479 PyThreadState* __tstate = wxPyBeginAllowThreads();
19480 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
19481 wxPyEndAllowThreads(__tstate);
19482 if (PyErr_Occurred()) SWIG_fail;
19483 }
19484 resultobj = SWIG_Py_Void();
19485 return resultobj;
19486 fail:
19487 return NULL;
19488 }
19489
19490
19491 SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19492 PyObject *resultobj = 0;
19493 wxDC *arg1 = (wxDC *) 0 ;
19494 wxIcon *arg2 = 0 ;
19495 wxPoint *arg3 = 0 ;
19496 void *argp1 = 0 ;
19497 int res1 = 0 ;
19498 void *argp2 = 0 ;
19499 int res2 = 0 ;
19500 wxPoint temp3 ;
19501 PyObject * obj0 = 0 ;
19502 PyObject * obj1 = 0 ;
19503 PyObject * obj2 = 0 ;
19504 char * kwnames[] = {
19505 (char *) "self",(char *) "icon",(char *) "pt", NULL
19506 };
19507
19508 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19509 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19510 if (!SWIG_IsOK(res1)) {
19511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19512 }
19513 arg1 = reinterpret_cast< wxDC * >(argp1);
19514 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19515 if (!SWIG_IsOK(res2)) {
19516 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19517 }
19518 if (!argp2) {
19519 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19520 }
19521 arg2 = reinterpret_cast< wxIcon * >(argp2);
19522 {
19523 arg3 = &temp3;
19524 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19525 }
19526 {
19527 PyThreadState* __tstate = wxPyBeginAllowThreads();
19528 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
19529 wxPyEndAllowThreads(__tstate);
19530 if (PyErr_Occurred()) SWIG_fail;
19531 }
19532 resultobj = SWIG_Py_Void();
19533 return resultobj;
19534 fail:
19535 return NULL;
19536 }
19537
19538
19539 SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19540 PyObject *resultobj = 0;
19541 wxDC *arg1 = (wxDC *) 0 ;
19542 wxBitmap *arg2 = 0 ;
19543 int arg3 ;
19544 int arg4 ;
19545 bool arg5 = (bool) false ;
19546 void *argp1 = 0 ;
19547 int res1 = 0 ;
19548 void *argp2 = 0 ;
19549 int res2 = 0 ;
19550 int val3 ;
19551 int ecode3 = 0 ;
19552 int val4 ;
19553 int ecode4 = 0 ;
19554 bool val5 ;
19555 int ecode5 = 0 ;
19556 PyObject * obj0 = 0 ;
19557 PyObject * obj1 = 0 ;
19558 PyObject * obj2 = 0 ;
19559 PyObject * obj3 = 0 ;
19560 PyObject * obj4 = 0 ;
19561 char * kwnames[] = {
19562 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
19563 };
19564
19565 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19566 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19567 if (!SWIG_IsOK(res1)) {
19568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
19569 }
19570 arg1 = reinterpret_cast< wxDC * >(argp1);
19571 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19572 if (!SWIG_IsOK(res2)) {
19573 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19574 }
19575 if (!argp2) {
19576 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19577 }
19578 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19579 ecode3 = SWIG_AsVal_int(obj2, &val3);
19580 if (!SWIG_IsOK(ecode3)) {
19581 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
19582 }
19583 arg3 = static_cast< int >(val3);
19584 ecode4 = SWIG_AsVal_int(obj3, &val4);
19585 if (!SWIG_IsOK(ecode4)) {
19586 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
19587 }
19588 arg4 = static_cast< int >(val4);
19589 if (obj4) {
19590 ecode5 = SWIG_AsVal_bool(obj4, &val5);
19591 if (!SWIG_IsOK(ecode5)) {
19592 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
19593 }
19594 arg5 = static_cast< bool >(val5);
19595 }
19596 {
19597 PyThreadState* __tstate = wxPyBeginAllowThreads();
19598 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
19599 wxPyEndAllowThreads(__tstate);
19600 if (PyErr_Occurred()) SWIG_fail;
19601 }
19602 resultobj = SWIG_Py_Void();
19603 return resultobj;
19604 fail:
19605 return NULL;
19606 }
19607
19608
19609 SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19610 PyObject *resultobj = 0;
19611 wxDC *arg1 = (wxDC *) 0 ;
19612 wxBitmap *arg2 = 0 ;
19613 wxPoint *arg3 = 0 ;
19614 bool arg4 = (bool) false ;
19615 void *argp1 = 0 ;
19616 int res1 = 0 ;
19617 void *argp2 = 0 ;
19618 int res2 = 0 ;
19619 wxPoint temp3 ;
19620 bool val4 ;
19621 int ecode4 = 0 ;
19622 PyObject * obj0 = 0 ;
19623 PyObject * obj1 = 0 ;
19624 PyObject * obj2 = 0 ;
19625 PyObject * obj3 = 0 ;
19626 char * kwnames[] = {
19627 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
19628 };
19629
19630 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19631 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19632 if (!SWIG_IsOK(res1)) {
19633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19634 }
19635 arg1 = reinterpret_cast< wxDC * >(argp1);
19636 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19637 if (!SWIG_IsOK(res2)) {
19638 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19639 }
19640 if (!argp2) {
19641 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19642 }
19643 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19644 {
19645 arg3 = &temp3;
19646 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19647 }
19648 if (obj3) {
19649 ecode4 = SWIG_AsVal_bool(obj3, &val4);
19650 if (!SWIG_IsOK(ecode4)) {
19651 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
19652 }
19653 arg4 = static_cast< bool >(val4);
19654 }
19655 {
19656 PyThreadState* __tstate = wxPyBeginAllowThreads();
19657 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
19658 wxPyEndAllowThreads(__tstate);
19659 if (PyErr_Occurred()) SWIG_fail;
19660 }
19661 resultobj = SWIG_Py_Void();
19662 return resultobj;
19663 fail:
19664 return NULL;
19665 }
19666
19667
19668 SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19669 PyObject *resultobj = 0;
19670 wxDC *arg1 = (wxDC *) 0 ;
19671 wxString *arg2 = 0 ;
19672 int arg3 ;
19673 int arg4 ;
19674 void *argp1 = 0 ;
19675 int res1 = 0 ;
19676 bool temp2 = false ;
19677 int val3 ;
19678 int ecode3 = 0 ;
19679 int val4 ;
19680 int ecode4 = 0 ;
19681 PyObject * obj0 = 0 ;
19682 PyObject * obj1 = 0 ;
19683 PyObject * obj2 = 0 ;
19684 PyObject * obj3 = 0 ;
19685 char * kwnames[] = {
19686 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
19687 };
19688
19689 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19690 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19691 if (!SWIG_IsOK(res1)) {
19692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
19693 }
19694 arg1 = reinterpret_cast< wxDC * >(argp1);
19695 {
19696 arg2 = wxString_in_helper(obj1);
19697 if (arg2 == NULL) SWIG_fail;
19698 temp2 = true;
19699 }
19700 ecode3 = SWIG_AsVal_int(obj2, &val3);
19701 if (!SWIG_IsOK(ecode3)) {
19702 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
19703 }
19704 arg3 = static_cast< int >(val3);
19705 ecode4 = SWIG_AsVal_int(obj3, &val4);
19706 if (!SWIG_IsOK(ecode4)) {
19707 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
19708 }
19709 arg4 = static_cast< int >(val4);
19710 {
19711 PyThreadState* __tstate = wxPyBeginAllowThreads();
19712 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
19713 wxPyEndAllowThreads(__tstate);
19714 if (PyErr_Occurred()) SWIG_fail;
19715 }
19716 resultobj = SWIG_Py_Void();
19717 {
19718 if (temp2)
19719 delete arg2;
19720 }
19721 return resultobj;
19722 fail:
19723 {
19724 if (temp2)
19725 delete arg2;
19726 }
19727 return NULL;
19728 }
19729
19730
19731 SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19732 PyObject *resultobj = 0;
19733 wxDC *arg1 = (wxDC *) 0 ;
19734 wxString *arg2 = 0 ;
19735 wxPoint *arg3 = 0 ;
19736 void *argp1 = 0 ;
19737 int res1 = 0 ;
19738 bool temp2 = false ;
19739 wxPoint temp3 ;
19740 PyObject * obj0 = 0 ;
19741 PyObject * obj1 = 0 ;
19742 PyObject * obj2 = 0 ;
19743 char * kwnames[] = {
19744 (char *) "self",(char *) "text",(char *) "pt", NULL
19745 };
19746
19747 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19748 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19749 if (!SWIG_IsOK(res1)) {
19750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19751 }
19752 arg1 = reinterpret_cast< wxDC * >(argp1);
19753 {
19754 arg2 = wxString_in_helper(obj1);
19755 if (arg2 == NULL) SWIG_fail;
19756 temp2 = true;
19757 }
19758 {
19759 arg3 = &temp3;
19760 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19761 }
19762 {
19763 PyThreadState* __tstate = wxPyBeginAllowThreads();
19764 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
19765 wxPyEndAllowThreads(__tstate);
19766 if (PyErr_Occurred()) SWIG_fail;
19767 }
19768 resultobj = SWIG_Py_Void();
19769 {
19770 if (temp2)
19771 delete arg2;
19772 }
19773 return resultobj;
19774 fail:
19775 {
19776 if (temp2)
19777 delete arg2;
19778 }
19779 return NULL;
19780 }
19781
19782
19783 SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19784 PyObject *resultobj = 0;
19785 wxDC *arg1 = (wxDC *) 0 ;
19786 wxString *arg2 = 0 ;
19787 int arg3 ;
19788 int arg4 ;
19789 double arg5 ;
19790 void *argp1 = 0 ;
19791 int res1 = 0 ;
19792 bool temp2 = false ;
19793 int val3 ;
19794 int ecode3 = 0 ;
19795 int val4 ;
19796 int ecode4 = 0 ;
19797 double val5 ;
19798 int ecode5 = 0 ;
19799 PyObject * obj0 = 0 ;
19800 PyObject * obj1 = 0 ;
19801 PyObject * obj2 = 0 ;
19802 PyObject * obj3 = 0 ;
19803 PyObject * obj4 = 0 ;
19804 char * kwnames[] = {
19805 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
19806 };
19807
19808 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19809 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19810 if (!SWIG_IsOK(res1)) {
19811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
19812 }
19813 arg1 = reinterpret_cast< wxDC * >(argp1);
19814 {
19815 arg2 = wxString_in_helper(obj1);
19816 if (arg2 == NULL) SWIG_fail;
19817 temp2 = true;
19818 }
19819 ecode3 = SWIG_AsVal_int(obj2, &val3);
19820 if (!SWIG_IsOK(ecode3)) {
19821 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
19822 }
19823 arg3 = static_cast< int >(val3);
19824 ecode4 = SWIG_AsVal_int(obj3, &val4);
19825 if (!SWIG_IsOK(ecode4)) {
19826 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
19827 }
19828 arg4 = static_cast< int >(val4);
19829 ecode5 = SWIG_AsVal_double(obj4, &val5);
19830 if (!SWIG_IsOK(ecode5)) {
19831 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
19832 }
19833 arg5 = static_cast< double >(val5);
19834 {
19835 PyThreadState* __tstate = wxPyBeginAllowThreads();
19836 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
19837 wxPyEndAllowThreads(__tstate);
19838 if (PyErr_Occurred()) SWIG_fail;
19839 }
19840 resultobj = SWIG_Py_Void();
19841 {
19842 if (temp2)
19843 delete arg2;
19844 }
19845 return resultobj;
19846 fail:
19847 {
19848 if (temp2)
19849 delete arg2;
19850 }
19851 return NULL;
19852 }
19853
19854
19855 SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19856 PyObject *resultobj = 0;
19857 wxDC *arg1 = (wxDC *) 0 ;
19858 wxString *arg2 = 0 ;
19859 wxPoint *arg3 = 0 ;
19860 double arg4 ;
19861 void *argp1 = 0 ;
19862 int res1 = 0 ;
19863 bool temp2 = false ;
19864 wxPoint temp3 ;
19865 double val4 ;
19866 int ecode4 = 0 ;
19867 PyObject * obj0 = 0 ;
19868 PyObject * obj1 = 0 ;
19869 PyObject * obj2 = 0 ;
19870 PyObject * obj3 = 0 ;
19871 char * kwnames[] = {
19872 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
19873 };
19874
19875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19877 if (!SWIG_IsOK(res1)) {
19878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19879 }
19880 arg1 = reinterpret_cast< wxDC * >(argp1);
19881 {
19882 arg2 = wxString_in_helper(obj1);
19883 if (arg2 == NULL) SWIG_fail;
19884 temp2 = true;
19885 }
19886 {
19887 arg3 = &temp3;
19888 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19889 }
19890 ecode4 = SWIG_AsVal_double(obj3, &val4);
19891 if (!SWIG_IsOK(ecode4)) {
19892 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
19893 }
19894 arg4 = static_cast< double >(val4);
19895 {
19896 PyThreadState* __tstate = wxPyBeginAllowThreads();
19897 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
19898 wxPyEndAllowThreads(__tstate);
19899 if (PyErr_Occurred()) SWIG_fail;
19900 }
19901 resultobj = SWIG_Py_Void();
19902 {
19903 if (temp2)
19904 delete arg2;
19905 }
19906 return resultobj;
19907 fail:
19908 {
19909 if (temp2)
19910 delete arg2;
19911 }
19912 return NULL;
19913 }
19914
19915
19916 SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19917 PyObject *resultobj = 0;
19918 wxDC *arg1 = (wxDC *) 0 ;
19919 int arg2 ;
19920 int arg3 ;
19921 int arg4 ;
19922 int arg5 ;
19923 wxDC *arg6 = (wxDC *) 0 ;
19924 int arg7 ;
19925 int arg8 ;
19926 int arg9 = (int) wxCOPY ;
19927 bool arg10 = (bool) false ;
19928 int arg11 = (int) -1 ;
19929 int arg12 = (int) -1 ;
19930 bool result;
19931 void *argp1 = 0 ;
19932 int res1 = 0 ;
19933 int val2 ;
19934 int ecode2 = 0 ;
19935 int val3 ;
19936 int ecode3 = 0 ;
19937 int val4 ;
19938 int ecode4 = 0 ;
19939 int val5 ;
19940 int ecode5 = 0 ;
19941 void *argp6 = 0 ;
19942 int res6 = 0 ;
19943 int val7 ;
19944 int ecode7 = 0 ;
19945 int val8 ;
19946 int ecode8 = 0 ;
19947 int val9 ;
19948 int ecode9 = 0 ;
19949 bool val10 ;
19950 int ecode10 = 0 ;
19951 int val11 ;
19952 int ecode11 = 0 ;
19953 int val12 ;
19954 int ecode12 = 0 ;
19955 PyObject * obj0 = 0 ;
19956 PyObject * obj1 = 0 ;
19957 PyObject * obj2 = 0 ;
19958 PyObject * obj3 = 0 ;
19959 PyObject * obj4 = 0 ;
19960 PyObject * obj5 = 0 ;
19961 PyObject * obj6 = 0 ;
19962 PyObject * obj7 = 0 ;
19963 PyObject * obj8 = 0 ;
19964 PyObject * obj9 = 0 ;
19965 PyObject * obj10 = 0 ;
19966 PyObject * obj11 = 0 ;
19967 char * kwnames[] = {
19968 (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
19969 };
19970
19971 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;
19972 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19973 if (!SWIG_IsOK(res1)) {
19974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
19975 }
19976 arg1 = reinterpret_cast< wxDC * >(argp1);
19977 ecode2 = SWIG_AsVal_int(obj1, &val2);
19978 if (!SWIG_IsOK(ecode2)) {
19979 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
19980 }
19981 arg2 = static_cast< int >(val2);
19982 ecode3 = SWIG_AsVal_int(obj2, &val3);
19983 if (!SWIG_IsOK(ecode3)) {
19984 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
19985 }
19986 arg3 = static_cast< int >(val3);
19987 ecode4 = SWIG_AsVal_int(obj3, &val4);
19988 if (!SWIG_IsOK(ecode4)) {
19989 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
19990 }
19991 arg4 = static_cast< int >(val4);
19992 ecode5 = SWIG_AsVal_int(obj4, &val5);
19993 if (!SWIG_IsOK(ecode5)) {
19994 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
19995 }
19996 arg5 = static_cast< int >(val5);
19997 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
19998 if (!SWIG_IsOK(res6)) {
19999 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
20000 }
20001 arg6 = reinterpret_cast< wxDC * >(argp6);
20002 ecode7 = SWIG_AsVal_int(obj6, &val7);
20003 if (!SWIG_IsOK(ecode7)) {
20004 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
20005 }
20006 arg7 = static_cast< int >(val7);
20007 ecode8 = SWIG_AsVal_int(obj7, &val8);
20008 if (!SWIG_IsOK(ecode8)) {
20009 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
20010 }
20011 arg8 = static_cast< int >(val8);
20012 if (obj8) {
20013 ecode9 = SWIG_AsVal_int(obj8, &val9);
20014 if (!SWIG_IsOK(ecode9)) {
20015 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
20016 }
20017 arg9 = static_cast< int >(val9);
20018 }
20019 if (obj9) {
20020 ecode10 = SWIG_AsVal_bool(obj9, &val10);
20021 if (!SWIG_IsOK(ecode10)) {
20022 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
20023 }
20024 arg10 = static_cast< bool >(val10);
20025 }
20026 if (obj10) {
20027 ecode11 = SWIG_AsVal_int(obj10, &val11);
20028 if (!SWIG_IsOK(ecode11)) {
20029 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
20030 }
20031 arg11 = static_cast< int >(val11);
20032 }
20033 if (obj11) {
20034 ecode12 = SWIG_AsVal_int(obj11, &val12);
20035 if (!SWIG_IsOK(ecode12)) {
20036 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
20037 }
20038 arg12 = static_cast< int >(val12);
20039 }
20040 {
20041 PyThreadState* __tstate = wxPyBeginAllowThreads();
20042 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
20043 wxPyEndAllowThreads(__tstate);
20044 if (PyErr_Occurred()) SWIG_fail;
20045 }
20046 {
20047 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20048 }
20049 return resultobj;
20050 fail:
20051 return NULL;
20052 }
20053
20054
20055 SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20056 PyObject *resultobj = 0;
20057 wxDC *arg1 = (wxDC *) 0 ;
20058 wxPoint *arg2 = 0 ;
20059 wxSize *arg3 = 0 ;
20060 wxDC *arg4 = (wxDC *) 0 ;
20061 wxPoint *arg5 = 0 ;
20062 int arg6 = (int) wxCOPY ;
20063 bool arg7 = (bool) false ;
20064 wxPoint const &arg8_defvalue = wxDefaultPosition ;
20065 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
20066 bool result;
20067 void *argp1 = 0 ;
20068 int res1 = 0 ;
20069 wxPoint temp2 ;
20070 wxSize temp3 ;
20071 void *argp4 = 0 ;
20072 int res4 = 0 ;
20073 wxPoint temp5 ;
20074 int val6 ;
20075 int ecode6 = 0 ;
20076 bool val7 ;
20077 int ecode7 = 0 ;
20078 wxPoint temp8 ;
20079 PyObject * obj0 = 0 ;
20080 PyObject * obj1 = 0 ;
20081 PyObject * obj2 = 0 ;
20082 PyObject * obj3 = 0 ;
20083 PyObject * obj4 = 0 ;
20084 PyObject * obj5 = 0 ;
20085 PyObject * obj6 = 0 ;
20086 PyObject * obj7 = 0 ;
20087 char * kwnames[] = {
20088 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
20089 };
20090
20091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
20092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20093 if (!SWIG_IsOK(res1)) {
20094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
20095 }
20096 arg1 = reinterpret_cast< wxDC * >(argp1);
20097 {
20098 arg2 = &temp2;
20099 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20100 }
20101 {
20102 arg3 = &temp3;
20103 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
20104 }
20105 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
20106 if (!SWIG_IsOK(res4)) {
20107 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
20108 }
20109 arg4 = reinterpret_cast< wxDC * >(argp4);
20110 {
20111 arg5 = &temp5;
20112 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
20113 }
20114 if (obj5) {
20115 ecode6 = SWIG_AsVal_int(obj5, &val6);
20116 if (!SWIG_IsOK(ecode6)) {
20117 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
20118 }
20119 arg6 = static_cast< int >(val6);
20120 }
20121 if (obj6) {
20122 ecode7 = SWIG_AsVal_bool(obj6, &val7);
20123 if (!SWIG_IsOK(ecode7)) {
20124 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
20125 }
20126 arg7 = static_cast< bool >(val7);
20127 }
20128 if (obj7) {
20129 {
20130 arg8 = &temp8;
20131 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
20132 }
20133 }
20134 {
20135 PyThreadState* __tstate = wxPyBeginAllowThreads();
20136 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
20137 wxPyEndAllowThreads(__tstate);
20138 if (PyErr_Occurred()) SWIG_fail;
20139 }
20140 {
20141 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20142 }
20143 return resultobj;
20144 fail:
20145 return NULL;
20146 }
20147
20148
20149 SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20150 PyObject *resultobj = 0;
20151 wxDC *arg1 = (wxDC *) 0 ;
20152 int arg2 ;
20153 int arg3 ;
20154 int arg4 ;
20155 int arg5 ;
20156 void *argp1 = 0 ;
20157 int res1 = 0 ;
20158 int val2 ;
20159 int ecode2 = 0 ;
20160 int val3 ;
20161 int ecode3 = 0 ;
20162 int val4 ;
20163 int ecode4 = 0 ;
20164 int val5 ;
20165 int ecode5 = 0 ;
20166 PyObject * obj0 = 0 ;
20167 PyObject * obj1 = 0 ;
20168 PyObject * obj2 = 0 ;
20169 PyObject * obj3 = 0 ;
20170 PyObject * obj4 = 0 ;
20171 char * kwnames[] = {
20172 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
20173 };
20174
20175 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20176 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20177 if (!SWIG_IsOK(res1)) {
20178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20179 }
20180 arg1 = reinterpret_cast< wxDC * >(argp1);
20181 ecode2 = SWIG_AsVal_int(obj1, &val2);
20182 if (!SWIG_IsOK(ecode2)) {
20183 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
20184 }
20185 arg2 = static_cast< int >(val2);
20186 ecode3 = SWIG_AsVal_int(obj2, &val3);
20187 if (!SWIG_IsOK(ecode3)) {
20188 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
20189 }
20190 arg3 = static_cast< int >(val3);
20191 ecode4 = SWIG_AsVal_int(obj3, &val4);
20192 if (!SWIG_IsOK(ecode4)) {
20193 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
20194 }
20195 arg4 = static_cast< int >(val4);
20196 ecode5 = SWIG_AsVal_int(obj4, &val5);
20197 if (!SWIG_IsOK(ecode5)) {
20198 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
20199 }
20200 arg5 = static_cast< int >(val5);
20201 {
20202 PyThreadState* __tstate = wxPyBeginAllowThreads();
20203 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
20204 wxPyEndAllowThreads(__tstate);
20205 if (PyErr_Occurred()) SWIG_fail;
20206 }
20207 resultobj = SWIG_Py_Void();
20208 return resultobj;
20209 fail:
20210 return NULL;
20211 }
20212
20213
20214 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20215 PyObject *resultobj = 0;
20216 wxDC *arg1 = (wxDC *) 0 ;
20217 wxPoint *arg2 = 0 ;
20218 wxSize *arg3 = 0 ;
20219 void *argp1 = 0 ;
20220 int res1 = 0 ;
20221 wxPoint temp2 ;
20222 wxSize temp3 ;
20223 PyObject * obj0 = 0 ;
20224 PyObject * obj1 = 0 ;
20225 PyObject * obj2 = 0 ;
20226 char * kwnames[] = {
20227 (char *) "self",(char *) "pt",(char *) "sz", NULL
20228 };
20229
20230 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20231 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20232 if (!SWIG_IsOK(res1)) {
20233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
20234 }
20235 arg1 = reinterpret_cast< wxDC * >(argp1);
20236 {
20237 arg2 = &temp2;
20238 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20239 }
20240 {
20241 arg3 = &temp3;
20242 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
20243 }
20244 {
20245 PyThreadState* __tstate = wxPyBeginAllowThreads();
20246 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
20247 wxPyEndAllowThreads(__tstate);
20248 if (PyErr_Occurred()) SWIG_fail;
20249 }
20250 resultobj = SWIG_Py_Void();
20251 return resultobj;
20252 fail:
20253 return NULL;
20254 }
20255
20256
20257 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20258 PyObject *resultobj = 0;
20259 wxDC *arg1 = (wxDC *) 0 ;
20260 wxRegion *arg2 = 0 ;
20261 void *argp1 = 0 ;
20262 int res1 = 0 ;
20263 void *argp2 = 0 ;
20264 int res2 = 0 ;
20265 PyObject * obj0 = 0 ;
20266 PyObject * obj1 = 0 ;
20267 char * kwnames[] = {
20268 (char *) "self",(char *) "region", NULL
20269 };
20270
20271 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
20272 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20273 if (!SWIG_IsOK(res1)) {
20274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20275 }
20276 arg1 = reinterpret_cast< wxDC * >(argp1);
20277 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
20278 if (!SWIG_IsOK(res2)) {
20279 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
20280 }
20281 if (!argp2) {
20282 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
20283 }
20284 arg2 = reinterpret_cast< wxRegion * >(argp2);
20285 {
20286 PyThreadState* __tstate = wxPyBeginAllowThreads();
20287 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
20288 wxPyEndAllowThreads(__tstate);
20289 if (PyErr_Occurred()) SWIG_fail;
20290 }
20291 resultobj = SWIG_Py_Void();
20292 return resultobj;
20293 fail:
20294 return NULL;
20295 }
20296
20297
20298 SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20299 PyObject *resultobj = 0;
20300 wxDC *arg1 = (wxDC *) 0 ;
20301 wxRect *arg2 = 0 ;
20302 void *argp1 = 0 ;
20303 int res1 = 0 ;
20304 wxRect temp2 ;
20305 PyObject * obj0 = 0 ;
20306 PyObject * obj1 = 0 ;
20307 char * kwnames[] = {
20308 (char *) "self",(char *) "rect", NULL
20309 };
20310
20311 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
20312 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20313 if (!SWIG_IsOK(res1)) {
20314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20315 }
20316 arg1 = reinterpret_cast< wxDC * >(argp1);
20317 {
20318 arg2 = &temp2;
20319 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
20320 }
20321 {
20322 PyThreadState* __tstate = wxPyBeginAllowThreads();
20323 (arg1)->SetClippingRegion((wxRect const &)*arg2);
20324 wxPyEndAllowThreads(__tstate);
20325 if (PyErr_Occurred()) SWIG_fail;
20326 }
20327 resultobj = SWIG_Py_Void();
20328 return resultobj;
20329 fail:
20330 return NULL;
20331 }
20332
20333
20334 SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20335 PyObject *resultobj = 0;
20336 wxDC *arg1 = (wxDC *) 0 ;
20337 int arg2 ;
20338 wxPoint *arg3 = (wxPoint *) 0 ;
20339 int arg4 = (int) 0 ;
20340 int arg5 = (int) 0 ;
20341 void *argp1 = 0 ;
20342 int res1 = 0 ;
20343 int val4 ;
20344 int ecode4 = 0 ;
20345 int val5 ;
20346 int ecode5 = 0 ;
20347 PyObject * obj0 = 0 ;
20348 PyObject * obj1 = 0 ;
20349 PyObject * obj2 = 0 ;
20350 PyObject * obj3 = 0 ;
20351 char * kwnames[] = {
20352 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
20353 };
20354
20355 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20356 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20357 if (!SWIG_IsOK(res1)) {
20358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
20359 }
20360 arg1 = reinterpret_cast< wxDC * >(argp1);
20361 {
20362 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20363 if (arg3 == NULL) SWIG_fail;
20364 }
20365 if (obj2) {
20366 ecode4 = SWIG_AsVal_int(obj2, &val4);
20367 if (!SWIG_IsOK(ecode4)) {
20368 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
20369 }
20370 arg4 = static_cast< int >(val4);
20371 }
20372 if (obj3) {
20373 ecode5 = SWIG_AsVal_int(obj3, &val5);
20374 if (!SWIG_IsOK(ecode5)) {
20375 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
20376 }
20377 arg5 = static_cast< int >(val5);
20378 }
20379 {
20380 PyThreadState* __tstate = wxPyBeginAllowThreads();
20381 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
20382 wxPyEndAllowThreads(__tstate);
20383 if (PyErr_Occurred()) SWIG_fail;
20384 }
20385 resultobj = SWIG_Py_Void();
20386 {
20387 if (arg3) delete [] arg3;
20388 }
20389 return resultobj;
20390 fail:
20391 {
20392 if (arg3) delete [] arg3;
20393 }
20394 return NULL;
20395 }
20396
20397
20398 SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20399 PyObject *resultobj = 0;
20400 wxDC *arg1 = (wxDC *) 0 ;
20401 int arg2 ;
20402 wxPoint *arg3 = (wxPoint *) 0 ;
20403 int arg4 = (int) 0 ;
20404 int arg5 = (int) 0 ;
20405 int arg6 = (int) wxODDEVEN_RULE ;
20406 void *argp1 = 0 ;
20407 int res1 = 0 ;
20408 int val4 ;
20409 int ecode4 = 0 ;
20410 int val5 ;
20411 int ecode5 = 0 ;
20412 int val6 ;
20413 int ecode6 = 0 ;
20414 PyObject * obj0 = 0 ;
20415 PyObject * obj1 = 0 ;
20416 PyObject * obj2 = 0 ;
20417 PyObject * obj3 = 0 ;
20418 PyObject * obj4 = 0 ;
20419 char * kwnames[] = {
20420 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
20421 };
20422
20423 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20424 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20425 if (!SWIG_IsOK(res1)) {
20426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
20427 }
20428 arg1 = reinterpret_cast< wxDC * >(argp1);
20429 {
20430 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20431 if (arg3 == NULL) SWIG_fail;
20432 }
20433 if (obj2) {
20434 ecode4 = SWIG_AsVal_int(obj2, &val4);
20435 if (!SWIG_IsOK(ecode4)) {
20436 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
20437 }
20438 arg4 = static_cast< int >(val4);
20439 }
20440 if (obj3) {
20441 ecode5 = SWIG_AsVal_int(obj3, &val5);
20442 if (!SWIG_IsOK(ecode5)) {
20443 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
20444 }
20445 arg5 = static_cast< int >(val5);
20446 }
20447 if (obj4) {
20448 ecode6 = SWIG_AsVal_int(obj4, &val6);
20449 if (!SWIG_IsOK(ecode6)) {
20450 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
20451 }
20452 arg6 = static_cast< int >(val6);
20453 }
20454 {
20455 PyThreadState* __tstate = wxPyBeginAllowThreads();
20456 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
20457 wxPyEndAllowThreads(__tstate);
20458 if (PyErr_Occurred()) SWIG_fail;
20459 }
20460 resultobj = SWIG_Py_Void();
20461 {
20462 if (arg3) delete [] arg3;
20463 }
20464 return resultobj;
20465 fail:
20466 {
20467 if (arg3) delete [] arg3;
20468 }
20469 return NULL;
20470 }
20471
20472
20473 SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20474 PyObject *resultobj = 0;
20475 wxDC *arg1 = (wxDC *) 0 ;
20476 wxString *arg2 = 0 ;
20477 wxRect *arg3 = 0 ;
20478 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20479 int arg5 = (int) -1 ;
20480 void *argp1 = 0 ;
20481 int res1 = 0 ;
20482 bool temp2 = false ;
20483 wxRect temp3 ;
20484 int val4 ;
20485 int ecode4 = 0 ;
20486 int val5 ;
20487 int ecode5 = 0 ;
20488 PyObject * obj0 = 0 ;
20489 PyObject * obj1 = 0 ;
20490 PyObject * obj2 = 0 ;
20491 PyObject * obj3 = 0 ;
20492 PyObject * obj4 = 0 ;
20493 char * kwnames[] = {
20494 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20495 };
20496
20497 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20498 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20499 if (!SWIG_IsOK(res1)) {
20500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20501 }
20502 arg1 = reinterpret_cast< wxDC * >(argp1);
20503 {
20504 arg2 = wxString_in_helper(obj1);
20505 if (arg2 == NULL) SWIG_fail;
20506 temp2 = true;
20507 }
20508 {
20509 arg3 = &temp3;
20510 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
20511 }
20512 if (obj3) {
20513 ecode4 = SWIG_AsVal_int(obj3, &val4);
20514 if (!SWIG_IsOK(ecode4)) {
20515 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
20516 }
20517 arg4 = static_cast< int >(val4);
20518 }
20519 if (obj4) {
20520 ecode5 = SWIG_AsVal_int(obj4, &val5);
20521 if (!SWIG_IsOK(ecode5)) {
20522 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
20523 }
20524 arg5 = static_cast< int >(val5);
20525 }
20526 {
20527 PyThreadState* __tstate = wxPyBeginAllowThreads();
20528 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
20529 wxPyEndAllowThreads(__tstate);
20530 if (PyErr_Occurred()) SWIG_fail;
20531 }
20532 resultobj = SWIG_Py_Void();
20533 {
20534 if (temp2)
20535 delete arg2;
20536 }
20537 return resultobj;
20538 fail:
20539 {
20540 if (temp2)
20541 delete arg2;
20542 }
20543 return NULL;
20544 }
20545
20546
20547 SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20548 PyObject *resultobj = 0;
20549 wxDC *arg1 = (wxDC *) 0 ;
20550 wxString *arg2 = 0 ;
20551 wxBitmap *arg3 = 0 ;
20552 wxRect *arg4 = 0 ;
20553 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20554 int arg6 = (int) -1 ;
20555 wxRect result;
20556 void *argp1 = 0 ;
20557 int res1 = 0 ;
20558 bool temp2 = false ;
20559 void *argp3 = 0 ;
20560 int res3 = 0 ;
20561 wxRect temp4 ;
20562 int val5 ;
20563 int ecode5 = 0 ;
20564 int val6 ;
20565 int ecode6 = 0 ;
20566 PyObject * obj0 = 0 ;
20567 PyObject * obj1 = 0 ;
20568 PyObject * obj2 = 0 ;
20569 PyObject * obj3 = 0 ;
20570 PyObject * obj4 = 0 ;
20571 PyObject * obj5 = 0 ;
20572 char * kwnames[] = {
20573 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20574 };
20575
20576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20577 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20578 if (!SWIG_IsOK(res1)) {
20579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20580 }
20581 arg1 = reinterpret_cast< wxDC * >(argp1);
20582 {
20583 arg2 = wxString_in_helper(obj1);
20584 if (arg2 == NULL) SWIG_fail;
20585 temp2 = true;
20586 }
20587 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
20588 if (!SWIG_IsOK(res3)) {
20589 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20590 }
20591 if (!argp3) {
20592 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20593 }
20594 arg3 = reinterpret_cast< wxBitmap * >(argp3);
20595 {
20596 arg4 = &temp4;
20597 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
20598 }
20599 if (obj4) {
20600 ecode5 = SWIG_AsVal_int(obj4, &val5);
20601 if (!SWIG_IsOK(ecode5)) {
20602 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
20603 }
20604 arg5 = static_cast< int >(val5);
20605 }
20606 if (obj5) {
20607 ecode6 = SWIG_AsVal_int(obj5, &val6);
20608 if (!SWIG_IsOK(ecode6)) {
20609 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
20610 }
20611 arg6 = static_cast< int >(val6);
20612 }
20613 {
20614 PyThreadState* __tstate = wxPyBeginAllowThreads();
20615 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
20616 wxPyEndAllowThreads(__tstate);
20617 if (PyErr_Occurred()) SWIG_fail;
20618 }
20619 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20620 {
20621 if (temp2)
20622 delete arg2;
20623 }
20624 return resultobj;
20625 fail:
20626 {
20627 if (temp2)
20628 delete arg2;
20629 }
20630 return NULL;
20631 }
20632
20633
20634 SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20635 PyObject *resultobj = 0;
20636 wxDC *arg1 = (wxDC *) 0 ;
20637 int arg2 ;
20638 wxPoint *arg3 = (wxPoint *) 0 ;
20639 void *argp1 = 0 ;
20640 int res1 = 0 ;
20641 PyObject * obj0 = 0 ;
20642 PyObject * obj1 = 0 ;
20643 char * kwnames[] = {
20644 (char *) "self",(char *) "points", NULL
20645 };
20646
20647 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
20648 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20649 if (!SWIG_IsOK(res1)) {
20650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
20651 }
20652 arg1 = reinterpret_cast< wxDC * >(argp1);
20653 {
20654 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20655 if (arg3 == NULL) SWIG_fail;
20656 }
20657 {
20658 PyThreadState* __tstate = wxPyBeginAllowThreads();
20659 (arg1)->DrawSpline(arg2,arg3);
20660 wxPyEndAllowThreads(__tstate);
20661 if (PyErr_Occurred()) SWIG_fail;
20662 }
20663 resultobj = SWIG_Py_Void();
20664 {
20665 if (arg3) delete [] arg3;
20666 }
20667 return resultobj;
20668 fail:
20669 {
20670 if (arg3) delete [] arg3;
20671 }
20672 return NULL;
20673 }
20674
20675
20676 SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20677 PyObject *resultobj = 0;
20678 wxDC *arg1 = (wxDC *) 0 ;
20679 void *argp1 = 0 ;
20680 int res1 = 0 ;
20681 PyObject *swig_obj[1] ;
20682
20683 if (!args) SWIG_fail;
20684 swig_obj[0] = args;
20685 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20686 if (!SWIG_IsOK(res1)) {
20687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
20688 }
20689 arg1 = reinterpret_cast< wxDC * >(argp1);
20690 {
20691 PyThreadState* __tstate = wxPyBeginAllowThreads();
20692 (arg1)->Clear();
20693 wxPyEndAllowThreads(__tstate);
20694 if (PyErr_Occurred()) SWIG_fail;
20695 }
20696 resultobj = SWIG_Py_Void();
20697 return resultobj;
20698 fail:
20699 return NULL;
20700 }
20701
20702
20703 SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20704 PyObject *resultobj = 0;
20705 wxDC *arg1 = (wxDC *) 0 ;
20706 wxString *arg2 = 0 ;
20707 bool result;
20708 void *argp1 = 0 ;
20709 int res1 = 0 ;
20710 bool temp2 = false ;
20711 PyObject * obj0 = 0 ;
20712 PyObject * obj1 = 0 ;
20713 char * kwnames[] = {
20714 (char *) "self",(char *) "message", NULL
20715 };
20716
20717 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
20718 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20719 if (!SWIG_IsOK(res1)) {
20720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20721 }
20722 arg1 = reinterpret_cast< wxDC * >(argp1);
20723 {
20724 arg2 = wxString_in_helper(obj1);
20725 if (arg2 == NULL) SWIG_fail;
20726 temp2 = true;
20727 }
20728 {
20729 PyThreadState* __tstate = wxPyBeginAllowThreads();
20730 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
20731 wxPyEndAllowThreads(__tstate);
20732 if (PyErr_Occurred()) SWIG_fail;
20733 }
20734 {
20735 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20736 }
20737 {
20738 if (temp2)
20739 delete arg2;
20740 }
20741 return resultobj;
20742 fail:
20743 {
20744 if (temp2)
20745 delete arg2;
20746 }
20747 return NULL;
20748 }
20749
20750
20751 SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20752 PyObject *resultobj = 0;
20753 wxDC *arg1 = (wxDC *) 0 ;
20754 void *argp1 = 0 ;
20755 int res1 = 0 ;
20756 PyObject *swig_obj[1] ;
20757
20758 if (!args) SWIG_fail;
20759 swig_obj[0] = args;
20760 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20761 if (!SWIG_IsOK(res1)) {
20762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20763 }
20764 arg1 = reinterpret_cast< wxDC * >(argp1);
20765 {
20766 PyThreadState* __tstate = wxPyBeginAllowThreads();
20767 (arg1)->EndDoc();
20768 wxPyEndAllowThreads(__tstate);
20769 if (PyErr_Occurred()) SWIG_fail;
20770 }
20771 resultobj = SWIG_Py_Void();
20772 return resultobj;
20773 fail:
20774 return NULL;
20775 }
20776
20777
20778 SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20779 PyObject *resultobj = 0;
20780 wxDC *arg1 = (wxDC *) 0 ;
20781 void *argp1 = 0 ;
20782 int res1 = 0 ;
20783 PyObject *swig_obj[1] ;
20784
20785 if (!args) SWIG_fail;
20786 swig_obj[0] = args;
20787 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20788 if (!SWIG_IsOK(res1)) {
20789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
20790 }
20791 arg1 = reinterpret_cast< wxDC * >(argp1);
20792 {
20793 PyThreadState* __tstate = wxPyBeginAllowThreads();
20794 (arg1)->StartPage();
20795 wxPyEndAllowThreads(__tstate);
20796 if (PyErr_Occurred()) SWIG_fail;
20797 }
20798 resultobj = SWIG_Py_Void();
20799 return resultobj;
20800 fail:
20801 return NULL;
20802 }
20803
20804
20805 SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20806 PyObject *resultobj = 0;
20807 wxDC *arg1 = (wxDC *) 0 ;
20808 void *argp1 = 0 ;
20809 int res1 = 0 ;
20810 PyObject *swig_obj[1] ;
20811
20812 if (!args) SWIG_fail;
20813 swig_obj[0] = args;
20814 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20815 if (!SWIG_IsOK(res1)) {
20816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
20817 }
20818 arg1 = reinterpret_cast< wxDC * >(argp1);
20819 {
20820 PyThreadState* __tstate = wxPyBeginAllowThreads();
20821 (arg1)->EndPage();
20822 wxPyEndAllowThreads(__tstate);
20823 if (PyErr_Occurred()) SWIG_fail;
20824 }
20825 resultobj = SWIG_Py_Void();
20826 return resultobj;
20827 fail:
20828 return NULL;
20829 }
20830
20831
20832 SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20833 PyObject *resultobj = 0;
20834 wxDC *arg1 = (wxDC *) 0 ;
20835 wxFont *arg2 = 0 ;
20836 void *argp1 = 0 ;
20837 int res1 = 0 ;
20838 void *argp2 = 0 ;
20839 int res2 = 0 ;
20840 PyObject * obj0 = 0 ;
20841 PyObject * obj1 = 0 ;
20842 char * kwnames[] = {
20843 (char *) "self",(char *) "font", NULL
20844 };
20845
20846 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
20847 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20848 if (!SWIG_IsOK(res1)) {
20849 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
20850 }
20851 arg1 = reinterpret_cast< wxDC * >(argp1);
20852 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
20853 if (!SWIG_IsOK(res2)) {
20854 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20855 }
20856 if (!argp2) {
20857 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20858 }
20859 arg2 = reinterpret_cast< wxFont * >(argp2);
20860 {
20861 PyThreadState* __tstate = wxPyBeginAllowThreads();
20862 (arg1)->SetFont((wxFont const &)*arg2);
20863 wxPyEndAllowThreads(__tstate);
20864 if (PyErr_Occurred()) SWIG_fail;
20865 }
20866 resultobj = SWIG_Py_Void();
20867 return resultobj;
20868 fail:
20869 return NULL;
20870 }
20871
20872
20873 SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20874 PyObject *resultobj = 0;
20875 wxDC *arg1 = (wxDC *) 0 ;
20876 wxPen *arg2 = 0 ;
20877 void *argp1 = 0 ;
20878 int res1 = 0 ;
20879 void *argp2 = 0 ;
20880 int res2 = 0 ;
20881 PyObject * obj0 = 0 ;
20882 PyObject * obj1 = 0 ;
20883 char * kwnames[] = {
20884 (char *) "self",(char *) "pen", NULL
20885 };
20886
20887 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
20888 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20889 if (!SWIG_IsOK(res1)) {
20890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
20891 }
20892 arg1 = reinterpret_cast< wxDC * >(argp1);
20893 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
20894 if (!SWIG_IsOK(res2)) {
20895 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20896 }
20897 if (!argp2) {
20898 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20899 }
20900 arg2 = reinterpret_cast< wxPen * >(argp2);
20901 {
20902 PyThreadState* __tstate = wxPyBeginAllowThreads();
20903 (arg1)->SetPen((wxPen const &)*arg2);
20904 wxPyEndAllowThreads(__tstate);
20905 if (PyErr_Occurred()) SWIG_fail;
20906 }
20907 resultobj = SWIG_Py_Void();
20908 return resultobj;
20909 fail:
20910 return NULL;
20911 }
20912
20913
20914 SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20915 PyObject *resultobj = 0;
20916 wxDC *arg1 = (wxDC *) 0 ;
20917 wxBrush *arg2 = 0 ;
20918 void *argp1 = 0 ;
20919 int res1 = 0 ;
20920 void *argp2 = 0 ;
20921 int res2 = 0 ;
20922 PyObject * obj0 = 0 ;
20923 PyObject * obj1 = 0 ;
20924 char * kwnames[] = {
20925 (char *) "self",(char *) "brush", NULL
20926 };
20927
20928 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
20929 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20930 if (!SWIG_IsOK(res1)) {
20931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
20932 }
20933 arg1 = reinterpret_cast< wxDC * >(argp1);
20934 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20935 if (!SWIG_IsOK(res2)) {
20936 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20937 }
20938 if (!argp2) {
20939 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20940 }
20941 arg2 = reinterpret_cast< wxBrush * >(argp2);
20942 {
20943 PyThreadState* __tstate = wxPyBeginAllowThreads();
20944 (arg1)->SetBrush((wxBrush const &)*arg2);
20945 wxPyEndAllowThreads(__tstate);
20946 if (PyErr_Occurred()) SWIG_fail;
20947 }
20948 resultobj = SWIG_Py_Void();
20949 return resultobj;
20950 fail:
20951 return NULL;
20952 }
20953
20954
20955 SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20956 PyObject *resultobj = 0;
20957 wxDC *arg1 = (wxDC *) 0 ;
20958 wxBrush *arg2 = 0 ;
20959 void *argp1 = 0 ;
20960 int res1 = 0 ;
20961 void *argp2 = 0 ;
20962 int res2 = 0 ;
20963 PyObject * obj0 = 0 ;
20964 PyObject * obj1 = 0 ;
20965 char * kwnames[] = {
20966 (char *) "self",(char *) "brush", NULL
20967 };
20968
20969 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
20970 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20971 if (!SWIG_IsOK(res1)) {
20972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
20973 }
20974 arg1 = reinterpret_cast< wxDC * >(argp1);
20975 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20976 if (!SWIG_IsOK(res2)) {
20977 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20978 }
20979 if (!argp2) {
20980 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20981 }
20982 arg2 = reinterpret_cast< wxBrush * >(argp2);
20983 {
20984 PyThreadState* __tstate = wxPyBeginAllowThreads();
20985 (arg1)->SetBackground((wxBrush const &)*arg2);
20986 wxPyEndAllowThreads(__tstate);
20987 if (PyErr_Occurred()) SWIG_fail;
20988 }
20989 resultobj = SWIG_Py_Void();
20990 return resultobj;
20991 fail:
20992 return NULL;
20993 }
20994
20995
20996 SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20997 PyObject *resultobj = 0;
20998 wxDC *arg1 = (wxDC *) 0 ;
20999 int arg2 ;
21000 void *argp1 = 0 ;
21001 int res1 = 0 ;
21002 int val2 ;
21003 int ecode2 = 0 ;
21004 PyObject * obj0 = 0 ;
21005 PyObject * obj1 = 0 ;
21006 char * kwnames[] = {
21007 (char *) "self",(char *) "mode", NULL
21008 };
21009
21010 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
21011 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21012 if (!SWIG_IsOK(res1)) {
21013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
21014 }
21015 arg1 = reinterpret_cast< wxDC * >(argp1);
21016 ecode2 = SWIG_AsVal_int(obj1, &val2);
21017 if (!SWIG_IsOK(ecode2)) {
21018 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
21019 }
21020 arg2 = static_cast< int >(val2);
21021 {
21022 PyThreadState* __tstate = wxPyBeginAllowThreads();
21023 (arg1)->SetBackgroundMode(arg2);
21024 wxPyEndAllowThreads(__tstate);
21025 if (PyErr_Occurred()) SWIG_fail;
21026 }
21027 resultobj = SWIG_Py_Void();
21028 return resultobj;
21029 fail:
21030 return NULL;
21031 }
21032
21033
21034 SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21035 PyObject *resultobj = 0;
21036 wxDC *arg1 = (wxDC *) 0 ;
21037 wxPalette *arg2 = 0 ;
21038 void *argp1 = 0 ;
21039 int res1 = 0 ;
21040 void *argp2 = 0 ;
21041 int res2 = 0 ;
21042 PyObject * obj0 = 0 ;
21043 PyObject * obj1 = 0 ;
21044 char * kwnames[] = {
21045 (char *) "self",(char *) "palette", NULL
21046 };
21047
21048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
21049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21050 if (!SWIG_IsOK(res1)) {
21051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
21052 }
21053 arg1 = reinterpret_cast< wxDC * >(argp1);
21054 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
21055 if (!SWIG_IsOK(res2)) {
21056 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
21057 }
21058 if (!argp2) {
21059 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
21060 }
21061 arg2 = reinterpret_cast< wxPalette * >(argp2);
21062 {
21063 PyThreadState* __tstate = wxPyBeginAllowThreads();
21064 (arg1)->SetPalette((wxPalette const &)*arg2);
21065 wxPyEndAllowThreads(__tstate);
21066 if (PyErr_Occurred()) SWIG_fail;
21067 }
21068 resultobj = SWIG_Py_Void();
21069 return resultobj;
21070 fail:
21071 return NULL;
21072 }
21073
21074
21075 SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21076 PyObject *resultobj = 0;
21077 wxDC *arg1 = (wxDC *) 0 ;
21078 void *argp1 = 0 ;
21079 int res1 = 0 ;
21080 PyObject *swig_obj[1] ;
21081
21082 if (!args) SWIG_fail;
21083 swig_obj[0] = args;
21084 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21085 if (!SWIG_IsOK(res1)) {
21086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
21087 }
21088 arg1 = reinterpret_cast< wxDC * >(argp1);
21089 {
21090 PyThreadState* __tstate = wxPyBeginAllowThreads();
21091 (arg1)->DestroyClippingRegion();
21092 wxPyEndAllowThreads(__tstate);
21093 if (PyErr_Occurred()) SWIG_fail;
21094 }
21095 resultobj = SWIG_Py_Void();
21096 return resultobj;
21097 fail:
21098 return NULL;
21099 }
21100
21101
21102 SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21103 PyObject *resultobj = 0;
21104 wxDC *arg1 = (wxDC *) 0 ;
21105 int *arg2 = (int *) 0 ;
21106 int *arg3 = (int *) 0 ;
21107 int *arg4 = (int *) 0 ;
21108 int *arg5 = (int *) 0 ;
21109 void *argp1 = 0 ;
21110 int res1 = 0 ;
21111 int temp2 ;
21112 int res2 = SWIG_TMPOBJ ;
21113 int temp3 ;
21114 int res3 = SWIG_TMPOBJ ;
21115 int temp4 ;
21116 int res4 = SWIG_TMPOBJ ;
21117 int temp5 ;
21118 int res5 = SWIG_TMPOBJ ;
21119 PyObject *swig_obj[1] ;
21120
21121 arg2 = &temp2;
21122 arg3 = &temp3;
21123 arg4 = &temp4;
21124 arg5 = &temp5;
21125 if (!args) SWIG_fail;
21126 swig_obj[0] = args;
21127 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21128 if (!SWIG_IsOK(res1)) {
21129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
21130 }
21131 arg1 = reinterpret_cast< wxDC * >(argp1);
21132 {
21133 PyThreadState* __tstate = wxPyBeginAllowThreads();
21134 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
21135 wxPyEndAllowThreads(__tstate);
21136 if (PyErr_Occurred()) SWIG_fail;
21137 }
21138 resultobj = SWIG_Py_Void();
21139 if (SWIG_IsTmpObj(res2)) {
21140 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21141 } else {
21142 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21143 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21144 }
21145 if (SWIG_IsTmpObj(res3)) {
21146 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21147 } else {
21148 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21149 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21150 }
21151 if (SWIG_IsTmpObj(res4)) {
21152 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21153 } else {
21154 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21155 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21156 }
21157 if (SWIG_IsTmpObj(res5)) {
21158 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21159 } else {
21160 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21161 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21162 }
21163 return resultobj;
21164 fail:
21165 return NULL;
21166 }
21167
21168
21169 SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21170 PyObject *resultobj = 0;
21171 wxDC *arg1 = (wxDC *) 0 ;
21172 wxRect result;
21173 void *argp1 = 0 ;
21174 int res1 = 0 ;
21175 PyObject *swig_obj[1] ;
21176
21177 if (!args) SWIG_fail;
21178 swig_obj[0] = args;
21179 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21180 if (!SWIG_IsOK(res1)) {
21181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
21182 }
21183 arg1 = reinterpret_cast< wxDC * >(argp1);
21184 {
21185 PyThreadState* __tstate = wxPyBeginAllowThreads();
21186 result = wxDC_GetClippingRect(arg1);
21187 wxPyEndAllowThreads(__tstate);
21188 if (PyErr_Occurred()) SWIG_fail;
21189 }
21190 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
21191 return resultobj;
21192 fail:
21193 return NULL;
21194 }
21195
21196
21197 SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21198 PyObject *resultobj = 0;
21199 wxDC *arg1 = (wxDC *) 0 ;
21200 int result;
21201 void *argp1 = 0 ;
21202 int res1 = 0 ;
21203 PyObject *swig_obj[1] ;
21204
21205 if (!args) SWIG_fail;
21206 swig_obj[0] = args;
21207 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21208 if (!SWIG_IsOK(res1)) {
21209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
21210 }
21211 arg1 = reinterpret_cast< wxDC * >(argp1);
21212 {
21213 PyThreadState* __tstate = wxPyBeginAllowThreads();
21214 result = (int)((wxDC const *)arg1)->GetCharHeight();
21215 wxPyEndAllowThreads(__tstate);
21216 if (PyErr_Occurred()) SWIG_fail;
21217 }
21218 resultobj = SWIG_From_int(static_cast< int >(result));
21219 return resultobj;
21220 fail:
21221 return NULL;
21222 }
21223
21224
21225 SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21226 PyObject *resultobj = 0;
21227 wxDC *arg1 = (wxDC *) 0 ;
21228 int result;
21229 void *argp1 = 0 ;
21230 int res1 = 0 ;
21231 PyObject *swig_obj[1] ;
21232
21233 if (!args) SWIG_fail;
21234 swig_obj[0] = args;
21235 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21236 if (!SWIG_IsOK(res1)) {
21237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
21238 }
21239 arg1 = reinterpret_cast< wxDC * >(argp1);
21240 {
21241 PyThreadState* __tstate = wxPyBeginAllowThreads();
21242 result = (int)((wxDC const *)arg1)->GetCharWidth();
21243 wxPyEndAllowThreads(__tstate);
21244 if (PyErr_Occurred()) SWIG_fail;
21245 }
21246 resultobj = SWIG_From_int(static_cast< int >(result));
21247 return resultobj;
21248 fail:
21249 return NULL;
21250 }
21251
21252
21253 SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21254 PyObject *resultobj = 0;
21255 wxDC *arg1 = (wxDC *) 0 ;
21256 wxString *arg2 = 0 ;
21257 int *arg3 = (int *) 0 ;
21258 int *arg4 = (int *) 0 ;
21259 void *argp1 = 0 ;
21260 int res1 = 0 ;
21261 bool temp2 = false ;
21262 int temp3 ;
21263 int res3 = SWIG_TMPOBJ ;
21264 int temp4 ;
21265 int res4 = SWIG_TMPOBJ ;
21266 PyObject * obj0 = 0 ;
21267 PyObject * obj1 = 0 ;
21268 char * kwnames[] = {
21269 (char *) "self",(char *) "string", NULL
21270 };
21271
21272 arg3 = &temp3;
21273 arg4 = &temp4;
21274 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
21275 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21276 if (!SWIG_IsOK(res1)) {
21277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21278 }
21279 arg1 = reinterpret_cast< wxDC * >(argp1);
21280 {
21281 arg2 = wxString_in_helper(obj1);
21282 if (arg2 == NULL) SWIG_fail;
21283 temp2 = true;
21284 }
21285 {
21286 PyThreadState* __tstate = wxPyBeginAllowThreads();
21287 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
21288 wxPyEndAllowThreads(__tstate);
21289 if (PyErr_Occurred()) SWIG_fail;
21290 }
21291 resultobj = SWIG_Py_Void();
21292 if (SWIG_IsTmpObj(res3)) {
21293 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21294 } else {
21295 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21296 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21297 }
21298 if (SWIG_IsTmpObj(res4)) {
21299 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21300 } else {
21301 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21302 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21303 }
21304 {
21305 if (temp2)
21306 delete arg2;
21307 }
21308 return resultobj;
21309 fail:
21310 {
21311 if (temp2)
21312 delete arg2;
21313 }
21314 return NULL;
21315 }
21316
21317
21318 SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21319 PyObject *resultobj = 0;
21320 wxDC *arg1 = (wxDC *) 0 ;
21321 wxString *arg2 = 0 ;
21322 int *arg3 = (int *) 0 ;
21323 int *arg4 = (int *) 0 ;
21324 int *arg5 = (int *) 0 ;
21325 int *arg6 = (int *) 0 ;
21326 wxFont *arg7 = (wxFont *) NULL ;
21327 void *argp1 = 0 ;
21328 int res1 = 0 ;
21329 bool temp2 = false ;
21330 int temp3 ;
21331 int res3 = SWIG_TMPOBJ ;
21332 int temp4 ;
21333 int res4 = SWIG_TMPOBJ ;
21334 int temp5 ;
21335 int res5 = SWIG_TMPOBJ ;
21336 int temp6 ;
21337 int res6 = SWIG_TMPOBJ ;
21338 void *argp7 = 0 ;
21339 int res7 = 0 ;
21340 PyObject * obj0 = 0 ;
21341 PyObject * obj1 = 0 ;
21342 PyObject * obj2 = 0 ;
21343 char * kwnames[] = {
21344 (char *) "self",(char *) "string",(char *) "font", NULL
21345 };
21346
21347 arg3 = &temp3;
21348 arg4 = &temp4;
21349 arg5 = &temp5;
21350 arg6 = &temp6;
21351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21353 if (!SWIG_IsOK(res1)) {
21354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21355 }
21356 arg1 = reinterpret_cast< wxDC * >(argp1);
21357 {
21358 arg2 = wxString_in_helper(obj1);
21359 if (arg2 == NULL) SWIG_fail;
21360 temp2 = true;
21361 }
21362 if (obj2) {
21363 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
21364 if (!SWIG_IsOK(res7)) {
21365 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
21366 }
21367 arg7 = reinterpret_cast< wxFont * >(argp7);
21368 }
21369 {
21370 PyThreadState* __tstate = wxPyBeginAllowThreads();
21371 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
21372 wxPyEndAllowThreads(__tstate);
21373 if (PyErr_Occurred()) SWIG_fail;
21374 }
21375 resultobj = SWIG_Py_Void();
21376 if (SWIG_IsTmpObj(res3)) {
21377 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21378 } else {
21379 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21380 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21381 }
21382 if (SWIG_IsTmpObj(res4)) {
21383 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21384 } else {
21385 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21386 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21387 }
21388 if (SWIG_IsTmpObj(res5)) {
21389 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21390 } else {
21391 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21392 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21393 }
21394 if (SWIG_IsTmpObj(res6)) {
21395 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
21396 } else {
21397 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21398 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
21399 }
21400 {
21401 if (temp2)
21402 delete arg2;
21403 }
21404 return resultobj;
21405 fail:
21406 {
21407 if (temp2)
21408 delete arg2;
21409 }
21410 return NULL;
21411 }
21412
21413
21414 SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21415 PyObject *resultobj = 0;
21416 wxDC *arg1 = (wxDC *) 0 ;
21417 wxString *arg2 = 0 ;
21418 int *arg3 = (int *) 0 ;
21419 int *arg4 = (int *) 0 ;
21420 int *arg5 = (int *) 0 ;
21421 wxFont *arg6 = (wxFont *) NULL ;
21422 void *argp1 = 0 ;
21423 int res1 = 0 ;
21424 bool temp2 = false ;
21425 int temp3 ;
21426 int res3 = SWIG_TMPOBJ ;
21427 int temp4 ;
21428 int res4 = SWIG_TMPOBJ ;
21429 int temp5 ;
21430 int res5 = SWIG_TMPOBJ ;
21431 void *argp6 = 0 ;
21432 int res6 = 0 ;
21433 PyObject * obj0 = 0 ;
21434 PyObject * obj1 = 0 ;
21435 PyObject * obj2 = 0 ;
21436 char * kwnames[] = {
21437 (char *) "self",(char *) "text",(char *) "font", NULL
21438 };
21439
21440 arg3 = &temp3;
21441 arg4 = &temp4;
21442 arg5 = &temp5;
21443 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21444 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21445 if (!SWIG_IsOK(res1)) {
21446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21447 }
21448 arg1 = reinterpret_cast< wxDC * >(argp1);
21449 {
21450 arg2 = wxString_in_helper(obj1);
21451 if (arg2 == NULL) SWIG_fail;
21452 temp2 = true;
21453 }
21454 if (obj2) {
21455 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
21456 if (!SWIG_IsOK(res6)) {
21457 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
21458 }
21459 arg6 = reinterpret_cast< wxFont * >(argp6);
21460 }
21461 {
21462 PyThreadState* __tstate = wxPyBeginAllowThreads();
21463 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
21464 wxPyEndAllowThreads(__tstate);
21465 if (PyErr_Occurred()) SWIG_fail;
21466 }
21467 resultobj = SWIG_Py_Void();
21468 if (SWIG_IsTmpObj(res3)) {
21469 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21470 } else {
21471 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21472 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21473 }
21474 if (SWIG_IsTmpObj(res4)) {
21475 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21476 } else {
21477 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21478 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21479 }
21480 if (SWIG_IsTmpObj(res5)) {
21481 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21482 } else {
21483 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21484 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21485 }
21486 {
21487 if (temp2)
21488 delete arg2;
21489 }
21490 return resultobj;
21491 fail:
21492 {
21493 if (temp2)
21494 delete arg2;
21495 }
21496 return NULL;
21497 }
21498
21499
21500 SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21501 PyObject *resultobj = 0;
21502 wxDC *arg1 = (wxDC *) 0 ;
21503 wxString *arg2 = 0 ;
21504 wxArrayInt result;
21505 void *argp1 = 0 ;
21506 int res1 = 0 ;
21507 bool temp2 = false ;
21508 PyObject * obj0 = 0 ;
21509 PyObject * obj1 = 0 ;
21510 char * kwnames[] = {
21511 (char *) "self",(char *) "text", NULL
21512 };
21513
21514 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
21515 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21516 if (!SWIG_IsOK(res1)) {
21517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
21518 }
21519 arg1 = reinterpret_cast< wxDC * >(argp1);
21520 {
21521 arg2 = wxString_in_helper(obj1);
21522 if (arg2 == NULL) SWIG_fail;
21523 temp2 = true;
21524 }
21525 {
21526 PyThreadState* __tstate = wxPyBeginAllowThreads();
21527 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
21528 wxPyEndAllowThreads(__tstate);
21529 if (PyErr_Occurred()) SWIG_fail;
21530 }
21531 {
21532 resultobj = wxArrayInt2PyList_helper(result);
21533 }
21534 {
21535 if (temp2)
21536 delete arg2;
21537 }
21538 return resultobj;
21539 fail:
21540 {
21541 if (temp2)
21542 delete arg2;
21543 }
21544 return NULL;
21545 }
21546
21547
21548 SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21549 PyObject *resultobj = 0;
21550 wxDC *arg1 = (wxDC *) 0 ;
21551 wxSize result;
21552 void *argp1 = 0 ;
21553 int res1 = 0 ;
21554 PyObject *swig_obj[1] ;
21555
21556 if (!args) SWIG_fail;
21557 swig_obj[0] = args;
21558 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21559 if (!SWIG_IsOK(res1)) {
21560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
21561 }
21562 arg1 = reinterpret_cast< wxDC * >(argp1);
21563 {
21564 PyThreadState* __tstate = wxPyBeginAllowThreads();
21565 result = (arg1)->GetSize();
21566 wxPyEndAllowThreads(__tstate);
21567 if (PyErr_Occurred()) SWIG_fail;
21568 }
21569 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21570 return resultobj;
21571 fail:
21572 return NULL;
21573 }
21574
21575
21576 SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21577 PyObject *resultobj = 0;
21578 wxDC *arg1 = (wxDC *) 0 ;
21579 int *arg2 = (int *) 0 ;
21580 int *arg3 = (int *) 0 ;
21581 void *argp1 = 0 ;
21582 int res1 = 0 ;
21583 int temp2 ;
21584 int res2 = SWIG_TMPOBJ ;
21585 int temp3 ;
21586 int res3 = SWIG_TMPOBJ ;
21587 PyObject *swig_obj[1] ;
21588
21589 arg2 = &temp2;
21590 arg3 = &temp3;
21591 if (!args) SWIG_fail;
21592 swig_obj[0] = args;
21593 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21594 if (!SWIG_IsOK(res1)) {
21595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
21596 }
21597 arg1 = reinterpret_cast< wxDC * >(argp1);
21598 {
21599 PyThreadState* __tstate = wxPyBeginAllowThreads();
21600 (arg1)->GetSize(arg2,arg3);
21601 wxPyEndAllowThreads(__tstate);
21602 if (PyErr_Occurred()) SWIG_fail;
21603 }
21604 resultobj = SWIG_Py_Void();
21605 if (SWIG_IsTmpObj(res2)) {
21606 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21607 } else {
21608 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21609 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21610 }
21611 if (SWIG_IsTmpObj(res3)) {
21612 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21613 } else {
21614 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21615 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21616 }
21617 return resultobj;
21618 fail:
21619 return NULL;
21620 }
21621
21622
21623 SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21624 PyObject *resultobj = 0;
21625 wxDC *arg1 = (wxDC *) 0 ;
21626 wxSize result;
21627 void *argp1 = 0 ;
21628 int res1 = 0 ;
21629 PyObject *swig_obj[1] ;
21630
21631 if (!args) SWIG_fail;
21632 swig_obj[0] = args;
21633 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21634 if (!SWIG_IsOK(res1)) {
21635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
21636 }
21637 arg1 = reinterpret_cast< wxDC * >(argp1);
21638 {
21639 PyThreadState* __tstate = wxPyBeginAllowThreads();
21640 result = ((wxDC const *)arg1)->GetSizeMM();
21641 wxPyEndAllowThreads(__tstate);
21642 if (PyErr_Occurred()) SWIG_fail;
21643 }
21644 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21645 return resultobj;
21646 fail:
21647 return NULL;
21648 }
21649
21650
21651 SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21652 PyObject *resultobj = 0;
21653 wxDC *arg1 = (wxDC *) 0 ;
21654 int *arg2 = (int *) 0 ;
21655 int *arg3 = (int *) 0 ;
21656 void *argp1 = 0 ;
21657 int res1 = 0 ;
21658 int temp2 ;
21659 int res2 = SWIG_TMPOBJ ;
21660 int temp3 ;
21661 int res3 = SWIG_TMPOBJ ;
21662 PyObject *swig_obj[1] ;
21663
21664 arg2 = &temp2;
21665 arg3 = &temp3;
21666 if (!args) SWIG_fail;
21667 swig_obj[0] = args;
21668 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21669 if (!SWIG_IsOK(res1)) {
21670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
21671 }
21672 arg1 = reinterpret_cast< wxDC * >(argp1);
21673 {
21674 PyThreadState* __tstate = wxPyBeginAllowThreads();
21675 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
21676 wxPyEndAllowThreads(__tstate);
21677 if (PyErr_Occurred()) SWIG_fail;
21678 }
21679 resultobj = SWIG_Py_Void();
21680 if (SWIG_IsTmpObj(res2)) {
21681 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21682 } else {
21683 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21684 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21685 }
21686 if (SWIG_IsTmpObj(res3)) {
21687 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21688 } else {
21689 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21690 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21691 }
21692 return resultobj;
21693 fail:
21694 return NULL;
21695 }
21696
21697
21698 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21699 PyObject *resultobj = 0;
21700 wxDC *arg1 = (wxDC *) 0 ;
21701 int arg2 ;
21702 int result;
21703 void *argp1 = 0 ;
21704 int res1 = 0 ;
21705 int val2 ;
21706 int ecode2 = 0 ;
21707 PyObject * obj0 = 0 ;
21708 PyObject * obj1 = 0 ;
21709 char * kwnames[] = {
21710 (char *) "self",(char *) "x", NULL
21711 };
21712
21713 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
21714 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21715 if (!SWIG_IsOK(res1)) {
21716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
21717 }
21718 arg1 = reinterpret_cast< wxDC * >(argp1);
21719 ecode2 = SWIG_AsVal_int(obj1, &val2);
21720 if (!SWIG_IsOK(ecode2)) {
21721 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
21722 }
21723 arg2 = static_cast< int >(val2);
21724 {
21725 PyThreadState* __tstate = wxPyBeginAllowThreads();
21726 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
21727 wxPyEndAllowThreads(__tstate);
21728 if (PyErr_Occurred()) SWIG_fail;
21729 }
21730 resultobj = SWIG_From_int(static_cast< int >(result));
21731 return resultobj;
21732 fail:
21733 return NULL;
21734 }
21735
21736
21737 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21738 PyObject *resultobj = 0;
21739 wxDC *arg1 = (wxDC *) 0 ;
21740 int arg2 ;
21741 int result;
21742 void *argp1 = 0 ;
21743 int res1 = 0 ;
21744 int val2 ;
21745 int ecode2 = 0 ;
21746 PyObject * obj0 = 0 ;
21747 PyObject * obj1 = 0 ;
21748 char * kwnames[] = {
21749 (char *) "self",(char *) "y", NULL
21750 };
21751
21752 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
21753 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21754 if (!SWIG_IsOK(res1)) {
21755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
21756 }
21757 arg1 = reinterpret_cast< wxDC * >(argp1);
21758 ecode2 = SWIG_AsVal_int(obj1, &val2);
21759 if (!SWIG_IsOK(ecode2)) {
21760 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
21761 }
21762 arg2 = static_cast< int >(val2);
21763 {
21764 PyThreadState* __tstate = wxPyBeginAllowThreads();
21765 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
21766 wxPyEndAllowThreads(__tstate);
21767 if (PyErr_Occurred()) SWIG_fail;
21768 }
21769 resultobj = SWIG_From_int(static_cast< int >(result));
21770 return resultobj;
21771 fail:
21772 return NULL;
21773 }
21774
21775
21776 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21777 PyObject *resultobj = 0;
21778 wxDC *arg1 = (wxDC *) 0 ;
21779 int arg2 ;
21780 int result;
21781 void *argp1 = 0 ;
21782 int res1 = 0 ;
21783 int val2 ;
21784 int ecode2 = 0 ;
21785 PyObject * obj0 = 0 ;
21786 PyObject * obj1 = 0 ;
21787 char * kwnames[] = {
21788 (char *) "self",(char *) "x", NULL
21789 };
21790
21791 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21792 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21793 if (!SWIG_IsOK(res1)) {
21794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21795 }
21796 arg1 = reinterpret_cast< wxDC * >(argp1);
21797 ecode2 = SWIG_AsVal_int(obj1, &val2);
21798 if (!SWIG_IsOK(ecode2)) {
21799 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
21800 }
21801 arg2 = static_cast< int >(val2);
21802 {
21803 PyThreadState* __tstate = wxPyBeginAllowThreads();
21804 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
21805 wxPyEndAllowThreads(__tstate);
21806 if (PyErr_Occurred()) SWIG_fail;
21807 }
21808 resultobj = SWIG_From_int(static_cast< int >(result));
21809 return resultobj;
21810 fail:
21811 return NULL;
21812 }
21813
21814
21815 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21816 PyObject *resultobj = 0;
21817 wxDC *arg1 = (wxDC *) 0 ;
21818 int arg2 ;
21819 int result;
21820 void *argp1 = 0 ;
21821 int res1 = 0 ;
21822 int val2 ;
21823 int ecode2 = 0 ;
21824 PyObject * obj0 = 0 ;
21825 PyObject * obj1 = 0 ;
21826 char * kwnames[] = {
21827 (char *) "self",(char *) "y", NULL
21828 };
21829
21830 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21831 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21832 if (!SWIG_IsOK(res1)) {
21833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21834 }
21835 arg1 = reinterpret_cast< wxDC * >(argp1);
21836 ecode2 = SWIG_AsVal_int(obj1, &val2);
21837 if (!SWIG_IsOK(ecode2)) {
21838 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
21839 }
21840 arg2 = static_cast< int >(val2);
21841 {
21842 PyThreadState* __tstate = wxPyBeginAllowThreads();
21843 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
21844 wxPyEndAllowThreads(__tstate);
21845 if (PyErr_Occurred()) SWIG_fail;
21846 }
21847 resultobj = SWIG_From_int(static_cast< int >(result));
21848 return resultobj;
21849 fail:
21850 return NULL;
21851 }
21852
21853
21854 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21855 PyObject *resultobj = 0;
21856 wxDC *arg1 = (wxDC *) 0 ;
21857 int arg2 ;
21858 int result;
21859 void *argp1 = 0 ;
21860 int res1 = 0 ;
21861 int val2 ;
21862 int ecode2 = 0 ;
21863 PyObject * obj0 = 0 ;
21864 PyObject * obj1 = 0 ;
21865 char * kwnames[] = {
21866 (char *) "self",(char *) "x", NULL
21867 };
21868
21869 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
21870 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21871 if (!SWIG_IsOK(res1)) {
21872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
21873 }
21874 arg1 = reinterpret_cast< wxDC * >(argp1);
21875 ecode2 = SWIG_AsVal_int(obj1, &val2);
21876 if (!SWIG_IsOK(ecode2)) {
21877 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
21878 }
21879 arg2 = static_cast< int >(val2);
21880 {
21881 PyThreadState* __tstate = wxPyBeginAllowThreads();
21882 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
21883 wxPyEndAllowThreads(__tstate);
21884 if (PyErr_Occurred()) SWIG_fail;
21885 }
21886 resultobj = SWIG_From_int(static_cast< int >(result));
21887 return resultobj;
21888 fail:
21889 return NULL;
21890 }
21891
21892
21893 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21894 PyObject *resultobj = 0;
21895 wxDC *arg1 = (wxDC *) 0 ;
21896 int arg2 ;
21897 int result;
21898 void *argp1 = 0 ;
21899 int res1 = 0 ;
21900 int val2 ;
21901 int ecode2 = 0 ;
21902 PyObject * obj0 = 0 ;
21903 PyObject * obj1 = 0 ;
21904 char * kwnames[] = {
21905 (char *) "self",(char *) "y", NULL
21906 };
21907
21908 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
21909 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21910 if (!SWIG_IsOK(res1)) {
21911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
21912 }
21913 arg1 = reinterpret_cast< wxDC * >(argp1);
21914 ecode2 = SWIG_AsVal_int(obj1, &val2);
21915 if (!SWIG_IsOK(ecode2)) {
21916 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
21917 }
21918 arg2 = static_cast< int >(val2);
21919 {
21920 PyThreadState* __tstate = wxPyBeginAllowThreads();
21921 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
21922 wxPyEndAllowThreads(__tstate);
21923 if (PyErr_Occurred()) SWIG_fail;
21924 }
21925 resultobj = SWIG_From_int(static_cast< int >(result));
21926 return resultobj;
21927 fail:
21928 return NULL;
21929 }
21930
21931
21932 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21933 PyObject *resultobj = 0;
21934 wxDC *arg1 = (wxDC *) 0 ;
21935 int arg2 ;
21936 int result;
21937 void *argp1 = 0 ;
21938 int res1 = 0 ;
21939 int val2 ;
21940 int ecode2 = 0 ;
21941 PyObject * obj0 = 0 ;
21942 PyObject * obj1 = 0 ;
21943 char * kwnames[] = {
21944 (char *) "self",(char *) "x", NULL
21945 };
21946
21947 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21948 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21949 if (!SWIG_IsOK(res1)) {
21950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21951 }
21952 arg1 = reinterpret_cast< wxDC * >(argp1);
21953 ecode2 = SWIG_AsVal_int(obj1, &val2);
21954 if (!SWIG_IsOK(ecode2)) {
21955 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
21956 }
21957 arg2 = static_cast< int >(val2);
21958 {
21959 PyThreadState* __tstate = wxPyBeginAllowThreads();
21960 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
21961 wxPyEndAllowThreads(__tstate);
21962 if (PyErr_Occurred()) SWIG_fail;
21963 }
21964 resultobj = SWIG_From_int(static_cast< int >(result));
21965 return resultobj;
21966 fail:
21967 return NULL;
21968 }
21969
21970
21971 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21972 PyObject *resultobj = 0;
21973 wxDC *arg1 = (wxDC *) 0 ;
21974 int arg2 ;
21975 int result;
21976 void *argp1 = 0 ;
21977 int res1 = 0 ;
21978 int val2 ;
21979 int ecode2 = 0 ;
21980 PyObject * obj0 = 0 ;
21981 PyObject * obj1 = 0 ;
21982 char * kwnames[] = {
21983 (char *) "self",(char *) "y", NULL
21984 };
21985
21986 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21987 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21988 if (!SWIG_IsOK(res1)) {
21989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21990 }
21991 arg1 = reinterpret_cast< wxDC * >(argp1);
21992 ecode2 = SWIG_AsVal_int(obj1, &val2);
21993 if (!SWIG_IsOK(ecode2)) {
21994 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
21995 }
21996 arg2 = static_cast< int >(val2);
21997 {
21998 PyThreadState* __tstate = wxPyBeginAllowThreads();
21999 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
22000 wxPyEndAllowThreads(__tstate);
22001 if (PyErr_Occurred()) SWIG_fail;
22002 }
22003 resultobj = SWIG_From_int(static_cast< int >(result));
22004 return resultobj;
22005 fail:
22006 return NULL;
22007 }
22008
22009
22010 SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22011 PyObject *resultobj = 0;
22012 wxDC *arg1 = (wxDC *) 0 ;
22013 bool result;
22014 void *argp1 = 0 ;
22015 int res1 = 0 ;
22016 PyObject *swig_obj[1] ;
22017
22018 if (!args) SWIG_fail;
22019 swig_obj[0] = args;
22020 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22021 if (!SWIG_IsOK(res1)) {
22022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
22023 }
22024 arg1 = reinterpret_cast< wxDC * >(argp1);
22025 {
22026 PyThreadState* __tstate = wxPyBeginAllowThreads();
22027 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
22028 wxPyEndAllowThreads(__tstate);
22029 if (PyErr_Occurred()) SWIG_fail;
22030 }
22031 {
22032 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22033 }
22034 return resultobj;
22035 fail:
22036 return NULL;
22037 }
22038
22039
22040 SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22041 PyObject *resultobj = 0;
22042 wxDC *arg1 = (wxDC *) 0 ;
22043 bool result;
22044 void *argp1 = 0 ;
22045 int res1 = 0 ;
22046 PyObject *swig_obj[1] ;
22047
22048 if (!args) SWIG_fail;
22049 swig_obj[0] = args;
22050 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22051 if (!SWIG_IsOK(res1)) {
22052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
22053 }
22054 arg1 = reinterpret_cast< wxDC * >(argp1);
22055 {
22056 PyThreadState* __tstate = wxPyBeginAllowThreads();
22057 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
22058 wxPyEndAllowThreads(__tstate);
22059 if (PyErr_Occurred()) SWIG_fail;
22060 }
22061 {
22062 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22063 }
22064 return resultobj;
22065 fail:
22066 return NULL;
22067 }
22068
22069
22070 SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22071 PyObject *resultobj = 0;
22072 wxDC *arg1 = (wxDC *) 0 ;
22073 int result;
22074 void *argp1 = 0 ;
22075 int res1 = 0 ;
22076 PyObject *swig_obj[1] ;
22077
22078 if (!args) SWIG_fail;
22079 swig_obj[0] = args;
22080 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22081 if (!SWIG_IsOK(res1)) {
22082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
22083 }
22084 arg1 = reinterpret_cast< wxDC * >(argp1);
22085 {
22086 PyThreadState* __tstate = wxPyBeginAllowThreads();
22087 result = (int)((wxDC const *)arg1)->GetDepth();
22088 wxPyEndAllowThreads(__tstate);
22089 if (PyErr_Occurred()) SWIG_fail;
22090 }
22091 resultobj = SWIG_From_int(static_cast< int >(result));
22092 return resultobj;
22093 fail:
22094 return NULL;
22095 }
22096
22097
22098 SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22099 PyObject *resultobj = 0;
22100 wxDC *arg1 = (wxDC *) 0 ;
22101 wxSize result;
22102 void *argp1 = 0 ;
22103 int res1 = 0 ;
22104 PyObject *swig_obj[1] ;
22105
22106 if (!args) SWIG_fail;
22107 swig_obj[0] = args;
22108 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22109 if (!SWIG_IsOK(res1)) {
22110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
22111 }
22112 arg1 = reinterpret_cast< wxDC * >(argp1);
22113 {
22114 PyThreadState* __tstate = wxPyBeginAllowThreads();
22115 result = ((wxDC const *)arg1)->GetPPI();
22116 wxPyEndAllowThreads(__tstate);
22117 if (PyErr_Occurred()) SWIG_fail;
22118 }
22119 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
22120 return resultobj;
22121 fail:
22122 return NULL;
22123 }
22124
22125
22126 SWIGINTERN PyObject *_wrap_DC_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22127 PyObject *resultobj = 0;
22128 wxDC *arg1 = (wxDC *) 0 ;
22129 bool result;
22130 void *argp1 = 0 ;
22131 int res1 = 0 ;
22132 PyObject *swig_obj[1] ;
22133
22134 if (!args) SWIG_fail;
22135 swig_obj[0] = args;
22136 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22137 if (!SWIG_IsOK(res1)) {
22138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_IsOk" "', expected argument " "1"" of type '" "wxDC const *""'");
22139 }
22140 arg1 = reinterpret_cast< wxDC * >(argp1);
22141 {
22142 PyThreadState* __tstate = wxPyBeginAllowThreads();
22143 result = (bool)((wxDC const *)arg1)->IsOk();
22144 wxPyEndAllowThreads(__tstate);
22145 if (PyErr_Occurred()) SWIG_fail;
22146 }
22147 {
22148 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22149 }
22150 return resultobj;
22151 fail:
22152 return NULL;
22153 }
22154
22155
22156 SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22157 PyObject *resultobj = 0;
22158 wxDC *arg1 = (wxDC *) 0 ;
22159 int result;
22160 void *argp1 = 0 ;
22161 int res1 = 0 ;
22162 PyObject *swig_obj[1] ;
22163
22164 if (!args) SWIG_fail;
22165 swig_obj[0] = args;
22166 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22167 if (!SWIG_IsOK(res1)) {
22168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
22169 }
22170 arg1 = reinterpret_cast< wxDC * >(argp1);
22171 {
22172 PyThreadState* __tstate = wxPyBeginAllowThreads();
22173 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
22174 wxPyEndAllowThreads(__tstate);
22175 if (PyErr_Occurred()) SWIG_fail;
22176 }
22177 resultobj = SWIG_From_int(static_cast< int >(result));
22178 return resultobj;
22179 fail:
22180 return NULL;
22181 }
22182
22183
22184 SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22185 PyObject *resultobj = 0;
22186 wxDC *arg1 = (wxDC *) 0 ;
22187 wxBrush *result = 0 ;
22188 void *argp1 = 0 ;
22189 int res1 = 0 ;
22190 PyObject *swig_obj[1] ;
22191
22192 if (!args) SWIG_fail;
22193 swig_obj[0] = args;
22194 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22195 if (!SWIG_IsOK(res1)) {
22196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
22197 }
22198 arg1 = reinterpret_cast< wxDC * >(argp1);
22199 {
22200 PyThreadState* __tstate = wxPyBeginAllowThreads();
22201 {
22202 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
22203 result = (wxBrush *) &_result_ref;
22204 }
22205 wxPyEndAllowThreads(__tstate);
22206 if (PyErr_Occurred()) SWIG_fail;
22207 }
22208 {
22209 wxBrush* resultptr = new wxBrush(*result);
22210 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
22211 }
22212 return resultobj;
22213 fail:
22214 return NULL;
22215 }
22216
22217
22218 SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22219 PyObject *resultobj = 0;
22220 wxDC *arg1 = (wxDC *) 0 ;
22221 wxBrush *result = 0 ;
22222 void *argp1 = 0 ;
22223 int res1 = 0 ;
22224 PyObject *swig_obj[1] ;
22225
22226 if (!args) SWIG_fail;
22227 swig_obj[0] = args;
22228 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22229 if (!SWIG_IsOK(res1)) {
22230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
22231 }
22232 arg1 = reinterpret_cast< wxDC * >(argp1);
22233 {
22234 PyThreadState* __tstate = wxPyBeginAllowThreads();
22235 {
22236 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
22237 result = (wxBrush *) &_result_ref;
22238 }
22239 wxPyEndAllowThreads(__tstate);
22240 if (PyErr_Occurred()) SWIG_fail;
22241 }
22242 {
22243 wxBrush* resultptr = new wxBrush(*result);
22244 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
22245 }
22246 return resultobj;
22247 fail:
22248 return NULL;
22249 }
22250
22251
22252 SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22253 PyObject *resultobj = 0;
22254 wxDC *arg1 = (wxDC *) 0 ;
22255 wxFont *result = 0 ;
22256 void *argp1 = 0 ;
22257 int res1 = 0 ;
22258 PyObject *swig_obj[1] ;
22259
22260 if (!args) SWIG_fail;
22261 swig_obj[0] = args;
22262 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22263 if (!SWIG_IsOK(res1)) {
22264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
22265 }
22266 arg1 = reinterpret_cast< wxDC * >(argp1);
22267 {
22268 PyThreadState* __tstate = wxPyBeginAllowThreads();
22269 {
22270 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
22271 result = (wxFont *) &_result_ref;
22272 }
22273 wxPyEndAllowThreads(__tstate);
22274 if (PyErr_Occurred()) SWIG_fail;
22275 }
22276 {
22277 wxFont* resultptr = new wxFont(*result);
22278 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
22279 }
22280 return resultobj;
22281 fail:
22282 return NULL;
22283 }
22284
22285
22286 SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22287 PyObject *resultobj = 0;
22288 wxDC *arg1 = (wxDC *) 0 ;
22289 wxPen *result = 0 ;
22290 void *argp1 = 0 ;
22291 int res1 = 0 ;
22292 PyObject *swig_obj[1] ;
22293
22294 if (!args) SWIG_fail;
22295 swig_obj[0] = args;
22296 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22297 if (!SWIG_IsOK(res1)) {
22298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
22299 }
22300 arg1 = reinterpret_cast< wxDC * >(argp1);
22301 {
22302 PyThreadState* __tstate = wxPyBeginAllowThreads();
22303 {
22304 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
22305 result = (wxPen *) &_result_ref;
22306 }
22307 wxPyEndAllowThreads(__tstate);
22308 if (PyErr_Occurred()) SWIG_fail;
22309 }
22310 {
22311 wxPen* resultptr = new wxPen(*result);
22312 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
22313 }
22314 return resultobj;
22315 fail:
22316 return NULL;
22317 }
22318
22319
22320 SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22321 PyObject *resultobj = 0;
22322 wxDC *arg1 = (wxDC *) 0 ;
22323 wxColour *result = 0 ;
22324 void *argp1 = 0 ;
22325 int res1 = 0 ;
22326 PyObject *swig_obj[1] ;
22327
22328 if (!args) SWIG_fail;
22329 swig_obj[0] = args;
22330 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22331 if (!SWIG_IsOK(res1)) {
22332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
22333 }
22334 arg1 = reinterpret_cast< wxDC * >(argp1);
22335 {
22336 PyThreadState* __tstate = wxPyBeginAllowThreads();
22337 {
22338 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
22339 result = (wxColour *) &_result_ref;
22340 }
22341 wxPyEndAllowThreads(__tstate);
22342 if (PyErr_Occurred()) SWIG_fail;
22343 }
22344 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22345 return resultobj;
22346 fail:
22347 return NULL;
22348 }
22349
22350
22351 SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22352 PyObject *resultobj = 0;
22353 wxDC *arg1 = (wxDC *) 0 ;
22354 wxColour *result = 0 ;
22355 void *argp1 = 0 ;
22356 int res1 = 0 ;
22357 PyObject *swig_obj[1] ;
22358
22359 if (!args) SWIG_fail;
22360 swig_obj[0] = args;
22361 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22362 if (!SWIG_IsOK(res1)) {
22363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
22364 }
22365 arg1 = reinterpret_cast< wxDC * >(argp1);
22366 {
22367 PyThreadState* __tstate = wxPyBeginAllowThreads();
22368 {
22369 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
22370 result = (wxColour *) &_result_ref;
22371 }
22372 wxPyEndAllowThreads(__tstate);
22373 if (PyErr_Occurred()) SWIG_fail;
22374 }
22375 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22376 return resultobj;
22377 fail:
22378 return NULL;
22379 }
22380
22381
22382 SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22383 PyObject *resultobj = 0;
22384 wxDC *arg1 = (wxDC *) 0 ;
22385 wxColour *arg2 = 0 ;
22386 void *argp1 = 0 ;
22387 int res1 = 0 ;
22388 wxColour temp2 ;
22389 PyObject * obj0 = 0 ;
22390 PyObject * obj1 = 0 ;
22391 char * kwnames[] = {
22392 (char *) "self",(char *) "colour", NULL
22393 };
22394
22395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
22396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22397 if (!SWIG_IsOK(res1)) {
22398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
22399 }
22400 arg1 = reinterpret_cast< wxDC * >(argp1);
22401 {
22402 arg2 = &temp2;
22403 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22404 }
22405 {
22406 PyThreadState* __tstate = wxPyBeginAllowThreads();
22407 (arg1)->SetTextForeground((wxColour const &)*arg2);
22408 wxPyEndAllowThreads(__tstate);
22409 if (PyErr_Occurred()) SWIG_fail;
22410 }
22411 resultobj = SWIG_Py_Void();
22412 return resultobj;
22413 fail:
22414 return NULL;
22415 }
22416
22417
22418 SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22419 PyObject *resultobj = 0;
22420 wxDC *arg1 = (wxDC *) 0 ;
22421 wxColour *arg2 = 0 ;
22422 void *argp1 = 0 ;
22423 int res1 = 0 ;
22424 wxColour temp2 ;
22425 PyObject * obj0 = 0 ;
22426 PyObject * obj1 = 0 ;
22427 char * kwnames[] = {
22428 (char *) "self",(char *) "colour", NULL
22429 };
22430
22431 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
22432 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22433 if (!SWIG_IsOK(res1)) {
22434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
22435 }
22436 arg1 = reinterpret_cast< wxDC * >(argp1);
22437 {
22438 arg2 = &temp2;
22439 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22440 }
22441 {
22442 PyThreadState* __tstate = wxPyBeginAllowThreads();
22443 (arg1)->SetTextBackground((wxColour const &)*arg2);
22444 wxPyEndAllowThreads(__tstate);
22445 if (PyErr_Occurred()) SWIG_fail;
22446 }
22447 resultobj = SWIG_Py_Void();
22448 return resultobj;
22449 fail:
22450 return NULL;
22451 }
22452
22453
22454 SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22455 PyObject *resultobj = 0;
22456 wxDC *arg1 = (wxDC *) 0 ;
22457 int result;
22458 void *argp1 = 0 ;
22459 int res1 = 0 ;
22460 PyObject *swig_obj[1] ;
22461
22462 if (!args) SWIG_fail;
22463 swig_obj[0] = args;
22464 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22465 if (!SWIG_IsOK(res1)) {
22466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
22467 }
22468 arg1 = reinterpret_cast< wxDC * >(argp1);
22469 {
22470 PyThreadState* __tstate = wxPyBeginAllowThreads();
22471 result = (int)((wxDC const *)arg1)->GetMapMode();
22472 wxPyEndAllowThreads(__tstate);
22473 if (PyErr_Occurred()) SWIG_fail;
22474 }
22475 resultobj = SWIG_From_int(static_cast< int >(result));
22476 return resultobj;
22477 fail:
22478 return NULL;
22479 }
22480
22481
22482 SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22483 PyObject *resultobj = 0;
22484 wxDC *arg1 = (wxDC *) 0 ;
22485 int arg2 ;
22486 void *argp1 = 0 ;
22487 int res1 = 0 ;
22488 int val2 ;
22489 int ecode2 = 0 ;
22490 PyObject * obj0 = 0 ;
22491 PyObject * obj1 = 0 ;
22492 char * kwnames[] = {
22493 (char *) "self",(char *) "mode", NULL
22494 };
22495
22496 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
22497 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22498 if (!SWIG_IsOK(res1)) {
22499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
22500 }
22501 arg1 = reinterpret_cast< wxDC * >(argp1);
22502 ecode2 = SWIG_AsVal_int(obj1, &val2);
22503 if (!SWIG_IsOK(ecode2)) {
22504 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
22505 }
22506 arg2 = static_cast< int >(val2);
22507 {
22508 PyThreadState* __tstate = wxPyBeginAllowThreads();
22509 (arg1)->SetMapMode(arg2);
22510 wxPyEndAllowThreads(__tstate);
22511 if (PyErr_Occurred()) SWIG_fail;
22512 }
22513 resultobj = SWIG_Py_Void();
22514 return resultobj;
22515 fail:
22516 return NULL;
22517 }
22518
22519
22520 SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22521 PyObject *resultobj = 0;
22522 wxDC *arg1 = (wxDC *) 0 ;
22523 double *arg2 = (double *) 0 ;
22524 double *arg3 = (double *) 0 ;
22525 void *argp1 = 0 ;
22526 int res1 = 0 ;
22527 double temp2 ;
22528 int res2 = SWIG_TMPOBJ ;
22529 double temp3 ;
22530 int res3 = SWIG_TMPOBJ ;
22531 PyObject *swig_obj[1] ;
22532
22533 arg2 = &temp2;
22534 arg3 = &temp3;
22535 if (!args) SWIG_fail;
22536 swig_obj[0] = args;
22537 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22538 if (!SWIG_IsOK(res1)) {
22539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
22540 }
22541 arg1 = reinterpret_cast< wxDC * >(argp1);
22542 {
22543 PyThreadState* __tstate = wxPyBeginAllowThreads();
22544 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
22545 wxPyEndAllowThreads(__tstate);
22546 if (PyErr_Occurred()) SWIG_fail;
22547 }
22548 resultobj = SWIG_Py_Void();
22549 if (SWIG_IsTmpObj(res2)) {
22550 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22551 } else {
22552 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22553 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22554 }
22555 if (SWIG_IsTmpObj(res3)) {
22556 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22557 } else {
22558 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22559 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22560 }
22561 return resultobj;
22562 fail:
22563 return NULL;
22564 }
22565
22566
22567 SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22568 PyObject *resultobj = 0;
22569 wxDC *arg1 = (wxDC *) 0 ;
22570 double arg2 ;
22571 double arg3 ;
22572 void *argp1 = 0 ;
22573 int res1 = 0 ;
22574 double val2 ;
22575 int ecode2 = 0 ;
22576 double val3 ;
22577 int ecode3 = 0 ;
22578 PyObject * obj0 = 0 ;
22579 PyObject * obj1 = 0 ;
22580 PyObject * obj2 = 0 ;
22581 char * kwnames[] = {
22582 (char *) "self",(char *) "x",(char *) "y", NULL
22583 };
22584
22585 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22586 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22587 if (!SWIG_IsOK(res1)) {
22588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
22589 }
22590 arg1 = reinterpret_cast< wxDC * >(argp1);
22591 ecode2 = SWIG_AsVal_double(obj1, &val2);
22592 if (!SWIG_IsOK(ecode2)) {
22593 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
22594 }
22595 arg2 = static_cast< double >(val2);
22596 ecode3 = SWIG_AsVal_double(obj2, &val3);
22597 if (!SWIG_IsOK(ecode3)) {
22598 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
22599 }
22600 arg3 = static_cast< double >(val3);
22601 {
22602 PyThreadState* __tstate = wxPyBeginAllowThreads();
22603 (arg1)->SetUserScale(arg2,arg3);
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_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22615 PyObject *resultobj = 0;
22616 wxDC *arg1 = (wxDC *) 0 ;
22617 double *arg2 = (double *) 0 ;
22618 double *arg3 = (double *) 0 ;
22619 void *argp1 = 0 ;
22620 int res1 = 0 ;
22621 double temp2 ;
22622 int res2 = SWIG_TMPOBJ ;
22623 double temp3 ;
22624 int res3 = SWIG_TMPOBJ ;
22625 PyObject *swig_obj[1] ;
22626
22627 arg2 = &temp2;
22628 arg3 = &temp3;
22629 if (!args) SWIG_fail;
22630 swig_obj[0] = args;
22631 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22632 if (!SWIG_IsOK(res1)) {
22633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22634 }
22635 arg1 = reinterpret_cast< wxDC * >(argp1);
22636 {
22637 PyThreadState* __tstate = wxPyBeginAllowThreads();
22638 (arg1)->GetLogicalScale(arg2,arg3);
22639 wxPyEndAllowThreads(__tstate);
22640 if (PyErr_Occurred()) SWIG_fail;
22641 }
22642 resultobj = SWIG_Py_Void();
22643 if (SWIG_IsTmpObj(res2)) {
22644 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22645 } else {
22646 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22647 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22648 }
22649 if (SWIG_IsTmpObj(res3)) {
22650 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22651 } else {
22652 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22653 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22654 }
22655 return resultobj;
22656 fail:
22657 return NULL;
22658 }
22659
22660
22661 SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22662 PyObject *resultobj = 0;
22663 wxDC *arg1 = (wxDC *) 0 ;
22664 double arg2 ;
22665 double arg3 ;
22666 void *argp1 = 0 ;
22667 int res1 = 0 ;
22668 double val2 ;
22669 int ecode2 = 0 ;
22670 double val3 ;
22671 int ecode3 = 0 ;
22672 PyObject * obj0 = 0 ;
22673 PyObject * obj1 = 0 ;
22674 PyObject * obj2 = 0 ;
22675 char * kwnames[] = {
22676 (char *) "self",(char *) "x",(char *) "y", NULL
22677 };
22678
22679 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22680 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22681 if (!SWIG_IsOK(res1)) {
22682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22683 }
22684 arg1 = reinterpret_cast< wxDC * >(argp1);
22685 ecode2 = SWIG_AsVal_double(obj1, &val2);
22686 if (!SWIG_IsOK(ecode2)) {
22687 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
22688 }
22689 arg2 = static_cast< double >(val2);
22690 ecode3 = SWIG_AsVal_double(obj2, &val3);
22691 if (!SWIG_IsOK(ecode3)) {
22692 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
22693 }
22694 arg3 = static_cast< double >(val3);
22695 {
22696 PyThreadState* __tstate = wxPyBeginAllowThreads();
22697 (arg1)->SetLogicalScale(arg2,arg3);
22698 wxPyEndAllowThreads(__tstate);
22699 if (PyErr_Occurred()) SWIG_fail;
22700 }
22701 resultobj = SWIG_Py_Void();
22702 return resultobj;
22703 fail:
22704 return NULL;
22705 }
22706
22707
22708 SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22709 PyObject *resultobj = 0;
22710 wxDC *arg1 = (wxDC *) 0 ;
22711 wxPoint result;
22712 void *argp1 = 0 ;
22713 int res1 = 0 ;
22714 PyObject *swig_obj[1] ;
22715
22716 if (!args) SWIG_fail;
22717 swig_obj[0] = args;
22718 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22719 if (!SWIG_IsOK(res1)) {
22720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22721 }
22722 arg1 = reinterpret_cast< wxDC * >(argp1);
22723 {
22724 PyThreadState* __tstate = wxPyBeginAllowThreads();
22725 result = ((wxDC const *)arg1)->GetLogicalOrigin();
22726 wxPyEndAllowThreads(__tstate);
22727 if (PyErr_Occurred()) SWIG_fail;
22728 }
22729 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22730 return resultobj;
22731 fail:
22732 return NULL;
22733 }
22734
22735
22736 SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22737 PyObject *resultobj = 0;
22738 wxDC *arg1 = (wxDC *) 0 ;
22739 int *arg2 = (int *) 0 ;
22740 int *arg3 = (int *) 0 ;
22741 void *argp1 = 0 ;
22742 int res1 = 0 ;
22743 int temp2 ;
22744 int res2 = SWIG_TMPOBJ ;
22745 int temp3 ;
22746 int res3 = SWIG_TMPOBJ ;
22747 PyObject *swig_obj[1] ;
22748
22749 arg2 = &temp2;
22750 arg3 = &temp3;
22751 if (!args) SWIG_fail;
22752 swig_obj[0] = args;
22753 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22754 if (!SWIG_IsOK(res1)) {
22755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22756 }
22757 arg1 = reinterpret_cast< wxDC * >(argp1);
22758 {
22759 PyThreadState* __tstate = wxPyBeginAllowThreads();
22760 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
22761 wxPyEndAllowThreads(__tstate);
22762 if (PyErr_Occurred()) SWIG_fail;
22763 }
22764 resultobj = SWIG_Py_Void();
22765 if (SWIG_IsTmpObj(res2)) {
22766 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22767 } else {
22768 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22769 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22770 }
22771 if (SWIG_IsTmpObj(res3)) {
22772 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22773 } else {
22774 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22775 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22776 }
22777 return resultobj;
22778 fail:
22779 return NULL;
22780 }
22781
22782
22783 SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22784 PyObject *resultobj = 0;
22785 wxDC *arg1 = (wxDC *) 0 ;
22786 int arg2 ;
22787 int arg3 ;
22788 void *argp1 = 0 ;
22789 int res1 = 0 ;
22790 int val2 ;
22791 int ecode2 = 0 ;
22792 int val3 ;
22793 int ecode3 = 0 ;
22794 PyObject * obj0 = 0 ;
22795 PyObject * obj1 = 0 ;
22796 PyObject * obj2 = 0 ;
22797 char * kwnames[] = {
22798 (char *) "self",(char *) "x",(char *) "y", NULL
22799 };
22800
22801 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22802 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22803 if (!SWIG_IsOK(res1)) {
22804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22805 }
22806 arg1 = reinterpret_cast< wxDC * >(argp1);
22807 ecode2 = SWIG_AsVal_int(obj1, &val2);
22808 if (!SWIG_IsOK(ecode2)) {
22809 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
22810 }
22811 arg2 = static_cast< int >(val2);
22812 ecode3 = SWIG_AsVal_int(obj2, &val3);
22813 if (!SWIG_IsOK(ecode3)) {
22814 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
22815 }
22816 arg3 = static_cast< int >(val3);
22817 {
22818 PyThreadState* __tstate = wxPyBeginAllowThreads();
22819 (arg1)->SetLogicalOrigin(arg2,arg3);
22820 wxPyEndAllowThreads(__tstate);
22821 if (PyErr_Occurred()) SWIG_fail;
22822 }
22823 resultobj = SWIG_Py_Void();
22824 return resultobj;
22825 fail:
22826 return NULL;
22827 }
22828
22829
22830 SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22831 PyObject *resultobj = 0;
22832 wxDC *arg1 = (wxDC *) 0 ;
22833 wxPoint *arg2 = 0 ;
22834 void *argp1 = 0 ;
22835 int res1 = 0 ;
22836 wxPoint temp2 ;
22837 PyObject * obj0 = 0 ;
22838 PyObject * obj1 = 0 ;
22839 char * kwnames[] = {
22840 (char *) "self",(char *) "point", NULL
22841 };
22842
22843 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22844 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22845 if (!SWIG_IsOK(res1)) {
22846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22847 }
22848 arg1 = reinterpret_cast< wxDC * >(argp1);
22849 {
22850 arg2 = &temp2;
22851 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22852 }
22853 {
22854 PyThreadState* __tstate = wxPyBeginAllowThreads();
22855 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
22856 wxPyEndAllowThreads(__tstate);
22857 if (PyErr_Occurred()) SWIG_fail;
22858 }
22859 resultobj = SWIG_Py_Void();
22860 return resultobj;
22861 fail:
22862 return NULL;
22863 }
22864
22865
22866 SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22867 PyObject *resultobj = 0;
22868 wxDC *arg1 = (wxDC *) 0 ;
22869 wxPoint result;
22870 void *argp1 = 0 ;
22871 int res1 = 0 ;
22872 PyObject *swig_obj[1] ;
22873
22874 if (!args) SWIG_fail;
22875 swig_obj[0] = args;
22876 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22877 if (!SWIG_IsOK(res1)) {
22878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22879 }
22880 arg1 = reinterpret_cast< wxDC * >(argp1);
22881 {
22882 PyThreadState* __tstate = wxPyBeginAllowThreads();
22883 result = ((wxDC const *)arg1)->GetDeviceOrigin();
22884 wxPyEndAllowThreads(__tstate);
22885 if (PyErr_Occurred()) SWIG_fail;
22886 }
22887 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22888 return resultobj;
22889 fail:
22890 return NULL;
22891 }
22892
22893
22894 SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22895 PyObject *resultobj = 0;
22896 wxDC *arg1 = (wxDC *) 0 ;
22897 int *arg2 = (int *) 0 ;
22898 int *arg3 = (int *) 0 ;
22899 void *argp1 = 0 ;
22900 int res1 = 0 ;
22901 int temp2 ;
22902 int res2 = SWIG_TMPOBJ ;
22903 int temp3 ;
22904 int res3 = SWIG_TMPOBJ ;
22905 PyObject *swig_obj[1] ;
22906
22907 arg2 = &temp2;
22908 arg3 = &temp3;
22909 if (!args) SWIG_fail;
22910 swig_obj[0] = args;
22911 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22912 if (!SWIG_IsOK(res1)) {
22913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22914 }
22915 arg1 = reinterpret_cast< wxDC * >(argp1);
22916 {
22917 PyThreadState* __tstate = wxPyBeginAllowThreads();
22918 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
22919 wxPyEndAllowThreads(__tstate);
22920 if (PyErr_Occurred()) SWIG_fail;
22921 }
22922 resultobj = SWIG_Py_Void();
22923 if (SWIG_IsTmpObj(res2)) {
22924 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22925 } else {
22926 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22927 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22928 }
22929 if (SWIG_IsTmpObj(res3)) {
22930 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22931 } else {
22932 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22933 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22934 }
22935 return resultobj;
22936 fail:
22937 return NULL;
22938 }
22939
22940
22941 SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22942 PyObject *resultobj = 0;
22943 wxDC *arg1 = (wxDC *) 0 ;
22944 int arg2 ;
22945 int arg3 ;
22946 void *argp1 = 0 ;
22947 int res1 = 0 ;
22948 int val2 ;
22949 int ecode2 = 0 ;
22950 int val3 ;
22951 int ecode3 = 0 ;
22952 PyObject * obj0 = 0 ;
22953 PyObject * obj1 = 0 ;
22954 PyObject * obj2 = 0 ;
22955 char * kwnames[] = {
22956 (char *) "self",(char *) "x",(char *) "y", NULL
22957 };
22958
22959 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22960 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22961 if (!SWIG_IsOK(res1)) {
22962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22963 }
22964 arg1 = reinterpret_cast< wxDC * >(argp1);
22965 ecode2 = SWIG_AsVal_int(obj1, &val2);
22966 if (!SWIG_IsOK(ecode2)) {
22967 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
22968 }
22969 arg2 = static_cast< int >(val2);
22970 ecode3 = SWIG_AsVal_int(obj2, &val3);
22971 if (!SWIG_IsOK(ecode3)) {
22972 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
22973 }
22974 arg3 = static_cast< int >(val3);
22975 {
22976 PyThreadState* __tstate = wxPyBeginAllowThreads();
22977 (arg1)->SetDeviceOrigin(arg2,arg3);
22978 wxPyEndAllowThreads(__tstate);
22979 if (PyErr_Occurred()) SWIG_fail;
22980 }
22981 resultobj = SWIG_Py_Void();
22982 return resultobj;
22983 fail:
22984 return NULL;
22985 }
22986
22987
22988 SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22989 PyObject *resultobj = 0;
22990 wxDC *arg1 = (wxDC *) 0 ;
22991 wxPoint *arg2 = 0 ;
22992 void *argp1 = 0 ;
22993 int res1 = 0 ;
22994 wxPoint temp2 ;
22995 PyObject * obj0 = 0 ;
22996 PyObject * obj1 = 0 ;
22997 char * kwnames[] = {
22998 (char *) "self",(char *) "point", NULL
22999 };
23000
23001 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
23002 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23003 if (!SWIG_IsOK(res1)) {
23004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
23005 }
23006 arg1 = reinterpret_cast< wxDC * >(argp1);
23007 {
23008 arg2 = &temp2;
23009 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23010 }
23011 {
23012 PyThreadState* __tstate = wxPyBeginAllowThreads();
23013 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
23014 wxPyEndAllowThreads(__tstate);
23015 if (PyErr_Occurred()) SWIG_fail;
23016 }
23017 resultobj = SWIG_Py_Void();
23018 return resultobj;
23019 fail:
23020 return NULL;
23021 }
23022
23023
23024 SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23025 PyObject *resultobj = 0;
23026 wxDC *arg1 = (wxDC *) 0 ;
23027 bool arg2 ;
23028 bool arg3 ;
23029 void *argp1 = 0 ;
23030 int res1 = 0 ;
23031 bool val2 ;
23032 int ecode2 = 0 ;
23033 bool val3 ;
23034 int ecode3 = 0 ;
23035 PyObject * obj0 = 0 ;
23036 PyObject * obj1 = 0 ;
23037 PyObject * obj2 = 0 ;
23038 char * kwnames[] = {
23039 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
23040 };
23041
23042 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23043 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23044 if (!SWIG_IsOK(res1)) {
23045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
23046 }
23047 arg1 = reinterpret_cast< wxDC * >(argp1);
23048 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23049 if (!SWIG_IsOK(ecode2)) {
23050 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
23051 }
23052 arg2 = static_cast< bool >(val2);
23053 ecode3 = SWIG_AsVal_bool(obj2, &val3);
23054 if (!SWIG_IsOK(ecode3)) {
23055 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
23056 }
23057 arg3 = static_cast< bool >(val3);
23058 {
23059 PyThreadState* __tstate = wxPyBeginAllowThreads();
23060 (arg1)->SetAxisOrientation(arg2,arg3);
23061 wxPyEndAllowThreads(__tstate);
23062 if (PyErr_Occurred()) SWIG_fail;
23063 }
23064 resultobj = SWIG_Py_Void();
23065 return resultobj;
23066 fail:
23067 return NULL;
23068 }
23069
23070
23071 SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23072 PyObject *resultobj = 0;
23073 wxDC *arg1 = (wxDC *) 0 ;
23074 int result;
23075 void *argp1 = 0 ;
23076 int res1 = 0 ;
23077 PyObject *swig_obj[1] ;
23078
23079 if (!args) SWIG_fail;
23080 swig_obj[0] = args;
23081 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23082 if (!SWIG_IsOK(res1)) {
23083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
23084 }
23085 arg1 = reinterpret_cast< wxDC * >(argp1);
23086 {
23087 PyThreadState* __tstate = wxPyBeginAllowThreads();
23088 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
23089 wxPyEndAllowThreads(__tstate);
23090 if (PyErr_Occurred()) SWIG_fail;
23091 }
23092 resultobj = SWIG_From_int(static_cast< int >(result));
23093 return resultobj;
23094 fail:
23095 return NULL;
23096 }
23097
23098
23099 SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23100 PyObject *resultobj = 0;
23101 wxDC *arg1 = (wxDC *) 0 ;
23102 int arg2 ;
23103 void *argp1 = 0 ;
23104 int res1 = 0 ;
23105 int val2 ;
23106 int ecode2 = 0 ;
23107 PyObject * obj0 = 0 ;
23108 PyObject * obj1 = 0 ;
23109 char * kwnames[] = {
23110 (char *) "self",(char *) "function", NULL
23111 };
23112
23113 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
23114 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23115 if (!SWIG_IsOK(res1)) {
23116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
23117 }
23118 arg1 = reinterpret_cast< wxDC * >(argp1);
23119 ecode2 = SWIG_AsVal_int(obj1, &val2);
23120 if (!SWIG_IsOK(ecode2)) {
23121 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
23122 }
23123 arg2 = static_cast< int >(val2);
23124 {
23125 PyThreadState* __tstate = wxPyBeginAllowThreads();
23126 (arg1)->SetLogicalFunction(arg2);
23127 wxPyEndAllowThreads(__tstate);
23128 if (PyErr_Occurred()) SWIG_fail;
23129 }
23130 resultobj = SWIG_Py_Void();
23131 return resultobj;
23132 fail:
23133 return NULL;
23134 }
23135
23136
23137 SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23138 PyObject *resultobj = 0;
23139 wxDC *arg1 = (wxDC *) 0 ;
23140 void *argp1 = 0 ;
23141 int res1 = 0 ;
23142 PyObject *swig_obj[1] ;
23143
23144 if (!args) SWIG_fail;
23145 swig_obj[0] = args;
23146 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23147 if (!SWIG_IsOK(res1)) {
23148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
23149 }
23150 arg1 = reinterpret_cast< wxDC * >(argp1);
23151 {
23152 PyThreadState* __tstate = wxPyBeginAllowThreads();
23153 (arg1)->ComputeScaleAndOrigin();
23154 wxPyEndAllowThreads(__tstate);
23155 if (PyErr_Occurred()) SWIG_fail;
23156 }
23157 resultobj = SWIG_Py_Void();
23158 return resultobj;
23159 fail:
23160 return NULL;
23161 }
23162
23163
23164 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23165 PyObject *resultobj = 0;
23166 wxDC *arg1 = (wxDC *) 0 ;
23167 int arg2 ;
23168 int arg3 ;
23169 void *argp1 = 0 ;
23170 int res1 = 0 ;
23171 int val2 ;
23172 int ecode2 = 0 ;
23173 int val3 ;
23174 int ecode3 = 0 ;
23175 PyObject * obj0 = 0 ;
23176 PyObject * obj1 = 0 ;
23177 PyObject * obj2 = 0 ;
23178 char * kwnames[] = {
23179 (char *) "self",(char *) "x",(char *) "y", NULL
23180 };
23181
23182 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23183 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23184 if (!SWIG_IsOK(res1)) {
23185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23186 }
23187 arg1 = reinterpret_cast< wxDC * >(argp1);
23188 ecode2 = SWIG_AsVal_int(obj1, &val2);
23189 if (!SWIG_IsOK(ecode2)) {
23190 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
23191 }
23192 arg2 = static_cast< int >(val2);
23193 ecode3 = SWIG_AsVal_int(obj2, &val3);
23194 if (!SWIG_IsOK(ecode3)) {
23195 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
23196 }
23197 arg3 = static_cast< int >(val3);
23198 {
23199 PyThreadState* __tstate = wxPyBeginAllowThreads();
23200 (arg1)->CalcBoundingBox(arg2,arg3);
23201 wxPyEndAllowThreads(__tstate);
23202 if (PyErr_Occurred()) SWIG_fail;
23203 }
23204 resultobj = SWIG_Py_Void();
23205 return resultobj;
23206 fail:
23207 return NULL;
23208 }
23209
23210
23211 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23212 PyObject *resultobj = 0;
23213 wxDC *arg1 = (wxDC *) 0 ;
23214 wxPoint *arg2 = 0 ;
23215 void *argp1 = 0 ;
23216 int res1 = 0 ;
23217 wxPoint temp2 ;
23218 PyObject * obj0 = 0 ;
23219 PyObject * obj1 = 0 ;
23220 char * kwnames[] = {
23221 (char *) "self",(char *) "point", NULL
23222 };
23223
23224 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
23225 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23226 if (!SWIG_IsOK(res1)) {
23227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
23228 }
23229 arg1 = reinterpret_cast< wxDC * >(argp1);
23230 {
23231 arg2 = &temp2;
23232 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23233 }
23234 {
23235 PyThreadState* __tstate = wxPyBeginAllowThreads();
23236 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
23237 wxPyEndAllowThreads(__tstate);
23238 if (PyErr_Occurred()) SWIG_fail;
23239 }
23240 resultobj = SWIG_Py_Void();
23241 return resultobj;
23242 fail:
23243 return NULL;
23244 }
23245
23246
23247 SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23248 PyObject *resultobj = 0;
23249 wxDC *arg1 = (wxDC *) 0 ;
23250 void *argp1 = 0 ;
23251 int res1 = 0 ;
23252 PyObject *swig_obj[1] ;
23253
23254 if (!args) SWIG_fail;
23255 swig_obj[0] = args;
23256 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23257 if (!SWIG_IsOK(res1)) {
23258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23259 }
23260 arg1 = reinterpret_cast< wxDC * >(argp1);
23261 {
23262 PyThreadState* __tstate = wxPyBeginAllowThreads();
23263 (arg1)->ResetBoundingBox();
23264 wxPyEndAllowThreads(__tstate);
23265 if (PyErr_Occurred()) SWIG_fail;
23266 }
23267 resultobj = SWIG_Py_Void();
23268 return resultobj;
23269 fail:
23270 return NULL;
23271 }
23272
23273
23274 SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23275 PyObject *resultobj = 0;
23276 wxDC *arg1 = (wxDC *) 0 ;
23277 int result;
23278 void *argp1 = 0 ;
23279 int res1 = 0 ;
23280 PyObject *swig_obj[1] ;
23281
23282 if (!args) SWIG_fail;
23283 swig_obj[0] = args;
23284 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23285 if (!SWIG_IsOK(res1)) {
23286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
23287 }
23288 arg1 = reinterpret_cast< wxDC * >(argp1);
23289 {
23290 PyThreadState* __tstate = wxPyBeginAllowThreads();
23291 result = (int)((wxDC const *)arg1)->MinX();
23292 wxPyEndAllowThreads(__tstate);
23293 if (PyErr_Occurred()) SWIG_fail;
23294 }
23295 resultobj = SWIG_From_int(static_cast< int >(result));
23296 return resultobj;
23297 fail:
23298 return NULL;
23299 }
23300
23301
23302 SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23303 PyObject *resultobj = 0;
23304 wxDC *arg1 = (wxDC *) 0 ;
23305 int result;
23306 void *argp1 = 0 ;
23307 int res1 = 0 ;
23308 PyObject *swig_obj[1] ;
23309
23310 if (!args) SWIG_fail;
23311 swig_obj[0] = args;
23312 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23313 if (!SWIG_IsOK(res1)) {
23314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
23315 }
23316 arg1 = reinterpret_cast< wxDC * >(argp1);
23317 {
23318 PyThreadState* __tstate = wxPyBeginAllowThreads();
23319 result = (int)((wxDC const *)arg1)->MaxX();
23320 wxPyEndAllowThreads(__tstate);
23321 if (PyErr_Occurred()) SWIG_fail;
23322 }
23323 resultobj = SWIG_From_int(static_cast< int >(result));
23324 return resultobj;
23325 fail:
23326 return NULL;
23327 }
23328
23329
23330 SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23331 PyObject *resultobj = 0;
23332 wxDC *arg1 = (wxDC *) 0 ;
23333 int result;
23334 void *argp1 = 0 ;
23335 int res1 = 0 ;
23336 PyObject *swig_obj[1] ;
23337
23338 if (!args) SWIG_fail;
23339 swig_obj[0] = args;
23340 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23341 if (!SWIG_IsOK(res1)) {
23342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
23343 }
23344 arg1 = reinterpret_cast< wxDC * >(argp1);
23345 {
23346 PyThreadState* __tstate = wxPyBeginAllowThreads();
23347 result = (int)((wxDC const *)arg1)->MinY();
23348 wxPyEndAllowThreads(__tstate);
23349 if (PyErr_Occurred()) SWIG_fail;
23350 }
23351 resultobj = SWIG_From_int(static_cast< int >(result));
23352 return resultobj;
23353 fail:
23354 return NULL;
23355 }
23356
23357
23358 SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23359 PyObject *resultobj = 0;
23360 wxDC *arg1 = (wxDC *) 0 ;
23361 int result;
23362 void *argp1 = 0 ;
23363 int res1 = 0 ;
23364 PyObject *swig_obj[1] ;
23365
23366 if (!args) SWIG_fail;
23367 swig_obj[0] = args;
23368 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23369 if (!SWIG_IsOK(res1)) {
23370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
23371 }
23372 arg1 = reinterpret_cast< wxDC * >(argp1);
23373 {
23374 PyThreadState* __tstate = wxPyBeginAllowThreads();
23375 result = (int)((wxDC const *)arg1)->MaxY();
23376 wxPyEndAllowThreads(__tstate);
23377 if (PyErr_Occurred()) SWIG_fail;
23378 }
23379 resultobj = SWIG_From_int(static_cast< int >(result));
23380 return resultobj;
23381 fail:
23382 return NULL;
23383 }
23384
23385
23386 SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23387 PyObject *resultobj = 0;
23388 wxDC *arg1 = (wxDC *) 0 ;
23389 int *arg2 = (int *) 0 ;
23390 int *arg3 = (int *) 0 ;
23391 int *arg4 = (int *) 0 ;
23392 int *arg5 = (int *) 0 ;
23393 void *argp1 = 0 ;
23394 int res1 = 0 ;
23395 int temp2 ;
23396 int res2 = SWIG_TMPOBJ ;
23397 int temp3 ;
23398 int res3 = SWIG_TMPOBJ ;
23399 int temp4 ;
23400 int res4 = SWIG_TMPOBJ ;
23401 int temp5 ;
23402 int res5 = SWIG_TMPOBJ ;
23403 PyObject *swig_obj[1] ;
23404
23405 arg2 = &temp2;
23406 arg3 = &temp3;
23407 arg4 = &temp4;
23408 arg5 = &temp5;
23409 if (!args) SWIG_fail;
23410 swig_obj[0] = args;
23411 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23412 if (!SWIG_IsOK(res1)) {
23413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23414 }
23415 arg1 = reinterpret_cast< wxDC * >(argp1);
23416 {
23417 PyThreadState* __tstate = wxPyBeginAllowThreads();
23418 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
23419 wxPyEndAllowThreads(__tstate);
23420 if (PyErr_Occurred()) SWIG_fail;
23421 }
23422 resultobj = SWIG_Py_Void();
23423 if (SWIG_IsTmpObj(res2)) {
23424 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
23425 } else {
23426 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23427 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
23428 }
23429 if (SWIG_IsTmpObj(res3)) {
23430 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
23431 } else {
23432 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23433 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
23434 }
23435 if (SWIG_IsTmpObj(res4)) {
23436 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
23437 } else {
23438 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23439 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
23440 }
23441 if (SWIG_IsTmpObj(res5)) {
23442 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
23443 } else {
23444 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23445 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
23446 }
23447 return resultobj;
23448 fail:
23449 return NULL;
23450 }
23451
23452
23453 SWIGINTERN PyObject *_wrap_DC_GetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23454 PyObject *resultobj = 0;
23455 wxDC *arg1 = (wxDC *) 0 ;
23456 wxLayoutDirection result;
23457 void *argp1 = 0 ;
23458 int res1 = 0 ;
23459 PyObject *swig_obj[1] ;
23460
23461 if (!args) SWIG_fail;
23462 swig_obj[0] = args;
23463 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23464 if (!SWIG_IsOK(res1)) {
23465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLayoutDirection" "', expected argument " "1"" of type '" "wxDC const *""'");
23466 }
23467 arg1 = reinterpret_cast< wxDC * >(argp1);
23468 {
23469 PyThreadState* __tstate = wxPyBeginAllowThreads();
23470 result = (wxLayoutDirection)((wxDC const *)arg1)->GetLayoutDirection();
23471 wxPyEndAllowThreads(__tstate);
23472 if (PyErr_Occurred()) SWIG_fail;
23473 }
23474 resultobj = SWIG_From_int(static_cast< int >(result));
23475 return resultobj;
23476 fail:
23477 return NULL;
23478 }
23479
23480
23481 SWIGINTERN PyObject *_wrap_DC_SetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23482 PyObject *resultobj = 0;
23483 wxDC *arg1 = (wxDC *) 0 ;
23484 wxLayoutDirection arg2 ;
23485 void *argp1 = 0 ;
23486 int res1 = 0 ;
23487 int val2 ;
23488 int ecode2 = 0 ;
23489 PyObject * obj0 = 0 ;
23490 PyObject * obj1 = 0 ;
23491 char * kwnames[] = {
23492 (char *) "self",(char *) "dir", NULL
23493 };
23494
23495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLayoutDirection",kwnames,&obj0,&obj1)) SWIG_fail;
23496 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23497 if (!SWIG_IsOK(res1)) {
23498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLayoutDirection" "', expected argument " "1"" of type '" "wxDC *""'");
23499 }
23500 arg1 = reinterpret_cast< wxDC * >(argp1);
23501 ecode2 = SWIG_AsVal_int(obj1, &val2);
23502 if (!SWIG_IsOK(ecode2)) {
23503 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLayoutDirection" "', expected argument " "2"" of type '" "wxLayoutDirection""'");
23504 }
23505 arg2 = static_cast< wxLayoutDirection >(val2);
23506 {
23507 PyThreadState* __tstate = wxPyBeginAllowThreads();
23508 (arg1)->SetLayoutDirection(arg2);
23509 wxPyEndAllowThreads(__tstate);
23510 if (PyErr_Occurred()) SWIG_fail;
23511 }
23512 resultobj = SWIG_Py_Void();
23513 return resultobj;
23514 fail:
23515 return NULL;
23516 }
23517
23518
23519 SWIGINTERN PyObject *_wrap_DC_GetHDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23520 PyObject *resultobj = 0;
23521 wxDC *arg1 = (wxDC *) 0 ;
23522 long result;
23523 void *argp1 = 0 ;
23524 int res1 = 0 ;
23525 PyObject *swig_obj[1] ;
23526
23527 if (!args) SWIG_fail;
23528 swig_obj[0] = args;
23529 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23530 if (!SWIG_IsOK(res1)) {
23531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetHDC" "', expected argument " "1"" of type '" "wxDC *""'");
23532 }
23533 arg1 = reinterpret_cast< wxDC * >(argp1);
23534 {
23535 PyThreadState* __tstate = wxPyBeginAllowThreads();
23536 result = (long)(arg1)->GetHDC();
23537 wxPyEndAllowThreads(__tstate);
23538 if (PyErr_Occurred()) SWIG_fail;
23539 }
23540 resultobj = SWIG_From_long(static_cast< long >(result));
23541 return resultobj;
23542 fail:
23543 return NULL;
23544 }
23545
23546
23547 SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23548 PyObject *resultobj = 0;
23549 wxDC *arg1 = (wxDC *) 0 ;
23550 PyObject *arg2 = (PyObject *) 0 ;
23551 PyObject *arg3 = (PyObject *) 0 ;
23552 PyObject *arg4 = (PyObject *) 0 ;
23553 PyObject *result = 0 ;
23554 void *argp1 = 0 ;
23555 int res1 = 0 ;
23556 PyObject * obj0 = 0 ;
23557 PyObject * obj1 = 0 ;
23558 PyObject * obj2 = 0 ;
23559 PyObject * obj3 = 0 ;
23560 char * kwnames[] = {
23561 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23562 };
23563
23564 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23565 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23566 if (!SWIG_IsOK(res1)) {
23567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
23568 }
23569 arg1 = reinterpret_cast< wxDC * >(argp1);
23570 arg2 = obj1;
23571 arg3 = obj2;
23572 arg4 = obj3;
23573 {
23574 PyThreadState* __tstate = wxPyBeginAllowThreads();
23575 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
23576 wxPyEndAllowThreads(__tstate);
23577 if (PyErr_Occurred()) SWIG_fail;
23578 }
23579 resultobj = result;
23580 return resultobj;
23581 fail:
23582 return NULL;
23583 }
23584
23585
23586 SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23587 PyObject *resultobj = 0;
23588 wxDC *arg1 = (wxDC *) 0 ;
23589 PyObject *arg2 = (PyObject *) 0 ;
23590 PyObject *arg3 = (PyObject *) 0 ;
23591 PyObject *arg4 = (PyObject *) 0 ;
23592 PyObject *result = 0 ;
23593 void *argp1 = 0 ;
23594 int res1 = 0 ;
23595 PyObject * obj0 = 0 ;
23596 PyObject * obj1 = 0 ;
23597 PyObject * obj2 = 0 ;
23598 PyObject * obj3 = 0 ;
23599 char * kwnames[] = {
23600 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23601 };
23602
23603 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23604 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23605 if (!SWIG_IsOK(res1)) {
23606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
23607 }
23608 arg1 = reinterpret_cast< wxDC * >(argp1);
23609 arg2 = obj1;
23610 arg3 = obj2;
23611 arg4 = obj3;
23612 {
23613 PyThreadState* __tstate = wxPyBeginAllowThreads();
23614 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
23615 wxPyEndAllowThreads(__tstate);
23616 if (PyErr_Occurred()) SWIG_fail;
23617 }
23618 resultobj = result;
23619 return resultobj;
23620 fail:
23621 return NULL;
23622 }
23623
23624
23625 SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23626 PyObject *resultobj = 0;
23627 wxDC *arg1 = (wxDC *) 0 ;
23628 PyObject *arg2 = (PyObject *) 0 ;
23629 PyObject *arg3 = (PyObject *) 0 ;
23630 PyObject *arg4 = (PyObject *) 0 ;
23631 PyObject *result = 0 ;
23632 void *argp1 = 0 ;
23633 int res1 = 0 ;
23634 PyObject * obj0 = 0 ;
23635 PyObject * obj1 = 0 ;
23636 PyObject * obj2 = 0 ;
23637 PyObject * obj3 = 0 ;
23638 char * kwnames[] = {
23639 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23640 };
23641
23642 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23643 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23644 if (!SWIG_IsOK(res1)) {
23645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
23646 }
23647 arg1 = reinterpret_cast< wxDC * >(argp1);
23648 arg2 = obj1;
23649 arg3 = obj2;
23650 arg4 = obj3;
23651 {
23652 PyThreadState* __tstate = wxPyBeginAllowThreads();
23653 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
23654 wxPyEndAllowThreads(__tstate);
23655 if (PyErr_Occurred()) SWIG_fail;
23656 }
23657 resultobj = result;
23658 return resultobj;
23659 fail:
23660 return NULL;
23661 }
23662
23663
23664 SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23665 PyObject *resultobj = 0;
23666 wxDC *arg1 = (wxDC *) 0 ;
23667 PyObject *arg2 = (PyObject *) 0 ;
23668 PyObject *arg3 = (PyObject *) 0 ;
23669 PyObject *arg4 = (PyObject *) 0 ;
23670 PyObject *result = 0 ;
23671 void *argp1 = 0 ;
23672 int res1 = 0 ;
23673 PyObject * obj0 = 0 ;
23674 PyObject * obj1 = 0 ;
23675 PyObject * obj2 = 0 ;
23676 PyObject * obj3 = 0 ;
23677 char * kwnames[] = {
23678 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23679 };
23680
23681 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23682 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23683 if (!SWIG_IsOK(res1)) {
23684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
23685 }
23686 arg1 = reinterpret_cast< wxDC * >(argp1);
23687 arg2 = obj1;
23688 arg3 = obj2;
23689 arg4 = obj3;
23690 {
23691 PyThreadState* __tstate = wxPyBeginAllowThreads();
23692 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
23693 wxPyEndAllowThreads(__tstate);
23694 if (PyErr_Occurred()) SWIG_fail;
23695 }
23696 resultobj = result;
23697 return resultobj;
23698 fail:
23699 return NULL;
23700 }
23701
23702
23703 SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23704 PyObject *resultobj = 0;
23705 wxDC *arg1 = (wxDC *) 0 ;
23706 PyObject *arg2 = (PyObject *) 0 ;
23707 PyObject *arg3 = (PyObject *) 0 ;
23708 PyObject *arg4 = (PyObject *) 0 ;
23709 PyObject *result = 0 ;
23710 void *argp1 = 0 ;
23711 int res1 = 0 ;
23712 PyObject * obj0 = 0 ;
23713 PyObject * obj1 = 0 ;
23714 PyObject * obj2 = 0 ;
23715 PyObject * obj3 = 0 ;
23716 char * kwnames[] = {
23717 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23718 };
23719
23720 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23721 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23722 if (!SWIG_IsOK(res1)) {
23723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
23724 }
23725 arg1 = reinterpret_cast< wxDC * >(argp1);
23726 arg2 = obj1;
23727 arg3 = obj2;
23728 arg4 = obj3;
23729 {
23730 PyThreadState* __tstate = wxPyBeginAllowThreads();
23731 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
23732 wxPyEndAllowThreads(__tstate);
23733 if (PyErr_Occurred()) SWIG_fail;
23734 }
23735 resultobj = result;
23736 return resultobj;
23737 fail:
23738 return NULL;
23739 }
23740
23741
23742 SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23743 PyObject *resultobj = 0;
23744 wxDC *arg1 = (wxDC *) 0 ;
23745 PyObject *arg2 = (PyObject *) 0 ;
23746 PyObject *arg3 = (PyObject *) 0 ;
23747 PyObject *arg4 = (PyObject *) 0 ;
23748 PyObject *arg5 = (PyObject *) 0 ;
23749 PyObject *result = 0 ;
23750 void *argp1 = 0 ;
23751 int res1 = 0 ;
23752 PyObject * obj0 = 0 ;
23753 PyObject * obj1 = 0 ;
23754 PyObject * obj2 = 0 ;
23755 PyObject * obj3 = 0 ;
23756 PyObject * obj4 = 0 ;
23757 char * kwnames[] = {
23758 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
23759 };
23760
23761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
23762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23763 if (!SWIG_IsOK(res1)) {
23764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
23765 }
23766 arg1 = reinterpret_cast< wxDC * >(argp1);
23767 arg2 = obj1;
23768 arg3 = obj2;
23769 arg4 = obj3;
23770 arg5 = obj4;
23771 {
23772 PyThreadState* __tstate = wxPyBeginAllowThreads();
23773 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
23774 wxPyEndAllowThreads(__tstate);
23775 if (PyErr_Occurred()) SWIG_fail;
23776 }
23777 resultobj = result;
23778 return resultobj;
23779 fail:
23780 return NULL;
23781 }
23782
23783
23784 SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23785 PyObject *obj;
23786 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23787 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
23788 return SWIG_Py_Void();
23789 }
23790
23791 SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23792 PyObject *resultobj = 0;
23793 wxBitmap const &arg1_defvalue = wxNullBitmap ;
23794 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
23795 wxMemoryDC *result = 0 ;
23796 void *argp1 = 0 ;
23797 int res1 = 0 ;
23798 PyObject * obj0 = 0 ;
23799 char * kwnames[] = {
23800 (char *) "bitmap", NULL
23801 };
23802
23803 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MemoryDC",kwnames,&obj0)) SWIG_fail;
23804 if (obj0) {
23805 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
23806 if (!SWIG_IsOK(res1)) {
23807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap const &""'");
23808 }
23809 if (!argp1) {
23810 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap const &""'");
23811 }
23812 arg1 = reinterpret_cast< wxBitmap * >(argp1);
23813 }
23814 {
23815 if (!wxPyCheckForApp()) SWIG_fail;
23816 PyThreadState* __tstate = wxPyBeginAllowThreads();
23817 result = (wxMemoryDC *)new wxMemoryDC((wxBitmap const &)*arg1);
23818 wxPyEndAllowThreads(__tstate);
23819 if (PyErr_Occurred()) SWIG_fail;
23820 }
23821 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
23822 return resultobj;
23823 fail:
23824 return NULL;
23825 }
23826
23827
23828 SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23829 PyObject *resultobj = 0;
23830 wxDC *arg1 = (wxDC *) 0 ;
23831 wxMemoryDC *result = 0 ;
23832 void *argp1 = 0 ;
23833 int res1 = 0 ;
23834 PyObject * obj0 = 0 ;
23835 char * kwnames[] = {
23836 (char *) "oldDC", NULL
23837 };
23838
23839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
23840 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23841 if (!SWIG_IsOK(res1)) {
23842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
23843 }
23844 arg1 = reinterpret_cast< wxDC * >(argp1);
23845 {
23846 if (!wxPyCheckForApp()) SWIG_fail;
23847 PyThreadState* __tstate = wxPyBeginAllowThreads();
23848 result = (wxMemoryDC *)new wxMemoryDC(arg1);
23849 wxPyEndAllowThreads(__tstate);
23850 if (PyErr_Occurred()) SWIG_fail;
23851 }
23852 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
23853 return resultobj;
23854 fail:
23855 return NULL;
23856 }
23857
23858
23859 SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23860 PyObject *resultobj = 0;
23861 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
23862 wxBitmap *arg2 = 0 ;
23863 void *argp1 = 0 ;
23864 int res1 = 0 ;
23865 void *argp2 = 0 ;
23866 int res2 = 0 ;
23867 PyObject * obj0 = 0 ;
23868 PyObject * obj1 = 0 ;
23869 char * kwnames[] = {
23870 (char *) "self",(char *) "bitmap", NULL
23871 };
23872
23873 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
23874 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
23875 if (!SWIG_IsOK(res1)) {
23876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
23877 }
23878 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
23879 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23880 if (!SWIG_IsOK(res2)) {
23881 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23882 }
23883 if (!argp2) {
23884 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23885 }
23886 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23887 {
23888 PyThreadState* __tstate = wxPyBeginAllowThreads();
23889 (arg1)->SelectObject((wxBitmap const &)*arg2);
23890 wxPyEndAllowThreads(__tstate);
23891 if (PyErr_Occurred()) SWIG_fail;
23892 }
23893 resultobj = SWIG_Py_Void();
23894 return resultobj;
23895 fail:
23896 return NULL;
23897 }
23898
23899
23900 SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23901 PyObject *obj;
23902 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23903 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
23904 return SWIG_Py_Void();
23905 }
23906
23907 SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23908 return SWIG_Python_InitShadowInstance(args);
23909 }
23910
23911 SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23912 PyObject *resultobj = 0;
23913 wxScreenDC *result = 0 ;
23914
23915 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
23916 {
23917 if (!wxPyCheckForApp()) SWIG_fail;
23918 PyThreadState* __tstate = wxPyBeginAllowThreads();
23919 result = (wxScreenDC *)new wxScreenDC();
23920 wxPyEndAllowThreads(__tstate);
23921 if (PyErr_Occurred()) SWIG_fail;
23922 }
23923 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
23924 return resultobj;
23925 fail:
23926 return NULL;
23927 }
23928
23929
23930 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23931 PyObject *resultobj = 0;
23932 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23933 wxWindow *arg2 = (wxWindow *) 0 ;
23934 bool result;
23935 void *argp1 = 0 ;
23936 int res1 = 0 ;
23937 void *argp2 = 0 ;
23938 int res2 = 0 ;
23939 PyObject * obj0 = 0 ;
23940 PyObject * obj1 = 0 ;
23941 char * kwnames[] = {
23942 (char *) "self",(char *) "window", NULL
23943 };
23944
23945 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
23946 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23947 if (!SWIG_IsOK(res1)) {
23948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23949 }
23950 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23951 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
23952 if (!SWIG_IsOK(res2)) {
23953 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
23954 }
23955 arg2 = reinterpret_cast< wxWindow * >(argp2);
23956 {
23957 PyThreadState* __tstate = wxPyBeginAllowThreads();
23958 result = (bool)(arg1)->StartDrawingOnTop(arg2);
23959 wxPyEndAllowThreads(__tstate);
23960 if (PyErr_Occurred()) SWIG_fail;
23961 }
23962 {
23963 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23964 }
23965 return resultobj;
23966 fail:
23967 return NULL;
23968 }
23969
23970
23971 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23972 PyObject *resultobj = 0;
23973 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23974 wxRect *arg2 = (wxRect *) NULL ;
23975 bool result;
23976 void *argp1 = 0 ;
23977 int res1 = 0 ;
23978 void *argp2 = 0 ;
23979 int res2 = 0 ;
23980 PyObject * obj0 = 0 ;
23981 PyObject * obj1 = 0 ;
23982 char * kwnames[] = {
23983 (char *) "self",(char *) "rect", NULL
23984 };
23985
23986 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
23987 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23988 if (!SWIG_IsOK(res1)) {
23989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23990 }
23991 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23992 if (obj1) {
23993 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
23994 if (!SWIG_IsOK(res2)) {
23995 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
23996 }
23997 arg2 = reinterpret_cast< wxRect * >(argp2);
23998 }
23999 {
24000 PyThreadState* __tstate = wxPyBeginAllowThreads();
24001 result = (bool)(arg1)->StartDrawingOnTop(arg2);
24002 wxPyEndAllowThreads(__tstate);
24003 if (PyErr_Occurred()) SWIG_fail;
24004 }
24005 {
24006 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24007 }
24008 return resultobj;
24009 fail:
24010 return NULL;
24011 }
24012
24013
24014 SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24015 PyObject *resultobj = 0;
24016 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24017 bool result;
24018 void *argp1 = 0 ;
24019 int res1 = 0 ;
24020 PyObject *swig_obj[1] ;
24021
24022 if (!args) SWIG_fail;
24023 swig_obj[0] = args;
24024 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24025 if (!SWIG_IsOK(res1)) {
24026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24027 }
24028 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24029 {
24030 PyThreadState* __tstate = wxPyBeginAllowThreads();
24031 result = (bool)(arg1)->EndDrawingOnTop();
24032 wxPyEndAllowThreads(__tstate);
24033 if (PyErr_Occurred()) SWIG_fail;
24034 }
24035 {
24036 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24037 }
24038 return resultobj;
24039 fail:
24040 return NULL;
24041 }
24042
24043
24044 SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24045 PyObject *obj;
24046 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24047 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
24048 return SWIG_Py_Void();
24049 }
24050
24051 SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24052 return SWIG_Python_InitShadowInstance(args);
24053 }
24054
24055 SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24056 PyObject *resultobj = 0;
24057 wxWindow *arg1 = (wxWindow *) 0 ;
24058 wxWindowDC *result = 0 ;
24059 void *argp1 = 0 ;
24060 int res1 = 0 ;
24061 PyObject * obj0 = 0 ;
24062 char * kwnames[] = {
24063 (char *) "win", NULL
24064 };
24065
24066 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
24067 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24068 if (!SWIG_IsOK(res1)) {
24069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24070 }
24071 arg1 = reinterpret_cast< wxWindow * >(argp1);
24072 {
24073 if (!wxPyCheckForApp()) SWIG_fail;
24074 PyThreadState* __tstate = wxPyBeginAllowThreads();
24075 result = (wxWindowDC *)new wxWindowDC(arg1);
24076 wxPyEndAllowThreads(__tstate);
24077 if (PyErr_Occurred()) SWIG_fail;
24078 }
24079 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
24080 return resultobj;
24081 fail:
24082 return NULL;
24083 }
24084
24085
24086 SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24087 PyObject *obj;
24088 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24089 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
24090 return SWIG_Py_Void();
24091 }
24092
24093 SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24094 return SWIG_Python_InitShadowInstance(args);
24095 }
24096
24097 SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24098 PyObject *resultobj = 0;
24099 wxWindow *arg1 = (wxWindow *) 0 ;
24100 wxClientDC *result = 0 ;
24101 void *argp1 = 0 ;
24102 int res1 = 0 ;
24103 PyObject * obj0 = 0 ;
24104 char * kwnames[] = {
24105 (char *) "win", NULL
24106 };
24107
24108 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
24109 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24110 if (!SWIG_IsOK(res1)) {
24111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24112 }
24113 arg1 = reinterpret_cast< wxWindow * >(argp1);
24114 {
24115 if (!wxPyCheckForApp()) SWIG_fail;
24116 PyThreadState* __tstate = wxPyBeginAllowThreads();
24117 result = (wxClientDC *)new wxClientDC(arg1);
24118 wxPyEndAllowThreads(__tstate);
24119 if (PyErr_Occurred()) SWIG_fail;
24120 }
24121 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
24122 return resultobj;
24123 fail:
24124 return NULL;
24125 }
24126
24127
24128 SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24129 PyObject *obj;
24130 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24131 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
24132 return SWIG_Py_Void();
24133 }
24134
24135 SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24136 return SWIG_Python_InitShadowInstance(args);
24137 }
24138
24139 SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24140 PyObject *resultobj = 0;
24141 wxWindow *arg1 = (wxWindow *) 0 ;
24142 wxPaintDC *result = 0 ;
24143 void *argp1 = 0 ;
24144 int res1 = 0 ;
24145 PyObject * obj0 = 0 ;
24146 char * kwnames[] = {
24147 (char *) "win", NULL
24148 };
24149
24150 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
24151 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24152 if (!SWIG_IsOK(res1)) {
24153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24154 }
24155 arg1 = reinterpret_cast< wxWindow * >(argp1);
24156 {
24157 if (!wxPyCheckForApp()) SWIG_fail;
24158 PyThreadState* __tstate = wxPyBeginAllowThreads();
24159 result = (wxPaintDC *)new wxPaintDC(arg1);
24160 wxPyEndAllowThreads(__tstate);
24161 if (PyErr_Occurred()) SWIG_fail;
24162 }
24163 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
24164 return resultobj;
24165 fail:
24166 return NULL;
24167 }
24168
24169
24170 SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24171 PyObject *obj;
24172 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24173 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
24174 return SWIG_Py_Void();
24175 }
24176
24177 SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24178 return SWIG_Python_InitShadowInstance(args);
24179 }
24180
24181 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24182 PyObject *resultobj = 0;
24183 wxDC *arg1 = (wxDC *) 0 ;
24184 wxBitmap const &arg2_defvalue = wxNullBitmap ;
24185 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
24186 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24187 wxBufferedDC *result = 0 ;
24188 void *argp1 = 0 ;
24189 int res1 = 0 ;
24190 void *argp2 = 0 ;
24191 int res2 = 0 ;
24192 int val3 ;
24193 int ecode3 = 0 ;
24194
24195 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
24196 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24197 if (!SWIG_IsOK(res1)) {
24198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
24199 }
24200 arg1 = reinterpret_cast< wxDC * >(argp1);
24201 if (swig_obj[1]) {
24202 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
24203 if (!SWIG_IsOK(res2)) {
24204 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24205 }
24206 if (!argp2) {
24207 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24208 }
24209 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24210 }
24211 if (swig_obj[2]) {
24212 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24213 if (!SWIG_IsOK(ecode3)) {
24214 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
24215 }
24216 arg3 = static_cast< int >(val3);
24217 }
24218 {
24219 if (!wxPyCheckForApp()) SWIG_fail;
24220 PyThreadState* __tstate = wxPyBeginAllowThreads();
24221 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2,arg3);
24222 wxPyEndAllowThreads(__tstate);
24223 if (PyErr_Occurred()) SWIG_fail;
24224 }
24225 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
24226 return resultobj;
24227 fail:
24228 return NULL;
24229 }
24230
24231
24232 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24233 PyObject *resultobj = 0;
24234 wxDC *arg1 = (wxDC *) 0 ;
24235 wxSize *arg2 = 0 ;
24236 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24237 wxBufferedDC *result = 0 ;
24238 void *argp1 = 0 ;
24239 int res1 = 0 ;
24240 wxSize temp2 ;
24241 int val3 ;
24242 int ecode3 = 0 ;
24243
24244 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
24245 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24246 if (!SWIG_IsOK(res1)) {
24247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
24248 }
24249 arg1 = reinterpret_cast< wxDC * >(argp1);
24250 {
24251 arg2 = &temp2;
24252 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
24253 }
24254 if (swig_obj[2]) {
24255 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24256 if (!SWIG_IsOK(ecode3)) {
24257 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
24258 }
24259 arg3 = static_cast< int >(val3);
24260 }
24261 {
24262 if (!wxPyCheckForApp()) SWIG_fail;
24263 PyThreadState* __tstate = wxPyBeginAllowThreads();
24264 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
24265 wxPyEndAllowThreads(__tstate);
24266 if (PyErr_Occurred()) SWIG_fail;
24267 }
24268 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
24269 return resultobj;
24270 fail:
24271 return NULL;
24272 }
24273
24274
24275 SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
24276 int argc;
24277 PyObject *argv[4];
24278
24279 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
24280 --argc;
24281 if ((argc >= 1) && (argc <= 3)) {
24282 int _v = 0;
24283 if (argc > 1) {
24284 {
24285 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxBitmap, 0);
24286 _v = SWIG_CheckState(res);
24287 }
24288 if (!_v) goto check_1;
24289 }
24290 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
24291 }
24292 check_1:
24293
24294 if ((argc >= 2) && (argc <= 3)) {
24295 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
24296 }
24297
24298 fail:
24299 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
24300 return NULL;
24301 }
24302
24303
24304 SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24305 PyObject *resultobj = 0;
24306 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24307 void *argp1 = 0 ;
24308 int res1 = 0 ;
24309 PyObject *swig_obj[1] ;
24310
24311 if (!args) SWIG_fail;
24312 swig_obj[0] = args;
24313 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
24314 if (!SWIG_IsOK(res1)) {
24315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24316 }
24317 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24318 {
24319 PyThreadState* __tstate = wxPyBeginAllowThreads();
24320 delete arg1;
24321
24322 wxPyEndAllowThreads(__tstate);
24323 if (PyErr_Occurred()) SWIG_fail;
24324 }
24325 resultobj = SWIG_Py_Void();
24326 return resultobj;
24327 fail:
24328 return NULL;
24329 }
24330
24331
24332 SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24333 PyObject *resultobj = 0;
24334 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24335 void *argp1 = 0 ;
24336 int res1 = 0 ;
24337 PyObject *swig_obj[1] ;
24338
24339 if (!args) SWIG_fail;
24340 swig_obj[0] = args;
24341 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
24342 if (!SWIG_IsOK(res1)) {
24343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24344 }
24345 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24346 {
24347 PyThreadState* __tstate = wxPyBeginAllowThreads();
24348 (arg1)->UnMask();
24349 wxPyEndAllowThreads(__tstate);
24350 if (PyErr_Occurred()) SWIG_fail;
24351 }
24352 resultobj = SWIG_Py_Void();
24353 return resultobj;
24354 fail:
24355 return NULL;
24356 }
24357
24358
24359 SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24360 PyObject *obj;
24361 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24362 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
24363 return SWIG_Py_Void();
24364 }
24365
24366 SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24367 return SWIG_Python_InitShadowInstance(args);
24368 }
24369
24370 SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24371 PyObject *resultobj = 0;
24372 wxWindow *arg1 = (wxWindow *) 0 ;
24373 wxBitmap const &arg2_defvalue = wxNullBitmap ;
24374 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
24375 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24376 wxBufferedPaintDC *result = 0 ;
24377 void *argp1 = 0 ;
24378 int res1 = 0 ;
24379 void *argp2 = 0 ;
24380 int res2 = 0 ;
24381 int val3 ;
24382 int ecode3 = 0 ;
24383 PyObject * obj0 = 0 ;
24384 PyObject * obj1 = 0 ;
24385 PyObject * obj2 = 0 ;
24386 char * kwnames[] = {
24387 (char *) "window",(char *) "buffer",(char *) "style", NULL
24388 };
24389
24390 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24391 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24392 if (!SWIG_IsOK(res1)) {
24393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24394 }
24395 arg1 = reinterpret_cast< wxWindow * >(argp1);
24396 if (obj1) {
24397 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
24398 if (!SWIG_IsOK(res2)) {
24399 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24400 }
24401 if (!argp2) {
24402 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24403 }
24404 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24405 }
24406 if (obj2) {
24407 ecode3 = SWIG_AsVal_int(obj2, &val3);
24408 if (!SWIG_IsOK(ecode3)) {
24409 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
24410 }
24411 arg3 = static_cast< int >(val3);
24412 }
24413 {
24414 if (!wxPyCheckForApp()) SWIG_fail;
24415 PyThreadState* __tstate = wxPyBeginAllowThreads();
24416 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2,arg3);
24417 wxPyEndAllowThreads(__tstate);
24418 if (PyErr_Occurred()) SWIG_fail;
24419 }
24420 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
24421 return resultobj;
24422 fail:
24423 return NULL;
24424 }
24425
24426
24427 SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24428 PyObject *obj;
24429 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24430 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
24431 return SWIG_Py_Void();
24432 }
24433
24434 SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24435 return SWIG_Python_InitShadowInstance(args);
24436 }
24437
24438 SWIGINTERN PyObject *_wrap_new_AutoBufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24439 PyObject *resultobj = 0;
24440 wxWindow *arg1 = (wxWindow *) 0 ;
24441 wxAutoBufferedPaintDC *result = 0 ;
24442 void *argp1 = 0 ;
24443 int res1 = 0 ;
24444 PyObject * obj0 = 0 ;
24445 char * kwnames[] = {
24446 (char *) "win", NULL
24447 };
24448
24449 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AutoBufferedPaintDC",kwnames,&obj0)) SWIG_fail;
24450 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24451 if (!SWIG_IsOK(res1)) {
24452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AutoBufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24453 }
24454 arg1 = reinterpret_cast< wxWindow * >(argp1);
24455 {
24456 PyThreadState* __tstate = wxPyBeginAllowThreads();
24457 result = (wxAutoBufferedPaintDC *)new wxAutoBufferedPaintDC(arg1);
24458 wxPyEndAllowThreads(__tstate);
24459 if (PyErr_Occurred()) SWIG_fail;
24460 }
24461 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_POINTER_NEW | 0 );
24462 return resultobj;
24463 fail:
24464 return NULL;
24465 }
24466
24467
24468 SWIGINTERN PyObject *AutoBufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24469 PyObject *obj;
24470 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24471 SWIG_TypeNewClientData(SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_NewClientData(obj));
24472 return SWIG_Py_Void();
24473 }
24474
24475 SWIGINTERN PyObject *AutoBufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24476 return SWIG_Python_InitShadowInstance(args);
24477 }
24478
24479 SWIGINTERN PyObject *_wrap_AutoBufferedPaintDCFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24480 PyObject *resultobj = 0;
24481 wxWindow *arg1 = (wxWindow *) 0 ;
24482 wxDC *result = 0 ;
24483 void *argp1 = 0 ;
24484 int res1 = 0 ;
24485 PyObject * obj0 = 0 ;
24486 char * kwnames[] = {
24487 (char *) "window", NULL
24488 };
24489
24490 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AutoBufferedPaintDCFactory",kwnames,&obj0)) SWIG_fail;
24491 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24492 if (!SWIG_IsOK(res1)) {
24493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AutoBufferedPaintDCFactory" "', expected argument " "1"" of type '" "wxWindow *""'");
24494 }
24495 arg1 = reinterpret_cast< wxWindow * >(argp1);
24496 {
24497 PyThreadState* __tstate = wxPyBeginAllowThreads();
24498 result = (wxDC *)wxAutoBufferedPaintDCFactory(arg1);
24499 wxPyEndAllowThreads(__tstate);
24500 if (PyErr_Occurred()) SWIG_fail;
24501 }
24502 {
24503 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN);
24504 }
24505 return resultobj;
24506 fail:
24507 return NULL;
24508 }
24509
24510
24511 SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24512 PyObject *resultobj = 0;
24513 wxDC *arg1 = 0 ;
24514 bool arg2 ;
24515 wxMirrorDC *result = 0 ;
24516 void *argp1 = 0 ;
24517 int res1 = 0 ;
24518 bool val2 ;
24519 int ecode2 = 0 ;
24520 PyObject * obj0 = 0 ;
24521 PyObject * obj1 = 0 ;
24522 char * kwnames[] = {
24523 (char *) "dc",(char *) "mirror", NULL
24524 };
24525
24526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
24527 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24528 if (!SWIG_IsOK(res1)) {
24529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
24530 }
24531 if (!argp1) {
24532 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
24533 }
24534 arg1 = reinterpret_cast< wxDC * >(argp1);
24535 ecode2 = SWIG_AsVal_bool(obj1, &val2);
24536 if (!SWIG_IsOK(ecode2)) {
24537 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
24538 }
24539 arg2 = static_cast< bool >(val2);
24540 {
24541 if (!wxPyCheckForApp()) SWIG_fail;
24542 PyThreadState* __tstate = wxPyBeginAllowThreads();
24543 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
24544 wxPyEndAllowThreads(__tstate);
24545 if (PyErr_Occurred()) SWIG_fail;
24546 }
24547 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
24548 return resultobj;
24549 fail:
24550 return NULL;
24551 }
24552
24553
24554 SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24555 PyObject *obj;
24556 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24557 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
24558 return SWIG_Py_Void();
24559 }
24560
24561 SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24562 return SWIG_Python_InitShadowInstance(args);
24563 }
24564
24565 SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24566 PyObject *resultobj = 0;
24567 wxPrintData *arg1 = 0 ;
24568 wxPostScriptDC *result = 0 ;
24569 void *argp1 = 0 ;
24570 int res1 = 0 ;
24571 PyObject * obj0 = 0 ;
24572 char * kwnames[] = {
24573 (char *) "printData", NULL
24574 };
24575
24576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
24577 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
24578 if (!SWIG_IsOK(res1)) {
24579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24580 }
24581 if (!argp1) {
24582 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24583 }
24584 arg1 = reinterpret_cast< wxPrintData * >(argp1);
24585 {
24586 if (!wxPyCheckForApp()) SWIG_fail;
24587 PyThreadState* __tstate = wxPyBeginAllowThreads();
24588 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
24589 wxPyEndAllowThreads(__tstate);
24590 if (PyErr_Occurred()) SWIG_fail;
24591 }
24592 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
24593 return resultobj;
24594 fail:
24595 return NULL;
24596 }
24597
24598
24599 SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24600 PyObject *resultobj = 0;
24601 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
24602 wxPrintData *result = 0 ;
24603 void *argp1 = 0 ;
24604 int res1 = 0 ;
24605 PyObject *swig_obj[1] ;
24606
24607 if (!args) SWIG_fail;
24608 swig_obj[0] = args;
24609 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
24610 if (!SWIG_IsOK(res1)) {
24611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
24612 }
24613 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
24614 {
24615 PyThreadState* __tstate = wxPyBeginAllowThreads();
24616 {
24617 wxPrintData &_result_ref = (arg1)->GetPrintData();
24618 result = (wxPrintData *) &_result_ref;
24619 }
24620 wxPyEndAllowThreads(__tstate);
24621 if (PyErr_Occurred()) SWIG_fail;
24622 }
24623 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
24624 return resultobj;
24625 fail:
24626 return NULL;
24627 }
24628
24629
24630 SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24631 PyObject *resultobj = 0;
24632 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
24633 wxPrintData *arg2 = 0 ;
24634 void *argp1 = 0 ;
24635 int res1 = 0 ;
24636 void *argp2 = 0 ;
24637 int res2 = 0 ;
24638 PyObject * obj0 = 0 ;
24639 PyObject * obj1 = 0 ;
24640 char * kwnames[] = {
24641 (char *) "self",(char *) "data", NULL
24642 };
24643
24644 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
24645 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
24646 if (!SWIG_IsOK(res1)) {
24647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
24648 }
24649 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
24650 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
24651 if (!SWIG_IsOK(res2)) {
24652 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
24653 }
24654 if (!argp2) {
24655 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
24656 }
24657 arg2 = reinterpret_cast< wxPrintData * >(argp2);
24658 {
24659 PyThreadState* __tstate = wxPyBeginAllowThreads();
24660 (arg1)->SetPrintData((wxPrintData const &)*arg2);
24661 wxPyEndAllowThreads(__tstate);
24662 if (PyErr_Occurred()) SWIG_fail;
24663 }
24664 resultobj = SWIG_Py_Void();
24665 return resultobj;
24666 fail:
24667 return NULL;
24668 }
24669
24670
24671 SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24672 PyObject *resultobj = 0;
24673 int arg1 ;
24674 int val1 ;
24675 int ecode1 = 0 ;
24676 PyObject * obj0 = 0 ;
24677 char * kwnames[] = {
24678 (char *) "ppi", NULL
24679 };
24680
24681 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
24682 ecode1 = SWIG_AsVal_int(obj0, &val1);
24683 if (!SWIG_IsOK(ecode1)) {
24684 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
24685 }
24686 arg1 = static_cast< int >(val1);
24687 {
24688 PyThreadState* __tstate = wxPyBeginAllowThreads();
24689 wxPostScriptDC::SetResolution(arg1);
24690 wxPyEndAllowThreads(__tstate);
24691 if (PyErr_Occurred()) SWIG_fail;
24692 }
24693 resultobj = SWIG_Py_Void();
24694 return resultobj;
24695 fail:
24696 return NULL;
24697 }
24698
24699
24700 SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24701 PyObject *resultobj = 0;
24702 int result;
24703
24704 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
24705 {
24706 PyThreadState* __tstate = wxPyBeginAllowThreads();
24707 result = (int)wxPostScriptDC::GetResolution();
24708 wxPyEndAllowThreads(__tstate);
24709 if (PyErr_Occurred()) SWIG_fail;
24710 }
24711 resultobj = SWIG_From_int(static_cast< int >(result));
24712 return resultobj;
24713 fail:
24714 return NULL;
24715 }
24716
24717
24718 SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24719 PyObject *obj;
24720 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24721 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
24722 return SWIG_Py_Void();
24723 }
24724
24725 SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24726 return SWIG_Python_InitShadowInstance(args);
24727 }
24728
24729 SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24730 PyObject *resultobj = 0;
24731 wxString const &arg1_defvalue = wxPyEmptyString ;
24732 wxString *arg1 = (wxString *) &arg1_defvalue ;
24733 wxMetaFile *result = 0 ;
24734 bool temp1 = false ;
24735 PyObject * obj0 = 0 ;
24736 char * kwnames[] = {
24737 (char *) "filename", NULL
24738 };
24739
24740 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
24741 if (obj0) {
24742 {
24743 arg1 = wxString_in_helper(obj0);
24744 if (arg1 == NULL) SWIG_fail;
24745 temp1 = true;
24746 }
24747 }
24748 {
24749 if (!wxPyCheckForApp()) SWIG_fail;
24750 PyThreadState* __tstate = wxPyBeginAllowThreads();
24751 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
24752 wxPyEndAllowThreads(__tstate);
24753 if (PyErr_Occurred()) SWIG_fail;
24754 }
24755 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
24756 {
24757 if (temp1)
24758 delete arg1;
24759 }
24760 return resultobj;
24761 fail:
24762 {
24763 if (temp1)
24764 delete arg1;
24765 }
24766 return NULL;
24767 }
24768
24769
24770 SWIGINTERN PyObject *_wrap_delete_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24771 PyObject *resultobj = 0;
24772 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24773 void *argp1 = 0 ;
24774 int res1 = 0 ;
24775 PyObject *swig_obj[1] ;
24776
24777 if (!args) SWIG_fail;
24778 swig_obj[0] = args;
24779 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, SWIG_POINTER_DISOWN | 0 );
24780 if (!SWIG_IsOK(res1)) {
24781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MetaFile" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24782 }
24783 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24784 {
24785 PyThreadState* __tstate = wxPyBeginAllowThreads();
24786 delete arg1;
24787
24788 wxPyEndAllowThreads(__tstate);
24789 if (PyErr_Occurred()) SWIG_fail;
24790 }
24791 resultobj = SWIG_Py_Void();
24792 return resultobj;
24793 fail:
24794 return NULL;
24795 }
24796
24797
24798 SWIGINTERN PyObject *_wrap_MetaFile_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24799 PyObject *resultobj = 0;
24800 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24801 bool result;
24802 void *argp1 = 0 ;
24803 int res1 = 0 ;
24804 PyObject *swig_obj[1] ;
24805
24806 if (!args) SWIG_fail;
24807 swig_obj[0] = args;
24808 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24809 if (!SWIG_IsOK(res1)) {
24810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_IsOk" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24811 }
24812 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24813 {
24814 PyThreadState* __tstate = wxPyBeginAllowThreads();
24815 result = (bool)(arg1)->IsOk();
24816 wxPyEndAllowThreads(__tstate);
24817 if (PyErr_Occurred()) SWIG_fail;
24818 }
24819 {
24820 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24821 }
24822 return resultobj;
24823 fail:
24824 return NULL;
24825 }
24826
24827
24828 SWIGINTERN PyObject *_wrap_MetaFile_SetClipboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24829 PyObject *resultobj = 0;
24830 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24831 int arg2 = (int) 0 ;
24832 int arg3 = (int) 0 ;
24833 bool result;
24834 void *argp1 = 0 ;
24835 int res1 = 0 ;
24836 int val2 ;
24837 int ecode2 = 0 ;
24838 int val3 ;
24839 int ecode3 = 0 ;
24840 PyObject * obj0 = 0 ;
24841 PyObject * obj1 = 0 ;
24842 PyObject * obj2 = 0 ;
24843 char * kwnames[] = {
24844 (char *) "self",(char *) "width",(char *) "height", NULL
24845 };
24846
24847 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24848 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24849 if (!SWIG_IsOK(res1)) {
24850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_SetClipboard" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24851 }
24852 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24853 if (obj1) {
24854 ecode2 = SWIG_AsVal_int(obj1, &val2);
24855 if (!SWIG_IsOK(ecode2)) {
24856 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MetaFile_SetClipboard" "', expected argument " "2"" of type '" "int""'");
24857 }
24858 arg2 = static_cast< int >(val2);
24859 }
24860 if (obj2) {
24861 ecode3 = SWIG_AsVal_int(obj2, &val3);
24862 if (!SWIG_IsOK(ecode3)) {
24863 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MetaFile_SetClipboard" "', expected argument " "3"" of type '" "int""'");
24864 }
24865 arg3 = static_cast< int >(val3);
24866 }
24867 {
24868 PyThreadState* __tstate = wxPyBeginAllowThreads();
24869 result = (bool)(arg1)->SetClipboard(arg2,arg3);
24870 wxPyEndAllowThreads(__tstate);
24871 if (PyErr_Occurred()) SWIG_fail;
24872 }
24873 {
24874 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24875 }
24876 return resultobj;
24877 fail:
24878 return NULL;
24879 }
24880
24881
24882 SWIGINTERN PyObject *_wrap_MetaFile_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24883 PyObject *resultobj = 0;
24884 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24885 wxSize result;
24886 void *argp1 = 0 ;
24887 int res1 = 0 ;
24888 PyObject *swig_obj[1] ;
24889
24890 if (!args) SWIG_fail;
24891 swig_obj[0] = args;
24892 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24893 if (!SWIG_IsOK(res1)) {
24894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetSize" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24895 }
24896 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24897 {
24898 PyThreadState* __tstate = wxPyBeginAllowThreads();
24899 result = (arg1)->GetSize();
24900 wxPyEndAllowThreads(__tstate);
24901 if (PyErr_Occurred()) SWIG_fail;
24902 }
24903 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
24904 return resultobj;
24905 fail:
24906 return NULL;
24907 }
24908
24909
24910 SWIGINTERN PyObject *_wrap_MetaFile_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24911 PyObject *resultobj = 0;
24912 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24913 int result;
24914 void *argp1 = 0 ;
24915 int res1 = 0 ;
24916 PyObject *swig_obj[1] ;
24917
24918 if (!args) SWIG_fail;
24919 swig_obj[0] = args;
24920 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24921 if (!SWIG_IsOK(res1)) {
24922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetWidth" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24923 }
24924 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24925 {
24926 PyThreadState* __tstate = wxPyBeginAllowThreads();
24927 result = (int)(arg1)->GetWidth();
24928 wxPyEndAllowThreads(__tstate);
24929 if (PyErr_Occurred()) SWIG_fail;
24930 }
24931 resultobj = SWIG_From_int(static_cast< int >(result));
24932 return resultobj;
24933 fail:
24934 return NULL;
24935 }
24936
24937
24938 SWIGINTERN PyObject *_wrap_MetaFile_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24939 PyObject *resultobj = 0;
24940 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24941 int result;
24942 void *argp1 = 0 ;
24943 int res1 = 0 ;
24944 PyObject *swig_obj[1] ;
24945
24946 if (!args) SWIG_fail;
24947 swig_obj[0] = args;
24948 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24949 if (!SWIG_IsOK(res1)) {
24950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetHeight" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24951 }
24952 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24953 {
24954 PyThreadState* __tstate = wxPyBeginAllowThreads();
24955 result = (int)(arg1)->GetHeight();
24956 wxPyEndAllowThreads(__tstate);
24957 if (PyErr_Occurred()) SWIG_fail;
24958 }
24959 resultobj = SWIG_From_int(static_cast< int >(result));
24960 return resultobj;
24961 fail:
24962 return NULL;
24963 }
24964
24965
24966 SWIGINTERN PyObject *_wrap_MetaFile_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24967 PyObject *resultobj = 0;
24968 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24969 wxString *result = 0 ;
24970 void *argp1 = 0 ;
24971 int res1 = 0 ;
24972 PyObject *swig_obj[1] ;
24973
24974 if (!args) SWIG_fail;
24975 swig_obj[0] = args;
24976 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24977 if (!SWIG_IsOK(res1)) {
24978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetFileName" "', expected argument " "1"" of type '" "wxMetaFile const *""'");
24979 }
24980 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24981 {
24982 PyThreadState* __tstate = wxPyBeginAllowThreads();
24983 {
24984 wxString const &_result_ref = ((wxMetaFile const *)arg1)->GetFileName();
24985 result = (wxString *) &_result_ref;
24986 }
24987 wxPyEndAllowThreads(__tstate);
24988 if (PyErr_Occurred()) SWIG_fail;
24989 }
24990 {
24991 #if wxUSE_UNICODE
24992 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
24993 #else
24994 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
24995 #endif
24996 }
24997 return resultobj;
24998 fail:
24999 return NULL;
25000 }
25001
25002
25003 SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25004 PyObject *obj;
25005 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25006 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
25007 return SWIG_Py_Void();
25008 }
25009
25010 SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25011 return SWIG_Python_InitShadowInstance(args);
25012 }
25013
25014 SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25015 PyObject *resultobj = 0;
25016 wxString const &arg1_defvalue = wxPyEmptyString ;
25017 wxString *arg1 = (wxString *) &arg1_defvalue ;
25018 int arg2 = (int) 0 ;
25019 int arg3 = (int) 0 ;
25020 wxString const &arg4_defvalue = wxPyEmptyString ;
25021 wxString *arg4 = (wxString *) &arg4_defvalue ;
25022 wxMetaFileDC *result = 0 ;
25023 bool temp1 = false ;
25024 int val2 ;
25025 int ecode2 = 0 ;
25026 int val3 ;
25027 int ecode3 = 0 ;
25028 bool temp4 = false ;
25029 PyObject * obj0 = 0 ;
25030 PyObject * obj1 = 0 ;
25031 PyObject * obj2 = 0 ;
25032 PyObject * obj3 = 0 ;
25033 char * kwnames[] = {
25034 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
25035 };
25036
25037 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25038 if (obj0) {
25039 {
25040 arg1 = wxString_in_helper(obj0);
25041 if (arg1 == NULL) SWIG_fail;
25042 temp1 = true;
25043 }
25044 }
25045 if (obj1) {
25046 ecode2 = SWIG_AsVal_int(obj1, &val2);
25047 if (!SWIG_IsOK(ecode2)) {
25048 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
25049 }
25050 arg2 = static_cast< int >(val2);
25051 }
25052 if (obj2) {
25053 ecode3 = SWIG_AsVal_int(obj2, &val3);
25054 if (!SWIG_IsOK(ecode3)) {
25055 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
25056 }
25057 arg3 = static_cast< int >(val3);
25058 }
25059 if (obj3) {
25060 {
25061 arg4 = wxString_in_helper(obj3);
25062 if (arg4 == NULL) SWIG_fail;
25063 temp4 = true;
25064 }
25065 }
25066 {
25067 if (!wxPyCheckForApp()) SWIG_fail;
25068 PyThreadState* __tstate = wxPyBeginAllowThreads();
25069 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
25070 wxPyEndAllowThreads(__tstate);
25071 if (PyErr_Occurred()) SWIG_fail;
25072 }
25073 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
25074 {
25075 if (temp1)
25076 delete arg1;
25077 }
25078 {
25079 if (temp4)
25080 delete arg4;
25081 }
25082 return resultobj;
25083 fail:
25084 {
25085 if (temp1)
25086 delete arg1;
25087 }
25088 {
25089 if (temp4)
25090 delete arg4;
25091 }
25092 return NULL;
25093 }
25094
25095
25096 SWIGINTERN PyObject *_wrap_MetaFileDC_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25097 PyObject *resultobj = 0;
25098 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
25099 wxMetaFile *result = 0 ;
25100 void *argp1 = 0 ;
25101 int res1 = 0 ;
25102 PyObject *swig_obj[1] ;
25103
25104 if (!args) SWIG_fail;
25105 swig_obj[0] = args;
25106 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFileDC, 0 | 0 );
25107 if (!SWIG_IsOK(res1)) {
25108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFileDC_Close" "', expected argument " "1"" of type '" "wxMetaFileDC *""'");
25109 }
25110 arg1 = reinterpret_cast< wxMetaFileDC * >(argp1);
25111 {
25112 PyThreadState* __tstate = wxPyBeginAllowThreads();
25113 result = (wxMetaFile *)(arg1)->Close();
25114 wxPyEndAllowThreads(__tstate);
25115 if (PyErr_Occurred()) SWIG_fail;
25116 }
25117 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, 0 | 0 );
25118 return resultobj;
25119 fail:
25120 return NULL;
25121 }
25122
25123
25124 SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25125 PyObject *obj;
25126 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25127 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
25128 return SWIG_Py_Void();
25129 }
25130
25131 SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25132 return SWIG_Python_InitShadowInstance(args);
25133 }
25134
25135 SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25136 PyObject *resultobj = 0;
25137 wxPrintData *arg1 = 0 ;
25138 wxPrinterDC *result = 0 ;
25139 void *argp1 = 0 ;
25140 int res1 = 0 ;
25141 PyObject * obj0 = 0 ;
25142 char * kwnames[] = {
25143 (char *) "printData", NULL
25144 };
25145
25146 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
25147 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
25148 if (!SWIG_IsOK(res1)) {
25149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25150 }
25151 if (!argp1) {
25152 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25153 }
25154 arg1 = reinterpret_cast< wxPrintData * >(argp1);
25155 {
25156 if (!wxPyCheckForApp()) SWIG_fail;
25157 PyThreadState* __tstate = wxPyBeginAllowThreads();
25158 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
25159 wxPyEndAllowThreads(__tstate);
25160 if (PyErr_Occurred()) SWIG_fail;
25161 }
25162 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
25163 return resultobj;
25164 fail:
25165 return NULL;
25166 }
25167
25168
25169 SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25170 PyObject *obj;
25171 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25172 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
25173 return SWIG_Py_Void();
25174 }
25175
25176 SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25177 return SWIG_Python_InitShadowInstance(args);
25178 }
25179
25180 SWIGINTERN PyObject *_wrap_delete_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25181 PyObject *resultobj = 0;
25182 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25183 void *argp1 = 0 ;
25184 int res1 = 0 ;
25185 PyObject *swig_obj[1] ;
25186
25187 if (!args) SWIG_fail;
25188 swig_obj[0] = args;
25189 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_DISOWN | 0 );
25190 if (!SWIG_IsOK(res1)) {
25191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25192 }
25193 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25194 {
25195 delete arg1;
25196
25197 if (PyErr_Occurred()) SWIG_fail;
25198 }
25199 resultobj = SWIG_Py_Void();
25200 return resultobj;
25201 fail:
25202 return NULL;
25203 }
25204
25205
25206 SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25207 PyObject *resultobj = 0;
25208 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25209 wxDouble arg2 ;
25210 wxDouble arg3 ;
25211 void *argp1 = 0 ;
25212 int res1 = 0 ;
25213 double val2 ;
25214 int ecode2 = 0 ;
25215 double val3 ;
25216 int ecode3 = 0 ;
25217 PyObject * obj0 = 0 ;
25218 PyObject * obj1 = 0 ;
25219 PyObject * obj2 = 0 ;
25220 char * kwnames[] = {
25221 (char *) "self",(char *) "x",(char *) "y", NULL
25222 };
25223
25224 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsPath_MoveToPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25225 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25226 if (!SWIG_IsOK(res1)) {
25227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25228 }
25229 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25230 ecode2 = SWIG_AsVal_double(obj1, &val2);
25231 if (!SWIG_IsOK(ecode2)) {
25232 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
25233 }
25234 arg2 = static_cast< wxDouble >(val2);
25235 ecode3 = SWIG_AsVal_double(obj2, &val3);
25236 if (!SWIG_IsOK(ecode3)) {
25237 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
25238 }
25239 arg3 = static_cast< wxDouble >(val3);
25240 {
25241 (arg1)->MoveToPoint(arg2,arg3);
25242 if (PyErr_Occurred()) SWIG_fail;
25243 }
25244 resultobj = SWIG_Py_Void();
25245 return resultobj;
25246 fail:
25247 return NULL;
25248 }
25249
25250
25251 SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25252 PyObject *resultobj = 0;
25253 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25254 wxDouble arg2 ;
25255 wxDouble arg3 ;
25256 void *argp1 = 0 ;
25257 int res1 = 0 ;
25258 double val2 ;
25259 int ecode2 = 0 ;
25260 double val3 ;
25261 int ecode3 = 0 ;
25262 PyObject * obj0 = 0 ;
25263 PyObject * obj1 = 0 ;
25264 PyObject * obj2 = 0 ;
25265 char * kwnames[] = {
25266 (char *) "self",(char *) "x",(char *) "y", NULL
25267 };
25268
25269 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsPath_AddLineToPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25270 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25271 if (!SWIG_IsOK(res1)) {
25272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25273 }
25274 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25275 ecode2 = SWIG_AsVal_double(obj1, &val2);
25276 if (!SWIG_IsOK(ecode2)) {
25277 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
25278 }
25279 arg2 = static_cast< wxDouble >(val2);
25280 ecode3 = SWIG_AsVal_double(obj2, &val3);
25281 if (!SWIG_IsOK(ecode3)) {
25282 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
25283 }
25284 arg3 = static_cast< wxDouble >(val3);
25285 {
25286 (arg1)->AddLineToPoint(arg2,arg3);
25287 if (PyErr_Occurred()) SWIG_fail;
25288 }
25289 resultobj = SWIG_Py_Void();
25290 return resultobj;
25291 fail:
25292 return NULL;
25293 }
25294
25295
25296 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25297 PyObject *resultobj = 0;
25298 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25299 wxDouble arg2 ;
25300 wxDouble arg3 ;
25301 wxDouble arg4 ;
25302 wxDouble arg5 ;
25303 wxDouble arg6 ;
25304 wxDouble arg7 ;
25305 void *argp1 = 0 ;
25306 int res1 = 0 ;
25307 double val2 ;
25308 int ecode2 = 0 ;
25309 double val3 ;
25310 int ecode3 = 0 ;
25311 double val4 ;
25312 int ecode4 = 0 ;
25313 double val5 ;
25314 int ecode5 = 0 ;
25315 double val6 ;
25316 int ecode6 = 0 ;
25317 double val7 ;
25318 int ecode7 = 0 ;
25319 PyObject * obj0 = 0 ;
25320 PyObject * obj1 = 0 ;
25321 PyObject * obj2 = 0 ;
25322 PyObject * obj3 = 0 ;
25323 PyObject * obj4 = 0 ;
25324 PyObject * obj5 = 0 ;
25325 PyObject * obj6 = 0 ;
25326 char * kwnames[] = {
25327 (char *) "self",(char *) "cx1",(char *) "cy1",(char *) "cx2",(char *) "cy2",(char *) "x",(char *) "y", NULL
25328 };
25329
25330 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsPath_AddCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25331 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25332 if (!SWIG_IsOK(res1)) {
25333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25334 }
25335 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25336 ecode2 = SWIG_AsVal_double(obj1, &val2);
25337 if (!SWIG_IsOK(ecode2)) {
25338 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
25339 }
25340 arg2 = static_cast< wxDouble >(val2);
25341 ecode3 = SWIG_AsVal_double(obj2, &val3);
25342 if (!SWIG_IsOK(ecode3)) {
25343 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
25344 }
25345 arg3 = static_cast< wxDouble >(val3);
25346 ecode4 = SWIG_AsVal_double(obj3, &val4);
25347 if (!SWIG_IsOK(ecode4)) {
25348 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
25349 }
25350 arg4 = static_cast< wxDouble >(val4);
25351 ecode5 = SWIG_AsVal_double(obj4, &val5);
25352 if (!SWIG_IsOK(ecode5)) {
25353 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
25354 }
25355 arg5 = static_cast< wxDouble >(val5);
25356 ecode6 = SWIG_AsVal_double(obj5, &val6);
25357 if (!SWIG_IsOK(ecode6)) {
25358 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
25359 }
25360 arg6 = static_cast< wxDouble >(val6);
25361 ecode7 = SWIG_AsVal_double(obj6, &val7);
25362 if (!SWIG_IsOK(ecode7)) {
25363 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "7"" of type '" "wxDouble""'");
25364 }
25365 arg7 = static_cast< wxDouble >(val7);
25366 {
25367 (arg1)->AddCurveToPoint(arg2,arg3,arg4,arg5,arg6,arg7);
25368 if (PyErr_Occurred()) SWIG_fail;
25369 }
25370 resultobj = SWIG_Py_Void();
25371 return resultobj;
25372 fail:
25373 return NULL;
25374 }
25375
25376
25377 SWIGINTERN PyObject *_wrap_GraphicsPath_CloseSubpath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25378 PyObject *resultobj = 0;
25379 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25380 void *argp1 = 0 ;
25381 int res1 = 0 ;
25382 PyObject *swig_obj[1] ;
25383
25384 if (!args) SWIG_fail;
25385 swig_obj[0] = args;
25386 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25387 if (!SWIG_IsOK(res1)) {
25388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_CloseSubpath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25389 }
25390 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25391 {
25392 (arg1)->CloseSubpath();
25393 if (PyErr_Occurred()) SWIG_fail;
25394 }
25395 resultobj = SWIG_Py_Void();
25396 return resultobj;
25397 fail:
25398 return NULL;
25399 }
25400
25401
25402 SWIGINTERN PyObject *_wrap_GraphicsPath_GetCurrentPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25403 PyObject *resultobj = 0;
25404 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25405 wxPoint2D result;
25406 void *argp1 = 0 ;
25407 int res1 = 0 ;
25408 PyObject *swig_obj[1] ;
25409
25410 if (!args) SWIG_fail;
25411 swig_obj[0] = args;
25412 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25413 if (!SWIG_IsOK(res1)) {
25414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetCurrentPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25415 }
25416 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25417 {
25418 result = (arg1)->GetCurrentPoint();
25419 if (PyErr_Occurred()) SWIG_fail;
25420 }
25421 resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
25422 return resultobj;
25423 fail:
25424 return NULL;
25425 }
25426
25427
25428 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25429 PyObject *resultobj = 0;
25430 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25431 wxDouble arg2 ;
25432 wxDouble arg3 ;
25433 wxDouble arg4 ;
25434 wxDouble arg5 ;
25435 wxDouble arg6 ;
25436 bool arg7 ;
25437 void *argp1 = 0 ;
25438 int res1 = 0 ;
25439 double val2 ;
25440 int ecode2 = 0 ;
25441 double val3 ;
25442 int ecode3 = 0 ;
25443 double val4 ;
25444 int ecode4 = 0 ;
25445 double val5 ;
25446 int ecode5 = 0 ;
25447 double val6 ;
25448 int ecode6 = 0 ;
25449 bool val7 ;
25450 int ecode7 = 0 ;
25451 PyObject * obj0 = 0 ;
25452 PyObject * obj1 = 0 ;
25453 PyObject * obj2 = 0 ;
25454 PyObject * obj3 = 0 ;
25455 PyObject * obj4 = 0 ;
25456 PyObject * obj5 = 0 ;
25457 PyObject * obj6 = 0 ;
25458 char * kwnames[] = {
25459 (char *) "self",(char *) "x",(char *) "y",(char *) "r",(char *) "startAngle",(char *) "endAngle",(char *) "clockwise", NULL
25460 };
25461
25462 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsPath_AddArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25463 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25464 if (!SWIG_IsOK(res1)) {
25465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25466 }
25467 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25468 ecode2 = SWIG_AsVal_double(obj1, &val2);
25469 if (!SWIG_IsOK(ecode2)) {
25470 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArc" "', expected argument " "2"" of type '" "wxDouble""'");
25471 }
25472 arg2 = static_cast< wxDouble >(val2);
25473 ecode3 = SWIG_AsVal_double(obj2, &val3);
25474 if (!SWIG_IsOK(ecode3)) {
25475 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
25476 }
25477 arg3 = static_cast< wxDouble >(val3);
25478 ecode4 = SWIG_AsVal_double(obj3, &val4);
25479 if (!SWIG_IsOK(ecode4)) {
25480 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
25481 }
25482 arg4 = static_cast< wxDouble >(val4);
25483 ecode5 = SWIG_AsVal_double(obj4, &val5);
25484 if (!SWIG_IsOK(ecode5)) {
25485 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
25486 }
25487 arg5 = static_cast< wxDouble >(val5);
25488 ecode6 = SWIG_AsVal_double(obj5, &val6);
25489 if (!SWIG_IsOK(ecode6)) {
25490 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "wxDouble""'");
25491 }
25492 arg6 = static_cast< wxDouble >(val6);
25493 ecode7 = SWIG_AsVal_bool(obj6, &val7);
25494 if (!SWIG_IsOK(ecode7)) {
25495 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'");
25496 }
25497 arg7 = static_cast< bool >(val7);
25498 {
25499 (arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7);
25500 if (PyErr_Occurred()) SWIG_fail;
25501 }
25502 resultobj = SWIG_Py_Void();
25503 return resultobj;
25504 fail:
25505 return NULL;
25506 }
25507
25508
25509 SWIGINTERN PyObject *_wrap_GraphicsPath_AddQuadCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25510 PyObject *resultobj = 0;
25511 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25512 wxDouble arg2 ;
25513 wxDouble arg3 ;
25514 wxDouble arg4 ;
25515 wxDouble arg5 ;
25516 void *argp1 = 0 ;
25517 int res1 = 0 ;
25518 double val2 ;
25519 int ecode2 = 0 ;
25520 double val3 ;
25521 int ecode3 = 0 ;
25522 double val4 ;
25523 int ecode4 = 0 ;
25524 double val5 ;
25525 int ecode5 = 0 ;
25526 PyObject * obj0 = 0 ;
25527 PyObject * obj1 = 0 ;
25528 PyObject * obj2 = 0 ;
25529 PyObject * obj3 = 0 ;
25530 PyObject * obj4 = 0 ;
25531 char * kwnames[] = {
25532 (char *) "self",(char *) "cx",(char *) "cy",(char *) "x",(char *) "y", NULL
25533 };
25534
25535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddQuadCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25536 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25537 if (!SWIG_IsOK(res1)) {
25538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25539 }
25540 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25541 ecode2 = SWIG_AsVal_double(obj1, &val2);
25542 if (!SWIG_IsOK(ecode2)) {
25543 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
25544 }
25545 arg2 = static_cast< wxDouble >(val2);
25546 ecode3 = SWIG_AsVal_double(obj2, &val3);
25547 if (!SWIG_IsOK(ecode3)) {
25548 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
25549 }
25550 arg3 = static_cast< wxDouble >(val3);
25551 ecode4 = SWIG_AsVal_double(obj3, &val4);
25552 if (!SWIG_IsOK(ecode4)) {
25553 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
25554 }
25555 arg4 = static_cast< wxDouble >(val4);
25556 ecode5 = SWIG_AsVal_double(obj4, &val5);
25557 if (!SWIG_IsOK(ecode5)) {
25558 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
25559 }
25560 arg5 = static_cast< wxDouble >(val5);
25561 {
25562 (arg1)->AddQuadCurveToPoint(arg2,arg3,arg4,arg5);
25563 if (PyErr_Occurred()) SWIG_fail;
25564 }
25565 resultobj = SWIG_Py_Void();
25566 return resultobj;
25567 fail:
25568 return NULL;
25569 }
25570
25571
25572 SWIGINTERN PyObject *_wrap_GraphicsPath_AddRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25573 PyObject *resultobj = 0;
25574 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25575 wxDouble arg2 ;
25576 wxDouble arg3 ;
25577 wxDouble arg4 ;
25578 wxDouble arg5 ;
25579 void *argp1 = 0 ;
25580 int res1 = 0 ;
25581 double val2 ;
25582 int ecode2 = 0 ;
25583 double val3 ;
25584 int ecode3 = 0 ;
25585 double val4 ;
25586 int ecode4 = 0 ;
25587 double val5 ;
25588 int ecode5 = 0 ;
25589 PyObject * obj0 = 0 ;
25590 PyObject * obj1 = 0 ;
25591 PyObject * obj2 = 0 ;
25592 PyObject * obj3 = 0 ;
25593 PyObject * obj4 = 0 ;
25594 char * kwnames[] = {
25595 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
25596 };
25597
25598 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25599 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25600 if (!SWIG_IsOK(res1)) {
25601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25602 }
25603 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25604 ecode2 = SWIG_AsVal_double(obj1, &val2);
25605 if (!SWIG_IsOK(ecode2)) {
25606 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
25607 }
25608 arg2 = static_cast< wxDouble >(val2);
25609 ecode3 = SWIG_AsVal_double(obj2, &val3);
25610 if (!SWIG_IsOK(ecode3)) {
25611 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
25612 }
25613 arg3 = static_cast< wxDouble >(val3);
25614 ecode4 = SWIG_AsVal_double(obj3, &val4);
25615 if (!SWIG_IsOK(ecode4)) {
25616 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
25617 }
25618 arg4 = static_cast< wxDouble >(val4);
25619 ecode5 = SWIG_AsVal_double(obj4, &val5);
25620 if (!SWIG_IsOK(ecode5)) {
25621 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
25622 }
25623 arg5 = static_cast< wxDouble >(val5);
25624 {
25625 (arg1)->AddRectangle(arg2,arg3,arg4,arg5);
25626 if (PyErr_Occurred()) SWIG_fail;
25627 }
25628 resultobj = SWIG_Py_Void();
25629 return resultobj;
25630 fail:
25631 return NULL;
25632 }
25633
25634
25635 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25636 PyObject *resultobj = 0;
25637 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25638 wxDouble arg2 ;
25639 wxDouble arg3 ;
25640 wxDouble arg4 ;
25641 void *argp1 = 0 ;
25642 int res1 = 0 ;
25643 double val2 ;
25644 int ecode2 = 0 ;
25645 double val3 ;
25646 int ecode3 = 0 ;
25647 double val4 ;
25648 int ecode4 = 0 ;
25649 PyObject * obj0 = 0 ;
25650 PyObject * obj1 = 0 ;
25651 PyObject * obj2 = 0 ;
25652 PyObject * obj3 = 0 ;
25653 char * kwnames[] = {
25654 (char *) "self",(char *) "x",(char *) "y",(char *) "r", NULL
25655 };
25656
25657 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsPath_AddCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25658 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25659 if (!SWIG_IsOK(res1)) {
25660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCircle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25661 }
25662 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25663 ecode2 = SWIG_AsVal_double(obj1, &val2);
25664 if (!SWIG_IsOK(ecode2)) {
25665 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCircle" "', expected argument " "2"" of type '" "wxDouble""'");
25666 }
25667 arg2 = static_cast< wxDouble >(val2);
25668 ecode3 = SWIG_AsVal_double(obj2, &val3);
25669 if (!SWIG_IsOK(ecode3)) {
25670 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCircle" "', expected argument " "3"" of type '" "wxDouble""'");
25671 }
25672 arg3 = static_cast< wxDouble >(val3);
25673 ecode4 = SWIG_AsVal_double(obj3, &val4);
25674 if (!SWIG_IsOK(ecode4)) {
25675 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCircle" "', expected argument " "4"" of type '" "wxDouble""'");
25676 }
25677 arg4 = static_cast< wxDouble >(val4);
25678 {
25679 (arg1)->AddCircle(arg2,arg3,arg4);
25680 if (PyErr_Occurred()) SWIG_fail;
25681 }
25682 resultobj = SWIG_Py_Void();
25683 return resultobj;
25684 fail:
25685 return NULL;
25686 }
25687
25688
25689 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArcToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25690 PyObject *resultobj = 0;
25691 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25692 wxDouble arg2 ;
25693 wxDouble arg3 ;
25694 wxDouble arg4 ;
25695 wxDouble arg5 ;
25696 wxDouble arg6 ;
25697 void *argp1 = 0 ;
25698 int res1 = 0 ;
25699 double val2 ;
25700 int ecode2 = 0 ;
25701 double val3 ;
25702 int ecode3 = 0 ;
25703 double val4 ;
25704 int ecode4 = 0 ;
25705 double val5 ;
25706 int ecode5 = 0 ;
25707 double val6 ;
25708 int ecode6 = 0 ;
25709 PyObject * obj0 = 0 ;
25710 PyObject * obj1 = 0 ;
25711 PyObject * obj2 = 0 ;
25712 PyObject * obj3 = 0 ;
25713 PyObject * obj4 = 0 ;
25714 PyObject * obj5 = 0 ;
25715 char * kwnames[] = {
25716 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "r", NULL
25717 };
25718
25719 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddArcToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
25720 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25721 if (!SWIG_IsOK(res1)) {
25722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25723 }
25724 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25725 ecode2 = SWIG_AsVal_double(obj1, &val2);
25726 if (!SWIG_IsOK(ecode2)) {
25727 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
25728 }
25729 arg2 = static_cast< wxDouble >(val2);
25730 ecode3 = SWIG_AsVal_double(obj2, &val3);
25731 if (!SWIG_IsOK(ecode3)) {
25732 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
25733 }
25734 arg3 = static_cast< wxDouble >(val3);
25735 ecode4 = SWIG_AsVal_double(obj3, &val4);
25736 if (!SWIG_IsOK(ecode4)) {
25737 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
25738 }
25739 arg4 = static_cast< wxDouble >(val4);
25740 ecode5 = SWIG_AsVal_double(obj4, &val5);
25741 if (!SWIG_IsOK(ecode5)) {
25742 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
25743 }
25744 arg5 = static_cast< wxDouble >(val5);
25745 ecode6 = SWIG_AsVal_double(obj5, &val6);
25746 if (!SWIG_IsOK(ecode6)) {
25747 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
25748 }
25749 arg6 = static_cast< wxDouble >(val6);
25750 {
25751 (arg1)->AddArcToPoint(arg2,arg3,arg4,arg5,arg6);
25752 if (PyErr_Occurred()) SWIG_fail;
25753 }
25754 resultobj = SWIG_Py_Void();
25755 return resultobj;
25756 fail:
25757 return NULL;
25758 }
25759
25760
25761 SWIGINTERN PyObject *GraphicsPath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25762 PyObject *obj;
25763 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25764 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPath, SWIG_NewClientData(obj));
25765 return SWIG_Py_Void();
25766 }
25767
25768 SWIGINTERN PyObject *_wrap_delete_GraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25769 PyObject *resultobj = 0;
25770 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25771 void *argp1 = 0 ;
25772 int res1 = 0 ;
25773 PyObject *swig_obj[1] ;
25774
25775 if (!args) SWIG_fail;
25776 swig_obj[0] = args;
25777 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_DISOWN | 0 );
25778 if (!SWIG_IsOK(res1)) {
25779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25780 }
25781 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25782 {
25783 delete arg1;
25784
25785 if (PyErr_Occurred()) SWIG_fail;
25786 }
25787 resultobj = SWIG_Py_Void();
25788 return resultobj;
25789 fail:
25790 return NULL;
25791 }
25792
25793
25794 SWIGINTERN PyObject *_wrap_GraphicsContext_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25795 PyObject *resultobj = 0;
25796 wxWindowDC *arg1 = 0 ;
25797 wxGraphicsContext *result = 0 ;
25798 void *argp1 = 0 ;
25799 int res1 = 0 ;
25800 PyObject * obj0 = 0 ;
25801 char * kwnames[] = {
25802 (char *) "dc", NULL
25803 };
25804
25805 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_Create",kwnames,&obj0)) SWIG_fail;
25806 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
25807 if (!SWIG_IsOK(res1)) {
25808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
25809 }
25810 if (!argp1) {
25811 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
25812 }
25813 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
25814 {
25815 result = (wxGraphicsContext *)wxGraphicsContext::Create((wxWindowDC const &)*arg1);
25816 if (PyErr_Occurred()) SWIG_fail;
25817 }
25818 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25819 return resultobj;
25820 fail:
25821 return NULL;
25822 }
25823
25824
25825 SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25826 PyObject *resultobj = 0;
25827 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25828 wxGraphicsPath *result = 0 ;
25829 void *argp1 = 0 ;
25830 int res1 = 0 ;
25831 PyObject *swig_obj[1] ;
25832
25833 if (!args) SWIG_fail;
25834 swig_obj[0] = args;
25835 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25836 if (!SWIG_IsOK(res1)) {
25837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25838 }
25839 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25840 {
25841 result = (wxGraphicsPath *)(arg1)->CreatePath();
25842 if (PyErr_Occurred()) SWIG_fail;
25843 }
25844 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25845 return resultobj;
25846 fail:
25847 return NULL;
25848 }
25849
25850
25851 SWIGINTERN PyObject *_wrap_GraphicsContext_PushState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25852 PyObject *resultobj = 0;
25853 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25854 void *argp1 = 0 ;
25855 int res1 = 0 ;
25856 PyObject *swig_obj[1] ;
25857
25858 if (!args) SWIG_fail;
25859 swig_obj[0] = args;
25860 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25861 if (!SWIG_IsOK(res1)) {
25862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PushState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25863 }
25864 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25865 {
25866 (arg1)->PushState();
25867 if (PyErr_Occurred()) SWIG_fail;
25868 }
25869 resultobj = SWIG_Py_Void();
25870 return resultobj;
25871 fail:
25872 return NULL;
25873 }
25874
25875
25876 SWIGINTERN PyObject *_wrap_GraphicsContext_PopState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25877 PyObject *resultobj = 0;
25878 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25879 void *argp1 = 0 ;
25880 int res1 = 0 ;
25881 PyObject *swig_obj[1] ;
25882
25883 if (!args) SWIG_fail;
25884 swig_obj[0] = args;
25885 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25886 if (!SWIG_IsOK(res1)) {
25887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PopState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25888 }
25889 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25890 {
25891 (arg1)->PopState();
25892 if (PyErr_Occurred()) SWIG_fail;
25893 }
25894 resultobj = SWIG_Py_Void();
25895 return resultobj;
25896 fail:
25897 return NULL;
25898 }
25899
25900
25901 SWIGINTERN PyObject *_wrap_GraphicsContext_Clip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25902 PyObject *resultobj = 0;
25903 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25904 wxRegion *arg2 = 0 ;
25905 void *argp1 = 0 ;
25906 int res1 = 0 ;
25907 void *argp2 = 0 ;
25908 int res2 = 0 ;
25909 PyObject * obj0 = 0 ;
25910 PyObject * obj1 = 0 ;
25911 char * kwnames[] = {
25912 (char *) "self",(char *) "region", NULL
25913 };
25914
25915 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Clip",kwnames,&obj0,&obj1)) SWIG_fail;
25916 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25917 if (!SWIG_IsOK(res1)) {
25918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Clip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25919 }
25920 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25921 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
25922 if (!SWIG_IsOK(res2)) {
25923 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxRegion const &""'");
25924 }
25925 if (!argp2) {
25926 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxRegion const &""'");
25927 }
25928 arg2 = reinterpret_cast< wxRegion * >(argp2);
25929 {
25930 (arg1)->Clip((wxRegion const &)*arg2);
25931 if (PyErr_Occurred()) SWIG_fail;
25932 }
25933 resultobj = SWIG_Py_Void();
25934 return resultobj;
25935 fail:
25936 return NULL;
25937 }
25938
25939
25940 SWIGINTERN PyObject *_wrap_GraphicsContext_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25941 PyObject *resultobj = 0;
25942 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25943 wxDouble arg2 ;
25944 wxDouble arg3 ;
25945 void *argp1 = 0 ;
25946 int res1 = 0 ;
25947 double val2 ;
25948 int ecode2 = 0 ;
25949 double val3 ;
25950 int ecode3 = 0 ;
25951 PyObject * obj0 = 0 ;
25952 PyObject * obj1 = 0 ;
25953 PyObject * obj2 = 0 ;
25954 char * kwnames[] = {
25955 (char *) "self",(char *) "dx",(char *) "dy", NULL
25956 };
25957
25958 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25959 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25960 if (!SWIG_IsOK(res1)) {
25961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Translate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25962 }
25963 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25964 ecode2 = SWIG_AsVal_double(obj1, &val2);
25965 if (!SWIG_IsOK(ecode2)) {
25966 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
25967 }
25968 arg2 = static_cast< wxDouble >(val2);
25969 ecode3 = SWIG_AsVal_double(obj2, &val3);
25970 if (!SWIG_IsOK(ecode3)) {
25971 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
25972 }
25973 arg3 = static_cast< wxDouble >(val3);
25974 {
25975 (arg1)->Translate(arg2,arg3);
25976 if (PyErr_Occurred()) SWIG_fail;
25977 }
25978 resultobj = SWIG_Py_Void();
25979 return resultobj;
25980 fail:
25981 return NULL;
25982 }
25983
25984
25985 SWIGINTERN PyObject *_wrap_GraphicsContext_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25986 PyObject *resultobj = 0;
25987 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25988 wxDouble arg2 ;
25989 wxDouble arg3 ;
25990 void *argp1 = 0 ;
25991 int res1 = 0 ;
25992 double val2 ;
25993 int ecode2 = 0 ;
25994 double val3 ;
25995 int ecode3 = 0 ;
25996 PyObject * obj0 = 0 ;
25997 PyObject * obj1 = 0 ;
25998 PyObject * obj2 = 0 ;
25999 char * kwnames[] = {
26000 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
26001 };
26002
26003 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26004 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26005 if (!SWIG_IsOK(res1)) {
26006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Scale" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26007 }
26008 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26009 ecode2 = SWIG_AsVal_double(obj1, &val2);
26010 if (!SWIG_IsOK(ecode2)) {
26011 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
26012 }
26013 arg2 = static_cast< wxDouble >(val2);
26014 ecode3 = SWIG_AsVal_double(obj2, &val3);
26015 if (!SWIG_IsOK(ecode3)) {
26016 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
26017 }
26018 arg3 = static_cast< wxDouble >(val3);
26019 {
26020 (arg1)->Scale(arg2,arg3);
26021 if (PyErr_Occurred()) SWIG_fail;
26022 }
26023 resultobj = SWIG_Py_Void();
26024 return resultobj;
26025 fail:
26026 return NULL;
26027 }
26028
26029
26030 SWIGINTERN PyObject *_wrap_GraphicsContext_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26031 PyObject *resultobj = 0;
26032 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26033 wxDouble arg2 ;
26034 void *argp1 = 0 ;
26035 int res1 = 0 ;
26036 double val2 ;
26037 int ecode2 = 0 ;
26038 PyObject * obj0 = 0 ;
26039 PyObject * obj1 = 0 ;
26040 char * kwnames[] = {
26041 (char *) "self",(char *) "angle", NULL
26042 };
26043
26044 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
26045 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26046 if (!SWIG_IsOK(res1)) {
26047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Rotate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26048 }
26049 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26050 ecode2 = SWIG_AsVal_double(obj1, &val2);
26051 if (!SWIG_IsOK(ecode2)) {
26052 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
26053 }
26054 arg2 = static_cast< wxDouble >(val2);
26055 {
26056 (arg1)->Rotate(arg2);
26057 if (PyErr_Occurred()) SWIG_fail;
26058 }
26059 resultobj = SWIG_Py_Void();
26060 return resultobj;
26061 fail:
26062 return NULL;
26063 }
26064
26065
26066 SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26067 PyObject *resultobj = 0;
26068 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26069 wxPen *arg2 = 0 ;
26070 void *argp1 = 0 ;
26071 int res1 = 0 ;
26072 void *argp2 = 0 ;
26073 int res2 = 0 ;
26074 PyObject * obj0 = 0 ;
26075 PyObject * obj1 = 0 ;
26076 char * kwnames[] = {
26077 (char *) "self",(char *) "pen", NULL
26078 };
26079
26080 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
26081 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26082 if (!SWIG_IsOK(res1)) {
26083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26084 }
26085 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26086 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
26087 if (!SWIG_IsOK(res2)) {
26088 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
26089 }
26090 if (!argp2) {
26091 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
26092 }
26093 arg2 = reinterpret_cast< wxPen * >(argp2);
26094 {
26095 (arg1)->SetPen((wxPen const &)*arg2);
26096 if (PyErr_Occurred()) SWIG_fail;
26097 }
26098 resultobj = SWIG_Py_Void();
26099 return resultobj;
26100 fail:
26101 return NULL;
26102 }
26103
26104
26105 SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26106 PyObject *resultobj = 0;
26107 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26108 wxBrush *arg2 = 0 ;
26109 void *argp1 = 0 ;
26110 int res1 = 0 ;
26111 void *argp2 = 0 ;
26112 int res2 = 0 ;
26113 PyObject * obj0 = 0 ;
26114 PyObject * obj1 = 0 ;
26115 char * kwnames[] = {
26116 (char *) "self",(char *) "brush", NULL
26117 };
26118
26119 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
26120 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26121 if (!SWIG_IsOK(res1)) {
26122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26123 }
26124 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26125 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
26126 if (!SWIG_IsOK(res2)) {
26127 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
26128 }
26129 if (!argp2) {
26130 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
26131 }
26132 arg2 = reinterpret_cast< wxBrush * >(argp2);
26133 {
26134 (arg1)->SetBrush((wxBrush const &)*arg2);
26135 if (PyErr_Occurred()) SWIG_fail;
26136 }
26137 resultobj = SWIG_Py_Void();
26138 return resultobj;
26139 fail:
26140 return NULL;
26141 }
26142
26143
26144 SWIGINTERN PyObject *_wrap_GraphicsContext_SetLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26145 PyObject *resultobj = 0;
26146 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26147 wxDouble arg2 ;
26148 wxDouble arg3 ;
26149 wxDouble arg4 ;
26150 wxDouble arg5 ;
26151 wxColour *arg6 = 0 ;
26152 wxColour *arg7 = 0 ;
26153 void *argp1 = 0 ;
26154 int res1 = 0 ;
26155 double val2 ;
26156 int ecode2 = 0 ;
26157 double val3 ;
26158 int ecode3 = 0 ;
26159 double val4 ;
26160 int ecode4 = 0 ;
26161 double val5 ;
26162 int ecode5 = 0 ;
26163 wxColour temp6 ;
26164 wxColour temp7 ;
26165 PyObject * obj0 = 0 ;
26166 PyObject * obj1 = 0 ;
26167 PyObject * obj2 = 0 ;
26168 PyObject * obj3 = 0 ;
26169 PyObject * obj4 = 0 ;
26170 PyObject * obj5 = 0 ;
26171 PyObject * obj6 = 0 ;
26172 char * kwnames[] = {
26173 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
26174 };
26175
26176 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsContext_SetLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
26177 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26178 if (!SWIG_IsOK(res1)) {
26179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26180 }
26181 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26182 ecode2 = SWIG_AsVal_double(obj1, &val2);
26183 if (!SWIG_IsOK(ecode2)) {
26184 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
26185 }
26186 arg2 = static_cast< wxDouble >(val2);
26187 ecode3 = SWIG_AsVal_double(obj2, &val3);
26188 if (!SWIG_IsOK(ecode3)) {
26189 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
26190 }
26191 arg3 = static_cast< wxDouble >(val3);
26192 ecode4 = SWIG_AsVal_double(obj3, &val4);
26193 if (!SWIG_IsOK(ecode4)) {
26194 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
26195 }
26196 arg4 = static_cast< wxDouble >(val4);
26197 ecode5 = SWIG_AsVal_double(obj4, &val5);
26198 if (!SWIG_IsOK(ecode5)) {
26199 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
26200 }
26201 arg5 = static_cast< wxDouble >(val5);
26202 {
26203 arg6 = &temp6;
26204 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
26205 }
26206 {
26207 arg7 = &temp7;
26208 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
26209 }
26210 {
26211 (arg1)->SetLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
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_SetRadialGradientBrush(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 wxDouble arg6 ;
26229 wxColour *arg7 = 0 ;
26230 wxColour *arg8 = 0 ;
26231 void *argp1 = 0 ;
26232 int res1 = 0 ;
26233 double val2 ;
26234 int ecode2 = 0 ;
26235 double val3 ;
26236 int ecode3 = 0 ;
26237 double val4 ;
26238 int ecode4 = 0 ;
26239 double val5 ;
26240 int ecode5 = 0 ;
26241 double val6 ;
26242 int ecode6 = 0 ;
26243 wxColour temp7 ;
26244 wxColour temp8 ;
26245 PyObject * obj0 = 0 ;
26246 PyObject * obj1 = 0 ;
26247 PyObject * obj2 = 0 ;
26248 PyObject * obj3 = 0 ;
26249 PyObject * obj4 = 0 ;
26250 PyObject * obj5 = 0 ;
26251 PyObject * obj6 = 0 ;
26252 PyObject * obj7 = 0 ;
26253 char * kwnames[] = {
26254 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
26255 };
26256
26257 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsContext_SetRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
26258 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26259 if (!SWIG_IsOK(res1)) {
26260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26261 }
26262 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26263 ecode2 = SWIG_AsVal_double(obj1, &val2);
26264 if (!SWIG_IsOK(ecode2)) {
26265 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
26266 }
26267 arg2 = static_cast< wxDouble >(val2);
26268 ecode3 = SWIG_AsVal_double(obj2, &val3);
26269 if (!SWIG_IsOK(ecode3)) {
26270 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
26271 }
26272 arg3 = static_cast< wxDouble >(val3);
26273 ecode4 = SWIG_AsVal_double(obj3, &val4);
26274 if (!SWIG_IsOK(ecode4)) {
26275 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
26276 }
26277 arg4 = static_cast< wxDouble >(val4);
26278 ecode5 = SWIG_AsVal_double(obj4, &val5);
26279 if (!SWIG_IsOK(ecode5)) {
26280 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
26281 }
26282 arg5 = static_cast< wxDouble >(val5);
26283 ecode6 = SWIG_AsVal_double(obj5, &val6);
26284 if (!SWIG_IsOK(ecode6)) {
26285 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
26286 }
26287 arg6 = static_cast< wxDouble >(val6);
26288 {
26289 arg7 = &temp7;
26290 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
26291 }
26292 {
26293 arg8 = &temp8;
26294 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
26295 }
26296 {
26297 (arg1)->SetRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
26298 if (PyErr_Occurred()) SWIG_fail;
26299 }
26300 resultobj = SWIG_Py_Void();
26301 return resultobj;
26302 fail:
26303 return NULL;
26304 }
26305
26306
26307 SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26308 PyObject *resultobj = 0;
26309 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26310 wxFont *arg2 = 0 ;
26311 void *argp1 = 0 ;
26312 int res1 = 0 ;
26313 void *argp2 = 0 ;
26314 int res2 = 0 ;
26315 PyObject * obj0 = 0 ;
26316 PyObject * obj1 = 0 ;
26317 char * kwnames[] = {
26318 (char *) "self",(char *) "font", NULL
26319 };
26320
26321 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
26322 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26323 if (!SWIG_IsOK(res1)) {
26324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26325 }
26326 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26327 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
26328 if (!SWIG_IsOK(res2)) {
26329 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26330 }
26331 if (!argp2) {
26332 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26333 }
26334 arg2 = reinterpret_cast< wxFont * >(argp2);
26335 {
26336 (arg1)->SetFont((wxFont const &)*arg2);
26337 if (PyErr_Occurred()) SWIG_fail;
26338 }
26339 resultobj = SWIG_Py_Void();
26340 return resultobj;
26341 fail:
26342 return NULL;
26343 }
26344
26345
26346 SWIGINTERN PyObject *_wrap_GraphicsContext_SetTextColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26347 PyObject *resultobj = 0;
26348 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26349 wxColour *arg2 = 0 ;
26350 void *argp1 = 0 ;
26351 int res1 = 0 ;
26352 wxColour temp2 ;
26353 PyObject * obj0 = 0 ;
26354 PyObject * obj1 = 0 ;
26355 char * kwnames[] = {
26356 (char *) "self",(char *) "col", NULL
26357 };
26358
26359 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetTextColor",kwnames,&obj0,&obj1)) SWIG_fail;
26360 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26361 if (!SWIG_IsOK(res1)) {
26362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetTextColor" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26363 }
26364 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26365 {
26366 arg2 = &temp2;
26367 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26368 }
26369 {
26370 (arg1)->SetTextColor((wxColour const &)*arg2);
26371 if (PyErr_Occurred()) SWIG_fail;
26372 }
26373 resultobj = SWIG_Py_Void();
26374 return resultobj;
26375 fail:
26376 return NULL;
26377 }
26378
26379
26380 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26381 PyObject *resultobj = 0;
26382 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26383 wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ;
26384 void *argp1 = 0 ;
26385 int res1 = 0 ;
26386 void *argp2 = 0 ;
26387 int res2 = 0 ;
26388 PyObject * obj0 = 0 ;
26389 PyObject * obj1 = 0 ;
26390 char * kwnames[] = {
26391 (char *) "self",(char *) "path", NULL
26392 };
26393
26394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokePath",kwnames,&obj0,&obj1)) SWIG_fail;
26395 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26396 if (!SWIG_IsOK(res1)) {
26397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26398 }
26399 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26400 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26401 if (!SWIG_IsOK(res2)) {
26402 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'");
26403 }
26404 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
26405 {
26406 (arg1)->StrokePath((wxGraphicsPath const *)arg2);
26407 if (PyErr_Occurred()) SWIG_fail;
26408 }
26409 resultobj = SWIG_Py_Void();
26410 return resultobj;
26411 fail:
26412 return NULL;
26413 }
26414
26415
26416 SWIGINTERN PyObject *_wrap_GraphicsContext_FillPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26417 PyObject *resultobj = 0;
26418 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26419 wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ;
26420 int arg3 = (int) wxWINDING_RULE ;
26421 void *argp1 = 0 ;
26422 int res1 = 0 ;
26423 void *argp2 = 0 ;
26424 int res2 = 0 ;
26425 int val3 ;
26426 int ecode3 = 0 ;
26427 PyObject * obj0 = 0 ;
26428 PyObject * obj1 = 0 ;
26429 PyObject * obj2 = 0 ;
26430 char * kwnames[] = {
26431 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
26432 };
26433
26434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_FillPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26435 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26436 if (!SWIG_IsOK(res1)) {
26437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_FillPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26438 }
26439 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26440 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26441 if (!SWIG_IsOK(res2)) {
26442 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'");
26443 }
26444 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
26445 if (obj2) {
26446 ecode3 = SWIG_AsVal_int(obj2, &val3);
26447 if (!SWIG_IsOK(ecode3)) {
26448 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_FillPath" "', expected argument " "3"" of type '" "int""'");
26449 }
26450 arg3 = static_cast< int >(val3);
26451 }
26452 {
26453 (arg1)->FillPath((wxGraphicsPath const *)arg2,arg3);
26454 if (PyErr_Occurred()) SWIG_fail;
26455 }
26456 resultobj = SWIG_Py_Void();
26457 return resultobj;
26458 fail:
26459 return NULL;
26460 }
26461
26462
26463 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26464 PyObject *resultobj = 0;
26465 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26466 wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ;
26467 int arg3 = (int) wxWINDING_RULE ;
26468 void *argp1 = 0 ;
26469 int res1 = 0 ;
26470 void *argp2 = 0 ;
26471 int res2 = 0 ;
26472 int val3 ;
26473 int ecode3 = 0 ;
26474 PyObject * obj0 = 0 ;
26475 PyObject * obj1 = 0 ;
26476 PyObject * obj2 = 0 ;
26477 char * kwnames[] = {
26478 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
26479 };
26480
26481 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26482 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26483 if (!SWIG_IsOK(res1)) {
26484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26485 }
26486 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26487 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26488 if (!SWIG_IsOK(res2)) {
26489 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'");
26490 }
26491 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
26492 if (obj2) {
26493 ecode3 = SWIG_AsVal_int(obj2, &val3);
26494 if (!SWIG_IsOK(ecode3)) {
26495 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawPath" "', expected argument " "3"" of type '" "int""'");
26496 }
26497 arg3 = static_cast< int >(val3);
26498 }
26499 {
26500 (arg1)->DrawPath((wxGraphicsPath const *)arg2,arg3);
26501 if (PyErr_Occurred()) SWIG_fail;
26502 }
26503 resultobj = SWIG_Py_Void();
26504 return resultobj;
26505 fail:
26506 return NULL;
26507 }
26508
26509
26510 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26511 PyObject *resultobj = 0;
26512 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26513 wxString *arg2 = 0 ;
26514 wxDouble arg3 ;
26515 wxDouble arg4 ;
26516 void *argp1 = 0 ;
26517 int res1 = 0 ;
26518 bool temp2 = false ;
26519 double val3 ;
26520 int ecode3 = 0 ;
26521 double val4 ;
26522 int ecode4 = 0 ;
26523 PyObject * obj0 = 0 ;
26524 PyObject * obj1 = 0 ;
26525 PyObject * obj2 = 0 ;
26526 PyObject * obj3 = 0 ;
26527 char * kwnames[] = {
26528 (char *) "self",(char *) "str",(char *) "x",(char *) "y", NULL
26529 };
26530
26531 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsContext_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
26532 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26533 if (!SWIG_IsOK(res1)) {
26534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26535 }
26536 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26537 {
26538 arg2 = wxString_in_helper(obj1);
26539 if (arg2 == NULL) SWIG_fail;
26540 temp2 = true;
26541 }
26542 ecode3 = SWIG_AsVal_double(obj2, &val3);
26543 if (!SWIG_IsOK(ecode3)) {
26544 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawText" "', expected argument " "3"" of type '" "wxDouble""'");
26545 }
26546 arg3 = static_cast< wxDouble >(val3);
26547 ecode4 = SWIG_AsVal_double(obj3, &val4);
26548 if (!SWIG_IsOK(ecode4)) {
26549 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawText" "', expected argument " "4"" of type '" "wxDouble""'");
26550 }
26551 arg4 = static_cast< wxDouble >(val4);
26552 {
26553 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
26554 if (PyErr_Occurred()) SWIG_fail;
26555 }
26556 resultobj = SWIG_Py_Void();
26557 {
26558 if (temp2)
26559 delete arg2;
26560 }
26561 return resultobj;
26562 fail:
26563 {
26564 if (temp2)
26565 delete arg2;
26566 }
26567 return NULL;
26568 }
26569
26570
26571 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26572 PyObject *resultobj = 0;
26573 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26574 wxString *arg2 = 0 ;
26575 wxDouble arg3 ;
26576 wxDouble arg4 ;
26577 wxDouble arg5 ;
26578 void *argp1 = 0 ;
26579 int res1 = 0 ;
26580 bool temp2 = false ;
26581 double val3 ;
26582 int ecode3 = 0 ;
26583 double val4 ;
26584 int ecode4 = 0 ;
26585 double val5 ;
26586 int ecode5 = 0 ;
26587 PyObject * obj0 = 0 ;
26588 PyObject * obj1 = 0 ;
26589 PyObject * obj2 = 0 ;
26590 PyObject * obj3 = 0 ;
26591 PyObject * obj4 = 0 ;
26592 char * kwnames[] = {
26593 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "angle", NULL
26594 };
26595
26596 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26597 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26598 if (!SWIG_IsOK(res1)) {
26599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26600 }
26601 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26602 {
26603 arg2 = wxString_in_helper(obj1);
26604 if (arg2 == NULL) SWIG_fail;
26605 temp2 = true;
26606 }
26607 ecode3 = SWIG_AsVal_double(obj2, &val3);
26608 if (!SWIG_IsOK(ecode3)) {
26609 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "3"" of type '" "wxDouble""'");
26610 }
26611 arg3 = static_cast< wxDouble >(val3);
26612 ecode4 = SWIG_AsVal_double(obj3, &val4);
26613 if (!SWIG_IsOK(ecode4)) {
26614 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "4"" of type '" "wxDouble""'");
26615 }
26616 arg4 = static_cast< wxDouble >(val4);
26617 ecode5 = SWIG_AsVal_double(obj4, &val5);
26618 if (!SWIG_IsOK(ecode5)) {
26619 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "5"" of type '" "wxDouble""'");
26620 }
26621 arg5 = static_cast< wxDouble >(val5);
26622 {
26623 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4,arg5);
26624 if (PyErr_Occurred()) SWIG_fail;
26625 }
26626 resultobj = SWIG_Py_Void();
26627 {
26628 if (temp2)
26629 delete arg2;
26630 }
26631 return resultobj;
26632 fail:
26633 {
26634 if (temp2)
26635 delete arg2;
26636 }
26637 return NULL;
26638 }
26639
26640
26641 SWIGINTERN PyObject *_wrap_GraphicsContext_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26642 PyObject *resultobj = 0;
26643 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26644 wxString *arg2 = 0 ;
26645 wxDouble *arg3 = (wxDouble *) 0 ;
26646 wxDouble *arg4 = (wxDouble *) 0 ;
26647 wxDouble *arg5 = (wxDouble *) 0 ;
26648 wxDouble *arg6 = (wxDouble *) 0 ;
26649 void *argp1 = 0 ;
26650 int res1 = 0 ;
26651 bool temp2 = false ;
26652 wxDouble temp3 ;
26653 int res3 = SWIG_TMPOBJ ;
26654 wxDouble temp4 ;
26655 int res4 = SWIG_TMPOBJ ;
26656 wxDouble temp5 ;
26657 int res5 = SWIG_TMPOBJ ;
26658 wxDouble temp6 ;
26659 int res6 = SWIG_TMPOBJ ;
26660 PyObject * obj0 = 0 ;
26661 PyObject * obj1 = 0 ;
26662 char * kwnames[] = {
26663 (char *) "self",(char *) "text", NULL
26664 };
26665
26666 arg3 = &temp3;
26667 arg4 = &temp4;
26668 arg5 = &temp5;
26669 arg6 = &temp6;
26670 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
26671 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26672 if (!SWIG_IsOK(res1)) {
26673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
26674 }
26675 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26676 {
26677 arg2 = wxString_in_helper(obj1);
26678 if (arg2 == NULL) SWIG_fail;
26679 temp2 = true;
26680 }
26681 {
26682 ((wxGraphicsContext const *)arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
26683 if (PyErr_Occurred()) SWIG_fail;
26684 }
26685 resultobj = SWIG_Py_Void();
26686 if (SWIG_IsTmpObj(res3)) {
26687 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
26688 } else {
26689 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26690 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
26691 }
26692 if (SWIG_IsTmpObj(res4)) {
26693 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
26694 } else {
26695 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26696 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
26697 }
26698 if (SWIG_IsTmpObj(res5)) {
26699 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
26700 } else {
26701 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26702 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
26703 }
26704 if (SWIG_IsTmpObj(res6)) {
26705 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
26706 } else {
26707 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26708 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
26709 }
26710 {
26711 if (temp2)
26712 delete arg2;
26713 }
26714 return resultobj;
26715 fail:
26716 {
26717 if (temp2)
26718 delete arg2;
26719 }
26720 return NULL;
26721 }
26722
26723
26724 SWIGINTERN PyObject *_wrap_GraphicsContext_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26725 PyObject *resultobj = 0;
26726 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26727 wxString *arg2 = 0 ;
26728 wxArrayDouble result;
26729 void *argp1 = 0 ;
26730 int res1 = 0 ;
26731 bool temp2 = false ;
26732 PyObject * obj0 = 0 ;
26733 PyObject * obj1 = 0 ;
26734 char * kwnames[] = {
26735 (char *) "self",(char *) "text", NULL
26736 };
26737
26738 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
26739 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26740 if (!SWIG_IsOK(res1)) {
26741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26742 }
26743 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26744 {
26745 arg2 = wxString_in_helper(obj1);
26746 if (arg2 == NULL) SWIG_fail;
26747 temp2 = true;
26748 }
26749 {
26750 result = wxGraphicsContext_GetPartialTextExtents(arg1,(wxString const &)*arg2);
26751 if (PyErr_Occurred()) SWIG_fail;
26752 }
26753 {
26754 resultobj = wxArrayDouble2PyList_helper(result);
26755 }
26756 {
26757 if (temp2)
26758 delete arg2;
26759 }
26760 return resultobj;
26761 fail:
26762 {
26763 if (temp2)
26764 delete arg2;
26765 }
26766 return NULL;
26767 }
26768
26769
26770 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26771 PyObject *resultobj = 0;
26772 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26773 wxBitmap *arg2 = 0 ;
26774 wxDouble arg3 ;
26775 wxDouble arg4 ;
26776 wxDouble arg5 ;
26777 wxDouble arg6 ;
26778 void *argp1 = 0 ;
26779 int res1 = 0 ;
26780 void *argp2 = 0 ;
26781 int res2 = 0 ;
26782 double val3 ;
26783 int ecode3 = 0 ;
26784 double val4 ;
26785 int ecode4 = 0 ;
26786 double val5 ;
26787 int ecode5 = 0 ;
26788 double val6 ;
26789 int ecode6 = 0 ;
26790 PyObject * obj0 = 0 ;
26791 PyObject * obj1 = 0 ;
26792 PyObject * obj2 = 0 ;
26793 PyObject * obj3 = 0 ;
26794 PyObject * obj4 = 0 ;
26795 PyObject * obj5 = 0 ;
26796 char * kwnames[] = {
26797 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26798 };
26799
26800 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26801 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26802 if (!SWIG_IsOK(res1)) {
26803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26804 }
26805 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26806 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
26807 if (!SWIG_IsOK(res2)) {
26808 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
26809 }
26810 if (!argp2) {
26811 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
26812 }
26813 arg2 = reinterpret_cast< wxBitmap * >(argp2);
26814 ecode3 = SWIG_AsVal_double(obj2, &val3);
26815 if (!SWIG_IsOK(ecode3)) {
26816 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "3"" of type '" "wxDouble""'");
26817 }
26818 arg3 = static_cast< wxDouble >(val3);
26819 ecode4 = SWIG_AsVal_double(obj3, &val4);
26820 if (!SWIG_IsOK(ecode4)) {
26821 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "4"" of type '" "wxDouble""'");
26822 }
26823 arg4 = static_cast< wxDouble >(val4);
26824 ecode5 = SWIG_AsVal_double(obj4, &val5);
26825 if (!SWIG_IsOK(ecode5)) {
26826 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "5"" of type '" "wxDouble""'");
26827 }
26828 arg5 = static_cast< wxDouble >(val5);
26829 ecode6 = SWIG_AsVal_double(obj5, &val6);
26830 if (!SWIG_IsOK(ecode6)) {
26831 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "6"" of type '" "wxDouble""'");
26832 }
26833 arg6 = static_cast< wxDouble >(val6);
26834 {
26835 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5,arg6);
26836 if (PyErr_Occurred()) SWIG_fail;
26837 }
26838 resultobj = SWIG_Py_Void();
26839 return resultobj;
26840 fail:
26841 return NULL;
26842 }
26843
26844
26845 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26846 PyObject *resultobj = 0;
26847 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26848 wxIcon *arg2 = 0 ;
26849 wxDouble arg3 ;
26850 wxDouble arg4 ;
26851 wxDouble arg5 ;
26852 wxDouble arg6 ;
26853 void *argp1 = 0 ;
26854 int res1 = 0 ;
26855 void *argp2 = 0 ;
26856 int res2 = 0 ;
26857 double val3 ;
26858 int ecode3 = 0 ;
26859 double val4 ;
26860 int ecode4 = 0 ;
26861 double val5 ;
26862 int ecode5 = 0 ;
26863 double val6 ;
26864 int ecode6 = 0 ;
26865 PyObject * obj0 = 0 ;
26866 PyObject * obj1 = 0 ;
26867 PyObject * obj2 = 0 ;
26868 PyObject * obj3 = 0 ;
26869 PyObject * obj4 = 0 ;
26870 PyObject * obj5 = 0 ;
26871 char * kwnames[] = {
26872 (char *) "self",(char *) "icon",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26873 };
26874
26875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26877 if (!SWIG_IsOK(res1)) {
26878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26879 }
26880 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26881 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
26882 if (!SWIG_IsOK(res2)) {
26883 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
26884 }
26885 if (!argp2) {
26886 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
26887 }
26888 arg2 = reinterpret_cast< wxIcon * >(argp2);
26889 ecode3 = SWIG_AsVal_double(obj2, &val3);
26890 if (!SWIG_IsOK(ecode3)) {
26891 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "3"" of type '" "wxDouble""'");
26892 }
26893 arg3 = static_cast< wxDouble >(val3);
26894 ecode4 = SWIG_AsVal_double(obj3, &val4);
26895 if (!SWIG_IsOK(ecode4)) {
26896 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "4"" of type '" "wxDouble""'");
26897 }
26898 arg4 = static_cast< wxDouble >(val4);
26899 ecode5 = SWIG_AsVal_double(obj4, &val5);
26900 if (!SWIG_IsOK(ecode5)) {
26901 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "5"" of type '" "wxDouble""'");
26902 }
26903 arg5 = static_cast< wxDouble >(val5);
26904 ecode6 = SWIG_AsVal_double(obj5, &val6);
26905 if (!SWIG_IsOK(ecode6)) {
26906 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "6"" of type '" "wxDouble""'");
26907 }
26908 arg6 = static_cast< wxDouble >(val6);
26909 {
26910 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4,arg5,arg6);
26911 if (PyErr_Occurred()) SWIG_fail;
26912 }
26913 resultobj = SWIG_Py_Void();
26914 return resultobj;
26915 fail:
26916 return NULL;
26917 }
26918
26919
26920 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26921 PyObject *resultobj = 0;
26922 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26923 wxDouble arg2 ;
26924 wxDouble arg3 ;
26925 wxDouble arg4 ;
26926 wxDouble arg5 ;
26927 void *argp1 = 0 ;
26928 int res1 = 0 ;
26929 double val2 ;
26930 int ecode2 = 0 ;
26931 double val3 ;
26932 int ecode3 = 0 ;
26933 double val4 ;
26934 int ecode4 = 0 ;
26935 double val5 ;
26936 int ecode5 = 0 ;
26937 PyObject * obj0 = 0 ;
26938 PyObject * obj1 = 0 ;
26939 PyObject * obj2 = 0 ;
26940 PyObject * obj3 = 0 ;
26941 PyObject * obj4 = 0 ;
26942 char * kwnames[] = {
26943 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
26944 };
26945
26946 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_StrokeLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26947 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26948 if (!SWIG_IsOK(res1)) {
26949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26950 }
26951 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26952 ecode2 = SWIG_AsVal_double(obj1, &val2);
26953 if (!SWIG_IsOK(ecode2)) {
26954 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "2"" of type '" "wxDouble""'");
26955 }
26956 arg2 = static_cast< wxDouble >(val2);
26957 ecode3 = SWIG_AsVal_double(obj2, &val3);
26958 if (!SWIG_IsOK(ecode3)) {
26959 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "3"" of type '" "wxDouble""'");
26960 }
26961 arg3 = static_cast< wxDouble >(val3);
26962 ecode4 = SWIG_AsVal_double(obj3, &val4);
26963 if (!SWIG_IsOK(ecode4)) {
26964 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "4"" of type '" "wxDouble""'");
26965 }
26966 arg4 = static_cast< wxDouble >(val4);
26967 ecode5 = SWIG_AsVal_double(obj4, &val5);
26968 if (!SWIG_IsOK(ecode5)) {
26969 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "5"" of type '" "wxDouble""'");
26970 }
26971 arg5 = static_cast< wxDouble >(val5);
26972 {
26973 (arg1)->StrokeLine(arg2,arg3,arg4,arg5);
26974 if (PyErr_Occurred()) SWIG_fail;
26975 }
26976 resultobj = SWIG_Py_Void();
26977 return resultobj;
26978 fail:
26979 return NULL;
26980 }
26981
26982
26983 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26984 PyObject *resultobj = 0;
26985 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26986 size_t arg2 ;
26987 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
26988 void *argp1 = 0 ;
26989 int res1 = 0 ;
26990 PyObject * obj0 = 0 ;
26991 PyObject * obj1 = 0 ;
26992 char * kwnames[] = {
26993 (char *) "self",(char *) "points", NULL
26994 };
26995
26996 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokeLines",kwnames,&obj0,&obj1)) SWIG_fail;
26997 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26998 if (!SWIG_IsOK(res1)) {
26999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27000 }
27001 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27002 {
27003 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
27004 if (arg3 == NULL) SWIG_fail;
27005 }
27006 {
27007 (arg1)->StrokeLines(arg2,(wxPoint2D const *)arg3);
27008 if (PyErr_Occurred()) SWIG_fail;
27009 }
27010 resultobj = SWIG_Py_Void();
27011 {
27012 if (arg3) delete [] arg3;
27013 }
27014 return resultobj;
27015 fail:
27016 {
27017 if (arg3) delete [] arg3;
27018 }
27019 return NULL;
27020 }
27021
27022
27023 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLineSegements(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27024 PyObject *resultobj = 0;
27025 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27026 PyObject *arg2 = (PyObject *) 0 ;
27027 PyObject *arg3 = (PyObject *) 0 ;
27028 void *argp1 = 0 ;
27029 int res1 = 0 ;
27030 PyObject * obj0 = 0 ;
27031 PyObject * obj1 = 0 ;
27032 PyObject * obj2 = 0 ;
27033 char * kwnames[] = {
27034 (char *) "self",(char *) "beginPoints",(char *) "endPoints", NULL
27035 };
27036
27037 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_StrokeLineSegements",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27038 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27039 if (!SWIG_IsOK(res1)) {
27040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLineSegements" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27041 }
27042 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27043 arg2 = obj1;
27044 arg3 = obj2;
27045 {
27046 wxGraphicsContext_StrokeLineSegements(arg1,arg2,arg3);
27047 if (PyErr_Occurred()) SWIG_fail;
27048 }
27049 resultobj = SWIG_Py_Void();
27050 return resultobj;
27051 fail:
27052 return NULL;
27053 }
27054
27055
27056 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27057 PyObject *resultobj = 0;
27058 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27059 size_t arg2 ;
27060 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
27061 int arg4 = (int) wxWINDING_RULE ;
27062 void *argp1 = 0 ;
27063 int res1 = 0 ;
27064 int val4 ;
27065 int ecode4 = 0 ;
27066 PyObject * obj0 = 0 ;
27067 PyObject * obj1 = 0 ;
27068 PyObject * obj2 = 0 ;
27069 char * kwnames[] = {
27070 (char *) "self",(char *) "points",(char *) "fillStyle", NULL
27071 };
27072
27073 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27074 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27075 if (!SWIG_IsOK(res1)) {
27076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27077 }
27078 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27079 {
27080 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
27081 if (arg3 == NULL) SWIG_fail;
27082 }
27083 if (obj2) {
27084 ecode4 = SWIG_AsVal_int(obj2, &val4);
27085 if (!SWIG_IsOK(ecode4)) {
27086 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawLines" "', expected argument " "4"" of type '" "int""'");
27087 }
27088 arg4 = static_cast< int >(val4);
27089 }
27090 {
27091 (arg1)->DrawLines(arg2,(wxPoint2D const *)arg3,arg4);
27092 if (PyErr_Occurred()) SWIG_fail;
27093 }
27094 resultobj = SWIG_Py_Void();
27095 {
27096 if (arg3) delete [] arg3;
27097 }
27098 return resultobj;
27099 fail:
27100 {
27101 if (arg3) delete [] arg3;
27102 }
27103 return NULL;
27104 }
27105
27106
27107 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27108 PyObject *resultobj = 0;
27109 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27110 wxDouble arg2 ;
27111 wxDouble arg3 ;
27112 wxDouble arg4 ;
27113 wxDouble arg5 ;
27114 void *argp1 = 0 ;
27115 int res1 = 0 ;
27116 double val2 ;
27117 int ecode2 = 0 ;
27118 double val3 ;
27119 int ecode3 = 0 ;
27120 double val4 ;
27121 int ecode4 = 0 ;
27122 double val5 ;
27123 int ecode5 = 0 ;
27124 PyObject * obj0 = 0 ;
27125 PyObject * obj1 = 0 ;
27126 PyObject * obj2 = 0 ;
27127 PyObject * obj3 = 0 ;
27128 PyObject * obj4 = 0 ;
27129 char * kwnames[] = {
27130 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
27131 };
27132
27133 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27134 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27135 if (!SWIG_IsOK(res1)) {
27136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27137 }
27138 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27139 ecode2 = SWIG_AsVal_double(obj1, &val2);
27140 if (!SWIG_IsOK(ecode2)) {
27141 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
27142 }
27143 arg2 = static_cast< wxDouble >(val2);
27144 ecode3 = SWIG_AsVal_double(obj2, &val3);
27145 if (!SWIG_IsOK(ecode3)) {
27146 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
27147 }
27148 arg3 = static_cast< wxDouble >(val3);
27149 ecode4 = SWIG_AsVal_double(obj3, &val4);
27150 if (!SWIG_IsOK(ecode4)) {
27151 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
27152 }
27153 arg4 = static_cast< wxDouble >(val4);
27154 ecode5 = SWIG_AsVal_double(obj4, &val5);
27155 if (!SWIG_IsOK(ecode5)) {
27156 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
27157 }
27158 arg5 = static_cast< wxDouble >(val5);
27159 {
27160 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
27161 if (PyErr_Occurred()) SWIG_fail;
27162 }
27163 resultobj = SWIG_Py_Void();
27164 return resultobj;
27165 fail:
27166 return NULL;
27167 }
27168
27169
27170 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27171 PyObject *resultobj = 0;
27172 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27173 wxDouble arg2 ;
27174 wxDouble arg3 ;
27175 wxDouble arg4 ;
27176 wxDouble arg5 ;
27177 void *argp1 = 0 ;
27178 int res1 = 0 ;
27179 double val2 ;
27180 int ecode2 = 0 ;
27181 double val3 ;
27182 int ecode3 = 0 ;
27183 double val4 ;
27184 int ecode4 = 0 ;
27185 double val5 ;
27186 int ecode5 = 0 ;
27187 PyObject * obj0 = 0 ;
27188 PyObject * obj1 = 0 ;
27189 PyObject * obj2 = 0 ;
27190 PyObject * obj3 = 0 ;
27191 PyObject * obj4 = 0 ;
27192 char * kwnames[] = {
27193 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
27194 };
27195
27196 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27197 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27198 if (!SWIG_IsOK(res1)) {
27199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27200 }
27201 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27202 ecode2 = SWIG_AsVal_double(obj1, &val2);
27203 if (!SWIG_IsOK(ecode2)) {
27204 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
27205 }
27206 arg2 = static_cast< wxDouble >(val2);
27207 ecode3 = SWIG_AsVal_double(obj2, &val3);
27208 if (!SWIG_IsOK(ecode3)) {
27209 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
27210 }
27211 arg3 = static_cast< wxDouble >(val3);
27212 ecode4 = SWIG_AsVal_double(obj3, &val4);
27213 if (!SWIG_IsOK(ecode4)) {
27214 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
27215 }
27216 arg4 = static_cast< wxDouble >(val4);
27217 ecode5 = SWIG_AsVal_double(obj4, &val5);
27218 if (!SWIG_IsOK(ecode5)) {
27219 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
27220 }
27221 arg5 = static_cast< wxDouble >(val5);
27222 {
27223 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
27224 if (PyErr_Occurred()) SWIG_fail;
27225 }
27226 resultobj = SWIG_Py_Void();
27227 return resultobj;
27228 fail:
27229 return NULL;
27230 }
27231
27232
27233 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27234 PyObject *resultobj = 0;
27235 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27236 wxDouble arg2 ;
27237 wxDouble arg3 ;
27238 wxDouble arg4 ;
27239 wxDouble arg5 ;
27240 wxDouble arg6 ;
27241 void *argp1 = 0 ;
27242 int res1 = 0 ;
27243 double val2 ;
27244 int ecode2 = 0 ;
27245 double val3 ;
27246 int ecode3 = 0 ;
27247 double val4 ;
27248 int ecode4 = 0 ;
27249 double val5 ;
27250 int ecode5 = 0 ;
27251 double val6 ;
27252 int ecode6 = 0 ;
27253 PyObject * obj0 = 0 ;
27254 PyObject * obj1 = 0 ;
27255 PyObject * obj2 = 0 ;
27256 PyObject * obj3 = 0 ;
27257 PyObject * obj4 = 0 ;
27258 PyObject * obj5 = 0 ;
27259 char * kwnames[] = {
27260 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
27261 };
27262
27263 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
27264 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27265 if (!SWIG_IsOK(res1)) {
27266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27267 }
27268 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27269 ecode2 = SWIG_AsVal_double(obj1, &val2);
27270 if (!SWIG_IsOK(ecode2)) {
27271 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
27272 }
27273 arg2 = static_cast< wxDouble >(val2);
27274 ecode3 = SWIG_AsVal_double(obj2, &val3);
27275 if (!SWIG_IsOK(ecode3)) {
27276 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
27277 }
27278 arg3 = static_cast< wxDouble >(val3);
27279 ecode4 = SWIG_AsVal_double(obj3, &val4);
27280 if (!SWIG_IsOK(ecode4)) {
27281 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
27282 }
27283 arg4 = static_cast< wxDouble >(val4);
27284 ecode5 = SWIG_AsVal_double(obj4, &val5);
27285 if (!SWIG_IsOK(ecode5)) {
27286 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
27287 }
27288 arg5 = static_cast< wxDouble >(val5);
27289 ecode6 = SWIG_AsVal_double(obj5, &val6);
27290 if (!SWIG_IsOK(ecode6)) {
27291 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
27292 }
27293 arg6 = static_cast< wxDouble >(val6);
27294 {
27295 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
27296 if (PyErr_Occurred()) SWIG_fail;
27297 }
27298 resultobj = SWIG_Py_Void();
27299 return resultobj;
27300 fail:
27301 return NULL;
27302 }
27303
27304
27305 SWIGINTERN PyObject *GraphicsContext_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27306 PyObject *obj;
27307 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27308 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsContext, SWIG_NewClientData(obj));
27309 return SWIG_Py_Void();
27310 }
27311
27312 SWIGINTERN PyObject *_wrap_new_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27313 PyObject *resultobj = 0;
27314 wxWindowDC *arg1 = 0 ;
27315 wxGCDC *result = 0 ;
27316 void *argp1 = 0 ;
27317 int res1 = 0 ;
27318 PyObject * obj0 = 0 ;
27319 char * kwnames[] = {
27320 (char *) "dc", NULL
27321 };
27322
27323 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_GCDC",kwnames,&obj0)) SWIG_fail;
27324 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
27325 if (!SWIG_IsOK(res1)) {
27326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
27327 }
27328 if (!argp1) {
27329 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
27330 }
27331 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
27332 {
27333 if (!wxPyCheckForApp()) SWIG_fail;
27334 PyThreadState* __tstate = wxPyBeginAllowThreads();
27335 result = (wxGCDC *)new wxGCDC((wxWindowDC const &)*arg1);
27336 wxPyEndAllowThreads(__tstate);
27337 if (PyErr_Occurred()) SWIG_fail;
27338 }
27339 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
27340 return resultobj;
27341 fail:
27342 return NULL;
27343 }
27344
27345
27346 SWIGINTERN PyObject *_wrap_delete_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27347 PyObject *resultobj = 0;
27348 wxGCDC *arg1 = (wxGCDC *) 0 ;
27349 void *argp1 = 0 ;
27350 int res1 = 0 ;
27351 PyObject *swig_obj[1] ;
27352
27353 if (!args) SWIG_fail;
27354 swig_obj[0] = args;
27355 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, SWIG_POINTER_DISOWN | 0 );
27356 if (!SWIG_IsOK(res1)) {
27357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCDC" "', expected argument " "1"" of type '" "wxGCDC *""'");
27358 }
27359 arg1 = reinterpret_cast< wxGCDC * >(argp1);
27360 {
27361 delete arg1;
27362
27363 if (PyErr_Occurred()) SWIG_fail;
27364 }
27365 resultobj = SWIG_Py_Void();
27366 return resultobj;
27367 fail:
27368 return NULL;
27369 }
27370
27371
27372 SWIGINTERN PyObject *_wrap_GCDC_GetGraphicContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27373 PyObject *resultobj = 0;
27374 wxGCDC *arg1 = (wxGCDC *) 0 ;
27375 wxGraphicsContext *result = 0 ;
27376 void *argp1 = 0 ;
27377 int res1 = 0 ;
27378 PyObject *swig_obj[1] ;
27379
27380 if (!args) SWIG_fail;
27381 swig_obj[0] = args;
27382 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
27383 if (!SWIG_IsOK(res1)) {
27384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_GetGraphicContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
27385 }
27386 arg1 = reinterpret_cast< wxGCDC * >(argp1);
27387 {
27388 result = (wxGraphicsContext *)(arg1)->GetGraphicContext();
27389 if (PyErr_Occurred()) SWIG_fail;
27390 }
27391 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27392 return resultobj;
27393 fail:
27394 return NULL;
27395 }
27396
27397
27398 SWIGINTERN PyObject *GCDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27399 PyObject *obj;
27400 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27401 SWIG_TypeNewClientData(SWIGTYPE_p_wxGCDC, SWIG_NewClientData(obj));
27402 return SWIG_Py_Void();
27403 }
27404
27405 SWIGINTERN PyObject *GCDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27406 return SWIG_Python_InitShadowInstance(args);
27407 }
27408
27409 SWIGINTERN PyObject *_wrap_new_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27410 PyObject *resultobj = 0;
27411 wxOverlay *result = 0 ;
27412
27413 if (!SWIG_Python_UnpackTuple(args,"new_Overlay",0,0,0)) SWIG_fail;
27414 {
27415 PyThreadState* __tstate = wxPyBeginAllowThreads();
27416 result = (wxOverlay *)new wxOverlay();
27417 wxPyEndAllowThreads(__tstate);
27418 if (PyErr_Occurred()) SWIG_fail;
27419 }
27420 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxOverlay, SWIG_POINTER_NEW | 0 );
27421 return resultobj;
27422 fail:
27423 return NULL;
27424 }
27425
27426
27427 SWIGINTERN PyObject *_wrap_delete_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27428 PyObject *resultobj = 0;
27429 wxOverlay *arg1 = (wxOverlay *) 0 ;
27430 void *argp1 = 0 ;
27431 int res1 = 0 ;
27432 PyObject *swig_obj[1] ;
27433
27434 if (!args) SWIG_fail;
27435 swig_obj[0] = args;
27436 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, SWIG_POINTER_DISOWN | 0 );
27437 if (!SWIG_IsOK(res1)) {
27438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Overlay" "', expected argument " "1"" of type '" "wxOverlay *""'");
27439 }
27440 arg1 = reinterpret_cast< wxOverlay * >(argp1);
27441 {
27442 PyThreadState* __tstate = wxPyBeginAllowThreads();
27443 delete arg1;
27444
27445 wxPyEndAllowThreads(__tstate);
27446 if (PyErr_Occurred()) SWIG_fail;
27447 }
27448 resultobj = SWIG_Py_Void();
27449 return resultobj;
27450 fail:
27451 return NULL;
27452 }
27453
27454
27455 SWIGINTERN PyObject *_wrap_Overlay_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27456 PyObject *resultobj = 0;
27457 wxOverlay *arg1 = (wxOverlay *) 0 ;
27458 void *argp1 = 0 ;
27459 int res1 = 0 ;
27460 PyObject *swig_obj[1] ;
27461
27462 if (!args) SWIG_fail;
27463 swig_obj[0] = args;
27464 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, 0 | 0 );
27465 if (!SWIG_IsOK(res1)) {
27466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Overlay_Reset" "', expected argument " "1"" of type '" "wxOverlay *""'");
27467 }
27468 arg1 = reinterpret_cast< wxOverlay * >(argp1);
27469 {
27470 PyThreadState* __tstate = wxPyBeginAllowThreads();
27471 (arg1)->Reset();
27472 wxPyEndAllowThreads(__tstate);
27473 if (PyErr_Occurred()) SWIG_fail;
27474 }
27475 resultobj = SWIG_Py_Void();
27476 return resultobj;
27477 fail:
27478 return NULL;
27479 }
27480
27481
27482 SWIGINTERN PyObject *Overlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27483 PyObject *obj;
27484 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27485 SWIG_TypeNewClientData(SWIGTYPE_p_wxOverlay, SWIG_NewClientData(obj));
27486 return SWIG_Py_Void();
27487 }
27488
27489 SWIGINTERN PyObject *Overlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27490 return SWIG_Python_InitShadowInstance(args);
27491 }
27492
27493 SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27494 PyObject *resultobj = 0;
27495 wxOverlay *arg1 = 0 ;
27496 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
27497 int arg3 ;
27498 int arg4 ;
27499 int arg5 ;
27500 int arg6 ;
27501 wxDCOverlay *result = 0 ;
27502 void *argp1 = 0 ;
27503 int res1 = 0 ;
27504 void *argp2 = 0 ;
27505 int res2 = 0 ;
27506 int val3 ;
27507 int ecode3 = 0 ;
27508 int val4 ;
27509 int ecode4 = 0 ;
27510 int val5 ;
27511 int ecode5 = 0 ;
27512 int val6 ;
27513 int ecode6 = 0 ;
27514
27515 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
27516 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
27517 if (!SWIG_IsOK(res1)) {
27518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
27519 }
27520 if (!argp1) {
27521 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
27522 }
27523 arg1 = reinterpret_cast< wxOverlay * >(argp1);
27524 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
27525 if (!SWIG_IsOK(res2)) {
27526 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
27527 }
27528 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
27529 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
27530 if (!SWIG_IsOK(ecode3)) {
27531 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCOverlay" "', expected argument " "3"" of type '" "int""'");
27532 }
27533 arg3 = static_cast< int >(val3);
27534 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
27535 if (!SWIG_IsOK(ecode4)) {
27536 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCOverlay" "', expected argument " "4"" of type '" "int""'");
27537 }
27538 arg4 = static_cast< int >(val4);
27539 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
27540 if (!SWIG_IsOK(ecode5)) {
27541 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCOverlay" "', expected argument " "5"" of type '" "int""'");
27542 }
27543 arg5 = static_cast< int >(val5);
27544 ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
27545 if (!SWIG_IsOK(ecode6)) {
27546 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DCOverlay" "', expected argument " "6"" of type '" "int""'");
27547 }
27548 arg6 = static_cast< int >(val6);
27549 {
27550 PyThreadState* __tstate = wxPyBeginAllowThreads();
27551 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2,arg3,arg4,arg5,arg6);
27552 wxPyEndAllowThreads(__tstate);
27553 if (PyErr_Occurred()) SWIG_fail;
27554 }
27555 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
27556 return resultobj;
27557 fail:
27558 return NULL;
27559 }
27560
27561
27562 SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27563 PyObject *resultobj = 0;
27564 wxOverlay *arg1 = 0 ;
27565 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
27566 wxDCOverlay *result = 0 ;
27567 void *argp1 = 0 ;
27568 int res1 = 0 ;
27569 void *argp2 = 0 ;
27570 int res2 = 0 ;
27571
27572 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
27573 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
27574 if (!SWIG_IsOK(res1)) {
27575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
27576 }
27577 if (!argp1) {
27578 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
27579 }
27580 arg1 = reinterpret_cast< wxOverlay * >(argp1);
27581 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
27582 if (!SWIG_IsOK(res2)) {
27583 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
27584 }
27585 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
27586 {
27587 PyThreadState* __tstate = wxPyBeginAllowThreads();
27588 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2);
27589 wxPyEndAllowThreads(__tstate);
27590 if (PyErr_Occurred()) SWIG_fail;
27591 }
27592 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
27593 return resultobj;
27594 fail:
27595 return NULL;
27596 }
27597
27598
27599 SWIGINTERN PyObject *_wrap_new_DCOverlay(PyObject *self, PyObject *args) {
27600 int argc;
27601 PyObject *argv[7];
27602
27603 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCOverlay",0,6,argv))) SWIG_fail;
27604 --argc;
27605 if (argc == 2) {
27606 return _wrap_new_DCOverlay__SWIG_1(self, argc, argv);
27607 }
27608 if (argc == 6) {
27609 return _wrap_new_DCOverlay__SWIG_0(self, argc, argv);
27610 }
27611
27612 fail:
27613 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCOverlay'");
27614 return NULL;
27615 }
27616
27617
27618 SWIGINTERN PyObject *_wrap_delete_DCOverlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27619 PyObject *resultobj = 0;
27620 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
27621 void *argp1 = 0 ;
27622 int res1 = 0 ;
27623 PyObject *swig_obj[1] ;
27624
27625 if (!args) SWIG_fail;
27626 swig_obj[0] = args;
27627 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_DISOWN | 0 );
27628 if (!SWIG_IsOK(res1)) {
27629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCOverlay" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
27630 }
27631 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
27632 {
27633 PyThreadState* __tstate = wxPyBeginAllowThreads();
27634 delete arg1;
27635
27636 wxPyEndAllowThreads(__tstate);
27637 if (PyErr_Occurred()) SWIG_fail;
27638 }
27639 resultobj = SWIG_Py_Void();
27640 return resultobj;
27641 fail:
27642 return NULL;
27643 }
27644
27645
27646 SWIGINTERN PyObject *_wrap_DCOverlay_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27647 PyObject *resultobj = 0;
27648 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
27649 void *argp1 = 0 ;
27650 int res1 = 0 ;
27651 PyObject *swig_obj[1] ;
27652
27653 if (!args) SWIG_fail;
27654 swig_obj[0] = args;
27655 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, 0 | 0 );
27656 if (!SWIG_IsOK(res1)) {
27657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DCOverlay_Clear" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
27658 }
27659 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
27660 {
27661 PyThreadState* __tstate = wxPyBeginAllowThreads();
27662 (arg1)->Clear();
27663 wxPyEndAllowThreads(__tstate);
27664 if (PyErr_Occurred()) SWIG_fail;
27665 }
27666 resultobj = SWIG_Py_Void();
27667 return resultobj;
27668 fail:
27669 return NULL;
27670 }
27671
27672
27673 SWIGINTERN PyObject *DCOverlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27674 PyObject *obj;
27675 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27676 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCOverlay, SWIG_NewClientData(obj));
27677 return SWIG_Py_Void();
27678 }
27679
27680 SWIGINTERN PyObject *DCOverlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27681 return SWIG_Python_InitShadowInstance(args);
27682 }
27683
27684 SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27685 PyObject *resultobj = 0;
27686 int arg1 ;
27687 int arg2 ;
27688 int arg3 = (int) true ;
27689 int arg4 = (int) 1 ;
27690 wxImageList *result = 0 ;
27691 int val1 ;
27692 int ecode1 = 0 ;
27693 int val2 ;
27694 int ecode2 = 0 ;
27695 int val3 ;
27696 int ecode3 = 0 ;
27697 int val4 ;
27698 int ecode4 = 0 ;
27699 PyObject * obj0 = 0 ;
27700 PyObject * obj1 = 0 ;
27701 PyObject * obj2 = 0 ;
27702 PyObject * obj3 = 0 ;
27703 char * kwnames[] = {
27704 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
27705 };
27706
27707 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27708 ecode1 = SWIG_AsVal_int(obj0, &val1);
27709 if (!SWIG_IsOK(ecode1)) {
27710 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
27711 }
27712 arg1 = static_cast< int >(val1);
27713 ecode2 = SWIG_AsVal_int(obj1, &val2);
27714 if (!SWIG_IsOK(ecode2)) {
27715 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
27716 }
27717 arg2 = static_cast< int >(val2);
27718 if (obj2) {
27719 ecode3 = SWIG_AsVal_int(obj2, &val3);
27720 if (!SWIG_IsOK(ecode3)) {
27721 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
27722 }
27723 arg3 = static_cast< int >(val3);
27724 }
27725 if (obj3) {
27726 ecode4 = SWIG_AsVal_int(obj3, &val4);
27727 if (!SWIG_IsOK(ecode4)) {
27728 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
27729 }
27730 arg4 = static_cast< int >(val4);
27731 }
27732 {
27733 if (!wxPyCheckForApp()) SWIG_fail;
27734 PyThreadState* __tstate = wxPyBeginAllowThreads();
27735 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
27736 wxPyEndAllowThreads(__tstate);
27737 if (PyErr_Occurred()) SWIG_fail;
27738 }
27739 {
27740 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW);
27741 }
27742 return resultobj;
27743 fail:
27744 return NULL;
27745 }
27746
27747
27748 SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27749 PyObject *resultobj = 0;
27750 wxImageList *arg1 = (wxImageList *) 0 ;
27751 void *argp1 = 0 ;
27752 int res1 = 0 ;
27753 PyObject *swig_obj[1] ;
27754
27755 if (!args) SWIG_fail;
27756 swig_obj[0] = args;
27757 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
27758 if (!SWIG_IsOK(res1)) {
27759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
27760 }
27761 arg1 = reinterpret_cast< wxImageList * >(argp1);
27762 {
27763 PyThreadState* __tstate = wxPyBeginAllowThreads();
27764 delete arg1;
27765
27766 wxPyEndAllowThreads(__tstate);
27767 if (PyErr_Occurred()) SWIG_fail;
27768 }
27769 resultobj = SWIG_Py_Void();
27770 return resultobj;
27771 fail:
27772 return NULL;
27773 }
27774
27775
27776 SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27777 PyObject *resultobj = 0;
27778 wxImageList *arg1 = (wxImageList *) 0 ;
27779 wxBitmap *arg2 = 0 ;
27780 wxBitmap const &arg3_defvalue = wxNullBitmap ;
27781 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
27782 int result;
27783 void *argp1 = 0 ;
27784 int res1 = 0 ;
27785 void *argp2 = 0 ;
27786 int res2 = 0 ;
27787 void *argp3 = 0 ;
27788 int res3 = 0 ;
27789 PyObject * obj0 = 0 ;
27790 PyObject * obj1 = 0 ;
27791 PyObject * obj2 = 0 ;
27792 char * kwnames[] = {
27793 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
27794 };
27795
27796 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27797 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27798 if (!SWIG_IsOK(res1)) {
27799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
27800 }
27801 arg1 = reinterpret_cast< wxImageList * >(argp1);
27802 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
27803 if (!SWIG_IsOK(res2)) {
27804 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
27805 }
27806 if (!argp2) {
27807 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
27808 }
27809 arg2 = reinterpret_cast< wxBitmap * >(argp2);
27810 if (obj2) {
27811 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
27812 if (!SWIG_IsOK(res3)) {
27813 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
27814 }
27815 if (!argp3) {
27816 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
27817 }
27818 arg3 = reinterpret_cast< wxBitmap * >(argp3);
27819 }
27820 {
27821 PyThreadState* __tstate = wxPyBeginAllowThreads();
27822 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
27823 wxPyEndAllowThreads(__tstate);
27824 if (PyErr_Occurred()) SWIG_fail;
27825 }
27826 resultobj = SWIG_From_int(static_cast< int >(result));
27827 return resultobj;
27828 fail:
27829 return NULL;
27830 }
27831
27832
27833 SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27834 PyObject *resultobj = 0;
27835 wxImageList *arg1 = (wxImageList *) 0 ;
27836 wxBitmap *arg2 = 0 ;
27837 wxColour *arg3 = 0 ;
27838 int result;
27839 void *argp1 = 0 ;
27840 int res1 = 0 ;
27841 void *argp2 = 0 ;
27842 int res2 = 0 ;
27843 wxColour temp3 ;
27844 PyObject * obj0 = 0 ;
27845 PyObject * obj1 = 0 ;
27846 PyObject * obj2 = 0 ;
27847 char * kwnames[] = {
27848 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
27849 };
27850
27851 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27852 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27853 if (!SWIG_IsOK(res1)) {
27854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
27855 }
27856 arg1 = reinterpret_cast< wxImageList * >(argp1);
27857 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
27858 if (!SWIG_IsOK(res2)) {
27859 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
27860 }
27861 if (!argp2) {
27862 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
27863 }
27864 arg2 = reinterpret_cast< wxBitmap * >(argp2);
27865 {
27866 arg3 = &temp3;
27867 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
27868 }
27869 {
27870 PyThreadState* __tstate = wxPyBeginAllowThreads();
27871 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
27872 wxPyEndAllowThreads(__tstate);
27873 if (PyErr_Occurred()) SWIG_fail;
27874 }
27875 resultobj = SWIG_From_int(static_cast< int >(result));
27876 return resultobj;
27877 fail:
27878 return NULL;
27879 }
27880
27881
27882 SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27883 PyObject *resultobj = 0;
27884 wxImageList *arg1 = (wxImageList *) 0 ;
27885 wxIcon *arg2 = 0 ;
27886 int result;
27887 void *argp1 = 0 ;
27888 int res1 = 0 ;
27889 void *argp2 = 0 ;
27890 int res2 = 0 ;
27891 PyObject * obj0 = 0 ;
27892 PyObject * obj1 = 0 ;
27893 char * kwnames[] = {
27894 (char *) "self",(char *) "icon", NULL
27895 };
27896
27897 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
27898 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27899 if (!SWIG_IsOK(res1)) {
27900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
27901 }
27902 arg1 = reinterpret_cast< wxImageList * >(argp1);
27903 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
27904 if (!SWIG_IsOK(res2)) {
27905 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
27906 }
27907 if (!argp2) {
27908 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
27909 }
27910 arg2 = reinterpret_cast< wxIcon * >(argp2);
27911 {
27912 PyThreadState* __tstate = wxPyBeginAllowThreads();
27913 result = (int)(arg1)->Add((wxIcon const &)*arg2);
27914 wxPyEndAllowThreads(__tstate);
27915 if (PyErr_Occurred()) SWIG_fail;
27916 }
27917 resultobj = SWIG_From_int(static_cast< int >(result));
27918 return resultobj;
27919 fail:
27920 return NULL;
27921 }
27922
27923
27924 SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27925 PyObject *resultobj = 0;
27926 wxImageList *arg1 = (wxImageList *) 0 ;
27927 int arg2 ;
27928 SwigValueWrapper<wxBitmap > result;
27929 void *argp1 = 0 ;
27930 int res1 = 0 ;
27931 int val2 ;
27932 int ecode2 = 0 ;
27933 PyObject * obj0 = 0 ;
27934 PyObject * obj1 = 0 ;
27935 char * kwnames[] = {
27936 (char *) "self",(char *) "index", NULL
27937 };
27938
27939 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
27940 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27941 if (!SWIG_IsOK(res1)) {
27942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
27943 }
27944 arg1 = reinterpret_cast< wxImageList * >(argp1);
27945 ecode2 = SWIG_AsVal_int(obj1, &val2);
27946 if (!SWIG_IsOK(ecode2)) {
27947 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
27948 }
27949 arg2 = static_cast< int >(val2);
27950 {
27951 PyThreadState* __tstate = wxPyBeginAllowThreads();
27952 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
27953 wxPyEndAllowThreads(__tstate);
27954 if (PyErr_Occurred()) SWIG_fail;
27955 }
27956 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
27957 return resultobj;
27958 fail:
27959 return NULL;
27960 }
27961
27962
27963 SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27964 PyObject *resultobj = 0;
27965 wxImageList *arg1 = (wxImageList *) 0 ;
27966 int arg2 ;
27967 wxIcon result;
27968 void *argp1 = 0 ;
27969 int res1 = 0 ;
27970 int val2 ;
27971 int ecode2 = 0 ;
27972 PyObject * obj0 = 0 ;
27973 PyObject * obj1 = 0 ;
27974 char * kwnames[] = {
27975 (char *) "self",(char *) "index", NULL
27976 };
27977
27978 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
27979 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27980 if (!SWIG_IsOK(res1)) {
27981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
27982 }
27983 arg1 = reinterpret_cast< wxImageList * >(argp1);
27984 ecode2 = SWIG_AsVal_int(obj1, &val2);
27985 if (!SWIG_IsOK(ecode2)) {
27986 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
27987 }
27988 arg2 = static_cast< int >(val2);
27989 {
27990 PyThreadState* __tstate = wxPyBeginAllowThreads();
27991 result = ((wxImageList const *)arg1)->GetIcon(arg2);
27992 wxPyEndAllowThreads(__tstate);
27993 if (PyErr_Occurred()) SWIG_fail;
27994 }
27995 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
27996 return resultobj;
27997 fail:
27998 return NULL;
27999 }
28000
28001
28002 SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28003 PyObject *resultobj = 0;
28004 wxImageList *arg1 = (wxImageList *) 0 ;
28005 int arg2 ;
28006 wxBitmap *arg3 = 0 ;
28007 wxBitmap const &arg4_defvalue = wxNullBitmap ;
28008 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
28009 bool result;
28010 void *argp1 = 0 ;
28011 int res1 = 0 ;
28012 int val2 ;
28013 int ecode2 = 0 ;
28014 void *argp3 = 0 ;
28015 int res3 = 0 ;
28016 void *argp4 = 0 ;
28017 int res4 = 0 ;
28018 PyObject * obj0 = 0 ;
28019 PyObject * obj1 = 0 ;
28020 PyObject * obj2 = 0 ;
28021 PyObject * obj3 = 0 ;
28022 char * kwnames[] = {
28023 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
28024 };
28025
28026 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
28027 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
28028 if (!SWIG_IsOK(res1)) {
28029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
28030 }
28031 arg1 = reinterpret_cast< wxImageList * >(argp1);
28032 ecode2 = SWIG_AsVal_int(obj1, &val2);
28033 if (!SWIG_IsOK(ecode2)) {
28034 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
28035 }
28036 arg2 = static_cast< int >(val2);
28037 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
28038 if (!SWIG_IsOK(res3)) {
28039 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
28040 }
28041 if (!argp3) {
28042 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
28043 }
28044 arg3 = reinterpret_cast< wxBitmap * >(argp3);
28045 if (obj3) {
28046 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
28047 if (!SWIG_IsOK(res4)) {
28048 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
28049 }
28050 if (!argp4) {
28051 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
28052 }
28053 arg4 = reinterpret_cast< wxBitmap * >(argp4);
28054 }
28055 {
28056 PyThreadState* __tstate = wxPyBeginAllowThreads();
28057 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
28058 wxPyEndAllowThreads(__tstate);
28059 if (PyErr_Occurred()) SWIG_fail;
28060 }
28061 {
28062 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28063 }
28064 return resultobj;
28065 fail:
28066 return NULL;
28067 }
28068
28069
28070 SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28071 PyObject *resultobj = 0;
28072 wxImageList *arg1 = (wxImageList *) 0 ;
28073 int arg2 ;
28074 wxDC *arg3 = 0 ;
28075 int arg4 ;
28076 int arg5 ;
28077 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
28078 bool arg7 = (bool) (bool)false ;
28079 bool result;
28080 void *argp1 = 0 ;
28081 int res1 = 0 ;
28082 int val2 ;
28083 int ecode2 = 0 ;
28084 void *argp3 = 0 ;
28085 int res3 = 0 ;
28086 int val4 ;
28087 int ecode4 = 0 ;
28088 int val5 ;
28089 int ecode5 = 0 ;
28090 int val6 ;
28091 int ecode6 = 0 ;
28092 bool val7 ;
28093 int ecode7 = 0 ;
28094 PyObject * obj0 = 0 ;
28095 PyObject * obj1 = 0 ;
28096 PyObject * obj2 = 0 ;
28097 PyObject * obj3 = 0 ;
28098 PyObject * obj4 = 0 ;
28099 PyObject * obj5 = 0 ;
28100 PyObject * obj6 = 0 ;
28101 char * kwnames[] = {
28102 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
28103 };
28104
28105 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28106 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
28107 if (!SWIG_IsOK(res1)) {
28108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
28109 }
28110 arg1 = reinterpret_cast< wxImageList * >(argp1);
28111 ecode2 = SWIG_AsVal_int(obj1, &val2);
28112 if (!SWIG_IsOK(ecode2)) {
28113 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
28114 }
28115 arg2 = static_cast< int >(val2);
28116 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
28117 if (!SWIG_IsOK(res3)) {
28118 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
28119 }
28120 if (!argp3) {
28121 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
28122 }
28123 arg3 = reinterpret_cast< wxDC * >(argp3);
28124 ecode4 = SWIG_AsVal_int(obj3, &val4);
28125 if (!SWIG_IsOK(ecode4)) {
28126 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
28127 }
28128 arg4 = static_cast< int >(val4);
28129 ecode5 = SWIG_AsVal_int(obj4, &val5);
28130 if (!SWIG_IsOK(ecode5)) {
28131 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
28132 }
28133 arg5 = static_cast< int >(val5);
28134 if (obj5) {
28135 ecode6 = SWIG_AsVal_int(obj5, &val6);
28136 if (!SWIG_IsOK(ecode6)) {
28137 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
28138 }
28139 arg6 = static_cast< int >(val6);
28140 }
28141 if (obj6) {
28142 ecode7 = SWIG_AsVal_bool(obj6, &val7);
28143 if (!SWIG_IsOK(ecode7)) {
28144 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
28145 }
28146 arg7 = static_cast< bool >(val7);
28147 }
28148 {
28149 PyThreadState* __tstate = wxPyBeginAllowThreads();
28150 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
28151 wxPyEndAllowThreads(__tstate);
28152 if (PyErr_Occurred()) SWIG_fail;
28153 }
28154 {
28155 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28156 }
28157 return resultobj;
28158 fail:
28159 return NULL;
28160 }
28161
28162
28163 SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28164 PyObject *resultobj = 0;
28165 wxImageList *arg1 = (wxImageList *) 0 ;
28166 int result;
28167 void *argp1 = 0 ;
28168 int res1 = 0 ;
28169 PyObject *swig_obj[1] ;
28170
28171 if (!args) SWIG_fail;
28172 swig_obj[0] = args;
28173 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
28174 if (!SWIG_IsOK(res1)) {
28175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
28176 }
28177 arg1 = reinterpret_cast< wxImageList * >(argp1);
28178 {
28179 PyThreadState* __tstate = wxPyBeginAllowThreads();
28180 result = (int)(arg1)->GetImageCount();
28181 wxPyEndAllowThreads(__tstate);
28182 if (PyErr_Occurred()) SWIG_fail;
28183 }
28184 resultobj = SWIG_From_int(static_cast< int >(result));
28185 return resultobj;
28186 fail:
28187 return NULL;
28188 }
28189
28190
28191 SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28192 PyObject *resultobj = 0;
28193 wxImageList *arg1 = (wxImageList *) 0 ;
28194 int arg2 ;
28195 bool result;
28196 void *argp1 = 0 ;
28197 int res1 = 0 ;
28198 int val2 ;
28199 int ecode2 = 0 ;
28200 PyObject * obj0 = 0 ;
28201 PyObject * obj1 = 0 ;
28202 char * kwnames[] = {
28203 (char *) "self",(char *) "index", NULL
28204 };
28205
28206 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
28207 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
28208 if (!SWIG_IsOK(res1)) {
28209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
28210 }
28211 arg1 = reinterpret_cast< wxImageList * >(argp1);
28212 ecode2 = SWIG_AsVal_int(obj1, &val2);
28213 if (!SWIG_IsOK(ecode2)) {
28214 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
28215 }
28216 arg2 = static_cast< int >(val2);
28217 {
28218 PyThreadState* __tstate = wxPyBeginAllowThreads();
28219 result = (bool)(arg1)->Remove(arg2);
28220 wxPyEndAllowThreads(__tstate);
28221 if (PyErr_Occurred()) SWIG_fail;
28222 }
28223 {
28224 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28225 }
28226 return resultobj;
28227 fail:
28228 return NULL;
28229 }
28230
28231
28232 SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28233 PyObject *resultobj = 0;
28234 wxImageList *arg1 = (wxImageList *) 0 ;
28235 bool result;
28236 void *argp1 = 0 ;
28237 int res1 = 0 ;
28238 PyObject *swig_obj[1] ;
28239
28240 if (!args) SWIG_fail;
28241 swig_obj[0] = args;
28242 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
28243 if (!SWIG_IsOK(res1)) {
28244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
28245 }
28246 arg1 = reinterpret_cast< wxImageList * >(argp1);
28247 {
28248 PyThreadState* __tstate = wxPyBeginAllowThreads();
28249 result = (bool)(arg1)->RemoveAll();
28250 wxPyEndAllowThreads(__tstate);
28251 if (PyErr_Occurred()) SWIG_fail;
28252 }
28253 {
28254 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28255 }
28256 return resultobj;
28257 fail:
28258 return NULL;
28259 }
28260
28261
28262 SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28263 PyObject *resultobj = 0;
28264 wxImageList *arg1 = (wxImageList *) 0 ;
28265 int arg2 ;
28266 int *arg3 = 0 ;
28267 int *arg4 = 0 ;
28268 void *argp1 = 0 ;
28269 int res1 = 0 ;
28270 int val2 ;
28271 int ecode2 = 0 ;
28272 int temp3 ;
28273 int res3 = SWIG_TMPOBJ ;
28274 int temp4 ;
28275 int res4 = SWIG_TMPOBJ ;
28276 PyObject * obj0 = 0 ;
28277 PyObject * obj1 = 0 ;
28278 char * kwnames[] = {
28279 (char *) "self",(char *) "index", NULL
28280 };
28281
28282 arg3 = &temp3;
28283 arg4 = &temp4;
28284 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
28285 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
28286 if (!SWIG_IsOK(res1)) {
28287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
28288 }
28289 arg1 = reinterpret_cast< wxImageList * >(argp1);
28290 ecode2 = SWIG_AsVal_int(obj1, &val2);
28291 if (!SWIG_IsOK(ecode2)) {
28292 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
28293 }
28294 arg2 = static_cast< int >(val2);
28295 {
28296 PyThreadState* __tstate = wxPyBeginAllowThreads();
28297 (arg1)->GetSize(arg2,*arg3,*arg4);
28298 wxPyEndAllowThreads(__tstate);
28299 if (PyErr_Occurred()) SWIG_fail;
28300 }
28301 resultobj = SWIG_Py_Void();
28302 if (SWIG_IsTmpObj(res3)) {
28303 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
28304 } else {
28305 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
28306 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
28307 }
28308 if (SWIG_IsTmpObj(res4)) {
28309 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
28310 } else {
28311 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
28312 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
28313 }
28314 return resultobj;
28315 fail:
28316 return NULL;
28317 }
28318
28319
28320 SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28321 PyObject *obj;
28322 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28323 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
28324 return SWIG_Py_Void();
28325 }
28326
28327 SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28328 return SWIG_Python_InitShadowInstance(args);
28329 }
28330
28331 SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28332 PyObject *resultobj = 0;
28333 wxStockGDI *result = 0 ;
28334
28335 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
28336 {
28337 PyThreadState* __tstate = wxPyBeginAllowThreads();
28338 result = (wxStockGDI *)new wxStockGDI();
28339 wxPyEndAllowThreads(__tstate);
28340 if (PyErr_Occurred()) SWIG_fail;
28341 }
28342 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
28343 return resultobj;
28344 fail:
28345 return NULL;
28346 }
28347
28348
28349 SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28350 PyObject *resultobj = 0;
28351 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
28352 void *argp1 = 0 ;
28353 int res1 = 0 ;
28354 PyObject *swig_obj[1] ;
28355
28356 if (!args) SWIG_fail;
28357 swig_obj[0] = args;
28358 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
28359 if (!SWIG_IsOK(res1)) {
28360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
28361 }
28362 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
28363 {
28364 PyThreadState* __tstate = wxPyBeginAllowThreads();
28365 delete arg1;
28366
28367 wxPyEndAllowThreads(__tstate);
28368 if (PyErr_Occurred()) SWIG_fail;
28369 }
28370 resultobj = SWIG_Py_Void();
28371 return resultobj;
28372 fail:
28373 return NULL;
28374 }
28375
28376
28377 SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28378 PyObject *resultobj = 0;
28379
28380 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
28381 {
28382 PyThreadState* __tstate = wxPyBeginAllowThreads();
28383 wxStockGDI::DeleteAll();
28384 wxPyEndAllowThreads(__tstate);
28385 if (PyErr_Occurred()) SWIG_fail;
28386 }
28387 resultobj = SWIG_Py_Void();
28388 return resultobj;
28389 fail:
28390 return NULL;
28391 }
28392
28393
28394 SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28395 PyObject *resultobj = 0;
28396 wxStockGDI *result = 0 ;
28397
28398 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
28399 {
28400 PyThreadState* __tstate = wxPyBeginAllowThreads();
28401 {
28402 wxStockGDI &_result_ref = wxStockGDI::instance();
28403 result = (wxStockGDI *) &_result_ref;
28404 }
28405 wxPyEndAllowThreads(__tstate);
28406 if (PyErr_Occurred()) SWIG_fail;
28407 }
28408 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
28409 return resultobj;
28410 fail:
28411 return NULL;
28412 }
28413
28414
28415 SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28416 PyObject *resultobj = 0;
28417 wxStockGDI::Item arg1 ;
28418 wxBrush *result = 0 ;
28419 int val1 ;
28420 int ecode1 = 0 ;
28421 PyObject * obj0 = 0 ;
28422 char * kwnames[] = {
28423 (char *) "item", NULL
28424 };
28425
28426 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
28427 ecode1 = SWIG_AsVal_int(obj0, &val1);
28428 if (!SWIG_IsOK(ecode1)) {
28429 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
28430 }
28431 arg1 = static_cast< wxStockGDI::Item >(val1);
28432 {
28433 PyThreadState* __tstate = wxPyBeginAllowThreads();
28434 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
28435 wxPyEndAllowThreads(__tstate);
28436 if (PyErr_Occurred()) SWIG_fail;
28437 }
28438 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
28439 return resultobj;
28440 fail:
28441 return NULL;
28442 }
28443
28444
28445 SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28446 PyObject *resultobj = 0;
28447 wxStockGDI::Item arg1 ;
28448 wxColour *result = 0 ;
28449 int val1 ;
28450 int ecode1 = 0 ;
28451 PyObject * obj0 = 0 ;
28452 char * kwnames[] = {
28453 (char *) "item", NULL
28454 };
28455
28456 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
28457 ecode1 = SWIG_AsVal_int(obj0, &val1);
28458 if (!SWIG_IsOK(ecode1)) {
28459 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
28460 }
28461 arg1 = static_cast< wxStockGDI::Item >(val1);
28462 {
28463 PyThreadState* __tstate = wxPyBeginAllowThreads();
28464 result = (wxColour *)wxStockGDI::GetColour(arg1);
28465 wxPyEndAllowThreads(__tstate);
28466 if (PyErr_Occurred()) SWIG_fail;
28467 }
28468 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
28469 return resultobj;
28470 fail:
28471 return NULL;
28472 }
28473
28474
28475 SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28476 PyObject *resultobj = 0;
28477 wxStockGDI::Item arg1 ;
28478 wxCursor *result = 0 ;
28479 int val1 ;
28480 int ecode1 = 0 ;
28481 PyObject * obj0 = 0 ;
28482 char * kwnames[] = {
28483 (char *) "item", NULL
28484 };
28485
28486 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
28487 ecode1 = SWIG_AsVal_int(obj0, &val1);
28488 if (!SWIG_IsOK(ecode1)) {
28489 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
28490 }
28491 arg1 = static_cast< wxStockGDI::Item >(val1);
28492 {
28493 PyThreadState* __tstate = wxPyBeginAllowThreads();
28494 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
28495 wxPyEndAllowThreads(__tstate);
28496 if (PyErr_Occurred()) SWIG_fail;
28497 }
28498 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
28499 return resultobj;
28500 fail:
28501 return NULL;
28502 }
28503
28504
28505 SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28506 PyObject *resultobj = 0;
28507 wxStockGDI::Item arg1 ;
28508 wxPen *result = 0 ;
28509 int val1 ;
28510 int ecode1 = 0 ;
28511 PyObject * obj0 = 0 ;
28512 char * kwnames[] = {
28513 (char *) "item", NULL
28514 };
28515
28516 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
28517 ecode1 = SWIG_AsVal_int(obj0, &val1);
28518 if (!SWIG_IsOK(ecode1)) {
28519 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
28520 }
28521 arg1 = static_cast< wxStockGDI::Item >(val1);
28522 {
28523 PyThreadState* __tstate = wxPyBeginAllowThreads();
28524 result = (wxPen *)wxStockGDI::GetPen(arg1);
28525 wxPyEndAllowThreads(__tstate);
28526 if (PyErr_Occurred()) SWIG_fail;
28527 }
28528 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
28529 return resultobj;
28530 fail:
28531 return NULL;
28532 }
28533
28534
28535 SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28536 PyObject *resultobj = 0;
28537 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
28538 wxStockGDI::Item arg2 ;
28539 wxFont *result = 0 ;
28540 void *argp1 = 0 ;
28541 int res1 = 0 ;
28542 int val2 ;
28543 int ecode2 = 0 ;
28544 PyObject * obj0 = 0 ;
28545 PyObject * obj1 = 0 ;
28546 char * kwnames[] = {
28547 (char *) "self",(char *) "item", NULL
28548 };
28549
28550 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
28551 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
28552 if (!SWIG_IsOK(res1)) {
28553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
28554 }
28555 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
28556 ecode2 = SWIG_AsVal_int(obj1, &val2);
28557 if (!SWIG_IsOK(ecode2)) {
28558 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
28559 }
28560 arg2 = static_cast< wxStockGDI::Item >(val2);
28561 {
28562 PyThreadState* __tstate = wxPyBeginAllowThreads();
28563 result = (wxFont *)(arg1)->GetFont(arg2);
28564 wxPyEndAllowThreads(__tstate);
28565 if (PyErr_Occurred()) SWIG_fail;
28566 }
28567 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
28568 return resultobj;
28569 fail:
28570 return NULL;
28571 }
28572
28573
28574 SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28575 PyObject *obj;
28576 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28577 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
28578 return SWIG_Py_Void();
28579 }
28580
28581 SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28582 return SWIG_Python_InitShadowInstance(args);
28583 }
28584
28585 SWIGINTERN int NullBitmap_set(PyObject *) {
28586 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
28587 return 1;
28588 }
28589
28590
28591 SWIGINTERN PyObject *NullBitmap_get(void) {
28592 PyObject *pyobj = 0;
28593
28594 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
28595 return pyobj;
28596 }
28597
28598
28599 SWIGINTERN int NullIcon_set(PyObject *) {
28600 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
28601 return 1;
28602 }
28603
28604
28605 SWIGINTERN PyObject *NullIcon_get(void) {
28606 PyObject *pyobj = 0;
28607
28608 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
28609 return pyobj;
28610 }
28611
28612
28613 SWIGINTERN int NullCursor_set(PyObject *) {
28614 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
28615 return 1;
28616 }
28617
28618
28619 SWIGINTERN PyObject *NullCursor_get(void) {
28620 PyObject *pyobj = 0;
28621
28622 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
28623 return pyobj;
28624 }
28625
28626
28627 SWIGINTERN int NullPen_set(PyObject *) {
28628 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
28629 return 1;
28630 }
28631
28632
28633 SWIGINTERN PyObject *NullPen_get(void) {
28634 PyObject *pyobj = 0;
28635
28636 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
28637 return pyobj;
28638 }
28639
28640
28641 SWIGINTERN int NullBrush_set(PyObject *) {
28642 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
28643 return 1;
28644 }
28645
28646
28647 SWIGINTERN PyObject *NullBrush_get(void) {
28648 PyObject *pyobj = 0;
28649
28650 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
28651 return pyobj;
28652 }
28653
28654
28655 SWIGINTERN int NullPalette_set(PyObject *) {
28656 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
28657 return 1;
28658 }
28659
28660
28661 SWIGINTERN PyObject *NullPalette_get(void) {
28662 PyObject *pyobj = 0;
28663
28664 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
28665 return pyobj;
28666 }
28667
28668
28669 SWIGINTERN int NullFont_set(PyObject *) {
28670 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
28671 return 1;
28672 }
28673
28674
28675 SWIGINTERN PyObject *NullFont_get(void) {
28676 PyObject *pyobj = 0;
28677
28678 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
28679 return pyobj;
28680 }
28681
28682
28683 SWIGINTERN int NullColour_set(PyObject *) {
28684 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
28685 return 1;
28686 }
28687
28688
28689 SWIGINTERN PyObject *NullColour_get(void) {
28690 PyObject *pyobj = 0;
28691
28692 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
28693 return pyobj;
28694 }
28695
28696
28697 SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28698 PyObject *resultobj = 0;
28699 wxGDIObjListBase *result = 0 ;
28700
28701 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
28702 {
28703 PyThreadState* __tstate = wxPyBeginAllowThreads();
28704 result = (wxGDIObjListBase *)new wxGDIObjListBase();
28705 wxPyEndAllowThreads(__tstate);
28706 if (PyErr_Occurred()) SWIG_fail;
28707 }
28708 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
28709 return resultobj;
28710 fail:
28711 return NULL;
28712 }
28713
28714
28715 SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28716 PyObject *resultobj = 0;
28717 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
28718 void *argp1 = 0 ;
28719 int res1 = 0 ;
28720 PyObject *swig_obj[1] ;
28721
28722 if (!args) SWIG_fail;
28723 swig_obj[0] = args;
28724 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
28725 if (!SWIG_IsOK(res1)) {
28726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
28727 }
28728 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
28729 {
28730 PyThreadState* __tstate = wxPyBeginAllowThreads();
28731 delete arg1;
28732
28733 wxPyEndAllowThreads(__tstate);
28734 if (PyErr_Occurred()) SWIG_fail;
28735 }
28736 resultobj = SWIG_Py_Void();
28737 return resultobj;
28738 fail:
28739 return NULL;
28740 }
28741
28742
28743 SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28744 PyObject *obj;
28745 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28746 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
28747 return SWIG_Py_Void();
28748 }
28749
28750 SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28751 return SWIG_Python_InitShadowInstance(args);
28752 }
28753
28754 SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28755 PyObject *resultobj = 0;
28756 wxPenList *arg1 = (wxPenList *) 0 ;
28757 wxColour *arg2 = 0 ;
28758 int arg3 ;
28759 int arg4 ;
28760 wxPen *result = 0 ;
28761 void *argp1 = 0 ;
28762 int res1 = 0 ;
28763 wxColour temp2 ;
28764 int val3 ;
28765 int ecode3 = 0 ;
28766 int val4 ;
28767 int ecode4 = 0 ;
28768 PyObject * obj0 = 0 ;
28769 PyObject * obj1 = 0 ;
28770 PyObject * obj2 = 0 ;
28771 PyObject * obj3 = 0 ;
28772 char * kwnames[] = {
28773 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
28774 };
28775
28776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
28777 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
28778 if (!SWIG_IsOK(res1)) {
28779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
28780 }
28781 arg1 = reinterpret_cast< wxPenList * >(argp1);
28782 {
28783 arg2 = &temp2;
28784 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28785 }
28786 ecode3 = SWIG_AsVal_int(obj2, &val3);
28787 if (!SWIG_IsOK(ecode3)) {
28788 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
28789 }
28790 arg3 = static_cast< int >(val3);
28791 ecode4 = SWIG_AsVal_int(obj3, &val4);
28792 if (!SWIG_IsOK(ecode4)) {
28793 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
28794 }
28795 arg4 = static_cast< int >(val4);
28796 {
28797 PyThreadState* __tstate = wxPyBeginAllowThreads();
28798 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
28799 wxPyEndAllowThreads(__tstate);
28800 if (PyErr_Occurred()) SWIG_fail;
28801 }
28802 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
28803 return resultobj;
28804 fail:
28805 return NULL;
28806 }
28807
28808
28809 SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28810 PyObject *resultobj = 0;
28811 wxPenList *arg1 = (wxPenList *) 0 ;
28812 wxPen *arg2 = (wxPen *) 0 ;
28813 void *argp1 = 0 ;
28814 int res1 = 0 ;
28815 void *argp2 = 0 ;
28816 int res2 = 0 ;
28817 PyObject * obj0 = 0 ;
28818 PyObject * obj1 = 0 ;
28819 char * kwnames[] = {
28820 (char *) "self",(char *) "pen", NULL
28821 };
28822
28823 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
28824 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
28825 if (!SWIG_IsOK(res1)) {
28826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
28827 }
28828 arg1 = reinterpret_cast< wxPenList * >(argp1);
28829 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
28830 if (!SWIG_IsOK(res2)) {
28831 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
28832 }
28833 arg2 = reinterpret_cast< wxPen * >(argp2);
28834 {
28835 PyThreadState* __tstate = wxPyBeginAllowThreads();
28836 (arg1)->AddPen(arg2);
28837 wxPyEndAllowThreads(__tstate);
28838 if (PyErr_Occurred()) SWIG_fail;
28839 }
28840 resultobj = SWIG_Py_Void();
28841 return resultobj;
28842 fail:
28843 return NULL;
28844 }
28845
28846
28847 SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28848 PyObject *resultobj = 0;
28849 wxPenList *arg1 = (wxPenList *) 0 ;
28850 wxPen *arg2 = (wxPen *) 0 ;
28851 void *argp1 = 0 ;
28852 int res1 = 0 ;
28853 void *argp2 = 0 ;
28854 int res2 = 0 ;
28855 PyObject * obj0 = 0 ;
28856 PyObject * obj1 = 0 ;
28857 char * kwnames[] = {
28858 (char *) "self",(char *) "pen", NULL
28859 };
28860
28861 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
28862 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
28863 if (!SWIG_IsOK(res1)) {
28864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
28865 }
28866 arg1 = reinterpret_cast< wxPenList * >(argp1);
28867 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
28868 if (!SWIG_IsOK(res2)) {
28869 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
28870 }
28871 arg2 = reinterpret_cast< wxPen * >(argp2);
28872 {
28873 PyThreadState* __tstate = wxPyBeginAllowThreads();
28874 (arg1)->RemovePen(arg2);
28875 wxPyEndAllowThreads(__tstate);
28876 if (PyErr_Occurred()) SWIG_fail;
28877 }
28878 resultobj = SWIG_Py_Void();
28879 return resultobj;
28880 fail:
28881 return NULL;
28882 }
28883
28884
28885 SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28886 PyObject *obj;
28887 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28888 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
28889 return SWIG_Py_Void();
28890 }
28891
28892 SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28893 PyObject *resultobj = 0;
28894 wxBrushList *arg1 = (wxBrushList *) 0 ;
28895 wxColour *arg2 = 0 ;
28896 int arg3 = (int) wxSOLID ;
28897 wxBrush *result = 0 ;
28898 void *argp1 = 0 ;
28899 int res1 = 0 ;
28900 wxColour temp2 ;
28901 int val3 ;
28902 int ecode3 = 0 ;
28903 PyObject * obj0 = 0 ;
28904 PyObject * obj1 = 0 ;
28905 PyObject * obj2 = 0 ;
28906 char * kwnames[] = {
28907 (char *) "self",(char *) "colour",(char *) "style", NULL
28908 };
28909
28910 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28911 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
28912 if (!SWIG_IsOK(res1)) {
28913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
28914 }
28915 arg1 = reinterpret_cast< wxBrushList * >(argp1);
28916 {
28917 arg2 = &temp2;
28918 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28919 }
28920 if (obj2) {
28921 ecode3 = SWIG_AsVal_int(obj2, &val3);
28922 if (!SWIG_IsOK(ecode3)) {
28923 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
28924 }
28925 arg3 = static_cast< int >(val3);
28926 }
28927 {
28928 PyThreadState* __tstate = wxPyBeginAllowThreads();
28929 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
28930 wxPyEndAllowThreads(__tstate);
28931 if (PyErr_Occurred()) SWIG_fail;
28932 }
28933 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
28934 return resultobj;
28935 fail:
28936 return NULL;
28937 }
28938
28939
28940 SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28941 PyObject *resultobj = 0;
28942 wxBrushList *arg1 = (wxBrushList *) 0 ;
28943 wxBrush *arg2 = (wxBrush *) 0 ;
28944 void *argp1 = 0 ;
28945 int res1 = 0 ;
28946 void *argp2 = 0 ;
28947 int res2 = 0 ;
28948 PyObject * obj0 = 0 ;
28949 PyObject * obj1 = 0 ;
28950 char * kwnames[] = {
28951 (char *) "self",(char *) "brush", NULL
28952 };
28953
28954 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
28955 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
28956 if (!SWIG_IsOK(res1)) {
28957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
28958 }
28959 arg1 = reinterpret_cast< wxBrushList * >(argp1);
28960 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
28961 if (!SWIG_IsOK(res2)) {
28962 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
28963 }
28964 arg2 = reinterpret_cast< wxBrush * >(argp2);
28965 {
28966 PyThreadState* __tstate = wxPyBeginAllowThreads();
28967 (arg1)->AddBrush(arg2);
28968 wxPyEndAllowThreads(__tstate);
28969 if (PyErr_Occurred()) SWIG_fail;
28970 }
28971 resultobj = SWIG_Py_Void();
28972 return resultobj;
28973 fail:
28974 return NULL;
28975 }
28976
28977
28978 SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28979 PyObject *resultobj = 0;
28980 wxBrushList *arg1 = (wxBrushList *) 0 ;
28981 wxBrush *arg2 = (wxBrush *) 0 ;
28982 void *argp1 = 0 ;
28983 int res1 = 0 ;
28984 void *argp2 = 0 ;
28985 int res2 = 0 ;
28986 PyObject * obj0 = 0 ;
28987 PyObject * obj1 = 0 ;
28988 char * kwnames[] = {
28989 (char *) "self",(char *) "brush", NULL
28990 };
28991
28992 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
28993 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
28994 if (!SWIG_IsOK(res1)) {
28995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
28996 }
28997 arg1 = reinterpret_cast< wxBrushList * >(argp1);
28998 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
28999 if (!SWIG_IsOK(res2)) {
29000 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
29001 }
29002 arg2 = reinterpret_cast< wxBrush * >(argp2);
29003 {
29004 PyThreadState* __tstate = wxPyBeginAllowThreads();
29005 (arg1)->RemoveBrush(arg2);
29006 wxPyEndAllowThreads(__tstate);
29007 if (PyErr_Occurred()) SWIG_fail;
29008 }
29009 resultobj = SWIG_Py_Void();
29010 return resultobj;
29011 fail:
29012 return NULL;
29013 }
29014
29015
29016 SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29017 PyObject *obj;
29018 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29019 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
29020 return SWIG_Py_Void();
29021 }
29022
29023 SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29024 PyObject *resultobj = 0;
29025 wxFontList *arg1 = (wxFontList *) 0 ;
29026 int arg2 ;
29027 int arg3 ;
29028 int arg4 ;
29029 int arg5 ;
29030 bool arg6 = (bool) false ;
29031 wxString const &arg7_defvalue = wxPyEmptyString ;
29032 wxString *arg7 = (wxString *) &arg7_defvalue ;
29033 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
29034 wxFont *result = 0 ;
29035 void *argp1 = 0 ;
29036 int res1 = 0 ;
29037 int val2 ;
29038 int ecode2 = 0 ;
29039 int val3 ;
29040 int ecode3 = 0 ;
29041 int val4 ;
29042 int ecode4 = 0 ;
29043 int val5 ;
29044 int ecode5 = 0 ;
29045 bool val6 ;
29046 int ecode6 = 0 ;
29047 bool temp7 = false ;
29048 int val8 ;
29049 int ecode8 = 0 ;
29050 PyObject * obj0 = 0 ;
29051 PyObject * obj1 = 0 ;
29052 PyObject * obj2 = 0 ;
29053 PyObject * obj3 = 0 ;
29054 PyObject * obj4 = 0 ;
29055 PyObject * obj5 = 0 ;
29056 PyObject * obj6 = 0 ;
29057 PyObject * obj7 = 0 ;
29058 char * kwnames[] = {
29059 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
29060 };
29061
29062 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
29063 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
29064 if (!SWIG_IsOK(res1)) {
29065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
29066 }
29067 arg1 = reinterpret_cast< wxFontList * >(argp1);
29068 ecode2 = SWIG_AsVal_int(obj1, &val2);
29069 if (!SWIG_IsOK(ecode2)) {
29070 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
29071 }
29072 arg2 = static_cast< int >(val2);
29073 ecode3 = SWIG_AsVal_int(obj2, &val3);
29074 if (!SWIG_IsOK(ecode3)) {
29075 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
29076 }
29077 arg3 = static_cast< int >(val3);
29078 ecode4 = SWIG_AsVal_int(obj3, &val4);
29079 if (!SWIG_IsOK(ecode4)) {
29080 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
29081 }
29082 arg4 = static_cast< int >(val4);
29083 ecode5 = SWIG_AsVal_int(obj4, &val5);
29084 if (!SWIG_IsOK(ecode5)) {
29085 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
29086 }
29087 arg5 = static_cast< int >(val5);
29088 if (obj5) {
29089 ecode6 = SWIG_AsVal_bool(obj5, &val6);
29090 if (!SWIG_IsOK(ecode6)) {
29091 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
29092 }
29093 arg6 = static_cast< bool >(val6);
29094 }
29095 if (obj6) {
29096 {
29097 arg7 = wxString_in_helper(obj6);
29098 if (arg7 == NULL) SWIG_fail;
29099 temp7 = true;
29100 }
29101 }
29102 if (obj7) {
29103 ecode8 = SWIG_AsVal_int(obj7, &val8);
29104 if (!SWIG_IsOK(ecode8)) {
29105 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
29106 }
29107 arg8 = static_cast< wxFontEncoding >(val8);
29108 }
29109 {
29110 PyThreadState* __tstate = wxPyBeginAllowThreads();
29111 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
29112 wxPyEndAllowThreads(__tstate);
29113 if (PyErr_Occurred()) SWIG_fail;
29114 }
29115 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
29116 {
29117 if (temp7)
29118 delete arg7;
29119 }
29120 return resultobj;
29121 fail:
29122 {
29123 if (temp7)
29124 delete arg7;
29125 }
29126 return NULL;
29127 }
29128
29129
29130 SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29131 PyObject *resultobj = 0;
29132 wxFontList *arg1 = (wxFontList *) 0 ;
29133 wxFont *arg2 = (wxFont *) 0 ;
29134 void *argp1 = 0 ;
29135 int res1 = 0 ;
29136 void *argp2 = 0 ;
29137 int res2 = 0 ;
29138 PyObject * obj0 = 0 ;
29139 PyObject * obj1 = 0 ;
29140 char * kwnames[] = {
29141 (char *) "self",(char *) "font", NULL
29142 };
29143
29144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
29145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
29146 if (!SWIG_IsOK(res1)) {
29147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
29148 }
29149 arg1 = reinterpret_cast< wxFontList * >(argp1);
29150 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
29151 if (!SWIG_IsOK(res2)) {
29152 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
29153 }
29154 arg2 = reinterpret_cast< wxFont * >(argp2);
29155 {
29156 PyThreadState* __tstate = wxPyBeginAllowThreads();
29157 (arg1)->AddFont(arg2);
29158 wxPyEndAllowThreads(__tstate);
29159 if (PyErr_Occurred()) SWIG_fail;
29160 }
29161 resultobj = SWIG_Py_Void();
29162 return resultobj;
29163 fail:
29164 return NULL;
29165 }
29166
29167
29168 SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29169 PyObject *resultobj = 0;
29170 wxFontList *arg1 = (wxFontList *) 0 ;
29171 wxFont *arg2 = (wxFont *) 0 ;
29172 void *argp1 = 0 ;
29173 int res1 = 0 ;
29174 void *argp2 = 0 ;
29175 int res2 = 0 ;
29176 PyObject * obj0 = 0 ;
29177 PyObject * obj1 = 0 ;
29178 char * kwnames[] = {
29179 (char *) "self",(char *) "font", NULL
29180 };
29181
29182 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
29183 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
29184 if (!SWIG_IsOK(res1)) {
29185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
29186 }
29187 arg1 = reinterpret_cast< wxFontList * >(argp1);
29188 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
29189 if (!SWIG_IsOK(res2)) {
29190 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
29191 }
29192 arg2 = reinterpret_cast< wxFont * >(argp2);
29193 {
29194 PyThreadState* __tstate = wxPyBeginAllowThreads();
29195 (arg1)->RemoveFont(arg2);
29196 wxPyEndAllowThreads(__tstate);
29197 if (PyErr_Occurred()) SWIG_fail;
29198 }
29199 resultobj = SWIG_Py_Void();
29200 return resultobj;
29201 fail:
29202 return NULL;
29203 }
29204
29205
29206 SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29207 PyObject *obj;
29208 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29209 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
29210 return SWIG_Py_Void();
29211 }
29212
29213 SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29214 PyObject *resultobj = 0;
29215 wxColourDatabase *result = 0 ;
29216
29217 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
29218 {
29219 if (!wxPyCheckForApp()) SWIG_fail;
29220 PyThreadState* __tstate = wxPyBeginAllowThreads();
29221 result = (wxColourDatabase *)new wxColourDatabase();
29222 wxPyEndAllowThreads(__tstate);
29223 if (PyErr_Occurred()) SWIG_fail;
29224 }
29225 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
29226 return resultobj;
29227 fail:
29228 return NULL;
29229 }
29230
29231
29232 SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29233 PyObject *resultobj = 0;
29234 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
29235 void *argp1 = 0 ;
29236 int res1 = 0 ;
29237 PyObject *swig_obj[1] ;
29238
29239 if (!args) SWIG_fail;
29240 swig_obj[0] = args;
29241 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
29242 if (!SWIG_IsOK(res1)) {
29243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
29244 }
29245 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
29246 {
29247 PyThreadState* __tstate = wxPyBeginAllowThreads();
29248 delete arg1;
29249
29250 wxPyEndAllowThreads(__tstate);
29251 if (PyErr_Occurred()) SWIG_fail;
29252 }
29253 resultobj = SWIG_Py_Void();
29254 return resultobj;
29255 fail:
29256 return NULL;
29257 }
29258
29259
29260 SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29261 PyObject *resultobj = 0;
29262 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
29263 wxString *arg2 = 0 ;
29264 wxColour result;
29265 void *argp1 = 0 ;
29266 int res1 = 0 ;
29267 bool temp2 = false ;
29268 PyObject * obj0 = 0 ;
29269 PyObject * obj1 = 0 ;
29270 char * kwnames[] = {
29271 (char *) "self",(char *) "name", NULL
29272 };
29273
29274 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
29275 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
29276 if (!SWIG_IsOK(res1)) {
29277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
29278 }
29279 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
29280 {
29281 arg2 = wxString_in_helper(obj1);
29282 if (arg2 == NULL) SWIG_fail;
29283 temp2 = true;
29284 }
29285 {
29286 PyThreadState* __tstate = wxPyBeginAllowThreads();
29287 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
29288 wxPyEndAllowThreads(__tstate);
29289 if (PyErr_Occurred()) SWIG_fail;
29290 }
29291 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29292 {
29293 if (temp2)
29294 delete arg2;
29295 }
29296 return resultobj;
29297 fail:
29298 {
29299 if (temp2)
29300 delete arg2;
29301 }
29302 return NULL;
29303 }
29304
29305
29306 SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29307 PyObject *resultobj = 0;
29308 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
29309 wxColour *arg2 = 0 ;
29310 wxString result;
29311 void *argp1 = 0 ;
29312 int res1 = 0 ;
29313 wxColour temp2 ;
29314 PyObject * obj0 = 0 ;
29315 PyObject * obj1 = 0 ;
29316 char * kwnames[] = {
29317 (char *) "self",(char *) "colour", NULL
29318 };
29319
29320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
29321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
29322 if (!SWIG_IsOK(res1)) {
29323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
29324 }
29325 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
29326 {
29327 arg2 = &temp2;
29328 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29329 }
29330 {
29331 PyThreadState* __tstate = wxPyBeginAllowThreads();
29332 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
29333 wxPyEndAllowThreads(__tstate);
29334 if (PyErr_Occurred()) SWIG_fail;
29335 }
29336 {
29337 #if wxUSE_UNICODE
29338 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
29339 #else
29340 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
29341 #endif
29342 }
29343 return resultobj;
29344 fail:
29345 return NULL;
29346 }
29347
29348
29349 SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29350 PyObject *resultobj = 0;
29351 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
29352 wxString *arg2 = 0 ;
29353 wxColour *arg3 = 0 ;
29354 void *argp1 = 0 ;
29355 int res1 = 0 ;
29356 bool temp2 = false ;
29357 wxColour temp3 ;
29358 PyObject * obj0 = 0 ;
29359 PyObject * obj1 = 0 ;
29360 PyObject * obj2 = 0 ;
29361 char * kwnames[] = {
29362 (char *) "self",(char *) "name",(char *) "colour", NULL
29363 };
29364
29365 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29366 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
29367 if (!SWIG_IsOK(res1)) {
29368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
29369 }
29370 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
29371 {
29372 arg2 = wxString_in_helper(obj1);
29373 if (arg2 == NULL) SWIG_fail;
29374 temp2 = true;
29375 }
29376 {
29377 arg3 = &temp3;
29378 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
29379 }
29380 {
29381 PyThreadState* __tstate = wxPyBeginAllowThreads();
29382 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
29383 wxPyEndAllowThreads(__tstate);
29384 if (PyErr_Occurred()) SWIG_fail;
29385 }
29386 resultobj = SWIG_Py_Void();
29387 {
29388 if (temp2)
29389 delete arg2;
29390 }
29391 return resultobj;
29392 fail:
29393 {
29394 if (temp2)
29395 delete arg2;
29396 }
29397 return NULL;
29398 }
29399
29400
29401 SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29402 PyObject *resultobj = 0;
29403 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
29404 wxString *arg2 = 0 ;
29405 int arg3 ;
29406 int arg4 ;
29407 int arg5 ;
29408 void *argp1 = 0 ;
29409 int res1 = 0 ;
29410 bool temp2 = false ;
29411 int val3 ;
29412 int ecode3 = 0 ;
29413 int val4 ;
29414 int ecode4 = 0 ;
29415 int val5 ;
29416 int ecode5 = 0 ;
29417 PyObject * obj0 = 0 ;
29418 PyObject * obj1 = 0 ;
29419 PyObject * obj2 = 0 ;
29420 PyObject * obj3 = 0 ;
29421 PyObject * obj4 = 0 ;
29422 char * kwnames[] = {
29423 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
29424 };
29425
29426 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29427 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
29428 if (!SWIG_IsOK(res1)) {
29429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
29430 }
29431 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
29432 {
29433 arg2 = wxString_in_helper(obj1);
29434 if (arg2 == NULL) SWIG_fail;
29435 temp2 = true;
29436 }
29437 ecode3 = SWIG_AsVal_int(obj2, &val3);
29438 if (!SWIG_IsOK(ecode3)) {
29439 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
29440 }
29441 arg3 = static_cast< int >(val3);
29442 ecode4 = SWIG_AsVal_int(obj3, &val4);
29443 if (!SWIG_IsOK(ecode4)) {
29444 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
29445 }
29446 arg4 = static_cast< int >(val4);
29447 ecode5 = SWIG_AsVal_int(obj4, &val5);
29448 if (!SWIG_IsOK(ecode5)) {
29449 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
29450 }
29451 arg5 = static_cast< int >(val5);
29452 {
29453 PyThreadState* __tstate = wxPyBeginAllowThreads();
29454 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
29455 wxPyEndAllowThreads(__tstate);
29456 if (PyErr_Occurred()) SWIG_fail;
29457 }
29458 resultobj = SWIG_Py_Void();
29459 {
29460 if (temp2)
29461 delete arg2;
29462 }
29463 return resultobj;
29464 fail:
29465 {
29466 if (temp2)
29467 delete arg2;
29468 }
29469 return NULL;
29470 }
29471
29472
29473 SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29474 PyObject *obj;
29475 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29476 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
29477 return SWIG_Py_Void();
29478 }
29479
29480 SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29481 return SWIG_Python_InitShadowInstance(args);
29482 }
29483
29484 SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29485 PyObject *resultobj = 0;
29486 wxFontList *result = 0 ;
29487
29488 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
29489 {
29490 PyThreadState* __tstate = wxPyBeginAllowThreads();
29491 result = (wxFontList *)_wxPyInitTheFontList();
29492 wxPyEndAllowThreads(__tstate);
29493 if (PyErr_Occurred()) SWIG_fail;
29494 }
29495 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
29496 return resultobj;
29497 fail:
29498 return NULL;
29499 }
29500
29501
29502 SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29503 PyObject *resultobj = 0;
29504 wxPenList *result = 0 ;
29505
29506 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
29507 {
29508 PyThreadState* __tstate = wxPyBeginAllowThreads();
29509 result = (wxPenList *)_wxPyInitThePenList();
29510 wxPyEndAllowThreads(__tstate);
29511 if (PyErr_Occurred()) SWIG_fail;
29512 }
29513 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
29514 return resultobj;
29515 fail:
29516 return NULL;
29517 }
29518
29519
29520 SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29521 PyObject *resultobj = 0;
29522 wxBrushList *result = 0 ;
29523
29524 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
29525 {
29526 PyThreadState* __tstate = wxPyBeginAllowThreads();
29527 result = (wxBrushList *)_wxPyInitTheBrushList();
29528 wxPyEndAllowThreads(__tstate);
29529 if (PyErr_Occurred()) SWIG_fail;
29530 }
29531 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
29532 return resultobj;
29533 fail:
29534 return NULL;
29535 }
29536
29537
29538 SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29539 PyObject *resultobj = 0;
29540 wxColourDatabase *result = 0 ;
29541
29542 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
29543 {
29544 PyThreadState* __tstate = wxPyBeginAllowThreads();
29545 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
29546 wxPyEndAllowThreads(__tstate);
29547 if (PyErr_Occurred()) SWIG_fail;
29548 }
29549 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
29550 return resultobj;
29551 fail:
29552 return NULL;
29553 }
29554
29555
29556 SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29557 PyObject *resultobj = 0;
29558 wxEffects *result = 0 ;
29559
29560 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
29561 {
29562 PyThreadState* __tstate = wxPyBeginAllowThreads();
29563 result = (wxEffects *)new wxEffects();
29564 wxPyEndAllowThreads(__tstate);
29565 if (PyErr_Occurred()) SWIG_fail;
29566 }
29567 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
29568 return resultobj;
29569 fail:
29570 return NULL;
29571 }
29572
29573
29574 SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29575 PyObject *resultobj = 0;
29576 wxEffects *arg1 = (wxEffects *) 0 ;
29577 wxColour result;
29578 void *argp1 = 0 ;
29579 int res1 = 0 ;
29580 PyObject *swig_obj[1] ;
29581
29582 if (!args) SWIG_fail;
29583 swig_obj[0] = args;
29584 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29585 if (!SWIG_IsOK(res1)) {
29586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
29587 }
29588 arg1 = reinterpret_cast< wxEffects * >(argp1);
29589 {
29590 PyThreadState* __tstate = wxPyBeginAllowThreads();
29591 result = ((wxEffects const *)arg1)->GetHighlightColour();
29592 wxPyEndAllowThreads(__tstate);
29593 if (PyErr_Occurred()) SWIG_fail;
29594 }
29595 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29596 return resultobj;
29597 fail:
29598 return NULL;
29599 }
29600
29601
29602 SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29603 PyObject *resultobj = 0;
29604 wxEffects *arg1 = (wxEffects *) 0 ;
29605 wxColour result;
29606 void *argp1 = 0 ;
29607 int res1 = 0 ;
29608 PyObject *swig_obj[1] ;
29609
29610 if (!args) SWIG_fail;
29611 swig_obj[0] = args;
29612 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29613 if (!SWIG_IsOK(res1)) {
29614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
29615 }
29616 arg1 = reinterpret_cast< wxEffects * >(argp1);
29617 {
29618 PyThreadState* __tstate = wxPyBeginAllowThreads();
29619 result = ((wxEffects const *)arg1)->GetLightShadow();
29620 wxPyEndAllowThreads(__tstate);
29621 if (PyErr_Occurred()) SWIG_fail;
29622 }
29623 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29624 return resultobj;
29625 fail:
29626 return NULL;
29627 }
29628
29629
29630 SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29631 PyObject *resultobj = 0;
29632 wxEffects *arg1 = (wxEffects *) 0 ;
29633 wxColour result;
29634 void *argp1 = 0 ;
29635 int res1 = 0 ;
29636 PyObject *swig_obj[1] ;
29637
29638 if (!args) SWIG_fail;
29639 swig_obj[0] = args;
29640 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29641 if (!SWIG_IsOK(res1)) {
29642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
29643 }
29644 arg1 = reinterpret_cast< wxEffects * >(argp1);
29645 {
29646 PyThreadState* __tstate = wxPyBeginAllowThreads();
29647 result = ((wxEffects const *)arg1)->GetFaceColour();
29648 wxPyEndAllowThreads(__tstate);
29649 if (PyErr_Occurred()) SWIG_fail;
29650 }
29651 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29652 return resultobj;
29653 fail:
29654 return NULL;
29655 }
29656
29657
29658 SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29659 PyObject *resultobj = 0;
29660 wxEffects *arg1 = (wxEffects *) 0 ;
29661 wxColour result;
29662 void *argp1 = 0 ;
29663 int res1 = 0 ;
29664 PyObject *swig_obj[1] ;
29665
29666 if (!args) SWIG_fail;
29667 swig_obj[0] = args;
29668 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29669 if (!SWIG_IsOK(res1)) {
29670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
29671 }
29672 arg1 = reinterpret_cast< wxEffects * >(argp1);
29673 {
29674 PyThreadState* __tstate = wxPyBeginAllowThreads();
29675 result = ((wxEffects const *)arg1)->GetMediumShadow();
29676 wxPyEndAllowThreads(__tstate);
29677 if (PyErr_Occurred()) SWIG_fail;
29678 }
29679 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29680 return resultobj;
29681 fail:
29682 return NULL;
29683 }
29684
29685
29686 SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29687 PyObject *resultobj = 0;
29688 wxEffects *arg1 = (wxEffects *) 0 ;
29689 wxColour result;
29690 void *argp1 = 0 ;
29691 int res1 = 0 ;
29692 PyObject *swig_obj[1] ;
29693
29694 if (!args) SWIG_fail;
29695 swig_obj[0] = args;
29696 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29697 if (!SWIG_IsOK(res1)) {
29698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
29699 }
29700 arg1 = reinterpret_cast< wxEffects * >(argp1);
29701 {
29702 PyThreadState* __tstate = wxPyBeginAllowThreads();
29703 result = ((wxEffects const *)arg1)->GetDarkShadow();
29704 wxPyEndAllowThreads(__tstate);
29705 if (PyErr_Occurred()) SWIG_fail;
29706 }
29707 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29708 return resultobj;
29709 fail:
29710 return NULL;
29711 }
29712
29713
29714 SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29715 PyObject *resultobj = 0;
29716 wxEffects *arg1 = (wxEffects *) 0 ;
29717 wxColour *arg2 = 0 ;
29718 void *argp1 = 0 ;
29719 int res1 = 0 ;
29720 wxColour temp2 ;
29721 PyObject * obj0 = 0 ;
29722 PyObject * obj1 = 0 ;
29723 char * kwnames[] = {
29724 (char *) "self",(char *) "c", NULL
29725 };
29726
29727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
29728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29729 if (!SWIG_IsOK(res1)) {
29730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
29731 }
29732 arg1 = reinterpret_cast< wxEffects * >(argp1);
29733 {
29734 arg2 = &temp2;
29735 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29736 }
29737 {
29738 PyThreadState* __tstate = wxPyBeginAllowThreads();
29739 (arg1)->SetHighlightColour((wxColour const &)*arg2);
29740 wxPyEndAllowThreads(__tstate);
29741 if (PyErr_Occurred()) SWIG_fail;
29742 }
29743 resultobj = SWIG_Py_Void();
29744 return resultobj;
29745 fail:
29746 return NULL;
29747 }
29748
29749
29750 SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29751 PyObject *resultobj = 0;
29752 wxEffects *arg1 = (wxEffects *) 0 ;
29753 wxColour *arg2 = 0 ;
29754 void *argp1 = 0 ;
29755 int res1 = 0 ;
29756 wxColour temp2 ;
29757 PyObject * obj0 = 0 ;
29758 PyObject * obj1 = 0 ;
29759 char * kwnames[] = {
29760 (char *) "self",(char *) "c", NULL
29761 };
29762
29763 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
29764 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29765 if (!SWIG_IsOK(res1)) {
29766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
29767 }
29768 arg1 = reinterpret_cast< wxEffects * >(argp1);
29769 {
29770 arg2 = &temp2;
29771 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29772 }
29773 {
29774 PyThreadState* __tstate = wxPyBeginAllowThreads();
29775 (arg1)->SetLightShadow((wxColour const &)*arg2);
29776 wxPyEndAllowThreads(__tstate);
29777 if (PyErr_Occurred()) SWIG_fail;
29778 }
29779 resultobj = SWIG_Py_Void();
29780 return resultobj;
29781 fail:
29782 return NULL;
29783 }
29784
29785
29786 SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29787 PyObject *resultobj = 0;
29788 wxEffects *arg1 = (wxEffects *) 0 ;
29789 wxColour *arg2 = 0 ;
29790 void *argp1 = 0 ;
29791 int res1 = 0 ;
29792 wxColour temp2 ;
29793 PyObject * obj0 = 0 ;
29794 PyObject * obj1 = 0 ;
29795 char * kwnames[] = {
29796 (char *) "self",(char *) "c", NULL
29797 };
29798
29799 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
29800 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29801 if (!SWIG_IsOK(res1)) {
29802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
29803 }
29804 arg1 = reinterpret_cast< wxEffects * >(argp1);
29805 {
29806 arg2 = &temp2;
29807 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29808 }
29809 {
29810 PyThreadState* __tstate = wxPyBeginAllowThreads();
29811 (arg1)->SetFaceColour((wxColour const &)*arg2);
29812 wxPyEndAllowThreads(__tstate);
29813 if (PyErr_Occurred()) SWIG_fail;
29814 }
29815 resultobj = SWIG_Py_Void();
29816 return resultobj;
29817 fail:
29818 return NULL;
29819 }
29820
29821
29822 SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29823 PyObject *resultobj = 0;
29824 wxEffects *arg1 = (wxEffects *) 0 ;
29825 wxColour *arg2 = 0 ;
29826 void *argp1 = 0 ;
29827 int res1 = 0 ;
29828 wxColour temp2 ;
29829 PyObject * obj0 = 0 ;
29830 PyObject * obj1 = 0 ;
29831 char * kwnames[] = {
29832 (char *) "self",(char *) "c", NULL
29833 };
29834
29835 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
29836 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29837 if (!SWIG_IsOK(res1)) {
29838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
29839 }
29840 arg1 = reinterpret_cast< wxEffects * >(argp1);
29841 {
29842 arg2 = &temp2;
29843 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29844 }
29845 {
29846 PyThreadState* __tstate = wxPyBeginAllowThreads();
29847 (arg1)->SetMediumShadow((wxColour const &)*arg2);
29848 wxPyEndAllowThreads(__tstate);
29849 if (PyErr_Occurred()) SWIG_fail;
29850 }
29851 resultobj = SWIG_Py_Void();
29852 return resultobj;
29853 fail:
29854 return NULL;
29855 }
29856
29857
29858 SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29859 PyObject *resultobj = 0;
29860 wxEffects *arg1 = (wxEffects *) 0 ;
29861 wxColour *arg2 = 0 ;
29862 void *argp1 = 0 ;
29863 int res1 = 0 ;
29864 wxColour temp2 ;
29865 PyObject * obj0 = 0 ;
29866 PyObject * obj1 = 0 ;
29867 char * kwnames[] = {
29868 (char *) "self",(char *) "c", NULL
29869 };
29870
29871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
29872 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29873 if (!SWIG_IsOK(res1)) {
29874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
29875 }
29876 arg1 = reinterpret_cast< wxEffects * >(argp1);
29877 {
29878 arg2 = &temp2;
29879 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29880 }
29881 {
29882 PyThreadState* __tstate = wxPyBeginAllowThreads();
29883 (arg1)->SetDarkShadow((wxColour const &)*arg2);
29884 wxPyEndAllowThreads(__tstate);
29885 if (PyErr_Occurred()) SWIG_fail;
29886 }
29887 resultobj = SWIG_Py_Void();
29888 return resultobj;
29889 fail:
29890 return NULL;
29891 }
29892
29893
29894 SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29895 PyObject *resultobj = 0;
29896 wxEffects *arg1 = (wxEffects *) 0 ;
29897 wxColour *arg2 = 0 ;
29898 wxColour *arg3 = 0 ;
29899 wxColour *arg4 = 0 ;
29900 wxColour *arg5 = 0 ;
29901 wxColour *arg6 = 0 ;
29902 void *argp1 = 0 ;
29903 int res1 = 0 ;
29904 wxColour temp2 ;
29905 wxColour temp3 ;
29906 wxColour temp4 ;
29907 wxColour temp5 ;
29908 wxColour temp6 ;
29909 PyObject * obj0 = 0 ;
29910 PyObject * obj1 = 0 ;
29911 PyObject * obj2 = 0 ;
29912 PyObject * obj3 = 0 ;
29913 PyObject * obj4 = 0 ;
29914 PyObject * obj5 = 0 ;
29915 char * kwnames[] = {
29916 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
29917 };
29918
29919 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29920 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29921 if (!SWIG_IsOK(res1)) {
29922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
29923 }
29924 arg1 = reinterpret_cast< wxEffects * >(argp1);
29925 {
29926 arg2 = &temp2;
29927 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29928 }
29929 {
29930 arg3 = &temp3;
29931 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
29932 }
29933 {
29934 arg4 = &temp4;
29935 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
29936 }
29937 {
29938 arg5 = &temp5;
29939 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
29940 }
29941 {
29942 arg6 = &temp6;
29943 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
29944 }
29945 {
29946 PyThreadState* __tstate = wxPyBeginAllowThreads();
29947 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
29948 wxPyEndAllowThreads(__tstate);
29949 if (PyErr_Occurred()) SWIG_fail;
29950 }
29951 resultobj = SWIG_Py_Void();
29952 return resultobj;
29953 fail:
29954 return NULL;
29955 }
29956
29957
29958 SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29959 PyObject *resultobj = 0;
29960 wxEffects *arg1 = (wxEffects *) 0 ;
29961 wxDC *arg2 = 0 ;
29962 wxRect *arg3 = 0 ;
29963 int arg4 = (int) 1 ;
29964 void *argp1 = 0 ;
29965 int res1 = 0 ;
29966 void *argp2 = 0 ;
29967 int res2 = 0 ;
29968 wxRect temp3 ;
29969 int val4 ;
29970 int ecode4 = 0 ;
29971 PyObject * obj0 = 0 ;
29972 PyObject * obj1 = 0 ;
29973 PyObject * obj2 = 0 ;
29974 PyObject * obj3 = 0 ;
29975 char * kwnames[] = {
29976 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
29977 };
29978
29979 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29980 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29981 if (!SWIG_IsOK(res1)) {
29982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
29983 }
29984 arg1 = reinterpret_cast< wxEffects * >(argp1);
29985 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
29986 if (!SWIG_IsOK(res2)) {
29987 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
29988 }
29989 if (!argp2) {
29990 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
29991 }
29992 arg2 = reinterpret_cast< wxDC * >(argp2);
29993 {
29994 arg3 = &temp3;
29995 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
29996 }
29997 if (obj3) {
29998 ecode4 = SWIG_AsVal_int(obj3, &val4);
29999 if (!SWIG_IsOK(ecode4)) {
30000 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
30001 }
30002 arg4 = static_cast< int >(val4);
30003 }
30004 {
30005 PyThreadState* __tstate = wxPyBeginAllowThreads();
30006 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
30007 wxPyEndAllowThreads(__tstate);
30008 if (PyErr_Occurred()) SWIG_fail;
30009 }
30010 resultobj = SWIG_Py_Void();
30011 return resultobj;
30012 fail:
30013 return NULL;
30014 }
30015
30016
30017 SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30018 PyObject *resultobj = 0;
30019 wxEffects *arg1 = (wxEffects *) 0 ;
30020 wxRect *arg2 = 0 ;
30021 wxDC *arg3 = 0 ;
30022 wxBitmap *arg4 = 0 ;
30023 bool result;
30024 void *argp1 = 0 ;
30025 int res1 = 0 ;
30026 wxRect temp2 ;
30027 void *argp3 = 0 ;
30028 int res3 = 0 ;
30029 void *argp4 = 0 ;
30030 int res4 = 0 ;
30031 PyObject * obj0 = 0 ;
30032 PyObject * obj1 = 0 ;
30033 PyObject * obj2 = 0 ;
30034 PyObject * obj3 = 0 ;
30035 char * kwnames[] = {
30036 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
30037 };
30038
30039 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30040 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
30041 if (!SWIG_IsOK(res1)) {
30042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
30043 }
30044 arg1 = reinterpret_cast< wxEffects * >(argp1);
30045 {
30046 arg2 = &temp2;
30047 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
30048 }
30049 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30050 if (!SWIG_IsOK(res3)) {
30051 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
30052 }
30053 if (!argp3) {
30054 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
30055 }
30056 arg3 = reinterpret_cast< wxDC * >(argp3);
30057 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
30058 if (!SWIG_IsOK(res4)) {
30059 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
30060 }
30061 if (!argp4) {
30062 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
30063 }
30064 arg4 = reinterpret_cast< wxBitmap * >(argp4);
30065 {
30066 PyThreadState* __tstate = wxPyBeginAllowThreads();
30067 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
30068 wxPyEndAllowThreads(__tstate);
30069 if (PyErr_Occurred()) SWIG_fail;
30070 }
30071 {
30072 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30073 }
30074 return resultobj;
30075 fail:
30076 return NULL;
30077 }
30078
30079
30080 SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30081 PyObject *obj;
30082 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30083 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
30084 return SWIG_Py_Void();
30085 }
30086
30087 SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30088 return SWIG_Python_InitShadowInstance(args);
30089 }
30090
30091 SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30092 PyObject *resultobj = 0;
30093 int arg1 ;
30094 int arg2 ;
30095 bool arg3 ;
30096 wxSplitterRenderParams *result = 0 ;
30097 int val1 ;
30098 int ecode1 = 0 ;
30099 int val2 ;
30100 int ecode2 = 0 ;
30101 bool val3 ;
30102 int ecode3 = 0 ;
30103 PyObject * obj0 = 0 ;
30104 PyObject * obj1 = 0 ;
30105 PyObject * obj2 = 0 ;
30106 char * kwnames[] = {
30107 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
30108 };
30109
30110 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30111 ecode1 = SWIG_AsVal_int(obj0, &val1);
30112 if (!SWIG_IsOK(ecode1)) {
30113 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
30114 }
30115 arg1 = static_cast< int >(val1);
30116 ecode2 = SWIG_AsVal_int(obj1, &val2);
30117 if (!SWIG_IsOK(ecode2)) {
30118 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
30119 }
30120 arg2 = static_cast< int >(val2);
30121 ecode3 = SWIG_AsVal_bool(obj2, &val3);
30122 if (!SWIG_IsOK(ecode3)) {
30123 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
30124 }
30125 arg3 = static_cast< bool >(val3);
30126 {
30127 PyThreadState* __tstate = wxPyBeginAllowThreads();
30128 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
30129 wxPyEndAllowThreads(__tstate);
30130 if (PyErr_Occurred()) SWIG_fail;
30131 }
30132 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
30133 return resultobj;
30134 fail:
30135 return NULL;
30136 }
30137
30138
30139 SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30140 PyObject *resultobj = 0;
30141 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
30142 void *argp1 = 0 ;
30143 int res1 = 0 ;
30144 PyObject *swig_obj[1] ;
30145
30146 if (!args) SWIG_fail;
30147 swig_obj[0] = args;
30148 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
30149 if (!SWIG_IsOK(res1)) {
30150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
30151 }
30152 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
30153 {
30154 PyThreadState* __tstate = wxPyBeginAllowThreads();
30155 delete arg1;
30156
30157 wxPyEndAllowThreads(__tstate);
30158 if (PyErr_Occurred()) SWIG_fail;
30159 }
30160 resultobj = SWIG_Py_Void();
30161 return resultobj;
30162 fail:
30163 return NULL;
30164 }
30165
30166
30167 SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30168 PyObject *resultobj = 0;
30169 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
30170 int result;
30171 void *argp1 = 0 ;
30172 int res1 = 0 ;
30173 PyObject *swig_obj[1] ;
30174
30175 if (!args) SWIG_fail;
30176 swig_obj[0] = args;
30177 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
30178 if (!SWIG_IsOK(res1)) {
30179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
30180 }
30181 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
30182 result = (int)(int) ((arg1)->widthSash);
30183 resultobj = SWIG_From_int(static_cast< int >(result));
30184 return resultobj;
30185 fail:
30186 return NULL;
30187 }
30188
30189
30190 SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30191 PyObject *resultobj = 0;
30192 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
30193 int result;
30194 void *argp1 = 0 ;
30195 int res1 = 0 ;
30196 PyObject *swig_obj[1] ;
30197
30198 if (!args) SWIG_fail;
30199 swig_obj[0] = args;
30200 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
30201 if (!SWIG_IsOK(res1)) {
30202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
30203 }
30204 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
30205 result = (int)(int) ((arg1)->border);
30206 resultobj = SWIG_From_int(static_cast< int >(result));
30207 return resultobj;
30208 fail:
30209 return NULL;
30210 }
30211
30212
30213 SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30214 PyObject *resultobj = 0;
30215 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
30216 bool result;
30217 void *argp1 = 0 ;
30218 int res1 = 0 ;
30219 PyObject *swig_obj[1] ;
30220
30221 if (!args) SWIG_fail;
30222 swig_obj[0] = args;
30223 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
30224 if (!SWIG_IsOK(res1)) {
30225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
30226 }
30227 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
30228 result = (bool)(bool) ((arg1)->isHotSensitive);
30229 resultobj = SWIG_From_bool(static_cast< bool >(result));
30230 return resultobj;
30231 fail:
30232 return NULL;
30233 }
30234
30235
30236 SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30237 PyObject *obj;
30238 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30239 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
30240 return SWIG_Py_Void();
30241 }
30242
30243 SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30244 return SWIG_Python_InitShadowInstance(args);
30245 }
30246
30247 SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30248 PyObject *resultobj = 0;
30249 wxHeaderButtonParams *result = 0 ;
30250
30251 if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail;
30252 {
30253 PyThreadState* __tstate = wxPyBeginAllowThreads();
30254 result = (wxHeaderButtonParams *)new wxHeaderButtonParams();
30255 wxPyEndAllowThreads(__tstate);
30256 if (PyErr_Occurred()) SWIG_fail;
30257 }
30258 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 );
30259 return resultobj;
30260 fail:
30261 return NULL;
30262 }
30263
30264
30265 SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30266 PyObject *resultobj = 0;
30267 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30268 void *argp1 = 0 ;
30269 int res1 = 0 ;
30270 PyObject *swig_obj[1] ;
30271
30272 if (!args) SWIG_fail;
30273 swig_obj[0] = args;
30274 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 );
30275 if (!SWIG_IsOK(res1)) {
30276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30277 }
30278 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30279 {
30280 PyThreadState* __tstate = wxPyBeginAllowThreads();
30281 delete arg1;
30282
30283 wxPyEndAllowThreads(__tstate);
30284 if (PyErr_Occurred()) SWIG_fail;
30285 }
30286 resultobj = SWIG_Py_Void();
30287 return resultobj;
30288 fail:
30289 return NULL;
30290 }
30291
30292
30293 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30294 PyObject *resultobj = 0;
30295 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30296 wxColour *arg2 = (wxColour *) 0 ;
30297 void *argp1 = 0 ;
30298 int res1 = 0 ;
30299 wxColour temp2 ;
30300 PyObject *swig_obj[2] ;
30301
30302 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_set",2,2,swig_obj)) SWIG_fail;
30303 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30304 if (!SWIG_IsOK(res1)) {
30305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30306 }
30307 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30308 {
30309 arg2 = &temp2;
30310 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
30311 }
30312 if (arg1) (arg1)->m_arrowColour = *arg2;
30313
30314 resultobj = SWIG_Py_Void();
30315 return resultobj;
30316 fail:
30317 return NULL;
30318 }
30319
30320
30321 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30322 PyObject *resultobj = 0;
30323 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30324 wxColour *result = 0 ;
30325 void *argp1 = 0 ;
30326 int res1 = 0 ;
30327 PyObject *swig_obj[1] ;
30328
30329 if (!args) SWIG_fail;
30330 swig_obj[0] = args;
30331 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30332 if (!SWIG_IsOK(res1)) {
30333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30334 }
30335 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30336 result = (wxColour *)& ((arg1)->m_arrowColour);
30337 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
30338 return resultobj;
30339 fail:
30340 return NULL;
30341 }
30342
30343
30344 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30345 PyObject *resultobj = 0;
30346 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30347 wxColour *arg2 = (wxColour *) 0 ;
30348 void *argp1 = 0 ;
30349 int res1 = 0 ;
30350 wxColour temp2 ;
30351 PyObject *swig_obj[2] ;
30352
30353 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail;
30354 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30355 if (!SWIG_IsOK(res1)) {
30356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30357 }
30358 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30359 {
30360 arg2 = &temp2;
30361 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
30362 }
30363 if (arg1) (arg1)->m_selectionColour = *arg2;
30364
30365 resultobj = SWIG_Py_Void();
30366 return resultobj;
30367 fail:
30368 return NULL;
30369 }
30370
30371
30372 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30373 PyObject *resultobj = 0;
30374 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30375 wxColour *result = 0 ;
30376 void *argp1 = 0 ;
30377 int res1 = 0 ;
30378 PyObject *swig_obj[1] ;
30379
30380 if (!args) SWIG_fail;
30381 swig_obj[0] = args;
30382 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30383 if (!SWIG_IsOK(res1)) {
30384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30385 }
30386 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30387 result = (wxColour *)& ((arg1)->m_selectionColour);
30388 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
30389 return resultobj;
30390 fail:
30391 return NULL;
30392 }
30393
30394
30395 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30396 PyObject *resultobj = 0;
30397 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30398 wxString *arg2 = (wxString *) 0 ;
30399 void *argp1 = 0 ;
30400 int res1 = 0 ;
30401 bool temp2 = false ;
30402 PyObject *swig_obj[2] ;
30403
30404 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_set",2,2,swig_obj)) SWIG_fail;
30405 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30406 if (!SWIG_IsOK(res1)) {
30407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30408 }
30409 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30410 {
30411 arg2 = wxString_in_helper(swig_obj[1]);
30412 if (arg2 == NULL) SWIG_fail;
30413 temp2 = true;
30414 }
30415 if (arg1) (arg1)->m_labelText = *arg2;
30416
30417 resultobj = SWIG_Py_Void();
30418 {
30419 if (temp2)
30420 delete arg2;
30421 }
30422 return resultobj;
30423 fail:
30424 {
30425 if (temp2)
30426 delete arg2;
30427 }
30428 return NULL;
30429 }
30430
30431
30432 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30433 PyObject *resultobj = 0;
30434 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30435 wxString *result = 0 ;
30436 void *argp1 = 0 ;
30437 int res1 = 0 ;
30438 PyObject *swig_obj[1] ;
30439
30440 if (!args) SWIG_fail;
30441 swig_obj[0] = args;
30442 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30443 if (!SWIG_IsOK(res1)) {
30444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30445 }
30446 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30447 result = (wxString *)& ((arg1)->m_labelText);
30448 {
30449 #if wxUSE_UNICODE
30450 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
30451 #else
30452 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
30453 #endif
30454 }
30455 return resultobj;
30456 fail:
30457 return NULL;
30458 }
30459
30460
30461 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30462 PyObject *resultobj = 0;
30463 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30464 wxFont *arg2 = (wxFont *) 0 ;
30465 void *argp1 = 0 ;
30466 int res1 = 0 ;
30467 void *argp2 = 0 ;
30468 int res2 = 0 ;
30469 PyObject *swig_obj[2] ;
30470
30471 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail;
30472 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30473 if (!SWIG_IsOK(res1)) {
30474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30475 }
30476 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30477 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
30478 if (!SWIG_IsOK(res2)) {
30479 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'");
30480 }
30481 arg2 = reinterpret_cast< wxFont * >(argp2);
30482 if (arg1) (arg1)->m_labelFont = *arg2;
30483
30484 resultobj = SWIG_Py_Void();
30485 return resultobj;
30486 fail:
30487 return NULL;
30488 }
30489
30490
30491 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30492 PyObject *resultobj = 0;
30493 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30494 wxFont *result = 0 ;
30495 void *argp1 = 0 ;
30496 int res1 = 0 ;
30497 PyObject *swig_obj[1] ;
30498
30499 if (!args) SWIG_fail;
30500 swig_obj[0] = args;
30501 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30502 if (!SWIG_IsOK(res1)) {
30503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30504 }
30505 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30506 result = (wxFont *)& ((arg1)->m_labelFont);
30507 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
30508 return resultobj;
30509 fail:
30510 return NULL;
30511 }
30512
30513
30514 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30515 PyObject *resultobj = 0;
30516 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30517 wxColour *arg2 = (wxColour *) 0 ;
30518 void *argp1 = 0 ;
30519 int res1 = 0 ;
30520 wxColour temp2 ;
30521 PyObject *swig_obj[2] ;
30522
30523 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail;
30524 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30525 if (!SWIG_IsOK(res1)) {
30526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30527 }
30528 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30529 {
30530 arg2 = &temp2;
30531 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
30532 }
30533 if (arg1) (arg1)->m_labelColour = *arg2;
30534
30535 resultobj = SWIG_Py_Void();
30536 return resultobj;
30537 fail:
30538 return NULL;
30539 }
30540
30541
30542 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30543 PyObject *resultobj = 0;
30544 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30545 wxColour *result = 0 ;
30546 void *argp1 = 0 ;
30547 int res1 = 0 ;
30548 PyObject *swig_obj[1] ;
30549
30550 if (!args) SWIG_fail;
30551 swig_obj[0] = args;
30552 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30553 if (!SWIG_IsOK(res1)) {
30554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30555 }
30556 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30557 result = (wxColour *)& ((arg1)->m_labelColour);
30558 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
30559 return resultobj;
30560 fail:
30561 return NULL;
30562 }
30563
30564
30565 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30566 PyObject *resultobj = 0;
30567 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30568 wxBitmap *arg2 = (wxBitmap *) 0 ;
30569 void *argp1 = 0 ;
30570 int res1 = 0 ;
30571 void *argp2 = 0 ;
30572 int res2 = 0 ;
30573 PyObject *swig_obj[2] ;
30574
30575 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail;
30576 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30577 if (!SWIG_IsOK(res1)) {
30578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30579 }
30580 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30581 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
30582 if (!SWIG_IsOK(res2)) {
30583 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'");
30584 }
30585 arg2 = reinterpret_cast< wxBitmap * >(argp2);
30586 if (arg1) (arg1)->m_labelBitmap = *arg2;
30587
30588 resultobj = SWIG_Py_Void();
30589 return resultobj;
30590 fail:
30591 return NULL;
30592 }
30593
30594
30595 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30596 PyObject *resultobj = 0;
30597 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30598 wxBitmap *result = 0 ;
30599 void *argp1 = 0 ;
30600 int res1 = 0 ;
30601 PyObject *swig_obj[1] ;
30602
30603 if (!args) SWIG_fail;
30604 swig_obj[0] = args;
30605 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30606 if (!SWIG_IsOK(res1)) {
30607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30608 }
30609 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30610 result = (wxBitmap *)& ((arg1)->m_labelBitmap);
30611 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
30612 return resultobj;
30613 fail:
30614 return NULL;
30615 }
30616
30617
30618 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30619 PyObject *resultobj = 0;
30620 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30621 int arg2 ;
30622 void *argp1 = 0 ;
30623 int res1 = 0 ;
30624 int val2 ;
30625 int ecode2 = 0 ;
30626 PyObject *swig_obj[2] ;
30627
30628 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail;
30629 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30630 if (!SWIG_IsOK(res1)) {
30631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30632 }
30633 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30634 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
30635 if (!SWIG_IsOK(ecode2)) {
30636 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'");
30637 }
30638 arg2 = static_cast< int >(val2);
30639 if (arg1) (arg1)->m_labelAlignment = arg2;
30640
30641 resultobj = SWIG_Py_Void();
30642 return resultobj;
30643 fail:
30644 return NULL;
30645 }
30646
30647
30648 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30649 PyObject *resultobj = 0;
30650 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30651 int result;
30652 void *argp1 = 0 ;
30653 int res1 = 0 ;
30654 PyObject *swig_obj[1] ;
30655
30656 if (!args) SWIG_fail;
30657 swig_obj[0] = args;
30658 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30659 if (!SWIG_IsOK(res1)) {
30660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30661 }
30662 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30663 result = (int) ((arg1)->m_labelAlignment);
30664 resultobj = SWIG_From_int(static_cast< int >(result));
30665 return resultobj;
30666 fail:
30667 return NULL;
30668 }
30669
30670
30671 SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30672 PyObject *obj;
30673 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30674 SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj));
30675 return SWIG_Py_Void();
30676 }
30677
30678 SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30679 return SWIG_Python_InitShadowInstance(args);
30680 }
30681
30682 SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30683 PyObject *resultobj = 0;
30684 int arg1 ;
30685 int arg2 ;
30686 wxRendererVersion *result = 0 ;
30687 int val1 ;
30688 int ecode1 = 0 ;
30689 int val2 ;
30690 int ecode2 = 0 ;
30691 PyObject * obj0 = 0 ;
30692 PyObject * obj1 = 0 ;
30693 char * kwnames[] = {
30694 (char *) "version_",(char *) "age_", NULL
30695 };
30696
30697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
30698 ecode1 = SWIG_AsVal_int(obj0, &val1);
30699 if (!SWIG_IsOK(ecode1)) {
30700 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
30701 }
30702 arg1 = static_cast< int >(val1);
30703 ecode2 = SWIG_AsVal_int(obj1, &val2);
30704 if (!SWIG_IsOK(ecode2)) {
30705 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
30706 }
30707 arg2 = static_cast< int >(val2);
30708 {
30709 PyThreadState* __tstate = wxPyBeginAllowThreads();
30710 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
30711 wxPyEndAllowThreads(__tstate);
30712 if (PyErr_Occurred()) SWIG_fail;
30713 }
30714 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
30715 return resultobj;
30716 fail:
30717 return NULL;
30718 }
30719
30720
30721 SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30722 PyObject *resultobj = 0;
30723 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
30724 void *argp1 = 0 ;
30725 int res1 = 0 ;
30726 PyObject *swig_obj[1] ;
30727
30728 if (!args) SWIG_fail;
30729 swig_obj[0] = args;
30730 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
30731 if (!SWIG_IsOK(res1)) {
30732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
30733 }
30734 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
30735 {
30736 PyThreadState* __tstate = wxPyBeginAllowThreads();
30737 delete arg1;
30738
30739 wxPyEndAllowThreads(__tstate);
30740 if (PyErr_Occurred()) SWIG_fail;
30741 }
30742 resultobj = SWIG_Py_Void();
30743 return resultobj;
30744 fail:
30745 return NULL;
30746 }
30747
30748
30749 SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30750 PyObject *resultobj = 0;
30751 wxRendererVersion *arg1 = 0 ;
30752 bool result;
30753 void *argp1 = 0 ;
30754 int res1 = 0 ;
30755 PyObject * obj0 = 0 ;
30756 char * kwnames[] = {
30757 (char *) "ver", NULL
30758 };
30759
30760 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
30761 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
30762 if (!SWIG_IsOK(res1)) {
30763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
30764 }
30765 if (!argp1) {
30766 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
30767 }
30768 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
30769 {
30770 PyThreadState* __tstate = wxPyBeginAllowThreads();
30771 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
30772 wxPyEndAllowThreads(__tstate);
30773 if (PyErr_Occurred()) SWIG_fail;
30774 }
30775 {
30776 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30777 }
30778 return resultobj;
30779 fail:
30780 return NULL;
30781 }
30782
30783
30784 SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30785 PyObject *resultobj = 0;
30786 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
30787 int result;
30788 void *argp1 = 0 ;
30789 int res1 = 0 ;
30790 PyObject *swig_obj[1] ;
30791
30792 if (!args) SWIG_fail;
30793 swig_obj[0] = args;
30794 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
30795 if (!SWIG_IsOK(res1)) {
30796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
30797 }
30798 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
30799 result = (int)(int) ((arg1)->version);
30800 resultobj = SWIG_From_int(static_cast< int >(result));
30801 return resultobj;
30802 fail:
30803 return NULL;
30804 }
30805
30806
30807 SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30808 PyObject *resultobj = 0;
30809 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
30810 int result;
30811 void *argp1 = 0 ;
30812 int res1 = 0 ;
30813 PyObject *swig_obj[1] ;
30814
30815 if (!args) SWIG_fail;
30816 swig_obj[0] = args;
30817 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
30818 if (!SWIG_IsOK(res1)) {
30819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
30820 }
30821 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
30822 result = (int)(int) ((arg1)->age);
30823 resultobj = SWIG_From_int(static_cast< int >(result));
30824 return resultobj;
30825 fail:
30826 return NULL;
30827 }
30828
30829
30830 SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30831 PyObject *obj;
30832 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30833 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
30834 return SWIG_Py_Void();
30835 }
30836
30837 SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30838 return SWIG_Python_InitShadowInstance(args);
30839 }
30840
30841 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30842 PyObject *resultobj = 0;
30843 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30844 wxWindow *arg2 = (wxWindow *) 0 ;
30845 wxDC *arg3 = 0 ;
30846 wxRect *arg4 = 0 ;
30847 int arg5 = (int) 0 ;
30848 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
30849 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
30850 void *argp1 = 0 ;
30851 int res1 = 0 ;
30852 void *argp2 = 0 ;
30853 int res2 = 0 ;
30854 void *argp3 = 0 ;
30855 int res3 = 0 ;
30856 wxRect temp4 ;
30857 int val5 ;
30858 int ecode5 = 0 ;
30859 int val6 ;
30860 int ecode6 = 0 ;
30861 void *argp7 = 0 ;
30862 int res7 = 0 ;
30863 PyObject * obj0 = 0 ;
30864 PyObject * obj1 = 0 ;
30865 PyObject * obj2 = 0 ;
30866 PyObject * obj3 = 0 ;
30867 PyObject * obj4 = 0 ;
30868 PyObject * obj5 = 0 ;
30869 PyObject * obj6 = 0 ;
30870 char * kwnames[] = {
30871 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
30872 };
30873
30874 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30875 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30876 if (!SWIG_IsOK(res1)) {
30877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30878 }
30879 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30880 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30881 if (!SWIG_IsOK(res2)) {
30882 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
30883 }
30884 arg2 = reinterpret_cast< wxWindow * >(argp2);
30885 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30886 if (!SWIG_IsOK(res3)) {
30887 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
30888 }
30889 if (!argp3) {
30890 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
30891 }
30892 arg3 = reinterpret_cast< wxDC * >(argp3);
30893 {
30894 arg4 = &temp4;
30895 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30896 }
30897 if (obj4) {
30898 ecode5 = SWIG_AsVal_int(obj4, &val5);
30899 if (!SWIG_IsOK(ecode5)) {
30900 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
30901 }
30902 arg5 = static_cast< int >(val5);
30903 }
30904 if (obj5) {
30905 ecode6 = SWIG_AsVal_int(obj5, &val6);
30906 if (!SWIG_IsOK(ecode6)) {
30907 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
30908 }
30909 arg6 = static_cast< wxHeaderSortIconType >(val6);
30910 }
30911 if (obj6) {
30912 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30913 if (!SWIG_IsOK(res7)) {
30914 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
30915 }
30916 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
30917 }
30918 {
30919 PyThreadState* __tstate = wxPyBeginAllowThreads();
30920 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
30921 wxPyEndAllowThreads(__tstate);
30922 if (PyErr_Occurred()) SWIG_fail;
30923 }
30924 resultobj = SWIG_Py_Void();
30925 return resultobj;
30926 fail:
30927 return NULL;
30928 }
30929
30930
30931 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30932 PyObject *resultobj = 0;
30933 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30934 wxWindow *arg2 = (wxWindow *) 0 ;
30935 wxDC *arg3 = 0 ;
30936 wxRect *arg4 = 0 ;
30937 int arg5 = (int) 0 ;
30938 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
30939 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
30940 void *argp1 = 0 ;
30941 int res1 = 0 ;
30942 void *argp2 = 0 ;
30943 int res2 = 0 ;
30944 void *argp3 = 0 ;
30945 int res3 = 0 ;
30946 wxRect temp4 ;
30947 int val5 ;
30948 int ecode5 = 0 ;
30949 int val6 ;
30950 int ecode6 = 0 ;
30951 void *argp7 = 0 ;
30952 int res7 = 0 ;
30953 PyObject * obj0 = 0 ;
30954 PyObject * obj1 = 0 ;
30955 PyObject * obj2 = 0 ;
30956 PyObject * obj3 = 0 ;
30957 PyObject * obj4 = 0 ;
30958 PyObject * obj5 = 0 ;
30959 PyObject * obj6 = 0 ;
30960 char * kwnames[] = {
30961 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
30962 };
30963
30964 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30965 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30966 if (!SWIG_IsOK(res1)) {
30967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30968 }
30969 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30970 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30971 if (!SWIG_IsOK(res2)) {
30972 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'");
30973 }
30974 arg2 = reinterpret_cast< wxWindow * >(argp2);
30975 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30976 if (!SWIG_IsOK(res3)) {
30977 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
30978 }
30979 if (!argp3) {
30980 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
30981 }
30982 arg3 = reinterpret_cast< wxDC * >(argp3);
30983 {
30984 arg4 = &temp4;
30985 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30986 }
30987 if (obj4) {
30988 ecode5 = SWIG_AsVal_int(obj4, &val5);
30989 if (!SWIG_IsOK(ecode5)) {
30990 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'");
30991 }
30992 arg5 = static_cast< int >(val5);
30993 }
30994 if (obj5) {
30995 ecode6 = SWIG_AsVal_int(obj5, &val6);
30996 if (!SWIG_IsOK(ecode6)) {
30997 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
30998 }
30999 arg6 = static_cast< wxHeaderSortIconType >(val6);
31000 }
31001 if (obj6) {
31002 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
31003 if (!SWIG_IsOK(res7)) {
31004 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
31005 }
31006 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
31007 }
31008 {
31009 PyThreadState* __tstate = wxPyBeginAllowThreads();
31010 (arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
31011 wxPyEndAllowThreads(__tstate);
31012 if (PyErr_Occurred()) SWIG_fail;
31013 }
31014 resultobj = SWIG_Py_Void();
31015 return resultobj;
31016 fail:
31017 return NULL;
31018 }
31019
31020
31021 SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31022 PyObject *resultobj = 0;
31023 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31024 wxWindow *arg2 = (wxWindow *) 0 ;
31025 int result;
31026 void *argp1 = 0 ;
31027 int res1 = 0 ;
31028 void *argp2 = 0 ;
31029 int res2 = 0 ;
31030 PyObject * obj0 = 0 ;
31031 PyObject * obj1 = 0 ;
31032 char * kwnames[] = {
31033 (char *) "self",(char *) "win", NULL
31034 };
31035
31036 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail;
31037 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31038 if (!SWIG_IsOK(res1)) {
31039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31040 }
31041 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31042 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31043 if (!SWIG_IsOK(res2)) {
31044 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'");
31045 }
31046 arg2 = reinterpret_cast< wxWindow * >(argp2);
31047 {
31048 PyThreadState* __tstate = wxPyBeginAllowThreads();
31049 result = (int)(arg1)->GetHeaderButtonHeight(arg2);
31050 wxPyEndAllowThreads(__tstate);
31051 if (PyErr_Occurred()) SWIG_fail;
31052 }
31053 resultobj = SWIG_From_int(static_cast< int >(result));
31054 return resultobj;
31055 fail:
31056 return NULL;
31057 }
31058
31059
31060 SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31061 PyObject *resultobj = 0;
31062 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31063 wxWindow *arg2 = (wxWindow *) 0 ;
31064 wxDC *arg3 = 0 ;
31065 wxRect *arg4 = 0 ;
31066 int arg5 = (int) 0 ;
31067 void *argp1 = 0 ;
31068 int res1 = 0 ;
31069 void *argp2 = 0 ;
31070 int res2 = 0 ;
31071 void *argp3 = 0 ;
31072 int res3 = 0 ;
31073 wxRect temp4 ;
31074 int val5 ;
31075 int ecode5 = 0 ;
31076 PyObject * obj0 = 0 ;
31077 PyObject * obj1 = 0 ;
31078 PyObject * obj2 = 0 ;
31079 PyObject * obj3 = 0 ;
31080 PyObject * obj4 = 0 ;
31081 char * kwnames[] = {
31082 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
31083 };
31084
31085 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31086 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31087 if (!SWIG_IsOK(res1)) {
31088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31089 }
31090 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31091 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31092 if (!SWIG_IsOK(res2)) {
31093 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
31094 }
31095 arg2 = reinterpret_cast< wxWindow * >(argp2);
31096 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31097 if (!SWIG_IsOK(res3)) {
31098 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
31099 }
31100 if (!argp3) {
31101 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
31102 }
31103 arg3 = reinterpret_cast< wxDC * >(argp3);
31104 {
31105 arg4 = &temp4;
31106 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31107 }
31108 if (obj4) {
31109 ecode5 = SWIG_AsVal_int(obj4, &val5);
31110 if (!SWIG_IsOK(ecode5)) {
31111 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
31112 }
31113 arg5 = static_cast< int >(val5);
31114 }
31115 {
31116 PyThreadState* __tstate = wxPyBeginAllowThreads();
31117 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
31118 wxPyEndAllowThreads(__tstate);
31119 if (PyErr_Occurred()) SWIG_fail;
31120 }
31121 resultobj = SWIG_Py_Void();
31122 return resultobj;
31123 fail:
31124 return NULL;
31125 }
31126
31127
31128 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31129 PyObject *resultobj = 0;
31130 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31131 wxWindow *arg2 = (wxWindow *) 0 ;
31132 wxDC *arg3 = 0 ;
31133 wxRect *arg4 = 0 ;
31134 int arg5 = (int) 0 ;
31135 void *argp1 = 0 ;
31136 int res1 = 0 ;
31137 void *argp2 = 0 ;
31138 int res2 = 0 ;
31139 void *argp3 = 0 ;
31140 int res3 = 0 ;
31141 wxRect temp4 ;
31142 int val5 ;
31143 int ecode5 = 0 ;
31144 PyObject * obj0 = 0 ;
31145 PyObject * obj1 = 0 ;
31146 PyObject * obj2 = 0 ;
31147 PyObject * obj3 = 0 ;
31148 PyObject * obj4 = 0 ;
31149 char * kwnames[] = {
31150 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
31151 };
31152
31153 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31154 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31155 if (!SWIG_IsOK(res1)) {
31156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31157 }
31158 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31159 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31160 if (!SWIG_IsOK(res2)) {
31161 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
31162 }
31163 arg2 = reinterpret_cast< wxWindow * >(argp2);
31164 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31165 if (!SWIG_IsOK(res3)) {
31166 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
31167 }
31168 if (!argp3) {
31169 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
31170 }
31171 arg3 = reinterpret_cast< wxDC * >(argp3);
31172 {
31173 arg4 = &temp4;
31174 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31175 }
31176 if (obj4) {
31177 ecode5 = SWIG_AsVal_int(obj4, &val5);
31178 if (!SWIG_IsOK(ecode5)) {
31179 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
31180 }
31181 arg5 = static_cast< int >(val5);
31182 }
31183 {
31184 PyThreadState* __tstate = wxPyBeginAllowThreads();
31185 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
31186 wxPyEndAllowThreads(__tstate);
31187 if (PyErr_Occurred()) SWIG_fail;
31188 }
31189 resultobj = SWIG_Py_Void();
31190 return resultobj;
31191 fail:
31192 return NULL;
31193 }
31194
31195
31196 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31197 PyObject *resultobj = 0;
31198 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31199 wxWindow *arg2 = (wxWindow *) 0 ;
31200 wxDC *arg3 = 0 ;
31201 wxSize *arg4 = 0 ;
31202 int arg5 ;
31203 wxOrientation arg6 ;
31204 int arg7 = (int) 0 ;
31205 void *argp1 = 0 ;
31206 int res1 = 0 ;
31207 void *argp2 = 0 ;
31208 int res2 = 0 ;
31209 void *argp3 = 0 ;
31210 int res3 = 0 ;
31211 wxSize temp4 ;
31212 int val5 ;
31213 int ecode5 = 0 ;
31214 int val6 ;
31215 int ecode6 = 0 ;
31216 int val7 ;
31217 int ecode7 = 0 ;
31218 PyObject * obj0 = 0 ;
31219 PyObject * obj1 = 0 ;
31220 PyObject * obj2 = 0 ;
31221 PyObject * obj3 = 0 ;
31222 PyObject * obj4 = 0 ;
31223 PyObject * obj5 = 0 ;
31224 PyObject * obj6 = 0 ;
31225 char * kwnames[] = {
31226 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
31227 };
31228
31229 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31230 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31231 if (!SWIG_IsOK(res1)) {
31232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31233 }
31234 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31235 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31236 if (!SWIG_IsOK(res2)) {
31237 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
31238 }
31239 arg2 = reinterpret_cast< wxWindow * >(argp2);
31240 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31241 if (!SWIG_IsOK(res3)) {
31242 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
31243 }
31244 if (!argp3) {
31245 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
31246 }
31247 arg3 = reinterpret_cast< wxDC * >(argp3);
31248 {
31249 arg4 = &temp4;
31250 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
31251 }
31252 ecode5 = SWIG_AsVal_int(obj4, &val5);
31253 if (!SWIG_IsOK(ecode5)) {
31254 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
31255 }
31256 arg5 = static_cast< int >(val5);
31257 ecode6 = SWIG_AsVal_int(obj5, &val6);
31258 if (!SWIG_IsOK(ecode6)) {
31259 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
31260 }
31261 arg6 = static_cast< wxOrientation >(val6);
31262 if (obj6) {
31263 ecode7 = SWIG_AsVal_int(obj6, &val7);
31264 if (!SWIG_IsOK(ecode7)) {
31265 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
31266 }
31267 arg7 = static_cast< int >(val7);
31268 }
31269 {
31270 PyThreadState* __tstate = wxPyBeginAllowThreads();
31271 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
31272 wxPyEndAllowThreads(__tstate);
31273 if (PyErr_Occurred()) SWIG_fail;
31274 }
31275 resultobj = SWIG_Py_Void();
31276 return resultobj;
31277 fail:
31278 return NULL;
31279 }
31280
31281
31282 SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31283 PyObject *resultobj = 0;
31284 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31285 wxWindow *arg2 = (wxWindow *) 0 ;
31286 wxDC *arg3 = 0 ;
31287 wxRect *arg4 = 0 ;
31288 int arg5 = (int) 0 ;
31289 void *argp1 = 0 ;
31290 int res1 = 0 ;
31291 void *argp2 = 0 ;
31292 int res2 = 0 ;
31293 void *argp3 = 0 ;
31294 int res3 = 0 ;
31295 wxRect temp4 ;
31296 int val5 ;
31297 int ecode5 = 0 ;
31298 PyObject * obj0 = 0 ;
31299 PyObject * obj1 = 0 ;
31300 PyObject * obj2 = 0 ;
31301 PyObject * obj3 = 0 ;
31302 PyObject * obj4 = 0 ;
31303 char * kwnames[] = {
31304 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
31305 };
31306
31307 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31308 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31309 if (!SWIG_IsOK(res1)) {
31310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31311 }
31312 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31313 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31314 if (!SWIG_IsOK(res2)) {
31315 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
31316 }
31317 arg2 = reinterpret_cast< wxWindow * >(argp2);
31318 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31319 if (!SWIG_IsOK(res3)) {
31320 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
31321 }
31322 if (!argp3) {
31323 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
31324 }
31325 arg3 = reinterpret_cast< wxDC * >(argp3);
31326 {
31327 arg4 = &temp4;
31328 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31329 }
31330 if (obj4) {
31331 ecode5 = SWIG_AsVal_int(obj4, &val5);
31332 if (!SWIG_IsOK(ecode5)) {
31333 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
31334 }
31335 arg5 = static_cast< int >(val5);
31336 }
31337 {
31338 PyThreadState* __tstate = wxPyBeginAllowThreads();
31339 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
31340 wxPyEndAllowThreads(__tstate);
31341 if (PyErr_Occurred()) SWIG_fail;
31342 }
31343 resultobj = SWIG_Py_Void();
31344 return resultobj;
31345 fail:
31346 return NULL;
31347 }
31348
31349
31350 SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31351 PyObject *resultobj = 0;
31352 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31353 wxWindow *arg2 = (wxWindow *) 0 ;
31354 wxDC *arg3 = 0 ;
31355 wxRect *arg4 = 0 ;
31356 int arg5 = (int) 0 ;
31357 void *argp1 = 0 ;
31358 int res1 = 0 ;
31359 void *argp2 = 0 ;
31360 int res2 = 0 ;
31361 void *argp3 = 0 ;
31362 int res3 = 0 ;
31363 wxRect temp4 ;
31364 int val5 ;
31365 int ecode5 = 0 ;
31366 PyObject * obj0 = 0 ;
31367 PyObject * obj1 = 0 ;
31368 PyObject * obj2 = 0 ;
31369 PyObject * obj3 = 0 ;
31370 PyObject * obj4 = 0 ;
31371 char * kwnames[] = {
31372 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
31373 };
31374
31375 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31376 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31377 if (!SWIG_IsOK(res1)) {
31378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31379 }
31380 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31381 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31382 if (!SWIG_IsOK(res2)) {
31383 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
31384 }
31385 arg2 = reinterpret_cast< wxWindow * >(argp2);
31386 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31387 if (!SWIG_IsOK(res3)) {
31388 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
31389 }
31390 if (!argp3) {
31391 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
31392 }
31393 arg3 = reinterpret_cast< wxDC * >(argp3);
31394 {
31395 arg4 = &temp4;
31396 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31397 }
31398 if (obj4) {
31399 ecode5 = SWIG_AsVal_int(obj4, &val5);
31400 if (!SWIG_IsOK(ecode5)) {
31401 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
31402 }
31403 arg5 = static_cast< int >(val5);
31404 }
31405 {
31406 PyThreadState* __tstate = wxPyBeginAllowThreads();
31407 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
31408 wxPyEndAllowThreads(__tstate);
31409 if (PyErr_Occurred()) SWIG_fail;
31410 }
31411 resultobj = SWIG_Py_Void();
31412 return resultobj;
31413 fail:
31414 return NULL;
31415 }
31416
31417
31418 SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31419 PyObject *resultobj = 0;
31420 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31421 wxWindow *arg2 = (wxWindow *) 0 ;
31422 wxDC *arg3 = 0 ;
31423 wxRect *arg4 = 0 ;
31424 int arg5 = (int) 0 ;
31425 void *argp1 = 0 ;
31426 int res1 = 0 ;
31427 void *argp2 = 0 ;
31428 int res2 = 0 ;
31429 void *argp3 = 0 ;
31430 int res3 = 0 ;
31431 wxRect temp4 ;
31432 int val5 ;
31433 int ecode5 = 0 ;
31434 PyObject * obj0 = 0 ;
31435 PyObject * obj1 = 0 ;
31436 PyObject * obj2 = 0 ;
31437 PyObject * obj3 = 0 ;
31438 PyObject * obj4 = 0 ;
31439 char * kwnames[] = {
31440 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
31441 };
31442
31443 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31444 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31445 if (!SWIG_IsOK(res1)) {
31446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31447 }
31448 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31449 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31450 if (!SWIG_IsOK(res2)) {
31451 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
31452 }
31453 arg2 = reinterpret_cast< wxWindow * >(argp2);
31454 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31455 if (!SWIG_IsOK(res3)) {
31456 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
31457 }
31458 if (!argp3) {
31459 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
31460 }
31461 arg3 = reinterpret_cast< wxDC * >(argp3);
31462 {
31463 arg4 = &temp4;
31464 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31465 }
31466 if (obj4) {
31467 ecode5 = SWIG_AsVal_int(obj4, &val5);
31468 if (!SWIG_IsOK(ecode5)) {
31469 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
31470 }
31471 arg5 = static_cast< int >(val5);
31472 }
31473 {
31474 PyThreadState* __tstate = wxPyBeginAllowThreads();
31475 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
31476 wxPyEndAllowThreads(__tstate);
31477 if (PyErr_Occurred()) SWIG_fail;
31478 }
31479 resultobj = SWIG_Py_Void();
31480 return resultobj;
31481 fail:
31482 return NULL;
31483 }
31484
31485
31486 SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31487 PyObject *resultobj = 0;
31488 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31489 wxWindow *arg2 = (wxWindow *) 0 ;
31490 wxDC *arg3 = 0 ;
31491 wxRect *arg4 = 0 ;
31492 int arg5 = (int) 0 ;
31493 void *argp1 = 0 ;
31494 int res1 = 0 ;
31495 void *argp2 = 0 ;
31496 int res2 = 0 ;
31497 void *argp3 = 0 ;
31498 int res3 = 0 ;
31499 wxRect temp4 ;
31500 int val5 ;
31501 int ecode5 = 0 ;
31502 PyObject * obj0 = 0 ;
31503 PyObject * obj1 = 0 ;
31504 PyObject * obj2 = 0 ;
31505 PyObject * obj3 = 0 ;
31506 PyObject * obj4 = 0 ;
31507 char * kwnames[] = {
31508 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
31509 };
31510
31511 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31512 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31513 if (!SWIG_IsOK(res1)) {
31514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31515 }
31516 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31517 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31518 if (!SWIG_IsOK(res2)) {
31519 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
31520 }
31521 arg2 = reinterpret_cast< wxWindow * >(argp2);
31522 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31523 if (!SWIG_IsOK(res3)) {
31524 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
31525 }
31526 if (!argp3) {
31527 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
31528 }
31529 arg3 = reinterpret_cast< wxDC * >(argp3);
31530 {
31531 arg4 = &temp4;
31532 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31533 }
31534 if (obj4) {
31535 ecode5 = SWIG_AsVal_int(obj4, &val5);
31536 if (!SWIG_IsOK(ecode5)) {
31537 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
31538 }
31539 arg5 = static_cast< int >(val5);
31540 }
31541 {
31542 PyThreadState* __tstate = wxPyBeginAllowThreads();
31543 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
31544 wxPyEndAllowThreads(__tstate);
31545 if (PyErr_Occurred()) SWIG_fail;
31546 }
31547 resultobj = SWIG_Py_Void();
31548 return resultobj;
31549 fail:
31550 return NULL;
31551 }
31552
31553
31554 SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31555 PyObject *resultobj = 0;
31556 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31557 wxWindow *arg2 = (wxWindow *) 0 ;
31558 wxDC *arg3 = 0 ;
31559 wxRect *arg4 = 0 ;
31560 int arg5 = (int) 0 ;
31561 void *argp1 = 0 ;
31562 int res1 = 0 ;
31563 void *argp2 = 0 ;
31564 int res2 = 0 ;
31565 void *argp3 = 0 ;
31566 int res3 = 0 ;
31567 wxRect temp4 ;
31568 int val5 ;
31569 int ecode5 = 0 ;
31570 PyObject * obj0 = 0 ;
31571 PyObject * obj1 = 0 ;
31572 PyObject * obj2 = 0 ;
31573 PyObject * obj3 = 0 ;
31574 PyObject * obj4 = 0 ;
31575 char * kwnames[] = {
31576 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
31577 };
31578
31579 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31580 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31581 if (!SWIG_IsOK(res1)) {
31582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31583 }
31584 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31585 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31586 if (!SWIG_IsOK(res2)) {
31587 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
31588 }
31589 arg2 = reinterpret_cast< wxWindow * >(argp2);
31590 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31591 if (!SWIG_IsOK(res3)) {
31592 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
31593 }
31594 if (!argp3) {
31595 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
31596 }
31597 arg3 = reinterpret_cast< wxDC * >(argp3);
31598 {
31599 arg4 = &temp4;
31600 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31601 }
31602 if (obj4) {
31603 ecode5 = SWIG_AsVal_int(obj4, &val5);
31604 if (!SWIG_IsOK(ecode5)) {
31605 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
31606 }
31607 arg5 = static_cast< int >(val5);
31608 }
31609 {
31610 PyThreadState* __tstate = wxPyBeginAllowThreads();
31611 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
31612 wxPyEndAllowThreads(__tstate);
31613 if (PyErr_Occurred()) SWIG_fail;
31614 }
31615 resultobj = SWIG_Py_Void();
31616 return resultobj;
31617 fail:
31618 return NULL;
31619 }
31620
31621
31622 SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31623 PyObject *resultobj = 0;
31624 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31625 wxWindow *arg2 = (wxWindow *) 0 ;
31626 SwigValueWrapper<wxSplitterRenderParams > result;
31627 void *argp1 = 0 ;
31628 int res1 = 0 ;
31629 void *argp2 = 0 ;
31630 int res2 = 0 ;
31631 PyObject * obj0 = 0 ;
31632 PyObject * obj1 = 0 ;
31633 char * kwnames[] = {
31634 (char *) "self",(char *) "win", NULL
31635 };
31636
31637 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
31638 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31639 if (!SWIG_IsOK(res1)) {
31640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31641 }
31642 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31643 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31644 if (!SWIG_IsOK(res2)) {
31645 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
31646 }
31647 arg2 = reinterpret_cast< wxWindow * >(argp2);
31648 {
31649 PyThreadState* __tstate = wxPyBeginAllowThreads();
31650 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
31651 wxPyEndAllowThreads(__tstate);
31652 if (PyErr_Occurred()) SWIG_fail;
31653 }
31654 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
31655 return resultobj;
31656 fail:
31657 return NULL;
31658 }
31659
31660
31661 SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31662 PyObject *resultobj = 0;
31663 wxRendererNative *result = 0 ;
31664
31665 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
31666 {
31667 if (!wxPyCheckForApp()) SWIG_fail;
31668 PyThreadState* __tstate = wxPyBeginAllowThreads();
31669 {
31670 wxRendererNative &_result_ref = wxRendererNative::Get();
31671 result = (wxRendererNative *) &_result_ref;
31672 }
31673 wxPyEndAllowThreads(__tstate);
31674 if (PyErr_Occurred()) SWIG_fail;
31675 }
31676 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
31677 return resultobj;
31678 fail:
31679 return NULL;
31680 }
31681
31682
31683 SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31684 PyObject *resultobj = 0;
31685 wxRendererNative *result = 0 ;
31686
31687 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
31688 {
31689 if (!wxPyCheckForApp()) SWIG_fail;
31690 PyThreadState* __tstate = wxPyBeginAllowThreads();
31691 {
31692 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
31693 result = (wxRendererNative *) &_result_ref;
31694 }
31695 wxPyEndAllowThreads(__tstate);
31696 if (PyErr_Occurred()) SWIG_fail;
31697 }
31698 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
31699 return resultobj;
31700 fail:
31701 return NULL;
31702 }
31703
31704
31705 SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31706 PyObject *resultobj = 0;
31707 wxRendererNative *result = 0 ;
31708
31709 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
31710 {
31711 if (!wxPyCheckForApp()) SWIG_fail;
31712 PyThreadState* __tstate = wxPyBeginAllowThreads();
31713 {
31714 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
31715 result = (wxRendererNative *) &_result_ref;
31716 }
31717 wxPyEndAllowThreads(__tstate);
31718 if (PyErr_Occurred()) SWIG_fail;
31719 }
31720 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
31721 return resultobj;
31722 fail:
31723 return NULL;
31724 }
31725
31726
31727 SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31728 PyObject *resultobj = 0;
31729 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31730 wxRendererNative *result = 0 ;
31731 void *argp1 = 0 ;
31732 int res1 = 0 ;
31733 PyObject * obj0 = 0 ;
31734 char * kwnames[] = {
31735 (char *) "renderer", NULL
31736 };
31737
31738 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
31739 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31740 if (!SWIG_IsOK(res1)) {
31741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31742 }
31743 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31744 {
31745 if (!wxPyCheckForApp()) SWIG_fail;
31746 PyThreadState* __tstate = wxPyBeginAllowThreads();
31747 result = (wxRendererNative *)wxRendererNative::Set(arg1);
31748 wxPyEndAllowThreads(__tstate);
31749 if (PyErr_Occurred()) SWIG_fail;
31750 }
31751 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
31752 return resultobj;
31753 fail:
31754 return NULL;
31755 }
31756
31757
31758 SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31759 PyObject *resultobj = 0;
31760 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31761 SwigValueWrapper<wxRendererVersion > result;
31762 void *argp1 = 0 ;
31763 int res1 = 0 ;
31764 PyObject *swig_obj[1] ;
31765
31766 if (!args) SWIG_fail;
31767 swig_obj[0] = args;
31768 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31769 if (!SWIG_IsOK(res1)) {
31770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
31771 }
31772 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31773 {
31774 PyThreadState* __tstate = wxPyBeginAllowThreads();
31775 result = ((wxRendererNative const *)arg1)->GetVersion();
31776 wxPyEndAllowThreads(__tstate);
31777 if (PyErr_Occurred()) SWIG_fail;
31778 }
31779 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
31780 return resultobj;
31781 fail:
31782 return NULL;
31783 }
31784
31785
31786 SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31787 PyObject *obj;
31788 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31789 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
31790 return SWIG_Py_Void();
31791 }
31792
31793 SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31794 PyObject *resultobj = 0;
31795 wxPseudoDC *result = 0 ;
31796
31797 if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail;
31798 {
31799 PyThreadState* __tstate = wxPyBeginAllowThreads();
31800 result = (wxPseudoDC *)new wxPseudoDC();
31801 wxPyEndAllowThreads(__tstate);
31802 if (PyErr_Occurred()) SWIG_fail;
31803 }
31804 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 );
31805 return resultobj;
31806 fail:
31807 return NULL;
31808 }
31809
31810
31811 SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31812 PyObject *resultobj = 0;
31813 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31814 void *argp1 = 0 ;
31815 int res1 = 0 ;
31816 PyObject *swig_obj[1] ;
31817
31818 if (!args) SWIG_fail;
31819 swig_obj[0] = args;
31820 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31821 if (!SWIG_IsOK(res1)) {
31822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31823 }
31824 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31825 {
31826 PyThreadState* __tstate = wxPyBeginAllowThreads();
31827 (arg1)->BeginDrawing();
31828 wxPyEndAllowThreads(__tstate);
31829 if (PyErr_Occurred()) SWIG_fail;
31830 }
31831 resultobj = SWIG_Py_Void();
31832 return resultobj;
31833 fail:
31834 return NULL;
31835 }
31836
31837
31838 SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31839 PyObject *resultobj = 0;
31840 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31841 void *argp1 = 0 ;
31842 int res1 = 0 ;
31843 PyObject *swig_obj[1] ;
31844
31845 if (!args) SWIG_fail;
31846 swig_obj[0] = args;
31847 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31848 if (!SWIG_IsOK(res1)) {
31849 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31850 }
31851 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31852 {
31853 PyThreadState* __tstate = wxPyBeginAllowThreads();
31854 (arg1)->EndDrawing();
31855 wxPyEndAllowThreads(__tstate);
31856 if (PyErr_Occurred()) SWIG_fail;
31857 }
31858 resultobj = SWIG_Py_Void();
31859 return resultobj;
31860 fail:
31861 return NULL;
31862 }
31863
31864
31865 SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31866 PyObject *resultobj = 0;
31867 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31868 void *argp1 = 0 ;
31869 int res1 = 0 ;
31870 PyObject *swig_obj[1] ;
31871
31872 if (!args) SWIG_fail;
31873 swig_obj[0] = args;
31874 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 );
31875 if (!SWIG_IsOK(res1)) {
31876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31877 }
31878 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31879 {
31880 PyThreadState* __tstate = wxPyBeginAllowThreads();
31881 delete arg1;
31882
31883 wxPyEndAllowThreads(__tstate);
31884 if (PyErr_Occurred()) SWIG_fail;
31885 }
31886 resultobj = SWIG_Py_Void();
31887 return resultobj;
31888 fail:
31889 return NULL;
31890 }
31891
31892
31893 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31894 PyObject *resultobj = 0;
31895 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31896 void *argp1 = 0 ;
31897 int res1 = 0 ;
31898 PyObject *swig_obj[1] ;
31899
31900 if (!args) SWIG_fail;
31901 swig_obj[0] = args;
31902 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31903 if (!SWIG_IsOK(res1)) {
31904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31905 }
31906 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31907 {
31908 PyThreadState* __tstate = wxPyBeginAllowThreads();
31909 (arg1)->RemoveAll();
31910 wxPyEndAllowThreads(__tstate);
31911 if (PyErr_Occurred()) SWIG_fail;
31912 }
31913 resultobj = SWIG_Py_Void();
31914 return resultobj;
31915 fail:
31916 return NULL;
31917 }
31918
31919
31920 SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31921 PyObject *resultobj = 0;
31922 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31923 int result;
31924 void *argp1 = 0 ;
31925 int res1 = 0 ;
31926 PyObject *swig_obj[1] ;
31927
31928 if (!args) SWIG_fail;
31929 swig_obj[0] = args;
31930 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31931 if (!SWIG_IsOK(res1)) {
31932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31933 }
31934 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31935 {
31936 PyThreadState* __tstate = wxPyBeginAllowThreads();
31937 result = (int)(arg1)->GetLen();
31938 wxPyEndAllowThreads(__tstate);
31939 if (PyErr_Occurred()) SWIG_fail;
31940 }
31941 resultobj = SWIG_From_int(static_cast< int >(result));
31942 return resultobj;
31943 fail:
31944 return NULL;
31945 }
31946
31947
31948 SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31949 PyObject *resultobj = 0;
31950 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31951 int arg2 ;
31952 void *argp1 = 0 ;
31953 int res1 = 0 ;
31954 int val2 ;
31955 int ecode2 = 0 ;
31956 PyObject * obj0 = 0 ;
31957 PyObject * obj1 = 0 ;
31958 char * kwnames[] = {
31959 (char *) "self",(char *) "id", NULL
31960 };
31961
31962 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
31963 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31964 if (!SWIG_IsOK(res1)) {
31965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31966 }
31967 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31968 ecode2 = SWIG_AsVal_int(obj1, &val2);
31969 if (!SWIG_IsOK(ecode2)) {
31970 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'");
31971 }
31972 arg2 = static_cast< int >(val2);
31973 {
31974 PyThreadState* __tstate = wxPyBeginAllowThreads();
31975 (arg1)->SetId(arg2);
31976 wxPyEndAllowThreads(__tstate);
31977 if (PyErr_Occurred()) SWIG_fail;
31978 }
31979 resultobj = SWIG_Py_Void();
31980 return resultobj;
31981 fail:
31982 return NULL;
31983 }
31984
31985
31986 SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31987 PyObject *resultobj = 0;
31988 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31989 int arg2 ;
31990 void *argp1 = 0 ;
31991 int res1 = 0 ;
31992 int val2 ;
31993 int ecode2 = 0 ;
31994 PyObject * obj0 = 0 ;
31995 PyObject * obj1 = 0 ;
31996 char * kwnames[] = {
31997 (char *) "self",(char *) "id", NULL
31998 };
31999
32000 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail;
32001 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32002 if (!SWIG_IsOK(res1)) {
32003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32004 }
32005 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32006 ecode2 = SWIG_AsVal_int(obj1, &val2);
32007 if (!SWIG_IsOK(ecode2)) {
32008 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'");
32009 }
32010 arg2 = static_cast< int >(val2);
32011 {
32012 PyThreadState* __tstate = wxPyBeginAllowThreads();
32013 (arg1)->ClearId(arg2);
32014 wxPyEndAllowThreads(__tstate);
32015 if (PyErr_Occurred()) SWIG_fail;
32016 }
32017 resultobj = SWIG_Py_Void();
32018 return resultobj;
32019 fail:
32020 return NULL;
32021 }
32022
32023
32024 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32025 PyObject *resultobj = 0;
32026 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32027 int arg2 ;
32028 void *argp1 = 0 ;
32029 int res1 = 0 ;
32030 int val2 ;
32031 int ecode2 = 0 ;
32032 PyObject * obj0 = 0 ;
32033 PyObject * obj1 = 0 ;
32034 char * kwnames[] = {
32035 (char *) "self",(char *) "id", NULL
32036 };
32037
32038 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail;
32039 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32040 if (!SWIG_IsOK(res1)) {
32041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32042 }
32043 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32044 ecode2 = SWIG_AsVal_int(obj1, &val2);
32045 if (!SWIG_IsOK(ecode2)) {
32046 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'");
32047 }
32048 arg2 = static_cast< int >(val2);
32049 {
32050 PyThreadState* __tstate = wxPyBeginAllowThreads();
32051 (arg1)->RemoveId(arg2);
32052 wxPyEndAllowThreads(__tstate);
32053 if (PyErr_Occurred()) SWIG_fail;
32054 }
32055 resultobj = SWIG_Py_Void();
32056 return resultobj;
32057 fail:
32058 return NULL;
32059 }
32060
32061
32062 SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32063 PyObject *resultobj = 0;
32064 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32065 int arg2 ;
32066 int arg3 ;
32067 int arg4 ;
32068 void *argp1 = 0 ;
32069 int res1 = 0 ;
32070 int val2 ;
32071 int ecode2 = 0 ;
32072 int val3 ;
32073 int ecode3 = 0 ;
32074 int val4 ;
32075 int ecode4 = 0 ;
32076 PyObject * obj0 = 0 ;
32077 PyObject * obj1 = 0 ;
32078 PyObject * obj2 = 0 ;
32079 PyObject * obj3 = 0 ;
32080 char * kwnames[] = {
32081 (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL
32082 };
32083
32084 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32085 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32086 if (!SWIG_IsOK(res1)) {
32087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32088 }
32089 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32090 ecode2 = SWIG_AsVal_int(obj1, &val2);
32091 if (!SWIG_IsOK(ecode2)) {
32092 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'");
32093 }
32094 arg2 = static_cast< int >(val2);
32095 ecode3 = SWIG_AsVal_int(obj2, &val3);
32096 if (!SWIG_IsOK(ecode3)) {
32097 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'");
32098 }
32099 arg3 = static_cast< int >(val3);
32100 ecode4 = SWIG_AsVal_int(obj3, &val4);
32101 if (!SWIG_IsOK(ecode4)) {
32102 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'");
32103 }
32104 arg4 = static_cast< int >(val4);
32105 {
32106 PyThreadState* __tstate = wxPyBeginAllowThreads();
32107 (arg1)->TranslateId(arg2,arg3,arg4);
32108 wxPyEndAllowThreads(__tstate);
32109 if (PyErr_Occurred()) SWIG_fail;
32110 }
32111 resultobj = SWIG_Py_Void();
32112 return resultobj;
32113 fail:
32114 return NULL;
32115 }
32116
32117
32118 SWIGINTERN PyObject *_wrap_PseudoDC_SetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32119 PyObject *resultobj = 0;
32120 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32121 int arg2 ;
32122 bool arg3 = (bool) true ;
32123 void *argp1 = 0 ;
32124 int res1 = 0 ;
32125 int val2 ;
32126 int ecode2 = 0 ;
32127 bool val3 ;
32128 int ecode3 = 0 ;
32129 PyObject * obj0 = 0 ;
32130 PyObject * obj1 = 0 ;
32131 PyObject * obj2 = 0 ;
32132 char * kwnames[] = {
32133 (char *) "self",(char *) "id",(char *) "greyout", NULL
32134 };
32135
32136 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoDC_SetIdGreyedOut",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32137 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32138 if (!SWIG_IsOK(res1)) {
32139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32140 }
32141 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32142 ecode2 = SWIG_AsVal_int(obj1, &val2);
32143 if (!SWIG_IsOK(ecode2)) {
32144 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
32145 }
32146 arg2 = static_cast< int >(val2);
32147 if (obj2) {
32148 ecode3 = SWIG_AsVal_bool(obj2, &val3);
32149 if (!SWIG_IsOK(ecode3)) {
32150 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "3"" of type '" "bool""'");
32151 }
32152 arg3 = static_cast< bool >(val3);
32153 }
32154 {
32155 PyThreadState* __tstate = wxPyBeginAllowThreads();
32156 (arg1)->SetIdGreyedOut(arg2,arg3);
32157 wxPyEndAllowThreads(__tstate);
32158 if (PyErr_Occurred()) SWIG_fail;
32159 }
32160 resultobj = SWIG_Py_Void();
32161 return resultobj;
32162 fail:
32163 return NULL;
32164 }
32165
32166
32167 SWIGINTERN PyObject *_wrap_PseudoDC_GetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32168 PyObject *resultobj = 0;
32169 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32170 int arg2 ;
32171 bool result;
32172 void *argp1 = 0 ;
32173 int res1 = 0 ;
32174 int val2 ;
32175 int ecode2 = 0 ;
32176 PyObject * obj0 = 0 ;
32177 PyObject * obj1 = 0 ;
32178 char * kwnames[] = {
32179 (char *) "self",(char *) "id", NULL
32180 };
32181
32182 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdGreyedOut",kwnames,&obj0,&obj1)) SWIG_fail;
32183 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32184 if (!SWIG_IsOK(res1)) {
32185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32186 }
32187 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32188 ecode2 = SWIG_AsVal_int(obj1, &val2);
32189 if (!SWIG_IsOK(ecode2)) {
32190 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
32191 }
32192 arg2 = static_cast< int >(val2);
32193 {
32194 PyThreadState* __tstate = wxPyBeginAllowThreads();
32195 result = (bool)(arg1)->GetIdGreyedOut(arg2);
32196 wxPyEndAllowThreads(__tstate);
32197 if (PyErr_Occurred()) SWIG_fail;
32198 }
32199 {
32200 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32201 }
32202 return resultobj;
32203 fail:
32204 return NULL;
32205 }
32206
32207
32208 SWIGINTERN PyObject *_wrap_PseudoDC_FindObjects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32209 PyObject *resultobj = 0;
32210 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32211 int arg2 ;
32212 int arg3 ;
32213 int arg4 = (int) 1 ;
32214 wxColor const &arg5_defvalue = *wxWHITE ;
32215 wxColor *arg5 = (wxColor *) &arg5_defvalue ;
32216 PyObject *result = 0 ;
32217 void *argp1 = 0 ;
32218 int res1 = 0 ;
32219 int val2 ;
32220 int ecode2 = 0 ;
32221 int val3 ;
32222 int ecode3 = 0 ;
32223 int val4 ;
32224 int ecode4 = 0 ;
32225 void *argp5 = 0 ;
32226 int res5 = 0 ;
32227 PyObject * obj0 = 0 ;
32228 PyObject * obj1 = 0 ;
32229 PyObject * obj2 = 0 ;
32230 PyObject * obj3 = 0 ;
32231 PyObject * obj4 = 0 ;
32232 char * kwnames[] = {
32233 (char *) "self",(char *) "x",(char *) "y",(char *) "radius",(char *) "bg", NULL
32234 };
32235
32236 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_FindObjects",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32237 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32238 if (!SWIG_IsOK(res1)) {
32239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjects" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32240 }
32241 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32242 ecode2 = SWIG_AsVal_int(obj1, &val2);
32243 if (!SWIG_IsOK(ecode2)) {
32244 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjects" "', expected argument " "2"" of type '" "int""'");
32245 }
32246 arg2 = static_cast< int >(val2);
32247 ecode3 = SWIG_AsVal_int(obj2, &val3);
32248 if (!SWIG_IsOK(ecode3)) {
32249 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjects" "', expected argument " "3"" of type '" "int""'");
32250 }
32251 arg3 = static_cast< int >(val3);
32252 if (obj3) {
32253 ecode4 = SWIG_AsVal_int(obj3, &val4);
32254 if (!SWIG_IsOK(ecode4)) {
32255 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FindObjects" "', expected argument " "4"" of type '" "int""'");
32256 }
32257 arg4 = static_cast< int >(val4);
32258 }
32259 if (obj4) {
32260 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxColor, 0 | 0);
32261 if (!SWIG_IsOK(res5)) {
32262 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
32263 }
32264 if (!argp5) {
32265 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
32266 }
32267 arg5 = reinterpret_cast< wxColor * >(argp5);
32268 }
32269 {
32270 result = (PyObject *)(arg1)->FindObjects(arg2,arg3,arg4,(wxColor const &)*arg5);
32271 if (PyErr_Occurred()) SWIG_fail;
32272 }
32273 resultobj = result;
32274 return resultobj;
32275 fail:
32276 return NULL;
32277 }
32278
32279
32280 SWIGINTERN PyObject *_wrap_PseudoDC_FindObjectsByBBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32281 PyObject *resultobj = 0;
32282 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32283 int arg2 ;
32284 int arg3 ;
32285 PyObject *result = 0 ;
32286 void *argp1 = 0 ;
32287 int res1 = 0 ;
32288 int val2 ;
32289 int ecode2 = 0 ;
32290 int val3 ;
32291 int ecode3 = 0 ;
32292 PyObject * obj0 = 0 ;
32293 PyObject * obj1 = 0 ;
32294 PyObject * obj2 = 0 ;
32295 char * kwnames[] = {
32296 (char *) "self",(char *) "x",(char *) "y", NULL
32297 };
32298
32299 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_FindObjectsByBBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32300 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32301 if (!SWIG_IsOK(res1)) {
32302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32303 }
32304 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32305 ecode2 = SWIG_AsVal_int(obj1, &val2);
32306 if (!SWIG_IsOK(ecode2)) {
32307 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "2"" of type '" "int""'");
32308 }
32309 arg2 = static_cast< int >(val2);
32310 ecode3 = SWIG_AsVal_int(obj2, &val3);
32311 if (!SWIG_IsOK(ecode3)) {
32312 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "3"" of type '" "int""'");
32313 }
32314 arg3 = static_cast< int >(val3);
32315 {
32316 result = (PyObject *)(arg1)->FindObjectsByBBox(arg2,arg3);
32317 if (PyErr_Occurred()) SWIG_fail;
32318 }
32319 resultobj = result;
32320 return resultobj;
32321 fail:
32322 return NULL;
32323 }
32324
32325
32326 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32327 PyObject *resultobj = 0;
32328 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32329 int arg2 ;
32330 wxDC *arg3 = (wxDC *) 0 ;
32331 void *argp1 = 0 ;
32332 int res1 = 0 ;
32333 int val2 ;
32334 int ecode2 = 0 ;
32335 void *argp3 = 0 ;
32336 int res3 = 0 ;
32337 PyObject * obj0 = 0 ;
32338 PyObject * obj1 = 0 ;
32339 PyObject * obj2 = 0 ;
32340 char * kwnames[] = {
32341 (char *) "self",(char *) "id",(char *) "dc", NULL
32342 };
32343
32344 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32345 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32346 if (!SWIG_IsOK(res1)) {
32347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32348 }
32349 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32350 ecode2 = SWIG_AsVal_int(obj1, &val2);
32351 if (!SWIG_IsOK(ecode2)) {
32352 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'");
32353 }
32354 arg2 = static_cast< int >(val2);
32355 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 );
32356 if (!SWIG_IsOK(res3)) {
32357 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'");
32358 }
32359 arg3 = reinterpret_cast< wxDC * >(argp3);
32360 {
32361 PyThreadState* __tstate = wxPyBeginAllowThreads();
32362 (arg1)->DrawIdToDC(arg2,arg3);
32363 wxPyEndAllowThreads(__tstate);
32364 if (PyErr_Occurred()) SWIG_fail;
32365 }
32366 resultobj = SWIG_Py_Void();
32367 return resultobj;
32368 fail:
32369 return NULL;
32370 }
32371
32372
32373 SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32374 PyObject *resultobj = 0;
32375 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32376 int arg2 ;
32377 wxRect *arg3 = 0 ;
32378 void *argp1 = 0 ;
32379 int res1 = 0 ;
32380 int val2 ;
32381 int ecode2 = 0 ;
32382 wxRect temp3 ;
32383 PyObject * obj0 = 0 ;
32384 PyObject * obj1 = 0 ;
32385 PyObject * obj2 = 0 ;
32386 char * kwnames[] = {
32387 (char *) "self",(char *) "id",(char *) "rect", NULL
32388 };
32389
32390 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32391 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32392 if (!SWIG_IsOK(res1)) {
32393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32394 }
32395 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32396 ecode2 = SWIG_AsVal_int(obj1, &val2);
32397 if (!SWIG_IsOK(ecode2)) {
32398 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'");
32399 }
32400 arg2 = static_cast< int >(val2);
32401 {
32402 arg3 = &temp3;
32403 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
32404 }
32405 {
32406 PyThreadState* __tstate = wxPyBeginAllowThreads();
32407 (arg1)->SetIdBounds(arg2,*arg3);
32408 wxPyEndAllowThreads(__tstate);
32409 if (PyErr_Occurred()) SWIG_fail;
32410 }
32411 resultobj = SWIG_Py_Void();
32412 return resultobj;
32413 fail:
32414 return NULL;
32415 }
32416
32417
32418 SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32419 PyObject *resultobj = 0;
32420 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32421 int arg2 ;
32422 wxRect result;
32423 void *argp1 = 0 ;
32424 int res1 = 0 ;
32425 int val2 ;
32426 int ecode2 = 0 ;
32427 PyObject * obj0 = 0 ;
32428 PyObject * obj1 = 0 ;
32429 char * kwnames[] = {
32430 (char *) "self",(char *) "id", NULL
32431 };
32432
32433 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail;
32434 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32435 if (!SWIG_IsOK(res1)) {
32436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32437 }
32438 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32439 ecode2 = SWIG_AsVal_int(obj1, &val2);
32440 if (!SWIG_IsOK(ecode2)) {
32441 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'");
32442 }
32443 arg2 = static_cast< int >(val2);
32444 {
32445 PyThreadState* __tstate = wxPyBeginAllowThreads();
32446 result = wxPseudoDC_GetIdBounds(arg1,arg2);
32447 wxPyEndAllowThreads(__tstate);
32448 if (PyErr_Occurred()) SWIG_fail;
32449 }
32450 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
32451 return resultobj;
32452 fail:
32453 return NULL;
32454 }
32455
32456
32457 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32458 PyObject *resultobj = 0;
32459 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32460 wxDC *arg2 = (wxDC *) 0 ;
32461 wxRect *arg3 = 0 ;
32462 void *argp1 = 0 ;
32463 int res1 = 0 ;
32464 void *argp2 = 0 ;
32465 int res2 = 0 ;
32466 wxRect temp3 ;
32467 PyObject * obj0 = 0 ;
32468 PyObject * obj1 = 0 ;
32469 PyObject * obj2 = 0 ;
32470 char * kwnames[] = {
32471 (char *) "self",(char *) "dc",(char *) "rect", NULL
32472 };
32473
32474 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32475 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32476 if (!SWIG_IsOK(res1)) {
32477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32478 }
32479 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32480 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
32481 if (!SWIG_IsOK(res2)) {
32482 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'");
32483 }
32484 arg2 = reinterpret_cast< wxDC * >(argp2);
32485 {
32486 arg3 = &temp3;
32487 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
32488 }
32489 {
32490 PyThreadState* __tstate = wxPyBeginAllowThreads();
32491 (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3);
32492 wxPyEndAllowThreads(__tstate);
32493 if (PyErr_Occurred()) SWIG_fail;
32494 }
32495 resultobj = SWIG_Py_Void();
32496 return resultobj;
32497 fail:
32498 return NULL;
32499 }
32500
32501
32502 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32503 PyObject *resultobj = 0;
32504 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32505 wxDC *arg2 = (wxDC *) 0 ;
32506 wxRegion *arg3 = 0 ;
32507 void *argp1 = 0 ;
32508 int res1 = 0 ;
32509 void *argp2 = 0 ;
32510 int res2 = 0 ;
32511 void *argp3 = 0 ;
32512 int res3 = 0 ;
32513 PyObject * obj0 = 0 ;
32514 PyObject * obj1 = 0 ;
32515 PyObject * obj2 = 0 ;
32516 char * kwnames[] = {
32517 (char *) "self",(char *) "dc",(char *) "region", NULL
32518 };
32519
32520 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32521 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32522 if (!SWIG_IsOK(res1)) {
32523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32524 }
32525 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32526 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
32527 if (!SWIG_IsOK(res2)) {
32528 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'");
32529 }
32530 arg2 = reinterpret_cast< wxDC * >(argp2);
32531 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0);
32532 if (!SWIG_IsOK(res3)) {
32533 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
32534 }
32535 if (!argp3) {
32536 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
32537 }
32538 arg3 = reinterpret_cast< wxRegion * >(argp3);
32539 {
32540 PyThreadState* __tstate = wxPyBeginAllowThreads();
32541 (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3);
32542 wxPyEndAllowThreads(__tstate);
32543 if (PyErr_Occurred()) SWIG_fail;
32544 }
32545 resultobj = SWIG_Py_Void();
32546 return resultobj;
32547 fail:
32548 return NULL;
32549 }
32550
32551
32552 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32553 PyObject *resultobj = 0;
32554 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32555 wxDC *arg2 = (wxDC *) 0 ;
32556 void *argp1 = 0 ;
32557 int res1 = 0 ;
32558 void *argp2 = 0 ;
32559 int res2 = 0 ;
32560 PyObject * obj0 = 0 ;
32561 PyObject * obj1 = 0 ;
32562 char * kwnames[] = {
32563 (char *) "self",(char *) "dc", NULL
32564 };
32565
32566 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail;
32567 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32568 if (!SWIG_IsOK(res1)) {
32569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32570 }
32571 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32572 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
32573 if (!SWIG_IsOK(res2)) {
32574 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'");
32575 }
32576 arg2 = reinterpret_cast< wxDC * >(argp2);
32577 {
32578 PyThreadState* __tstate = wxPyBeginAllowThreads();
32579 (arg1)->DrawToDC(arg2);
32580 wxPyEndAllowThreads(__tstate);
32581 if (PyErr_Occurred()) SWIG_fail;
32582 }
32583 resultobj = SWIG_Py_Void();
32584 return resultobj;
32585 fail:
32586 return NULL;
32587 }
32588
32589
32590 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32591 PyObject *resultobj = 0;
32592 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32593 int arg2 ;
32594 int arg3 ;
32595 wxColour *arg4 = 0 ;
32596 int arg5 = (int) wxFLOOD_SURFACE ;
32597 void *argp1 = 0 ;
32598 int res1 = 0 ;
32599 int val2 ;
32600 int ecode2 = 0 ;
32601 int val3 ;
32602 int ecode3 = 0 ;
32603 wxColour temp4 ;
32604 int val5 ;
32605 int ecode5 = 0 ;
32606 PyObject * obj0 = 0 ;
32607 PyObject * obj1 = 0 ;
32608 PyObject * obj2 = 0 ;
32609 PyObject * obj3 = 0 ;
32610 PyObject * obj4 = 0 ;
32611 char * kwnames[] = {
32612 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
32613 };
32614
32615 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32616 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32617 if (!SWIG_IsOK(res1)) {
32618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32619 }
32620 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32621 ecode2 = SWIG_AsVal_int(obj1, &val2);
32622 if (!SWIG_IsOK(ecode2)) {
32623 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'");
32624 }
32625 arg2 = static_cast< int >(val2);
32626 ecode3 = SWIG_AsVal_int(obj2, &val3);
32627 if (!SWIG_IsOK(ecode3)) {
32628 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'");
32629 }
32630 arg3 = static_cast< int >(val3);
32631 {
32632 arg4 = &temp4;
32633 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
32634 }
32635 if (obj4) {
32636 ecode5 = SWIG_AsVal_int(obj4, &val5);
32637 if (!SWIG_IsOK(ecode5)) {
32638 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'");
32639 }
32640 arg5 = static_cast< int >(val5);
32641 }
32642 {
32643 PyThreadState* __tstate = wxPyBeginAllowThreads();
32644 (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
32645 wxPyEndAllowThreads(__tstate);
32646 if (PyErr_Occurred()) SWIG_fail;
32647 }
32648 resultobj = SWIG_Py_Void();
32649 return resultobj;
32650 fail:
32651 return NULL;
32652 }
32653
32654
32655 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32656 PyObject *resultobj = 0;
32657 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32658 wxPoint *arg2 = 0 ;
32659 wxColour *arg3 = 0 ;
32660 int arg4 = (int) wxFLOOD_SURFACE ;
32661 void *argp1 = 0 ;
32662 int res1 = 0 ;
32663 wxPoint temp2 ;
32664 wxColour temp3 ;
32665 int val4 ;
32666 int ecode4 = 0 ;
32667 PyObject * obj0 = 0 ;
32668 PyObject * obj1 = 0 ;
32669 PyObject * obj2 = 0 ;
32670 PyObject * obj3 = 0 ;
32671 char * kwnames[] = {
32672 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
32673 };
32674
32675 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32676 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32677 if (!SWIG_IsOK(res1)) {
32678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32679 }
32680 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32681 {
32682 arg2 = &temp2;
32683 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32684 }
32685 {
32686 arg3 = &temp3;
32687 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
32688 }
32689 if (obj3) {
32690 ecode4 = SWIG_AsVal_int(obj3, &val4);
32691 if (!SWIG_IsOK(ecode4)) {
32692 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
32693 }
32694 arg4 = static_cast< int >(val4);
32695 }
32696 {
32697 PyThreadState* __tstate = wxPyBeginAllowThreads();
32698 (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
32699 wxPyEndAllowThreads(__tstate);
32700 if (PyErr_Occurred()) SWIG_fail;
32701 }
32702 resultobj = SWIG_Py_Void();
32703 return resultobj;
32704 fail:
32705 return NULL;
32706 }
32707
32708
32709 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32710 PyObject *resultobj = 0;
32711 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32712 int arg2 ;
32713 int arg3 ;
32714 int arg4 ;
32715 int arg5 ;
32716 void *argp1 = 0 ;
32717 int res1 = 0 ;
32718 int val2 ;
32719 int ecode2 = 0 ;
32720 int val3 ;
32721 int ecode3 = 0 ;
32722 int val4 ;
32723 int ecode4 = 0 ;
32724 int val5 ;
32725 int ecode5 = 0 ;
32726 PyObject * obj0 = 0 ;
32727 PyObject * obj1 = 0 ;
32728 PyObject * obj2 = 0 ;
32729 PyObject * obj3 = 0 ;
32730 PyObject * obj4 = 0 ;
32731 char * kwnames[] = {
32732 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
32733 };
32734
32735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32736 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32737 if (!SWIG_IsOK(res1)) {
32738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32739 }
32740 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32741 ecode2 = SWIG_AsVal_int(obj1, &val2);
32742 if (!SWIG_IsOK(ecode2)) {
32743 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'");
32744 }
32745 arg2 = static_cast< int >(val2);
32746 ecode3 = SWIG_AsVal_int(obj2, &val3);
32747 if (!SWIG_IsOK(ecode3)) {
32748 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'");
32749 }
32750 arg3 = static_cast< int >(val3);
32751 ecode4 = SWIG_AsVal_int(obj3, &val4);
32752 if (!SWIG_IsOK(ecode4)) {
32753 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'");
32754 }
32755 arg4 = static_cast< int >(val4);
32756 ecode5 = SWIG_AsVal_int(obj4, &val5);
32757 if (!SWIG_IsOK(ecode5)) {
32758 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'");
32759 }
32760 arg5 = static_cast< int >(val5);
32761 {
32762 PyThreadState* __tstate = wxPyBeginAllowThreads();
32763 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
32764 wxPyEndAllowThreads(__tstate);
32765 if (PyErr_Occurred()) SWIG_fail;
32766 }
32767 resultobj = SWIG_Py_Void();
32768 return resultobj;
32769 fail:
32770 return NULL;
32771 }
32772
32773
32774 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32775 PyObject *resultobj = 0;
32776 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32777 wxPoint *arg2 = 0 ;
32778 wxPoint *arg3 = 0 ;
32779 void *argp1 = 0 ;
32780 int res1 = 0 ;
32781 wxPoint temp2 ;
32782 wxPoint temp3 ;
32783 PyObject * obj0 = 0 ;
32784 PyObject * obj1 = 0 ;
32785 PyObject * obj2 = 0 ;
32786 char * kwnames[] = {
32787 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
32788 };
32789
32790 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32791 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32792 if (!SWIG_IsOK(res1)) {
32793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32794 }
32795 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32796 {
32797 arg2 = &temp2;
32798 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32799 }
32800 {
32801 arg3 = &temp3;
32802 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
32803 }
32804 {
32805 PyThreadState* __tstate = wxPyBeginAllowThreads();
32806 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
32807 wxPyEndAllowThreads(__tstate);
32808 if (PyErr_Occurred()) SWIG_fail;
32809 }
32810 resultobj = SWIG_Py_Void();
32811 return resultobj;
32812 fail:
32813 return NULL;
32814 }
32815
32816
32817 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32818 PyObject *resultobj = 0;
32819 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32820 int arg2 ;
32821 int arg3 ;
32822 void *argp1 = 0 ;
32823 int res1 = 0 ;
32824 int val2 ;
32825 int ecode2 = 0 ;
32826 int val3 ;
32827 int ecode3 = 0 ;
32828 PyObject * obj0 = 0 ;
32829 PyObject * obj1 = 0 ;
32830 PyObject * obj2 = 0 ;
32831 char * kwnames[] = {
32832 (char *) "self",(char *) "x",(char *) "y", NULL
32833 };
32834
32835 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32836 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32837 if (!SWIG_IsOK(res1)) {
32838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32839 }
32840 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32841 ecode2 = SWIG_AsVal_int(obj1, &val2);
32842 if (!SWIG_IsOK(ecode2)) {
32843 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'");
32844 }
32845 arg2 = static_cast< int >(val2);
32846 ecode3 = SWIG_AsVal_int(obj2, &val3);
32847 if (!SWIG_IsOK(ecode3)) {
32848 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'");
32849 }
32850 arg3 = static_cast< int >(val3);
32851 {
32852 PyThreadState* __tstate = wxPyBeginAllowThreads();
32853 (arg1)->CrossHair(arg2,arg3);
32854 wxPyEndAllowThreads(__tstate);
32855 if (PyErr_Occurred()) SWIG_fail;
32856 }
32857 resultobj = SWIG_Py_Void();
32858 return resultobj;
32859 fail:
32860 return NULL;
32861 }
32862
32863
32864 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32865 PyObject *resultobj = 0;
32866 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32867 wxPoint *arg2 = 0 ;
32868 void *argp1 = 0 ;
32869 int res1 = 0 ;
32870 wxPoint temp2 ;
32871 PyObject * obj0 = 0 ;
32872 PyObject * obj1 = 0 ;
32873 char * kwnames[] = {
32874 (char *) "self",(char *) "pt", NULL
32875 };
32876
32877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
32878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32879 if (!SWIG_IsOK(res1)) {
32880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32881 }
32882 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32883 {
32884 arg2 = &temp2;
32885 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32886 }
32887 {
32888 PyThreadState* __tstate = wxPyBeginAllowThreads();
32889 (arg1)->CrossHair((wxPoint const &)*arg2);
32890 wxPyEndAllowThreads(__tstate);
32891 if (PyErr_Occurred()) SWIG_fail;
32892 }
32893 resultobj = SWIG_Py_Void();
32894 return resultobj;
32895 fail:
32896 return NULL;
32897 }
32898
32899
32900 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32901 PyObject *resultobj = 0;
32902 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32903 int arg2 ;
32904 int arg3 ;
32905 int arg4 ;
32906 int arg5 ;
32907 int arg6 ;
32908 int arg7 ;
32909 void *argp1 = 0 ;
32910 int res1 = 0 ;
32911 int val2 ;
32912 int ecode2 = 0 ;
32913 int val3 ;
32914 int ecode3 = 0 ;
32915 int val4 ;
32916 int ecode4 = 0 ;
32917 int val5 ;
32918 int ecode5 = 0 ;
32919 int val6 ;
32920 int ecode6 = 0 ;
32921 int val7 ;
32922 int ecode7 = 0 ;
32923 PyObject * obj0 = 0 ;
32924 PyObject * obj1 = 0 ;
32925 PyObject * obj2 = 0 ;
32926 PyObject * obj3 = 0 ;
32927 PyObject * obj4 = 0 ;
32928 PyObject * obj5 = 0 ;
32929 PyObject * obj6 = 0 ;
32930 char * kwnames[] = {
32931 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
32932 };
32933
32934 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
32935 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32936 if (!SWIG_IsOK(res1)) {
32937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32938 }
32939 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32940 ecode2 = SWIG_AsVal_int(obj1, &val2);
32941 if (!SWIG_IsOK(ecode2)) {
32942 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'");
32943 }
32944 arg2 = static_cast< int >(val2);
32945 ecode3 = SWIG_AsVal_int(obj2, &val3);
32946 if (!SWIG_IsOK(ecode3)) {
32947 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'");
32948 }
32949 arg3 = static_cast< int >(val3);
32950 ecode4 = SWIG_AsVal_int(obj3, &val4);
32951 if (!SWIG_IsOK(ecode4)) {
32952 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'");
32953 }
32954 arg4 = static_cast< int >(val4);
32955 ecode5 = SWIG_AsVal_int(obj4, &val5);
32956 if (!SWIG_IsOK(ecode5)) {
32957 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'");
32958 }
32959 arg5 = static_cast< int >(val5);
32960 ecode6 = SWIG_AsVal_int(obj5, &val6);
32961 if (!SWIG_IsOK(ecode6)) {
32962 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'");
32963 }
32964 arg6 = static_cast< int >(val6);
32965 ecode7 = SWIG_AsVal_int(obj6, &val7);
32966 if (!SWIG_IsOK(ecode7)) {
32967 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'");
32968 }
32969 arg7 = static_cast< int >(val7);
32970 {
32971 PyThreadState* __tstate = wxPyBeginAllowThreads();
32972 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
32973 wxPyEndAllowThreads(__tstate);
32974 if (PyErr_Occurred()) SWIG_fail;
32975 }
32976 resultobj = SWIG_Py_Void();
32977 return resultobj;
32978 fail:
32979 return NULL;
32980 }
32981
32982
32983 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32984 PyObject *resultobj = 0;
32985 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32986 wxPoint *arg2 = 0 ;
32987 wxPoint *arg3 = 0 ;
32988 wxPoint *arg4 = 0 ;
32989 void *argp1 = 0 ;
32990 int res1 = 0 ;
32991 wxPoint temp2 ;
32992 wxPoint temp3 ;
32993 wxPoint temp4 ;
32994 PyObject * obj0 = 0 ;
32995 PyObject * obj1 = 0 ;
32996 PyObject * obj2 = 0 ;
32997 PyObject * obj3 = 0 ;
32998 char * kwnames[] = {
32999 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
33000 };
33001
33002 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33003 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33004 if (!SWIG_IsOK(res1)) {
33005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33006 }
33007 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33008 {
33009 arg2 = &temp2;
33010 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33011 }
33012 {
33013 arg3 = &temp3;
33014 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33015 }
33016 {
33017 arg4 = &temp4;
33018 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
33019 }
33020 {
33021 PyThreadState* __tstate = wxPyBeginAllowThreads();
33022 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
33023 wxPyEndAllowThreads(__tstate);
33024 if (PyErr_Occurred()) SWIG_fail;
33025 }
33026 resultobj = SWIG_Py_Void();
33027 return resultobj;
33028 fail:
33029 return NULL;
33030 }
33031
33032
33033 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33034 PyObject *resultobj = 0;
33035 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33036 int arg2 ;
33037 int arg3 ;
33038 int arg4 ;
33039 int arg5 ;
33040 void *argp1 = 0 ;
33041 int res1 = 0 ;
33042 int val2 ;
33043 int ecode2 = 0 ;
33044 int val3 ;
33045 int ecode3 = 0 ;
33046 int val4 ;
33047 int ecode4 = 0 ;
33048 int val5 ;
33049 int ecode5 = 0 ;
33050 PyObject * obj0 = 0 ;
33051 PyObject * obj1 = 0 ;
33052 PyObject * obj2 = 0 ;
33053 PyObject * obj3 = 0 ;
33054 PyObject * obj4 = 0 ;
33055 char * kwnames[] = {
33056 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
33057 };
33058
33059 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33060 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33061 if (!SWIG_IsOK(res1)) {
33062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33063 }
33064 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33065 ecode2 = SWIG_AsVal_int(obj1, &val2);
33066 if (!SWIG_IsOK(ecode2)) {
33067 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
33068 }
33069 arg2 = static_cast< int >(val2);
33070 ecode3 = SWIG_AsVal_int(obj2, &val3);
33071 if (!SWIG_IsOK(ecode3)) {
33072 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
33073 }
33074 arg3 = static_cast< int >(val3);
33075 ecode4 = SWIG_AsVal_int(obj3, &val4);
33076 if (!SWIG_IsOK(ecode4)) {
33077 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
33078 }
33079 arg4 = static_cast< int >(val4);
33080 ecode5 = SWIG_AsVal_int(obj4, &val5);
33081 if (!SWIG_IsOK(ecode5)) {
33082 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
33083 }
33084 arg5 = static_cast< int >(val5);
33085 {
33086 PyThreadState* __tstate = wxPyBeginAllowThreads();
33087 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
33088 wxPyEndAllowThreads(__tstate);
33089 if (PyErr_Occurred()) SWIG_fail;
33090 }
33091 resultobj = SWIG_Py_Void();
33092 return resultobj;
33093 fail:
33094 return NULL;
33095 }
33096
33097
33098 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33099 PyObject *resultobj = 0;
33100 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33101 wxRect *arg2 = 0 ;
33102 void *argp1 = 0 ;
33103 int res1 = 0 ;
33104 wxRect temp2 ;
33105 PyObject * obj0 = 0 ;
33106 PyObject * obj1 = 0 ;
33107 char * kwnames[] = {
33108 (char *) "self",(char *) "rect", NULL
33109 };
33110
33111 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
33112 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33113 if (!SWIG_IsOK(res1)) {
33114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33115 }
33116 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33117 {
33118 arg2 = &temp2;
33119 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
33120 }
33121 {
33122 PyThreadState* __tstate = wxPyBeginAllowThreads();
33123 (arg1)->DrawCheckMark((wxRect const &)*arg2);
33124 wxPyEndAllowThreads(__tstate);
33125 if (PyErr_Occurred()) SWIG_fail;
33126 }
33127 resultobj = SWIG_Py_Void();
33128 return resultobj;
33129 fail:
33130 return NULL;
33131 }
33132
33133
33134 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33135 PyObject *resultobj = 0;
33136 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33137 int arg2 ;
33138 int arg3 ;
33139 int arg4 ;
33140 int arg5 ;
33141 double arg6 ;
33142 double arg7 ;
33143 void *argp1 = 0 ;
33144 int res1 = 0 ;
33145 int val2 ;
33146 int ecode2 = 0 ;
33147 int val3 ;
33148 int ecode3 = 0 ;
33149 int val4 ;
33150 int ecode4 = 0 ;
33151 int val5 ;
33152 int ecode5 = 0 ;
33153 double val6 ;
33154 int ecode6 = 0 ;
33155 double val7 ;
33156 int ecode7 = 0 ;
33157 PyObject * obj0 = 0 ;
33158 PyObject * obj1 = 0 ;
33159 PyObject * obj2 = 0 ;
33160 PyObject * obj3 = 0 ;
33161 PyObject * obj4 = 0 ;
33162 PyObject * obj5 = 0 ;
33163 PyObject * obj6 = 0 ;
33164 char * kwnames[] = {
33165 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
33166 };
33167
33168 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
33169 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33170 if (!SWIG_IsOK(res1)) {
33171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33172 }
33173 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33174 ecode2 = SWIG_AsVal_int(obj1, &val2);
33175 if (!SWIG_IsOK(ecode2)) {
33176 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
33177 }
33178 arg2 = static_cast< int >(val2);
33179 ecode3 = SWIG_AsVal_int(obj2, &val3);
33180 if (!SWIG_IsOK(ecode3)) {
33181 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
33182 }
33183 arg3 = static_cast< int >(val3);
33184 ecode4 = SWIG_AsVal_int(obj3, &val4);
33185 if (!SWIG_IsOK(ecode4)) {
33186 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
33187 }
33188 arg4 = static_cast< int >(val4);
33189 ecode5 = SWIG_AsVal_int(obj4, &val5);
33190 if (!SWIG_IsOK(ecode5)) {
33191 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
33192 }
33193 arg5 = static_cast< int >(val5);
33194 ecode6 = SWIG_AsVal_double(obj5, &val6);
33195 if (!SWIG_IsOK(ecode6)) {
33196 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
33197 }
33198 arg6 = static_cast< double >(val6);
33199 ecode7 = SWIG_AsVal_double(obj6, &val7);
33200 if (!SWIG_IsOK(ecode7)) {
33201 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
33202 }
33203 arg7 = static_cast< double >(val7);
33204 {
33205 PyThreadState* __tstate = wxPyBeginAllowThreads();
33206 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
33207 wxPyEndAllowThreads(__tstate);
33208 if (PyErr_Occurred()) SWIG_fail;
33209 }
33210 resultobj = SWIG_Py_Void();
33211 return resultobj;
33212 fail:
33213 return NULL;
33214 }
33215
33216
33217 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33218 PyObject *resultobj = 0;
33219 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33220 wxPoint *arg2 = 0 ;
33221 wxSize *arg3 = 0 ;
33222 double arg4 ;
33223 double arg5 ;
33224 void *argp1 = 0 ;
33225 int res1 = 0 ;
33226 wxPoint temp2 ;
33227 wxSize temp3 ;
33228 double val4 ;
33229 int ecode4 = 0 ;
33230 double val5 ;
33231 int ecode5 = 0 ;
33232 PyObject * obj0 = 0 ;
33233 PyObject * obj1 = 0 ;
33234 PyObject * obj2 = 0 ;
33235 PyObject * obj3 = 0 ;
33236 PyObject * obj4 = 0 ;
33237 char * kwnames[] = {
33238 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
33239 };
33240
33241 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33242 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33243 if (!SWIG_IsOK(res1)) {
33244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33245 }
33246 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33247 {
33248 arg2 = &temp2;
33249 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33250 }
33251 {
33252 arg3 = &temp3;
33253 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
33254 }
33255 ecode4 = SWIG_AsVal_double(obj3, &val4);
33256 if (!SWIG_IsOK(ecode4)) {
33257 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
33258 }
33259 arg4 = static_cast< double >(val4);
33260 ecode5 = SWIG_AsVal_double(obj4, &val5);
33261 if (!SWIG_IsOK(ecode5)) {
33262 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
33263 }
33264 arg5 = static_cast< double >(val5);
33265 {
33266 PyThreadState* __tstate = wxPyBeginAllowThreads();
33267 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
33268 wxPyEndAllowThreads(__tstate);
33269 if (PyErr_Occurred()) SWIG_fail;
33270 }
33271 resultobj = SWIG_Py_Void();
33272 return resultobj;
33273 fail:
33274 return NULL;
33275 }
33276
33277
33278 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33279 PyObject *resultobj = 0;
33280 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33281 int arg2 ;
33282 int arg3 ;
33283 void *argp1 = 0 ;
33284 int res1 = 0 ;
33285 int val2 ;
33286 int ecode2 = 0 ;
33287 int val3 ;
33288 int ecode3 = 0 ;
33289 PyObject * obj0 = 0 ;
33290 PyObject * obj1 = 0 ;
33291 PyObject * obj2 = 0 ;
33292 char * kwnames[] = {
33293 (char *) "self",(char *) "x",(char *) "y", NULL
33294 };
33295
33296 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33298 if (!SWIG_IsOK(res1)) {
33299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33300 }
33301 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33302 ecode2 = SWIG_AsVal_int(obj1, &val2);
33303 if (!SWIG_IsOK(ecode2)) {
33304 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
33305 }
33306 arg2 = static_cast< int >(val2);
33307 ecode3 = SWIG_AsVal_int(obj2, &val3);
33308 if (!SWIG_IsOK(ecode3)) {
33309 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
33310 }
33311 arg3 = static_cast< int >(val3);
33312 {
33313 PyThreadState* __tstate = wxPyBeginAllowThreads();
33314 (arg1)->DrawPoint(arg2,arg3);
33315 wxPyEndAllowThreads(__tstate);
33316 if (PyErr_Occurred()) SWIG_fail;
33317 }
33318 resultobj = SWIG_Py_Void();
33319 return resultobj;
33320 fail:
33321 return NULL;
33322 }
33323
33324
33325 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33326 PyObject *resultobj = 0;
33327 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33328 wxPoint *arg2 = 0 ;
33329 void *argp1 = 0 ;
33330 int res1 = 0 ;
33331 wxPoint temp2 ;
33332 PyObject * obj0 = 0 ;
33333 PyObject * obj1 = 0 ;
33334 char * kwnames[] = {
33335 (char *) "self",(char *) "pt", NULL
33336 };
33337
33338 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
33339 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33340 if (!SWIG_IsOK(res1)) {
33341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33342 }
33343 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33344 {
33345 arg2 = &temp2;
33346 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33347 }
33348 {
33349 PyThreadState* __tstate = wxPyBeginAllowThreads();
33350 (arg1)->DrawPoint((wxPoint const &)*arg2);
33351 wxPyEndAllowThreads(__tstate);
33352 if (PyErr_Occurred()) SWIG_fail;
33353 }
33354 resultobj = SWIG_Py_Void();
33355 return resultobj;
33356 fail:
33357 return NULL;
33358 }
33359
33360
33361 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33362 PyObject *resultobj = 0;
33363 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33364 int arg2 ;
33365 int arg3 ;
33366 int arg4 ;
33367 int arg5 ;
33368 void *argp1 = 0 ;
33369 int res1 = 0 ;
33370 int val2 ;
33371 int ecode2 = 0 ;
33372 int val3 ;
33373 int ecode3 = 0 ;
33374 int val4 ;
33375 int ecode4 = 0 ;
33376 int val5 ;
33377 int ecode5 = 0 ;
33378 PyObject * obj0 = 0 ;
33379 PyObject * obj1 = 0 ;
33380 PyObject * obj2 = 0 ;
33381 PyObject * obj3 = 0 ;
33382 PyObject * obj4 = 0 ;
33383 char * kwnames[] = {
33384 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
33385 };
33386
33387 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33388 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33389 if (!SWIG_IsOK(res1)) {
33390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33391 }
33392 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33393 ecode2 = SWIG_AsVal_int(obj1, &val2);
33394 if (!SWIG_IsOK(ecode2)) {
33395 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
33396 }
33397 arg2 = static_cast< int >(val2);
33398 ecode3 = SWIG_AsVal_int(obj2, &val3);
33399 if (!SWIG_IsOK(ecode3)) {
33400 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
33401 }
33402 arg3 = static_cast< int >(val3);
33403 ecode4 = SWIG_AsVal_int(obj3, &val4);
33404 if (!SWIG_IsOK(ecode4)) {
33405 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
33406 }
33407 arg4 = static_cast< int >(val4);
33408 ecode5 = SWIG_AsVal_int(obj4, &val5);
33409 if (!SWIG_IsOK(ecode5)) {
33410 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
33411 }
33412 arg5 = static_cast< int >(val5);
33413 {
33414 PyThreadState* __tstate = wxPyBeginAllowThreads();
33415 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
33416 wxPyEndAllowThreads(__tstate);
33417 if (PyErr_Occurred()) SWIG_fail;
33418 }
33419 resultobj = SWIG_Py_Void();
33420 return resultobj;
33421 fail:
33422 return NULL;
33423 }
33424
33425
33426 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33427 PyObject *resultobj = 0;
33428 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33429 wxRect *arg2 = 0 ;
33430 void *argp1 = 0 ;
33431 int res1 = 0 ;
33432 wxRect temp2 ;
33433 PyObject * obj0 = 0 ;
33434 PyObject * obj1 = 0 ;
33435 char * kwnames[] = {
33436 (char *) "self",(char *) "rect", NULL
33437 };
33438
33439 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
33440 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33441 if (!SWIG_IsOK(res1)) {
33442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33443 }
33444 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33445 {
33446 arg2 = &temp2;
33447 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
33448 }
33449 {
33450 PyThreadState* __tstate = wxPyBeginAllowThreads();
33451 (arg1)->DrawRectangle((wxRect const &)*arg2);
33452 wxPyEndAllowThreads(__tstate);
33453 if (PyErr_Occurred()) SWIG_fail;
33454 }
33455 resultobj = SWIG_Py_Void();
33456 return resultobj;
33457 fail:
33458 return NULL;
33459 }
33460
33461
33462 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33463 PyObject *resultobj = 0;
33464 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33465 wxPoint *arg2 = 0 ;
33466 wxSize *arg3 = 0 ;
33467 void *argp1 = 0 ;
33468 int res1 = 0 ;
33469 wxPoint temp2 ;
33470 wxSize temp3 ;
33471 PyObject * obj0 = 0 ;
33472 PyObject * obj1 = 0 ;
33473 PyObject * obj2 = 0 ;
33474 char * kwnames[] = {
33475 (char *) "self",(char *) "pt",(char *) "sz", NULL
33476 };
33477
33478 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33479 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33480 if (!SWIG_IsOK(res1)) {
33481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33482 }
33483 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33484 {
33485 arg2 = &temp2;
33486 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33487 }
33488 {
33489 arg3 = &temp3;
33490 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
33491 }
33492 {
33493 PyThreadState* __tstate = wxPyBeginAllowThreads();
33494 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
33495 wxPyEndAllowThreads(__tstate);
33496 if (PyErr_Occurred()) SWIG_fail;
33497 }
33498 resultobj = SWIG_Py_Void();
33499 return resultobj;
33500 fail:
33501 return NULL;
33502 }
33503
33504
33505 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33506 PyObject *resultobj = 0;
33507 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33508 int arg2 ;
33509 int arg3 ;
33510 int arg4 ;
33511 int arg5 ;
33512 double arg6 ;
33513 void *argp1 = 0 ;
33514 int res1 = 0 ;
33515 int val2 ;
33516 int ecode2 = 0 ;
33517 int val3 ;
33518 int ecode3 = 0 ;
33519 int val4 ;
33520 int ecode4 = 0 ;
33521 int val5 ;
33522 int ecode5 = 0 ;
33523 double val6 ;
33524 int ecode6 = 0 ;
33525 PyObject * obj0 = 0 ;
33526 PyObject * obj1 = 0 ;
33527 PyObject * obj2 = 0 ;
33528 PyObject * obj3 = 0 ;
33529 PyObject * obj4 = 0 ;
33530 PyObject * obj5 = 0 ;
33531 char * kwnames[] = {
33532 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
33533 };
33534
33535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
33536 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33537 if (!SWIG_IsOK(res1)) {
33538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33539 }
33540 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33541 ecode2 = SWIG_AsVal_int(obj1, &val2);
33542 if (!SWIG_IsOK(ecode2)) {
33543 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
33544 }
33545 arg2 = static_cast< int >(val2);
33546 ecode3 = SWIG_AsVal_int(obj2, &val3);
33547 if (!SWIG_IsOK(ecode3)) {
33548 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
33549 }
33550 arg3 = static_cast< int >(val3);
33551 ecode4 = SWIG_AsVal_int(obj3, &val4);
33552 if (!SWIG_IsOK(ecode4)) {
33553 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
33554 }
33555 arg4 = static_cast< int >(val4);
33556 ecode5 = SWIG_AsVal_int(obj4, &val5);
33557 if (!SWIG_IsOK(ecode5)) {
33558 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
33559 }
33560 arg5 = static_cast< int >(val5);
33561 ecode6 = SWIG_AsVal_double(obj5, &val6);
33562 if (!SWIG_IsOK(ecode6)) {
33563 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
33564 }
33565 arg6 = static_cast< double >(val6);
33566 {
33567 PyThreadState* __tstate = wxPyBeginAllowThreads();
33568 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
33569 wxPyEndAllowThreads(__tstate);
33570 if (PyErr_Occurred()) SWIG_fail;
33571 }
33572 resultobj = SWIG_Py_Void();
33573 return resultobj;
33574 fail:
33575 return NULL;
33576 }
33577
33578
33579 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33580 PyObject *resultobj = 0;
33581 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33582 wxRect *arg2 = 0 ;
33583 double arg3 ;
33584 void *argp1 = 0 ;
33585 int res1 = 0 ;
33586 wxRect temp2 ;
33587 double val3 ;
33588 int ecode3 = 0 ;
33589 PyObject * obj0 = 0 ;
33590 PyObject * obj1 = 0 ;
33591 PyObject * obj2 = 0 ;
33592 char * kwnames[] = {
33593 (char *) "self",(char *) "r",(char *) "radius", NULL
33594 };
33595
33596 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33597 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33598 if (!SWIG_IsOK(res1)) {
33599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33600 }
33601 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33602 {
33603 arg2 = &temp2;
33604 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
33605 }
33606 ecode3 = SWIG_AsVal_double(obj2, &val3);
33607 if (!SWIG_IsOK(ecode3)) {
33608 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
33609 }
33610 arg3 = static_cast< double >(val3);
33611 {
33612 PyThreadState* __tstate = wxPyBeginAllowThreads();
33613 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
33614 wxPyEndAllowThreads(__tstate);
33615 if (PyErr_Occurred()) SWIG_fail;
33616 }
33617 resultobj = SWIG_Py_Void();
33618 return resultobj;
33619 fail:
33620 return NULL;
33621 }
33622
33623
33624 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33625 PyObject *resultobj = 0;
33626 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33627 wxPoint *arg2 = 0 ;
33628 wxSize *arg3 = 0 ;
33629 double arg4 ;
33630 void *argp1 = 0 ;
33631 int res1 = 0 ;
33632 wxPoint temp2 ;
33633 wxSize temp3 ;
33634 double val4 ;
33635 int ecode4 = 0 ;
33636 PyObject * obj0 = 0 ;
33637 PyObject * obj1 = 0 ;
33638 PyObject * obj2 = 0 ;
33639 PyObject * obj3 = 0 ;
33640 char * kwnames[] = {
33641 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
33642 };
33643
33644 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33645 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33646 if (!SWIG_IsOK(res1)) {
33647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33648 }
33649 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33650 {
33651 arg2 = &temp2;
33652 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33653 }
33654 {
33655 arg3 = &temp3;
33656 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
33657 }
33658 ecode4 = SWIG_AsVal_double(obj3, &val4);
33659 if (!SWIG_IsOK(ecode4)) {
33660 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
33661 }
33662 arg4 = static_cast< double >(val4);
33663 {
33664 PyThreadState* __tstate = wxPyBeginAllowThreads();
33665 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
33666 wxPyEndAllowThreads(__tstate);
33667 if (PyErr_Occurred()) SWIG_fail;
33668 }
33669 resultobj = SWIG_Py_Void();
33670 return resultobj;
33671 fail:
33672 return NULL;
33673 }
33674
33675
33676 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33677 PyObject *resultobj = 0;
33678 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33679 int arg2 ;
33680 int arg3 ;
33681 int arg4 ;
33682 void *argp1 = 0 ;
33683 int res1 = 0 ;
33684 int val2 ;
33685 int ecode2 = 0 ;
33686 int val3 ;
33687 int ecode3 = 0 ;
33688 int val4 ;
33689 int ecode4 = 0 ;
33690 PyObject * obj0 = 0 ;
33691 PyObject * obj1 = 0 ;
33692 PyObject * obj2 = 0 ;
33693 PyObject * obj3 = 0 ;
33694 char * kwnames[] = {
33695 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
33696 };
33697
33698 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33699 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33700 if (!SWIG_IsOK(res1)) {
33701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33702 }
33703 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33704 ecode2 = SWIG_AsVal_int(obj1, &val2);
33705 if (!SWIG_IsOK(ecode2)) {
33706 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
33707 }
33708 arg2 = static_cast< int >(val2);
33709 ecode3 = SWIG_AsVal_int(obj2, &val3);
33710 if (!SWIG_IsOK(ecode3)) {
33711 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
33712 }
33713 arg3 = static_cast< int >(val3);
33714 ecode4 = SWIG_AsVal_int(obj3, &val4);
33715 if (!SWIG_IsOK(ecode4)) {
33716 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
33717 }
33718 arg4 = static_cast< int >(val4);
33719 {
33720 PyThreadState* __tstate = wxPyBeginAllowThreads();
33721 (arg1)->DrawCircle(arg2,arg3,arg4);
33722 wxPyEndAllowThreads(__tstate);
33723 if (PyErr_Occurred()) SWIG_fail;
33724 }
33725 resultobj = SWIG_Py_Void();
33726 return resultobj;
33727 fail:
33728 return NULL;
33729 }
33730
33731
33732 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33733 PyObject *resultobj = 0;
33734 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33735 wxPoint *arg2 = 0 ;
33736 int arg3 ;
33737 void *argp1 = 0 ;
33738 int res1 = 0 ;
33739 wxPoint temp2 ;
33740 int val3 ;
33741 int ecode3 = 0 ;
33742 PyObject * obj0 = 0 ;
33743 PyObject * obj1 = 0 ;
33744 PyObject * obj2 = 0 ;
33745 char * kwnames[] = {
33746 (char *) "self",(char *) "pt",(char *) "radius", NULL
33747 };
33748
33749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33750 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33751 if (!SWIG_IsOK(res1)) {
33752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33753 }
33754 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33755 {
33756 arg2 = &temp2;
33757 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33758 }
33759 ecode3 = SWIG_AsVal_int(obj2, &val3);
33760 if (!SWIG_IsOK(ecode3)) {
33761 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
33762 }
33763 arg3 = static_cast< int >(val3);
33764 {
33765 PyThreadState* __tstate = wxPyBeginAllowThreads();
33766 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
33767 wxPyEndAllowThreads(__tstate);
33768 if (PyErr_Occurred()) SWIG_fail;
33769 }
33770 resultobj = SWIG_Py_Void();
33771 return resultobj;
33772 fail:
33773 return NULL;
33774 }
33775
33776
33777 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33778 PyObject *resultobj = 0;
33779 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33780 int arg2 ;
33781 int arg3 ;
33782 int arg4 ;
33783 int arg5 ;
33784 void *argp1 = 0 ;
33785 int res1 = 0 ;
33786 int val2 ;
33787 int ecode2 = 0 ;
33788 int val3 ;
33789 int ecode3 = 0 ;
33790 int val4 ;
33791 int ecode4 = 0 ;
33792 int val5 ;
33793 int ecode5 = 0 ;
33794 PyObject * obj0 = 0 ;
33795 PyObject * obj1 = 0 ;
33796 PyObject * obj2 = 0 ;
33797 PyObject * obj3 = 0 ;
33798 PyObject * obj4 = 0 ;
33799 char * kwnames[] = {
33800 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
33801 };
33802
33803 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33804 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33805 if (!SWIG_IsOK(res1)) {
33806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33807 }
33808 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33809 ecode2 = SWIG_AsVal_int(obj1, &val2);
33810 if (!SWIG_IsOK(ecode2)) {
33811 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
33812 }
33813 arg2 = static_cast< int >(val2);
33814 ecode3 = SWIG_AsVal_int(obj2, &val3);
33815 if (!SWIG_IsOK(ecode3)) {
33816 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
33817 }
33818 arg3 = static_cast< int >(val3);
33819 ecode4 = SWIG_AsVal_int(obj3, &val4);
33820 if (!SWIG_IsOK(ecode4)) {
33821 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
33822 }
33823 arg4 = static_cast< int >(val4);
33824 ecode5 = SWIG_AsVal_int(obj4, &val5);
33825 if (!SWIG_IsOK(ecode5)) {
33826 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
33827 }
33828 arg5 = static_cast< int >(val5);
33829 {
33830 PyThreadState* __tstate = wxPyBeginAllowThreads();
33831 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
33832 wxPyEndAllowThreads(__tstate);
33833 if (PyErr_Occurred()) SWIG_fail;
33834 }
33835 resultobj = SWIG_Py_Void();
33836 return resultobj;
33837 fail:
33838 return NULL;
33839 }
33840
33841
33842 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33843 PyObject *resultobj = 0;
33844 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33845 wxRect *arg2 = 0 ;
33846 void *argp1 = 0 ;
33847 int res1 = 0 ;
33848 wxRect temp2 ;
33849 PyObject * obj0 = 0 ;
33850 PyObject * obj1 = 0 ;
33851 char * kwnames[] = {
33852 (char *) "self",(char *) "rect", NULL
33853 };
33854
33855 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
33856 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33857 if (!SWIG_IsOK(res1)) {
33858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33859 }
33860 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33861 {
33862 arg2 = &temp2;
33863 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
33864 }
33865 {
33866 PyThreadState* __tstate = wxPyBeginAllowThreads();
33867 (arg1)->DrawEllipse((wxRect const &)*arg2);
33868 wxPyEndAllowThreads(__tstate);
33869 if (PyErr_Occurred()) SWIG_fail;
33870 }
33871 resultobj = SWIG_Py_Void();
33872 return resultobj;
33873 fail:
33874 return NULL;
33875 }
33876
33877
33878 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33879 PyObject *resultobj = 0;
33880 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33881 wxPoint *arg2 = 0 ;
33882 wxSize *arg3 = 0 ;
33883 void *argp1 = 0 ;
33884 int res1 = 0 ;
33885 wxPoint temp2 ;
33886 wxSize temp3 ;
33887 PyObject * obj0 = 0 ;
33888 PyObject * obj1 = 0 ;
33889 PyObject * obj2 = 0 ;
33890 char * kwnames[] = {
33891 (char *) "self",(char *) "pt",(char *) "sz", NULL
33892 };
33893
33894 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33895 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33896 if (!SWIG_IsOK(res1)) {
33897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33898 }
33899 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33900 {
33901 arg2 = &temp2;
33902 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33903 }
33904 {
33905 arg3 = &temp3;
33906 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
33907 }
33908 {
33909 PyThreadState* __tstate = wxPyBeginAllowThreads();
33910 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
33911 wxPyEndAllowThreads(__tstate);
33912 if (PyErr_Occurred()) SWIG_fail;
33913 }
33914 resultobj = SWIG_Py_Void();
33915 return resultobj;
33916 fail:
33917 return NULL;
33918 }
33919
33920
33921 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33922 PyObject *resultobj = 0;
33923 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33924 wxIcon *arg2 = 0 ;
33925 int arg3 ;
33926 int arg4 ;
33927 void *argp1 = 0 ;
33928 int res1 = 0 ;
33929 void *argp2 = 0 ;
33930 int res2 = 0 ;
33931 int val3 ;
33932 int ecode3 = 0 ;
33933 int val4 ;
33934 int ecode4 = 0 ;
33935 PyObject * obj0 = 0 ;
33936 PyObject * obj1 = 0 ;
33937 PyObject * obj2 = 0 ;
33938 PyObject * obj3 = 0 ;
33939 char * kwnames[] = {
33940 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
33941 };
33942
33943 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33944 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33945 if (!SWIG_IsOK(res1)) {
33946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33947 }
33948 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33949 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
33950 if (!SWIG_IsOK(res2)) {
33951 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
33952 }
33953 if (!argp2) {
33954 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
33955 }
33956 arg2 = reinterpret_cast< wxIcon * >(argp2);
33957 ecode3 = SWIG_AsVal_int(obj2, &val3);
33958 if (!SWIG_IsOK(ecode3)) {
33959 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
33960 }
33961 arg3 = static_cast< int >(val3);
33962 ecode4 = SWIG_AsVal_int(obj3, &val4);
33963 if (!SWIG_IsOK(ecode4)) {
33964 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
33965 }
33966 arg4 = static_cast< int >(val4);
33967 {
33968 PyThreadState* __tstate = wxPyBeginAllowThreads();
33969 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
33970 wxPyEndAllowThreads(__tstate);
33971 if (PyErr_Occurred()) SWIG_fail;
33972 }
33973 resultobj = SWIG_Py_Void();
33974 return resultobj;
33975 fail:
33976 return NULL;
33977 }
33978
33979
33980 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33981 PyObject *resultobj = 0;
33982 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33983 wxIcon *arg2 = 0 ;
33984 wxPoint *arg3 = 0 ;
33985 void *argp1 = 0 ;
33986 int res1 = 0 ;
33987 void *argp2 = 0 ;
33988 int res2 = 0 ;
33989 wxPoint temp3 ;
33990 PyObject * obj0 = 0 ;
33991 PyObject * obj1 = 0 ;
33992 PyObject * obj2 = 0 ;
33993 char * kwnames[] = {
33994 (char *) "self",(char *) "icon",(char *) "pt", NULL
33995 };
33996
33997 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33998 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33999 if (!SWIG_IsOK(res1)) {
34000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34001 }
34002 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34003 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
34004 if (!SWIG_IsOK(res2)) {
34005 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
34006 }
34007 if (!argp2) {
34008 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
34009 }
34010 arg2 = reinterpret_cast< wxIcon * >(argp2);
34011 {
34012 arg3 = &temp3;
34013 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
34014 }
34015 {
34016 PyThreadState* __tstate = wxPyBeginAllowThreads();
34017 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
34018 wxPyEndAllowThreads(__tstate);
34019 if (PyErr_Occurred()) SWIG_fail;
34020 }
34021 resultobj = SWIG_Py_Void();
34022 return resultobj;
34023 fail:
34024 return NULL;
34025 }
34026
34027
34028 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34029 PyObject *resultobj = 0;
34030 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34031 wxBitmap *arg2 = 0 ;
34032 int arg3 ;
34033 int arg4 ;
34034 bool arg5 = (bool) false ;
34035 void *argp1 = 0 ;
34036 int res1 = 0 ;
34037 void *argp2 = 0 ;
34038 int res2 = 0 ;
34039 int val3 ;
34040 int ecode3 = 0 ;
34041 int val4 ;
34042 int ecode4 = 0 ;
34043 bool val5 ;
34044 int ecode5 = 0 ;
34045 PyObject * obj0 = 0 ;
34046 PyObject * obj1 = 0 ;
34047 PyObject * obj2 = 0 ;
34048 PyObject * obj3 = 0 ;
34049 PyObject * obj4 = 0 ;
34050 char * kwnames[] = {
34051 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
34052 };
34053
34054 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34055 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34056 if (!SWIG_IsOK(res1)) {
34057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34058 }
34059 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34060 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
34061 if (!SWIG_IsOK(res2)) {
34062 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
34063 }
34064 if (!argp2) {
34065 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
34066 }
34067 arg2 = reinterpret_cast< wxBitmap * >(argp2);
34068 ecode3 = SWIG_AsVal_int(obj2, &val3);
34069 if (!SWIG_IsOK(ecode3)) {
34070 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
34071 }
34072 arg3 = static_cast< int >(val3);
34073 ecode4 = SWIG_AsVal_int(obj3, &val4);
34074 if (!SWIG_IsOK(ecode4)) {
34075 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
34076 }
34077 arg4 = static_cast< int >(val4);
34078 if (obj4) {
34079 ecode5 = SWIG_AsVal_bool(obj4, &val5);
34080 if (!SWIG_IsOK(ecode5)) {
34081 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
34082 }
34083 arg5 = static_cast< bool >(val5);
34084 }
34085 {
34086 PyThreadState* __tstate = wxPyBeginAllowThreads();
34087 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
34088 wxPyEndAllowThreads(__tstate);
34089 if (PyErr_Occurred()) SWIG_fail;
34090 }
34091 resultobj = SWIG_Py_Void();
34092 return resultobj;
34093 fail:
34094 return NULL;
34095 }
34096
34097
34098 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34099 PyObject *resultobj = 0;
34100 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34101 wxBitmap *arg2 = 0 ;
34102 wxPoint *arg3 = 0 ;
34103 bool arg4 = (bool) false ;
34104 void *argp1 = 0 ;
34105 int res1 = 0 ;
34106 void *argp2 = 0 ;
34107 int res2 = 0 ;
34108 wxPoint temp3 ;
34109 bool val4 ;
34110 int ecode4 = 0 ;
34111 PyObject * obj0 = 0 ;
34112 PyObject * obj1 = 0 ;
34113 PyObject * obj2 = 0 ;
34114 PyObject * obj3 = 0 ;
34115 char * kwnames[] = {
34116 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
34117 };
34118
34119 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34120 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34121 if (!SWIG_IsOK(res1)) {
34122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34123 }
34124 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34125 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
34126 if (!SWIG_IsOK(res2)) {
34127 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
34128 }
34129 if (!argp2) {
34130 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
34131 }
34132 arg2 = reinterpret_cast< wxBitmap * >(argp2);
34133 {
34134 arg3 = &temp3;
34135 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
34136 }
34137 if (obj3) {
34138 ecode4 = SWIG_AsVal_bool(obj3, &val4);
34139 if (!SWIG_IsOK(ecode4)) {
34140 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
34141 }
34142 arg4 = static_cast< bool >(val4);
34143 }
34144 {
34145 PyThreadState* __tstate = wxPyBeginAllowThreads();
34146 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
34147 wxPyEndAllowThreads(__tstate);
34148 if (PyErr_Occurred()) SWIG_fail;
34149 }
34150 resultobj = SWIG_Py_Void();
34151 return resultobj;
34152 fail:
34153 return NULL;
34154 }
34155
34156
34157 SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34158 PyObject *resultobj = 0;
34159 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34160 wxString *arg2 = 0 ;
34161 int arg3 ;
34162 int arg4 ;
34163 void *argp1 = 0 ;
34164 int res1 = 0 ;
34165 bool temp2 = false ;
34166 int val3 ;
34167 int ecode3 = 0 ;
34168 int val4 ;
34169 int ecode4 = 0 ;
34170 PyObject * obj0 = 0 ;
34171 PyObject * obj1 = 0 ;
34172 PyObject * obj2 = 0 ;
34173 PyObject * obj3 = 0 ;
34174 char * kwnames[] = {
34175 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
34176 };
34177
34178 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34179 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34180 if (!SWIG_IsOK(res1)) {
34181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34182 }
34183 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34184 {
34185 arg2 = wxString_in_helper(obj1);
34186 if (arg2 == NULL) SWIG_fail;
34187 temp2 = true;
34188 }
34189 ecode3 = SWIG_AsVal_int(obj2, &val3);
34190 if (!SWIG_IsOK(ecode3)) {
34191 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'");
34192 }
34193 arg3 = static_cast< int >(val3);
34194 ecode4 = SWIG_AsVal_int(obj3, &val4);
34195 if (!SWIG_IsOK(ecode4)) {
34196 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'");
34197 }
34198 arg4 = static_cast< int >(val4);
34199 {
34200 PyThreadState* __tstate = wxPyBeginAllowThreads();
34201 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
34202 wxPyEndAllowThreads(__tstate);
34203 if (PyErr_Occurred()) SWIG_fail;
34204 }
34205 resultobj = SWIG_Py_Void();
34206 {
34207 if (temp2)
34208 delete arg2;
34209 }
34210 return resultobj;
34211 fail:
34212 {
34213 if (temp2)
34214 delete arg2;
34215 }
34216 return NULL;
34217 }
34218
34219
34220 SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34221 PyObject *resultobj = 0;
34222 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34223 wxString *arg2 = 0 ;
34224 wxPoint *arg3 = 0 ;
34225 void *argp1 = 0 ;
34226 int res1 = 0 ;
34227 bool temp2 = false ;
34228 wxPoint temp3 ;
34229 PyObject * obj0 = 0 ;
34230 PyObject * obj1 = 0 ;
34231 PyObject * obj2 = 0 ;
34232 char * kwnames[] = {
34233 (char *) "self",(char *) "text",(char *) "pt", NULL
34234 };
34235
34236 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34237 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34238 if (!SWIG_IsOK(res1)) {
34239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34240 }
34241 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34242 {
34243 arg2 = wxString_in_helper(obj1);
34244 if (arg2 == NULL) SWIG_fail;
34245 temp2 = true;
34246 }
34247 {
34248 arg3 = &temp3;
34249 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
34250 }
34251 {
34252 PyThreadState* __tstate = wxPyBeginAllowThreads();
34253 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
34254 wxPyEndAllowThreads(__tstate);
34255 if (PyErr_Occurred()) SWIG_fail;
34256 }
34257 resultobj = SWIG_Py_Void();
34258 {
34259 if (temp2)
34260 delete arg2;
34261 }
34262 return resultobj;
34263 fail:
34264 {
34265 if (temp2)
34266 delete arg2;
34267 }
34268 return NULL;
34269 }
34270
34271
34272 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34273 PyObject *resultobj = 0;
34274 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34275 wxString *arg2 = 0 ;
34276 int arg3 ;
34277 int arg4 ;
34278 double arg5 ;
34279 void *argp1 = 0 ;
34280 int res1 = 0 ;
34281 bool temp2 = false ;
34282 int val3 ;
34283 int ecode3 = 0 ;
34284 int val4 ;
34285 int ecode4 = 0 ;
34286 double val5 ;
34287 int ecode5 = 0 ;
34288 PyObject * obj0 = 0 ;
34289 PyObject * obj1 = 0 ;
34290 PyObject * obj2 = 0 ;
34291 PyObject * obj3 = 0 ;
34292 PyObject * obj4 = 0 ;
34293 char * kwnames[] = {
34294 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
34295 };
34296
34297 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34298 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34299 if (!SWIG_IsOK(res1)) {
34300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34301 }
34302 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34303 {
34304 arg2 = wxString_in_helper(obj1);
34305 if (arg2 == NULL) SWIG_fail;
34306 temp2 = true;
34307 }
34308 ecode3 = SWIG_AsVal_int(obj2, &val3);
34309 if (!SWIG_IsOK(ecode3)) {
34310 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
34311 }
34312 arg3 = static_cast< int >(val3);
34313 ecode4 = SWIG_AsVal_int(obj3, &val4);
34314 if (!SWIG_IsOK(ecode4)) {
34315 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
34316 }
34317 arg4 = static_cast< int >(val4);
34318 ecode5 = SWIG_AsVal_double(obj4, &val5);
34319 if (!SWIG_IsOK(ecode5)) {
34320 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
34321 }
34322 arg5 = static_cast< double >(val5);
34323 {
34324 PyThreadState* __tstate = wxPyBeginAllowThreads();
34325 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
34326 wxPyEndAllowThreads(__tstate);
34327 if (PyErr_Occurred()) SWIG_fail;
34328 }
34329 resultobj = SWIG_Py_Void();
34330 {
34331 if (temp2)
34332 delete arg2;
34333 }
34334 return resultobj;
34335 fail:
34336 {
34337 if (temp2)
34338 delete arg2;
34339 }
34340 return NULL;
34341 }
34342
34343
34344 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34345 PyObject *resultobj = 0;
34346 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34347 wxString *arg2 = 0 ;
34348 wxPoint *arg3 = 0 ;
34349 double arg4 ;
34350 void *argp1 = 0 ;
34351 int res1 = 0 ;
34352 bool temp2 = false ;
34353 wxPoint temp3 ;
34354 double val4 ;
34355 int ecode4 = 0 ;
34356 PyObject * obj0 = 0 ;
34357 PyObject * obj1 = 0 ;
34358 PyObject * obj2 = 0 ;
34359 PyObject * obj3 = 0 ;
34360 char * kwnames[] = {
34361 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
34362 };
34363
34364 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34365 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34366 if (!SWIG_IsOK(res1)) {
34367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34368 }
34369 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34370 {
34371 arg2 = wxString_in_helper(obj1);
34372 if (arg2 == NULL) SWIG_fail;
34373 temp2 = true;
34374 }
34375 {
34376 arg3 = &temp3;
34377 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
34378 }
34379 ecode4 = SWIG_AsVal_double(obj3, &val4);
34380 if (!SWIG_IsOK(ecode4)) {
34381 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
34382 }
34383 arg4 = static_cast< double >(val4);
34384 {
34385 PyThreadState* __tstate = wxPyBeginAllowThreads();
34386 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
34387 wxPyEndAllowThreads(__tstate);
34388 if (PyErr_Occurred()) SWIG_fail;
34389 }
34390 resultobj = SWIG_Py_Void();
34391 {
34392 if (temp2)
34393 delete arg2;
34394 }
34395 return resultobj;
34396 fail:
34397 {
34398 if (temp2)
34399 delete arg2;
34400 }
34401 return NULL;
34402 }
34403
34404
34405 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34406 PyObject *resultobj = 0;
34407 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34408 int arg2 ;
34409 wxPoint *arg3 = (wxPoint *) 0 ;
34410 int arg4 = (int) 0 ;
34411 int arg5 = (int) 0 ;
34412 void *argp1 = 0 ;
34413 int res1 = 0 ;
34414 int val4 ;
34415 int ecode4 = 0 ;
34416 int val5 ;
34417 int ecode5 = 0 ;
34418 PyObject * obj0 = 0 ;
34419 PyObject * obj1 = 0 ;
34420 PyObject * obj2 = 0 ;
34421 PyObject * obj3 = 0 ;
34422 char * kwnames[] = {
34423 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
34424 };
34425
34426 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34427 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34428 if (!SWIG_IsOK(res1)) {
34429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34430 }
34431 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34432 {
34433 arg3 = wxPoint_LIST_helper(obj1, &arg2);
34434 if (arg3 == NULL) SWIG_fail;
34435 }
34436 if (obj2) {
34437 ecode4 = SWIG_AsVal_int(obj2, &val4);
34438 if (!SWIG_IsOK(ecode4)) {
34439 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'");
34440 }
34441 arg4 = static_cast< int >(val4);
34442 }
34443 if (obj3) {
34444 ecode5 = SWIG_AsVal_int(obj3, &val5);
34445 if (!SWIG_IsOK(ecode5)) {
34446 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'");
34447 }
34448 arg5 = static_cast< int >(val5);
34449 }
34450 {
34451 PyThreadState* __tstate = wxPyBeginAllowThreads();
34452 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
34453 wxPyEndAllowThreads(__tstate);
34454 if (PyErr_Occurred()) SWIG_fail;
34455 }
34456 resultobj = SWIG_Py_Void();
34457 {
34458 if (arg3) delete [] arg3;
34459 }
34460 return resultobj;
34461 fail:
34462 {
34463 if (arg3) delete [] arg3;
34464 }
34465 return NULL;
34466 }
34467
34468
34469 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34470 PyObject *resultobj = 0;
34471 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34472 int arg2 ;
34473 wxPoint *arg3 = (wxPoint *) 0 ;
34474 int arg4 = (int) 0 ;
34475 int arg5 = (int) 0 ;
34476 int arg6 = (int) wxODDEVEN_RULE ;
34477 void *argp1 = 0 ;
34478 int res1 = 0 ;
34479 int val4 ;
34480 int ecode4 = 0 ;
34481 int val5 ;
34482 int ecode5 = 0 ;
34483 int val6 ;
34484 int ecode6 = 0 ;
34485 PyObject * obj0 = 0 ;
34486 PyObject * obj1 = 0 ;
34487 PyObject * obj2 = 0 ;
34488 PyObject * obj3 = 0 ;
34489 PyObject * obj4 = 0 ;
34490 char * kwnames[] = {
34491 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
34492 };
34493
34494 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34495 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34496 if (!SWIG_IsOK(res1)) {
34497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34498 }
34499 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34500 {
34501 arg3 = wxPoint_LIST_helper(obj1, &arg2);
34502 if (arg3 == NULL) SWIG_fail;
34503 }
34504 if (obj2) {
34505 ecode4 = SWIG_AsVal_int(obj2, &val4);
34506 if (!SWIG_IsOK(ecode4)) {
34507 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
34508 }
34509 arg4 = static_cast< int >(val4);
34510 }
34511 if (obj3) {
34512 ecode5 = SWIG_AsVal_int(obj3, &val5);
34513 if (!SWIG_IsOK(ecode5)) {
34514 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
34515 }
34516 arg5 = static_cast< int >(val5);
34517 }
34518 if (obj4) {
34519 ecode6 = SWIG_AsVal_int(obj4, &val6);
34520 if (!SWIG_IsOK(ecode6)) {
34521 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
34522 }
34523 arg6 = static_cast< int >(val6);
34524 }
34525 {
34526 PyThreadState* __tstate = wxPyBeginAllowThreads();
34527 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
34528 wxPyEndAllowThreads(__tstate);
34529 if (PyErr_Occurred()) SWIG_fail;
34530 }
34531 resultobj = SWIG_Py_Void();
34532 {
34533 if (arg3) delete [] arg3;
34534 }
34535 return resultobj;
34536 fail:
34537 {
34538 if (arg3) delete [] arg3;
34539 }
34540 return NULL;
34541 }
34542
34543
34544 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34545 PyObject *resultobj = 0;
34546 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34547 wxString *arg2 = 0 ;
34548 wxRect *arg3 = 0 ;
34549 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
34550 int arg5 = (int) -1 ;
34551 void *argp1 = 0 ;
34552 int res1 = 0 ;
34553 bool temp2 = false ;
34554 wxRect temp3 ;
34555 int val4 ;
34556 int ecode4 = 0 ;
34557 int val5 ;
34558 int ecode5 = 0 ;
34559 PyObject * obj0 = 0 ;
34560 PyObject * obj1 = 0 ;
34561 PyObject * obj2 = 0 ;
34562 PyObject * obj3 = 0 ;
34563 PyObject * obj4 = 0 ;
34564 char * kwnames[] = {
34565 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
34566 };
34567
34568 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34569 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34570 if (!SWIG_IsOK(res1)) {
34571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34572 }
34573 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34574 {
34575 arg2 = wxString_in_helper(obj1);
34576 if (arg2 == NULL) SWIG_fail;
34577 temp2 = true;
34578 }
34579 {
34580 arg3 = &temp3;
34581 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
34582 }
34583 if (obj3) {
34584 ecode4 = SWIG_AsVal_int(obj3, &val4);
34585 if (!SWIG_IsOK(ecode4)) {
34586 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
34587 }
34588 arg4 = static_cast< int >(val4);
34589 }
34590 if (obj4) {
34591 ecode5 = SWIG_AsVal_int(obj4, &val5);
34592 if (!SWIG_IsOK(ecode5)) {
34593 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
34594 }
34595 arg5 = static_cast< int >(val5);
34596 }
34597 {
34598 PyThreadState* __tstate = wxPyBeginAllowThreads();
34599 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
34600 wxPyEndAllowThreads(__tstate);
34601 if (PyErr_Occurred()) SWIG_fail;
34602 }
34603 resultobj = SWIG_Py_Void();
34604 {
34605 if (temp2)
34606 delete arg2;
34607 }
34608 return resultobj;
34609 fail:
34610 {
34611 if (temp2)
34612 delete arg2;
34613 }
34614 return NULL;
34615 }
34616
34617
34618 SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34619 PyObject *resultobj = 0;
34620 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34621 wxString *arg2 = 0 ;
34622 wxBitmap *arg3 = 0 ;
34623 wxRect *arg4 = 0 ;
34624 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
34625 int arg6 = (int) -1 ;
34626 void *argp1 = 0 ;
34627 int res1 = 0 ;
34628 bool temp2 = false ;
34629 void *argp3 = 0 ;
34630 int res3 = 0 ;
34631 wxRect temp4 ;
34632 int val5 ;
34633 int ecode5 = 0 ;
34634 int val6 ;
34635 int ecode6 = 0 ;
34636 PyObject * obj0 = 0 ;
34637 PyObject * obj1 = 0 ;
34638 PyObject * obj2 = 0 ;
34639 PyObject * obj3 = 0 ;
34640 PyObject * obj4 = 0 ;
34641 PyObject * obj5 = 0 ;
34642 char * kwnames[] = {
34643 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
34644 };
34645
34646 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
34647 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34648 if (!SWIG_IsOK(res1)) {
34649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34650 }
34651 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34652 {
34653 arg2 = wxString_in_helper(obj1);
34654 if (arg2 == NULL) SWIG_fail;
34655 temp2 = true;
34656 }
34657 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
34658 if (!SWIG_IsOK(res3)) {
34659 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
34660 }
34661 if (!argp3) {
34662 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
34663 }
34664 arg3 = reinterpret_cast< wxBitmap * >(argp3);
34665 {
34666 arg4 = &temp4;
34667 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34668 }
34669 if (obj4) {
34670 ecode5 = SWIG_AsVal_int(obj4, &val5);
34671 if (!SWIG_IsOK(ecode5)) {
34672 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
34673 }
34674 arg5 = static_cast< int >(val5);
34675 }
34676 if (obj5) {
34677 ecode6 = SWIG_AsVal_int(obj5, &val6);
34678 if (!SWIG_IsOK(ecode6)) {
34679 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
34680 }
34681 arg6 = static_cast< int >(val6);
34682 }
34683 {
34684 PyThreadState* __tstate = wxPyBeginAllowThreads();
34685 (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
34686 wxPyEndAllowThreads(__tstate);
34687 if (PyErr_Occurred()) SWIG_fail;
34688 }
34689 resultobj = SWIG_Py_Void();
34690 {
34691 if (temp2)
34692 delete arg2;
34693 }
34694 return resultobj;
34695 fail:
34696 {
34697 if (temp2)
34698 delete arg2;
34699 }
34700 return NULL;
34701 }
34702
34703
34704 SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34705 PyObject *resultobj = 0;
34706 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34707 int arg2 ;
34708 wxPoint *arg3 = (wxPoint *) 0 ;
34709 void *argp1 = 0 ;
34710 int res1 = 0 ;
34711 PyObject * obj0 = 0 ;
34712 PyObject * obj1 = 0 ;
34713 char * kwnames[] = {
34714 (char *) "self",(char *) "points", NULL
34715 };
34716
34717 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
34718 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34719 if (!SWIG_IsOK(res1)) {
34720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34721 }
34722 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34723 {
34724 arg3 = wxPoint_LIST_helper(obj1, &arg2);
34725 if (arg3 == NULL) SWIG_fail;
34726 }
34727 {
34728 PyThreadState* __tstate = wxPyBeginAllowThreads();
34729 (arg1)->DrawSpline(arg2,arg3);
34730 wxPyEndAllowThreads(__tstate);
34731 if (PyErr_Occurred()) SWIG_fail;
34732 }
34733 resultobj = SWIG_Py_Void();
34734 {
34735 if (arg3) delete [] arg3;
34736 }
34737 return resultobj;
34738 fail:
34739 {
34740 if (arg3) delete [] arg3;
34741 }
34742 return NULL;
34743 }
34744
34745
34746 SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34747 PyObject *resultobj = 0;
34748 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34749 void *argp1 = 0 ;
34750 int res1 = 0 ;
34751 PyObject *swig_obj[1] ;
34752
34753 if (!args) SWIG_fail;
34754 swig_obj[0] = args;
34755 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34756 if (!SWIG_IsOK(res1)) {
34757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34758 }
34759 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34760 {
34761 PyThreadState* __tstate = wxPyBeginAllowThreads();
34762 (arg1)->Clear();
34763 wxPyEndAllowThreads(__tstate);
34764 if (PyErr_Occurred()) SWIG_fail;
34765 }
34766 resultobj = SWIG_Py_Void();
34767 return resultobj;
34768 fail:
34769 return NULL;
34770 }
34771
34772
34773 SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34774 PyObject *resultobj = 0;
34775 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34776 wxFont *arg2 = 0 ;
34777 void *argp1 = 0 ;
34778 int res1 = 0 ;
34779 void *argp2 = 0 ;
34780 int res2 = 0 ;
34781 PyObject * obj0 = 0 ;
34782 PyObject * obj1 = 0 ;
34783 char * kwnames[] = {
34784 (char *) "self",(char *) "font", NULL
34785 };
34786
34787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
34788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34789 if (!SWIG_IsOK(res1)) {
34790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34791 }
34792 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34793 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
34794 if (!SWIG_IsOK(res2)) {
34795 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
34796 }
34797 if (!argp2) {
34798 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
34799 }
34800 arg2 = reinterpret_cast< wxFont * >(argp2);
34801 {
34802 PyThreadState* __tstate = wxPyBeginAllowThreads();
34803 (arg1)->SetFont((wxFont const &)*arg2);
34804 wxPyEndAllowThreads(__tstate);
34805 if (PyErr_Occurred()) SWIG_fail;
34806 }
34807 resultobj = SWIG_Py_Void();
34808 return resultobj;
34809 fail:
34810 return NULL;
34811 }
34812
34813
34814 SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34815 PyObject *resultobj = 0;
34816 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34817 wxPen *arg2 = 0 ;
34818 void *argp1 = 0 ;
34819 int res1 = 0 ;
34820 void *argp2 = 0 ;
34821 int res2 = 0 ;
34822 PyObject * obj0 = 0 ;
34823 PyObject * obj1 = 0 ;
34824 char * kwnames[] = {
34825 (char *) "self",(char *) "pen", NULL
34826 };
34827
34828 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
34829 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34830 if (!SWIG_IsOK(res1)) {
34831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34832 }
34833 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34834 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
34835 if (!SWIG_IsOK(res2)) {
34836 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
34837 }
34838 if (!argp2) {
34839 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
34840 }
34841 arg2 = reinterpret_cast< wxPen * >(argp2);
34842 {
34843 PyThreadState* __tstate = wxPyBeginAllowThreads();
34844 (arg1)->SetPen((wxPen const &)*arg2);
34845 wxPyEndAllowThreads(__tstate);
34846 if (PyErr_Occurred()) SWIG_fail;
34847 }
34848 resultobj = SWIG_Py_Void();
34849 return resultobj;
34850 fail:
34851 return NULL;
34852 }
34853
34854
34855 SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34856 PyObject *resultobj = 0;
34857 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34858 wxBrush *arg2 = 0 ;
34859 void *argp1 = 0 ;
34860 int res1 = 0 ;
34861 void *argp2 = 0 ;
34862 int res2 = 0 ;
34863 PyObject * obj0 = 0 ;
34864 PyObject * obj1 = 0 ;
34865 char * kwnames[] = {
34866 (char *) "self",(char *) "brush", NULL
34867 };
34868
34869 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
34870 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34871 if (!SWIG_IsOK(res1)) {
34872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34873 }
34874 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34875 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
34876 if (!SWIG_IsOK(res2)) {
34877 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
34878 }
34879 if (!argp2) {
34880 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
34881 }
34882 arg2 = reinterpret_cast< wxBrush * >(argp2);
34883 {
34884 PyThreadState* __tstate = wxPyBeginAllowThreads();
34885 (arg1)->SetBrush((wxBrush const &)*arg2);
34886 wxPyEndAllowThreads(__tstate);
34887 if (PyErr_Occurred()) SWIG_fail;
34888 }
34889 resultobj = SWIG_Py_Void();
34890 return resultobj;
34891 fail:
34892 return NULL;
34893 }
34894
34895
34896 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34897 PyObject *resultobj = 0;
34898 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34899 wxBrush *arg2 = 0 ;
34900 void *argp1 = 0 ;
34901 int res1 = 0 ;
34902 void *argp2 = 0 ;
34903 int res2 = 0 ;
34904 PyObject * obj0 = 0 ;
34905 PyObject * obj1 = 0 ;
34906 char * kwnames[] = {
34907 (char *) "self",(char *) "brush", NULL
34908 };
34909
34910 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
34911 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34912 if (!SWIG_IsOK(res1)) {
34913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34914 }
34915 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34916 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
34917 if (!SWIG_IsOK(res2)) {
34918 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
34919 }
34920 if (!argp2) {
34921 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
34922 }
34923 arg2 = reinterpret_cast< wxBrush * >(argp2);
34924 {
34925 PyThreadState* __tstate = wxPyBeginAllowThreads();
34926 (arg1)->SetBackground((wxBrush const &)*arg2);
34927 wxPyEndAllowThreads(__tstate);
34928 if (PyErr_Occurred()) SWIG_fail;
34929 }
34930 resultobj = SWIG_Py_Void();
34931 return resultobj;
34932 fail:
34933 return NULL;
34934 }
34935
34936
34937 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34938 PyObject *resultobj = 0;
34939 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34940 int arg2 ;
34941 void *argp1 = 0 ;
34942 int res1 = 0 ;
34943 int val2 ;
34944 int ecode2 = 0 ;
34945 PyObject * obj0 = 0 ;
34946 PyObject * obj1 = 0 ;
34947 char * kwnames[] = {
34948 (char *) "self",(char *) "mode", NULL
34949 };
34950
34951 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
34952 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34953 if (!SWIG_IsOK(res1)) {
34954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34955 }
34956 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34957 ecode2 = SWIG_AsVal_int(obj1, &val2);
34958 if (!SWIG_IsOK(ecode2)) {
34959 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
34960 }
34961 arg2 = static_cast< int >(val2);
34962 {
34963 PyThreadState* __tstate = wxPyBeginAllowThreads();
34964 (arg1)->SetBackgroundMode(arg2);
34965 wxPyEndAllowThreads(__tstate);
34966 if (PyErr_Occurred()) SWIG_fail;
34967 }
34968 resultobj = SWIG_Py_Void();
34969 return resultobj;
34970 fail:
34971 return NULL;
34972 }
34973
34974
34975 SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34976 PyObject *resultobj = 0;
34977 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34978 wxPalette *arg2 = 0 ;
34979 void *argp1 = 0 ;
34980 int res1 = 0 ;
34981 void *argp2 = 0 ;
34982 int res2 = 0 ;
34983 PyObject * obj0 = 0 ;
34984 PyObject * obj1 = 0 ;
34985 char * kwnames[] = {
34986 (char *) "self",(char *) "palette", NULL
34987 };
34988
34989 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
34990 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34991 if (!SWIG_IsOK(res1)) {
34992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34993 }
34994 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34995 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
34996 if (!SWIG_IsOK(res2)) {
34997 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
34998 }
34999 if (!argp2) {
35000 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
35001 }
35002 arg2 = reinterpret_cast< wxPalette * >(argp2);
35003 {
35004 PyThreadState* __tstate = wxPyBeginAllowThreads();
35005 (arg1)->SetPalette((wxPalette const &)*arg2);
35006 wxPyEndAllowThreads(__tstate);
35007 if (PyErr_Occurred()) SWIG_fail;
35008 }
35009 resultobj = SWIG_Py_Void();
35010 return resultobj;
35011 fail:
35012 return NULL;
35013 }
35014
35015
35016 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35017 PyObject *resultobj = 0;
35018 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35019 wxColour *arg2 = 0 ;
35020 void *argp1 = 0 ;
35021 int res1 = 0 ;
35022 wxColour temp2 ;
35023 PyObject * obj0 = 0 ;
35024 PyObject * obj1 = 0 ;
35025 char * kwnames[] = {
35026 (char *) "self",(char *) "colour", NULL
35027 };
35028
35029 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
35030 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35031 if (!SWIG_IsOK(res1)) {
35032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35033 }
35034 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35035 {
35036 arg2 = &temp2;
35037 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
35038 }
35039 {
35040 PyThreadState* __tstate = wxPyBeginAllowThreads();
35041 (arg1)->SetTextForeground((wxColour const &)*arg2);
35042 wxPyEndAllowThreads(__tstate);
35043 if (PyErr_Occurred()) SWIG_fail;
35044 }
35045 resultobj = SWIG_Py_Void();
35046 return resultobj;
35047 fail:
35048 return NULL;
35049 }
35050
35051
35052 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35053 PyObject *resultobj = 0;
35054 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35055 wxColour *arg2 = 0 ;
35056 void *argp1 = 0 ;
35057 int res1 = 0 ;
35058 wxColour temp2 ;
35059 PyObject * obj0 = 0 ;
35060 PyObject * obj1 = 0 ;
35061 char * kwnames[] = {
35062 (char *) "self",(char *) "colour", NULL
35063 };
35064
35065 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
35066 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35067 if (!SWIG_IsOK(res1)) {
35068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35069 }
35070 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35071 {
35072 arg2 = &temp2;
35073 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
35074 }
35075 {
35076 PyThreadState* __tstate = wxPyBeginAllowThreads();
35077 (arg1)->SetTextBackground((wxColour const &)*arg2);
35078 wxPyEndAllowThreads(__tstate);
35079 if (PyErr_Occurred()) SWIG_fail;
35080 }
35081 resultobj = SWIG_Py_Void();
35082 return resultobj;
35083 fail:
35084 return NULL;
35085 }
35086
35087
35088 SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35089 PyObject *resultobj = 0;
35090 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35091 int arg2 ;
35092 void *argp1 = 0 ;
35093 int res1 = 0 ;
35094 int val2 ;
35095 int ecode2 = 0 ;
35096 PyObject * obj0 = 0 ;
35097 PyObject * obj1 = 0 ;
35098 char * kwnames[] = {
35099 (char *) "self",(char *) "function", NULL
35100 };
35101
35102 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
35103 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35104 if (!SWIG_IsOK(res1)) {
35105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35106 }
35107 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35108 ecode2 = SWIG_AsVal_int(obj1, &val2);
35109 if (!SWIG_IsOK(ecode2)) {
35110 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
35111 }
35112 arg2 = static_cast< int >(val2);
35113 {
35114 PyThreadState* __tstate = wxPyBeginAllowThreads();
35115 (arg1)->SetLogicalFunction(arg2);
35116 wxPyEndAllowThreads(__tstate);
35117 if (PyErr_Occurred()) SWIG_fail;
35118 }
35119 resultobj = SWIG_Py_Void();
35120 return resultobj;
35121 fail:
35122 return NULL;
35123 }
35124
35125
35126 SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35127 PyObject *obj;
35128 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
35129 SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj));
35130 return SWIG_Py_Void();
35131 }
35132
35133 SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35134 return SWIG_Python_InitShadowInstance(args);
35135 }
35136
35137 static PyMethodDef SwigMethods[] = {
35138 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
35139 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
35140 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
35141 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
35142 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
35143 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
35144 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
35145 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
35146 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
35147 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
35148 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
35149 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
35150 { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL},
35151 { (char *)"Colour_IsOk", (PyCFunction)_wrap_Colour_IsOk, METH_O, NULL},
35152 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
35153 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
35154 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
35155 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
35156 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
35157 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
35158 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
35159 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
35160 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
35161 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
35162 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
35163 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
35164 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
35165 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
35166 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
35167 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
35168 { (char *)"Palette_IsOk", (PyCFunction)_wrap_Palette_IsOk, METH_O, NULL},
35169 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
35170 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
35171 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
35172 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
35173 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
35174 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
35175 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
35176 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
35177 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
35178 { (char *)"Pen_IsOk", (PyCFunction)_wrap_Pen_IsOk, METH_O, NULL},
35179 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
35180 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
35181 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
35182 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
35183 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
35184 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
35185 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
35186 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
35187 { (char *)"Pen_GetDashCount", (PyCFunction)_wrap_Pen_GetDashCount, METH_O, NULL},
35188 { (char *)"Pen_GetStipple", (PyCFunction)_wrap_Pen_GetStipple, METH_O, NULL},
35189 { (char *)"Pen_SetStipple", (PyCFunction) _wrap_Pen_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
35190 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
35191 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
35192 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
35193 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
35194 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
35195 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35196 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
35197 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
35198 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
35199 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
35200 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
35201 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
35202 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
35203 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
35204 { (char *)"Brush_IsOk", (PyCFunction)_wrap_Brush_IsOk, METH_O, NULL},
35205 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
35206 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
35207 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35208 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
35209 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35210 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35211 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
35212 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
35213 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
35214 { (char *)"Bitmap_GetHandle", (PyCFunction)_wrap_Bitmap_GetHandle, METH_O, NULL},
35215 { (char *)"Bitmap_SetHandle", (PyCFunction) _wrap_Bitmap_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
35216 { (char *)"Bitmap_IsOk", (PyCFunction)_wrap_Bitmap_IsOk, METH_O, NULL},
35217 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
35218 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
35219 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
35220 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
35221 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
35222 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
35223 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
35224 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
35225 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35226 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
35227 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
35228 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
35229 { (char *)"Bitmap_SetPalette", (PyCFunction) _wrap_Bitmap_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
35230 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35231 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
35232 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
35233 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
35234 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
35235 { (char *)"Bitmap_CopyFromCursor", (PyCFunction) _wrap_Bitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS, NULL},
35236 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
35237 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
35238 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
35239 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
35240 { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
35241 { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
35242 { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
35243 { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL},
35244 { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL},
35245 { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL},
35246 { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL},
35247 { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL},
35248 { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL},
35249 { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL},
35250 { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL},
35251 { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL},
35252 { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL},
35253 { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL},
35254 { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL},
35255 { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL},
35256 { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL},
35257 { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL},
35258 { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
35259 { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL},
35260 { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL},
35261 { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
35262 { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
35263 { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
35264 { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
35265 { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
35266 { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL},
35267 { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL},
35268 { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL},
35269 { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL},
35270 { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL},
35271 { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL},
35272 { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL},
35273 { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL},
35274 { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL},
35275 { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL},
35276 { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL},
35277 { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL},
35278 { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
35279 { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL},
35280 { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL},
35281 { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
35282 { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
35283 { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
35284 { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
35285 { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
35286 { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL},
35287 { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL},
35288 { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL},
35289 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
35290 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
35291 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
35292 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
35293 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
35294 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
35295 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
35296 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
35297 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35298 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
35299 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
35300 { (char *)"Icon_GetHandle", (PyCFunction)_wrap_Icon_GetHandle, METH_O, NULL},
35301 { (char *)"Icon_SetHandle", (PyCFunction) _wrap_Icon_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
35302 { (char *)"Icon_IsOk", (PyCFunction)_wrap_Icon_IsOk, METH_O, NULL},
35303 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
35304 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
35305 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
35306 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
35307 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
35308 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
35309 { (char *)"Icon_SetSize", (PyCFunction) _wrap_Icon_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
35310 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35311 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
35312 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
35313 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
35314 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
35315 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
35316 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
35317 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
35318 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
35319 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
35320 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
35321 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
35322 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
35323 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
35324 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35325 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
35326 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35327 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
35328 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35329 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
35330 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
35331 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
35332 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
35333 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
35334 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
35335 { (char *)"Cursor_GetHandle", (PyCFunction)_wrap_Cursor_GetHandle, METH_O, NULL},
35336 { (char *)"Cursor_SetHandle", (PyCFunction) _wrap_Cursor_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
35337 { (char *)"Cursor_IsOk", (PyCFunction)_wrap_Cursor_IsOk, METH_O, NULL},
35338 { (char *)"Cursor_GetWidth", (PyCFunction)_wrap_Cursor_GetWidth, METH_O, NULL},
35339 { (char *)"Cursor_GetHeight", (PyCFunction)_wrap_Cursor_GetHeight, METH_O, NULL},
35340 { (char *)"Cursor_GetDepth", (PyCFunction)_wrap_Cursor_GetDepth, METH_O, NULL},
35341 { (char *)"Cursor_SetWidth", (PyCFunction) _wrap_Cursor_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
35342 { (char *)"Cursor_SetHeight", (PyCFunction) _wrap_Cursor_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
35343 { (char *)"Cursor_SetDepth", (PyCFunction) _wrap_Cursor_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
35344 { (char *)"Cursor_SetSize", (PyCFunction) _wrap_Cursor_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
35345 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
35346 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
35347 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
35348 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35349 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
35350 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
35351 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
35352 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
35353 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
35354 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
35355 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35356 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
35357 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
35358 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
35359 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
35360 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
35361 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
35362 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
35363 { (char *)"Region_IsEqual", (PyCFunction) _wrap_Region_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
35364 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
35365 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
35366 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
35367 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
35368 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
35369 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
35370 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
35371 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
35372 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
35373 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
35374 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35375 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
35376 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
35377 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
35378 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
35379 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
35380 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
35381 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
35382 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
35383 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
35384 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
35385 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
35386 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
35387 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
35388 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
35389 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
35390 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
35391 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
35392 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
35393 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
35394 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
35395 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
35396 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
35397 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
35398 { (char *)"NativeFontInfo_GetPixelSize", (PyCFunction)_wrap_NativeFontInfo_GetPixelSize, METH_O, NULL},
35399 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
35400 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
35401 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
35402 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
35403 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
35404 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
35405 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35406 { (char *)"NativeFontInfo_SetPixelSize", (PyCFunction) _wrap_NativeFontInfo_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
35407 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
35408 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
35409 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
35410 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
35411 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
35412 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
35413 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
35414 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
35415 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
35416 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
35417 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
35418 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
35419 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
35420 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
35421 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
35422 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
35423 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
35424 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
35425 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
35426 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
35427 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
35428 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
35429 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
35430 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
35431 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
35432 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
35433 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
35434 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
35435 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
35436 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
35437 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
35438 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
35439 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
35440 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
35441 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
35442 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
35443 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
35444 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
35445 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
35446 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
35447 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
35448 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
35449 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
35450 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
35451 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
35452 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
35453 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
35454 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
35455 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
35456 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
35457 { (char *)"Font_IsOk", (PyCFunction)_wrap_Font_IsOk, METH_O, NULL},
35458 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
35459 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
35460 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
35461 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
35462 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
35463 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
35464 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
35465 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
35466 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
35467 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
35468 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
35469 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
35470 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
35471 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
35472 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
35473 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35474 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
35475 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
35476 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
35477 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
35478 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
35479 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
35480 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
35481 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
35482 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
35483 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
35484 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
35485 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
35486 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
35487 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
35488 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
35489 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
35490 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
35491 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
35492 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
35493 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
35494 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
35495 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
35496 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
35497 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
35498 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
35499 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
35500 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
35501 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
35502 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
35503 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
35504 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
35505 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
35506 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
35507 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
35508 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
35509 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
35510 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
35511 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
35512 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
35513 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
35514 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
35515 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
35516 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
35517 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
35518 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
35519 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
35520 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
35521 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
35522 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
35523 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
35524 { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
35525 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
35526 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
35527 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
35528 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
35529 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
35530 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
35531 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
35532 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
35533 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
35534 { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL},
35535 { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL},
35536 { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
35537 { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL},
35538 { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL},
35539 { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL},
35540 { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL},
35541 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
35542 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
35543 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
35544 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
35545 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
35546 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
35547 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
35548 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
35549 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
35550 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
35551 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
35552 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
35553 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
35554 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35555 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
35556 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
35557 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
35558 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35559 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
35560 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
35561 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
35562 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35563 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
35564 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35565 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
35566 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
35567 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
35568 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35569 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35570 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35571 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35572 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
35573 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35574 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35575 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
35576 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35577 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
35578 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
35579 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
35580 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
35581 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35582 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35583 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35584 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35585 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35586 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
35587 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35588 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
35589 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35590 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
35591 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35592 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
35593 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35594 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
35595 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
35596 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
35597 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
35598 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
35599 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
35600 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
35601 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
35602 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
35603 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
35604 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
35605 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
35606 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
35607 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
35608 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35609 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
35610 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
35611 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
35612 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
35613 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
35614 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
35615 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
35616 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
35617 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
35618 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
35619 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
35620 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
35621 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
35622 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
35623 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
35624 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
35625 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
35626 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
35627 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
35628 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
35629 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
35630 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
35631 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
35632 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
35633 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
35634 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
35635 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
35636 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
35637 { (char *)"DC_IsOk", (PyCFunction)_wrap_DC_IsOk, METH_O, NULL},
35638 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
35639 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
35640 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
35641 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
35642 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
35643 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
35644 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
35645 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
35646 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
35647 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
35648 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
35649 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
35650 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
35651 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
35652 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
35653 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
35654 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
35655 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
35656 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35657 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
35658 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
35659 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
35660 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35661 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
35662 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
35663 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
35664 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
35665 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
35666 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35667 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
35668 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
35669 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
35670 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
35671 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
35672 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
35673 { (char *)"DC_GetLayoutDirection", (PyCFunction)_wrap_DC_GetLayoutDirection, METH_O, NULL},
35674 { (char *)"DC_SetLayoutDirection", (PyCFunction) _wrap_DC_SetLayoutDirection, METH_VARARGS | METH_KEYWORDS, NULL},
35675 { (char *)"DC_GetHDC", (PyCFunction)_wrap_DC_GetHDC, METH_O, NULL},
35676 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
35677 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
35678 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
35679 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
35680 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
35681 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
35682 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
35683 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL},
35684 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
35685 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
35686 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
35687 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
35688 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
35689 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
35690 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
35691 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
35692 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
35693 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
35694 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
35695 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
35696 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
35697 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
35698 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
35699 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
35700 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
35701 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
35702 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
35703 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
35704 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
35705 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
35706 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
35707 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
35708 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
35709 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
35710 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
35711 { (char *)"new_AutoBufferedPaintDC", (PyCFunction) _wrap_new_AutoBufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
35712 { (char *)"AutoBufferedPaintDC_swigregister", AutoBufferedPaintDC_swigregister, METH_VARARGS, NULL},
35713 { (char *)"AutoBufferedPaintDC_swiginit", AutoBufferedPaintDC_swiginit, METH_VARARGS, NULL},
35714 { (char *)"AutoBufferedPaintDCFactory", (PyCFunction) _wrap_AutoBufferedPaintDCFactory, METH_VARARGS | METH_KEYWORDS, NULL},
35715 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
35716 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
35717 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
35718 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
35719 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
35720 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
35721 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
35722 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
35723 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
35724 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
35725 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
35726 { (char *)"delete_MetaFile", (PyCFunction)_wrap_delete_MetaFile, METH_O, NULL},
35727 { (char *)"MetaFile_IsOk", (PyCFunction)_wrap_MetaFile_IsOk, METH_O, NULL},
35728 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL},
35729 { (char *)"MetaFile_GetSize", (PyCFunction)_wrap_MetaFile_GetSize, METH_O, NULL},
35730 { (char *)"MetaFile_GetWidth", (PyCFunction)_wrap_MetaFile_GetWidth, METH_O, NULL},
35731 { (char *)"MetaFile_GetHeight", (PyCFunction)_wrap_MetaFile_GetHeight, METH_O, NULL},
35732 { (char *)"MetaFile_GetFileName", (PyCFunction)_wrap_MetaFile_GetFileName, METH_O, NULL},
35733 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
35734 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
35735 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
35736 { (char *)"MetaFileDC_Close", (PyCFunction)_wrap_MetaFileDC_Close, METH_O, NULL},
35737 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
35738 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
35739 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
35740 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
35741 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
35742 { (char *)"delete_GraphicsPath", (PyCFunction)_wrap_delete_GraphicsPath, METH_O, NULL},
35743 { (char *)"GraphicsPath_MoveToPoint", (PyCFunction) _wrap_GraphicsPath_MoveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35744 { (char *)"GraphicsPath_AddLineToPoint", (PyCFunction) _wrap_GraphicsPath_AddLineToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35745 { (char *)"GraphicsPath_AddCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35746 { (char *)"GraphicsPath_CloseSubpath", (PyCFunction)_wrap_GraphicsPath_CloseSubpath, METH_O, NULL},
35747 { (char *)"GraphicsPath_GetCurrentPoint", (PyCFunction)_wrap_GraphicsPath_GetCurrentPoint, METH_O, NULL},
35748 { (char *)"GraphicsPath_AddArc", (PyCFunction) _wrap_GraphicsPath_AddArc, METH_VARARGS | METH_KEYWORDS, NULL},
35749 { (char *)"GraphicsPath_AddQuadCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddQuadCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35750 { (char *)"GraphicsPath_AddRectangle", (PyCFunction) _wrap_GraphicsPath_AddRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35751 { (char *)"GraphicsPath_AddCircle", (PyCFunction) _wrap_GraphicsPath_AddCircle, METH_VARARGS | METH_KEYWORDS, NULL},
35752 { (char *)"GraphicsPath_AddArcToPoint", (PyCFunction) _wrap_GraphicsPath_AddArcToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35753 { (char *)"GraphicsPath_swigregister", GraphicsPath_swigregister, METH_VARARGS, NULL},
35754 { (char *)"delete_GraphicsContext", (PyCFunction)_wrap_delete_GraphicsContext, METH_O, NULL},
35755 { (char *)"GraphicsContext_Create", (PyCFunction) _wrap_GraphicsContext_Create, METH_VARARGS | METH_KEYWORDS, NULL},
35756 { (char *)"GraphicsContext_CreatePath", (PyCFunction)_wrap_GraphicsContext_CreatePath, METH_O, NULL},
35757 { (char *)"GraphicsContext_PushState", (PyCFunction)_wrap_GraphicsContext_PushState, METH_O, NULL},
35758 { (char *)"GraphicsContext_PopState", (PyCFunction)_wrap_GraphicsContext_PopState, METH_O, NULL},
35759 { (char *)"GraphicsContext_Clip", (PyCFunction) _wrap_GraphicsContext_Clip, METH_VARARGS | METH_KEYWORDS, NULL},
35760 { (char *)"GraphicsContext_Translate", (PyCFunction) _wrap_GraphicsContext_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
35761 { (char *)"GraphicsContext_Scale", (PyCFunction) _wrap_GraphicsContext_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
35762 { (char *)"GraphicsContext_Rotate", (PyCFunction) _wrap_GraphicsContext_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
35763 { (char *)"GraphicsContext_SetPen", (PyCFunction) _wrap_GraphicsContext_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
35764 { (char *)"GraphicsContext_SetBrush", (PyCFunction) _wrap_GraphicsContext_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35765 { (char *)"GraphicsContext_SetLinearGradientBrush", (PyCFunction) _wrap_GraphicsContext_SetLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35766 { (char *)"GraphicsContext_SetRadialGradientBrush", (PyCFunction) _wrap_GraphicsContext_SetRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35767 { (char *)"GraphicsContext_SetFont", (PyCFunction) _wrap_GraphicsContext_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
35768 { (char *)"GraphicsContext_SetTextColor", (PyCFunction) _wrap_GraphicsContext_SetTextColor, METH_VARARGS | METH_KEYWORDS, NULL},
35769 { (char *)"GraphicsContext_StrokePath", (PyCFunction) _wrap_GraphicsContext_StrokePath, METH_VARARGS | METH_KEYWORDS, NULL},
35770 { (char *)"GraphicsContext_FillPath", (PyCFunction) _wrap_GraphicsContext_FillPath, METH_VARARGS | METH_KEYWORDS, NULL},
35771 { (char *)"GraphicsContext_DrawPath", (PyCFunction) _wrap_GraphicsContext_DrawPath, METH_VARARGS | METH_KEYWORDS, NULL},
35772 { (char *)"GraphicsContext_DrawText", (PyCFunction) _wrap_GraphicsContext_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
35773 { (char *)"GraphicsContext_DrawRotatedText", (PyCFunction) _wrap_GraphicsContext_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
35774 { (char *)"GraphicsContext_GetTextExtent", (PyCFunction) _wrap_GraphicsContext_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
35775 { (char *)"GraphicsContext_GetPartialTextExtents", (PyCFunction) _wrap_GraphicsContext_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
35776 { (char *)"GraphicsContext_DrawBitmap", (PyCFunction) _wrap_GraphicsContext_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35777 { (char *)"GraphicsContext_DrawIcon", (PyCFunction) _wrap_GraphicsContext_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35778 { (char *)"GraphicsContext_StrokeLine", (PyCFunction) _wrap_GraphicsContext_StrokeLine, METH_VARARGS | METH_KEYWORDS, NULL},
35779 { (char *)"GraphicsContext_StrokeLines", (PyCFunction) _wrap_GraphicsContext_StrokeLines, METH_VARARGS | METH_KEYWORDS, NULL},
35780 { (char *)"GraphicsContext_StrokeLineSegements", (PyCFunction) _wrap_GraphicsContext_StrokeLineSegements, METH_VARARGS | METH_KEYWORDS, NULL},
35781 { (char *)"GraphicsContext_DrawLines", (PyCFunction) _wrap_GraphicsContext_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
35782 { (char *)"GraphicsContext_DrawRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35783 { (char *)"GraphicsContext_DrawEllipse", (PyCFunction) _wrap_GraphicsContext_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
35784 { (char *)"GraphicsContext_DrawRoundedRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35785 { (char *)"GraphicsContext_swigregister", GraphicsContext_swigregister, METH_VARARGS, NULL},
35786 { (char *)"new_GCDC", (PyCFunction) _wrap_new_GCDC, METH_VARARGS | METH_KEYWORDS, NULL},
35787 { (char *)"delete_GCDC", (PyCFunction)_wrap_delete_GCDC, METH_O, NULL},
35788 { (char *)"GCDC_GetGraphicContext", (PyCFunction)_wrap_GCDC_GetGraphicContext, METH_O, NULL},
35789 { (char *)"GCDC_swigregister", GCDC_swigregister, METH_VARARGS, NULL},
35790 { (char *)"GCDC_swiginit", GCDC_swiginit, METH_VARARGS, NULL},
35791 { (char *)"new_Overlay", (PyCFunction)_wrap_new_Overlay, METH_NOARGS, NULL},
35792 { (char *)"delete_Overlay", (PyCFunction)_wrap_delete_Overlay, METH_O, NULL},
35793 { (char *)"Overlay_Reset", (PyCFunction)_wrap_Overlay_Reset, METH_O, NULL},
35794 { (char *)"Overlay_swigregister", Overlay_swigregister, METH_VARARGS, NULL},
35795 { (char *)"Overlay_swiginit", Overlay_swiginit, METH_VARARGS, NULL},
35796 { (char *)"new_DCOverlay", _wrap_new_DCOverlay, METH_VARARGS, NULL},
35797 { (char *)"delete_DCOverlay", (PyCFunction)_wrap_delete_DCOverlay, METH_O, NULL},
35798 { (char *)"DCOverlay_Clear", (PyCFunction)_wrap_DCOverlay_Clear, METH_O, NULL},
35799 { (char *)"DCOverlay_swigregister", DCOverlay_swigregister, METH_VARARGS, NULL},
35800 { (char *)"DCOverlay_swiginit", DCOverlay_swiginit, METH_VARARGS, NULL},
35801 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
35802 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
35803 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
35804 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
35805 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35806 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35807 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35808 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
35809 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
35810 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
35811 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
35812 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
35813 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
35814 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
35815 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
35816 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
35817 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
35818 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
35819 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
35820 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35821 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
35822 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
35823 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
35824 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
35825 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
35826 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
35827 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
35828 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
35829 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
35830 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
35831 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
35832 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
35833 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
35834 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
35835 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35836 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35837 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35838 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
35839 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
35840 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
35841 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
35842 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
35843 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
35844 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
35845 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
35846 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
35847 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
35848 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
35849 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
35850 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
35851 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
35852 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
35853 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
35854 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
35855 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
35856 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
35857 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
35858 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
35859 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
35860 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
35861 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
35862 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
35863 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
35864 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
35865 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
35866 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
35867 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
35868 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35869 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
35870 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
35871 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
35872 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
35873 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
35874 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
35875 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
35876 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
35877 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
35878 { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL},
35879 { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL},
35880 { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL},
35881 { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL},
35882 { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL},
35883 { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL},
35884 { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL},
35885 { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL},
35886 { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL},
35887 { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL},
35888 { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL},
35889 { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL},
35890 { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL},
35891 { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL},
35892 { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL},
35893 { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL},
35894 { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL},
35895 { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL},
35896 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
35897 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
35898 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
35899 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
35900 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
35901 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
35902 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
35903 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
35904 { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL},
35905 { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL},
35906 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
35907 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
35908 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
35909 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
35910 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
35911 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
35912 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
35913 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
35914 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
35915 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
35916 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
35917 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
35918 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
35919 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
35920 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
35921 { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL},
35922 { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL},
35923 { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL},
35924 { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL},
35925 { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL},
35926 { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL},
35927 { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
35928 { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL},
35929 { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL},
35930 { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL},
35931 { (char *)"PseudoDC_SetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_SetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
35932 { (char *)"PseudoDC_GetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_GetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
35933 { (char *)"PseudoDC_FindObjects", (PyCFunction) _wrap_PseudoDC_FindObjects, METH_VARARGS | METH_KEYWORDS, NULL},
35934 { (char *)"PseudoDC_FindObjectsByBBox", (PyCFunction) _wrap_PseudoDC_FindObjectsByBBox, METH_VARARGS | METH_KEYWORDS, NULL},
35935 { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL},
35936 { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
35937 { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
35938 { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL},
35939 { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL},
35940 { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL},
35941 { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
35942 { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35943 { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
35944 { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
35945 { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
35946 { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35947 { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
35948 { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35949 { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
35950 { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
35951 { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
35952 { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35953 { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35954 { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35955 { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35956 { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
35957 { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35958 { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35959 { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
35960 { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35961 { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
35962 { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
35963 { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
35964 { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
35965 { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35966 { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35967 { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35968 { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35969 { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35970 { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
35971 { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35972 { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
35973 { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35974 { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
35975 { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
35976 { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
35977 { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
35978 { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
35979 { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL},
35980 { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
35981 { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
35982 { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35983 { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
35984 { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
35985 { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
35986 { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
35987 { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
35988 { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
35989 { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
35990 { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL},
35991 { NULL, NULL, 0, NULL }
35992 };
35993
35994
35995 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
35996
35997 static void *_p_wxPaintDCTo_p_wxClientDC(void *x) {
35998 return (void *)((wxClientDC *) ((wxPaintDC *) x));
35999 }
36000 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
36001 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
36002 }
36003 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
36004 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
36005 }
36006 static void *_p_wxClientDCTo_p_wxWindowDC(void *x) {
36007 return (void *)((wxWindowDC *) ((wxClientDC *) x));
36008 }
36009 static void *_p_wxPaintDCTo_p_wxWindowDC(void *x) {
36010 return (void *)((wxWindowDC *) (wxClientDC *) ((wxPaintDC *) x));
36011 }
36012 static void *_p_wxPyLocaleTo_p_wxLocale(void *x) {
36013 return (void *)((wxLocale *) ((wxPyLocale *) x));
36014 }
36015 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
36016 return (void *)((wxGDIObject *) ((wxIcon *) x));
36017 }
36018 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
36019 return (void *)((wxGDIObject *) ((wxPalette *) x));
36020 }
36021 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
36022 return (void *)((wxGDIObject *) ((wxPen *) x));
36023 }
36024 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
36025 return (void *)((wxGDIObject *) ((wxFont *) x));
36026 }
36027 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
36028 return (void *)((wxGDIObject *) ((wxCursor *) x));
36029 }
36030 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
36031 return (void *)((wxGDIObject *) ((wxBitmap *) x));
36032 }
36033 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
36034 return (void *)((wxGDIObject *) ((wxRegion *) x));
36035 }
36036 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
36037 return (void *)((wxGDIObject *) ((wxBrush *) x));
36038 }
36039 static void *_p_wxGCDCTo_p_wxDC(void *x) {
36040 return (void *)((wxDC *) ((wxGCDC *) x));
36041 }
36042 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
36043 return (void *)((wxDC *) ((wxScreenDC *) x));
36044 }
36045 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
36046 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
36047 }
36048 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
36049 return (void *)((wxDC *) ((wxMirrorDC *) x));
36050 }
36051 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
36052 return (void *)((wxDC *) ((wxMemoryDC *) x));
36053 }
36054 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
36055 return (void *)((wxDC *) ((wxWindowDC *) x));
36056 }
36057 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
36058 return (void *)((wxDC *) ((wxMetaFileDC *) x));
36059 }
36060 static void *_p_wxClientDCTo_p_wxDC(void *x) {
36061 return (void *)((wxDC *) (wxWindowDC *) ((wxClientDC *) x));
36062 }
36063 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
36064 return (void *)((wxDC *) (wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
36065 }
36066 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
36067 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
36068 }
36069 static void *_p_wxAutoBufferedPaintDCTo_p_wxDC(void *x) {
36070 return (void *)((wxDC *) ((wxAutoBufferedPaintDC *) x));
36071 }
36072 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
36073 return (void *)((wxDC *) ((wxPostScriptDC *) x));
36074 }
36075 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
36076 return (void *)((wxDC *) ((wxPrinterDC *) x));
36077 }
36078 static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
36079 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
36080 }
36081 static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
36082 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
36083 }
36084 static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
36085 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
36086 }
36087 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
36088 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
36089 }
36090 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
36091 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
36092 }
36093 static void *_p_wxPenTo_p_wxObject(void *x) {
36094 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
36095 }
36096 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
36097 return (void *)((wxObject *) ((wxRegionIterator *) x));
36098 }
36099 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
36100 return (void *)((wxObject *) ((wxSizerItem *) x));
36101 }
36102 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
36103 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
36104 }
36105 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
36106 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
36107 }
36108 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
36109 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
36110 }
36111 static void *_p_wxIconTo_p_wxObject(void *x) {
36112 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
36113 }
36114 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
36115 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
36116 }
36117 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
36118 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
36119 }
36120 static void *_p_wxSizerTo_p_wxObject(void *x) {
36121 return (void *)((wxObject *) ((wxSizer *) x));
36122 }
36123 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
36124 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
36125 }
36126 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
36127 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
36128 }
36129 static void *_p_wxEventTo_p_wxObject(void *x) {
36130 return (void *)((wxObject *) ((wxEvent *) x));
36131 }
36132 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
36133 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
36134 }
36135 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
36136 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
36137 }
36138 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
36139 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
36140 }
36141 static void *_p_wxPseudoDCTo_p_wxObject(void *x) {
36142 return (void *)((wxObject *) ((wxPseudoDC *) x));
36143 }
36144 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
36145 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
36146 }
36147 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
36148 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
36149 }
36150 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
36151 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
36152 }
36153 static void *_p_wxDCTo_p_wxObject(void *x) {
36154 return (void *)((wxObject *) ((wxDC *) x));
36155 }
36156 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
36157 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
36158 }
36159 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
36160 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
36161 }
36162 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
36163 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
36164 }
36165 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
36166 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
36167 }
36168 static void *_p_wxControlTo_p_wxObject(void *x) {
36169 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
36170 }
36171 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
36172 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
36173 }
36174 static void *_p_wxClientDCTo_p_wxObject(void *x) {
36175 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxClientDC *) x));
36176 }
36177 static void *_p_wxFSFileTo_p_wxObject(void *x) {
36178 return (void *)((wxObject *) ((wxFSFile *) x));
36179 }
36180 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
36181 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
36182 }
36183 static void *_p_wxRegionTo_p_wxObject(void *x) {
36184 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
36185 }
36186 static void *_p_wxPySizerTo_p_wxObject(void *x) {
36187 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
36188 }
36189 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
36190 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
36191 }
36192 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
36193 return (void *)((wxObject *) ((wxGDIObject *) x));
36194 }
36195 static void *_p_wxEffectsTo_p_wxObject(void *x) {
36196 return (void *)((wxObject *) ((wxEffects *) x));
36197 }
36198 static void *_p_wxPyEventTo_p_wxObject(void *x) {
36199 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
36200 }
36201 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
36202 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
36203 }
36204 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
36205 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
36206 }
36207 static void *_p_wxShowEventTo_p_wxObject(void *x) {
36208 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
36209 }
36210 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
36211 return (void *)((wxObject *) ((wxMenuItem *) x));
36212 }
36213 static void *_p_wxDateEventTo_p_wxObject(void *x) {
36214 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
36215 }
36216 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
36217 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
36218 }
36219 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
36220 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
36221 }
36222 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
36223 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
36224 }
36225 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
36226 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
36227 }
36228 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
36229 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
36230 }
36231 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
36232 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
36233 }
36234 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
36235 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
36236 }
36237 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
36238 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
36239 }
36240 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
36241 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
36242 }
36243 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
36244 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
36245 }
36246 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
36247 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
36248 }
36249 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
36250 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
36251 }
36252 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
36253 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
36254 }
36255 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
36256 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
36257 }
36258 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
36259 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
36260 }
36261 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
36262 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
36263 }
36264 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
36265 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
36266 }
36267 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
36268 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
36269 }
36270 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
36271 return (void *)((wxObject *) ((wxImageHandler *) x));
36272 }
36273 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
36274 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
36275 }
36276 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
36277 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
36278 }
36279 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
36280 return (void *)((wxObject *) ((wxEvtHandler *) x));
36281 }
36282 static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
36283 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
36284 }
36285 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
36286 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
36287 }
36288 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
36289 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
36290 }
36291 static void *_p_wxAutoBufferedPaintDCTo_p_wxObject(void *x) {
36292 return (void *)((wxObject *) (wxDC *) ((wxAutoBufferedPaintDC *) x));
36293 }
36294 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
36295 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
36296 }
36297 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
36298 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
36299 }
36300 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
36301 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
36302 }
36303 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
36304 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
36305 }
36306 static void *_p_wxImageTo_p_wxObject(void *x) {
36307 return (void *)((wxObject *) ((wxImage *) x));
36308 }
36309 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
36310 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
36311 }
36312 static void *_p_wxPaletteTo_p_wxObject(void *x) {
36313 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
36314 }
36315 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
36316 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
36317 }
36318 static void *_p_wxImageListTo_p_wxObject(void *x) {
36319 return (void *)((wxObject *) ((wxImageList *) x));
36320 }
36321 static void *_p_wxGCDCTo_p_wxObject(void *x) {
36322 return (void *)((wxObject *) (wxDC *) ((wxGCDC *) x));
36323 }
36324 static void *_p_wxCursorTo_p_wxObject(void *x) {
36325 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
36326 }
36327 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
36328 return (void *)((wxObject *) ((wxEncodingConverter *) x));
36329 }
36330 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
36331 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
36332 }
36333 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
36334 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
36335 }
36336 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
36337 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
36338 }
36339 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
36340 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
36341 }
36342 static void *_p_wxWindowTo_p_wxObject(void *x) {
36343 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
36344 }
36345 static void *_p_wxMenuTo_p_wxObject(void *x) {
36346 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
36347 }
36348 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
36349 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
36350 }
36351 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
36352 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
36353 }
36354 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
36355 return (void *)((wxObject *) ((wxFileSystem *) x));
36356 }
36357 static void *_p_wxBitmapTo_p_wxObject(void *x) {
36358 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
36359 }
36360 static void *_p_wxMaskTo_p_wxObject(void *x) {
36361 return (void *)((wxObject *) ((wxMask *) x));
36362 }
36363 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
36364 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
36365 }
36366 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
36367 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
36368 }
36369 static void *_p_wxPyAppTo_p_wxObject(void *x) {
36370 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
36371 }
36372 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
36373 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
36374 }
36375 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
36376 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
36377 }
36378 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
36379 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
36380 }
36381 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
36382 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
36383 }
36384 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
36385 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
36386 }
36387 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
36388 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
36389 }
36390 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
36391 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
36392 }
36393 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
36394 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
36395 }
36396 static void *_p_wxFontTo_p_wxObject(void *x) {
36397 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
36398 }
36399 static void *_p_wxBrushTo_p_wxObject(void *x) {
36400 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
36401 }
36402 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
36403 return (void *)((wxObject *) ((wxMetaFile *) x));
36404 }
36405 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
36406 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
36407 }
36408 static void *_p_wxColourTo_p_wxObject(void *x) {
36409 return (void *)((wxObject *) ((wxColour *) x));
36410 }
36411 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
36412 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
36413 }
36414 static void *_p_wxValidatorTo_p_wxObject(void *x) {
36415 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
36416 }
36417 static void *_p_wxControlTo_p_wxWindow(void *x) {
36418 return (void *)((wxWindow *) ((wxControl *) x));
36419 }
36420 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
36421 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
36422 }
36423 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
36424 return (void *)((wxWindow *) ((wxMenuBar *) x));
36425 }
36426 static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) {
36427 return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x));
36428 }
36429 static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) {
36430 return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x));
36431 }
36432 static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0};
36433 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
36434 static swig_type_info _swigt__p_double = {"_p_double", "double *|wxDouble *", 0, 0, (void*)0, 0};
36435 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};
36436 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
36437 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
36438 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
36439 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
36440 static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0};
36441 static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0};
36442 static swig_type_info _swigt__p_wxAutoBufferedPaintDC = {"_p_wxAutoBufferedPaintDC", "wxAutoBufferedPaintDC *", 0, 0, (void*)0, 0};
36443 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
36444 static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
36445 static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
36446 static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
36447 static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
36448 static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0};
36449 static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
36450 static swig_type_info _swigt__p_wxColor = {"_p_wxColor", "wxColor *", 0, 0, (void*)0, 0};
36451 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
36452 static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
36453 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
36454 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
36455 static swig_type_info _swigt__p_wxDCOverlay = {"_p_wxDCOverlay", "wxDCOverlay *", 0, 0, (void*)0, 0};
36456 static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
36457 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
36458 static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
36459 static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
36460 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
36461 static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
36462 static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
36463 static swig_type_info _swigt__p_wxGCDC = {"_p_wxGCDC", "wxGCDC *", 0, 0, (void*)0, 0};
36464 static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
36465 static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
36466 static swig_type_info _swigt__p_wxGraphicsContext = {"_p_wxGraphicsContext", "wxGraphicsContext *", 0, 0, (void*)0, 0};
36467 static swig_type_info _swigt__p_wxGraphicsPath = {"_p_wxGraphicsPath", "wxGraphicsPath *", 0, 0, (void*)0, 0};
36468 static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0};
36469 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
36470 static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
36471 static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
36472 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
36473 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
36474 static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
36475 static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
36476 static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
36477 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
36478 static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
36479 static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
36480 static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
36481 static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
36482 static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
36483 static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0};
36484 static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0};
36485 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
36486 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
36487 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
36488 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
36489 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
36490 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
36491 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
36492 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
36493 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
36494 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
36495 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
36496 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
36497 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
36498 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
36499 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
36500 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
36501 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
36502 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
36503 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
36504 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
36505 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
36506 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
36507 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
36508 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
36509 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
36510 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
36511 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
36512 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
36513 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
36514 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
36515 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
36516 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
36517 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
36518 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
36519 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
36520 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
36521 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
36522 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
36523 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
36524 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
36525 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
36526 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
36527 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
36528 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
36529 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
36530 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
36531 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
36532 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
36533 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
36534 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
36535 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
36536 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
36537 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
36538 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
36539 static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
36540 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
36541 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
36542 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
36543 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
36544 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
36545 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
36546 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
36547 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
36548 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
36549 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
36550 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
36551 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
36552 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
36553 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
36554 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
36555 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
36556 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
36557 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
36558 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
36559 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
36560 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
36561 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
36562 static swig_type_info _swigt__p_wxOverlay = {"_p_wxOverlay", "wxOverlay *", 0, 0, (void*)0, 0};
36563 static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
36564 static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
36565 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
36566 static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
36567 static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
36568 static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0};
36569 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
36570 static swig_type_info _swigt__p_wxPoint2D = {"_p_wxPoint2D", "wxPoint2D *", 0, 0, (void*)0, 0};
36571 static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
36572 static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
36573 static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
36574 static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0};
36575 static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
36576 static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0};
36577 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
36578 static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
36579 static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
36580 static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
36581 static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
36582 static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
36583 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
36584 static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
36585 static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
36586 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
36587 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
36588 static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
36589
36590 static swig_type_info *swig_type_initial[] = {
36591 &_swigt__p_buffer,
36592 &_swigt__p_char,
36593 &_swigt__p_double,
36594 &_swigt__p_form_ops_t,
36595 &_swigt__p_int,
36596 &_swigt__p_unsigned_char,
36597 &_swigt__p_unsigned_int,
36598 &_swigt__p_unsigned_long,
36599 &_swigt__p_wxANIHandler,
36600 &_swigt__p_wxAcceleratorTable,
36601 &_swigt__p_wxActivateEvent,
36602 &_swigt__p_wxAlphaPixelData,
36603 &_swigt__p_wxAlphaPixelData_Accessor,
36604 &_swigt__p_wxAutoBufferedPaintDC,
36605 &_swigt__p_wxBMPHandler,
36606 &_swigt__p_wxBitmap,
36607 &_swigt__p_wxBoxSizer,
36608 &_swigt__p_wxBrush,
36609 &_swigt__p_wxBrushList,
36610 &_swigt__p_wxBufferedDC,
36611 &_swigt__p_wxBufferedPaintDC,
36612 &_swigt__p_wxCURHandler,
36613 &_swigt__p_wxChar,
36614 &_swigt__p_wxChildFocusEvent,
36615 &_swigt__p_wxClientDC,
36616 &_swigt__p_wxClipboardTextEvent,
36617 &_swigt__p_wxCloseEvent,
36618 &_swigt__p_wxColor,
36619 &_swigt__p_wxColour,
36620 &_swigt__p_wxColourDatabase,
36621 &_swigt__p_wxCommandEvent,
36622 &_swigt__p_wxContextMenuEvent,
36623 &_swigt__p_wxControl,
36624 &_swigt__p_wxControlWithItems,
36625 &_swigt__p_wxCursor,
36626 &_swigt__p_wxDC,
36627 &_swigt__p_wxDCOverlay,
36628 &_swigt__p_wxDash,
36629 &_swigt__p_wxDateEvent,
36630 &_swigt__p_wxDisplayChangedEvent,
36631 &_swigt__p_wxDropFilesEvent,
36632 &_swigt__p_wxDuplexMode,
36633 &_swigt__p_wxEffects,
36634 &_swigt__p_wxEncodingConverter,
36635 &_swigt__p_wxEraseEvent,
36636 &_swigt__p_wxEvent,
36637 &_swigt__p_wxEvtHandler,
36638 &_swigt__p_wxFSFile,
36639 &_swigt__p_wxFileSystem,
36640 &_swigt__p_wxFlexGridSizer,
36641 &_swigt__p_wxFocusEvent,
36642 &_swigt__p_wxFont,
36643 &_swigt__p_wxFontList,
36644 &_swigt__p_wxFontMapper,
36645 &_swigt__p_wxGBSizerItem,
36646 &_swigt__p_wxGCDC,
36647 &_swigt__p_wxGDIObjListBase,
36648 &_swigt__p_wxGDIObject,
36649 &_swigt__p_wxGIFHandler,
36650 &_swigt__p_wxGraphicsContext,
36651 &_swigt__p_wxGraphicsPath,
36652 &_swigt__p_wxGridBagSizer,
36653 &_swigt__p_wxGridSizer,
36654 &_swigt__p_wxHeaderButtonParams,
36655 &_swigt__p_wxICOHandler,
36656 &_swigt__p_wxIcon,
36657 &_swigt__p_wxIconBundle,
36658 &_swigt__p_wxIconLocation,
36659 &_swigt__p_wxIconizeEvent,
36660 &_swigt__p_wxIdleEvent,
36661 &_swigt__p_wxImage,
36662 &_swigt__p_wxImageHandler,
36663 &_swigt__p_wxImageList,
36664 &_swigt__p_wxIndividualLayoutConstraint,
36665 &_swigt__p_wxInitDialogEvent,
36666 &_swigt__p_wxJPEGHandler,
36667 &_swigt__p_wxKeyEvent,
36668 &_swigt__p_wxLanguageInfo,
36669 &_swigt__p_wxLayoutConstraints,
36670 &_swigt__p_wxLocale,
36671 &_swigt__p_wxMask,
36672 &_swigt__p_wxMaximizeEvent,
36673 &_swigt__p_wxMemoryDC,
36674 &_swigt__p_wxMenu,
36675 &_swigt__p_wxMenuBar,
36676 &_swigt__p_wxMenuEvent,
36677 &_swigt__p_wxMenuItem,
36678 &_swigt__p_wxMetaFile,
36679 &_swigt__p_wxMetaFileDC,
36680 &_swigt__p_wxMirrorDC,
36681 &_swigt__p_wxMouseCaptureChangedEvent,
36682 &_swigt__p_wxMouseCaptureLostEvent,
36683 &_swigt__p_wxMouseEvent,
36684 &_swigt__p_wxMoveEvent,
36685 &_swigt__p_wxNativeEncodingInfo,
36686 &_swigt__p_wxNativeFontInfo,
36687 &_swigt__p_wxNativePixelData,
36688 &_swigt__p_wxNativePixelData_Accessor,
36689 &_swigt__p_wxNavigationKeyEvent,
36690 &_swigt__p_wxNcPaintEvent,
36691 &_swigt__p_wxNotifyEvent,
36692 &_swigt__p_wxObject,
36693 &_swigt__p_wxOverlay,
36694 &_swigt__p_wxPCXHandler,
36695 &_swigt__p_wxPNGHandler,
36696 &_swigt__p_wxPNMHandler,
36697 &_swigt__p_wxPaintDC,
36698 &_swigt__p_wxPaintEvent,
36699 &_swigt__p_wxPalette,
36700 &_swigt__p_wxPaletteChangedEvent,
36701 &_swigt__p_wxPaperSize,
36702 &_swigt__p_wxPen,
36703 &_swigt__p_wxPenList,
36704 &_swigt__p_wxPixelDataBase,
36705 &_swigt__p_wxPoint,
36706 &_swigt__p_wxPoint2D,
36707 &_swigt__p_wxPostScriptDC,
36708 &_swigt__p_wxPrintData,
36709 &_swigt__p_wxPrinterDC,
36710 &_swigt__p_wxPseudoDC,
36711 &_swigt__p_wxPyApp,
36712 &_swigt__p_wxPyCommandEvent,
36713 &_swigt__p_wxPyEvent,
36714 &_swigt__p_wxPyFontEnumerator,
36715 &_swigt__p_wxPyImageHandler,
36716 &_swigt__p_wxPyLocale,
36717 &_swigt__p_wxPySizer,
36718 &_swigt__p_wxPyValidator,
36719 &_swigt__p_wxQueryNewPaletteEvent,
36720 &_swigt__p_wxRect,
36721 &_swigt__p_wxRegion,
36722 &_swigt__p_wxRegionIterator,
36723 &_swigt__p_wxRendererNative,
36724 &_swigt__p_wxRendererVersion,
36725 &_swigt__p_wxScreenDC,
36726 &_swigt__p_wxScrollEvent,
36727 &_swigt__p_wxScrollWinEvent,
36728 &_swigt__p_wxSetCursorEvent,
36729 &_swigt__p_wxShowEvent,
36730 &_swigt__p_wxSize,
36731 &_swigt__p_wxSizeEvent,
36732 &_swigt__p_wxSizer,
36733 &_swigt__p_wxSizerItem,
36734 &_swigt__p_wxSplitterRenderParams,
36735 &_swigt__p_wxStaticBoxSizer,
36736 &_swigt__p_wxStdDialogButtonSizer,
36737 &_swigt__p_wxStockGDI,
36738 &_swigt__p_wxString,
36739 &_swigt__p_wxSysColourChangedEvent,
36740 &_swigt__p_wxTIFFHandler,
36741 &_swigt__p_wxUpdateUIEvent,
36742 &_swigt__p_wxValidator,
36743 &_swigt__p_wxWindow,
36744 &_swigt__p_wxWindowCreateEvent,
36745 &_swigt__p_wxWindowDC,
36746 &_swigt__p_wxWindowDestroyEvent,
36747 &_swigt__p_wxXPMHandler,
36748 };
36749
36750 static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}};
36751 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
36752 static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
36753 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
36754 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
36755 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
36756 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
36757 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
36758 static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}};
36759 static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
36760 static swig_cast_info _swigc__p_wxAutoBufferedPaintDC[] = { {&_swigt__p_wxAutoBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
36761 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
36762 static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
36763 static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
36764 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}};
36765 static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
36766 static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}};
36767 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}};
36768 static swig_cast_info _swigc__p_wxColor[] = { {&_swigt__p_wxColor, 0, 0, 0},{0, 0, 0, 0}};
36769 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
36770 static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
36771 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
36772 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}};
36773 static swig_cast_info _swigc__p_wxDCOverlay[] = { {&_swigt__p_wxDCOverlay, 0, 0, 0},{0, 0, 0, 0}};
36774 static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
36775 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
36776 static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
36777 static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
36778 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
36779 static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
36780 static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
36781 static swig_cast_info _swigc__p_wxGCDC[] = { {&_swigt__p_wxGCDC, 0, 0, 0},{0, 0, 0, 0}};
36782 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}};
36783 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}};
36784 static swig_cast_info _swigc__p_wxGraphicsContext[] = { {&_swigt__p_wxGraphicsContext, 0, 0, 0},{0, 0, 0, 0}};
36785 static swig_cast_info _swigc__p_wxGraphicsPath[] = { {&_swigt__p_wxGraphicsPath, 0, 0, 0},{0, 0, 0, 0}};
36786 static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}};
36787 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
36788 static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
36789 static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
36790 static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
36791 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
36792 static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
36793 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}};
36794 static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
36795 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}};
36796 static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
36797 static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
36798 static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
36799 static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
36800 static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
36801 static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}};
36802 static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
36803 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
36804 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
36805 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
36806 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
36807 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
36808 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
36809 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
36810 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
36811 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
36812 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
36813 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
36814 static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
36815 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
36816 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
36817 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
36818 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
36819 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
36820 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
36821 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
36822 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
36823 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
36824 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
36825 static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
36826 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
36827 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
36828 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
36829 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
36830 static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
36831 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
36832 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
36833 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
36834 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
36835 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
36836 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
36837 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
36838 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
36839 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
36840 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
36841 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
36842 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
36843 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
36844 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
36845 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
36846 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
36847 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
36848 static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
36849 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
36850 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
36851 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
36852 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
36853 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
36854 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
36855 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
36856 static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
36857 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
36858 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
36859 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
36860 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
36861 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
36862 static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
36863 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
36864 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
36865 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
36866 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
36867 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
36868 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
36869 static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
36870 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
36871 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
36872 static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
36873 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
36874 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
36875 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
36876 static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
36877 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
36878 static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
36879 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}};
36880 static swig_cast_info _swigc__p_wxOverlay[] = { {&_swigt__p_wxOverlay, 0, 0, 0},{0, 0, 0, 0}};
36881 static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
36882 static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
36883 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
36884 static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
36885 static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
36886 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}};
36887 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
36888 static swig_cast_info _swigc__p_wxPoint2D[] = { {&_swigt__p_wxPoint2D, 0, 0, 0},{0, 0, 0, 0}};
36889 static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
36890 static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
36891 static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
36892 static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
36893 static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
36894 static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}};
36895 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
36896 static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
36897 static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
36898 static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
36899 static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
36900 static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
36901 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
36902 static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
36903 static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
36904 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
36905 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}};
36906 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}};
36907
36908 static swig_cast_info *swig_cast_initial[] = {
36909 _swigc__p_buffer,
36910 _swigc__p_char,
36911 _swigc__p_double,
36912 _swigc__p_form_ops_t,
36913 _swigc__p_int,
36914 _swigc__p_unsigned_char,
36915 _swigc__p_unsigned_int,
36916 _swigc__p_unsigned_long,
36917 _swigc__p_wxANIHandler,
36918 _swigc__p_wxAcceleratorTable,
36919 _swigc__p_wxActivateEvent,
36920 _swigc__p_wxAlphaPixelData,
36921 _swigc__p_wxAlphaPixelData_Accessor,
36922 _swigc__p_wxAutoBufferedPaintDC,
36923 _swigc__p_wxBMPHandler,
36924 _swigc__p_wxBitmap,
36925 _swigc__p_wxBoxSizer,
36926 _swigc__p_wxBrush,
36927 _swigc__p_wxBrushList,
36928 _swigc__p_wxBufferedDC,
36929 _swigc__p_wxBufferedPaintDC,
36930 _swigc__p_wxCURHandler,
36931 _swigc__p_wxChar,
36932 _swigc__p_wxChildFocusEvent,
36933 _swigc__p_wxClientDC,
36934 _swigc__p_wxClipboardTextEvent,
36935 _swigc__p_wxCloseEvent,
36936 _swigc__p_wxColor,
36937 _swigc__p_wxColour,
36938 _swigc__p_wxColourDatabase,
36939 _swigc__p_wxCommandEvent,
36940 _swigc__p_wxContextMenuEvent,
36941 _swigc__p_wxControl,
36942 _swigc__p_wxControlWithItems,
36943 _swigc__p_wxCursor,
36944 _swigc__p_wxDC,
36945 _swigc__p_wxDCOverlay,
36946 _swigc__p_wxDash,
36947 _swigc__p_wxDateEvent,
36948 _swigc__p_wxDisplayChangedEvent,
36949 _swigc__p_wxDropFilesEvent,
36950 _swigc__p_wxDuplexMode,
36951 _swigc__p_wxEffects,
36952 _swigc__p_wxEncodingConverter,
36953 _swigc__p_wxEraseEvent,
36954 _swigc__p_wxEvent,
36955 _swigc__p_wxEvtHandler,
36956 _swigc__p_wxFSFile,
36957 _swigc__p_wxFileSystem,
36958 _swigc__p_wxFlexGridSizer,
36959 _swigc__p_wxFocusEvent,
36960 _swigc__p_wxFont,
36961 _swigc__p_wxFontList,
36962 _swigc__p_wxFontMapper,
36963 _swigc__p_wxGBSizerItem,
36964 _swigc__p_wxGCDC,
36965 _swigc__p_wxGDIObjListBase,
36966 _swigc__p_wxGDIObject,
36967 _swigc__p_wxGIFHandler,
36968 _swigc__p_wxGraphicsContext,
36969 _swigc__p_wxGraphicsPath,
36970 _swigc__p_wxGridBagSizer,
36971 _swigc__p_wxGridSizer,
36972 _swigc__p_wxHeaderButtonParams,
36973 _swigc__p_wxICOHandler,
36974 _swigc__p_wxIcon,
36975 _swigc__p_wxIconBundle,
36976 _swigc__p_wxIconLocation,
36977 _swigc__p_wxIconizeEvent,
36978 _swigc__p_wxIdleEvent,
36979 _swigc__p_wxImage,
36980 _swigc__p_wxImageHandler,
36981 _swigc__p_wxImageList,
36982 _swigc__p_wxIndividualLayoutConstraint,
36983 _swigc__p_wxInitDialogEvent,
36984 _swigc__p_wxJPEGHandler,
36985 _swigc__p_wxKeyEvent,
36986 _swigc__p_wxLanguageInfo,
36987 _swigc__p_wxLayoutConstraints,
36988 _swigc__p_wxLocale,
36989 _swigc__p_wxMask,
36990 _swigc__p_wxMaximizeEvent,
36991 _swigc__p_wxMemoryDC,
36992 _swigc__p_wxMenu,
36993 _swigc__p_wxMenuBar,
36994 _swigc__p_wxMenuEvent,
36995 _swigc__p_wxMenuItem,
36996 _swigc__p_wxMetaFile,
36997 _swigc__p_wxMetaFileDC,
36998 _swigc__p_wxMirrorDC,
36999 _swigc__p_wxMouseCaptureChangedEvent,
37000 _swigc__p_wxMouseCaptureLostEvent,
37001 _swigc__p_wxMouseEvent,
37002 _swigc__p_wxMoveEvent,
37003 _swigc__p_wxNativeEncodingInfo,
37004 _swigc__p_wxNativeFontInfo,
37005 _swigc__p_wxNativePixelData,
37006 _swigc__p_wxNativePixelData_Accessor,
37007 _swigc__p_wxNavigationKeyEvent,
37008 _swigc__p_wxNcPaintEvent,
37009 _swigc__p_wxNotifyEvent,
37010 _swigc__p_wxObject,
37011 _swigc__p_wxOverlay,
37012 _swigc__p_wxPCXHandler,
37013 _swigc__p_wxPNGHandler,
37014 _swigc__p_wxPNMHandler,
37015 _swigc__p_wxPaintDC,
37016 _swigc__p_wxPaintEvent,
37017 _swigc__p_wxPalette,
37018 _swigc__p_wxPaletteChangedEvent,
37019 _swigc__p_wxPaperSize,
37020 _swigc__p_wxPen,
37021 _swigc__p_wxPenList,
37022 _swigc__p_wxPixelDataBase,
37023 _swigc__p_wxPoint,
37024 _swigc__p_wxPoint2D,
37025 _swigc__p_wxPostScriptDC,
37026 _swigc__p_wxPrintData,
37027 _swigc__p_wxPrinterDC,
37028 _swigc__p_wxPseudoDC,
37029 _swigc__p_wxPyApp,
37030 _swigc__p_wxPyCommandEvent,
37031 _swigc__p_wxPyEvent,
37032 _swigc__p_wxPyFontEnumerator,
37033 _swigc__p_wxPyImageHandler,
37034 _swigc__p_wxPyLocale,
37035 _swigc__p_wxPySizer,
37036 _swigc__p_wxPyValidator,
37037 _swigc__p_wxQueryNewPaletteEvent,
37038 _swigc__p_wxRect,
37039 _swigc__p_wxRegion,
37040 _swigc__p_wxRegionIterator,
37041 _swigc__p_wxRendererNative,
37042 _swigc__p_wxRendererVersion,
37043 _swigc__p_wxScreenDC,
37044 _swigc__p_wxScrollEvent,
37045 _swigc__p_wxScrollWinEvent,
37046 _swigc__p_wxSetCursorEvent,
37047 _swigc__p_wxShowEvent,
37048 _swigc__p_wxSize,
37049 _swigc__p_wxSizeEvent,
37050 _swigc__p_wxSizer,
37051 _swigc__p_wxSizerItem,
37052 _swigc__p_wxSplitterRenderParams,
37053 _swigc__p_wxStaticBoxSizer,
37054 _swigc__p_wxStdDialogButtonSizer,
37055 _swigc__p_wxStockGDI,
37056 _swigc__p_wxString,
37057 _swigc__p_wxSysColourChangedEvent,
37058 _swigc__p_wxTIFFHandler,
37059 _swigc__p_wxUpdateUIEvent,
37060 _swigc__p_wxValidator,
37061 _swigc__p_wxWindow,
37062 _swigc__p_wxWindowCreateEvent,
37063 _swigc__p_wxWindowDC,
37064 _swigc__p_wxWindowDestroyEvent,
37065 _swigc__p_wxXPMHandler,
37066 };
37067
37068
37069 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
37070
37071 static swig_const_info swig_const_table[] = {
37072 {0, 0, 0, 0.0, 0, 0}};
37073
37074 #ifdef __cplusplus
37075 }
37076 #endif
37077 /* -----------------------------------------------------------------------------
37078 * Type initialization:
37079 * This problem is tough by the requirement that no dynamic
37080 * memory is used. Also, since swig_type_info structures store pointers to
37081 * swig_cast_info structures and swig_cast_info structures store pointers back
37082 * to swig_type_info structures, we need some lookup code at initialization.
37083 * The idea is that swig generates all the structures that are needed.
37084 * The runtime then collects these partially filled structures.
37085 * The SWIG_InitializeModule function takes these initial arrays out of
37086 * swig_module, and does all the lookup, filling in the swig_module.types
37087 * array with the correct data and linking the correct swig_cast_info
37088 * structures together.
37089 *
37090 * The generated swig_type_info structures are assigned staticly to an initial
37091 * array. We just loop though that array, and handle each type individually.
37092 * First we lookup if this type has been already loaded, and if so, use the
37093 * loaded structure instead of the generated one. Then we have to fill in the
37094 * cast linked list. The cast data is initially stored in something like a
37095 * two-dimensional array. Each row corresponds to a type (there are the same
37096 * number of rows as there are in the swig_type_initial array). Each entry in
37097 * a column is one of the swig_cast_info structures for that type.
37098 * The cast_initial array is actually an array of arrays, because each row has
37099 * a variable number of columns. So to actually build the cast linked list,
37100 * we find the array of casts associated with the type, and loop through it
37101 * adding the casts to the list. The one last trick we need to do is making
37102 * sure the type pointer in the swig_cast_info struct is correct.
37103 *
37104 * First off, we lookup the cast->type name to see if it is already loaded.
37105 * There are three cases to handle:
37106 * 1) If the cast->type has already been loaded AND the type we are adding
37107 * casting info to has not been loaded (it is in this module), THEN we
37108 * replace the cast->type pointer with the type pointer that has already
37109 * been loaded.
37110 * 2) If BOTH types (the one we are adding casting info to, and the
37111 * cast->type) are loaded, THEN the cast info has already been loaded by
37112 * the previous module so we just ignore it.
37113 * 3) Finally, if cast->type has not already been loaded, then we add that
37114 * swig_cast_info to the linked list (because the cast->type) pointer will
37115 * be correct.
37116 * ----------------------------------------------------------------------------- */
37117
37118 #ifdef __cplusplus
37119 extern "C" {
37120 #if 0
37121 } /* c-mode */
37122 #endif
37123 #endif
37124
37125 #if 0
37126 #define SWIGRUNTIME_DEBUG
37127 #endif
37128
37129 SWIGRUNTIME void
37130 SWIG_InitializeModule(void *clientdata) {
37131 size_t i;
37132 swig_module_info *module_head;
37133 static int init_run = 0;
37134
37135 clientdata = clientdata;
37136
37137 if (init_run) return;
37138 init_run = 1;
37139
37140 /* Initialize the swig_module */
37141 swig_module.type_initial = swig_type_initial;
37142 swig_module.cast_initial = swig_cast_initial;
37143
37144 /* Try and load any already created modules */
37145 module_head = SWIG_GetModule(clientdata);
37146 if (module_head) {
37147 swig_module.next = module_head->next;
37148 module_head->next = &swig_module;
37149 } else {
37150 /* This is the first module loaded */
37151 swig_module.next = &swig_module;
37152 SWIG_SetModule(clientdata, &swig_module);
37153 }
37154
37155 /* Now work on filling in swig_module.types */
37156 #ifdef SWIGRUNTIME_DEBUG
37157 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
37158 #endif
37159 for (i = 0; i < swig_module.size; ++i) {
37160 swig_type_info *type = 0;
37161 swig_type_info *ret;
37162 swig_cast_info *cast;
37163
37164 #ifdef SWIGRUNTIME_DEBUG
37165 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
37166 #endif
37167
37168 /* if there is another module already loaded */
37169 if (swig_module.next != &swig_module) {
37170 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
37171 }
37172 if (type) {
37173 /* Overwrite clientdata field */
37174 #ifdef SWIGRUNTIME_DEBUG
37175 printf("SWIG_InitializeModule: found type %s\n", type->name);
37176 #endif
37177 if (swig_module.type_initial[i]->clientdata) {
37178 type->clientdata = swig_module.type_initial[i]->clientdata;
37179 #ifdef SWIGRUNTIME_DEBUG
37180 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
37181 #endif
37182 }
37183 } else {
37184 type = swig_module.type_initial[i];
37185 }
37186
37187 /* Insert casting types */
37188 cast = swig_module.cast_initial[i];
37189 while (cast->type) {
37190 /* Don't need to add information already in the list */
37191 ret = 0;
37192 #ifdef SWIGRUNTIME_DEBUG
37193 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
37194 #endif
37195 if (swig_module.next != &swig_module) {
37196 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
37197 #ifdef SWIGRUNTIME_DEBUG
37198 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
37199 #endif
37200 }
37201 if (ret) {
37202 if (type == swig_module.type_initial[i]) {
37203 #ifdef SWIGRUNTIME_DEBUG
37204 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
37205 #endif
37206 cast->type = ret;
37207 ret = 0;
37208 } else {
37209 /* Check for casting already in the list */
37210 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
37211 #ifdef SWIGRUNTIME_DEBUG
37212 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
37213 #endif
37214 if (!ocast) ret = 0;
37215 }
37216 }
37217
37218 if (!ret) {
37219 #ifdef SWIGRUNTIME_DEBUG
37220 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
37221 #endif
37222 if (type->cast) {
37223 type->cast->prev = cast;
37224 cast->next = type->cast;
37225 }
37226 type->cast = cast;
37227 }
37228 cast++;
37229 }
37230 /* Set entry in modules->types array equal to the type */
37231 swig_module.types[i] = type;
37232 }
37233 swig_module.types[i] = 0;
37234
37235 #ifdef SWIGRUNTIME_DEBUG
37236 printf("**** SWIG_InitializeModule: Cast List ******\n");
37237 for (i = 0; i < swig_module.size; ++i) {
37238 int j = 0;
37239 swig_cast_info *cast = swig_module.cast_initial[i];
37240 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
37241 while (cast->type) {
37242 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
37243 cast++;
37244 ++j;
37245 }
37246 printf("---- Total casts: %d\n",j);
37247 }
37248 printf("**** SWIG_InitializeModule: Cast List ******\n");
37249 #endif
37250 }
37251
37252 /* This function will propagate the clientdata field of type to
37253 * any new swig_type_info structures that have been added into the list
37254 * of equivalent types. It is like calling
37255 * SWIG_TypeClientData(type, clientdata) a second time.
37256 */
37257 SWIGRUNTIME void
37258 SWIG_PropagateClientData(void) {
37259 size_t i;
37260 swig_cast_info *equiv;
37261 static int init_run = 0;
37262
37263 if (init_run) return;
37264 init_run = 1;
37265
37266 for (i = 0; i < swig_module.size; i++) {
37267 if (swig_module.types[i]->clientdata) {
37268 equiv = swig_module.types[i]->cast;
37269 while (equiv) {
37270 if (!equiv->converter) {
37271 if (equiv->type && !equiv->type->clientdata)
37272 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
37273 }
37274 equiv = equiv->next;
37275 }
37276 }
37277 }
37278 }
37279
37280 #ifdef __cplusplus
37281 #if 0
37282 {
37283 /* c-mode */
37284 #endif
37285 }
37286 #endif
37287
37288
37289
37290 #ifdef __cplusplus
37291 extern "C" {
37292 #endif
37293
37294 /* Python-specific SWIG API */
37295 #define SWIG_newvarlink() SWIG_Python_newvarlink()
37296 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
37297 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
37298
37299 /* -----------------------------------------------------------------------------
37300 * global variable support code.
37301 * ----------------------------------------------------------------------------- */
37302
37303 typedef struct swig_globalvar {
37304 char *name; /* Name of global variable */
37305 PyObject *(*get_attr)(void); /* Return the current value */
37306 int (*set_attr)(PyObject *); /* Set the value */
37307 struct swig_globalvar *next;
37308 } swig_globalvar;
37309
37310 typedef struct swig_varlinkobject {
37311 PyObject_HEAD
37312 swig_globalvar *vars;
37313 } swig_varlinkobject;
37314
37315 SWIGINTERN PyObject *
37316 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
37317 return PyString_FromString("<Swig global variables>");
37318 }
37319
37320 SWIGINTERN PyObject *
37321 swig_varlink_str(swig_varlinkobject *v) {
37322 PyObject *str = PyString_FromString("(");
37323 swig_globalvar *var;
37324 for (var = v->vars; var; var=var->next) {
37325 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
37326 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
37327 }
37328 PyString_ConcatAndDel(&str,PyString_FromString(")"));
37329 return str;
37330 }
37331
37332 SWIGINTERN int
37333 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
37334 PyObject *str = swig_varlink_str(v);
37335 fprintf(fp,"Swig global variables ");
37336 fprintf(fp,"%s\n", PyString_AsString(str));
37337 Py_DECREF(str);
37338 return 0;
37339 }
37340
37341 SWIGINTERN void
37342 swig_varlink_dealloc(swig_varlinkobject *v) {
37343 swig_globalvar *var = v->vars;
37344 while (var) {
37345 swig_globalvar *n = var->next;
37346 free(var->name);
37347 free(var);
37348 var = n;
37349 }
37350 }
37351
37352 SWIGINTERN PyObject *
37353 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
37354 PyObject *res = NULL;
37355 swig_globalvar *var = v->vars;
37356 while (var) {
37357 if (strcmp(var->name,n) == 0) {
37358 res = (*var->get_attr)();
37359 break;
37360 }
37361 var = var->next;
37362 }
37363 if (res == NULL && !PyErr_Occurred()) {
37364 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
37365 }
37366 return res;
37367 }
37368
37369 SWIGINTERN int
37370 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
37371 int res = 1;
37372 swig_globalvar *var = v->vars;
37373 while (var) {
37374 if (strcmp(var->name,n) == 0) {
37375 res = (*var->set_attr)(p);
37376 break;
37377 }
37378 var = var->next;
37379 }
37380 if (res == 1 && !PyErr_Occurred()) {
37381 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
37382 }
37383 return res;
37384 }
37385
37386 SWIGINTERN PyTypeObject*
37387 swig_varlink_type(void) {
37388 static char varlink__doc__[] = "Swig var link object";
37389 static PyTypeObject varlink_type;
37390 static int type_init = 0;
37391 if (!type_init) {
37392 const PyTypeObject tmp
37393 = {
37394 PyObject_HEAD_INIT(NULL)
37395 0, /* Number of items in variable part (ob_size) */
37396 (char *)"swigvarlink", /* Type name (tp_name) */
37397 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
37398 0, /* Itemsize (tp_itemsize) */
37399 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
37400 (printfunc) swig_varlink_print, /* Print (tp_print) */
37401 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
37402 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
37403 0, /* tp_compare */
37404 (reprfunc) swig_varlink_repr, /* tp_repr */
37405 0, /* tp_as_number */
37406 0, /* tp_as_sequence */
37407 0, /* tp_as_mapping */
37408 0, /* tp_hash */
37409 0, /* tp_call */
37410 (reprfunc)swig_varlink_str, /* tp_str */
37411 0, /* tp_getattro */
37412 0, /* tp_setattro */
37413 0, /* tp_as_buffer */
37414 0, /* tp_flags */
37415 varlink__doc__, /* tp_doc */
37416 0, /* tp_traverse */
37417 0, /* tp_clear */
37418 0, /* tp_richcompare */
37419 0, /* tp_weaklistoffset */
37420 #if PY_VERSION_HEX >= 0x02020000
37421 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
37422 #endif
37423 #if PY_VERSION_HEX >= 0x02030000
37424 0, /* tp_del */
37425 #endif
37426 #ifdef COUNT_ALLOCS
37427 0,0,0,0 /* tp_alloc -> tp_next */
37428 #endif
37429 };
37430 varlink_type = tmp;
37431 varlink_type.ob_type = &PyType_Type;
37432 type_init = 1;
37433 }
37434 return &varlink_type;
37435 }
37436
37437 /* Create a variable linking object for use later */
37438 SWIGINTERN PyObject *
37439 SWIG_Python_newvarlink(void) {
37440 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
37441 if (result) {
37442 result->vars = 0;
37443 }
37444 return ((PyObject*) result);
37445 }
37446
37447 SWIGINTERN void
37448 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
37449 swig_varlinkobject *v = (swig_varlinkobject *) p;
37450 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
37451 if (gv) {
37452 size_t size = strlen(name)+1;
37453 gv->name = (char *)malloc(size);
37454 if (gv->name) {
37455 strncpy(gv->name,name,size);
37456 gv->get_attr = get_attr;
37457 gv->set_attr = set_attr;
37458 gv->next = v->vars;
37459 }
37460 }
37461 v->vars = gv;
37462 }
37463
37464 SWIGINTERN PyObject *
37465 SWIG_globals() {
37466 static PyObject *_SWIG_globals = 0;
37467 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
37468 return _SWIG_globals;
37469 }
37470
37471 /* -----------------------------------------------------------------------------
37472 * constants/methods manipulation
37473 * ----------------------------------------------------------------------------- */
37474
37475 /* Install Constants */
37476 SWIGINTERN void
37477 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
37478 PyObject *obj = 0;
37479 size_t i;
37480 for (i = 0; constants[i].type; ++i) {
37481 switch(constants[i].type) {
37482 case SWIG_PY_POINTER:
37483 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
37484 break;
37485 case SWIG_PY_BINARY:
37486 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
37487 break;
37488 default:
37489 obj = 0;
37490 break;
37491 }
37492 if (obj) {
37493 PyDict_SetItemString(d, constants[i].name, obj);
37494 Py_DECREF(obj);
37495 }
37496 }
37497 }
37498
37499 /* -----------------------------------------------------------------------------*/
37500 /* Fix SwigMethods to carry the callback ptrs when needed */
37501 /* -----------------------------------------------------------------------------*/
37502
37503 SWIGINTERN void
37504 SWIG_Python_FixMethods(PyMethodDef *methods,
37505 swig_const_info *const_table,
37506 swig_type_info **types,
37507 swig_type_info **types_initial) {
37508 size_t i;
37509 for (i = 0; methods[i].ml_name; ++i) {
37510 const char *c = methods[i].ml_doc;
37511 if (c && (c = strstr(c, "swig_ptr: "))) {
37512 int j;
37513 swig_const_info *ci = 0;
37514 const char *name = c + 10;
37515 for (j = 0; const_table[j].type; ++j) {
37516 if (strncmp(const_table[j].name, name,
37517 strlen(const_table[j].name)) == 0) {
37518 ci = &(const_table[j]);
37519 break;
37520 }
37521 }
37522 if (ci) {
37523 size_t shift = (ci->ptype) - types;
37524 swig_type_info *ty = types_initial[shift];
37525 size_t ldoc = (c - methods[i].ml_doc);
37526 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
37527 char *ndoc = (char*)malloc(ldoc + lptr + 10);
37528 if (ndoc) {
37529 char *buff = ndoc;
37530 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
37531 if (ptr) {
37532 strncpy(buff, methods[i].ml_doc, ldoc);
37533 buff += ldoc;
37534 strncpy(buff, "swig_ptr: ", 10);
37535 buff += 10;
37536 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
37537 methods[i].ml_doc = ndoc;
37538 }
37539 }
37540 }
37541 }
37542 }
37543 }
37544
37545 #ifdef __cplusplus
37546 }
37547 #endif
37548
37549 /* -----------------------------------------------------------------------------*
37550 * Partial Init method
37551 * -----------------------------------------------------------------------------*/
37552
37553 #ifdef __cplusplus
37554 extern "C"
37555 #endif
37556 SWIGEXPORT void SWIG_init(void) {
37557 PyObject *m, *d;
37558
37559 /* Fix SwigMethods to carry the callback ptrs when needed */
37560 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
37561
37562 m = Py_InitModule((char *) SWIG_name, SwigMethods);
37563 d = PyModule_GetDict(m);
37564
37565 SWIG_InitializeModule(0);
37566 SWIG_InstallConstants(d,swig_const_table);
37567
37568
37569 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
37570 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
37571 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
37572 SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT)));
37573 SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE)));
37574 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
37575 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
37576 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
37577 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
37578 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
37579 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
37580 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
37581 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
37582 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
37583 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
37584 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
37585 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
37586 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
37587 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
37588 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
37589 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
37590 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
37591 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
37592 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
37593 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
37594 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
37595 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
37596 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
37597 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
37598 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
37599 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
37600 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
37601 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
37602 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
37603 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
37604 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
37605 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
37606 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
37607 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
37608 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
37609 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
37610 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
37611 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
37612 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
37613 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
37614 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
37615 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
37616 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
37617 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
37618 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
37619 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
37620 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
37621 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
37622 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
37623 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
37624 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
37625 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
37626 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
37627 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
37628 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
37629 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
37630 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
37631 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
37632 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
37633 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
37634 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
37635 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
37636 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
37637 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
37638 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
37639 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
37640 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
37641 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
37642 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
37643 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
37644 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
37645 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
37646 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
37647 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
37648 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
37649 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
37650 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
37651 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
37652 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
37653 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
37654 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
37655 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
37656 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
37657 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
37658 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
37659 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
37660 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
37661 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
37662 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
37663 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
37664 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
37665 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
37666 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
37667 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
37668 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
37669 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
37670 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
37671 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
37672 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
37673 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
37674 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
37675 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
37676 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
37677 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
37678 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
37679 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
37680 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
37681 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
37682 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
37683 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
37684 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
37685 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
37686 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
37687 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
37688 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
37689 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
37690 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
37691 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
37692 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
37693 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
37694 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
37695 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
37696 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
37697 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
37698 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
37699 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
37700 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
37701
37702 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
37703
37704 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
37705 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
37706 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
37707 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
37708 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
37709 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
37710 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
37711 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
37712 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
37713 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
37714 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
37715 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
37716 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
37717 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
37718 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
37719 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
37720 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
37721 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
37722 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
37723 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
37724 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
37725 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
37726 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
37727 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
37728 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
37729 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
37730 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
37731 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
37732 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
37733 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
37734 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
37735 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
37736 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
37737 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
37738 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
37739 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
37740 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
37741 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
37742 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
37743 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
37744 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
37745 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
37746 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
37747 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
37748 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
37749 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
37750 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
37751 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
37752 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
37753 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
37754 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
37755 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
37756 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
37757 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
37758 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
37759 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
37760 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
37761 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
37762 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
37763 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
37764 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
37765 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
37766 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
37767 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
37768 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
37769 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
37770 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
37771 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
37772 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
37773 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
37774 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
37775 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
37776 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
37777 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
37778 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
37779 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
37780 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
37781 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
37782 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
37783 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
37784 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
37785 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
37786 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
37787 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
37788 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
37789 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
37790 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
37791 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
37792 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
37793 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
37794 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
37795 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
37796 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
37797 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
37798 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
37799 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
37800 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
37801 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
37802 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
37803 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
37804 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
37805 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
37806 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
37807 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
37808 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
37809 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
37810 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
37811 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
37812 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
37813 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
37814 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
37815 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
37816 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
37817 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
37818 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
37819 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
37820 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
37821 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
37822 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
37823 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
37824 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
37825 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
37826 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
37827 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
37828 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
37829 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
37830 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
37831 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
37832 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
37833 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
37834 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
37835 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
37836 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
37837 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
37838 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
37839 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
37840 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
37841 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
37842 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
37843 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
37844 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
37845 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
37846 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
37847 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
37848 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
37849 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
37850 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
37851 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
37852 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
37853 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
37854 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
37855 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
37856 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
37857 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
37858 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
37859 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
37860 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
37861 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
37862 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
37863 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
37864 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
37865 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
37866 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
37867 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
37868 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
37869 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
37870 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
37871 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
37872 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
37873 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
37874 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
37875 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
37876 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
37877 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
37878 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
37879 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
37880 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
37881 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
37882 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
37883 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
37884 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
37885 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
37886 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
37887 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
37888 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
37889 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
37890 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
37891 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
37892 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
37893 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
37894 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
37895 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
37896 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
37897 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
37898 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
37899 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
37900 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
37901 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
37902 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
37903 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
37904 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
37905 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
37906 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
37907 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
37908 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
37909 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
37910 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
37911 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
37912 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
37913 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
37914 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
37915 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
37916 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
37917 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
37918 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
37919 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
37920 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
37921 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
37922 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
37923 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
37924 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
37925 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
37926 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
37927 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
37928 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
37929 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
37930 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
37931 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
37932 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
37933 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
37934 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
37935 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
37936 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
37937 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
37938 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
37939 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
37940 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
37941 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
37942 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
37943 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
37944 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
37945 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
37946 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
37947 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
37948 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
37949 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
37950 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
37951 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
37952 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
37953 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
37954 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
37955 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
37956 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
37957 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
37958 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
37959 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
37960 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
37961 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
37962 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
37963 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
37964 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
37965 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
37966 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
37967 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
37968 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
37969 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
37970 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
37971 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
37972 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
37973 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
37974 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
37975 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
37976 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
37977 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
37978 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
37979 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
37980 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
37981 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
37982 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
37983 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
37984 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
37985 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
37986 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
37987 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
37988 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
37989 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
37990 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
37991 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
37992 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
37993 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
37994 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
37995 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
37996 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
37997 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
37998 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
37999 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
38000 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
38001 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
38002 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
38003 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
38004 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
38005 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
38006 SWIG_Python_SetConstant(d, "CONTROL_SPECIAL",SWIG_From_int(static_cast< int >(wxCONTROL_SPECIAL)));
38007 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
38008 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
38009 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
38010 SWIG_Python_SetConstant(d, "CONTROL_SIZEGRIP",SWIG_From_int(static_cast< int >(wxCONTROL_SIZEGRIP)));
38011 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
38012 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
38013 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
38014 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
38015 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
38016 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
38017 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
38018 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE)));
38019 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP)));
38020 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN)));
38021 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
38022 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
38023
38024 // Work around a chicken/egg problem in drawlist.cpp
38025 wxPyDrawList_SetAPIPtr();
38026
38027 }
38028