]> 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_wxBMPHandler swig_types[13]
2480 #define SWIGTYPE_p_wxBitmap swig_types[14]
2481 #define SWIGTYPE_p_wxBoxSizer swig_types[15]
2482 #define SWIGTYPE_p_wxBrush swig_types[16]
2483 #define SWIGTYPE_p_wxBrushList swig_types[17]
2484 #define SWIGTYPE_p_wxBufferedDC swig_types[18]
2485 #define SWIGTYPE_p_wxBufferedPaintDC swig_types[19]
2486 #define SWIGTYPE_p_wxCURHandler swig_types[20]
2487 #define SWIGTYPE_p_wxChar swig_types[21]
2488 #define SWIGTYPE_p_wxChildFocusEvent swig_types[22]
2489 #define SWIGTYPE_p_wxClientDC swig_types[23]
2490 #define SWIGTYPE_p_wxClipboardTextEvent swig_types[24]
2491 #define SWIGTYPE_p_wxCloseEvent swig_types[25]
2492 #define SWIGTYPE_p_wxColour swig_types[26]
2493 #define SWIGTYPE_p_wxColourDatabase swig_types[27]
2494 #define SWIGTYPE_p_wxCommandEvent swig_types[28]
2495 #define SWIGTYPE_p_wxContextMenuEvent swig_types[29]
2496 #define SWIGTYPE_p_wxControl swig_types[30]
2497 #define SWIGTYPE_p_wxControlWithItems swig_types[31]
2498 #define SWIGTYPE_p_wxCursor swig_types[32]
2499 #define SWIGTYPE_p_wxDC swig_types[33]
2500 #define SWIGTYPE_p_wxDash swig_types[34]
2501 #define SWIGTYPE_p_wxDateEvent swig_types[35]
2502 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[36]
2503 #define SWIGTYPE_p_wxDropFilesEvent swig_types[37]
2504 #define SWIGTYPE_p_wxDuplexMode swig_types[38]
2505 #define SWIGTYPE_p_wxEffects swig_types[39]
2506 #define SWIGTYPE_p_wxEncodingConverter swig_types[40]
2507 #define SWIGTYPE_p_wxEraseEvent swig_types[41]
2508 #define SWIGTYPE_p_wxEvent swig_types[42]
2509 #define SWIGTYPE_p_wxEvtHandler swig_types[43]
2510 #define SWIGTYPE_p_wxFSFile swig_types[44]
2511 #define SWIGTYPE_p_wxFileSystem swig_types[45]
2512 #define SWIGTYPE_p_wxFlexGridSizer swig_types[46]
2513 #define SWIGTYPE_p_wxFocusEvent swig_types[47]
2514 #define SWIGTYPE_p_wxFont swig_types[48]
2515 #define SWIGTYPE_p_wxFontList swig_types[49]
2516 #define SWIGTYPE_p_wxFontMapper swig_types[50]
2517 #define SWIGTYPE_p_wxGBSizerItem swig_types[51]
2518 #define SWIGTYPE_p_wxGDIObjListBase swig_types[52]
2519 #define SWIGTYPE_p_wxGDIObject swig_types[53]
2520 #define SWIGTYPE_p_wxGIFHandler swig_types[54]
2521 #define SWIGTYPE_p_wxGridBagSizer swig_types[55]
2522 #define SWIGTYPE_p_wxGridSizer swig_types[56]
2523 #define SWIGTYPE_p_wxICOHandler swig_types[57]
2524 #define SWIGTYPE_p_wxIcon swig_types[58]
2525 #define SWIGTYPE_p_wxIconBundle swig_types[59]
2526 #define SWIGTYPE_p_wxIconLocation swig_types[60]
2527 #define SWIGTYPE_p_wxIconizeEvent swig_types[61]
2528 #define SWIGTYPE_p_wxIdleEvent swig_types[62]
2529 #define SWIGTYPE_p_wxImage swig_types[63]
2530 #define SWIGTYPE_p_wxImageHandler swig_types[64]
2531 #define SWIGTYPE_p_wxImageList swig_types[65]
2532 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[66]
2533 #define SWIGTYPE_p_wxInitDialogEvent swig_types[67]
2534 #define SWIGTYPE_p_wxJPEGHandler swig_types[68]
2535 #define SWIGTYPE_p_wxKeyEvent swig_types[69]
2536 #define SWIGTYPE_p_wxLanguageInfo swig_types[70]
2537 #define SWIGTYPE_p_wxLayoutConstraints swig_types[71]
2538 #define SWIGTYPE_p_wxLocale swig_types[72]
2539 #define SWIGTYPE_p_wxMask swig_types[73]
2540 #define SWIGTYPE_p_wxMaximizeEvent swig_types[74]
2541 #define SWIGTYPE_p_wxMemoryDC swig_types[75]
2542 #define SWIGTYPE_p_wxMenu swig_types[76]
2543 #define SWIGTYPE_p_wxMenuBar swig_types[77]
2544 #define SWIGTYPE_p_wxMenuEvent swig_types[78]
2545 #define SWIGTYPE_p_wxMenuItem swig_types[79]
2546 #define SWIGTYPE_p_wxMetaFile swig_types[80]
2547 #define SWIGTYPE_p_wxMetaFileDC swig_types[81]
2548 #define SWIGTYPE_p_wxMirrorDC swig_types[82]
2549 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[83]
2550 #define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[84]
2551 #define SWIGTYPE_p_wxMouseEvent swig_types[85]
2552 #define SWIGTYPE_p_wxMoveEvent swig_types[86]
2553 #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[87]
2554 #define SWIGTYPE_p_wxNativeFontInfo swig_types[88]
2555 #define SWIGTYPE_p_wxNativePixelData swig_types[89]
2556 #define SWIGTYPE_p_wxNativePixelData_Accessor swig_types[90]
2557 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[91]
2558 #define SWIGTYPE_p_wxNcPaintEvent swig_types[92]
2559 #define SWIGTYPE_p_wxNotifyEvent swig_types[93]
2560 #define SWIGTYPE_p_wxObject swig_types[94]
2561 #define SWIGTYPE_p_wxPCXHandler swig_types[95]
2562 #define SWIGTYPE_p_wxPNGHandler swig_types[96]
2563 #define SWIGTYPE_p_wxPNMHandler swig_types[97]
2564 #define SWIGTYPE_p_wxPaintDC swig_types[98]
2565 #define SWIGTYPE_p_wxPaintEvent swig_types[99]
2566 #define SWIGTYPE_p_wxPalette swig_types[100]
2567 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[101]
2568 #define SWIGTYPE_p_wxPaperSize swig_types[102]
2569 #define SWIGTYPE_p_wxPen swig_types[103]
2570 #define SWIGTYPE_p_wxPenList swig_types[104]
2571 #define SWIGTYPE_p_wxPixelDataBase swig_types[105]
2572 #define SWIGTYPE_p_wxPoint swig_types[106]
2573 #define SWIGTYPE_p_wxPostScriptDC swig_types[107]
2574 #define SWIGTYPE_p_wxPrintData swig_types[108]
2575 #define SWIGTYPE_p_wxPrinterDC swig_types[109]
2576 #define SWIGTYPE_p_wxPseudoDC swig_types[110]
2577 #define SWIGTYPE_p_wxPyApp swig_types[111]
2578 #define SWIGTYPE_p_wxPyCommandEvent swig_types[112]
2579 #define SWIGTYPE_p_wxPyEvent swig_types[113]
2580 #define SWIGTYPE_p_wxPyFontEnumerator swig_types[114]
2581 #define SWIGTYPE_p_wxPyImageHandler swig_types[115]
2582 #define SWIGTYPE_p_wxPyLocale swig_types[116]
2583 #define SWIGTYPE_p_wxPySizer swig_types[117]
2584 #define SWIGTYPE_p_wxPyValidator swig_types[118]
2585 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[119]
2586 #define SWIGTYPE_p_wxRect swig_types[120]
2587 #define SWIGTYPE_p_wxRegion swig_types[121]
2588 #define SWIGTYPE_p_wxRegionIterator swig_types[122]
2589 #define SWIGTYPE_p_wxRendererNative swig_types[123]
2590 #define SWIGTYPE_p_wxRendererVersion swig_types[124]
2591 #define SWIGTYPE_p_wxScreenDC swig_types[125]
2592 #define SWIGTYPE_p_wxScrollEvent swig_types[126]
2593 #define SWIGTYPE_p_wxScrollWinEvent swig_types[127]
2594 #define SWIGTYPE_p_wxSetCursorEvent swig_types[128]
2595 #define SWIGTYPE_p_wxShowEvent swig_types[129]
2596 #define SWIGTYPE_p_wxSize swig_types[130]
2597 #define SWIGTYPE_p_wxSizeEvent swig_types[131]
2598 #define SWIGTYPE_p_wxSizer swig_types[132]
2599 #define SWIGTYPE_p_wxSizerItem swig_types[133]
2600 #define SWIGTYPE_p_wxSplitterRenderParams swig_types[134]
2601 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[135]
2602 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[136]
2603 #define SWIGTYPE_p_wxStockGDI swig_types[137]
2604 #define SWIGTYPE_p_wxString swig_types[138]
2605 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[139]
2606 #define SWIGTYPE_p_wxTIFFHandler swig_types[140]
2607 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[141]
2608 #define SWIGTYPE_p_wxValidator swig_types[142]
2609 #define SWIGTYPE_p_wxWindow swig_types[143]
2610 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[144]
2611 #define SWIGTYPE_p_wxWindowDC swig_types[145]
2612 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[146]
2613 #define SWIGTYPE_p_wxXPMHandler swig_types[147]
2614 static swig_type_info *swig_types[149];
2615 static swig_module_info swig_module = {swig_types, 148, 0, 0, 0, 0};
2616 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2617 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2618
2619 /* -------- TYPES TABLE (END) -------- */
2620
2621 #if (PY_VERSION_HEX <= 0x02000000)
2622 # if !defined(SWIG_PYTHON_CLASSIC)
2623 # error "This python version requires to use swig with the '-classic' option"
2624 # endif
2625 #endif
2626 #if (PY_VERSION_HEX <= 0x02020000)
2627 # error "This python version requires to use swig with the '-nomodern' option"
2628 #endif
2629 #if (PY_VERSION_HEX <= 0x02020000)
2630 # error "This python version requires to use swig with the '-nomodernargs' option"
2631 #endif
2632 #ifndef METH_O
2633 # error "This python version requires to use swig with the '-nofastunpack' option"
2634 #endif
2635
2636 /*-----------------------------------------------
2637 @(target):= _gdi_.so
2638 ------------------------------------------------*/
2639 #define SWIG_init init_gdi_
2640
2641 #define SWIG_name "_gdi_"
2642
2643 #define SWIGVERSION 0x010329
2644
2645
2646 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2647 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2648
2649
2650 #include <stdexcept>
2651
2652
2653 namespace swig {
2654 class PyObject_ptr {
2655 protected:
2656 PyObject *_obj;
2657
2658 public:
2659 PyObject_ptr() :_obj(0)
2660 {
2661 }
2662
2663 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2664 {
2665 Py_XINCREF(_obj);
2666 }
2667
2668 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2669 {
2670 if (initial_ref) Py_XINCREF(_obj);
2671 }
2672
2673 PyObject_ptr & operator=(const PyObject_ptr& item)
2674 {
2675 Py_XINCREF(item._obj);
2676 Py_XDECREF(_obj);
2677 _obj = item._obj;
2678 return *this;
2679 }
2680
2681 ~PyObject_ptr()
2682 {
2683 Py_XDECREF(_obj);
2684 }
2685
2686 operator PyObject *() const
2687 {
2688 return _obj;
2689 }
2690
2691 PyObject *operator->() const
2692 {
2693 return _obj;
2694 }
2695 };
2696 }
2697
2698
2699 namespace swig {
2700 struct PyObject_var : PyObject_ptr {
2701 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2702
2703 PyObject_var & operator = (PyObject* obj)
2704 {
2705 Py_XDECREF(_obj);
2706 _obj = obj;
2707 return *this;
2708 }
2709 };
2710 }
2711
2712
2713 #include "wx/wxPython/wxPython.h"
2714 #include "wx/wxPython/pyclasses.h"
2715
2716
2717 static const wxString wxPyEmptyString(wxEmptyString);
2718
2719 #define SWIG_From_long PyInt_FromLong
2720
2721
2722 SWIGINTERNINLINE PyObject *
2723 SWIG_From_int (int value)
2724 {
2725 return SWIG_From_long (value);
2726 }
2727
2728
2729 #include <limits.h>
2730 #ifndef LLONG_MIN
2731 # define LLONG_MIN LONG_LONG_MIN
2732 #endif
2733 #ifndef LLONG_MAX
2734 # define LLONG_MAX LONG_LONG_MAX
2735 #endif
2736 #ifndef ULLONG_MAX
2737 # define ULLONG_MAX ULONG_LONG_MAX
2738 #endif
2739
2740
2741 SWIGINTERN int
2742 SWIG_AsVal_long (PyObject* obj, long* val)
2743 {
2744 if (PyNumber_Check(obj)) {
2745 if (val) *val = PyInt_AsLong(obj);
2746 return SWIG_OK;
2747 }
2748 return SWIG_TypeError;
2749 }
2750
2751
2752 SWIGINTERN int
2753 SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2754 {
2755 long v = 0;
2756 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2757 return SWIG_TypeError;
2758 }
2759 else if (val)
2760 *val = (unsigned long)v;
2761 return SWIG_OK;
2762 }
2763
2764
2765 SWIGINTERN int
2766 SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2767 {
2768 unsigned long v;
2769 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2770 if (SWIG_IsOK(res)) {
2771 if ((v > UCHAR_MAX)) {
2772 return SWIG_OverflowError;
2773 } else {
2774 if (val) *val = static_cast< unsigned char >(v);
2775 }
2776 }
2777 return res;
2778 }
2779
2780
2781 SWIGINTERNINLINE PyObject*
2782 SWIG_From_unsigned_SS_long (unsigned long value)
2783 {
2784 return (value > LONG_MAX) ?
2785 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2786 }
2787
2788
2789 SWIGINTERNINLINE PyObject *
2790 SWIG_From_unsigned_SS_char (unsigned char value)
2791 {
2792 return SWIG_From_unsigned_SS_long (value);
2793 }
2794
2795 SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){
2796 wxColour temp, *obj = &temp;
2797 if ( other == Py_None ) return false;
2798 if ( ! wxColour_helper(other, &obj) ) {
2799 PyErr_Clear();
2800 return false;
2801 }
2802 return self->operator==(*obj);
2803 }
2804 SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){
2805 wxColour temp, *obj = &temp;
2806 if ( other == Py_None ) return true;
2807 if ( ! wxColour_helper(other, &obj)) {
2808 PyErr_Clear();
2809 return true;
2810 }
2811 return self->operator!=(*obj);
2812 }
2813
2814 SWIGINTERN int
2815 SWIG_AsVal_bool (PyObject *obj, bool *val)
2816 {
2817 if (obj == Py_True) {
2818 if (val) *val = true;
2819 return SWIG_OK;
2820 } else if (obj == Py_False) {
2821 if (val) *val = false;
2822 return SWIG_OK;
2823 } else {
2824 long v = 0;
2825 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2826 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2827 return res;
2828 }
2829 }
2830
2831 SWIGINTERN PyObject *wxColour_Get(wxColour *self,bool includeAlpha=false){
2832 PyObject* rv = PyTuple_New(includeAlpha ? 4 : 3);
2833 int red = -1;
2834 int green = -1;
2835 int blue = -1;
2836 int alpha = wxALPHA_OPAQUE;
2837 if (self->Ok()) {
2838 red = self->Red();
2839 green = self->Green();
2840 blue = self->Blue();
2841 alpha = self->Alpha();
2842 }
2843 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2844 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2845 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
2846 if (includeAlpha)
2847 PyTuple_SetItem(rv, 3, PyInt_FromLong(alpha));
2848 return rv;
2849 }
2850 SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
2851 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2852 }
2853
2854 SWIGINTERN int
2855 SWIG_AsVal_int (PyObject * obj, int *val)
2856 {
2857 long v;
2858 int res = SWIG_AsVal_long (obj, &v);
2859 if (SWIG_IsOK(res)) {
2860 if ((v < INT_MIN || v > INT_MAX)) {
2861 return SWIG_OverflowError;
2862 } else {
2863 if (val) *val = static_cast< int >(v);
2864 }
2865 }
2866 return res;
2867 }
2868
2869 SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
2870 wxDash* dashes;
2871 int count = self->GetDashes(&dashes);
2872 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2873 PyObject* retval = PyList_New(0);
2874 for (int x=0; x<count; x++) {
2875 PyObject* pyint = PyInt_FromLong(dashes[x]);
2876 PyList_Append(retval, pyint);
2877 Py_DECREF(pyint);
2878 }
2879 wxPyEndBlockThreads(blocked);
2880 return retval;
2881 }
2882 SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
2883 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2884 int size = PyList_Size(pyDashes);
2885 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
2886
2887 // black magic warning! The array of wxDashes needs to exist as
2888 // long as the pen does because wxPen does not copy the array. So
2889 // stick a copy in a Python string object and attach it to _self,
2890 // and then call SetDashes with a pointer to that array. Then
2891 // when the Python pen object is destroyed the array will be
2892 // cleaned up too.
2893 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2894 PyObject_SetAttrString(_self, "_dashes", strDashes);
2895
2896 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2897 delete [] dashes;
2898 Py_DECREF(strDashes);
2899 wxPyEndBlockThreads(blocked);
2900 }
2901 SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
2902 SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
2903
2904 #include <wx/rawbmp.h>
2905
2906
2907 #include <wx/image.h>
2908
2909 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2910 char** cArray = NULL;
2911 int count;
2912
2913 if (!PyList_Check(listOfStrings)) {
2914 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2915 return NULL;
2916 }
2917 count = PyList_Size(listOfStrings);
2918 cArray = new char*[count];
2919
2920 for(int x=0; x<count; x++) {
2921 // TODO: Need some validation and error checking here
2922 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2923 }
2924 return cArray;
2925 }
2926
2927
2928 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
2929 char** cArray = NULL;
2930 wxBitmap* bmp;
2931
2932 cArray = ConvertListOfStrings(listOfStrings);
2933 if (! cArray)
2934 return NULL;
2935 bmp = new wxBitmap(cArray);
2936 delete [] cArray;
2937 return bmp;
2938 }
2939 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
2940 char* buf;
2941 Py_ssize_t length;
2942 PyString_AsStringAndSize(bits, &buf, &length);
2943 return new wxBitmap(buf, width, height, depth);
2944 }
2945 SWIGINTERN void wxBitmap_SetHandle(wxBitmap *self,long handle){ self->SetHandle((WXHANDLE)handle); }
2946 SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
2947 wxSize size(self->GetWidth(), self->GetHeight());
2948 return size;
2949 }
2950 SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
2951 wxMask *mask = new wxMask(*self, colour);
2952 self->SetMask(mask);
2953 }
2954 SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
2955 self->SetWidth(size.x);
2956 self->SetHeight(size.y);
2957 }
2958 SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : false; }
2959 SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : true; }
2960
2961 // See http://tinyurl.com/e5adr for what premultiplying alpha means. It
2962 // appears to me that the other platforms are already doing it, so I'll just
2963 // automatically do it for wxMSW here.
2964 #ifdef __WXMSW__
2965 #define wxPy_premultiply(p, a) ((p) * (a) / 256)
2966 #define wxPy_unpremultiply(p, a) ((a) ? ((p) * 256 / (a)) : (p))
2967 #else
2968 #define wxPy_premultiply(p, a) (p)
2969 #define wxPy_unpremultiply(p, a) (p)
2970 #endif
2971
2972
2973 wxBitmap* _BitmapFromBufferAlpha(int width, int height,
2974 buffer data, int DATASIZE,
2975 buffer alpha, int ALPHASIZE)
2976 {
2977 if (DATASIZE != width*height*3) {
2978 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
2979 return NULL;
2980 }
2981
2982 if (ALPHASIZE != width*height) {
2983 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
2984 return NULL;
2985 }
2986
2987 wxBitmap* bmp = new wxBitmap(width, height, 32);
2988 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
2989 if (! pixData) {
2990 // raise an exception...
2991 wxPyErr_SetString(PyExc_RuntimeError,
2992 "Failed to gain raw access to bitmap data.");
2993 return NULL;
2994 }
2995
2996 pixData.UseAlpha();
2997 wxAlphaPixelData::Iterator p(pixData);
2998 for (int y=0; y<height; y++) {
2999 wxAlphaPixelData::Iterator rowStart = p;
3000 for (int x=0; x<width; x++) {
3001 byte a = *(alpha++);
3002 p.Red() = wxPy_premultiply(*(data++), a);
3003 p.Green() = wxPy_premultiply(*(data++), a);
3004 p.Blue() = wxPy_premultiply(*(data++), a);
3005 p.Alpha() = a;
3006 ++p;
3007 }
3008 p = rowStart;
3009 p.OffsetY(pixData, 1);
3010 }
3011 return bmp;
3012 }
3013
3014 wxBitmap* _BitmapFromBuffer(int width, int height, buffer data, int DATASIZE)
3015 {
3016 if (DATASIZE != width*height*3) {
3017 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3018 return NULL;
3019 }
3020
3021 wxBitmap* bmp = new wxBitmap(width, height, 24);
3022 wxNativePixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3023 if (! pixData) {
3024 // raise an exception...
3025 wxPyErr_SetString(PyExc_RuntimeError,
3026 "Failed to gain raw access to bitmap data.");
3027 return NULL;
3028 }
3029
3030 wxNativePixelData::Iterator p(pixData);
3031 for (int y=0; y<height; y++) {
3032 wxNativePixelData::Iterator rowStart = p;
3033 for (int x=0; x<width; x++) {
3034 p.Red() = *(data++);
3035 p.Green() = *(data++);
3036 p.Blue() = *(data++);
3037 ++p;
3038 }
3039 p = rowStart;
3040 p.OffsetY(pixData, 1);
3041 }
3042 return bmp;
3043 }
3044
3045
3046 wxBitmap* _BitmapFromBufferRGBA(int width, int height, buffer data, int DATASIZE)
3047 {
3048 if (DATASIZE != width*height*4) {
3049 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3050 return NULL;
3051 }
3052
3053 wxBitmap* bmp = new wxBitmap(width, height, 32);
3054 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3055 if (! pixData) {
3056 // raise an exception...
3057 wxPyErr_SetString(PyExc_RuntimeError,
3058 "Failed to gain raw access to bitmap data.");
3059 return NULL;
3060 }
3061
3062 pixData.UseAlpha();
3063 wxAlphaPixelData::Iterator p(pixData);
3064 for (int y=0; y<height; y++) {
3065 wxAlphaPixelData::Iterator rowStart = p;
3066 for (int x=0; x<width; x++) {
3067 byte a = data[3];
3068 p.Red() = wxPy_premultiply(*(data++), a);
3069 p.Green() = wxPy_premultiply(*(data++), a);
3070 p.Blue() = wxPy_premultiply(*(data++), a);
3071 p.Alpha() = a; data++;
3072 ++p;
3073 }
3074 p = rowStart;
3075 p.OffsetY(pixData, 1);
3076 }
3077 return bmp;
3078 }
3079
3080
3081 typedef wxNativePixelData::Iterator wxNativePixelData_Accessor;
3082
3083 SWIGINTERN bool wxNativePixelData___nonzero__(wxNativePixelData *self){ return self->operator bool(); }
3084 SWIGINTERN void wxNativePixelData_Accessor_nextPixel(wxNativePixelData_Accessor *self){ ++(*self); }
3085 SWIGINTERN void wxNativePixelData_Accessor_Set(wxNativePixelData_Accessor *self,byte red,byte green,byte blue){
3086 self->Red() = red;
3087 self->Green() = green;
3088 self->Blue() = blue;
3089 }
3090 SWIGINTERN PyObject *wxNativePixelData_Accessor_Get(wxNativePixelData_Accessor *self){
3091 PyObject* rv = PyTuple_New(3);
3092 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
3093 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
3094 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
3095 return rv;
3096 }
3097
3098 typedef wxAlphaPixelData::Iterator wxAlphaPixelData_Accessor;
3099
3100 SWIGINTERN bool wxAlphaPixelData___nonzero__(wxAlphaPixelData *self){ return self->operator bool(); }
3101 SWIGINTERN void wxAlphaPixelData_Accessor_nextPixel(wxAlphaPixelData_Accessor *self){ ++(*self); }
3102 SWIGINTERN void wxAlphaPixelData_Accessor_Set(wxAlphaPixelData_Accessor *self,byte red,byte green,byte blue,byte alpha){
3103 self->Red() = wxPy_premultiply(red, alpha);
3104 self->Green() = wxPy_premultiply(green, alpha);
3105 self->Blue() = wxPy_premultiply(blue, alpha);
3106 self->Alpha() = alpha;
3107 }
3108 SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *self){
3109 PyObject* rv = PyTuple_New(4);
3110 int red = self->Red();
3111 int green = self->Green();
3112 int blue = self->Blue();
3113 int alpha = self->Alpha();
3114
3115 PyTuple_SetItem(rv, 0, PyInt_FromLong( wxPy_unpremultiply(red, alpha) ));
3116 PyTuple_SetItem(rv, 1, PyInt_FromLong( wxPy_unpremultiply(green, alpha) ));
3117 PyTuple_SetItem(rv, 2, PyInt_FromLong( wxPy_unpremultiply(blue, alpha) ));
3118 PyTuple_SetItem(rv, 3, PyInt_FromLong( alpha ));
3119 return rv;
3120 }
3121 SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
3122 if ( !colour.Ok() )
3123 return new wxMask(bitmap, *wxBLACK);
3124 else
3125 return new wxMask(bitmap, colour);
3126 }
3127
3128 #include <wx/iconbndl.h>
3129
3130 SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
3131 wxIcon* icon = new wxIcon();
3132 icon->CopyFromBitmap(bmp);
3133 return icon;
3134 }
3135 SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
3136 char** cArray = NULL;
3137 wxIcon* icon;
3138
3139 cArray = ConvertListOfStrings(listOfStrings);
3140 if (! cArray)
3141 return NULL;
3142 icon = new wxIcon(cArray);
3143 delete [] cArray;
3144 return icon;
3145 }
3146 SWIGINTERN void wxIcon_SetHandle(wxIcon *self,long handle){ self->SetHandle((WXHANDLE)handle); }
3147 SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
3148
3149 return new wxIconLocation(*filename, num);
3150
3151
3152
3153 }
3154 SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
3155
3156 self->SetIndex(num);
3157
3158
3159
3160 }
3161 SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
3162
3163 return self->GetIndex();
3164
3165
3166
3167 }
3168 SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
3169 #ifdef __WXGTK__
3170 wxImage img(cursorName, type);
3171 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
3172 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
3173 return new wxCursor(img);
3174 #else
3175 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
3176 #endif
3177 }
3178 SWIGINTERN void wxCursor_SetHandle(wxCursor *self,long handle){ self->SetHandle((WXHANDLE)handle); }
3179
3180
3181 SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
3182 (*self) ++;
3183 }
3184 SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
3185 return self->operator bool();
3186 }
3187
3188 #include <wx/fontutil.h>
3189 #include <wx/fontmap.h>
3190 #include <wx/fontenum.h>
3191
3192 SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
3193 return self->ToString();
3194 }
3195
3196 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding)
3197 { wxPyRaiseNotImplemented(); return NULL; }
3198
3199 bool wxTestFontEncoding(const wxNativeEncodingInfo& info)
3200 { wxPyRaiseNotImplemented(); return false; }
3201
3202
3203 SWIGINTERNINLINE PyObject *
3204 SWIG_From_size_t (size_t value)
3205 {
3206 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3207 }
3208
3209
3210 SWIGINTERNINLINE int
3211 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3212 {
3213 unsigned long v;
3214 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3215 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3216 return res;
3217 }
3218
3219 SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
3220 wxFontEncoding alt_enc;
3221 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3222 return PyInt_FromLong(alt_enc);
3223 else {
3224 Py_INCREF(Py_None);
3225 return Py_None;
3226 }
3227 }
3228 SWIGINTERN wxFont *new_wxFont(wxString const &info){
3229 wxNativeFontInfo nfi;
3230 nfi.FromString(info);
3231 return new wxFont(nfi);
3232 }
3233 SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3234 return wxFont::New(pointSize, family, flags, face, encoding);
3235 }
3236 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,int family,int style,int weight,bool underlined=false,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3237 return wxFontBase::New(pixelSize, family,
3238 style, weight, underlined,
3239 face, encoding);
3240 }
3241 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3242 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3243 }
3244 SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3245 SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
3246
3247 class wxPyFontEnumerator : public wxFontEnumerator {
3248 public:
3249 wxPyFontEnumerator() {}
3250 ~wxPyFontEnumerator() {}
3251
3252 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3253 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
3254
3255 PYPRIVATE;
3256 };
3257
3258 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3259 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
3260
3261
3262 SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){
3263 PyObject* ret;
3264 wxArrayString arr = wxFontEnumerator::GetEncodings();
3265 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3266 ret = wxArrayString2PyList_helper(arr);
3267 wxPyEndBlockThreads(blocked);
3268 return ret;
3269 }
3270 SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){
3271 PyObject* ret;
3272 wxArrayString arr = wxFontEnumerator::GetFacenames();
3273 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3274 ret = wxArrayString2PyList_helper(arr);
3275 wxPyEndBlockThreads(blocked);
3276 return ret;
3277 }
3278
3279 #include <locale.h>
3280
3281 SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3282 wxLocale* loc;
3283 if (language == -1)
3284 loc = new wxLocale();
3285 else
3286 loc = new wxLocale(language, flags);
3287 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3288 // for the floating point conversions and such to work right.
3289 #if PY_VERSION_HEX < 0x02040000
3290 setlocale(LC_NUMERIC, "C");
3291 #endif
3292 return loc;
3293 }
3294 SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
3295 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
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 rc;
3302 }
3303 SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3304 bool rc = self->Init(language, flags);
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
3313 class wxPyLocale : public wxLocale
3314 {
3315 public:
3316 wxPyLocale();
3317
3318 wxPyLocale(const wxChar *szName, // name (for messages)
3319 const wxChar *szShort = (const wxChar *) NULL, // dir prefix (for msg files)
3320 const wxChar *szLocale = (const wxChar *) NULL, // locale (for setlocale)
3321 bool bLoadDefault = true, // preload wxstd.mo?
3322 bool bConvertEncoding = false); // convert Win<->Unix if necessary?
3323
3324 wxPyLocale(int language, // wxLanguage id or custom language
3325 int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING);
3326
3327 ~wxPyLocale();
3328
3329 virtual const wxChar *GetString(const wxChar *szOrigString,
3330 const wxChar *szDomain = NULL) const;
3331 virtual const wxChar *GetString(const wxChar *szOrigString,
3332 const wxChar *szOrigString2, size_t n,
3333 const wxChar *szDomain = NULL) const;
3334
3335 virtual wxChar *GetSingularString(const wxChar *szOrigString,
3336 const wxChar *szDomain = NULL) const;
3337 virtual wxChar *GetPluralString(const wxChar *szOrigString,
3338 const wxChar *szOrigString2, size_t n,
3339 const wxChar *szDomain = NULL) const;
3340
3341 PYPRIVATE;
3342 private:
3343 DECLARE_NO_COPY_CLASS(wxPyLocale)
3344 };
3345
3346 wxPyLocale::wxPyLocale() : wxLocale()
3347 {
3348 }
3349
3350 wxPyLocale::wxPyLocale(const wxChar *szName, // name (for messages)
3351 const wxChar *szShort, // dir prefix (for msg files)
3352 const wxChar *szLocale, // locale (for setlocale)
3353 bool bLoadDefault, // preload wxstd.mo?
3354 bool bConvertEncoding) // convert Win<->Unix if necessary?
3355 : wxLocale(szName, szShort, szLocale, bLoadDefault, bConvertEncoding)
3356 {
3357 }
3358
3359 wxPyLocale::wxPyLocale(int language, // wxLanguage id or custom language
3360 int flags) : wxLocale(language, flags)
3361 {
3362 }
3363
3364 wxPyLocale::~wxPyLocale()
3365 {
3366 }
3367
3368 const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3369 const wxChar *szDomain) const
3370 {
3371 wxChar *str = GetSingularString(szOrigString, szDomain);
3372 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szDomain);
3373 }
3374
3375 const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3376 const wxChar *szOrigString2, size_t n,
3377 const wxChar *szDomain) const
3378 {
3379 wxChar *str = GetPluralString(szOrigString, szOrigString2, n, szDomain);
3380 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szOrigString2, n, szDomain);
3381 }
3382
3383 wxChar *wxPyLocale::GetSingularString(const wxChar *szOrigString,
3384 const wxChar *szDomain) const
3385 {
3386 bool found;
3387 static wxString str;
3388 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.
3389 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3390 if((found=wxPyCBH_findCallback(m_myInst, "GetSingularString"))) {
3391 PyObject* param1 = wx2PyString(szOrigString);
3392 PyObject* param2 = wx2PyString(szDomain);
3393 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OO)", param1, param2));
3394 Py_DECREF(param1);
3395 Py_DECREF(param2);
3396 if (ret) {
3397 str = Py2wxString(ret);
3398 Py_DECREF(ret);
3399 }
3400 }
3401 wxPyEndBlockThreads(blocked);
3402 return (found ? (wxChar*)str.c_str() : NULL);
3403 }
3404
3405 wxChar *wxPyLocale::GetPluralString(const wxChar *szOrigString,
3406 const wxChar *szOrigString2, size_t n,
3407 const wxChar *szDomain) const
3408 {
3409 bool found;
3410 static wxString str;
3411 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.
3412 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3413 if((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) {
3414 PyObject* param1 = wx2PyString(szOrigString);
3415 PyObject* param2 = wx2PyString(szOrigString2);
3416 PyObject* param4 = wx2PyString(szDomain);
3417 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOiO)", param1, param2, (int)n, param4));
3418 Py_DECREF(param1);
3419 Py_DECREF(param2);
3420 Py_DECREF(param4);
3421 if( ret) {
3422 str = Py2wxString(ret);
3423 Py_DECREF(ret);
3424 }
3425 }
3426 wxPyEndBlockThreads(blocked);
3427 return (found ? (wxChar*)str.c_str() : NULL);
3428 }
3429
3430 SWIGINTERN wxPyLocale *new_wxPyLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3431 wxPyLocale* loc;
3432 if (language == -1)
3433 loc = new wxPyLocale();
3434 else
3435 loc = new wxPyLocale(language, flags);
3436 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3437 // for the floating point conversions and such to work right.
3438 #if PY_VERSION_HEX < 0x02040000
3439 setlocale(LC_NUMERIC, "C");
3440 #endif
3441 return loc;
3442 }
3443
3444 #include "wx/wxPython/pydrawxxx.h"
3445
3446 SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
3447 wxColour col;
3448 self->GetPixel(x, y, &col);
3449 return col;
3450 }
3451 SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
3452 wxColour col;
3453 self->GetPixel(pt, &col);
3454 return col;
3455 }
3456
3457 SWIGINTERN int
3458 SWIG_AsVal_double (PyObject *obj, double* val)
3459 {
3460 if (PyNumber_Check(obj)) {
3461 if (val) *val = PyFloat_AsDouble(obj);
3462 return SWIG_OK;
3463 }
3464 return SWIG_TypeError;
3465 }
3466
3467 SWIGINTERN wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){
3468 wxRect rv;
3469 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3470 return rv;
3471 }
3472 SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
3473 wxRect rect;
3474 self->GetClippingBox(rect);
3475 return rect;
3476 }
3477 SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
3478 wxArrayInt widths;
3479 self->GetPartialTextExtents(text, widths);
3480 return widths;
3481 }
3482
3483 #define SWIG_From_double PyFloat_FromDouble
3484
3485 SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
3486 self->SetLogicalOrigin(point.x, point.y);
3487 }
3488 SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
3489 self->SetDeviceOrigin(point.x, point.y);
3490 }
3491 SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
3492 self->CalcBoundingBox(point.x, point.y);
3493 }
3494 SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3495 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3496 }
3497 SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3498 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3499 }
3500 SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3501 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3502 }
3503 SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3504 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3505 }
3506 SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3507 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3508 }
3509 SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
3510 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3511 }
3512
3513 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3514 *x1 = dc->MinX();
3515 *y1 = dc->MinY();
3516 *x2 = dc->MaxX();
3517 *y2 = dc->MaxY();
3518 }
3519
3520
3521 #include <wx/dcbuffer.h>
3522
3523
3524 #include <wx/dcps.h>
3525
3526
3527 #include <wx/metafile.h>
3528
3529
3530
3531 SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
3532 self->AddColour(name, wxColour(red, green, blue));
3533 }
3534
3535 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3536 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3537 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3538 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3539
3540
3541 #include <wx/effects.h>
3542
3543
3544 #include "wx/renderer.h"
3545
3546
3547 SWIGINTERNINLINE PyObject*
3548 SWIG_From_bool (bool value)
3549 {
3550 return PyBool_FromLong(value ? 1 : 0);
3551 }
3552
3553
3554 #include "wx/wxPython/pseudodc.h"
3555
3556 SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){
3557 wxRect rect;
3558 self->GetIdBounds(id, rect);
3559 return rect;
3560 }
3561 #ifdef __cplusplus
3562 extern "C" {
3563 #endif
3564 SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3565 PyObject *resultobj = 0;
3566 wxGDIObject *result = 0 ;
3567
3568 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
3569 {
3570 if (!wxPyCheckForApp()) SWIG_fail;
3571 PyThreadState* __tstate = wxPyBeginAllowThreads();
3572 result = (wxGDIObject *)new wxGDIObject();
3573 wxPyEndAllowThreads(__tstate);
3574 if (PyErr_Occurred()) SWIG_fail;
3575 }
3576 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
3577 return resultobj;
3578 fail:
3579 return NULL;
3580 }
3581
3582
3583 SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3584 PyObject *resultobj = 0;
3585 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3586 void *argp1 = 0 ;
3587 int res1 = 0 ;
3588 PyObject *swig_obj[1] ;
3589
3590 if (!args) SWIG_fail;
3591 swig_obj[0] = args;
3592 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
3593 if (!SWIG_IsOK(res1)) {
3594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3595 }
3596 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3597 {
3598 PyThreadState* __tstate = wxPyBeginAllowThreads();
3599 delete arg1;
3600
3601 wxPyEndAllowThreads(__tstate);
3602 if (PyErr_Occurred()) SWIG_fail;
3603 }
3604 resultobj = SWIG_Py_Void();
3605 return resultobj;
3606 fail:
3607 return NULL;
3608 }
3609
3610
3611 SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3612 PyObject *resultobj = 0;
3613 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3614 bool result;
3615 void *argp1 = 0 ;
3616 int res1 = 0 ;
3617 PyObject *swig_obj[1] ;
3618
3619 if (!args) SWIG_fail;
3620 swig_obj[0] = args;
3621 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
3622 if (!SWIG_IsOK(res1)) {
3623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3624 }
3625 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3626 {
3627 PyThreadState* __tstate = wxPyBeginAllowThreads();
3628 result = (bool)(arg1)->IsNull();
3629 wxPyEndAllowThreads(__tstate);
3630 if (PyErr_Occurred()) SWIG_fail;
3631 }
3632 {
3633 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3634 }
3635 return resultobj;
3636 fail:
3637 return NULL;
3638 }
3639
3640
3641 SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3642 PyObject *obj;
3643 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3644 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
3645 return SWIG_Py_Void();
3646 }
3647
3648 SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3649 return SWIG_Python_InitShadowInstance(args);
3650 }
3651
3652 SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3653 PyObject *resultobj = 0;
3654 byte arg1 = (byte) 0 ;
3655 byte arg2 = (byte) 0 ;
3656 byte arg3 = (byte) 0 ;
3657 byte arg4 = (byte) wxALPHA_OPAQUE ;
3658 wxColour *result = 0 ;
3659 unsigned char val1 ;
3660 int ecode1 = 0 ;
3661 unsigned char val2 ;
3662 int ecode2 = 0 ;
3663 unsigned char val3 ;
3664 int ecode3 = 0 ;
3665 unsigned char val4 ;
3666 int ecode4 = 0 ;
3667 PyObject * obj0 = 0 ;
3668 PyObject * obj1 = 0 ;
3669 PyObject * obj2 = 0 ;
3670 PyObject * obj3 = 0 ;
3671 char * kwnames[] = {
3672 (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
3673 };
3674
3675 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
3676 if (obj0) {
3677 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
3678 if (!SWIG_IsOK(ecode1)) {
3679 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
3680 }
3681 arg1 = static_cast< byte >(val1);
3682 }
3683 if (obj1) {
3684 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
3685 if (!SWIG_IsOK(ecode2)) {
3686 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
3687 }
3688 arg2 = static_cast< byte >(val2);
3689 }
3690 if (obj2) {
3691 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
3692 if (!SWIG_IsOK(ecode3)) {
3693 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
3694 }
3695 arg3 = static_cast< byte >(val3);
3696 }
3697 if (obj3) {
3698 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
3699 if (!SWIG_IsOK(ecode4)) {
3700 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'");
3701 }
3702 arg4 = static_cast< byte >(val4);
3703 }
3704 {
3705 PyThreadState* __tstate = wxPyBeginAllowThreads();
3706 result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4);
3707 wxPyEndAllowThreads(__tstate);
3708 if (PyErr_Occurred()) SWIG_fail;
3709 }
3710 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
3711 return resultobj;
3712 fail:
3713 return NULL;
3714 }
3715
3716
3717 SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3718 PyObject *resultobj = 0;
3719 wxString *arg1 = 0 ;
3720 wxColour *result = 0 ;
3721 bool temp1 = false ;
3722 PyObject * obj0 = 0 ;
3723 char * kwnames[] = {
3724 (char *) "colorName", NULL
3725 };
3726
3727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
3728 {
3729 arg1 = wxString_in_helper(obj0);
3730 if (arg1 == NULL) SWIG_fail;
3731 temp1 = true;
3732 }
3733 {
3734 if (!wxPyCheckForApp()) SWIG_fail;
3735 PyThreadState* __tstate = wxPyBeginAllowThreads();
3736 result = (wxColour *)new wxColour((wxString const &)*arg1);
3737 wxPyEndAllowThreads(__tstate);
3738 if (PyErr_Occurred()) SWIG_fail;
3739 }
3740 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3741 {
3742 if (temp1)
3743 delete arg1;
3744 }
3745 return resultobj;
3746 fail:
3747 {
3748 if (temp1)
3749 delete arg1;
3750 }
3751 return NULL;
3752 }
3753
3754
3755 SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3756 PyObject *resultobj = 0;
3757 unsigned long arg1 ;
3758 wxColour *result = 0 ;
3759 unsigned long val1 ;
3760 int ecode1 = 0 ;
3761 PyObject * obj0 = 0 ;
3762 char * kwnames[] = {
3763 (char *) "colRGB", NULL
3764 };
3765
3766 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
3767 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
3768 if (!SWIG_IsOK(ecode1)) {
3769 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
3770 }
3771 arg1 = static_cast< unsigned long >(val1);
3772 {
3773 PyThreadState* __tstate = wxPyBeginAllowThreads();
3774 result = (wxColour *)new wxColour(arg1);
3775 wxPyEndAllowThreads(__tstate);
3776 if (PyErr_Occurred()) SWIG_fail;
3777 }
3778 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3779 return resultobj;
3780 fail:
3781 return NULL;
3782 }
3783
3784
3785 SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3786 PyObject *resultobj = 0;
3787 wxColour *arg1 = (wxColour *) 0 ;
3788 void *argp1 = 0 ;
3789 int res1 = 0 ;
3790 PyObject *swig_obj[1] ;
3791
3792 if (!args) SWIG_fail;
3793 swig_obj[0] = args;
3794 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
3795 if (!SWIG_IsOK(res1)) {
3796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
3797 }
3798 arg1 = reinterpret_cast< wxColour * >(argp1);
3799 {
3800 PyThreadState* __tstate = wxPyBeginAllowThreads();
3801 delete arg1;
3802
3803 wxPyEndAllowThreads(__tstate);
3804 if (PyErr_Occurred()) SWIG_fail;
3805 }
3806 resultobj = SWIG_Py_Void();
3807 return resultobj;
3808 fail:
3809 return NULL;
3810 }
3811
3812
3813 SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3814 PyObject *resultobj = 0;
3815 wxColour *arg1 = (wxColour *) 0 ;
3816 byte result;
3817 void *argp1 = 0 ;
3818 int res1 = 0 ;
3819 PyObject *swig_obj[1] ;
3820
3821 if (!args) SWIG_fail;
3822 swig_obj[0] = args;
3823 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3824 if (!SWIG_IsOK(res1)) {
3825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
3826 }
3827 arg1 = reinterpret_cast< wxColour * >(argp1);
3828 {
3829 PyThreadState* __tstate = wxPyBeginAllowThreads();
3830 result = (byte)(arg1)->Red();
3831 wxPyEndAllowThreads(__tstate);
3832 if (PyErr_Occurred()) SWIG_fail;
3833 }
3834 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3835 return resultobj;
3836 fail:
3837 return NULL;
3838 }
3839
3840
3841 SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3842 PyObject *resultobj = 0;
3843 wxColour *arg1 = (wxColour *) 0 ;
3844 byte result;
3845 void *argp1 = 0 ;
3846 int res1 = 0 ;
3847 PyObject *swig_obj[1] ;
3848
3849 if (!args) SWIG_fail;
3850 swig_obj[0] = args;
3851 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3852 if (!SWIG_IsOK(res1)) {
3853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
3854 }
3855 arg1 = reinterpret_cast< wxColour * >(argp1);
3856 {
3857 PyThreadState* __tstate = wxPyBeginAllowThreads();
3858 result = (byte)(arg1)->Green();
3859 wxPyEndAllowThreads(__tstate);
3860 if (PyErr_Occurred()) SWIG_fail;
3861 }
3862 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3863 return resultobj;
3864 fail:
3865 return NULL;
3866 }
3867
3868
3869 SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3870 PyObject *resultobj = 0;
3871 wxColour *arg1 = (wxColour *) 0 ;
3872 byte result;
3873 void *argp1 = 0 ;
3874 int res1 = 0 ;
3875 PyObject *swig_obj[1] ;
3876
3877 if (!args) SWIG_fail;
3878 swig_obj[0] = args;
3879 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3880 if (!SWIG_IsOK(res1)) {
3881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
3882 }
3883 arg1 = reinterpret_cast< wxColour * >(argp1);
3884 {
3885 PyThreadState* __tstate = wxPyBeginAllowThreads();
3886 result = (byte)(arg1)->Blue();
3887 wxPyEndAllowThreads(__tstate);
3888 if (PyErr_Occurred()) SWIG_fail;
3889 }
3890 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3891 return resultobj;
3892 fail:
3893 return NULL;
3894 }
3895
3896
3897 SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3898 PyObject *resultobj = 0;
3899 wxColour *arg1 = (wxColour *) 0 ;
3900 byte result;
3901 void *argp1 = 0 ;
3902 int res1 = 0 ;
3903 PyObject *swig_obj[1] ;
3904
3905 if (!args) SWIG_fail;
3906 swig_obj[0] = args;
3907 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3908 if (!SWIG_IsOK(res1)) {
3909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'");
3910 }
3911 arg1 = reinterpret_cast< wxColour * >(argp1);
3912 {
3913 PyThreadState* __tstate = wxPyBeginAllowThreads();
3914 result = (byte)(arg1)->Alpha();
3915 wxPyEndAllowThreads(__tstate);
3916 if (PyErr_Occurred()) SWIG_fail;
3917 }
3918 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3919 return resultobj;
3920 fail:
3921 return NULL;
3922 }
3923
3924
3925 SWIGINTERN PyObject *_wrap_Colour_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3926 PyObject *resultobj = 0;
3927 wxColour *arg1 = (wxColour *) 0 ;
3928 bool result;
3929 void *argp1 = 0 ;
3930 int res1 = 0 ;
3931 PyObject *swig_obj[1] ;
3932
3933 if (!args) SWIG_fail;
3934 swig_obj[0] = args;
3935 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3936 if (!SWIG_IsOK(res1)) {
3937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Ok" "', expected argument " "1"" of type '" "wxColour *""'");
3938 }
3939 arg1 = reinterpret_cast< wxColour * >(argp1);
3940 {
3941 PyThreadState* __tstate = wxPyBeginAllowThreads();
3942 result = (bool)(arg1)->Ok();
3943 wxPyEndAllowThreads(__tstate);
3944 if (PyErr_Occurred()) SWIG_fail;
3945 }
3946 {
3947 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3948 }
3949 return resultobj;
3950 fail:
3951 return NULL;
3952 }
3953
3954
3955 SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3956 PyObject *resultobj = 0;
3957 wxColour *arg1 = (wxColour *) 0 ;
3958 byte arg2 ;
3959 byte arg3 ;
3960 byte arg4 ;
3961 byte arg5 = (byte) wxALPHA_OPAQUE ;
3962 void *argp1 = 0 ;
3963 int res1 = 0 ;
3964 unsigned char val2 ;
3965 int ecode2 = 0 ;
3966 unsigned char val3 ;
3967 int ecode3 = 0 ;
3968 unsigned char val4 ;
3969 int ecode4 = 0 ;
3970 unsigned char val5 ;
3971 int ecode5 = 0 ;
3972 PyObject * obj0 = 0 ;
3973 PyObject * obj1 = 0 ;
3974 PyObject * obj2 = 0 ;
3975 PyObject * obj3 = 0 ;
3976 PyObject * obj4 = 0 ;
3977 char * kwnames[] = {
3978 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
3979 };
3980
3981 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
3982 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3983 if (!SWIG_IsOK(res1)) {
3984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
3985 }
3986 arg1 = reinterpret_cast< wxColour * >(argp1);
3987 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
3988 if (!SWIG_IsOK(ecode2)) {
3989 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
3990 }
3991 arg2 = static_cast< byte >(val2);
3992 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
3993 if (!SWIG_IsOK(ecode3)) {
3994 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
3995 }
3996 arg3 = static_cast< byte >(val3);
3997 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
3998 if (!SWIG_IsOK(ecode4)) {
3999 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
4000 }
4001 arg4 = static_cast< byte >(val4);
4002 if (obj4) {
4003 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
4004 if (!SWIG_IsOK(ecode5)) {
4005 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'");
4006 }
4007 arg5 = static_cast< byte >(val5);
4008 }
4009 {
4010 PyThreadState* __tstate = wxPyBeginAllowThreads();
4011 (arg1)->Set(arg2,arg3,arg4,arg5);
4012 wxPyEndAllowThreads(__tstate);
4013 if (PyErr_Occurred()) SWIG_fail;
4014 }
4015 resultobj = SWIG_Py_Void();
4016 return resultobj;
4017 fail:
4018 return NULL;
4019 }
4020
4021
4022 SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4023 PyObject *resultobj = 0;
4024 wxColour *arg1 = (wxColour *) 0 ;
4025 unsigned long arg2 ;
4026 void *argp1 = 0 ;
4027 int res1 = 0 ;
4028 unsigned long val2 ;
4029 int ecode2 = 0 ;
4030 PyObject * obj0 = 0 ;
4031 PyObject * obj1 = 0 ;
4032 char * kwnames[] = {
4033 (char *) "self",(char *) "colRGB", NULL
4034 };
4035
4036 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4037 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4038 if (!SWIG_IsOK(res1)) {
4039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4040 }
4041 arg1 = reinterpret_cast< wxColour * >(argp1);
4042 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
4043 if (!SWIG_IsOK(ecode2)) {
4044 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
4045 }
4046 arg2 = static_cast< unsigned long >(val2);
4047 {
4048 PyThreadState* __tstate = wxPyBeginAllowThreads();
4049 (arg1)->Set(arg2);
4050 wxPyEndAllowThreads(__tstate);
4051 if (PyErr_Occurred()) SWIG_fail;
4052 }
4053 resultobj = SWIG_Py_Void();
4054 return resultobj;
4055 fail:
4056 return NULL;
4057 }
4058
4059
4060 SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4061 PyObject *resultobj = 0;
4062 wxColour *arg1 = (wxColour *) 0 ;
4063 wxString *arg2 = 0 ;
4064 void *argp1 = 0 ;
4065 int res1 = 0 ;
4066 bool temp2 = false ;
4067 PyObject * obj0 = 0 ;
4068 PyObject * obj1 = 0 ;
4069 char * kwnames[] = {
4070 (char *) "self",(char *) "colourName", NULL
4071 };
4072
4073 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
4074 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4075 if (!SWIG_IsOK(res1)) {
4076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
4077 }
4078 arg1 = reinterpret_cast< wxColour * >(argp1);
4079 {
4080 arg2 = wxString_in_helper(obj1);
4081 if (arg2 == NULL) SWIG_fail;
4082 temp2 = true;
4083 }
4084 {
4085 PyThreadState* __tstate = wxPyBeginAllowThreads();
4086 (arg1)->InitFromName((wxString const &)*arg2);
4087 wxPyEndAllowThreads(__tstate);
4088 if (PyErr_Occurred()) SWIG_fail;
4089 }
4090 resultobj = SWIG_Py_Void();
4091 {
4092 if (temp2)
4093 delete arg2;
4094 }
4095 return resultobj;
4096 fail:
4097 {
4098 if (temp2)
4099 delete arg2;
4100 }
4101 return NULL;
4102 }
4103
4104
4105 SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4106 PyObject *resultobj = 0;
4107 wxColour *arg1 = (wxColour *) 0 ;
4108 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
4109 wxString result;
4110 void *argp1 = 0 ;
4111 int res1 = 0 ;
4112 long val2 ;
4113 int ecode2 = 0 ;
4114 PyObject * obj0 = 0 ;
4115 PyObject * obj1 = 0 ;
4116 char * kwnames[] = {
4117 (char *) "self",(char *) "flags", NULL
4118 };
4119
4120 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
4121 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4122 if (!SWIG_IsOK(res1)) {
4123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
4124 }
4125 arg1 = reinterpret_cast< wxColour * >(argp1);
4126 if (obj1) {
4127 ecode2 = SWIG_AsVal_long(obj1, &val2);
4128 if (!SWIG_IsOK(ecode2)) {
4129 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
4130 }
4131 arg2 = static_cast< long >(val2);
4132 }
4133 {
4134 PyThreadState* __tstate = wxPyBeginAllowThreads();
4135 result = ((wxColour const *)arg1)->GetAsString(arg2);
4136 wxPyEndAllowThreads(__tstate);
4137 if (PyErr_Occurred()) SWIG_fail;
4138 }
4139 {
4140 #if wxUSE_UNICODE
4141 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4142 #else
4143 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4144 #endif
4145 }
4146 return resultobj;
4147 fail:
4148 return NULL;
4149 }
4150
4151
4152 SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4153 PyObject *resultobj = 0;
4154 wxColour *arg1 = (wxColour *) 0 ;
4155 long result;
4156 void *argp1 = 0 ;
4157 int res1 = 0 ;
4158 PyObject *swig_obj[1] ;
4159
4160 if (!args) SWIG_fail;
4161 swig_obj[0] = args;
4162 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4163 if (!SWIG_IsOK(res1)) {
4164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
4165 }
4166 arg1 = reinterpret_cast< wxColour * >(argp1);
4167 {
4168 PyThreadState* __tstate = wxPyBeginAllowThreads();
4169 result = (long)((wxColour const *)arg1)->GetPixel();
4170 wxPyEndAllowThreads(__tstate);
4171 if (PyErr_Occurred()) SWIG_fail;
4172 }
4173 resultobj = SWIG_From_long(static_cast< long >(result));
4174 return resultobj;
4175 fail:
4176 return NULL;
4177 }
4178
4179
4180 SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4181 PyObject *resultobj = 0;
4182 wxColour *arg1 = (wxColour *) 0 ;
4183 PyObject *arg2 = (PyObject *) 0 ;
4184 bool result;
4185 void *argp1 = 0 ;
4186 int res1 = 0 ;
4187 PyObject * obj0 = 0 ;
4188 PyObject * obj1 = 0 ;
4189 char * kwnames[] = {
4190 (char *) "self",(char *) "other", NULL
4191 };
4192
4193 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4194 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4195 if (!SWIG_IsOK(res1)) {
4196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
4197 }
4198 arg1 = reinterpret_cast< wxColour * >(argp1);
4199 arg2 = obj1;
4200 {
4201 result = (bool)wxColour___eq__(arg1,arg2);
4202 if (PyErr_Occurred()) SWIG_fail;
4203 }
4204 {
4205 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4206 }
4207 return resultobj;
4208 fail:
4209 return NULL;
4210 }
4211
4212
4213 SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4214 PyObject *resultobj = 0;
4215 wxColour *arg1 = (wxColour *) 0 ;
4216 PyObject *arg2 = (PyObject *) 0 ;
4217 bool result;
4218 void *argp1 = 0 ;
4219 int res1 = 0 ;
4220 PyObject * obj0 = 0 ;
4221 PyObject * obj1 = 0 ;
4222 char * kwnames[] = {
4223 (char *) "self",(char *) "other", NULL
4224 };
4225
4226 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4227 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4228 if (!SWIG_IsOK(res1)) {
4229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
4230 }
4231 arg1 = reinterpret_cast< wxColour * >(argp1);
4232 arg2 = obj1;
4233 {
4234 result = (bool)wxColour___ne__(arg1,arg2);
4235 if (PyErr_Occurred()) SWIG_fail;
4236 }
4237 {
4238 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4239 }
4240 return resultobj;
4241 fail:
4242 return NULL;
4243 }
4244
4245
4246 SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4247 PyObject *resultobj = 0;
4248 wxColour *arg1 = (wxColour *) 0 ;
4249 bool arg2 = (bool) false ;
4250 PyObject *result = 0 ;
4251 void *argp1 = 0 ;
4252 int res1 = 0 ;
4253 bool val2 ;
4254 int ecode2 = 0 ;
4255 PyObject * obj0 = 0 ;
4256 PyObject * obj1 = 0 ;
4257 char * kwnames[] = {
4258 (char *) "self",(char *) "includeAlpha", NULL
4259 };
4260
4261 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail;
4262 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4263 if (!SWIG_IsOK(res1)) {
4264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
4265 }
4266 arg1 = reinterpret_cast< wxColour * >(argp1);
4267 if (obj1) {
4268 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4269 if (!SWIG_IsOK(ecode2)) {
4270 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'");
4271 }
4272 arg2 = static_cast< bool >(val2);
4273 }
4274 {
4275 result = (PyObject *)wxColour_Get(arg1,arg2);
4276 if (PyErr_Occurred()) SWIG_fail;
4277 }
4278 resultobj = result;
4279 return resultobj;
4280 fail:
4281 return NULL;
4282 }
4283
4284
4285 SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4286 PyObject *resultobj = 0;
4287 wxColour *arg1 = (wxColour *) 0 ;
4288 unsigned long result;
4289 void *argp1 = 0 ;
4290 int res1 = 0 ;
4291 PyObject *swig_obj[1] ;
4292
4293 if (!args) SWIG_fail;
4294 swig_obj[0] = args;
4295 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4296 if (!SWIG_IsOK(res1)) {
4297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4298 }
4299 arg1 = reinterpret_cast< wxColour * >(argp1);
4300 {
4301 result = (unsigned long)wxColour_GetRGB(arg1);
4302 if (PyErr_Occurred()) SWIG_fail;
4303 }
4304 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
4305 return resultobj;
4306 fail:
4307 return NULL;
4308 }
4309
4310
4311 SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4312 PyObject *obj;
4313 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4314 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
4315 return SWIG_Py_Void();
4316 }
4317
4318 SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4319 return SWIG_Python_InitShadowInstance(args);
4320 }
4321
4322 SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4323 PyObject *resultobj = 0;
4324 int arg1 ;
4325 unsigned char *arg2 = (unsigned char *) 0 ;
4326 unsigned char *arg3 = (unsigned char *) 0 ;
4327 unsigned char *arg4 = (unsigned char *) 0 ;
4328 wxPalette *result = 0 ;
4329 int val1 ;
4330 int ecode1 = 0 ;
4331 void *argp2 = 0 ;
4332 int res2 = 0 ;
4333 void *argp3 = 0 ;
4334 int res3 = 0 ;
4335 void *argp4 = 0 ;
4336 int res4 = 0 ;
4337 PyObject * obj0 = 0 ;
4338 PyObject * obj1 = 0 ;
4339 PyObject * obj2 = 0 ;
4340 PyObject * obj3 = 0 ;
4341 char * kwnames[] = {
4342 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
4343 };
4344
4345 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4346 ecode1 = SWIG_AsVal_int(obj0, &val1);
4347 if (!SWIG_IsOK(ecode1)) {
4348 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
4349 }
4350 arg1 = static_cast< int >(val1);
4351 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
4352 if (!SWIG_IsOK(res2)) {
4353 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
4354 }
4355 arg2 = reinterpret_cast< unsigned char * >(argp2);
4356 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
4357 if (!SWIG_IsOK(res3)) {
4358 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4359 }
4360 arg3 = reinterpret_cast< unsigned char * >(argp3);
4361 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4362 if (!SWIG_IsOK(res4)) {
4363 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4364 }
4365 arg4 = reinterpret_cast< unsigned char * >(argp4);
4366 {
4367 if (!wxPyCheckForApp()) SWIG_fail;
4368 PyThreadState* __tstate = wxPyBeginAllowThreads();
4369 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4370 wxPyEndAllowThreads(__tstate);
4371 if (PyErr_Occurred()) SWIG_fail;
4372 }
4373 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4374 return resultobj;
4375 fail:
4376 return NULL;
4377 }
4378
4379
4380 SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4381 PyObject *resultobj = 0;
4382 wxPalette *arg1 = (wxPalette *) 0 ;
4383 void *argp1 = 0 ;
4384 int res1 = 0 ;
4385 PyObject *swig_obj[1] ;
4386
4387 if (!args) SWIG_fail;
4388 swig_obj[0] = args;
4389 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4390 if (!SWIG_IsOK(res1)) {
4391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4392 }
4393 arg1 = reinterpret_cast< wxPalette * >(argp1);
4394 {
4395 PyThreadState* __tstate = wxPyBeginAllowThreads();
4396 delete arg1;
4397
4398 wxPyEndAllowThreads(__tstate);
4399 if (PyErr_Occurred()) SWIG_fail;
4400 }
4401 resultobj = SWIG_Py_Void();
4402 return resultobj;
4403 fail:
4404 return NULL;
4405 }
4406
4407
4408 SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4409 PyObject *resultobj = 0;
4410 wxPalette *arg1 = (wxPalette *) 0 ;
4411 byte arg2 ;
4412 byte arg3 ;
4413 byte arg4 ;
4414 int result;
4415 void *argp1 = 0 ;
4416 int res1 = 0 ;
4417 unsigned char val2 ;
4418 int ecode2 = 0 ;
4419 unsigned char val3 ;
4420 int ecode3 = 0 ;
4421 unsigned char val4 ;
4422 int ecode4 = 0 ;
4423 PyObject * obj0 = 0 ;
4424 PyObject * obj1 = 0 ;
4425 PyObject * obj2 = 0 ;
4426 PyObject * obj3 = 0 ;
4427 char * kwnames[] = {
4428 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4429 };
4430
4431 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4432 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4433 if (!SWIG_IsOK(res1)) {
4434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4435 }
4436 arg1 = reinterpret_cast< wxPalette * >(argp1);
4437 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4438 if (!SWIG_IsOK(ecode2)) {
4439 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4440 }
4441 arg2 = static_cast< byte >(val2);
4442 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4443 if (!SWIG_IsOK(ecode3)) {
4444 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4445 }
4446 arg3 = static_cast< byte >(val3);
4447 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4448 if (!SWIG_IsOK(ecode4)) {
4449 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4450 }
4451 arg4 = static_cast< byte >(val4);
4452 {
4453 PyThreadState* __tstate = wxPyBeginAllowThreads();
4454 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4455 wxPyEndAllowThreads(__tstate);
4456 if (PyErr_Occurred()) SWIG_fail;
4457 }
4458 resultobj = SWIG_From_int(static_cast< int >(result));
4459 return resultobj;
4460 fail:
4461 return NULL;
4462 }
4463
4464
4465 SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4466 PyObject *resultobj = 0;
4467 wxPalette *arg1 = (wxPalette *) 0 ;
4468 int arg2 ;
4469 byte *arg3 = (byte *) 0 ;
4470 byte *arg4 = (byte *) 0 ;
4471 byte *arg5 = (byte *) 0 ;
4472 bool result;
4473 void *argp1 = 0 ;
4474 int res1 = 0 ;
4475 int val2 ;
4476 int ecode2 = 0 ;
4477 byte temp3 ;
4478 int res3 = SWIG_TMPOBJ ;
4479 byte temp4 ;
4480 int res4 = SWIG_TMPOBJ ;
4481 byte temp5 ;
4482 int res5 = SWIG_TMPOBJ ;
4483 PyObject * obj0 = 0 ;
4484 PyObject * obj1 = 0 ;
4485 char * kwnames[] = {
4486 (char *) "self",(char *) "pixel", NULL
4487 };
4488
4489 arg3 = &temp3;
4490 arg4 = &temp4;
4491 arg5 = &temp5;
4492 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4493 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4494 if (!SWIG_IsOK(res1)) {
4495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4496 }
4497 arg1 = reinterpret_cast< wxPalette * >(argp1);
4498 ecode2 = SWIG_AsVal_int(obj1, &val2);
4499 if (!SWIG_IsOK(ecode2)) {
4500 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4501 }
4502 arg2 = static_cast< int >(val2);
4503 {
4504 PyThreadState* __tstate = wxPyBeginAllowThreads();
4505 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4506 wxPyEndAllowThreads(__tstate);
4507 if (PyErr_Occurred()) SWIG_fail;
4508 }
4509 {
4510 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4511 }
4512 if (SWIG_IsTmpObj(res3)) {
4513 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4514 } else {
4515 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4516 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4517 }
4518 if (SWIG_IsTmpObj(res4)) {
4519 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4520 } else {
4521 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4522 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4523 }
4524 if (SWIG_IsTmpObj(res5)) {
4525 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4526 } else {
4527 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4528 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4529 }
4530 return resultobj;
4531 fail:
4532 return NULL;
4533 }
4534
4535
4536 SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4537 PyObject *resultobj = 0;
4538 wxPalette *arg1 = (wxPalette *) 0 ;
4539 int result;
4540 void *argp1 = 0 ;
4541 int res1 = 0 ;
4542 PyObject *swig_obj[1] ;
4543
4544 if (!args) SWIG_fail;
4545 swig_obj[0] = args;
4546 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4547 if (!SWIG_IsOK(res1)) {
4548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4549 }
4550 arg1 = reinterpret_cast< wxPalette * >(argp1);
4551 {
4552 PyThreadState* __tstate = wxPyBeginAllowThreads();
4553 result = (int)((wxPalette const *)arg1)->GetColoursCount();
4554 wxPyEndAllowThreads(__tstate);
4555 if (PyErr_Occurred()) SWIG_fail;
4556 }
4557 resultobj = SWIG_From_int(static_cast< int >(result));
4558 return resultobj;
4559 fail:
4560 return NULL;
4561 }
4562
4563
4564 SWIGINTERN PyObject *_wrap_Palette_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4565 PyObject *resultobj = 0;
4566 wxPalette *arg1 = (wxPalette *) 0 ;
4567 bool result;
4568 void *argp1 = 0 ;
4569 int res1 = 0 ;
4570 PyObject *swig_obj[1] ;
4571
4572 if (!args) SWIG_fail;
4573 swig_obj[0] = args;
4574 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4575 if (!SWIG_IsOK(res1)) {
4576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_Ok" "', expected argument " "1"" of type '" "wxPalette *""'");
4577 }
4578 arg1 = reinterpret_cast< wxPalette * >(argp1);
4579 {
4580 PyThreadState* __tstate = wxPyBeginAllowThreads();
4581 result = (bool)(arg1)->Ok();
4582 wxPyEndAllowThreads(__tstate);
4583 if (PyErr_Occurred()) SWIG_fail;
4584 }
4585 {
4586 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4587 }
4588 return resultobj;
4589 fail:
4590 return NULL;
4591 }
4592
4593
4594 SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4595 PyObject *obj;
4596 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4597 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
4598 return SWIG_Py_Void();
4599 }
4600
4601 SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4602 return SWIG_Python_InitShadowInstance(args);
4603 }
4604
4605 SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4606 PyObject *resultobj = 0;
4607 wxColour *arg1 = 0 ;
4608 int arg2 = (int) 1 ;
4609 int arg3 = (int) wxSOLID ;
4610 wxPen *result = 0 ;
4611 wxColour temp1 ;
4612 int val2 ;
4613 int ecode2 = 0 ;
4614 int val3 ;
4615 int ecode3 = 0 ;
4616 PyObject * obj0 = 0 ;
4617 PyObject * obj1 = 0 ;
4618 PyObject * obj2 = 0 ;
4619 char * kwnames[] = {
4620 (char *) "colour",(char *) "width",(char *) "style", NULL
4621 };
4622
4623 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4624 {
4625 arg1 = &temp1;
4626 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
4627 }
4628 if (obj1) {
4629 ecode2 = SWIG_AsVal_int(obj1, &val2);
4630 if (!SWIG_IsOK(ecode2)) {
4631 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
4632 }
4633 arg2 = static_cast< int >(val2);
4634 }
4635 if (obj2) {
4636 ecode3 = SWIG_AsVal_int(obj2, &val3);
4637 if (!SWIG_IsOK(ecode3)) {
4638 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
4639 }
4640 arg3 = static_cast< int >(val3);
4641 }
4642 {
4643 if (!wxPyCheckForApp()) SWIG_fail;
4644 PyThreadState* __tstate = wxPyBeginAllowThreads();
4645 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
4646 wxPyEndAllowThreads(__tstate);
4647 if (PyErr_Occurred()) SWIG_fail;
4648 }
4649 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
4650 return resultobj;
4651 fail:
4652 return NULL;
4653 }
4654
4655
4656 SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4657 PyObject *resultobj = 0;
4658 wxPen *arg1 = (wxPen *) 0 ;
4659 void *argp1 = 0 ;
4660 int res1 = 0 ;
4661 PyObject *swig_obj[1] ;
4662
4663 if (!args) SWIG_fail;
4664 swig_obj[0] = args;
4665 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
4666 if (!SWIG_IsOK(res1)) {
4667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
4668 }
4669 arg1 = reinterpret_cast< wxPen * >(argp1);
4670 {
4671 PyThreadState* __tstate = wxPyBeginAllowThreads();
4672 delete arg1;
4673
4674 wxPyEndAllowThreads(__tstate);
4675 if (PyErr_Occurred()) SWIG_fail;
4676 }
4677 resultobj = SWIG_Py_Void();
4678 return resultobj;
4679 fail:
4680 return NULL;
4681 }
4682
4683
4684 SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4685 PyObject *resultobj = 0;
4686 wxPen *arg1 = (wxPen *) 0 ;
4687 int result;
4688 void *argp1 = 0 ;
4689 int res1 = 0 ;
4690 PyObject *swig_obj[1] ;
4691
4692 if (!args) SWIG_fail;
4693 swig_obj[0] = args;
4694 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4695 if (!SWIG_IsOK(res1)) {
4696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4697 }
4698 arg1 = reinterpret_cast< wxPen * >(argp1);
4699 {
4700 PyThreadState* __tstate = wxPyBeginAllowThreads();
4701 result = (int)(arg1)->GetCap();
4702 wxPyEndAllowThreads(__tstate);
4703 if (PyErr_Occurred()) SWIG_fail;
4704 }
4705 resultobj = SWIG_From_int(static_cast< int >(result));
4706 return resultobj;
4707 fail:
4708 return NULL;
4709 }
4710
4711
4712 SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4713 PyObject *resultobj = 0;
4714 wxPen *arg1 = (wxPen *) 0 ;
4715 wxColour result;
4716 void *argp1 = 0 ;
4717 int res1 = 0 ;
4718 PyObject *swig_obj[1] ;
4719
4720 if (!args) SWIG_fail;
4721 swig_obj[0] = args;
4722 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4723 if (!SWIG_IsOK(res1)) {
4724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4725 }
4726 arg1 = reinterpret_cast< wxPen * >(argp1);
4727 {
4728 PyThreadState* __tstate = wxPyBeginAllowThreads();
4729 result = (arg1)->GetColour();
4730 wxPyEndAllowThreads(__tstate);
4731 if (PyErr_Occurred()) SWIG_fail;
4732 }
4733 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4734 return resultobj;
4735 fail:
4736 return NULL;
4737 }
4738
4739
4740 SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4741 PyObject *resultobj = 0;
4742 wxPen *arg1 = (wxPen *) 0 ;
4743 int result;
4744 void *argp1 = 0 ;
4745 int res1 = 0 ;
4746 PyObject *swig_obj[1] ;
4747
4748 if (!args) SWIG_fail;
4749 swig_obj[0] = args;
4750 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4751 if (!SWIG_IsOK(res1)) {
4752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4753 }
4754 arg1 = reinterpret_cast< wxPen * >(argp1);
4755 {
4756 PyThreadState* __tstate = wxPyBeginAllowThreads();
4757 result = (int)(arg1)->GetJoin();
4758 wxPyEndAllowThreads(__tstate);
4759 if (PyErr_Occurred()) SWIG_fail;
4760 }
4761 resultobj = SWIG_From_int(static_cast< int >(result));
4762 return resultobj;
4763 fail:
4764 return NULL;
4765 }
4766
4767
4768 SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4769 PyObject *resultobj = 0;
4770 wxPen *arg1 = (wxPen *) 0 ;
4771 int result;
4772 void *argp1 = 0 ;
4773 int res1 = 0 ;
4774 PyObject *swig_obj[1] ;
4775
4776 if (!args) SWIG_fail;
4777 swig_obj[0] = args;
4778 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4779 if (!SWIG_IsOK(res1)) {
4780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
4781 }
4782 arg1 = reinterpret_cast< wxPen * >(argp1);
4783 {
4784 PyThreadState* __tstate = wxPyBeginAllowThreads();
4785 result = (int)(arg1)->GetStyle();
4786 wxPyEndAllowThreads(__tstate);
4787 if (PyErr_Occurred()) SWIG_fail;
4788 }
4789 resultobj = SWIG_From_int(static_cast< int >(result));
4790 return resultobj;
4791 fail:
4792 return NULL;
4793 }
4794
4795
4796 SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4797 PyObject *resultobj = 0;
4798 wxPen *arg1 = (wxPen *) 0 ;
4799 int result;
4800 void *argp1 = 0 ;
4801 int res1 = 0 ;
4802 PyObject *swig_obj[1] ;
4803
4804 if (!args) SWIG_fail;
4805 swig_obj[0] = args;
4806 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4807 if (!SWIG_IsOK(res1)) {
4808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
4809 }
4810 arg1 = reinterpret_cast< wxPen * >(argp1);
4811 {
4812 PyThreadState* __tstate = wxPyBeginAllowThreads();
4813 result = (int)(arg1)->GetWidth();
4814 wxPyEndAllowThreads(__tstate);
4815 if (PyErr_Occurred()) SWIG_fail;
4816 }
4817 resultobj = SWIG_From_int(static_cast< int >(result));
4818 return resultobj;
4819 fail:
4820 return NULL;
4821 }
4822
4823
4824 SWIGINTERN PyObject *_wrap_Pen_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4825 PyObject *resultobj = 0;
4826 wxPen *arg1 = (wxPen *) 0 ;
4827 bool result;
4828 void *argp1 = 0 ;
4829 int res1 = 0 ;
4830 PyObject *swig_obj[1] ;
4831
4832 if (!args) SWIG_fail;
4833 swig_obj[0] = args;
4834 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4835 if (!SWIG_IsOK(res1)) {
4836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_Ok" "', expected argument " "1"" of type '" "wxPen *""'");
4837 }
4838 arg1 = reinterpret_cast< wxPen * >(argp1);
4839 {
4840 PyThreadState* __tstate = wxPyBeginAllowThreads();
4841 result = (bool)(arg1)->Ok();
4842 wxPyEndAllowThreads(__tstate);
4843 if (PyErr_Occurred()) SWIG_fail;
4844 }
4845 {
4846 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4847 }
4848 return resultobj;
4849 fail:
4850 return NULL;
4851 }
4852
4853
4854 SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4855 PyObject *resultobj = 0;
4856 wxPen *arg1 = (wxPen *) 0 ;
4857 int arg2 ;
4858 void *argp1 = 0 ;
4859 int res1 = 0 ;
4860 int val2 ;
4861 int ecode2 = 0 ;
4862 PyObject * obj0 = 0 ;
4863 PyObject * obj1 = 0 ;
4864 char * kwnames[] = {
4865 (char *) "self",(char *) "cap_style", NULL
4866 };
4867
4868 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
4869 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4870 if (!SWIG_IsOK(res1)) {
4871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4872 }
4873 arg1 = reinterpret_cast< wxPen * >(argp1);
4874 ecode2 = SWIG_AsVal_int(obj1, &val2);
4875 if (!SWIG_IsOK(ecode2)) {
4876 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
4877 }
4878 arg2 = static_cast< int >(val2);
4879 {
4880 PyThreadState* __tstate = wxPyBeginAllowThreads();
4881 (arg1)->SetCap(arg2);
4882 wxPyEndAllowThreads(__tstate);
4883 if (PyErr_Occurred()) SWIG_fail;
4884 }
4885 resultobj = SWIG_Py_Void();
4886 return resultobj;
4887 fail:
4888 return NULL;
4889 }
4890
4891
4892 SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4893 PyObject *resultobj = 0;
4894 wxPen *arg1 = (wxPen *) 0 ;
4895 wxColour *arg2 = 0 ;
4896 void *argp1 = 0 ;
4897 int res1 = 0 ;
4898 wxColour temp2 ;
4899 PyObject * obj0 = 0 ;
4900 PyObject * obj1 = 0 ;
4901 char * kwnames[] = {
4902 (char *) "self",(char *) "colour", NULL
4903 };
4904
4905 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
4906 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4907 if (!SWIG_IsOK(res1)) {
4908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4909 }
4910 arg1 = reinterpret_cast< wxPen * >(argp1);
4911 {
4912 arg2 = &temp2;
4913 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
4914 }
4915 {
4916 PyThreadState* __tstate = wxPyBeginAllowThreads();
4917 (arg1)->SetColour(*arg2);
4918 wxPyEndAllowThreads(__tstate);
4919 if (PyErr_Occurred()) SWIG_fail;
4920 }
4921 resultobj = SWIG_Py_Void();
4922 return resultobj;
4923 fail:
4924 return NULL;
4925 }
4926
4927
4928 SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4929 PyObject *resultobj = 0;
4930 wxPen *arg1 = (wxPen *) 0 ;
4931 int arg2 ;
4932 void *argp1 = 0 ;
4933 int res1 = 0 ;
4934 int val2 ;
4935 int ecode2 = 0 ;
4936 PyObject * obj0 = 0 ;
4937 PyObject * obj1 = 0 ;
4938 char * kwnames[] = {
4939 (char *) "self",(char *) "join_style", NULL
4940 };
4941
4942 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
4943 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4944 if (!SWIG_IsOK(res1)) {
4945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4946 }
4947 arg1 = reinterpret_cast< wxPen * >(argp1);
4948 ecode2 = SWIG_AsVal_int(obj1, &val2);
4949 if (!SWIG_IsOK(ecode2)) {
4950 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
4951 }
4952 arg2 = static_cast< int >(val2);
4953 {
4954 PyThreadState* __tstate = wxPyBeginAllowThreads();
4955 (arg1)->SetJoin(arg2);
4956 wxPyEndAllowThreads(__tstate);
4957 if (PyErr_Occurred()) SWIG_fail;
4958 }
4959 resultobj = SWIG_Py_Void();
4960 return resultobj;
4961 fail:
4962 return NULL;
4963 }
4964
4965
4966 SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4967 PyObject *resultobj = 0;
4968 wxPen *arg1 = (wxPen *) 0 ;
4969 int arg2 ;
4970 void *argp1 = 0 ;
4971 int res1 = 0 ;
4972 int val2 ;
4973 int ecode2 = 0 ;
4974 PyObject * obj0 = 0 ;
4975 PyObject * obj1 = 0 ;
4976 char * kwnames[] = {
4977 (char *) "self",(char *) "style", NULL
4978 };
4979
4980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
4981 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4982 if (!SWIG_IsOK(res1)) {
4983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
4984 }
4985 arg1 = reinterpret_cast< wxPen * >(argp1);
4986 ecode2 = SWIG_AsVal_int(obj1, &val2);
4987 if (!SWIG_IsOK(ecode2)) {
4988 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
4989 }
4990 arg2 = static_cast< int >(val2);
4991 {
4992 PyThreadState* __tstate = wxPyBeginAllowThreads();
4993 (arg1)->SetStyle(arg2);
4994 wxPyEndAllowThreads(__tstate);
4995 if (PyErr_Occurred()) SWIG_fail;
4996 }
4997 resultobj = SWIG_Py_Void();
4998 return resultobj;
4999 fail:
5000 return NULL;
5001 }
5002
5003
5004 SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5005 PyObject *resultobj = 0;
5006 wxPen *arg1 = (wxPen *) 0 ;
5007 int arg2 ;
5008 void *argp1 = 0 ;
5009 int res1 = 0 ;
5010 int val2 ;
5011 int ecode2 = 0 ;
5012 PyObject * obj0 = 0 ;
5013 PyObject * obj1 = 0 ;
5014 char * kwnames[] = {
5015 (char *) "self",(char *) "width", NULL
5016 };
5017
5018 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
5019 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5020 if (!SWIG_IsOK(res1)) {
5021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5022 }
5023 arg1 = reinterpret_cast< wxPen * >(argp1);
5024 ecode2 = SWIG_AsVal_int(obj1, &val2);
5025 if (!SWIG_IsOK(ecode2)) {
5026 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
5027 }
5028 arg2 = static_cast< int >(val2);
5029 {
5030 PyThreadState* __tstate = wxPyBeginAllowThreads();
5031 (arg1)->SetWidth(arg2);
5032 wxPyEndAllowThreads(__tstate);
5033 if (PyErr_Occurred()) SWIG_fail;
5034 }
5035 resultobj = SWIG_Py_Void();
5036 return resultobj;
5037 fail:
5038 return NULL;
5039 }
5040
5041
5042 SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5043 PyObject *resultobj = 0;
5044 wxPen *arg1 = (wxPen *) 0 ;
5045 int arg2 ;
5046 wxDash *arg3 = (wxDash *) 0 ;
5047 void *argp1 = 0 ;
5048 int res1 = 0 ;
5049 PyObject * obj0 = 0 ;
5050 PyObject * obj1 = 0 ;
5051 char * kwnames[] = {
5052 (char *) "self",(char *) "dashes", NULL
5053 };
5054
5055 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
5056 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5057 if (!SWIG_IsOK(res1)) {
5058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5059 }
5060 arg1 = reinterpret_cast< wxPen * >(argp1);
5061 {
5062 arg2 = PyList_Size(obj1);
5063 arg3 = (wxDash*)byte_LIST_helper(obj1);
5064 if (arg3 == NULL) SWIG_fail;
5065 }
5066 {
5067 PyThreadState* __tstate = wxPyBeginAllowThreads();
5068 (arg1)->SetDashes(arg2,arg3);
5069 wxPyEndAllowThreads(__tstate);
5070 if (PyErr_Occurred()) SWIG_fail;
5071 }
5072 resultobj = SWIG_Py_Void();
5073 {
5074 if (arg3) delete [] arg3;
5075 }
5076 return resultobj;
5077 fail:
5078 {
5079 if (arg3) delete [] arg3;
5080 }
5081 return NULL;
5082 }
5083
5084
5085 SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5086 PyObject *resultobj = 0;
5087 wxPen *arg1 = (wxPen *) 0 ;
5088 PyObject *result = 0 ;
5089 void *argp1 = 0 ;
5090 int res1 = 0 ;
5091 PyObject *swig_obj[1] ;
5092
5093 if (!args) SWIG_fail;
5094 swig_obj[0] = args;
5095 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5096 if (!SWIG_IsOK(res1)) {
5097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5098 }
5099 arg1 = reinterpret_cast< wxPen * >(argp1);
5100 {
5101 PyThreadState* __tstate = wxPyBeginAllowThreads();
5102 result = (PyObject *)wxPen_GetDashes(arg1);
5103 wxPyEndAllowThreads(__tstate);
5104 if (PyErr_Occurred()) SWIG_fail;
5105 }
5106 resultobj = result;
5107 return resultobj;
5108 fail:
5109 return NULL;
5110 }
5111
5112
5113 SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5114 PyObject *resultobj = 0;
5115 wxPen *arg1 = (wxPen *) 0 ;
5116 PyObject *arg2 = (PyObject *) 0 ;
5117 PyObject *arg3 = (PyObject *) 0 ;
5118 void *argp1 = 0 ;
5119 int res1 = 0 ;
5120 PyObject * obj0 = 0 ;
5121 PyObject * obj1 = 0 ;
5122 PyObject * obj2 = 0 ;
5123 char * kwnames[] = {
5124 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
5125 };
5126
5127 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5128 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5129 if (!SWIG_IsOK(res1)) {
5130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5131 }
5132 arg1 = reinterpret_cast< wxPen * >(argp1);
5133 arg2 = obj1;
5134 arg3 = obj2;
5135 {
5136 PyThreadState* __tstate = wxPyBeginAllowThreads();
5137 wxPen__SetDashes(arg1,arg2,arg3);
5138 wxPyEndAllowThreads(__tstate);
5139 if (PyErr_Occurred()) SWIG_fail;
5140 }
5141 resultobj = SWIG_Py_Void();
5142 return resultobj;
5143 fail:
5144 return NULL;
5145 }
5146
5147
5148 SWIGINTERN PyObject *_wrap_Pen_GetDashCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5149 PyObject *resultobj = 0;
5150 wxPen *arg1 = (wxPen *) 0 ;
5151 int result;
5152 void *argp1 = 0 ;
5153 int res1 = 0 ;
5154 PyObject *swig_obj[1] ;
5155
5156 if (!args) SWIG_fail;
5157 swig_obj[0] = args;
5158 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5159 if (!SWIG_IsOK(res1)) {
5160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashCount" "', expected argument " "1"" of type '" "wxPen const *""'");
5161 }
5162 arg1 = reinterpret_cast< wxPen * >(argp1);
5163 {
5164 PyThreadState* __tstate = wxPyBeginAllowThreads();
5165 result = (int)((wxPen const *)arg1)->GetDashCount();
5166 wxPyEndAllowThreads(__tstate);
5167 if (PyErr_Occurred()) SWIG_fail;
5168 }
5169 resultobj = SWIG_From_int(static_cast< int >(result));
5170 return resultobj;
5171 fail:
5172 return NULL;
5173 }
5174
5175
5176 SWIGINTERN PyObject *_wrap_Pen_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5177 PyObject *resultobj = 0;
5178 wxPen *arg1 = (wxPen *) 0 ;
5179 wxBitmap *result = 0 ;
5180 void *argp1 = 0 ;
5181 int res1 = 0 ;
5182 PyObject *swig_obj[1] ;
5183
5184 if (!args) SWIG_fail;
5185 swig_obj[0] = args;
5186 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5187 if (!SWIG_IsOK(res1)) {
5188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStipple" "', expected argument " "1"" of type '" "wxPen *""'");
5189 }
5190 arg1 = reinterpret_cast< wxPen * >(argp1);
5191 {
5192 PyThreadState* __tstate = wxPyBeginAllowThreads();
5193 result = (wxBitmap *)(arg1)->GetStipple();
5194 wxPyEndAllowThreads(__tstate);
5195 if (PyErr_Occurred()) SWIG_fail;
5196 }
5197 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5198 return resultobj;
5199 fail:
5200 return NULL;
5201 }
5202
5203
5204 SWIGINTERN PyObject *_wrap_Pen_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5205 PyObject *resultobj = 0;
5206 wxPen *arg1 = (wxPen *) 0 ;
5207 wxBitmap *arg2 = 0 ;
5208 void *argp1 = 0 ;
5209 int res1 = 0 ;
5210 void *argp2 = 0 ;
5211 int res2 = 0 ;
5212 PyObject * obj0 = 0 ;
5213 PyObject * obj1 = 0 ;
5214 char * kwnames[] = {
5215 (char *) "self",(char *) "stipple", NULL
5216 };
5217
5218 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5219 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5220 if (!SWIG_IsOK(res1)) {
5221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStipple" "', expected argument " "1"" of type '" "wxPen *""'");
5222 }
5223 arg1 = reinterpret_cast< wxPen * >(argp1);
5224 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
5225 if (!SWIG_IsOK(res2)) {
5226 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen_SetStipple" "', expected argument " "2"" of type '" "wxBitmap &""'");
5227 }
5228 if (!argp2) {
5229 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Pen_SetStipple" "', expected argument " "2"" of type '" "wxBitmap &""'");
5230 }
5231 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5232 {
5233 PyThreadState* __tstate = wxPyBeginAllowThreads();
5234 (arg1)->SetStipple(*arg2);
5235 wxPyEndAllowThreads(__tstate);
5236 if (PyErr_Occurred()) SWIG_fail;
5237 }
5238 resultobj = SWIG_Py_Void();
5239 return resultobj;
5240 fail:
5241 return NULL;
5242 }
5243
5244
5245 SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5246 PyObject *resultobj = 0;
5247 wxPen *arg1 = (wxPen *) 0 ;
5248 wxPen *arg2 = (wxPen *) 0 ;
5249 bool result;
5250 void *argp1 = 0 ;
5251 int res1 = 0 ;
5252 void *argp2 = 0 ;
5253 int res2 = 0 ;
5254 PyObject * obj0 = 0 ;
5255 PyObject * obj1 = 0 ;
5256 char * kwnames[] = {
5257 (char *) "self",(char *) "other", NULL
5258 };
5259
5260 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
5261 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5262 if (!SWIG_IsOK(res1)) {
5263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
5264 }
5265 arg1 = reinterpret_cast< wxPen * >(argp1);
5266 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5267 if (!SWIG_IsOK(res2)) {
5268 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
5269 }
5270 arg2 = reinterpret_cast< wxPen * >(argp2);
5271 {
5272 PyThreadState* __tstate = wxPyBeginAllowThreads();
5273 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
5274 wxPyEndAllowThreads(__tstate);
5275 if (PyErr_Occurred()) SWIG_fail;
5276 }
5277 {
5278 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5279 }
5280 return resultobj;
5281 fail:
5282 return NULL;
5283 }
5284
5285
5286 SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5287 PyObject *resultobj = 0;
5288 wxPen *arg1 = (wxPen *) 0 ;
5289 wxPen *arg2 = (wxPen *) 0 ;
5290 bool result;
5291 void *argp1 = 0 ;
5292 int res1 = 0 ;
5293 void *argp2 = 0 ;
5294 int res2 = 0 ;
5295 PyObject * obj0 = 0 ;
5296 PyObject * obj1 = 0 ;
5297 char * kwnames[] = {
5298 (char *) "self",(char *) "other", NULL
5299 };
5300
5301 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
5302 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5303 if (!SWIG_IsOK(res1)) {
5304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
5305 }
5306 arg1 = reinterpret_cast< wxPen * >(argp1);
5307 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5308 if (!SWIG_IsOK(res2)) {
5309 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
5310 }
5311 arg2 = reinterpret_cast< wxPen * >(argp2);
5312 {
5313 PyThreadState* __tstate = wxPyBeginAllowThreads();
5314 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
5315 wxPyEndAllowThreads(__tstate);
5316 if (PyErr_Occurred()) SWIG_fail;
5317 }
5318 {
5319 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5320 }
5321 return resultobj;
5322 fail:
5323 return NULL;
5324 }
5325
5326
5327 SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5328 PyObject *obj;
5329 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5330 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
5331 return SWIG_Py_Void();
5332 }
5333
5334 SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5335 return SWIG_Python_InitShadowInstance(args);
5336 }
5337
5338 SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5339 PyObject *resultobj = 0;
5340 wxColour *arg1 = 0 ;
5341 int arg2 = (int) wxSOLID ;
5342 wxBrush *result = 0 ;
5343 wxColour temp1 ;
5344 int val2 ;
5345 int ecode2 = 0 ;
5346 PyObject * obj0 = 0 ;
5347 PyObject * obj1 = 0 ;
5348 char * kwnames[] = {
5349 (char *) "colour",(char *) "style", NULL
5350 };
5351
5352 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
5353 {
5354 arg1 = &temp1;
5355 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5356 }
5357 if (obj1) {
5358 ecode2 = SWIG_AsVal_int(obj1, &val2);
5359 if (!SWIG_IsOK(ecode2)) {
5360 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
5361 }
5362 arg2 = static_cast< int >(val2);
5363 }
5364 {
5365 if (!wxPyCheckForApp()) SWIG_fail;
5366 PyThreadState* __tstate = wxPyBeginAllowThreads();
5367 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
5368 wxPyEndAllowThreads(__tstate);
5369 if (PyErr_Occurred()) SWIG_fail;
5370 }
5371 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
5372 return resultobj;
5373 fail:
5374 return NULL;
5375 }
5376
5377
5378 SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5379 PyObject *resultobj = 0;
5380 wxBitmap *arg1 = 0 ;
5381 wxBrush *result = 0 ;
5382 void *argp1 = 0 ;
5383 int res1 = 0 ;
5384 PyObject * obj0 = 0 ;
5385 char * kwnames[] = {
5386 (char *) "stippleBitmap", NULL
5387 };
5388
5389 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
5390 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
5391 if (!SWIG_IsOK(res1)) {
5392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5393 }
5394 if (!argp1) {
5395 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5396 }
5397 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5398 {
5399 if (!wxPyCheckForApp()) SWIG_fail;
5400 PyThreadState* __tstate = wxPyBeginAllowThreads();
5401 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
5402 wxPyEndAllowThreads(__tstate);
5403 if (PyErr_Occurred()) SWIG_fail;
5404 }
5405 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
5406 return resultobj;
5407 fail:
5408 return NULL;
5409 }
5410
5411
5412 SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5413 PyObject *resultobj = 0;
5414 wxBrush *arg1 = (wxBrush *) 0 ;
5415 void *argp1 = 0 ;
5416 int res1 = 0 ;
5417 PyObject *swig_obj[1] ;
5418
5419 if (!args) SWIG_fail;
5420 swig_obj[0] = args;
5421 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5422 if (!SWIG_IsOK(res1)) {
5423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5424 }
5425 arg1 = reinterpret_cast< wxBrush * >(argp1);
5426 {
5427 PyThreadState* __tstate = wxPyBeginAllowThreads();
5428 delete arg1;
5429
5430 wxPyEndAllowThreads(__tstate);
5431 if (PyErr_Occurred()) SWIG_fail;
5432 }
5433 resultobj = SWIG_Py_Void();
5434 return resultobj;
5435 fail:
5436 return NULL;
5437 }
5438
5439
5440 SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5441 PyObject *resultobj = 0;
5442 wxBrush *arg1 = (wxBrush *) 0 ;
5443 wxColour *arg2 = 0 ;
5444 void *argp1 = 0 ;
5445 int res1 = 0 ;
5446 wxColour temp2 ;
5447 PyObject * obj0 = 0 ;
5448 PyObject * obj1 = 0 ;
5449 char * kwnames[] = {
5450 (char *) "self",(char *) "col", NULL
5451 };
5452
5453 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5454 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5455 if (!SWIG_IsOK(res1)) {
5456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5457 }
5458 arg1 = reinterpret_cast< wxBrush * >(argp1);
5459 {
5460 arg2 = &temp2;
5461 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5462 }
5463 {
5464 PyThreadState* __tstate = wxPyBeginAllowThreads();
5465 (arg1)->SetColour((wxColour const &)*arg2);
5466 wxPyEndAllowThreads(__tstate);
5467 if (PyErr_Occurred()) SWIG_fail;
5468 }
5469 resultobj = SWIG_Py_Void();
5470 return resultobj;
5471 fail:
5472 return NULL;
5473 }
5474
5475
5476 SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5477 PyObject *resultobj = 0;
5478 wxBrush *arg1 = (wxBrush *) 0 ;
5479 int arg2 ;
5480 void *argp1 = 0 ;
5481 int res1 = 0 ;
5482 int val2 ;
5483 int ecode2 = 0 ;
5484 PyObject * obj0 = 0 ;
5485 PyObject * obj1 = 0 ;
5486 char * kwnames[] = {
5487 (char *) "self",(char *) "style", NULL
5488 };
5489
5490 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5491 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5492 if (!SWIG_IsOK(res1)) {
5493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5494 }
5495 arg1 = reinterpret_cast< wxBrush * >(argp1);
5496 ecode2 = SWIG_AsVal_int(obj1, &val2);
5497 if (!SWIG_IsOK(ecode2)) {
5498 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5499 }
5500 arg2 = static_cast< int >(val2);
5501 {
5502 PyThreadState* __tstate = wxPyBeginAllowThreads();
5503 (arg1)->SetStyle(arg2);
5504 wxPyEndAllowThreads(__tstate);
5505 if (PyErr_Occurred()) SWIG_fail;
5506 }
5507 resultobj = SWIG_Py_Void();
5508 return resultobj;
5509 fail:
5510 return NULL;
5511 }
5512
5513
5514 SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5515 PyObject *resultobj = 0;
5516 wxBrush *arg1 = (wxBrush *) 0 ;
5517 wxBitmap *arg2 = 0 ;
5518 void *argp1 = 0 ;
5519 int res1 = 0 ;
5520 void *argp2 = 0 ;
5521 int res2 = 0 ;
5522 PyObject * obj0 = 0 ;
5523 PyObject * obj1 = 0 ;
5524 char * kwnames[] = {
5525 (char *) "self",(char *) "stipple", NULL
5526 };
5527
5528 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5529 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5530 if (!SWIG_IsOK(res1)) {
5531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5532 }
5533 arg1 = reinterpret_cast< wxBrush * >(argp1);
5534 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5535 if (!SWIG_IsOK(res2)) {
5536 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5537 }
5538 if (!argp2) {
5539 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5540 }
5541 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5542 {
5543 PyThreadState* __tstate = wxPyBeginAllowThreads();
5544 (arg1)->SetStipple((wxBitmap const &)*arg2);
5545 wxPyEndAllowThreads(__tstate);
5546 if (PyErr_Occurred()) SWIG_fail;
5547 }
5548 resultobj = SWIG_Py_Void();
5549 return resultobj;
5550 fail:
5551 return NULL;
5552 }
5553
5554
5555 SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5556 PyObject *resultobj = 0;
5557 wxBrush *arg1 = (wxBrush *) 0 ;
5558 wxColour result;
5559 void *argp1 = 0 ;
5560 int res1 = 0 ;
5561 PyObject *swig_obj[1] ;
5562
5563 if (!args) SWIG_fail;
5564 swig_obj[0] = args;
5565 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5566 if (!SWIG_IsOK(res1)) {
5567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5568 }
5569 arg1 = reinterpret_cast< wxBrush * >(argp1);
5570 {
5571 PyThreadState* __tstate = wxPyBeginAllowThreads();
5572 result = ((wxBrush const *)arg1)->GetColour();
5573 wxPyEndAllowThreads(__tstate);
5574 if (PyErr_Occurred()) SWIG_fail;
5575 }
5576 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5577 return resultobj;
5578 fail:
5579 return NULL;
5580 }
5581
5582
5583 SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5584 PyObject *resultobj = 0;
5585 wxBrush *arg1 = (wxBrush *) 0 ;
5586 int result;
5587 void *argp1 = 0 ;
5588 int res1 = 0 ;
5589 PyObject *swig_obj[1] ;
5590
5591 if (!args) SWIG_fail;
5592 swig_obj[0] = args;
5593 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5594 if (!SWIG_IsOK(res1)) {
5595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5596 }
5597 arg1 = reinterpret_cast< wxBrush * >(argp1);
5598 {
5599 PyThreadState* __tstate = wxPyBeginAllowThreads();
5600 result = (int)((wxBrush const *)arg1)->GetStyle();
5601 wxPyEndAllowThreads(__tstate);
5602 if (PyErr_Occurred()) SWIG_fail;
5603 }
5604 resultobj = SWIG_From_int(static_cast< int >(result));
5605 return resultobj;
5606 fail:
5607 return NULL;
5608 }
5609
5610
5611 SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5612 PyObject *resultobj = 0;
5613 wxBrush *arg1 = (wxBrush *) 0 ;
5614 wxBitmap *result = 0 ;
5615 void *argp1 = 0 ;
5616 int res1 = 0 ;
5617 PyObject *swig_obj[1] ;
5618
5619 if (!args) SWIG_fail;
5620 swig_obj[0] = args;
5621 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5622 if (!SWIG_IsOK(res1)) {
5623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
5624 }
5625 arg1 = reinterpret_cast< wxBrush * >(argp1);
5626 {
5627 PyThreadState* __tstate = wxPyBeginAllowThreads();
5628 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
5629 wxPyEndAllowThreads(__tstate);
5630 if (PyErr_Occurred()) SWIG_fail;
5631 }
5632 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5633 return resultobj;
5634 fail:
5635 return NULL;
5636 }
5637
5638
5639 SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5640 PyObject *resultobj = 0;
5641 wxBrush *arg1 = (wxBrush *) 0 ;
5642 bool result;
5643 void *argp1 = 0 ;
5644 int res1 = 0 ;
5645 PyObject *swig_obj[1] ;
5646
5647 if (!args) SWIG_fail;
5648 swig_obj[0] = args;
5649 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5650 if (!SWIG_IsOK(res1)) {
5651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
5652 }
5653 arg1 = reinterpret_cast< wxBrush * >(argp1);
5654 {
5655 PyThreadState* __tstate = wxPyBeginAllowThreads();
5656 result = (bool)((wxBrush const *)arg1)->IsHatch();
5657 wxPyEndAllowThreads(__tstate);
5658 if (PyErr_Occurred()) SWIG_fail;
5659 }
5660 {
5661 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5662 }
5663 return resultobj;
5664 fail:
5665 return NULL;
5666 }
5667
5668
5669 SWIGINTERN PyObject *_wrap_Brush_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5670 PyObject *resultobj = 0;
5671 wxBrush *arg1 = (wxBrush *) 0 ;
5672 bool result;
5673 void *argp1 = 0 ;
5674 int res1 = 0 ;
5675 PyObject *swig_obj[1] ;
5676
5677 if (!args) SWIG_fail;
5678 swig_obj[0] = args;
5679 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5680 if (!SWIG_IsOK(res1)) {
5681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_Ok" "', expected argument " "1"" of type '" "wxBrush *""'");
5682 }
5683 arg1 = reinterpret_cast< wxBrush * >(argp1);
5684 {
5685 PyThreadState* __tstate = wxPyBeginAllowThreads();
5686 result = (bool)(arg1)->Ok();
5687 wxPyEndAllowThreads(__tstate);
5688 if (PyErr_Occurred()) SWIG_fail;
5689 }
5690 {
5691 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5692 }
5693 return resultobj;
5694 fail:
5695 return NULL;
5696 }
5697
5698
5699 SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5700 PyObject *obj;
5701 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5702 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
5703 return SWIG_Py_Void();
5704 }
5705
5706 SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5707 return SWIG_Python_InitShadowInstance(args);
5708 }
5709
5710 SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5711 PyObject *resultobj = 0;
5712 wxString *arg1 = 0 ;
5713 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
5714 wxBitmap *result = 0 ;
5715 bool temp1 = false ;
5716 int val2 ;
5717 int ecode2 = 0 ;
5718 PyObject * obj0 = 0 ;
5719 PyObject * obj1 = 0 ;
5720 char * kwnames[] = {
5721 (char *) "name",(char *) "type", NULL
5722 };
5723
5724 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
5725 {
5726 arg1 = wxString_in_helper(obj0);
5727 if (arg1 == NULL) SWIG_fail;
5728 temp1 = true;
5729 }
5730 if (obj1) {
5731 ecode2 = SWIG_AsVal_int(obj1, &val2);
5732 if (!SWIG_IsOK(ecode2)) {
5733 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
5734 }
5735 arg2 = static_cast< wxBitmapType >(val2);
5736 }
5737 {
5738 if (!wxPyCheckForApp()) SWIG_fail;
5739 PyThreadState* __tstate = wxPyBeginAllowThreads();
5740 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
5741 wxPyEndAllowThreads(__tstate);
5742 if (PyErr_Occurred()) SWIG_fail;
5743 }
5744 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
5745 {
5746 if (temp1)
5747 delete arg1;
5748 }
5749 return resultobj;
5750 fail:
5751 {
5752 if (temp1)
5753 delete arg1;
5754 }
5755 return NULL;
5756 }
5757
5758
5759 SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5760 PyObject *resultobj = 0;
5761 wxBitmap *arg1 = (wxBitmap *) 0 ;
5762 void *argp1 = 0 ;
5763 int res1 = 0 ;
5764 PyObject *swig_obj[1] ;
5765
5766 if (!args) SWIG_fail;
5767 swig_obj[0] = args;
5768 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
5769 if (!SWIG_IsOK(res1)) {
5770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
5771 }
5772 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5773 {
5774 delete arg1;
5775
5776 if (PyErr_Occurred()) SWIG_fail;
5777 }
5778 resultobj = SWIG_Py_Void();
5779 return resultobj;
5780 fail:
5781 return NULL;
5782 }
5783
5784
5785 SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5786 PyObject *resultobj = 0;
5787 int arg1 ;
5788 int arg2 ;
5789 int arg3 = (int) -1 ;
5790 wxBitmap *result = 0 ;
5791 int val1 ;
5792 int ecode1 = 0 ;
5793 int val2 ;
5794 int ecode2 = 0 ;
5795 int val3 ;
5796 int ecode3 = 0 ;
5797 PyObject * obj0 = 0 ;
5798 PyObject * obj1 = 0 ;
5799 PyObject * obj2 = 0 ;
5800 char * kwnames[] = {
5801 (char *) "width",(char *) "height",(char *) "depth", NULL
5802 };
5803
5804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5805 ecode1 = SWIG_AsVal_int(obj0, &val1);
5806 if (!SWIG_IsOK(ecode1)) {
5807 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
5808 }
5809 arg1 = static_cast< int >(val1);
5810 ecode2 = SWIG_AsVal_int(obj1, &val2);
5811 if (!SWIG_IsOK(ecode2)) {
5812 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
5813 }
5814 arg2 = static_cast< int >(val2);
5815 if (obj2) {
5816 ecode3 = SWIG_AsVal_int(obj2, &val3);
5817 if (!SWIG_IsOK(ecode3)) {
5818 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
5819 }
5820 arg3 = static_cast< int >(val3);
5821 }
5822 {
5823 if (!wxPyCheckForApp()) SWIG_fail;
5824 PyThreadState* __tstate = wxPyBeginAllowThreads();
5825 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
5826 wxPyEndAllowThreads(__tstate);
5827 if (PyErr_Occurred()) SWIG_fail;
5828 }
5829 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5830 return resultobj;
5831 fail:
5832 return NULL;
5833 }
5834
5835
5836 SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5837 PyObject *resultobj = 0;
5838 wxIcon *arg1 = 0 ;
5839 wxBitmap *result = 0 ;
5840 void *argp1 = 0 ;
5841 int res1 = 0 ;
5842 PyObject * obj0 = 0 ;
5843 char * kwnames[] = {
5844 (char *) "icon", NULL
5845 };
5846
5847 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
5848 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
5849 if (!SWIG_IsOK(res1)) {
5850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5851 }
5852 if (!argp1) {
5853 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5854 }
5855 arg1 = reinterpret_cast< wxIcon * >(argp1);
5856 {
5857 if (!wxPyCheckForApp()) SWIG_fail;
5858 PyThreadState* __tstate = wxPyBeginAllowThreads();
5859 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
5860 wxPyEndAllowThreads(__tstate);
5861 if (PyErr_Occurred()) SWIG_fail;
5862 }
5863 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5864 return resultobj;
5865 fail:
5866 return NULL;
5867 }
5868
5869
5870 SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5871 PyObject *resultobj = 0;
5872 wxImage *arg1 = 0 ;
5873 int arg2 = (int) -1 ;
5874 wxBitmap *result = 0 ;
5875 void *argp1 = 0 ;
5876 int res1 = 0 ;
5877 int val2 ;
5878 int ecode2 = 0 ;
5879 PyObject * obj0 = 0 ;
5880 PyObject * obj1 = 0 ;
5881 char * kwnames[] = {
5882 (char *) "image",(char *) "depth", NULL
5883 };
5884
5885 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
5886 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
5887 if (!SWIG_IsOK(res1)) {
5888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
5889 }
5890 if (!argp1) {
5891 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
5892 }
5893 arg1 = reinterpret_cast< wxImage * >(argp1);
5894 if (obj1) {
5895 ecode2 = SWIG_AsVal_int(obj1, &val2);
5896 if (!SWIG_IsOK(ecode2)) {
5897 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
5898 }
5899 arg2 = static_cast< int >(val2);
5900 }
5901 {
5902 if (!wxPyCheckForApp()) SWIG_fail;
5903 PyThreadState* __tstate = wxPyBeginAllowThreads();
5904 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
5905 wxPyEndAllowThreads(__tstate);
5906 if (PyErr_Occurred()) SWIG_fail;
5907 }
5908 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5909 return resultobj;
5910 fail:
5911 return NULL;
5912 }
5913
5914
5915 SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5916 PyObject *resultobj = 0;
5917 PyObject *arg1 = (PyObject *) 0 ;
5918 wxBitmap *result = 0 ;
5919 PyObject * obj0 = 0 ;
5920 char * kwnames[] = {
5921 (char *) "listOfStrings", NULL
5922 };
5923
5924 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
5925 arg1 = obj0;
5926 {
5927 if (!wxPyCheckForApp()) SWIG_fail;
5928 PyThreadState* __tstate = wxPyBeginAllowThreads();
5929 result = (wxBitmap *)new_wxBitmap(arg1);
5930 wxPyEndAllowThreads(__tstate);
5931 if (PyErr_Occurred()) SWIG_fail;
5932 }
5933 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5934 return resultobj;
5935 fail:
5936 return NULL;
5937 }
5938
5939
5940 SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5941 PyObject *resultobj = 0;
5942 PyObject *arg1 = (PyObject *) 0 ;
5943 int arg2 ;
5944 int arg3 ;
5945 int arg4 = (int) 1 ;
5946 wxBitmap *result = 0 ;
5947 int val2 ;
5948 int ecode2 = 0 ;
5949 int val3 ;
5950 int ecode3 = 0 ;
5951 int val4 ;
5952 int ecode4 = 0 ;
5953 PyObject * obj0 = 0 ;
5954 PyObject * obj1 = 0 ;
5955 PyObject * obj2 = 0 ;
5956 PyObject * obj3 = 0 ;
5957 char * kwnames[] = {
5958 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
5959 };
5960
5961 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
5962 arg1 = obj0;
5963 ecode2 = SWIG_AsVal_int(obj1, &val2);
5964 if (!SWIG_IsOK(ecode2)) {
5965 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
5966 }
5967 arg2 = static_cast< int >(val2);
5968 ecode3 = SWIG_AsVal_int(obj2, &val3);
5969 if (!SWIG_IsOK(ecode3)) {
5970 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
5971 }
5972 arg3 = static_cast< int >(val3);
5973 if (obj3) {
5974 ecode4 = SWIG_AsVal_int(obj3, &val4);
5975 if (!SWIG_IsOK(ecode4)) {
5976 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
5977 }
5978 arg4 = static_cast< int >(val4);
5979 }
5980 {
5981 if (!wxPyCheckForApp()) SWIG_fail;
5982 PyThreadState* __tstate = wxPyBeginAllowThreads();
5983 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
5984 wxPyEndAllowThreads(__tstate);
5985 if (PyErr_Occurred()) SWIG_fail;
5986 }
5987 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5988 return resultobj;
5989 fail:
5990 return NULL;
5991 }
5992
5993
5994 SWIGINTERN PyObject *_wrap_Bitmap_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5995 PyObject *resultobj = 0;
5996 wxBitmap *arg1 = (wxBitmap *) 0 ;
5997 long result;
5998 void *argp1 = 0 ;
5999 int res1 = 0 ;
6000 PyObject *swig_obj[1] ;
6001
6002 if (!args) SWIG_fail;
6003 swig_obj[0] = args;
6004 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6005 if (!SWIG_IsOK(res1)) {
6006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHandle" "', expected argument " "1"" of type '" "wxBitmap *""'");
6007 }
6008 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6009 {
6010 result = (long)(arg1)->GetHandle();
6011 if (PyErr_Occurred()) SWIG_fail;
6012 }
6013 resultobj = SWIG_From_long(static_cast< long >(result));
6014 return resultobj;
6015 fail:
6016 return NULL;
6017 }
6018
6019
6020 SWIGINTERN PyObject *_wrap_Bitmap_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6021 PyObject *resultobj = 0;
6022 wxBitmap *arg1 = (wxBitmap *) 0 ;
6023 long arg2 ;
6024 void *argp1 = 0 ;
6025 int res1 = 0 ;
6026 long val2 ;
6027 int ecode2 = 0 ;
6028 PyObject * obj0 = 0 ;
6029 PyObject * obj1 = 0 ;
6030 char * kwnames[] = {
6031 (char *) "self",(char *) "handle", NULL
6032 };
6033
6034 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
6035 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6036 if (!SWIG_IsOK(res1)) {
6037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHandle" "', expected argument " "1"" of type '" "wxBitmap *""'");
6038 }
6039 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6040 ecode2 = SWIG_AsVal_long(obj1, &val2);
6041 if (!SWIG_IsOK(ecode2)) {
6042 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHandle" "', expected argument " "2"" of type '" "long""'");
6043 }
6044 arg2 = static_cast< long >(val2);
6045 {
6046 wxBitmap_SetHandle(arg1,arg2);
6047 if (PyErr_Occurred()) SWIG_fail;
6048 }
6049 resultobj = SWIG_Py_Void();
6050 return resultobj;
6051 fail:
6052 return NULL;
6053 }
6054
6055
6056 SWIGINTERN PyObject *_wrap_Bitmap_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6057 PyObject *resultobj = 0;
6058 wxBitmap *arg1 = (wxBitmap *) 0 ;
6059 bool result;
6060 void *argp1 = 0 ;
6061 int res1 = 0 ;
6062 PyObject *swig_obj[1] ;
6063
6064 if (!args) SWIG_fail;
6065 swig_obj[0] = args;
6066 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6067 if (!SWIG_IsOK(res1)) {
6068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_Ok" "', expected argument " "1"" of type '" "wxBitmap *""'");
6069 }
6070 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6071 {
6072 result = (bool)(arg1)->Ok();
6073 if (PyErr_Occurred()) SWIG_fail;
6074 }
6075 {
6076 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6077 }
6078 return resultobj;
6079 fail:
6080 return NULL;
6081 }
6082
6083
6084 SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6085 PyObject *resultobj = 0;
6086 wxBitmap *arg1 = (wxBitmap *) 0 ;
6087 int result;
6088 void *argp1 = 0 ;
6089 int res1 = 0 ;
6090 PyObject *swig_obj[1] ;
6091
6092 if (!args) SWIG_fail;
6093 swig_obj[0] = args;
6094 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6095 if (!SWIG_IsOK(res1)) {
6096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6097 }
6098 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6099 {
6100 result = (int)(arg1)->GetWidth();
6101 if (PyErr_Occurred()) SWIG_fail;
6102 }
6103 resultobj = SWIG_From_int(static_cast< int >(result));
6104 return resultobj;
6105 fail:
6106 return NULL;
6107 }
6108
6109
6110 SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6111 PyObject *resultobj = 0;
6112 wxBitmap *arg1 = (wxBitmap *) 0 ;
6113 int result;
6114 void *argp1 = 0 ;
6115 int res1 = 0 ;
6116 PyObject *swig_obj[1] ;
6117
6118 if (!args) SWIG_fail;
6119 swig_obj[0] = args;
6120 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6121 if (!SWIG_IsOK(res1)) {
6122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6123 }
6124 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6125 {
6126 result = (int)(arg1)->GetHeight();
6127 if (PyErr_Occurred()) SWIG_fail;
6128 }
6129 resultobj = SWIG_From_int(static_cast< int >(result));
6130 return resultobj;
6131 fail:
6132 return NULL;
6133 }
6134
6135
6136 SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6137 PyObject *resultobj = 0;
6138 wxBitmap *arg1 = (wxBitmap *) 0 ;
6139 int result;
6140 void *argp1 = 0 ;
6141 int res1 = 0 ;
6142 PyObject *swig_obj[1] ;
6143
6144 if (!args) SWIG_fail;
6145 swig_obj[0] = args;
6146 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6147 if (!SWIG_IsOK(res1)) {
6148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6149 }
6150 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6151 {
6152 result = (int)(arg1)->GetDepth();
6153 if (PyErr_Occurred()) SWIG_fail;
6154 }
6155 resultobj = SWIG_From_int(static_cast< int >(result));
6156 return resultobj;
6157 fail:
6158 return NULL;
6159 }
6160
6161
6162 SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6163 PyObject *resultobj = 0;
6164 wxBitmap *arg1 = (wxBitmap *) 0 ;
6165 wxSize result;
6166 void *argp1 = 0 ;
6167 int res1 = 0 ;
6168 PyObject *swig_obj[1] ;
6169
6170 if (!args) SWIG_fail;
6171 swig_obj[0] = args;
6172 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6173 if (!SWIG_IsOK(res1)) {
6174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6175 }
6176 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6177 {
6178 result = wxBitmap_GetSize(arg1);
6179 if (PyErr_Occurred()) SWIG_fail;
6180 }
6181 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6182 return resultobj;
6183 fail:
6184 return NULL;
6185 }
6186
6187
6188 SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6189 PyObject *resultobj = 0;
6190 wxBitmap *arg1 = (wxBitmap *) 0 ;
6191 SwigValueWrapper<wxImage > result;
6192 void *argp1 = 0 ;
6193 int res1 = 0 ;
6194 PyObject *swig_obj[1] ;
6195
6196 if (!args) SWIG_fail;
6197 swig_obj[0] = args;
6198 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6199 if (!SWIG_IsOK(res1)) {
6200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6201 }
6202 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6203 {
6204 result = ((wxBitmap const *)arg1)->ConvertToImage();
6205 if (PyErr_Occurred()) SWIG_fail;
6206 }
6207 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
6208 return resultobj;
6209 fail:
6210 return NULL;
6211 }
6212
6213
6214 SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6215 PyObject *resultobj = 0;
6216 wxBitmap *arg1 = (wxBitmap *) 0 ;
6217 wxMask *result = 0 ;
6218 void *argp1 = 0 ;
6219 int res1 = 0 ;
6220 PyObject *swig_obj[1] ;
6221
6222 if (!args) SWIG_fail;
6223 swig_obj[0] = args;
6224 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6225 if (!SWIG_IsOK(res1)) {
6226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6227 }
6228 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6229 {
6230 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
6231 if (PyErr_Occurred()) SWIG_fail;
6232 }
6233 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
6234 return resultobj;
6235 fail:
6236 return NULL;
6237 }
6238
6239
6240 SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6241 PyObject *resultobj = 0;
6242 wxBitmap *arg1 = (wxBitmap *) 0 ;
6243 wxMask *arg2 = (wxMask *) 0 ;
6244 void *argp1 = 0 ;
6245 int res1 = 0 ;
6246 int res2 = 0 ;
6247 PyObject * obj0 = 0 ;
6248 PyObject * obj1 = 0 ;
6249 char * kwnames[] = {
6250 (char *) "self",(char *) "mask", NULL
6251 };
6252
6253 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
6254 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6255 if (!SWIG_IsOK(res1)) {
6256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
6257 }
6258 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6259 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6260 if (!SWIG_IsOK(res2)) {
6261 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
6262 }
6263 {
6264 (arg1)->SetMask(arg2);
6265 if (PyErr_Occurred()) SWIG_fail;
6266 }
6267 resultobj = SWIG_Py_Void();
6268 return resultobj;
6269 fail:
6270 return NULL;
6271 }
6272
6273
6274 SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6275 PyObject *resultobj = 0;
6276 wxBitmap *arg1 = (wxBitmap *) 0 ;
6277 wxColour *arg2 = 0 ;
6278 void *argp1 = 0 ;
6279 int res1 = 0 ;
6280 wxColour temp2 ;
6281 PyObject * obj0 = 0 ;
6282 PyObject * obj1 = 0 ;
6283 char * kwnames[] = {
6284 (char *) "self",(char *) "colour", NULL
6285 };
6286
6287 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
6288 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6289 if (!SWIG_IsOK(res1)) {
6290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
6291 }
6292 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6293 {
6294 arg2 = &temp2;
6295 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6296 }
6297 {
6298 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
6299 if (PyErr_Occurred()) SWIG_fail;
6300 }
6301 resultobj = SWIG_Py_Void();
6302 return resultobj;
6303 fail:
6304 return NULL;
6305 }
6306
6307
6308 SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6309 PyObject *resultobj = 0;
6310 wxBitmap *arg1 = (wxBitmap *) 0 ;
6311 wxRect *arg2 = 0 ;
6312 SwigValueWrapper<wxBitmap > result;
6313 void *argp1 = 0 ;
6314 int res1 = 0 ;
6315 wxRect temp2 ;
6316 PyObject * obj0 = 0 ;
6317 PyObject * obj1 = 0 ;
6318 char * kwnames[] = {
6319 (char *) "self",(char *) "rect", NULL
6320 };
6321
6322 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6323 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6324 if (!SWIG_IsOK(res1)) {
6325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6326 }
6327 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6328 {
6329 arg2 = &temp2;
6330 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6331 }
6332 {
6333 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
6334 if (PyErr_Occurred()) SWIG_fail;
6335 }
6336 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6337 return resultobj;
6338 fail:
6339 return NULL;
6340 }
6341
6342
6343 SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6344 PyObject *resultobj = 0;
6345 wxBitmap *arg1 = (wxBitmap *) 0 ;
6346 wxString *arg2 = 0 ;
6347 wxBitmapType arg3 ;
6348 wxPalette *arg4 = (wxPalette *) NULL ;
6349 bool result;
6350 void *argp1 = 0 ;
6351 int res1 = 0 ;
6352 bool temp2 = false ;
6353 int val3 ;
6354 int ecode3 = 0 ;
6355 void *argp4 = 0 ;
6356 int res4 = 0 ;
6357 PyObject * obj0 = 0 ;
6358 PyObject * obj1 = 0 ;
6359 PyObject * obj2 = 0 ;
6360 PyObject * obj3 = 0 ;
6361 char * kwnames[] = {
6362 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
6363 };
6364
6365 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6366 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6367 if (!SWIG_IsOK(res1)) {
6368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6369 }
6370 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6371 {
6372 arg2 = wxString_in_helper(obj1);
6373 if (arg2 == NULL) SWIG_fail;
6374 temp2 = true;
6375 }
6376 ecode3 = SWIG_AsVal_int(obj2, &val3);
6377 if (!SWIG_IsOK(ecode3)) {
6378 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6379 }
6380 arg3 = static_cast< wxBitmapType >(val3);
6381 if (obj3) {
6382 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
6383 if (!SWIG_IsOK(res4)) {
6384 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
6385 }
6386 arg4 = reinterpret_cast< wxPalette * >(argp4);
6387 }
6388 {
6389 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
6390 if (PyErr_Occurred()) SWIG_fail;
6391 }
6392 {
6393 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6394 }
6395 {
6396 if (temp2)
6397 delete arg2;
6398 }
6399 return resultobj;
6400 fail:
6401 {
6402 if (temp2)
6403 delete arg2;
6404 }
6405 return NULL;
6406 }
6407
6408
6409 SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6410 PyObject *resultobj = 0;
6411 wxBitmap *arg1 = (wxBitmap *) 0 ;
6412 wxString *arg2 = 0 ;
6413 wxBitmapType arg3 ;
6414 bool result;
6415 void *argp1 = 0 ;
6416 int res1 = 0 ;
6417 bool temp2 = false ;
6418 int val3 ;
6419 int ecode3 = 0 ;
6420 PyObject * obj0 = 0 ;
6421 PyObject * obj1 = 0 ;
6422 PyObject * obj2 = 0 ;
6423 char * kwnames[] = {
6424 (char *) "self",(char *) "name",(char *) "type", NULL
6425 };
6426
6427 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6428 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6429 if (!SWIG_IsOK(res1)) {
6430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6431 }
6432 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6433 {
6434 arg2 = wxString_in_helper(obj1);
6435 if (arg2 == NULL) SWIG_fail;
6436 temp2 = true;
6437 }
6438 ecode3 = SWIG_AsVal_int(obj2, &val3);
6439 if (!SWIG_IsOK(ecode3)) {
6440 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6441 }
6442 arg3 = static_cast< wxBitmapType >(val3);
6443 {
6444 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
6445 if (PyErr_Occurred()) SWIG_fail;
6446 }
6447 {
6448 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6449 }
6450 {
6451 if (temp2)
6452 delete arg2;
6453 }
6454 return resultobj;
6455 fail:
6456 {
6457 if (temp2)
6458 delete arg2;
6459 }
6460 return NULL;
6461 }
6462
6463
6464 SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6465 PyObject *resultobj = 0;
6466 wxBitmap *arg1 = (wxBitmap *) 0 ;
6467 wxPalette *result = 0 ;
6468 void *argp1 = 0 ;
6469 int res1 = 0 ;
6470 PyObject *swig_obj[1] ;
6471
6472 if (!args) SWIG_fail;
6473 swig_obj[0] = args;
6474 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6475 if (!SWIG_IsOK(res1)) {
6476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6477 }
6478 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6479 {
6480 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
6481 if (PyErr_Occurred()) SWIG_fail;
6482 }
6483 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6484 return resultobj;
6485 fail:
6486 return NULL;
6487 }
6488
6489
6490 SWIGINTERN PyObject *_wrap_Bitmap_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6491 PyObject *resultobj = 0;
6492 wxBitmap *arg1 = (wxBitmap *) 0 ;
6493 wxPalette *arg2 = 0 ;
6494 void *argp1 = 0 ;
6495 int res1 = 0 ;
6496 void *argp2 = 0 ;
6497 int res2 = 0 ;
6498 PyObject * obj0 = 0 ;
6499 PyObject * obj1 = 0 ;
6500 char * kwnames[] = {
6501 (char *) "self",(char *) "palette", NULL
6502 };
6503
6504 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
6505 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6506 if (!SWIG_IsOK(res1)) {
6507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetPalette" "', expected argument " "1"" of type '" "wxBitmap *""'");
6508 }
6509 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6510 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
6511 if (!SWIG_IsOK(res2)) {
6512 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
6513 }
6514 if (!argp2) {
6515 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
6516 }
6517 arg2 = reinterpret_cast< wxPalette * >(argp2);
6518 {
6519 (arg1)->SetPalette((wxPalette const &)*arg2);
6520 if (PyErr_Occurred()) SWIG_fail;
6521 }
6522 resultobj = SWIG_Py_Void();
6523 return resultobj;
6524 fail:
6525 return NULL;
6526 }
6527
6528
6529 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6530 PyObject *resultobj = 0;
6531 wxBitmap *arg1 = (wxBitmap *) 0 ;
6532 wxIcon *arg2 = 0 ;
6533 bool result;
6534 void *argp1 = 0 ;
6535 int res1 = 0 ;
6536 void *argp2 = 0 ;
6537 int res2 = 0 ;
6538 PyObject * obj0 = 0 ;
6539 PyObject * obj1 = 0 ;
6540 char * kwnames[] = {
6541 (char *) "self",(char *) "icon", NULL
6542 };
6543
6544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6545 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6546 if (!SWIG_IsOK(res1)) {
6547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6548 }
6549 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6550 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6551 if (!SWIG_IsOK(res2)) {
6552 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6553 }
6554 if (!argp2) {
6555 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6556 }
6557 arg2 = reinterpret_cast< wxIcon * >(argp2);
6558 {
6559 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
6560 if (PyErr_Occurred()) SWIG_fail;
6561 }
6562 {
6563 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6564 }
6565 return resultobj;
6566 fail:
6567 return NULL;
6568 }
6569
6570
6571 SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6572 PyObject *resultobj = 0;
6573 wxBitmap *arg1 = (wxBitmap *) 0 ;
6574 int arg2 ;
6575 void *argp1 = 0 ;
6576 int res1 = 0 ;
6577 int val2 ;
6578 int ecode2 = 0 ;
6579 PyObject * obj0 = 0 ;
6580 PyObject * obj1 = 0 ;
6581 char * kwnames[] = {
6582 (char *) "self",(char *) "height", NULL
6583 };
6584
6585 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6586 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6587 if (!SWIG_IsOK(res1)) {
6588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6589 }
6590 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6591 ecode2 = SWIG_AsVal_int(obj1, &val2);
6592 if (!SWIG_IsOK(ecode2)) {
6593 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6594 }
6595 arg2 = static_cast< int >(val2);
6596 {
6597 (arg1)->SetHeight(arg2);
6598 if (PyErr_Occurred()) SWIG_fail;
6599 }
6600 resultobj = SWIG_Py_Void();
6601 return resultobj;
6602 fail:
6603 return NULL;
6604 }
6605
6606
6607 SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6608 PyObject *resultobj = 0;
6609 wxBitmap *arg1 = (wxBitmap *) 0 ;
6610 int arg2 ;
6611 void *argp1 = 0 ;
6612 int res1 = 0 ;
6613 int val2 ;
6614 int ecode2 = 0 ;
6615 PyObject * obj0 = 0 ;
6616 PyObject * obj1 = 0 ;
6617 char * kwnames[] = {
6618 (char *) "self",(char *) "width", NULL
6619 };
6620
6621 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6622 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6623 if (!SWIG_IsOK(res1)) {
6624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6625 }
6626 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6627 ecode2 = SWIG_AsVal_int(obj1, &val2);
6628 if (!SWIG_IsOK(ecode2)) {
6629 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6630 }
6631 arg2 = static_cast< int >(val2);
6632 {
6633 (arg1)->SetWidth(arg2);
6634 if (PyErr_Occurred()) SWIG_fail;
6635 }
6636 resultobj = SWIG_Py_Void();
6637 return resultobj;
6638 fail:
6639 return NULL;
6640 }
6641
6642
6643 SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6644 PyObject *resultobj = 0;
6645 wxBitmap *arg1 = (wxBitmap *) 0 ;
6646 int arg2 ;
6647 void *argp1 = 0 ;
6648 int res1 = 0 ;
6649 int val2 ;
6650 int ecode2 = 0 ;
6651 PyObject * obj0 = 0 ;
6652 PyObject * obj1 = 0 ;
6653 char * kwnames[] = {
6654 (char *) "self",(char *) "depth", NULL
6655 };
6656
6657 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6658 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6659 if (!SWIG_IsOK(res1)) {
6660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6661 }
6662 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6663 ecode2 = SWIG_AsVal_int(obj1, &val2);
6664 if (!SWIG_IsOK(ecode2)) {
6665 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6666 }
6667 arg2 = static_cast< int >(val2);
6668 {
6669 (arg1)->SetDepth(arg2);
6670 if (PyErr_Occurred()) SWIG_fail;
6671 }
6672 resultobj = SWIG_Py_Void();
6673 return resultobj;
6674 fail:
6675 return NULL;
6676 }
6677
6678
6679 SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6680 PyObject *resultobj = 0;
6681 wxBitmap *arg1 = (wxBitmap *) 0 ;
6682 wxSize *arg2 = 0 ;
6683 void *argp1 = 0 ;
6684 int res1 = 0 ;
6685 wxSize temp2 ;
6686 PyObject * obj0 = 0 ;
6687 PyObject * obj1 = 0 ;
6688 char * kwnames[] = {
6689 (char *) "self",(char *) "size", NULL
6690 };
6691
6692 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
6693 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6694 if (!SWIG_IsOK(res1)) {
6695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6696 }
6697 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6698 {
6699 arg2 = &temp2;
6700 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6701 }
6702 {
6703 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
6704 if (PyErr_Occurred()) SWIG_fail;
6705 }
6706 resultobj = SWIG_Py_Void();
6707 return resultobj;
6708 fail:
6709 return NULL;
6710 }
6711
6712
6713 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6714 PyObject *resultobj = 0;
6715 wxBitmap *arg1 = (wxBitmap *) 0 ;
6716 wxCursor *arg2 = 0 ;
6717 bool result;
6718 void *argp1 = 0 ;
6719 int res1 = 0 ;
6720 void *argp2 = 0 ;
6721 int res2 = 0 ;
6722 PyObject * obj0 = 0 ;
6723 PyObject * obj1 = 0 ;
6724 char * kwnames[] = {
6725 (char *) "self",(char *) "cursor", NULL
6726 };
6727
6728 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromCursor",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_CopyFromCursor" "', expected argument " "1"" of type '" "wxBitmap *""'");
6732 }
6733 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6734 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
6735 if (!SWIG_IsOK(res2)) {
6736 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromCursor" "', expected argument " "2"" of type '" "wxCursor const &""'");
6737 }
6738 if (!argp2) {
6739 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromCursor" "', expected argument " "2"" of type '" "wxCursor const &""'");
6740 }
6741 arg2 = reinterpret_cast< wxCursor * >(argp2);
6742 {
6743 result = (bool)(arg1)->CopyFromCursor((wxCursor const &)*arg2);
6744 if (PyErr_Occurred()) SWIG_fail;
6745 }
6746 {
6747 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6748 }
6749 return resultobj;
6750 fail:
6751 return NULL;
6752 }
6753
6754
6755 SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6756 PyObject *resultobj = 0;
6757 wxBitmap *arg1 = (wxBitmap *) 0 ;
6758 wxBitmap *arg2 = (wxBitmap *) 0 ;
6759 bool result;
6760 void *argp1 = 0 ;
6761 int res1 = 0 ;
6762 void *argp2 = 0 ;
6763 int res2 = 0 ;
6764 PyObject * obj0 = 0 ;
6765 PyObject * obj1 = 0 ;
6766 char * kwnames[] = {
6767 (char *) "self",(char *) "other", NULL
6768 };
6769
6770 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
6771 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6772 if (!SWIG_IsOK(res1)) {
6773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6774 }
6775 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6776 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6777 if (!SWIG_IsOK(res2)) {
6778 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6779 }
6780 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6781 {
6782 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
6783 if (PyErr_Occurred()) SWIG_fail;
6784 }
6785 {
6786 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6787 }
6788 return resultobj;
6789 fail:
6790 return NULL;
6791 }
6792
6793
6794 SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6795 PyObject *resultobj = 0;
6796 wxBitmap *arg1 = (wxBitmap *) 0 ;
6797 wxBitmap *arg2 = (wxBitmap *) 0 ;
6798 bool result;
6799 void *argp1 = 0 ;
6800 int res1 = 0 ;
6801 void *argp2 = 0 ;
6802 int res2 = 0 ;
6803 PyObject * obj0 = 0 ;
6804 PyObject * obj1 = 0 ;
6805 char * kwnames[] = {
6806 (char *) "self",(char *) "other", NULL
6807 };
6808
6809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
6810 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6811 if (!SWIG_IsOK(res1)) {
6812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6813 }
6814 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6815 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6816 if (!SWIG_IsOK(res2)) {
6817 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6818 }
6819 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6820 {
6821 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
6822 if (PyErr_Occurred()) SWIG_fail;
6823 }
6824 {
6825 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6826 }
6827 return resultobj;
6828 fail:
6829 return NULL;
6830 }
6831
6832
6833 SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6834 PyObject *obj;
6835 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6836 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
6837 return SWIG_Py_Void();
6838 }
6839
6840 SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6841 return SWIG_Python_InitShadowInstance(args);
6842 }
6843
6844 SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6845 PyObject *resultobj = 0;
6846 int arg1 ;
6847 int arg2 ;
6848 buffer arg3 ;
6849 int arg4 ;
6850 buffer arg5 ;
6851 int arg6 ;
6852 wxBitmap *result = 0 ;
6853 int val1 ;
6854 int ecode1 = 0 ;
6855 int val2 ;
6856 int ecode2 = 0 ;
6857 PyObject * obj0 = 0 ;
6858 PyObject * obj1 = 0 ;
6859 PyObject * obj2 = 0 ;
6860 PyObject * obj3 = 0 ;
6861 char * kwnames[] = {
6862 (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
6863 };
6864
6865 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6866 ecode1 = SWIG_AsVal_int(obj0, &val1);
6867 if (!SWIG_IsOK(ecode1)) {
6868 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'");
6869 }
6870 arg1 = static_cast< int >(val1);
6871 ecode2 = SWIG_AsVal_int(obj1, &val2);
6872 if (!SWIG_IsOK(ecode2)) {
6873 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'");
6874 }
6875 arg2 = static_cast< int >(val2);
6876 {
6877 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &arg4) == -1) SWIG_fail;
6878 }
6879 {
6880 if (obj3 != Py_None) {
6881 if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &arg6) == -1) SWIG_fail;
6882 }
6883 }
6884 {
6885 result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6);
6886 if (PyErr_Occurred()) SWIG_fail;
6887 }
6888 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6889 return resultobj;
6890 fail:
6891 return NULL;
6892 }
6893
6894
6895 SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6896 PyObject *resultobj = 0;
6897 int arg1 ;
6898 int arg2 ;
6899 buffer arg3 ;
6900 int arg4 ;
6901 wxBitmap *result = 0 ;
6902 int val1 ;
6903 int ecode1 = 0 ;
6904 int val2 ;
6905 int ecode2 = 0 ;
6906 PyObject * obj0 = 0 ;
6907 PyObject * obj1 = 0 ;
6908 PyObject * obj2 = 0 ;
6909 char * kwnames[] = {
6910 (char *) "width",(char *) "height",(char *) "data", NULL
6911 };
6912
6913 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6914 ecode1 = SWIG_AsVal_int(obj0, &val1);
6915 if (!SWIG_IsOK(ecode1)) {
6916 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'");
6917 }
6918 arg1 = static_cast< int >(val1);
6919 ecode2 = SWIG_AsVal_int(obj1, &val2);
6920 if (!SWIG_IsOK(ecode2)) {
6921 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'");
6922 }
6923 arg2 = static_cast< int >(val2);
6924 {
6925 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &arg4) == -1) SWIG_fail;
6926 }
6927 {
6928 result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4);
6929 if (PyErr_Occurred()) SWIG_fail;
6930 }
6931 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6932 return resultobj;
6933 fail:
6934 return NULL;
6935 }
6936
6937
6938 SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6939 PyObject *resultobj = 0;
6940 int arg1 ;
6941 int arg2 ;
6942 buffer arg3 ;
6943 int arg4 ;
6944 wxBitmap *result = 0 ;
6945 int val1 ;
6946 int ecode1 = 0 ;
6947 int val2 ;
6948 int ecode2 = 0 ;
6949 PyObject * obj0 = 0 ;
6950 PyObject * obj1 = 0 ;
6951 PyObject * obj2 = 0 ;
6952 char * kwnames[] = {
6953 (char *) "width",(char *) "height",(char *) "data", NULL
6954 };
6955
6956 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6957 ecode1 = SWIG_AsVal_int(obj0, &val1);
6958 if (!SWIG_IsOK(ecode1)) {
6959 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'");
6960 }
6961 arg1 = static_cast< int >(val1);
6962 ecode2 = SWIG_AsVal_int(obj1, &val2);
6963 if (!SWIG_IsOK(ecode2)) {
6964 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'");
6965 }
6966 arg2 = static_cast< int >(val2);
6967 {
6968 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &arg4) == -1) SWIG_fail;
6969 }
6970 {
6971 result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4);
6972 if (PyErr_Occurred()) SWIG_fail;
6973 }
6974 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6975 return resultobj;
6976 fail:
6977 return NULL;
6978 }
6979
6980
6981 SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6982 PyObject *resultobj = 0;
6983 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
6984 wxPoint result;
6985 void *argp1 = 0 ;
6986 int res1 = 0 ;
6987 PyObject *swig_obj[1] ;
6988
6989 if (!args) SWIG_fail;
6990 swig_obj[0] = args;
6991 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
6992 if (!SWIG_IsOK(res1)) {
6993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
6994 }
6995 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
6996 {
6997 result = ((wxPixelDataBase const *)arg1)->GetOrigin();
6998 if (PyErr_Occurred()) SWIG_fail;
6999 }
7000 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
7001 return resultobj;
7002 fail:
7003 return NULL;
7004 }
7005
7006
7007 SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7008 PyObject *resultobj = 0;
7009 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7010 int result;
7011 void *argp1 = 0 ;
7012 int res1 = 0 ;
7013 PyObject *swig_obj[1] ;
7014
7015 if (!args) SWIG_fail;
7016 swig_obj[0] = args;
7017 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7018 if (!SWIG_IsOK(res1)) {
7019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7020 }
7021 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7022 {
7023 result = (int)((wxPixelDataBase const *)arg1)->GetWidth();
7024 if (PyErr_Occurred()) SWIG_fail;
7025 }
7026 resultobj = SWIG_From_int(static_cast< int >(result));
7027 return resultobj;
7028 fail:
7029 return NULL;
7030 }
7031
7032
7033 SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7034 PyObject *resultobj = 0;
7035 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7036 int result;
7037 void *argp1 = 0 ;
7038 int res1 = 0 ;
7039 PyObject *swig_obj[1] ;
7040
7041 if (!args) SWIG_fail;
7042 swig_obj[0] = args;
7043 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7044 if (!SWIG_IsOK(res1)) {
7045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7046 }
7047 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7048 {
7049 result = (int)((wxPixelDataBase const *)arg1)->GetHeight();
7050 if (PyErr_Occurred()) SWIG_fail;
7051 }
7052 resultobj = SWIG_From_int(static_cast< int >(result));
7053 return resultobj;
7054 fail:
7055 return NULL;
7056 }
7057
7058
7059 SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7060 PyObject *resultobj = 0;
7061 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7062 wxSize result;
7063 void *argp1 = 0 ;
7064 int res1 = 0 ;
7065 PyObject *swig_obj[1] ;
7066
7067 if (!args) SWIG_fail;
7068 swig_obj[0] = args;
7069 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7070 if (!SWIG_IsOK(res1)) {
7071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7072 }
7073 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7074 {
7075 result = ((wxPixelDataBase const *)arg1)->GetSize();
7076 if (PyErr_Occurred()) SWIG_fail;
7077 }
7078 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
7079 return resultobj;
7080 fail:
7081 return NULL;
7082 }
7083
7084
7085 SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7086 PyObject *resultobj = 0;
7087 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7088 int result;
7089 void *argp1 = 0 ;
7090 int res1 = 0 ;
7091 PyObject *swig_obj[1] ;
7092
7093 if (!args) SWIG_fail;
7094 swig_obj[0] = args;
7095 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7096 if (!SWIG_IsOK(res1)) {
7097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7098 }
7099 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7100 {
7101 result = (int)((wxPixelDataBase const *)arg1)->GetRowStride();
7102 if (PyErr_Occurred()) SWIG_fail;
7103 }
7104 resultobj = SWIG_From_int(static_cast< int >(result));
7105 return resultobj;
7106 fail:
7107 return NULL;
7108 }
7109
7110
7111 SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7112 PyObject *obj;
7113 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7114 SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj));
7115 return SWIG_Py_Void();
7116 }
7117
7118 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7119 PyObject *resultobj = 0;
7120 wxBitmap *arg1 = 0 ;
7121 wxNativePixelData *result = 0 ;
7122 void *argp1 = 0 ;
7123 int res1 = 0 ;
7124
7125 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7126 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7127 if (!SWIG_IsOK(res1)) {
7128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7129 }
7130 if (!argp1) {
7131 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7132 }
7133 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7134 {
7135 result = (wxNativePixelData *)new wxNativePixelData(*arg1);
7136 if (PyErr_Occurred()) SWIG_fail;
7137 }
7138 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7139 return resultobj;
7140 fail:
7141 return NULL;
7142 }
7143
7144
7145 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7146 PyObject *resultobj = 0;
7147 wxBitmap *arg1 = 0 ;
7148 wxRect *arg2 = 0 ;
7149 wxNativePixelData *result = 0 ;
7150 void *argp1 = 0 ;
7151 int res1 = 0 ;
7152 wxRect temp2 ;
7153
7154 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7155 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7156 if (!SWIG_IsOK(res1)) {
7157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7158 }
7159 if (!argp1) {
7160 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7161 }
7162 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7163 {
7164 arg2 = &temp2;
7165 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7166 }
7167 {
7168 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2);
7169 if (PyErr_Occurred()) SWIG_fail;
7170 }
7171 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7172 return resultobj;
7173 fail:
7174 return NULL;
7175 }
7176
7177
7178 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7179 PyObject *resultobj = 0;
7180 wxBitmap *arg1 = 0 ;
7181 wxPoint *arg2 = 0 ;
7182 wxSize *arg3 = 0 ;
7183 wxNativePixelData *result = 0 ;
7184 void *argp1 = 0 ;
7185 int res1 = 0 ;
7186 wxPoint temp2 ;
7187 wxSize temp3 ;
7188
7189 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7190 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7191 if (!SWIG_IsOK(res1)) {
7192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7193 }
7194 if (!argp1) {
7195 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7196 }
7197 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7198 {
7199 arg2 = &temp2;
7200 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7201 }
7202 {
7203 arg3 = &temp3;
7204 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7205 }
7206 {
7207 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7208 if (PyErr_Occurred()) SWIG_fail;
7209 }
7210 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7211 return resultobj;
7212 fail:
7213 return NULL;
7214 }
7215
7216
7217 SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) {
7218 int argc;
7219 PyObject *argv[4];
7220
7221 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail;
7222 --argc;
7223 if (argc == 1) {
7224 return _wrap_new_NativePixelData__SWIG_0(self, argc, argv);
7225 }
7226 if (argc == 2) {
7227 return _wrap_new_NativePixelData__SWIG_1(self, argc, argv);
7228 }
7229 if (argc == 3) {
7230 return _wrap_new_NativePixelData__SWIG_2(self, argc, argv);
7231 }
7232
7233 fail:
7234 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'");
7235 return NULL;
7236 }
7237
7238
7239 SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7240 PyObject *resultobj = 0;
7241 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7242 void *argp1 = 0 ;
7243 int res1 = 0 ;
7244 PyObject *swig_obj[1] ;
7245
7246 if (!args) SWIG_fail;
7247 swig_obj[0] = args;
7248 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 );
7249 if (!SWIG_IsOK(res1)) {
7250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7251 }
7252 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7253 {
7254 delete arg1;
7255
7256 if (PyErr_Occurred()) SWIG_fail;
7257 }
7258 resultobj = SWIG_Py_Void();
7259 return resultobj;
7260 fail:
7261 return NULL;
7262 }
7263
7264
7265 SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7266 PyObject *resultobj = 0;
7267 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7268 wxNativePixelData_Accessor result;
7269 void *argp1 = 0 ;
7270 int res1 = 0 ;
7271 PyObject *swig_obj[1] ;
7272
7273 if (!args) SWIG_fail;
7274 swig_obj[0] = args;
7275 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7276 if (!SWIG_IsOK(res1)) {
7277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'");
7278 }
7279 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7280 {
7281 result = ((wxNativePixelData const *)arg1)->GetPixels();
7282 if (PyErr_Occurred()) SWIG_fail;
7283 }
7284 resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 );
7285 return resultobj;
7286 fail:
7287 return NULL;
7288 }
7289
7290
7291 SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7292 PyObject *resultobj = 0;
7293 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7294 void *argp1 = 0 ;
7295 int res1 = 0 ;
7296 PyObject *swig_obj[1] ;
7297
7298 if (!args) SWIG_fail;
7299 swig_obj[0] = args;
7300 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7301 if (!SWIG_IsOK(res1)) {
7302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7303 }
7304 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7305 {
7306 (arg1)->UseAlpha();
7307 if (PyErr_Occurred()) SWIG_fail;
7308 }
7309 resultobj = SWIG_Py_Void();
7310 return resultobj;
7311 fail:
7312 return NULL;
7313 }
7314
7315
7316 SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7317 PyObject *resultobj = 0;
7318 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7319 bool result;
7320 void *argp1 = 0 ;
7321 int res1 = 0 ;
7322 PyObject *swig_obj[1] ;
7323
7324 if (!args) SWIG_fail;
7325 swig_obj[0] = args;
7326 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7327 if (!SWIG_IsOK(res1)) {
7328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7329 }
7330 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7331 {
7332 result = (bool)wxNativePixelData___nonzero__(arg1);
7333 if (PyErr_Occurred()) SWIG_fail;
7334 }
7335 {
7336 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7337 }
7338 return resultobj;
7339 fail:
7340 return NULL;
7341 }
7342
7343
7344 SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7345 PyObject *obj;
7346 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7347 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj));
7348 return SWIG_Py_Void();
7349 }
7350
7351 SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7352 return SWIG_Python_InitShadowInstance(args);
7353 }
7354
7355 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7356 PyObject *resultobj = 0;
7357 wxNativePixelData *arg1 = 0 ;
7358 wxNativePixelData_Accessor *result = 0 ;
7359 void *argp1 = 0 ;
7360 int res1 = 0 ;
7361
7362 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7363 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 );
7364 if (!SWIG_IsOK(res1)) {
7365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7366 }
7367 if (!argp1) {
7368 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7369 }
7370 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7371 {
7372 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1);
7373 if (PyErr_Occurred()) SWIG_fail;
7374 }
7375 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7376 return resultobj;
7377 fail:
7378 return NULL;
7379 }
7380
7381
7382 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7383 PyObject *resultobj = 0;
7384 wxBitmap *arg1 = 0 ;
7385 wxNativePixelData *arg2 = 0 ;
7386 wxNativePixelData_Accessor *result = 0 ;
7387 void *argp1 = 0 ;
7388 int res1 = 0 ;
7389 void *argp2 = 0 ;
7390 int res2 = 0 ;
7391
7392 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7393 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7394 if (!SWIG_IsOK(res1)) {
7395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7396 }
7397 if (!argp1) {
7398 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7399 }
7400 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7401 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 );
7402 if (!SWIG_IsOK(res2)) {
7403 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7404 }
7405 if (!argp2) {
7406 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7407 }
7408 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7409 {
7410 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2);
7411 if (PyErr_Occurred()) SWIG_fail;
7412 }
7413 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7414 return resultobj;
7415 fail:
7416 return NULL;
7417 }
7418
7419
7420 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
7421 PyObject *resultobj = 0;
7422 wxNativePixelData_Accessor *result = 0 ;
7423
7424 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
7425 {
7426 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor();
7427 if (PyErr_Occurred()) SWIG_fail;
7428 }
7429 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7430 return resultobj;
7431 fail:
7432 return NULL;
7433 }
7434
7435
7436 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) {
7437 int argc;
7438 PyObject *argv[3];
7439
7440 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail;
7441 --argc;
7442 if (argc == 0) {
7443 return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv);
7444 }
7445 if (argc == 1) {
7446 return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv);
7447 }
7448 if (argc == 2) {
7449 return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv);
7450 }
7451
7452 fail:
7453 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'");
7454 return NULL;
7455 }
7456
7457
7458 SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7459 PyObject *resultobj = 0;
7460 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7461 void *argp1 = 0 ;
7462 int res1 = 0 ;
7463 PyObject *swig_obj[1] ;
7464
7465 if (!args) SWIG_fail;
7466 swig_obj[0] = args;
7467 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
7468 if (!SWIG_IsOK(res1)) {
7469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7470 }
7471 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7472 {
7473 delete arg1;
7474
7475 if (PyErr_Occurred()) SWIG_fail;
7476 }
7477 resultobj = SWIG_Py_Void();
7478 return resultobj;
7479 fail:
7480 return NULL;
7481 }
7482
7483
7484 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7485 PyObject *resultobj = 0;
7486 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7487 wxNativePixelData *arg2 = 0 ;
7488 void *argp1 = 0 ;
7489 int res1 = 0 ;
7490 void *argp2 = 0 ;
7491 int res2 = 0 ;
7492 PyObject * obj0 = 0 ;
7493 PyObject * obj1 = 0 ;
7494 char * kwnames[] = {
7495 (char *) "self",(char *) "data", NULL
7496 };
7497
7498 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
7499 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7500 if (!SWIG_IsOK(res1)) {
7501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7502 }
7503 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7504 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7505 if (!SWIG_IsOK(res2)) {
7506 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7507 }
7508 if (!argp2) {
7509 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7510 }
7511 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7512 {
7513 (arg1)->Reset((wxNativePixelData const &)*arg2);
7514 if (PyErr_Occurred()) SWIG_fail;
7515 }
7516 resultobj = SWIG_Py_Void();
7517 return resultobj;
7518 fail:
7519 return NULL;
7520 }
7521
7522
7523 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7524 PyObject *resultobj = 0;
7525 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7526 bool result;
7527 void *argp1 = 0 ;
7528 int res1 = 0 ;
7529 PyObject *swig_obj[1] ;
7530
7531 if (!args) SWIG_fail;
7532 swig_obj[0] = args;
7533 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7534 if (!SWIG_IsOK(res1)) {
7535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'");
7536 }
7537 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7538 {
7539 result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk();
7540 if (PyErr_Occurred()) SWIG_fail;
7541 }
7542 {
7543 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7544 }
7545 return resultobj;
7546 fail:
7547 return NULL;
7548 }
7549
7550
7551 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7552 PyObject *resultobj = 0;
7553 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7554 void *argp1 = 0 ;
7555 int res1 = 0 ;
7556 PyObject *swig_obj[1] ;
7557
7558 if (!args) SWIG_fail;
7559 swig_obj[0] = args;
7560 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7561 if (!SWIG_IsOK(res1)) {
7562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7563 }
7564 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7565 {
7566 wxNativePixelData_Accessor_nextPixel(arg1);
7567 if (PyErr_Occurred()) SWIG_fail;
7568 }
7569 resultobj = SWIG_Py_Void();
7570 return resultobj;
7571 fail:
7572 return NULL;
7573 }
7574
7575
7576 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7577 PyObject *resultobj = 0;
7578 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7579 wxNativePixelData *arg2 = 0 ;
7580 int arg3 ;
7581 int arg4 ;
7582 void *argp1 = 0 ;
7583 int res1 = 0 ;
7584 void *argp2 = 0 ;
7585 int res2 = 0 ;
7586 int val3 ;
7587 int ecode3 = 0 ;
7588 int val4 ;
7589 int ecode4 = 0 ;
7590 PyObject * obj0 = 0 ;
7591 PyObject * obj1 = 0 ;
7592 PyObject * obj2 = 0 ;
7593 PyObject * obj3 = 0 ;
7594 char * kwnames[] = {
7595 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7596 };
7597
7598 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7599 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7600 if (!SWIG_IsOK(res1)) {
7601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7602 }
7603 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7604 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7605 if (!SWIG_IsOK(res2)) {
7606 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7607 }
7608 if (!argp2) {
7609 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7610 }
7611 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7612 ecode3 = SWIG_AsVal_int(obj2, &val3);
7613 if (!SWIG_IsOK(ecode3)) {
7614 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
7615 }
7616 arg3 = static_cast< int >(val3);
7617 ecode4 = SWIG_AsVal_int(obj3, &val4);
7618 if (!SWIG_IsOK(ecode4)) {
7619 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
7620 }
7621 arg4 = static_cast< int >(val4);
7622 {
7623 (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4);
7624 if (PyErr_Occurred()) SWIG_fail;
7625 }
7626 resultobj = SWIG_Py_Void();
7627 return resultobj;
7628 fail:
7629 return NULL;
7630 }
7631
7632
7633 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7634 PyObject *resultobj = 0;
7635 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7636 wxNativePixelData *arg2 = 0 ;
7637 int arg3 ;
7638 void *argp1 = 0 ;
7639 int res1 = 0 ;
7640 void *argp2 = 0 ;
7641 int res2 = 0 ;
7642 int val3 ;
7643 int ecode3 = 0 ;
7644 PyObject * obj0 = 0 ;
7645 PyObject * obj1 = 0 ;
7646 PyObject * obj2 = 0 ;
7647 char * kwnames[] = {
7648 (char *) "self",(char *) "data",(char *) "x", NULL
7649 };
7650
7651 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7652 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7653 if (!SWIG_IsOK(res1)) {
7654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7655 }
7656 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7657 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7658 if (!SWIG_IsOK(res2)) {
7659 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7660 }
7661 if (!argp2) {
7662 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7663 }
7664 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7665 ecode3 = SWIG_AsVal_int(obj2, &val3);
7666 if (!SWIG_IsOK(ecode3)) {
7667 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
7668 }
7669 arg3 = static_cast< int >(val3);
7670 {
7671 (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3);
7672 if (PyErr_Occurred()) SWIG_fail;
7673 }
7674 resultobj = SWIG_Py_Void();
7675 return resultobj;
7676 fail:
7677 return NULL;
7678 }
7679
7680
7681 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7682 PyObject *resultobj = 0;
7683 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7684 wxNativePixelData *arg2 = 0 ;
7685 int arg3 ;
7686 void *argp1 = 0 ;
7687 int res1 = 0 ;
7688 void *argp2 = 0 ;
7689 int res2 = 0 ;
7690 int val3 ;
7691 int ecode3 = 0 ;
7692 PyObject * obj0 = 0 ;
7693 PyObject * obj1 = 0 ;
7694 PyObject * obj2 = 0 ;
7695 char * kwnames[] = {
7696 (char *) "self",(char *) "data",(char *) "y", NULL
7697 };
7698
7699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7700 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7701 if (!SWIG_IsOK(res1)) {
7702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7703 }
7704 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7705 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7706 if (!SWIG_IsOK(res2)) {
7707 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7708 }
7709 if (!argp2) {
7710 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7711 }
7712 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7713 ecode3 = SWIG_AsVal_int(obj2, &val3);
7714 if (!SWIG_IsOK(ecode3)) {
7715 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
7716 }
7717 arg3 = static_cast< int >(val3);
7718 {
7719 (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3);
7720 if (PyErr_Occurred()) SWIG_fail;
7721 }
7722 resultobj = SWIG_Py_Void();
7723 return resultobj;
7724 fail:
7725 return NULL;
7726 }
7727
7728
7729 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7730 PyObject *resultobj = 0;
7731 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7732 wxNativePixelData *arg2 = 0 ;
7733 int arg3 ;
7734 int arg4 ;
7735 void *argp1 = 0 ;
7736 int res1 = 0 ;
7737 void *argp2 = 0 ;
7738 int res2 = 0 ;
7739 int val3 ;
7740 int ecode3 = 0 ;
7741 int val4 ;
7742 int ecode4 = 0 ;
7743 PyObject * obj0 = 0 ;
7744 PyObject * obj1 = 0 ;
7745 PyObject * obj2 = 0 ;
7746 PyObject * obj3 = 0 ;
7747 char * kwnames[] = {
7748 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7749 };
7750
7751 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7752 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7753 if (!SWIG_IsOK(res1)) {
7754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7755 }
7756 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7757 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7758 if (!SWIG_IsOK(res2)) {
7759 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7760 }
7761 if (!argp2) {
7762 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7763 }
7764 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7765 ecode3 = SWIG_AsVal_int(obj2, &val3);
7766 if (!SWIG_IsOK(ecode3)) {
7767 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
7768 }
7769 arg3 = static_cast< int >(val3);
7770 ecode4 = SWIG_AsVal_int(obj3, &val4);
7771 if (!SWIG_IsOK(ecode4)) {
7772 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
7773 }
7774 arg4 = static_cast< int >(val4);
7775 {
7776 (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4);
7777 if (PyErr_Occurred()) SWIG_fail;
7778 }
7779 resultobj = SWIG_Py_Void();
7780 return resultobj;
7781 fail:
7782 return NULL;
7783 }
7784
7785
7786 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7787 PyObject *resultobj = 0;
7788 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7789 byte arg2 ;
7790 byte arg3 ;
7791 byte arg4 ;
7792 void *argp1 = 0 ;
7793 int res1 = 0 ;
7794 unsigned char val2 ;
7795 int ecode2 = 0 ;
7796 unsigned char val3 ;
7797 int ecode3 = 0 ;
7798 unsigned char val4 ;
7799 int ecode4 = 0 ;
7800 PyObject * obj0 = 0 ;
7801 PyObject * obj1 = 0 ;
7802 PyObject * obj2 = 0 ;
7803 PyObject * obj3 = 0 ;
7804 char * kwnames[] = {
7805 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
7806 };
7807
7808 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7809 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7810 if (!SWIG_IsOK(res1)) {
7811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7812 }
7813 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7814 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
7815 if (!SWIG_IsOK(ecode2)) {
7816 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
7817 }
7818 arg2 = static_cast< byte >(val2);
7819 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
7820 if (!SWIG_IsOK(ecode3)) {
7821 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
7822 }
7823 arg3 = static_cast< byte >(val3);
7824 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
7825 if (!SWIG_IsOK(ecode4)) {
7826 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
7827 }
7828 arg4 = static_cast< byte >(val4);
7829 {
7830 wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4);
7831 if (PyErr_Occurred()) SWIG_fail;
7832 }
7833 resultobj = SWIG_Py_Void();
7834 return resultobj;
7835 fail:
7836 return NULL;
7837 }
7838
7839
7840 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7841 PyObject *resultobj = 0;
7842 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7843 PyObject *result = 0 ;
7844 void *argp1 = 0 ;
7845 int res1 = 0 ;
7846 PyObject *swig_obj[1] ;
7847
7848 if (!args) SWIG_fail;
7849 swig_obj[0] = args;
7850 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7851 if (!SWIG_IsOK(res1)) {
7852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7853 }
7854 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7855 {
7856 result = (PyObject *)wxNativePixelData_Accessor_Get(arg1);
7857 if (PyErr_Occurred()) SWIG_fail;
7858 }
7859 resultobj = result;
7860 return resultobj;
7861 fail:
7862 return NULL;
7863 }
7864
7865
7866 SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7867 PyObject *obj;
7868 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7869 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj));
7870 return SWIG_Py_Void();
7871 }
7872
7873 SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7874 return SWIG_Python_InitShadowInstance(args);
7875 }
7876
7877 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7878 PyObject *resultobj = 0;
7879 wxBitmap *arg1 = 0 ;
7880 wxAlphaPixelData *result = 0 ;
7881 void *argp1 = 0 ;
7882 int res1 = 0 ;
7883
7884 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7885 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7886 if (!SWIG_IsOK(res1)) {
7887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7888 }
7889 if (!argp1) {
7890 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7891 }
7892 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7893 {
7894 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1);
7895 if (PyErr_Occurred()) SWIG_fail;
7896 }
7897 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
7898 return resultobj;
7899 fail:
7900 return NULL;
7901 }
7902
7903
7904 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7905 PyObject *resultobj = 0;
7906 wxBitmap *arg1 = 0 ;
7907 wxRect *arg2 = 0 ;
7908 wxAlphaPixelData *result = 0 ;
7909 void *argp1 = 0 ;
7910 int res1 = 0 ;
7911 wxRect temp2 ;
7912
7913 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7914 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7915 if (!SWIG_IsOK(res1)) {
7916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7917 }
7918 if (!argp1) {
7919 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7920 }
7921 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7922 {
7923 arg2 = &temp2;
7924 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7925 }
7926 {
7927 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2);
7928 if (PyErr_Occurred()) SWIG_fail;
7929 }
7930 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
7931 return resultobj;
7932 fail:
7933 return NULL;
7934 }
7935
7936
7937 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7938 PyObject *resultobj = 0;
7939 wxBitmap *arg1 = 0 ;
7940 wxPoint *arg2 = 0 ;
7941 wxSize *arg3 = 0 ;
7942 wxAlphaPixelData *result = 0 ;
7943 void *argp1 = 0 ;
7944 int res1 = 0 ;
7945 wxPoint temp2 ;
7946 wxSize temp3 ;
7947
7948 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7949 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7950 if (!SWIG_IsOK(res1)) {
7951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7952 }
7953 if (!argp1) {
7954 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7955 }
7956 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7957 {
7958 arg2 = &temp2;
7959 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7960 }
7961 {
7962 arg3 = &temp3;
7963 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7964 }
7965 {
7966 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7967 if (PyErr_Occurred()) SWIG_fail;
7968 }
7969 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
7970 return resultobj;
7971 fail:
7972 return NULL;
7973 }
7974
7975
7976 SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) {
7977 int argc;
7978 PyObject *argv[4];
7979
7980 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail;
7981 --argc;
7982 if (argc == 1) {
7983 return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv);
7984 }
7985 if (argc == 2) {
7986 return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv);
7987 }
7988 if (argc == 3) {
7989 return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv);
7990 }
7991
7992 fail:
7993 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'");
7994 return NULL;
7995 }
7996
7997
7998 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7999 PyObject *resultobj = 0;
8000 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8001 void *argp1 = 0 ;
8002 int res1 = 0 ;
8003 PyObject *swig_obj[1] ;
8004
8005 if (!args) SWIG_fail;
8006 swig_obj[0] = args;
8007 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 );
8008 if (!SWIG_IsOK(res1)) {
8009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8010 }
8011 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8012 {
8013 delete arg1;
8014
8015 if (PyErr_Occurred()) SWIG_fail;
8016 }
8017 resultobj = SWIG_Py_Void();
8018 return resultobj;
8019 fail:
8020 return NULL;
8021 }
8022
8023
8024 SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8025 PyObject *resultobj = 0;
8026 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8027 wxAlphaPixelData_Accessor result;
8028 void *argp1 = 0 ;
8029 int res1 = 0 ;
8030 PyObject *swig_obj[1] ;
8031
8032 if (!args) SWIG_fail;
8033 swig_obj[0] = args;
8034 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8035 if (!SWIG_IsOK(res1)) {
8036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'");
8037 }
8038 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8039 {
8040 result = ((wxAlphaPixelData const *)arg1)->GetPixels();
8041 if (PyErr_Occurred()) SWIG_fail;
8042 }
8043 resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 );
8044 return resultobj;
8045 fail:
8046 return NULL;
8047 }
8048
8049
8050 SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8051 PyObject *resultobj = 0;
8052 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8053 void *argp1 = 0 ;
8054 int res1 = 0 ;
8055 PyObject *swig_obj[1] ;
8056
8057 if (!args) SWIG_fail;
8058 swig_obj[0] = args;
8059 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8060 if (!SWIG_IsOK(res1)) {
8061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8062 }
8063 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8064 {
8065 (arg1)->UseAlpha();
8066 if (PyErr_Occurred()) SWIG_fail;
8067 }
8068 resultobj = SWIG_Py_Void();
8069 return resultobj;
8070 fail:
8071 return NULL;
8072 }
8073
8074
8075 SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8076 PyObject *resultobj = 0;
8077 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8078 bool result;
8079 void *argp1 = 0 ;
8080 int res1 = 0 ;
8081 PyObject *swig_obj[1] ;
8082
8083 if (!args) SWIG_fail;
8084 swig_obj[0] = args;
8085 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8086 if (!SWIG_IsOK(res1)) {
8087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8088 }
8089 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8090 {
8091 result = (bool)wxAlphaPixelData___nonzero__(arg1);
8092 if (PyErr_Occurred()) SWIG_fail;
8093 }
8094 {
8095 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8096 }
8097 return resultobj;
8098 fail:
8099 return NULL;
8100 }
8101
8102
8103 SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8104 PyObject *obj;
8105 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8106 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj));
8107 return SWIG_Py_Void();
8108 }
8109
8110 SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8111 return SWIG_Python_InitShadowInstance(args);
8112 }
8113
8114 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8115 PyObject *resultobj = 0;
8116 wxAlphaPixelData *arg1 = 0 ;
8117 wxAlphaPixelData_Accessor *result = 0 ;
8118 void *argp1 = 0 ;
8119 int res1 = 0 ;
8120
8121 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8122 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 );
8123 if (!SWIG_IsOK(res1)) {
8124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8125 }
8126 if (!argp1) {
8127 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8128 }
8129 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8130 {
8131 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1);
8132 if (PyErr_Occurred()) SWIG_fail;
8133 }
8134 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8135 return resultobj;
8136 fail:
8137 return NULL;
8138 }
8139
8140
8141 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8142 PyObject *resultobj = 0;
8143 wxBitmap *arg1 = 0 ;
8144 wxAlphaPixelData *arg2 = 0 ;
8145 wxAlphaPixelData_Accessor *result = 0 ;
8146 void *argp1 = 0 ;
8147 int res1 = 0 ;
8148 void *argp2 = 0 ;
8149 int res2 = 0 ;
8150
8151 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8152 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8153 if (!SWIG_IsOK(res1)) {
8154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8155 }
8156 if (!argp1) {
8157 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8158 }
8159 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8160 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 );
8161 if (!SWIG_IsOK(res2)) {
8162 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8163 }
8164 if (!argp2) {
8165 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8166 }
8167 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8168 {
8169 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2);
8170 if (PyErr_Occurred()) SWIG_fail;
8171 }
8172 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8173 return resultobj;
8174 fail:
8175 return NULL;
8176 }
8177
8178
8179 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
8180 PyObject *resultobj = 0;
8181 wxAlphaPixelData_Accessor *result = 0 ;
8182
8183 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
8184 {
8185 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor();
8186 if (PyErr_Occurred()) SWIG_fail;
8187 }
8188 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8189 return resultobj;
8190 fail:
8191 return NULL;
8192 }
8193
8194
8195 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) {
8196 int argc;
8197 PyObject *argv[3];
8198
8199 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail;
8200 --argc;
8201 if (argc == 0) {
8202 return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv);
8203 }
8204 if (argc == 1) {
8205 return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv);
8206 }
8207 if (argc == 2) {
8208 return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv);
8209 }
8210
8211 fail:
8212 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'");
8213 return NULL;
8214 }
8215
8216
8217 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8218 PyObject *resultobj = 0;
8219 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8220 void *argp1 = 0 ;
8221 int res1 = 0 ;
8222 PyObject *swig_obj[1] ;
8223
8224 if (!args) SWIG_fail;
8225 swig_obj[0] = args;
8226 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
8227 if (!SWIG_IsOK(res1)) {
8228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8229 }
8230 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8231 {
8232 delete arg1;
8233
8234 if (PyErr_Occurred()) SWIG_fail;
8235 }
8236 resultobj = SWIG_Py_Void();
8237 return resultobj;
8238 fail:
8239 return NULL;
8240 }
8241
8242
8243 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8244 PyObject *resultobj = 0;
8245 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8246 wxAlphaPixelData *arg2 = 0 ;
8247 void *argp1 = 0 ;
8248 int res1 = 0 ;
8249 void *argp2 = 0 ;
8250 int res2 = 0 ;
8251 PyObject * obj0 = 0 ;
8252 PyObject * obj1 = 0 ;
8253 char * kwnames[] = {
8254 (char *) "self",(char *) "data", NULL
8255 };
8256
8257 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
8258 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8259 if (!SWIG_IsOK(res1)) {
8260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8261 }
8262 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8263 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8264 if (!SWIG_IsOK(res2)) {
8265 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8266 }
8267 if (!argp2) {
8268 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8269 }
8270 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8271 {
8272 (arg1)->Reset((wxAlphaPixelData const &)*arg2);
8273 if (PyErr_Occurred()) SWIG_fail;
8274 }
8275 resultobj = SWIG_Py_Void();
8276 return resultobj;
8277 fail:
8278 return NULL;
8279 }
8280
8281
8282 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8283 PyObject *resultobj = 0;
8284 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8285 bool result;
8286 void *argp1 = 0 ;
8287 int res1 = 0 ;
8288 PyObject *swig_obj[1] ;
8289
8290 if (!args) SWIG_fail;
8291 swig_obj[0] = args;
8292 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8293 if (!SWIG_IsOK(res1)) {
8294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'");
8295 }
8296 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8297 {
8298 result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk();
8299 if (PyErr_Occurred()) SWIG_fail;
8300 }
8301 {
8302 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8303 }
8304 return resultobj;
8305 fail:
8306 return NULL;
8307 }
8308
8309
8310 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8311 PyObject *resultobj = 0;
8312 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8313 void *argp1 = 0 ;
8314 int res1 = 0 ;
8315 PyObject *swig_obj[1] ;
8316
8317 if (!args) SWIG_fail;
8318 swig_obj[0] = args;
8319 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8320 if (!SWIG_IsOK(res1)) {
8321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8322 }
8323 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8324 {
8325 wxAlphaPixelData_Accessor_nextPixel(arg1);
8326 if (PyErr_Occurred()) SWIG_fail;
8327 }
8328 resultobj = SWIG_Py_Void();
8329 return resultobj;
8330 fail:
8331 return NULL;
8332 }
8333
8334
8335 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8336 PyObject *resultobj = 0;
8337 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8338 wxAlphaPixelData *arg2 = 0 ;
8339 int arg3 ;
8340 int arg4 ;
8341 void *argp1 = 0 ;
8342 int res1 = 0 ;
8343 void *argp2 = 0 ;
8344 int res2 = 0 ;
8345 int val3 ;
8346 int ecode3 = 0 ;
8347 int val4 ;
8348 int ecode4 = 0 ;
8349 PyObject * obj0 = 0 ;
8350 PyObject * obj1 = 0 ;
8351 PyObject * obj2 = 0 ;
8352 PyObject * obj3 = 0 ;
8353 char * kwnames[] = {
8354 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8355 };
8356
8357 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8358 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8359 if (!SWIG_IsOK(res1)) {
8360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8361 }
8362 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8363 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8364 if (!SWIG_IsOK(res2)) {
8365 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8366 }
8367 if (!argp2) {
8368 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8369 }
8370 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8371 ecode3 = SWIG_AsVal_int(obj2, &val3);
8372 if (!SWIG_IsOK(ecode3)) {
8373 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8374 }
8375 arg3 = static_cast< int >(val3);
8376 ecode4 = SWIG_AsVal_int(obj3, &val4);
8377 if (!SWIG_IsOK(ecode4)) {
8378 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8379 }
8380 arg4 = static_cast< int >(val4);
8381 {
8382 (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4);
8383 if (PyErr_Occurred()) SWIG_fail;
8384 }
8385 resultobj = SWIG_Py_Void();
8386 return resultobj;
8387 fail:
8388 return NULL;
8389 }
8390
8391
8392 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8393 PyObject *resultobj = 0;
8394 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8395 wxAlphaPixelData *arg2 = 0 ;
8396 int arg3 ;
8397 void *argp1 = 0 ;
8398 int res1 = 0 ;
8399 void *argp2 = 0 ;
8400 int res2 = 0 ;
8401 int val3 ;
8402 int ecode3 = 0 ;
8403 PyObject * obj0 = 0 ;
8404 PyObject * obj1 = 0 ;
8405 PyObject * obj2 = 0 ;
8406 char * kwnames[] = {
8407 (char *) "self",(char *) "data",(char *) "x", NULL
8408 };
8409
8410 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8411 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8412 if (!SWIG_IsOK(res1)) {
8413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8414 }
8415 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8416 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8417 if (!SWIG_IsOK(res2)) {
8418 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8419 }
8420 if (!argp2) {
8421 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8422 }
8423 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8424 ecode3 = SWIG_AsVal_int(obj2, &val3);
8425 if (!SWIG_IsOK(ecode3)) {
8426 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8427 }
8428 arg3 = static_cast< int >(val3);
8429 {
8430 (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3);
8431 if (PyErr_Occurred()) SWIG_fail;
8432 }
8433 resultobj = SWIG_Py_Void();
8434 return resultobj;
8435 fail:
8436 return NULL;
8437 }
8438
8439
8440 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8441 PyObject *resultobj = 0;
8442 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8443 wxAlphaPixelData *arg2 = 0 ;
8444 int arg3 ;
8445 void *argp1 = 0 ;
8446 int res1 = 0 ;
8447 void *argp2 = 0 ;
8448 int res2 = 0 ;
8449 int val3 ;
8450 int ecode3 = 0 ;
8451 PyObject * obj0 = 0 ;
8452 PyObject * obj1 = 0 ;
8453 PyObject * obj2 = 0 ;
8454 char * kwnames[] = {
8455 (char *) "self",(char *) "data",(char *) "y", NULL
8456 };
8457
8458 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8459 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8460 if (!SWIG_IsOK(res1)) {
8461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8462 }
8463 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8464 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8465 if (!SWIG_IsOK(res2)) {
8466 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8467 }
8468 if (!argp2) {
8469 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8470 }
8471 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8472 ecode3 = SWIG_AsVal_int(obj2, &val3);
8473 if (!SWIG_IsOK(ecode3)) {
8474 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8475 }
8476 arg3 = static_cast< int >(val3);
8477 {
8478 (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3);
8479 if (PyErr_Occurred()) SWIG_fail;
8480 }
8481 resultobj = SWIG_Py_Void();
8482 return resultobj;
8483 fail:
8484 return NULL;
8485 }
8486
8487
8488 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8489 PyObject *resultobj = 0;
8490 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8491 wxAlphaPixelData *arg2 = 0 ;
8492 int arg3 ;
8493 int arg4 ;
8494 void *argp1 = 0 ;
8495 int res1 = 0 ;
8496 void *argp2 = 0 ;
8497 int res2 = 0 ;
8498 int val3 ;
8499 int ecode3 = 0 ;
8500 int val4 ;
8501 int ecode4 = 0 ;
8502 PyObject * obj0 = 0 ;
8503 PyObject * obj1 = 0 ;
8504 PyObject * obj2 = 0 ;
8505 PyObject * obj3 = 0 ;
8506 char * kwnames[] = {
8507 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8508 };
8509
8510 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8511 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8512 if (!SWIG_IsOK(res1)) {
8513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8514 }
8515 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8516 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8517 if (!SWIG_IsOK(res2)) {
8518 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8519 }
8520 if (!argp2) {
8521 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8522 }
8523 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8524 ecode3 = SWIG_AsVal_int(obj2, &val3);
8525 if (!SWIG_IsOK(ecode3)) {
8526 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8527 }
8528 arg3 = static_cast< int >(val3);
8529 ecode4 = SWIG_AsVal_int(obj3, &val4);
8530 if (!SWIG_IsOK(ecode4)) {
8531 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8532 }
8533 arg4 = static_cast< int >(val4);
8534 {
8535 (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4);
8536 if (PyErr_Occurred()) SWIG_fail;
8537 }
8538 resultobj = SWIG_Py_Void();
8539 return resultobj;
8540 fail:
8541 return NULL;
8542 }
8543
8544
8545 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8546 PyObject *resultobj = 0;
8547 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8548 byte arg2 ;
8549 byte arg3 ;
8550 byte arg4 ;
8551 byte arg5 ;
8552 void *argp1 = 0 ;
8553 int res1 = 0 ;
8554 unsigned char val2 ;
8555 int ecode2 = 0 ;
8556 unsigned char val3 ;
8557 int ecode3 = 0 ;
8558 unsigned char val4 ;
8559 int ecode4 = 0 ;
8560 unsigned char val5 ;
8561 int ecode5 = 0 ;
8562 PyObject * obj0 = 0 ;
8563 PyObject * obj1 = 0 ;
8564 PyObject * obj2 = 0 ;
8565 PyObject * obj3 = 0 ;
8566 PyObject * obj4 = 0 ;
8567 char * kwnames[] = {
8568 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
8569 };
8570
8571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8572 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8573 if (!SWIG_IsOK(res1)) {
8574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8575 }
8576 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8577 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8578 if (!SWIG_IsOK(ecode2)) {
8579 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8580 }
8581 arg2 = static_cast< byte >(val2);
8582 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8583 if (!SWIG_IsOK(ecode3)) {
8584 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8585 }
8586 arg3 = static_cast< byte >(val3);
8587 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8588 if (!SWIG_IsOK(ecode4)) {
8589 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8590 }
8591 arg4 = static_cast< byte >(val4);
8592 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
8593 if (!SWIG_IsOK(ecode5)) {
8594 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'");
8595 }
8596 arg5 = static_cast< byte >(val5);
8597 {
8598 wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5);
8599 if (PyErr_Occurred()) SWIG_fail;
8600 }
8601 resultobj = SWIG_Py_Void();
8602 return resultobj;
8603 fail:
8604 return NULL;
8605 }
8606
8607
8608 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8609 PyObject *resultobj = 0;
8610 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8611 PyObject *result = 0 ;
8612 void *argp1 = 0 ;
8613 int res1 = 0 ;
8614 PyObject *swig_obj[1] ;
8615
8616 if (!args) SWIG_fail;
8617 swig_obj[0] = args;
8618 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8619 if (!SWIG_IsOK(res1)) {
8620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8621 }
8622 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8623 {
8624 result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1);
8625 if (PyErr_Occurred()) SWIG_fail;
8626 }
8627 resultobj = result;
8628 return resultobj;
8629 fail:
8630 return NULL;
8631 }
8632
8633
8634 SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8635 PyObject *obj;
8636 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8637 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj));
8638 return SWIG_Py_Void();
8639 }
8640
8641 SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8642 return SWIG_Python_InitShadowInstance(args);
8643 }
8644
8645 SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8646 PyObject *resultobj = 0;
8647 wxBitmap *arg1 = 0 ;
8648 wxColour const &arg2_defvalue = wxNullColour ;
8649 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
8650 wxMask *result = 0 ;
8651 void *argp1 = 0 ;
8652 int res1 = 0 ;
8653 wxColour temp2 ;
8654 PyObject * obj0 = 0 ;
8655 PyObject * obj1 = 0 ;
8656 char * kwnames[] = {
8657 (char *) "bitmap",(char *) "colour", NULL
8658 };
8659
8660 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
8661 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8662 if (!SWIG_IsOK(res1)) {
8663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8664 }
8665 if (!argp1) {
8666 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8667 }
8668 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8669 if (obj1) {
8670 {
8671 arg2 = &temp2;
8672 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
8673 }
8674 }
8675 {
8676 if (!wxPyCheckForApp()) SWIG_fail;
8677 PyThreadState* __tstate = wxPyBeginAllowThreads();
8678 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
8679 wxPyEndAllowThreads(__tstate);
8680 if (PyErr_Occurred()) SWIG_fail;
8681 }
8682 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
8683 return resultobj;
8684 fail:
8685 return NULL;
8686 }
8687
8688
8689 SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8690 PyObject *resultobj = 0;
8691 wxMask *arg1 = (wxMask *) 0 ;
8692 void *argp1 = 0 ;
8693 int res1 = 0 ;
8694 PyObject *swig_obj[1] ;
8695
8696 if (!args) SWIG_fail;
8697 swig_obj[0] = args;
8698 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
8699 if (!SWIG_IsOK(res1)) {
8700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
8701 }
8702 arg1 = reinterpret_cast< wxMask * >(argp1);
8703 {
8704 delete arg1;
8705
8706 if (PyErr_Occurred()) SWIG_fail;
8707 }
8708 resultobj = SWIG_Py_Void();
8709 return resultobj;
8710 fail:
8711 return NULL;
8712 }
8713
8714
8715 SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8716 PyObject *obj;
8717 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8718 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
8719 return SWIG_Py_Void();
8720 }
8721
8722 SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8723 return SWIG_Python_InitShadowInstance(args);
8724 }
8725
8726 SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8727 PyObject *resultobj = 0;
8728 wxString *arg1 = 0 ;
8729 wxBitmapType arg2 ;
8730 int arg3 = (int) -1 ;
8731 int arg4 = (int) -1 ;
8732 wxIcon *result = 0 ;
8733 bool temp1 = false ;
8734 int val2 ;
8735 int ecode2 = 0 ;
8736 int val3 ;
8737 int ecode3 = 0 ;
8738 int val4 ;
8739 int ecode4 = 0 ;
8740 PyObject * obj0 = 0 ;
8741 PyObject * obj1 = 0 ;
8742 PyObject * obj2 = 0 ;
8743 PyObject * obj3 = 0 ;
8744 char * kwnames[] = {
8745 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
8746 };
8747
8748 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8749 {
8750 arg1 = wxString_in_helper(obj0);
8751 if (arg1 == NULL) SWIG_fail;
8752 temp1 = true;
8753 }
8754 ecode2 = SWIG_AsVal_int(obj1, &val2);
8755 if (!SWIG_IsOK(ecode2)) {
8756 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
8757 }
8758 arg2 = static_cast< wxBitmapType >(val2);
8759 if (obj2) {
8760 ecode3 = SWIG_AsVal_int(obj2, &val3);
8761 if (!SWIG_IsOK(ecode3)) {
8762 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
8763 }
8764 arg3 = static_cast< int >(val3);
8765 }
8766 if (obj3) {
8767 ecode4 = SWIG_AsVal_int(obj3, &val4);
8768 if (!SWIG_IsOK(ecode4)) {
8769 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
8770 }
8771 arg4 = static_cast< int >(val4);
8772 }
8773 {
8774 if (!wxPyCheckForApp()) SWIG_fail;
8775 PyThreadState* __tstate = wxPyBeginAllowThreads();
8776 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
8777 wxPyEndAllowThreads(__tstate);
8778 if (PyErr_Occurred()) SWIG_fail;
8779 }
8780 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
8781 {
8782 if (temp1)
8783 delete arg1;
8784 }
8785 return resultobj;
8786 fail:
8787 {
8788 if (temp1)
8789 delete arg1;
8790 }
8791 return NULL;
8792 }
8793
8794
8795 SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8796 PyObject *resultobj = 0;
8797 wxIcon *arg1 = (wxIcon *) 0 ;
8798 void *argp1 = 0 ;
8799 int res1 = 0 ;
8800 PyObject *swig_obj[1] ;
8801
8802 if (!args) SWIG_fail;
8803 swig_obj[0] = args;
8804 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
8805 if (!SWIG_IsOK(res1)) {
8806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
8807 }
8808 arg1 = reinterpret_cast< wxIcon * >(argp1);
8809 {
8810 PyThreadState* __tstate = wxPyBeginAllowThreads();
8811 delete arg1;
8812
8813 wxPyEndAllowThreads(__tstate);
8814 if (PyErr_Occurred()) SWIG_fail;
8815 }
8816 resultobj = SWIG_Py_Void();
8817 return resultobj;
8818 fail:
8819 return NULL;
8820 }
8821
8822
8823 SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8824 PyObject *resultobj = 0;
8825 wxIcon *result = 0 ;
8826
8827 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
8828 {
8829 if (!wxPyCheckForApp()) SWIG_fail;
8830 PyThreadState* __tstate = wxPyBeginAllowThreads();
8831 result = (wxIcon *)new wxIcon();
8832 wxPyEndAllowThreads(__tstate);
8833 if (PyErr_Occurred()) SWIG_fail;
8834 }
8835 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8836 return resultobj;
8837 fail:
8838 return NULL;
8839 }
8840
8841
8842 SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8843 PyObject *resultobj = 0;
8844 wxIconLocation *arg1 = 0 ;
8845 wxIcon *result = 0 ;
8846 void *argp1 = 0 ;
8847 int res1 = 0 ;
8848 PyObject * obj0 = 0 ;
8849 char * kwnames[] = {
8850 (char *) "loc", NULL
8851 };
8852
8853 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
8854 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
8855 if (!SWIG_IsOK(res1)) {
8856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
8857 }
8858 if (!argp1) {
8859 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
8860 }
8861 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
8862 {
8863 if (!wxPyCheckForApp()) SWIG_fail;
8864 PyThreadState* __tstate = wxPyBeginAllowThreads();
8865 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
8866 wxPyEndAllowThreads(__tstate);
8867 if (PyErr_Occurred()) SWIG_fail;
8868 }
8869 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8870 return resultobj;
8871 fail:
8872 return NULL;
8873 }
8874
8875
8876 SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8877 PyObject *resultobj = 0;
8878 wxBitmap *arg1 = 0 ;
8879 wxIcon *result = 0 ;
8880 void *argp1 = 0 ;
8881 int res1 = 0 ;
8882 PyObject * obj0 = 0 ;
8883 char * kwnames[] = {
8884 (char *) "bmp", NULL
8885 };
8886
8887 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
8888 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8889 if (!SWIG_IsOK(res1)) {
8890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8891 }
8892 if (!argp1) {
8893 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8894 }
8895 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8896 {
8897 if (!wxPyCheckForApp()) SWIG_fail;
8898 PyThreadState* __tstate = wxPyBeginAllowThreads();
8899 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
8900 wxPyEndAllowThreads(__tstate);
8901 if (PyErr_Occurred()) SWIG_fail;
8902 }
8903 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8904 return resultobj;
8905 fail:
8906 return NULL;
8907 }
8908
8909
8910 SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8911 PyObject *resultobj = 0;
8912 PyObject *arg1 = (PyObject *) 0 ;
8913 wxIcon *result = 0 ;
8914 PyObject * obj0 = 0 ;
8915 char * kwnames[] = {
8916 (char *) "listOfStrings", NULL
8917 };
8918
8919 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
8920 arg1 = obj0;
8921 {
8922 if (!wxPyCheckForApp()) SWIG_fail;
8923 PyThreadState* __tstate = wxPyBeginAllowThreads();
8924 result = (wxIcon *)new_wxIcon(arg1);
8925 wxPyEndAllowThreads(__tstate);
8926 if (PyErr_Occurred()) SWIG_fail;
8927 }
8928 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8929 return resultobj;
8930 fail:
8931 return NULL;
8932 }
8933
8934
8935 SWIGINTERN PyObject *_wrap_Icon_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8936 PyObject *resultobj = 0;
8937 wxIcon *arg1 = (wxIcon *) 0 ;
8938 wxString *arg2 = 0 ;
8939 wxBitmapType arg3 ;
8940 bool result;
8941 void *argp1 = 0 ;
8942 int res1 = 0 ;
8943 bool temp2 = false ;
8944 int val3 ;
8945 int ecode3 = 0 ;
8946 PyObject * obj0 = 0 ;
8947 PyObject * obj1 = 0 ;
8948 PyObject * obj2 = 0 ;
8949 char * kwnames[] = {
8950 (char *) "self",(char *) "name",(char *) "type", NULL
8951 };
8952
8953 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8954 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8955 if (!SWIG_IsOK(res1)) {
8956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_LoadFile" "', expected argument " "1"" of type '" "wxIcon *""'");
8957 }
8958 arg1 = reinterpret_cast< wxIcon * >(argp1);
8959 {
8960 arg2 = wxString_in_helper(obj1);
8961 if (arg2 == NULL) SWIG_fail;
8962 temp2 = true;
8963 }
8964 ecode3 = SWIG_AsVal_int(obj2, &val3);
8965 if (!SWIG_IsOK(ecode3)) {
8966 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Icon_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
8967 }
8968 arg3 = static_cast< wxBitmapType >(val3);
8969 {
8970 PyThreadState* __tstate = wxPyBeginAllowThreads();
8971 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
8972 wxPyEndAllowThreads(__tstate);
8973 if (PyErr_Occurred()) SWIG_fail;
8974 }
8975 {
8976 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8977 }
8978 {
8979 if (temp2)
8980 delete arg2;
8981 }
8982 return resultobj;
8983 fail:
8984 {
8985 if (temp2)
8986 delete arg2;
8987 }
8988 return NULL;
8989 }
8990
8991
8992 SWIGINTERN PyObject *_wrap_Icon_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8993 PyObject *resultobj = 0;
8994 wxIcon *arg1 = (wxIcon *) 0 ;
8995 long result;
8996 void *argp1 = 0 ;
8997 int res1 = 0 ;
8998 PyObject *swig_obj[1] ;
8999
9000 if (!args) SWIG_fail;
9001 swig_obj[0] = args;
9002 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9003 if (!SWIG_IsOK(res1)) {
9004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHandle" "', expected argument " "1"" of type '" "wxIcon *""'");
9005 }
9006 arg1 = reinterpret_cast< wxIcon * >(argp1);
9007 {
9008 PyThreadState* __tstate = wxPyBeginAllowThreads();
9009 result = (long)(arg1)->GetHandle();
9010 wxPyEndAllowThreads(__tstate);
9011 if (PyErr_Occurred()) SWIG_fail;
9012 }
9013 resultobj = SWIG_From_long(static_cast< long >(result));
9014 return resultobj;
9015 fail:
9016 return NULL;
9017 }
9018
9019
9020 SWIGINTERN PyObject *_wrap_Icon_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9021 PyObject *resultobj = 0;
9022 wxIcon *arg1 = (wxIcon *) 0 ;
9023 long arg2 ;
9024 void *argp1 = 0 ;
9025 int res1 = 0 ;
9026 long val2 ;
9027 int ecode2 = 0 ;
9028 PyObject * obj0 = 0 ;
9029 PyObject * obj1 = 0 ;
9030 char * kwnames[] = {
9031 (char *) "self",(char *) "handle", NULL
9032 };
9033
9034 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
9035 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9036 if (!SWIG_IsOK(res1)) {
9037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHandle" "', expected argument " "1"" of type '" "wxIcon *""'");
9038 }
9039 arg1 = reinterpret_cast< wxIcon * >(argp1);
9040 ecode2 = SWIG_AsVal_long(obj1, &val2);
9041 if (!SWIG_IsOK(ecode2)) {
9042 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHandle" "', expected argument " "2"" of type '" "long""'");
9043 }
9044 arg2 = static_cast< long >(val2);
9045 {
9046 PyThreadState* __tstate = wxPyBeginAllowThreads();
9047 wxIcon_SetHandle(arg1,arg2);
9048 wxPyEndAllowThreads(__tstate);
9049 if (PyErr_Occurred()) SWIG_fail;
9050 }
9051 resultobj = SWIG_Py_Void();
9052 return resultobj;
9053 fail:
9054 return NULL;
9055 }
9056
9057
9058 SWIGINTERN PyObject *_wrap_Icon_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9059 PyObject *resultobj = 0;
9060 wxIcon *arg1 = (wxIcon *) 0 ;
9061 bool result;
9062 void *argp1 = 0 ;
9063 int res1 = 0 ;
9064 PyObject *swig_obj[1] ;
9065
9066 if (!args) SWIG_fail;
9067 swig_obj[0] = args;
9068 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9069 if (!SWIG_IsOK(res1)) {
9070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_Ok" "', expected argument " "1"" of type '" "wxIcon *""'");
9071 }
9072 arg1 = reinterpret_cast< wxIcon * >(argp1);
9073 {
9074 PyThreadState* __tstate = wxPyBeginAllowThreads();
9075 result = (bool)(arg1)->Ok();
9076 wxPyEndAllowThreads(__tstate);
9077 if (PyErr_Occurred()) SWIG_fail;
9078 }
9079 {
9080 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9081 }
9082 return resultobj;
9083 fail:
9084 return NULL;
9085 }
9086
9087
9088 SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9089 PyObject *resultobj = 0;
9090 wxIcon *arg1 = (wxIcon *) 0 ;
9091 int result;
9092 void *argp1 = 0 ;
9093 int res1 = 0 ;
9094 PyObject *swig_obj[1] ;
9095
9096 if (!args) SWIG_fail;
9097 swig_obj[0] = args;
9098 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9099 if (!SWIG_IsOK(res1)) {
9100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9101 }
9102 arg1 = reinterpret_cast< wxIcon * >(argp1);
9103 {
9104 PyThreadState* __tstate = wxPyBeginAllowThreads();
9105 result = (int)(arg1)->GetWidth();
9106 wxPyEndAllowThreads(__tstate);
9107 if (PyErr_Occurred()) SWIG_fail;
9108 }
9109 resultobj = SWIG_From_int(static_cast< int >(result));
9110 return resultobj;
9111 fail:
9112 return NULL;
9113 }
9114
9115
9116 SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9117 PyObject *resultobj = 0;
9118 wxIcon *arg1 = (wxIcon *) 0 ;
9119 int result;
9120 void *argp1 = 0 ;
9121 int res1 = 0 ;
9122 PyObject *swig_obj[1] ;
9123
9124 if (!args) SWIG_fail;
9125 swig_obj[0] = args;
9126 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9127 if (!SWIG_IsOK(res1)) {
9128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9129 }
9130 arg1 = reinterpret_cast< wxIcon * >(argp1);
9131 {
9132 PyThreadState* __tstate = wxPyBeginAllowThreads();
9133 result = (int)(arg1)->GetHeight();
9134 wxPyEndAllowThreads(__tstate);
9135 if (PyErr_Occurred()) SWIG_fail;
9136 }
9137 resultobj = SWIG_From_int(static_cast< int >(result));
9138 return resultobj;
9139 fail:
9140 return NULL;
9141 }
9142
9143
9144 SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9145 PyObject *resultobj = 0;
9146 wxIcon *arg1 = (wxIcon *) 0 ;
9147 int result;
9148 void *argp1 = 0 ;
9149 int res1 = 0 ;
9150 PyObject *swig_obj[1] ;
9151
9152 if (!args) SWIG_fail;
9153 swig_obj[0] = args;
9154 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9155 if (!SWIG_IsOK(res1)) {
9156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9157 }
9158 arg1 = reinterpret_cast< wxIcon * >(argp1);
9159 {
9160 PyThreadState* __tstate = wxPyBeginAllowThreads();
9161 result = (int)(arg1)->GetDepth();
9162 wxPyEndAllowThreads(__tstate);
9163 if (PyErr_Occurred()) SWIG_fail;
9164 }
9165 resultobj = SWIG_From_int(static_cast< int >(result));
9166 return resultobj;
9167 fail:
9168 return NULL;
9169 }
9170
9171
9172 SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9173 PyObject *resultobj = 0;
9174 wxIcon *arg1 = (wxIcon *) 0 ;
9175 int arg2 ;
9176 void *argp1 = 0 ;
9177 int res1 = 0 ;
9178 int val2 ;
9179 int ecode2 = 0 ;
9180 PyObject * obj0 = 0 ;
9181 PyObject * obj1 = 0 ;
9182 char * kwnames[] = {
9183 (char *) "self",(char *) "w", NULL
9184 };
9185
9186 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
9187 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9188 if (!SWIG_IsOK(res1)) {
9189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9190 }
9191 arg1 = reinterpret_cast< wxIcon * >(argp1);
9192 ecode2 = SWIG_AsVal_int(obj1, &val2);
9193 if (!SWIG_IsOK(ecode2)) {
9194 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
9195 }
9196 arg2 = static_cast< int >(val2);
9197 {
9198 PyThreadState* __tstate = wxPyBeginAllowThreads();
9199 (arg1)->SetWidth(arg2);
9200 wxPyEndAllowThreads(__tstate);
9201 if (PyErr_Occurred()) SWIG_fail;
9202 }
9203 resultobj = SWIG_Py_Void();
9204 return resultobj;
9205 fail:
9206 return NULL;
9207 }
9208
9209
9210 SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9211 PyObject *resultobj = 0;
9212 wxIcon *arg1 = (wxIcon *) 0 ;
9213 int arg2 ;
9214 void *argp1 = 0 ;
9215 int res1 = 0 ;
9216 int val2 ;
9217 int ecode2 = 0 ;
9218 PyObject * obj0 = 0 ;
9219 PyObject * obj1 = 0 ;
9220 char * kwnames[] = {
9221 (char *) "self",(char *) "h", NULL
9222 };
9223
9224 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
9225 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9226 if (!SWIG_IsOK(res1)) {
9227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9228 }
9229 arg1 = reinterpret_cast< wxIcon * >(argp1);
9230 ecode2 = SWIG_AsVal_int(obj1, &val2);
9231 if (!SWIG_IsOK(ecode2)) {
9232 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
9233 }
9234 arg2 = static_cast< int >(val2);
9235 {
9236 PyThreadState* __tstate = wxPyBeginAllowThreads();
9237 (arg1)->SetHeight(arg2);
9238 wxPyEndAllowThreads(__tstate);
9239 if (PyErr_Occurred()) SWIG_fail;
9240 }
9241 resultobj = SWIG_Py_Void();
9242 return resultobj;
9243 fail:
9244 return NULL;
9245 }
9246
9247
9248 SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9249 PyObject *resultobj = 0;
9250 wxIcon *arg1 = (wxIcon *) 0 ;
9251 int arg2 ;
9252 void *argp1 = 0 ;
9253 int res1 = 0 ;
9254 int val2 ;
9255 int ecode2 = 0 ;
9256 PyObject * obj0 = 0 ;
9257 PyObject * obj1 = 0 ;
9258 char * kwnames[] = {
9259 (char *) "self",(char *) "d", NULL
9260 };
9261
9262 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
9263 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9264 if (!SWIG_IsOK(res1)) {
9265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9266 }
9267 arg1 = reinterpret_cast< wxIcon * >(argp1);
9268 ecode2 = SWIG_AsVal_int(obj1, &val2);
9269 if (!SWIG_IsOK(ecode2)) {
9270 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
9271 }
9272 arg2 = static_cast< int >(val2);
9273 {
9274 PyThreadState* __tstate = wxPyBeginAllowThreads();
9275 (arg1)->SetDepth(arg2);
9276 wxPyEndAllowThreads(__tstate);
9277 if (PyErr_Occurred()) SWIG_fail;
9278 }
9279 resultobj = SWIG_Py_Void();
9280 return resultobj;
9281 fail:
9282 return NULL;
9283 }
9284
9285
9286 SWIGINTERN PyObject *_wrap_Icon_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9287 PyObject *resultobj = 0;
9288 wxIcon *arg1 = (wxIcon *) 0 ;
9289 wxSize *arg2 = 0 ;
9290 void *argp1 = 0 ;
9291 int res1 = 0 ;
9292 wxSize temp2 ;
9293 PyObject * obj0 = 0 ;
9294 PyObject * obj1 = 0 ;
9295 char * kwnames[] = {
9296 (char *) "self",(char *) "size", NULL
9297 };
9298
9299 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
9300 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9301 if (!SWIG_IsOK(res1)) {
9302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetSize" "', expected argument " "1"" of type '" "wxIcon *""'");
9303 }
9304 arg1 = reinterpret_cast< wxIcon * >(argp1);
9305 {
9306 arg2 = &temp2;
9307 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
9308 }
9309 {
9310 PyThreadState* __tstate = wxPyBeginAllowThreads();
9311 (arg1)->SetSize((wxSize const &)*arg2);
9312 wxPyEndAllowThreads(__tstate);
9313 if (PyErr_Occurred()) SWIG_fail;
9314 }
9315 resultobj = SWIG_Py_Void();
9316 return resultobj;
9317 fail:
9318 return NULL;
9319 }
9320
9321
9322 SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9323 PyObject *resultobj = 0;
9324 wxIcon *arg1 = (wxIcon *) 0 ;
9325 wxBitmap *arg2 = 0 ;
9326 void *argp1 = 0 ;
9327 int res1 = 0 ;
9328 void *argp2 = 0 ;
9329 int res2 = 0 ;
9330 PyObject * obj0 = 0 ;
9331 PyObject * obj1 = 0 ;
9332 char * kwnames[] = {
9333 (char *) "self",(char *) "bmp", NULL
9334 };
9335
9336 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9337 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9338 if (!SWIG_IsOK(res1)) {
9339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
9340 }
9341 arg1 = reinterpret_cast< wxIcon * >(argp1);
9342 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9343 if (!SWIG_IsOK(res2)) {
9344 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9345 }
9346 if (!argp2) {
9347 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9348 }
9349 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9350 {
9351 PyThreadState* __tstate = wxPyBeginAllowThreads();
9352 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
9353 wxPyEndAllowThreads(__tstate);
9354 if (PyErr_Occurred()) SWIG_fail;
9355 }
9356 resultobj = SWIG_Py_Void();
9357 return resultobj;
9358 fail:
9359 return NULL;
9360 }
9361
9362
9363 SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9364 PyObject *obj;
9365 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9366 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
9367 return SWIG_Py_Void();
9368 }
9369
9370 SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9371 return SWIG_Python_InitShadowInstance(args);
9372 }
9373
9374 SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9375 PyObject *resultobj = 0;
9376 wxString *arg1 = (wxString *) &wxPyEmptyString ;
9377 int arg2 = (int) 0 ;
9378 wxIconLocation *result = 0 ;
9379 bool temp1 = false ;
9380 int val2 ;
9381 int ecode2 = 0 ;
9382 PyObject * obj0 = 0 ;
9383 PyObject * obj1 = 0 ;
9384 char * kwnames[] = {
9385 (char *) "filename",(char *) "num", NULL
9386 };
9387
9388 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
9389 if (obj0) {
9390 {
9391 arg1 = wxString_in_helper(obj0);
9392 if (arg1 == NULL) SWIG_fail;
9393 temp1 = true;
9394 }
9395 }
9396 if (obj1) {
9397 ecode2 = SWIG_AsVal_int(obj1, &val2);
9398 if (!SWIG_IsOK(ecode2)) {
9399 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
9400 }
9401 arg2 = static_cast< int >(val2);
9402 }
9403 {
9404 PyThreadState* __tstate = wxPyBeginAllowThreads();
9405 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
9406 wxPyEndAllowThreads(__tstate);
9407 if (PyErr_Occurred()) SWIG_fail;
9408 }
9409 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
9410 {
9411 if (temp1)
9412 delete arg1;
9413 }
9414 return resultobj;
9415 fail:
9416 {
9417 if (temp1)
9418 delete arg1;
9419 }
9420 return NULL;
9421 }
9422
9423
9424 SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9425 PyObject *resultobj = 0;
9426 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9427 void *argp1 = 0 ;
9428 int res1 = 0 ;
9429 PyObject *swig_obj[1] ;
9430
9431 if (!args) SWIG_fail;
9432 swig_obj[0] = args;
9433 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
9434 if (!SWIG_IsOK(res1)) {
9435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9436 }
9437 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9438 {
9439 PyThreadState* __tstate = wxPyBeginAllowThreads();
9440 delete arg1;
9441
9442 wxPyEndAllowThreads(__tstate);
9443 if (PyErr_Occurred()) SWIG_fail;
9444 }
9445 resultobj = SWIG_Py_Void();
9446 return resultobj;
9447 fail:
9448 return NULL;
9449 }
9450
9451
9452 SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9453 PyObject *resultobj = 0;
9454 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9455 bool result;
9456 void *argp1 = 0 ;
9457 int res1 = 0 ;
9458 PyObject *swig_obj[1] ;
9459
9460 if (!args) SWIG_fail;
9461 swig_obj[0] = args;
9462 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9463 if (!SWIG_IsOK(res1)) {
9464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9465 }
9466 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9467 {
9468 PyThreadState* __tstate = wxPyBeginAllowThreads();
9469 result = (bool)((wxIconLocation const *)arg1)->IsOk();
9470 wxPyEndAllowThreads(__tstate);
9471 if (PyErr_Occurred()) SWIG_fail;
9472 }
9473 {
9474 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9475 }
9476 return resultobj;
9477 fail:
9478 return NULL;
9479 }
9480
9481
9482 SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9483 PyObject *resultobj = 0;
9484 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9485 wxString *arg2 = 0 ;
9486 void *argp1 = 0 ;
9487 int res1 = 0 ;
9488 bool temp2 = false ;
9489 PyObject * obj0 = 0 ;
9490 PyObject * obj1 = 0 ;
9491 char * kwnames[] = {
9492 (char *) "self",(char *) "filename", NULL
9493 };
9494
9495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
9496 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9497 if (!SWIG_IsOK(res1)) {
9498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9499 }
9500 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9501 {
9502 arg2 = wxString_in_helper(obj1);
9503 if (arg2 == NULL) SWIG_fail;
9504 temp2 = true;
9505 }
9506 {
9507 PyThreadState* __tstate = wxPyBeginAllowThreads();
9508 (arg1)->SetFileName((wxString const &)*arg2);
9509 wxPyEndAllowThreads(__tstate);
9510 if (PyErr_Occurred()) SWIG_fail;
9511 }
9512 resultobj = SWIG_Py_Void();
9513 {
9514 if (temp2)
9515 delete arg2;
9516 }
9517 return resultobj;
9518 fail:
9519 {
9520 if (temp2)
9521 delete arg2;
9522 }
9523 return NULL;
9524 }
9525
9526
9527 SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9528 PyObject *resultobj = 0;
9529 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9530 wxString *result = 0 ;
9531 void *argp1 = 0 ;
9532 int res1 = 0 ;
9533 PyObject *swig_obj[1] ;
9534
9535 if (!args) SWIG_fail;
9536 swig_obj[0] = args;
9537 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9538 if (!SWIG_IsOK(res1)) {
9539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9540 }
9541 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9542 {
9543 PyThreadState* __tstate = wxPyBeginAllowThreads();
9544 {
9545 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
9546 result = (wxString *) &_result_ref;
9547 }
9548 wxPyEndAllowThreads(__tstate);
9549 if (PyErr_Occurred()) SWIG_fail;
9550 }
9551 {
9552 #if wxUSE_UNICODE
9553 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9554 #else
9555 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9556 #endif
9557 }
9558 return resultobj;
9559 fail:
9560 return NULL;
9561 }
9562
9563
9564 SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9565 PyObject *resultobj = 0;
9566 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9567 int arg2 ;
9568 void *argp1 = 0 ;
9569 int res1 = 0 ;
9570 int val2 ;
9571 int ecode2 = 0 ;
9572 PyObject * obj0 = 0 ;
9573 PyObject * obj1 = 0 ;
9574 char * kwnames[] = {
9575 (char *) "self",(char *) "num", NULL
9576 };
9577
9578 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
9579 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9580 if (!SWIG_IsOK(res1)) {
9581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9582 }
9583 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9584 ecode2 = SWIG_AsVal_int(obj1, &val2);
9585 if (!SWIG_IsOK(ecode2)) {
9586 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
9587 }
9588 arg2 = static_cast< int >(val2);
9589 {
9590 PyThreadState* __tstate = wxPyBeginAllowThreads();
9591 wxIconLocation_SetIndex(arg1,arg2);
9592 wxPyEndAllowThreads(__tstate);
9593 if (PyErr_Occurred()) SWIG_fail;
9594 }
9595 resultobj = SWIG_Py_Void();
9596 return resultobj;
9597 fail:
9598 return NULL;
9599 }
9600
9601
9602 SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9603 PyObject *resultobj = 0;
9604 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9605 int result;
9606 void *argp1 = 0 ;
9607 int res1 = 0 ;
9608 PyObject *swig_obj[1] ;
9609
9610 if (!args) SWIG_fail;
9611 swig_obj[0] = args;
9612 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9613 if (!SWIG_IsOK(res1)) {
9614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9615 }
9616 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9617 {
9618 PyThreadState* __tstate = wxPyBeginAllowThreads();
9619 result = (int)wxIconLocation_GetIndex(arg1);
9620 wxPyEndAllowThreads(__tstate);
9621 if (PyErr_Occurred()) SWIG_fail;
9622 }
9623 resultobj = SWIG_From_int(static_cast< int >(result));
9624 return resultobj;
9625 fail:
9626 return NULL;
9627 }
9628
9629
9630 SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9631 PyObject *obj;
9632 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9633 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
9634 return SWIG_Py_Void();
9635 }
9636
9637 SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9638 return SWIG_Python_InitShadowInstance(args);
9639 }
9640
9641 SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9642 PyObject *resultobj = 0;
9643 wxIconBundle *result = 0 ;
9644
9645 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
9646 {
9647 PyThreadState* __tstate = wxPyBeginAllowThreads();
9648 result = (wxIconBundle *)new wxIconBundle();
9649 wxPyEndAllowThreads(__tstate);
9650 if (PyErr_Occurred()) SWIG_fail;
9651 }
9652 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
9653 return resultobj;
9654 fail:
9655 return NULL;
9656 }
9657
9658
9659 SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9660 PyObject *resultobj = 0;
9661 wxString *arg1 = 0 ;
9662 long arg2 ;
9663 wxIconBundle *result = 0 ;
9664 bool temp1 = false ;
9665 long val2 ;
9666 int ecode2 = 0 ;
9667 PyObject * obj0 = 0 ;
9668 PyObject * obj1 = 0 ;
9669 char * kwnames[] = {
9670 (char *) "file",(char *) "type", NULL
9671 };
9672
9673 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
9674 {
9675 arg1 = wxString_in_helper(obj0);
9676 if (arg1 == NULL) SWIG_fail;
9677 temp1 = true;
9678 }
9679 ecode2 = SWIG_AsVal_long(obj1, &val2);
9680 if (!SWIG_IsOK(ecode2)) {
9681 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
9682 }
9683 arg2 = static_cast< long >(val2);
9684 {
9685 PyThreadState* __tstate = wxPyBeginAllowThreads();
9686 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
9687 wxPyEndAllowThreads(__tstate);
9688 if (PyErr_Occurred()) SWIG_fail;
9689 }
9690 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9691 {
9692 if (temp1)
9693 delete arg1;
9694 }
9695 return resultobj;
9696 fail:
9697 {
9698 if (temp1)
9699 delete arg1;
9700 }
9701 return NULL;
9702 }
9703
9704
9705 SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9706 PyObject *resultobj = 0;
9707 wxIcon *arg1 = 0 ;
9708 wxIconBundle *result = 0 ;
9709 void *argp1 = 0 ;
9710 int res1 = 0 ;
9711 PyObject * obj0 = 0 ;
9712 char * kwnames[] = {
9713 (char *) "icon", NULL
9714 };
9715
9716 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
9717 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
9718 if (!SWIG_IsOK(res1)) {
9719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9720 }
9721 if (!argp1) {
9722 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9723 }
9724 arg1 = reinterpret_cast< wxIcon * >(argp1);
9725 {
9726 PyThreadState* __tstate = wxPyBeginAllowThreads();
9727 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
9728 wxPyEndAllowThreads(__tstate);
9729 if (PyErr_Occurred()) SWIG_fail;
9730 }
9731 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9732 return resultobj;
9733 fail:
9734 return NULL;
9735 }
9736
9737
9738 SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9739 PyObject *resultobj = 0;
9740 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9741 void *argp1 = 0 ;
9742 int res1 = 0 ;
9743 PyObject *swig_obj[1] ;
9744
9745 if (!args) SWIG_fail;
9746 swig_obj[0] = args;
9747 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
9748 if (!SWIG_IsOK(res1)) {
9749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9750 }
9751 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9752 {
9753 PyThreadState* __tstate = wxPyBeginAllowThreads();
9754 delete arg1;
9755
9756 wxPyEndAllowThreads(__tstate);
9757 if (PyErr_Occurred()) SWIG_fail;
9758 }
9759 resultobj = SWIG_Py_Void();
9760 return resultobj;
9761 fail:
9762 return NULL;
9763 }
9764
9765
9766 SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9767 PyObject *resultobj = 0;
9768 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9769 wxIcon *arg2 = 0 ;
9770 void *argp1 = 0 ;
9771 int res1 = 0 ;
9772 void *argp2 = 0 ;
9773 int res2 = 0 ;
9774 PyObject * obj0 = 0 ;
9775 PyObject * obj1 = 0 ;
9776 char * kwnames[] = {
9777 (char *) "self",(char *) "icon", NULL
9778 };
9779
9780 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9781 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9782 if (!SWIG_IsOK(res1)) {
9783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9784 }
9785 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9786 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
9787 if (!SWIG_IsOK(res2)) {
9788 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9789 }
9790 if (!argp2) {
9791 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9792 }
9793 arg2 = reinterpret_cast< wxIcon * >(argp2);
9794 {
9795 PyThreadState* __tstate = wxPyBeginAllowThreads();
9796 (arg1)->AddIcon((wxIcon const &)*arg2);
9797 wxPyEndAllowThreads(__tstate);
9798 if (PyErr_Occurred()) SWIG_fail;
9799 }
9800 resultobj = SWIG_Py_Void();
9801 return resultobj;
9802 fail:
9803 return NULL;
9804 }
9805
9806
9807 SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9808 PyObject *resultobj = 0;
9809 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9810 wxString *arg2 = 0 ;
9811 long arg3 ;
9812 void *argp1 = 0 ;
9813 int res1 = 0 ;
9814 bool temp2 = false ;
9815 long val3 ;
9816 int ecode3 = 0 ;
9817 PyObject * obj0 = 0 ;
9818 PyObject * obj1 = 0 ;
9819 PyObject * obj2 = 0 ;
9820 char * kwnames[] = {
9821 (char *) "self",(char *) "file",(char *) "type", NULL
9822 };
9823
9824 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9825 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9826 if (!SWIG_IsOK(res1)) {
9827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9828 }
9829 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9830 {
9831 arg2 = wxString_in_helper(obj1);
9832 if (arg2 == NULL) SWIG_fail;
9833 temp2 = true;
9834 }
9835 ecode3 = SWIG_AsVal_long(obj2, &val3);
9836 if (!SWIG_IsOK(ecode3)) {
9837 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
9838 }
9839 arg3 = static_cast< long >(val3);
9840 {
9841 PyThreadState* __tstate = wxPyBeginAllowThreads();
9842 (arg1)->AddIcon((wxString const &)*arg2,arg3);
9843 wxPyEndAllowThreads(__tstate);
9844 if (PyErr_Occurred()) SWIG_fail;
9845 }
9846 resultobj = SWIG_Py_Void();
9847 {
9848 if (temp2)
9849 delete arg2;
9850 }
9851 return resultobj;
9852 fail:
9853 {
9854 if (temp2)
9855 delete arg2;
9856 }
9857 return NULL;
9858 }
9859
9860
9861 SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9862 PyObject *resultobj = 0;
9863 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9864 wxSize *arg2 = 0 ;
9865 wxIcon *result = 0 ;
9866 void *argp1 = 0 ;
9867 int res1 = 0 ;
9868 wxSize temp2 ;
9869 PyObject * obj0 = 0 ;
9870 PyObject * obj1 = 0 ;
9871 char * kwnames[] = {
9872 (char *) "self",(char *) "size", NULL
9873 };
9874
9875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9877 if (!SWIG_IsOK(res1)) {
9878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
9879 }
9880 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9881 {
9882 arg2 = &temp2;
9883 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
9884 }
9885 {
9886 PyThreadState* __tstate = wxPyBeginAllowThreads();
9887 {
9888 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
9889 result = (wxIcon *) &_result_ref;
9890 }
9891 wxPyEndAllowThreads(__tstate);
9892 if (PyErr_Occurred()) SWIG_fail;
9893 }
9894 {
9895 wxIcon* resultptr = new wxIcon(*result);
9896 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
9897 }
9898 return resultobj;
9899 fail:
9900 return NULL;
9901 }
9902
9903
9904 SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9905 PyObject *obj;
9906 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9907 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
9908 return SWIG_Py_Void();
9909 }
9910
9911 SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9912 return SWIG_Python_InitShadowInstance(args);
9913 }
9914
9915 SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9916 PyObject *resultobj = 0;
9917 wxString *arg1 = 0 ;
9918 long arg2 ;
9919 int arg3 = (int) 0 ;
9920 int arg4 = (int) 0 ;
9921 wxCursor *result = 0 ;
9922 bool temp1 = false ;
9923 long val2 ;
9924 int ecode2 = 0 ;
9925 int val3 ;
9926 int ecode3 = 0 ;
9927 int val4 ;
9928 int ecode4 = 0 ;
9929 PyObject * obj0 = 0 ;
9930 PyObject * obj1 = 0 ;
9931 PyObject * obj2 = 0 ;
9932 PyObject * obj3 = 0 ;
9933 char * kwnames[] = {
9934 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
9935 };
9936
9937 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9938 {
9939 arg1 = wxString_in_helper(obj0);
9940 if (arg1 == NULL) SWIG_fail;
9941 temp1 = true;
9942 }
9943 ecode2 = SWIG_AsVal_long(obj1, &val2);
9944 if (!SWIG_IsOK(ecode2)) {
9945 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
9946 }
9947 arg2 = static_cast< long >(val2);
9948 if (obj2) {
9949 ecode3 = SWIG_AsVal_int(obj2, &val3);
9950 if (!SWIG_IsOK(ecode3)) {
9951 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
9952 }
9953 arg3 = static_cast< int >(val3);
9954 }
9955 if (obj3) {
9956 ecode4 = SWIG_AsVal_int(obj3, &val4);
9957 if (!SWIG_IsOK(ecode4)) {
9958 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
9959 }
9960 arg4 = static_cast< int >(val4);
9961 }
9962 {
9963 if (!wxPyCheckForApp()) SWIG_fail;
9964 PyThreadState* __tstate = wxPyBeginAllowThreads();
9965 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
9966 wxPyEndAllowThreads(__tstate);
9967 if (PyErr_Occurred()) SWIG_fail;
9968 }
9969 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
9970 {
9971 if (temp1)
9972 delete arg1;
9973 }
9974 return resultobj;
9975 fail:
9976 {
9977 if (temp1)
9978 delete arg1;
9979 }
9980 return NULL;
9981 }
9982
9983
9984 SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9985 PyObject *resultobj = 0;
9986 wxCursor *arg1 = (wxCursor *) 0 ;
9987 void *argp1 = 0 ;
9988 int res1 = 0 ;
9989 PyObject *swig_obj[1] ;
9990
9991 if (!args) SWIG_fail;
9992 swig_obj[0] = args;
9993 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
9994 if (!SWIG_IsOK(res1)) {
9995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
9996 }
9997 arg1 = reinterpret_cast< wxCursor * >(argp1);
9998 {
9999 PyThreadState* __tstate = wxPyBeginAllowThreads();
10000 delete arg1;
10001
10002 wxPyEndAllowThreads(__tstate);
10003 if (PyErr_Occurred()) SWIG_fail;
10004 }
10005 resultobj = SWIG_Py_Void();
10006 return resultobj;
10007 fail:
10008 return NULL;
10009 }
10010
10011
10012 SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10013 PyObject *resultobj = 0;
10014 int arg1 ;
10015 wxCursor *result = 0 ;
10016 int val1 ;
10017 int ecode1 = 0 ;
10018 PyObject * obj0 = 0 ;
10019 char * kwnames[] = {
10020 (char *) "id", NULL
10021 };
10022
10023 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
10024 ecode1 = SWIG_AsVal_int(obj0, &val1);
10025 if (!SWIG_IsOK(ecode1)) {
10026 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
10027 }
10028 arg1 = static_cast< int >(val1);
10029 {
10030 if (!wxPyCheckForApp()) SWIG_fail;
10031 PyThreadState* __tstate = wxPyBeginAllowThreads();
10032 result = (wxCursor *)new wxCursor(arg1);
10033 wxPyEndAllowThreads(__tstate);
10034 if (PyErr_Occurred()) SWIG_fail;
10035 }
10036 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10037 return resultobj;
10038 fail:
10039 return NULL;
10040 }
10041
10042
10043 SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10044 PyObject *resultobj = 0;
10045 wxImage *arg1 = 0 ;
10046 wxCursor *result = 0 ;
10047 void *argp1 = 0 ;
10048 int res1 = 0 ;
10049 PyObject * obj0 = 0 ;
10050 char * kwnames[] = {
10051 (char *) "image", NULL
10052 };
10053
10054 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
10055 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
10056 if (!SWIG_IsOK(res1)) {
10057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10058 }
10059 if (!argp1) {
10060 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10061 }
10062 arg1 = reinterpret_cast< wxImage * >(argp1);
10063 {
10064 if (!wxPyCheckForApp()) SWIG_fail;
10065 PyThreadState* __tstate = wxPyBeginAllowThreads();
10066 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
10067 wxPyEndAllowThreads(__tstate);
10068 if (PyErr_Occurred()) SWIG_fail;
10069 }
10070 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10071 return resultobj;
10072 fail:
10073 return NULL;
10074 }
10075
10076
10077 SWIGINTERN PyObject *_wrap_Cursor_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10078 PyObject *resultobj = 0;
10079 wxCursor *arg1 = (wxCursor *) 0 ;
10080 long result;
10081 void *argp1 = 0 ;
10082 int res1 = 0 ;
10083 PyObject *swig_obj[1] ;
10084
10085 if (!args) SWIG_fail;
10086 swig_obj[0] = args;
10087 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10088 if (!SWIG_IsOK(res1)) {
10089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetHandle" "', expected argument " "1"" of type '" "wxCursor *""'");
10090 }
10091 arg1 = reinterpret_cast< wxCursor * >(argp1);
10092 {
10093 PyThreadState* __tstate = wxPyBeginAllowThreads();
10094 result = (long)(arg1)->GetHandle();
10095 wxPyEndAllowThreads(__tstate);
10096 if (PyErr_Occurred()) SWIG_fail;
10097 }
10098 resultobj = SWIG_From_long(static_cast< long >(result));
10099 return resultobj;
10100 fail:
10101 return NULL;
10102 }
10103
10104
10105 SWIGINTERN PyObject *_wrap_Cursor_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10106 PyObject *resultobj = 0;
10107 wxCursor *arg1 = (wxCursor *) 0 ;
10108 long arg2 ;
10109 void *argp1 = 0 ;
10110 int res1 = 0 ;
10111 long val2 ;
10112 int ecode2 = 0 ;
10113 PyObject * obj0 = 0 ;
10114 PyObject * obj1 = 0 ;
10115 char * kwnames[] = {
10116 (char *) "self",(char *) "handle", NULL
10117 };
10118
10119 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
10120 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10121 if (!SWIG_IsOK(res1)) {
10122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetHandle" "', expected argument " "1"" of type '" "wxCursor *""'");
10123 }
10124 arg1 = reinterpret_cast< wxCursor * >(argp1);
10125 ecode2 = SWIG_AsVal_long(obj1, &val2);
10126 if (!SWIG_IsOK(ecode2)) {
10127 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetHandle" "', expected argument " "2"" of type '" "long""'");
10128 }
10129 arg2 = static_cast< long >(val2);
10130 {
10131 PyThreadState* __tstate = wxPyBeginAllowThreads();
10132 wxCursor_SetHandle(arg1,arg2);
10133 wxPyEndAllowThreads(__tstate);
10134 if (PyErr_Occurred()) SWIG_fail;
10135 }
10136 resultobj = SWIG_Py_Void();
10137 return resultobj;
10138 fail:
10139 return NULL;
10140 }
10141
10142
10143 SWIGINTERN PyObject *_wrap_Cursor_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10144 PyObject *resultobj = 0;
10145 wxCursor *arg1 = (wxCursor *) 0 ;
10146 bool result;
10147 void *argp1 = 0 ;
10148 int res1 = 0 ;
10149 PyObject *swig_obj[1] ;
10150
10151 if (!args) SWIG_fail;
10152 swig_obj[0] = args;
10153 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10154 if (!SWIG_IsOK(res1)) {
10155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_Ok" "', expected argument " "1"" of type '" "wxCursor *""'");
10156 }
10157 arg1 = reinterpret_cast< wxCursor * >(argp1);
10158 {
10159 PyThreadState* __tstate = wxPyBeginAllowThreads();
10160 result = (bool)(arg1)->Ok();
10161 wxPyEndAllowThreads(__tstate);
10162 if (PyErr_Occurred()) SWIG_fail;
10163 }
10164 {
10165 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10166 }
10167 return resultobj;
10168 fail:
10169 return NULL;
10170 }
10171
10172
10173 SWIGINTERN PyObject *_wrap_Cursor_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10174 PyObject *resultobj = 0;
10175 wxCursor *arg1 = (wxCursor *) 0 ;
10176 int result;
10177 void *argp1 = 0 ;
10178 int res1 = 0 ;
10179 PyObject *swig_obj[1] ;
10180
10181 if (!args) SWIG_fail;
10182 swig_obj[0] = args;
10183 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10184 if (!SWIG_IsOK(res1)) {
10185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetWidth" "', expected argument " "1"" of type '" "wxCursor *""'");
10186 }
10187 arg1 = reinterpret_cast< wxCursor * >(argp1);
10188 {
10189 PyThreadState* __tstate = wxPyBeginAllowThreads();
10190 result = (int)(arg1)->GetWidth();
10191 wxPyEndAllowThreads(__tstate);
10192 if (PyErr_Occurred()) SWIG_fail;
10193 }
10194 resultobj = SWIG_From_int(static_cast< int >(result));
10195 return resultobj;
10196 fail:
10197 return NULL;
10198 }
10199
10200
10201 SWIGINTERN PyObject *_wrap_Cursor_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10202 PyObject *resultobj = 0;
10203 wxCursor *arg1 = (wxCursor *) 0 ;
10204 int result;
10205 void *argp1 = 0 ;
10206 int res1 = 0 ;
10207 PyObject *swig_obj[1] ;
10208
10209 if (!args) SWIG_fail;
10210 swig_obj[0] = args;
10211 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10212 if (!SWIG_IsOK(res1)) {
10213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetHeight" "', expected argument " "1"" of type '" "wxCursor *""'");
10214 }
10215 arg1 = reinterpret_cast< wxCursor * >(argp1);
10216 {
10217 PyThreadState* __tstate = wxPyBeginAllowThreads();
10218 result = (int)(arg1)->GetHeight();
10219 wxPyEndAllowThreads(__tstate);
10220 if (PyErr_Occurred()) SWIG_fail;
10221 }
10222 resultobj = SWIG_From_int(static_cast< int >(result));
10223 return resultobj;
10224 fail:
10225 return NULL;
10226 }
10227
10228
10229 SWIGINTERN PyObject *_wrap_Cursor_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10230 PyObject *resultobj = 0;
10231 wxCursor *arg1 = (wxCursor *) 0 ;
10232 int result;
10233 void *argp1 = 0 ;
10234 int res1 = 0 ;
10235 PyObject *swig_obj[1] ;
10236
10237 if (!args) SWIG_fail;
10238 swig_obj[0] = args;
10239 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10240 if (!SWIG_IsOK(res1)) {
10241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetDepth" "', expected argument " "1"" of type '" "wxCursor *""'");
10242 }
10243 arg1 = reinterpret_cast< wxCursor * >(argp1);
10244 {
10245 PyThreadState* __tstate = wxPyBeginAllowThreads();
10246 result = (int)(arg1)->GetDepth();
10247 wxPyEndAllowThreads(__tstate);
10248 if (PyErr_Occurred()) SWIG_fail;
10249 }
10250 resultobj = SWIG_From_int(static_cast< int >(result));
10251 return resultobj;
10252 fail:
10253 return NULL;
10254 }
10255
10256
10257 SWIGINTERN PyObject *_wrap_Cursor_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10258 PyObject *resultobj = 0;
10259 wxCursor *arg1 = (wxCursor *) 0 ;
10260 int arg2 ;
10261 void *argp1 = 0 ;
10262 int res1 = 0 ;
10263 int val2 ;
10264 int ecode2 = 0 ;
10265 PyObject * obj0 = 0 ;
10266 PyObject * obj1 = 0 ;
10267 char * kwnames[] = {
10268 (char *) "self",(char *) "w", NULL
10269 };
10270
10271 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
10272 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10273 if (!SWIG_IsOK(res1)) {
10274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetWidth" "', expected argument " "1"" of type '" "wxCursor *""'");
10275 }
10276 arg1 = reinterpret_cast< wxCursor * >(argp1);
10277 ecode2 = SWIG_AsVal_int(obj1, &val2);
10278 if (!SWIG_IsOK(ecode2)) {
10279 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetWidth" "', expected argument " "2"" of type '" "int""'");
10280 }
10281 arg2 = static_cast< int >(val2);
10282 {
10283 PyThreadState* __tstate = wxPyBeginAllowThreads();
10284 (arg1)->SetWidth(arg2);
10285 wxPyEndAllowThreads(__tstate);
10286 if (PyErr_Occurred()) SWIG_fail;
10287 }
10288 resultobj = SWIG_Py_Void();
10289 return resultobj;
10290 fail:
10291 return NULL;
10292 }
10293
10294
10295 SWIGINTERN PyObject *_wrap_Cursor_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10296 PyObject *resultobj = 0;
10297 wxCursor *arg1 = (wxCursor *) 0 ;
10298 int arg2 ;
10299 void *argp1 = 0 ;
10300 int res1 = 0 ;
10301 int val2 ;
10302 int ecode2 = 0 ;
10303 PyObject * obj0 = 0 ;
10304 PyObject * obj1 = 0 ;
10305 char * kwnames[] = {
10306 (char *) "self",(char *) "h", NULL
10307 };
10308
10309 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
10310 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10311 if (!SWIG_IsOK(res1)) {
10312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetHeight" "', expected argument " "1"" of type '" "wxCursor *""'");
10313 }
10314 arg1 = reinterpret_cast< wxCursor * >(argp1);
10315 ecode2 = SWIG_AsVal_int(obj1, &val2);
10316 if (!SWIG_IsOK(ecode2)) {
10317 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetHeight" "', expected argument " "2"" of type '" "int""'");
10318 }
10319 arg2 = static_cast< int >(val2);
10320 {
10321 PyThreadState* __tstate = wxPyBeginAllowThreads();
10322 (arg1)->SetHeight(arg2);
10323 wxPyEndAllowThreads(__tstate);
10324 if (PyErr_Occurred()) SWIG_fail;
10325 }
10326 resultobj = SWIG_Py_Void();
10327 return resultobj;
10328 fail:
10329 return NULL;
10330 }
10331
10332
10333 SWIGINTERN PyObject *_wrap_Cursor_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10334 PyObject *resultobj = 0;
10335 wxCursor *arg1 = (wxCursor *) 0 ;
10336 int arg2 ;
10337 void *argp1 = 0 ;
10338 int res1 = 0 ;
10339 int val2 ;
10340 int ecode2 = 0 ;
10341 PyObject * obj0 = 0 ;
10342 PyObject * obj1 = 0 ;
10343 char * kwnames[] = {
10344 (char *) "self",(char *) "d", NULL
10345 };
10346
10347 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
10348 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10349 if (!SWIG_IsOK(res1)) {
10350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetDepth" "', expected argument " "1"" of type '" "wxCursor *""'");
10351 }
10352 arg1 = reinterpret_cast< wxCursor * >(argp1);
10353 ecode2 = SWIG_AsVal_int(obj1, &val2);
10354 if (!SWIG_IsOK(ecode2)) {
10355 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetDepth" "', expected argument " "2"" of type '" "int""'");
10356 }
10357 arg2 = static_cast< int >(val2);
10358 {
10359 PyThreadState* __tstate = wxPyBeginAllowThreads();
10360 (arg1)->SetDepth(arg2);
10361 wxPyEndAllowThreads(__tstate);
10362 if (PyErr_Occurred()) SWIG_fail;
10363 }
10364 resultobj = SWIG_Py_Void();
10365 return resultobj;
10366 fail:
10367 return NULL;
10368 }
10369
10370
10371 SWIGINTERN PyObject *_wrap_Cursor_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10372 PyObject *resultobj = 0;
10373 wxCursor *arg1 = (wxCursor *) 0 ;
10374 wxSize *arg2 = 0 ;
10375 void *argp1 = 0 ;
10376 int res1 = 0 ;
10377 wxSize temp2 ;
10378 PyObject * obj0 = 0 ;
10379 PyObject * obj1 = 0 ;
10380 char * kwnames[] = {
10381 (char *) "self",(char *) "size", NULL
10382 };
10383
10384 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
10385 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10386 if (!SWIG_IsOK(res1)) {
10387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetSize" "', expected argument " "1"" of type '" "wxCursor *""'");
10388 }
10389 arg1 = reinterpret_cast< wxCursor * >(argp1);
10390 {
10391 arg2 = &temp2;
10392 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10393 }
10394 {
10395 PyThreadState* __tstate = wxPyBeginAllowThreads();
10396 (arg1)->SetSize((wxSize const &)*arg2);
10397 wxPyEndAllowThreads(__tstate);
10398 if (PyErr_Occurred()) SWIG_fail;
10399 }
10400 resultobj = SWIG_Py_Void();
10401 return resultobj;
10402 fail:
10403 return NULL;
10404 }
10405
10406
10407 SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10408 PyObject *obj;
10409 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10410 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
10411 return SWIG_Py_Void();
10412 }
10413
10414 SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10415 return SWIG_Python_InitShadowInstance(args);
10416 }
10417
10418 SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10419 PyObject *resultobj = 0;
10420 int arg1 = (int) 0 ;
10421 int arg2 = (int) 0 ;
10422 int arg3 = (int) 0 ;
10423 int arg4 = (int) 0 ;
10424 wxRegion *result = 0 ;
10425 int val1 ;
10426 int ecode1 = 0 ;
10427 int val2 ;
10428 int ecode2 = 0 ;
10429 int val3 ;
10430 int ecode3 = 0 ;
10431 int val4 ;
10432 int ecode4 = 0 ;
10433 PyObject * obj0 = 0 ;
10434 PyObject * obj1 = 0 ;
10435 PyObject * obj2 = 0 ;
10436 PyObject * obj3 = 0 ;
10437 char * kwnames[] = {
10438 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10439 };
10440
10441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10442 if (obj0) {
10443 ecode1 = SWIG_AsVal_int(obj0, &val1);
10444 if (!SWIG_IsOK(ecode1)) {
10445 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
10446 }
10447 arg1 = static_cast< int >(val1);
10448 }
10449 if (obj1) {
10450 ecode2 = SWIG_AsVal_int(obj1, &val2);
10451 if (!SWIG_IsOK(ecode2)) {
10452 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
10453 }
10454 arg2 = static_cast< int >(val2);
10455 }
10456 if (obj2) {
10457 ecode3 = SWIG_AsVal_int(obj2, &val3);
10458 if (!SWIG_IsOK(ecode3)) {
10459 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
10460 }
10461 arg3 = static_cast< int >(val3);
10462 }
10463 if (obj3) {
10464 ecode4 = SWIG_AsVal_int(obj3, &val4);
10465 if (!SWIG_IsOK(ecode4)) {
10466 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
10467 }
10468 arg4 = static_cast< int >(val4);
10469 }
10470 {
10471 if (!wxPyCheckForApp()) SWIG_fail;
10472 PyThreadState* __tstate = wxPyBeginAllowThreads();
10473 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
10474 wxPyEndAllowThreads(__tstate);
10475 if (PyErr_Occurred()) SWIG_fail;
10476 }
10477 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
10478 return resultobj;
10479 fail:
10480 return NULL;
10481 }
10482
10483
10484 SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10485 PyObject *resultobj = 0;
10486 wxBitmap *arg1 = 0 ;
10487 wxRegion *result = 0 ;
10488 void *argp1 = 0 ;
10489 int res1 = 0 ;
10490 PyObject * obj0 = 0 ;
10491 char * kwnames[] = {
10492 (char *) "bmp", NULL
10493 };
10494
10495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
10496 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10497 if (!SWIG_IsOK(res1)) {
10498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10499 }
10500 if (!argp1) {
10501 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10502 }
10503 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10504 {
10505 if (!wxPyCheckForApp()) SWIG_fail;
10506 PyThreadState* __tstate = wxPyBeginAllowThreads();
10507 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
10508 wxPyEndAllowThreads(__tstate);
10509 if (PyErr_Occurred()) SWIG_fail;
10510 }
10511 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10512 return resultobj;
10513 fail:
10514 return NULL;
10515 }
10516
10517
10518 SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10519 PyObject *resultobj = 0;
10520 wxBitmap *arg1 = 0 ;
10521 wxColour *arg2 = 0 ;
10522 int arg3 = (int) 0 ;
10523 wxRegion *result = 0 ;
10524 void *argp1 = 0 ;
10525 int res1 = 0 ;
10526 wxColour temp2 ;
10527 int val3 ;
10528 int ecode3 = 0 ;
10529 PyObject * obj0 = 0 ;
10530 PyObject * obj1 = 0 ;
10531 PyObject * obj2 = 0 ;
10532 char * kwnames[] = {
10533 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
10534 };
10535
10536 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10537 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10538 if (!SWIG_IsOK(res1)) {
10539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10540 }
10541 if (!argp1) {
10542 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10543 }
10544 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10545 {
10546 arg2 = &temp2;
10547 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10548 }
10549 if (obj2) {
10550 ecode3 = SWIG_AsVal_int(obj2, &val3);
10551 if (!SWIG_IsOK(ecode3)) {
10552 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
10553 }
10554 arg3 = static_cast< int >(val3);
10555 }
10556 {
10557 if (!wxPyCheckForApp()) SWIG_fail;
10558 PyThreadState* __tstate = wxPyBeginAllowThreads();
10559 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
10560 wxPyEndAllowThreads(__tstate);
10561 if (PyErr_Occurred()) SWIG_fail;
10562 }
10563 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10564 return resultobj;
10565 fail:
10566 return NULL;
10567 }
10568
10569
10570 SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10571 PyObject *resultobj = 0;
10572 int arg1 ;
10573 wxPoint *arg2 = (wxPoint *) 0 ;
10574 int arg3 = (int) wxWINDING_RULE ;
10575 wxRegion *result = 0 ;
10576 int val3 ;
10577 int ecode3 = 0 ;
10578 PyObject * obj0 = 0 ;
10579 PyObject * obj1 = 0 ;
10580 char * kwnames[] = {
10581 (char *) "points",(char *) "fillStyle", NULL
10582 };
10583
10584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
10585 {
10586 arg2 = wxPoint_LIST_helper(obj0, &arg1);
10587 if (arg2 == NULL) SWIG_fail;
10588 }
10589 if (obj1) {
10590 ecode3 = SWIG_AsVal_int(obj1, &val3);
10591 if (!SWIG_IsOK(ecode3)) {
10592 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
10593 }
10594 arg3 = static_cast< int >(val3);
10595 }
10596 {
10597 if (!wxPyCheckForApp()) SWIG_fail;
10598 PyThreadState* __tstate = wxPyBeginAllowThreads();
10599 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
10600 wxPyEndAllowThreads(__tstate);
10601 if (PyErr_Occurred()) SWIG_fail;
10602 }
10603 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10604 {
10605 if (arg2) delete [] arg2;
10606 }
10607 return resultobj;
10608 fail:
10609 {
10610 if (arg2) delete [] arg2;
10611 }
10612 return NULL;
10613 }
10614
10615
10616 SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10617 PyObject *resultobj = 0;
10618 wxRegion *arg1 = (wxRegion *) 0 ;
10619 void *argp1 = 0 ;
10620 int res1 = 0 ;
10621 PyObject *swig_obj[1] ;
10622
10623 if (!args) SWIG_fail;
10624 swig_obj[0] = args;
10625 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
10626 if (!SWIG_IsOK(res1)) {
10627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
10628 }
10629 arg1 = reinterpret_cast< wxRegion * >(argp1);
10630 {
10631 PyThreadState* __tstate = wxPyBeginAllowThreads();
10632 delete arg1;
10633
10634 wxPyEndAllowThreads(__tstate);
10635 if (PyErr_Occurred()) SWIG_fail;
10636 }
10637 resultobj = SWIG_Py_Void();
10638 return resultobj;
10639 fail:
10640 return NULL;
10641 }
10642
10643
10644 SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10645 PyObject *resultobj = 0;
10646 wxRegion *arg1 = (wxRegion *) 0 ;
10647 void *argp1 = 0 ;
10648 int res1 = 0 ;
10649 PyObject *swig_obj[1] ;
10650
10651 if (!args) SWIG_fail;
10652 swig_obj[0] = args;
10653 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10654 if (!SWIG_IsOK(res1)) {
10655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
10656 }
10657 arg1 = reinterpret_cast< wxRegion * >(argp1);
10658 {
10659 PyThreadState* __tstate = wxPyBeginAllowThreads();
10660 (arg1)->Clear();
10661 wxPyEndAllowThreads(__tstate);
10662 if (PyErr_Occurred()) SWIG_fail;
10663 }
10664 resultobj = SWIG_Py_Void();
10665 return resultobj;
10666 fail:
10667 return NULL;
10668 }
10669
10670
10671 SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10672 PyObject *resultobj = 0;
10673 wxRegion *arg1 = (wxRegion *) 0 ;
10674 int arg2 ;
10675 int arg3 ;
10676 bool result;
10677 void *argp1 = 0 ;
10678 int res1 = 0 ;
10679 int val2 ;
10680 int ecode2 = 0 ;
10681 int val3 ;
10682 int ecode3 = 0 ;
10683 PyObject * obj0 = 0 ;
10684 PyObject * obj1 = 0 ;
10685 PyObject * obj2 = 0 ;
10686 char * kwnames[] = {
10687 (char *) "self",(char *) "x",(char *) "y", NULL
10688 };
10689
10690 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10691 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10692 if (!SWIG_IsOK(res1)) {
10693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
10694 }
10695 arg1 = reinterpret_cast< wxRegion * >(argp1);
10696 ecode2 = SWIG_AsVal_int(obj1, &val2);
10697 if (!SWIG_IsOK(ecode2)) {
10698 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
10699 }
10700 arg2 = static_cast< int >(val2);
10701 ecode3 = SWIG_AsVal_int(obj2, &val3);
10702 if (!SWIG_IsOK(ecode3)) {
10703 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
10704 }
10705 arg3 = static_cast< int >(val3);
10706 {
10707 PyThreadState* __tstate = wxPyBeginAllowThreads();
10708 result = (bool)(arg1)->Offset(arg2,arg3);
10709 wxPyEndAllowThreads(__tstate);
10710 if (PyErr_Occurred()) SWIG_fail;
10711 }
10712 {
10713 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10714 }
10715 return resultobj;
10716 fail:
10717 return NULL;
10718 }
10719
10720
10721 SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10722 PyObject *resultobj = 0;
10723 wxRegion *arg1 = (wxRegion *) 0 ;
10724 int arg2 ;
10725 int arg3 ;
10726 wxRegionContain result;
10727 void *argp1 = 0 ;
10728 int res1 = 0 ;
10729 int val2 ;
10730 int ecode2 = 0 ;
10731 int val3 ;
10732 int ecode3 = 0 ;
10733 PyObject * obj0 = 0 ;
10734 PyObject * obj1 = 0 ;
10735 PyObject * obj2 = 0 ;
10736 char * kwnames[] = {
10737 (char *) "self",(char *) "x",(char *) "y", NULL
10738 };
10739
10740 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10741 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10742 if (!SWIG_IsOK(res1)) {
10743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
10744 }
10745 arg1 = reinterpret_cast< wxRegion * >(argp1);
10746 ecode2 = SWIG_AsVal_int(obj1, &val2);
10747 if (!SWIG_IsOK(ecode2)) {
10748 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
10749 }
10750 arg2 = static_cast< int >(val2);
10751 ecode3 = SWIG_AsVal_int(obj2, &val3);
10752 if (!SWIG_IsOK(ecode3)) {
10753 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
10754 }
10755 arg3 = static_cast< int >(val3);
10756 {
10757 PyThreadState* __tstate = wxPyBeginAllowThreads();
10758 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
10759 wxPyEndAllowThreads(__tstate);
10760 if (PyErr_Occurred()) SWIG_fail;
10761 }
10762 resultobj = SWIG_From_int(static_cast< int >(result));
10763 return resultobj;
10764 fail:
10765 return NULL;
10766 }
10767
10768
10769 SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10770 PyObject *resultobj = 0;
10771 wxRegion *arg1 = (wxRegion *) 0 ;
10772 wxPoint *arg2 = 0 ;
10773 wxRegionContain result;
10774 void *argp1 = 0 ;
10775 int res1 = 0 ;
10776 wxPoint temp2 ;
10777 PyObject * obj0 = 0 ;
10778 PyObject * obj1 = 0 ;
10779 char * kwnames[] = {
10780 (char *) "self",(char *) "pt", NULL
10781 };
10782
10783 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
10784 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10785 if (!SWIG_IsOK(res1)) {
10786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
10787 }
10788 arg1 = reinterpret_cast< wxRegion * >(argp1);
10789 {
10790 arg2 = &temp2;
10791 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10792 }
10793 {
10794 PyThreadState* __tstate = wxPyBeginAllowThreads();
10795 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
10796 wxPyEndAllowThreads(__tstate);
10797 if (PyErr_Occurred()) SWIG_fail;
10798 }
10799 resultobj = SWIG_From_int(static_cast< int >(result));
10800 return resultobj;
10801 fail:
10802 return NULL;
10803 }
10804
10805
10806 SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10807 PyObject *resultobj = 0;
10808 wxRegion *arg1 = (wxRegion *) 0 ;
10809 wxRect *arg2 = 0 ;
10810 wxRegionContain result;
10811 void *argp1 = 0 ;
10812 int res1 = 0 ;
10813 wxRect temp2 ;
10814 PyObject * obj0 = 0 ;
10815 PyObject * obj1 = 0 ;
10816 char * kwnames[] = {
10817 (char *) "self",(char *) "rect", NULL
10818 };
10819
10820 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
10821 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10822 if (!SWIG_IsOK(res1)) {
10823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10824 }
10825 arg1 = reinterpret_cast< wxRegion * >(argp1);
10826 {
10827 arg2 = &temp2;
10828 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10829 }
10830 {
10831 PyThreadState* __tstate = wxPyBeginAllowThreads();
10832 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
10833 wxPyEndAllowThreads(__tstate);
10834 if (PyErr_Occurred()) SWIG_fail;
10835 }
10836 resultobj = SWIG_From_int(static_cast< int >(result));
10837 return resultobj;
10838 fail:
10839 return NULL;
10840 }
10841
10842
10843 SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10844 PyObject *resultobj = 0;
10845 wxRegion *arg1 = (wxRegion *) 0 ;
10846 int arg2 ;
10847 int arg3 ;
10848 int arg4 ;
10849 int arg5 ;
10850 wxRegionContain result;
10851 void *argp1 = 0 ;
10852 int res1 = 0 ;
10853 int val2 ;
10854 int ecode2 = 0 ;
10855 int val3 ;
10856 int ecode3 = 0 ;
10857 int val4 ;
10858 int ecode4 = 0 ;
10859 int val5 ;
10860 int ecode5 = 0 ;
10861 PyObject * obj0 = 0 ;
10862 PyObject * obj1 = 0 ;
10863 PyObject * obj2 = 0 ;
10864 PyObject * obj3 = 0 ;
10865 PyObject * obj4 = 0 ;
10866 char * kwnames[] = {
10867 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
10868 };
10869
10870 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10871 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10872 if (!SWIG_IsOK(res1)) {
10873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
10874 }
10875 arg1 = reinterpret_cast< wxRegion * >(argp1);
10876 ecode2 = SWIG_AsVal_int(obj1, &val2);
10877 if (!SWIG_IsOK(ecode2)) {
10878 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
10879 }
10880 arg2 = static_cast< int >(val2);
10881 ecode3 = SWIG_AsVal_int(obj2, &val3);
10882 if (!SWIG_IsOK(ecode3)) {
10883 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
10884 }
10885 arg3 = static_cast< int >(val3);
10886 ecode4 = SWIG_AsVal_int(obj3, &val4);
10887 if (!SWIG_IsOK(ecode4)) {
10888 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
10889 }
10890 arg4 = static_cast< int >(val4);
10891 ecode5 = SWIG_AsVal_int(obj4, &val5);
10892 if (!SWIG_IsOK(ecode5)) {
10893 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
10894 }
10895 arg5 = static_cast< int >(val5);
10896 {
10897 PyThreadState* __tstate = wxPyBeginAllowThreads();
10898 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
10899 wxPyEndAllowThreads(__tstate);
10900 if (PyErr_Occurred()) SWIG_fail;
10901 }
10902 resultobj = SWIG_From_int(static_cast< int >(result));
10903 return resultobj;
10904 fail:
10905 return NULL;
10906 }
10907
10908
10909 SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10910 PyObject *resultobj = 0;
10911 wxRegion *arg1 = (wxRegion *) 0 ;
10912 wxRect result;
10913 void *argp1 = 0 ;
10914 int res1 = 0 ;
10915 PyObject *swig_obj[1] ;
10916
10917 if (!args) SWIG_fail;
10918 swig_obj[0] = args;
10919 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10920 if (!SWIG_IsOK(res1)) {
10921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
10922 }
10923 arg1 = reinterpret_cast< wxRegion * >(argp1);
10924 {
10925 PyThreadState* __tstate = wxPyBeginAllowThreads();
10926 result = (arg1)->GetBox();
10927 wxPyEndAllowThreads(__tstate);
10928 if (PyErr_Occurred()) SWIG_fail;
10929 }
10930 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
10931 return resultobj;
10932 fail:
10933 return NULL;
10934 }
10935
10936
10937 SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10938 PyObject *resultobj = 0;
10939 wxRegion *arg1 = (wxRegion *) 0 ;
10940 int arg2 ;
10941 int arg3 ;
10942 int arg4 ;
10943 int arg5 ;
10944 bool result;
10945 void *argp1 = 0 ;
10946 int res1 = 0 ;
10947 int val2 ;
10948 int ecode2 = 0 ;
10949 int val3 ;
10950 int ecode3 = 0 ;
10951 int val4 ;
10952 int ecode4 = 0 ;
10953 int val5 ;
10954 int ecode5 = 0 ;
10955 PyObject * obj0 = 0 ;
10956 PyObject * obj1 = 0 ;
10957 PyObject * obj2 = 0 ;
10958 PyObject * obj3 = 0 ;
10959 PyObject * obj4 = 0 ;
10960 char * kwnames[] = {
10961 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10962 };
10963
10964 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10965 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10966 if (!SWIG_IsOK(res1)) {
10967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
10968 }
10969 arg1 = reinterpret_cast< wxRegion * >(argp1);
10970 ecode2 = SWIG_AsVal_int(obj1, &val2);
10971 if (!SWIG_IsOK(ecode2)) {
10972 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
10973 }
10974 arg2 = static_cast< int >(val2);
10975 ecode3 = SWIG_AsVal_int(obj2, &val3);
10976 if (!SWIG_IsOK(ecode3)) {
10977 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
10978 }
10979 arg3 = static_cast< int >(val3);
10980 ecode4 = SWIG_AsVal_int(obj3, &val4);
10981 if (!SWIG_IsOK(ecode4)) {
10982 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
10983 }
10984 arg4 = static_cast< int >(val4);
10985 ecode5 = SWIG_AsVal_int(obj4, &val5);
10986 if (!SWIG_IsOK(ecode5)) {
10987 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
10988 }
10989 arg5 = static_cast< int >(val5);
10990 {
10991 PyThreadState* __tstate = wxPyBeginAllowThreads();
10992 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
10993 wxPyEndAllowThreads(__tstate);
10994 if (PyErr_Occurred()) SWIG_fail;
10995 }
10996 {
10997 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10998 }
10999 return resultobj;
11000 fail:
11001 return NULL;
11002 }
11003
11004
11005 SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11006 PyObject *resultobj = 0;
11007 wxRegion *arg1 = (wxRegion *) 0 ;
11008 wxRect *arg2 = 0 ;
11009 bool result;
11010 void *argp1 = 0 ;
11011 int res1 = 0 ;
11012 wxRect temp2 ;
11013 PyObject * obj0 = 0 ;
11014 PyObject * obj1 = 0 ;
11015 char * kwnames[] = {
11016 (char *) "self",(char *) "rect", NULL
11017 };
11018
11019 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
11020 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11021 if (!SWIG_IsOK(res1)) {
11022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11023 }
11024 arg1 = reinterpret_cast< wxRegion * >(argp1);
11025 {
11026 arg2 = &temp2;
11027 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11028 }
11029 {
11030 PyThreadState* __tstate = wxPyBeginAllowThreads();
11031 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
11032 wxPyEndAllowThreads(__tstate);
11033 if (PyErr_Occurred()) SWIG_fail;
11034 }
11035 {
11036 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11037 }
11038 return resultobj;
11039 fail:
11040 return NULL;
11041 }
11042
11043
11044 SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11045 PyObject *resultobj = 0;
11046 wxRegion *arg1 = (wxRegion *) 0 ;
11047 wxRegion *arg2 = 0 ;
11048 bool result;
11049 void *argp1 = 0 ;
11050 int res1 = 0 ;
11051 void *argp2 = 0 ;
11052 int res2 = 0 ;
11053 PyObject * obj0 = 0 ;
11054 PyObject * obj1 = 0 ;
11055 char * kwnames[] = {
11056 (char *) "self",(char *) "region", NULL
11057 };
11058
11059 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11060 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11061 if (!SWIG_IsOK(res1)) {
11062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11063 }
11064 arg1 = reinterpret_cast< wxRegion * >(argp1);
11065 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11066 if (!SWIG_IsOK(res2)) {
11067 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11068 }
11069 if (!argp2) {
11070 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11071 }
11072 arg2 = reinterpret_cast< wxRegion * >(argp2);
11073 {
11074 PyThreadState* __tstate = wxPyBeginAllowThreads();
11075 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
11076 wxPyEndAllowThreads(__tstate);
11077 if (PyErr_Occurred()) SWIG_fail;
11078 }
11079 {
11080 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11081 }
11082 return resultobj;
11083 fail:
11084 return NULL;
11085 }
11086
11087
11088 SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11089 PyObject *resultobj = 0;
11090 wxRegion *arg1 = (wxRegion *) 0 ;
11091 bool result;
11092 void *argp1 = 0 ;
11093 int res1 = 0 ;
11094 PyObject *swig_obj[1] ;
11095
11096 if (!args) SWIG_fail;
11097 swig_obj[0] = args;
11098 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11099 if (!SWIG_IsOK(res1)) {
11100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
11101 }
11102 arg1 = reinterpret_cast< wxRegion * >(argp1);
11103 {
11104 PyThreadState* __tstate = wxPyBeginAllowThreads();
11105 result = (bool)(arg1)->IsEmpty();
11106 wxPyEndAllowThreads(__tstate);
11107 if (PyErr_Occurred()) SWIG_fail;
11108 }
11109 {
11110 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11111 }
11112 return resultobj;
11113 fail:
11114 return NULL;
11115 }
11116
11117
11118 SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11119 PyObject *resultobj = 0;
11120 wxRegion *arg1 = (wxRegion *) 0 ;
11121 int arg2 ;
11122 int arg3 ;
11123 int arg4 ;
11124 int arg5 ;
11125 bool result;
11126 void *argp1 = 0 ;
11127 int res1 = 0 ;
11128 int val2 ;
11129 int ecode2 = 0 ;
11130 int val3 ;
11131 int ecode3 = 0 ;
11132 int val4 ;
11133 int ecode4 = 0 ;
11134 int val5 ;
11135 int ecode5 = 0 ;
11136 PyObject * obj0 = 0 ;
11137 PyObject * obj1 = 0 ;
11138 PyObject * obj2 = 0 ;
11139 PyObject * obj3 = 0 ;
11140 PyObject * obj4 = 0 ;
11141 char * kwnames[] = {
11142 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11143 };
11144
11145 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11146 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11147 if (!SWIG_IsOK(res1)) {
11148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
11149 }
11150 arg1 = reinterpret_cast< wxRegion * >(argp1);
11151 ecode2 = SWIG_AsVal_int(obj1, &val2);
11152 if (!SWIG_IsOK(ecode2)) {
11153 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
11154 }
11155 arg2 = static_cast< int >(val2);
11156 ecode3 = SWIG_AsVal_int(obj2, &val3);
11157 if (!SWIG_IsOK(ecode3)) {
11158 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
11159 }
11160 arg3 = static_cast< int >(val3);
11161 ecode4 = SWIG_AsVal_int(obj3, &val4);
11162 if (!SWIG_IsOK(ecode4)) {
11163 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
11164 }
11165 arg4 = static_cast< int >(val4);
11166 ecode5 = SWIG_AsVal_int(obj4, &val5);
11167 if (!SWIG_IsOK(ecode5)) {
11168 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
11169 }
11170 arg5 = static_cast< int >(val5);
11171 {
11172 PyThreadState* __tstate = wxPyBeginAllowThreads();
11173 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
11174 wxPyEndAllowThreads(__tstate);
11175 if (PyErr_Occurred()) SWIG_fail;
11176 }
11177 {
11178 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11179 }
11180 return resultobj;
11181 fail:
11182 return NULL;
11183 }
11184
11185
11186 SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11187 PyObject *resultobj = 0;
11188 wxRegion *arg1 = (wxRegion *) 0 ;
11189 wxRect *arg2 = 0 ;
11190 bool result;
11191 void *argp1 = 0 ;
11192 int res1 = 0 ;
11193 wxRect temp2 ;
11194 PyObject * obj0 = 0 ;
11195 PyObject * obj1 = 0 ;
11196 char * kwnames[] = {
11197 (char *) "self",(char *) "rect", NULL
11198 };
11199
11200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
11201 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11202 if (!SWIG_IsOK(res1)) {
11203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11204 }
11205 arg1 = reinterpret_cast< wxRegion * >(argp1);
11206 {
11207 arg2 = &temp2;
11208 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11209 }
11210 {
11211 PyThreadState* __tstate = wxPyBeginAllowThreads();
11212 result = (bool)(arg1)->Union((wxRect const &)*arg2);
11213 wxPyEndAllowThreads(__tstate);
11214 if (PyErr_Occurred()) SWIG_fail;
11215 }
11216 {
11217 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11218 }
11219 return resultobj;
11220 fail:
11221 return NULL;
11222 }
11223
11224
11225 SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11226 PyObject *resultobj = 0;
11227 wxRegion *arg1 = (wxRegion *) 0 ;
11228 wxRegion *arg2 = 0 ;
11229 bool result;
11230 void *argp1 = 0 ;
11231 int res1 = 0 ;
11232 void *argp2 = 0 ;
11233 int res2 = 0 ;
11234 PyObject * obj0 = 0 ;
11235 PyObject * obj1 = 0 ;
11236 char * kwnames[] = {
11237 (char *) "self",(char *) "region", NULL
11238 };
11239
11240 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11241 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11242 if (!SWIG_IsOK(res1)) {
11243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11244 }
11245 arg1 = reinterpret_cast< wxRegion * >(argp1);
11246 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11247 if (!SWIG_IsOK(res2)) {
11248 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11249 }
11250 if (!argp2) {
11251 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11252 }
11253 arg2 = reinterpret_cast< wxRegion * >(argp2);
11254 {
11255 PyThreadState* __tstate = wxPyBeginAllowThreads();
11256 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
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_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11270 PyObject *resultobj = 0;
11271 wxRegion *arg1 = (wxRegion *) 0 ;
11272 int arg2 ;
11273 int arg3 ;
11274 int arg4 ;
11275 int arg5 ;
11276 bool result;
11277 void *argp1 = 0 ;
11278 int res1 = 0 ;
11279 int val2 ;
11280 int ecode2 = 0 ;
11281 int val3 ;
11282 int ecode3 = 0 ;
11283 int val4 ;
11284 int ecode4 = 0 ;
11285 int val5 ;
11286 int ecode5 = 0 ;
11287 PyObject * obj0 = 0 ;
11288 PyObject * obj1 = 0 ;
11289 PyObject * obj2 = 0 ;
11290 PyObject * obj3 = 0 ;
11291 PyObject * obj4 = 0 ;
11292 char * kwnames[] = {
11293 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11294 };
11295
11296 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11298 if (!SWIG_IsOK(res1)) {
11299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
11300 }
11301 arg1 = reinterpret_cast< wxRegion * >(argp1);
11302 ecode2 = SWIG_AsVal_int(obj1, &val2);
11303 if (!SWIG_IsOK(ecode2)) {
11304 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
11305 }
11306 arg2 = static_cast< int >(val2);
11307 ecode3 = SWIG_AsVal_int(obj2, &val3);
11308 if (!SWIG_IsOK(ecode3)) {
11309 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
11310 }
11311 arg3 = static_cast< int >(val3);
11312 ecode4 = SWIG_AsVal_int(obj3, &val4);
11313 if (!SWIG_IsOK(ecode4)) {
11314 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
11315 }
11316 arg4 = static_cast< int >(val4);
11317 ecode5 = SWIG_AsVal_int(obj4, &val5);
11318 if (!SWIG_IsOK(ecode5)) {
11319 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
11320 }
11321 arg5 = static_cast< int >(val5);
11322 {
11323 PyThreadState* __tstate = wxPyBeginAllowThreads();
11324 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
11325 wxPyEndAllowThreads(__tstate);
11326 if (PyErr_Occurred()) SWIG_fail;
11327 }
11328 {
11329 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11330 }
11331 return resultobj;
11332 fail:
11333 return NULL;
11334 }
11335
11336
11337 SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11338 PyObject *resultobj = 0;
11339 wxRegion *arg1 = (wxRegion *) 0 ;
11340 wxRect *arg2 = 0 ;
11341 bool result;
11342 void *argp1 = 0 ;
11343 int res1 = 0 ;
11344 wxRect temp2 ;
11345 PyObject * obj0 = 0 ;
11346 PyObject * obj1 = 0 ;
11347 char * kwnames[] = {
11348 (char *) "self",(char *) "rect", NULL
11349 };
11350
11351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
11352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11353 if (!SWIG_IsOK(res1)) {
11354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11355 }
11356 arg1 = reinterpret_cast< wxRegion * >(argp1);
11357 {
11358 arg2 = &temp2;
11359 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11360 }
11361 {
11362 PyThreadState* __tstate = wxPyBeginAllowThreads();
11363 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
11364 wxPyEndAllowThreads(__tstate);
11365 if (PyErr_Occurred()) SWIG_fail;
11366 }
11367 {
11368 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11369 }
11370 return resultobj;
11371 fail:
11372 return NULL;
11373 }
11374
11375
11376 SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11377 PyObject *resultobj = 0;
11378 wxRegion *arg1 = (wxRegion *) 0 ;
11379 wxRegion *arg2 = 0 ;
11380 bool result;
11381 void *argp1 = 0 ;
11382 int res1 = 0 ;
11383 void *argp2 = 0 ;
11384 int res2 = 0 ;
11385 PyObject * obj0 = 0 ;
11386 PyObject * obj1 = 0 ;
11387 char * kwnames[] = {
11388 (char *) "self",(char *) "region", NULL
11389 };
11390
11391 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11392 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11393 if (!SWIG_IsOK(res1)) {
11394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11395 }
11396 arg1 = reinterpret_cast< wxRegion * >(argp1);
11397 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11398 if (!SWIG_IsOK(res2)) {
11399 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11400 }
11401 if (!argp2) {
11402 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11403 }
11404 arg2 = reinterpret_cast< wxRegion * >(argp2);
11405 {
11406 PyThreadState* __tstate = wxPyBeginAllowThreads();
11407 result = (bool)(arg1)->Subtract((wxRegion 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_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11421 PyObject *resultobj = 0;
11422 wxRegion *arg1 = (wxRegion *) 0 ;
11423 int arg2 ;
11424 int arg3 ;
11425 int arg4 ;
11426 int arg5 ;
11427 bool result;
11428 void *argp1 = 0 ;
11429 int res1 = 0 ;
11430 int val2 ;
11431 int ecode2 = 0 ;
11432 int val3 ;
11433 int ecode3 = 0 ;
11434 int val4 ;
11435 int ecode4 = 0 ;
11436 int val5 ;
11437 int ecode5 = 0 ;
11438 PyObject * obj0 = 0 ;
11439 PyObject * obj1 = 0 ;
11440 PyObject * obj2 = 0 ;
11441 PyObject * obj3 = 0 ;
11442 PyObject * obj4 = 0 ;
11443 char * kwnames[] = {
11444 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11445 };
11446
11447 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11448 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11449 if (!SWIG_IsOK(res1)) {
11450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
11451 }
11452 arg1 = reinterpret_cast< wxRegion * >(argp1);
11453 ecode2 = SWIG_AsVal_int(obj1, &val2);
11454 if (!SWIG_IsOK(ecode2)) {
11455 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
11456 }
11457 arg2 = static_cast< int >(val2);
11458 ecode3 = SWIG_AsVal_int(obj2, &val3);
11459 if (!SWIG_IsOK(ecode3)) {
11460 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
11461 }
11462 arg3 = static_cast< int >(val3);
11463 ecode4 = SWIG_AsVal_int(obj3, &val4);
11464 if (!SWIG_IsOK(ecode4)) {
11465 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
11466 }
11467 arg4 = static_cast< int >(val4);
11468 ecode5 = SWIG_AsVal_int(obj4, &val5);
11469 if (!SWIG_IsOK(ecode5)) {
11470 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
11471 }
11472 arg5 = static_cast< int >(val5);
11473 {
11474 PyThreadState* __tstate = wxPyBeginAllowThreads();
11475 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
11476 wxPyEndAllowThreads(__tstate);
11477 if (PyErr_Occurred()) SWIG_fail;
11478 }
11479 {
11480 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11481 }
11482 return resultobj;
11483 fail:
11484 return NULL;
11485 }
11486
11487
11488 SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11489 PyObject *resultobj = 0;
11490 wxRegion *arg1 = (wxRegion *) 0 ;
11491 wxRect *arg2 = 0 ;
11492 bool result;
11493 void *argp1 = 0 ;
11494 int res1 = 0 ;
11495 wxRect temp2 ;
11496 PyObject * obj0 = 0 ;
11497 PyObject * obj1 = 0 ;
11498 char * kwnames[] = {
11499 (char *) "self",(char *) "rect", NULL
11500 };
11501
11502 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
11503 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11504 if (!SWIG_IsOK(res1)) {
11505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11506 }
11507 arg1 = reinterpret_cast< wxRegion * >(argp1);
11508 {
11509 arg2 = &temp2;
11510 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11511 }
11512 {
11513 PyThreadState* __tstate = wxPyBeginAllowThreads();
11514 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
11515 wxPyEndAllowThreads(__tstate);
11516 if (PyErr_Occurred()) SWIG_fail;
11517 }
11518 {
11519 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11520 }
11521 return resultobj;
11522 fail:
11523 return NULL;
11524 }
11525
11526
11527 SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11528 PyObject *resultobj = 0;
11529 wxRegion *arg1 = (wxRegion *) 0 ;
11530 wxRegion *arg2 = 0 ;
11531 bool result;
11532 void *argp1 = 0 ;
11533 int res1 = 0 ;
11534 void *argp2 = 0 ;
11535 int res2 = 0 ;
11536 PyObject * obj0 = 0 ;
11537 PyObject * obj1 = 0 ;
11538 char * kwnames[] = {
11539 (char *) "self",(char *) "region", NULL
11540 };
11541
11542 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11543 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11544 if (!SWIG_IsOK(res1)) {
11545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11546 }
11547 arg1 = reinterpret_cast< wxRegion * >(argp1);
11548 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11549 if (!SWIG_IsOK(res2)) {
11550 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11551 }
11552 if (!argp2) {
11553 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11554 }
11555 arg2 = reinterpret_cast< wxRegion * >(argp2);
11556 {
11557 PyThreadState* __tstate = wxPyBeginAllowThreads();
11558 result = (bool)(arg1)->Xor((wxRegion 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_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11572 PyObject *resultobj = 0;
11573 wxRegion *arg1 = (wxRegion *) 0 ;
11574 SwigValueWrapper<wxBitmap > result;
11575 void *argp1 = 0 ;
11576 int res1 = 0 ;
11577 PyObject *swig_obj[1] ;
11578
11579 if (!args) SWIG_fail;
11580 swig_obj[0] = args;
11581 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11582 if (!SWIG_IsOK(res1)) {
11583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11584 }
11585 arg1 = reinterpret_cast< wxRegion * >(argp1);
11586 {
11587 PyThreadState* __tstate = wxPyBeginAllowThreads();
11588 result = (arg1)->ConvertToBitmap();
11589 wxPyEndAllowThreads(__tstate);
11590 if (PyErr_Occurred()) SWIG_fail;
11591 }
11592 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
11593 return resultobj;
11594 fail:
11595 return NULL;
11596 }
11597
11598
11599 SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11600 PyObject *resultobj = 0;
11601 wxRegion *arg1 = (wxRegion *) 0 ;
11602 wxBitmap *arg2 = 0 ;
11603 bool result;
11604 void *argp1 = 0 ;
11605 int res1 = 0 ;
11606 void *argp2 = 0 ;
11607 int res2 = 0 ;
11608 PyObject * obj0 = 0 ;
11609 PyObject * obj1 = 0 ;
11610 char * kwnames[] = {
11611 (char *) "self",(char *) "bmp", NULL
11612 };
11613
11614 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
11615 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11616 if (!SWIG_IsOK(res1)) {
11617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11618 }
11619 arg1 = reinterpret_cast< wxRegion * >(argp1);
11620 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11621 if (!SWIG_IsOK(res2)) {
11622 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11623 }
11624 if (!argp2) {
11625 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11626 }
11627 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11628 {
11629 PyThreadState* __tstate = wxPyBeginAllowThreads();
11630 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
11631 wxPyEndAllowThreads(__tstate);
11632 if (PyErr_Occurred()) SWIG_fail;
11633 }
11634 {
11635 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11636 }
11637 return resultobj;
11638 fail:
11639 return NULL;
11640 }
11641
11642
11643 SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11644 PyObject *resultobj = 0;
11645 wxRegion *arg1 = (wxRegion *) 0 ;
11646 wxBitmap *arg2 = 0 ;
11647 wxColour *arg3 = 0 ;
11648 int arg4 = (int) 0 ;
11649 bool result;
11650 void *argp1 = 0 ;
11651 int res1 = 0 ;
11652 void *argp2 = 0 ;
11653 int res2 = 0 ;
11654 wxColour temp3 ;
11655 int val4 ;
11656 int ecode4 = 0 ;
11657 PyObject * obj0 = 0 ;
11658 PyObject * obj1 = 0 ;
11659 PyObject * obj2 = 0 ;
11660 PyObject * obj3 = 0 ;
11661 char * kwnames[] = {
11662 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
11663 };
11664
11665 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
11666 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11667 if (!SWIG_IsOK(res1)) {
11668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
11669 }
11670 arg1 = reinterpret_cast< wxRegion * >(argp1);
11671 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11672 if (!SWIG_IsOK(res2)) {
11673 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11674 }
11675 if (!argp2) {
11676 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11677 }
11678 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11679 {
11680 arg3 = &temp3;
11681 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
11682 }
11683 if (obj3) {
11684 ecode4 = SWIG_AsVal_int(obj3, &val4);
11685 if (!SWIG_IsOK(ecode4)) {
11686 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
11687 }
11688 arg4 = static_cast< int >(val4);
11689 }
11690 {
11691 PyThreadState* __tstate = wxPyBeginAllowThreads();
11692 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
11693 wxPyEndAllowThreads(__tstate);
11694 if (PyErr_Occurred()) SWIG_fail;
11695 }
11696 {
11697 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11698 }
11699 return resultobj;
11700 fail:
11701 return NULL;
11702 }
11703
11704
11705 SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11706 PyObject *obj;
11707 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11708 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
11709 return SWIG_Py_Void();
11710 }
11711
11712 SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11713 return SWIG_Python_InitShadowInstance(args);
11714 }
11715
11716 SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11717 PyObject *resultobj = 0;
11718 wxRegion *arg1 = 0 ;
11719 wxRegionIterator *result = 0 ;
11720 void *argp1 = 0 ;
11721 int res1 = 0 ;
11722 PyObject * obj0 = 0 ;
11723 char * kwnames[] = {
11724 (char *) "region", NULL
11725 };
11726
11727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
11728 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
11729 if (!SWIG_IsOK(res1)) {
11730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11731 }
11732 if (!argp1) {
11733 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11734 }
11735 arg1 = reinterpret_cast< wxRegion * >(argp1);
11736 {
11737 if (!wxPyCheckForApp()) SWIG_fail;
11738 PyThreadState* __tstate = wxPyBeginAllowThreads();
11739 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
11740 wxPyEndAllowThreads(__tstate);
11741 if (PyErr_Occurred()) SWIG_fail;
11742 }
11743 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
11744 return resultobj;
11745 fail:
11746 return NULL;
11747 }
11748
11749
11750 SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11751 PyObject *resultobj = 0;
11752 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11753 void *argp1 = 0 ;
11754 int res1 = 0 ;
11755 PyObject *swig_obj[1] ;
11756
11757 if (!args) SWIG_fail;
11758 swig_obj[0] = args;
11759 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
11760 if (!SWIG_IsOK(res1)) {
11761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11762 }
11763 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11764 {
11765 PyThreadState* __tstate = wxPyBeginAllowThreads();
11766 delete arg1;
11767
11768 wxPyEndAllowThreads(__tstate);
11769 if (PyErr_Occurred()) SWIG_fail;
11770 }
11771 resultobj = SWIG_Py_Void();
11772 return resultobj;
11773 fail:
11774 return NULL;
11775 }
11776
11777
11778 SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11779 PyObject *resultobj = 0;
11780 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11781 int result;
11782 void *argp1 = 0 ;
11783 int res1 = 0 ;
11784 PyObject *swig_obj[1] ;
11785
11786 if (!args) SWIG_fail;
11787 swig_obj[0] = args;
11788 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11789 if (!SWIG_IsOK(res1)) {
11790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11791 }
11792 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11793 {
11794 PyThreadState* __tstate = wxPyBeginAllowThreads();
11795 result = (int)(arg1)->GetX();
11796 wxPyEndAllowThreads(__tstate);
11797 if (PyErr_Occurred()) SWIG_fail;
11798 }
11799 resultobj = SWIG_From_int(static_cast< int >(result));
11800 return resultobj;
11801 fail:
11802 return NULL;
11803 }
11804
11805
11806 SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11807 PyObject *resultobj = 0;
11808 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11809 int result;
11810 void *argp1 = 0 ;
11811 int res1 = 0 ;
11812 PyObject *swig_obj[1] ;
11813
11814 if (!args) SWIG_fail;
11815 swig_obj[0] = args;
11816 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11817 if (!SWIG_IsOK(res1)) {
11818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11819 }
11820 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11821 {
11822 PyThreadState* __tstate = wxPyBeginAllowThreads();
11823 result = (int)(arg1)->GetY();
11824 wxPyEndAllowThreads(__tstate);
11825 if (PyErr_Occurred()) SWIG_fail;
11826 }
11827 resultobj = SWIG_From_int(static_cast< int >(result));
11828 return resultobj;
11829 fail:
11830 return NULL;
11831 }
11832
11833
11834 SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11835 PyObject *resultobj = 0;
11836 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11837 int result;
11838 void *argp1 = 0 ;
11839 int res1 = 0 ;
11840 PyObject *swig_obj[1] ;
11841
11842 if (!args) SWIG_fail;
11843 swig_obj[0] = args;
11844 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11845 if (!SWIG_IsOK(res1)) {
11846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11847 }
11848 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11849 {
11850 PyThreadState* __tstate = wxPyBeginAllowThreads();
11851 result = (int)(arg1)->GetW();
11852 wxPyEndAllowThreads(__tstate);
11853 if (PyErr_Occurred()) SWIG_fail;
11854 }
11855 resultobj = SWIG_From_int(static_cast< int >(result));
11856 return resultobj;
11857 fail:
11858 return NULL;
11859 }
11860
11861
11862 SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11863 PyObject *resultobj = 0;
11864 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11865 int result;
11866 void *argp1 = 0 ;
11867 int res1 = 0 ;
11868 PyObject *swig_obj[1] ;
11869
11870 if (!args) SWIG_fail;
11871 swig_obj[0] = args;
11872 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11873 if (!SWIG_IsOK(res1)) {
11874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11875 }
11876 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11877 {
11878 PyThreadState* __tstate = wxPyBeginAllowThreads();
11879 result = (int)(arg1)->GetWidth();
11880 wxPyEndAllowThreads(__tstate);
11881 if (PyErr_Occurred()) SWIG_fail;
11882 }
11883 resultobj = SWIG_From_int(static_cast< int >(result));
11884 return resultobj;
11885 fail:
11886 return NULL;
11887 }
11888
11889
11890 SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11891 PyObject *resultobj = 0;
11892 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11893 int result;
11894 void *argp1 = 0 ;
11895 int res1 = 0 ;
11896 PyObject *swig_obj[1] ;
11897
11898 if (!args) SWIG_fail;
11899 swig_obj[0] = args;
11900 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11901 if (!SWIG_IsOK(res1)) {
11902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11903 }
11904 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11905 {
11906 PyThreadState* __tstate = wxPyBeginAllowThreads();
11907 result = (int)(arg1)->GetH();
11908 wxPyEndAllowThreads(__tstate);
11909 if (PyErr_Occurred()) SWIG_fail;
11910 }
11911 resultobj = SWIG_From_int(static_cast< int >(result));
11912 return resultobj;
11913 fail:
11914 return NULL;
11915 }
11916
11917
11918 SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11919 PyObject *resultobj = 0;
11920 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11921 int result;
11922 void *argp1 = 0 ;
11923 int res1 = 0 ;
11924 PyObject *swig_obj[1] ;
11925
11926 if (!args) SWIG_fail;
11927 swig_obj[0] = args;
11928 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11929 if (!SWIG_IsOK(res1)) {
11930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11931 }
11932 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11933 {
11934 PyThreadState* __tstate = wxPyBeginAllowThreads();
11935 result = (int)(arg1)->GetHeight();
11936 wxPyEndAllowThreads(__tstate);
11937 if (PyErr_Occurred()) SWIG_fail;
11938 }
11939 resultobj = SWIG_From_int(static_cast< int >(result));
11940 return resultobj;
11941 fail:
11942 return NULL;
11943 }
11944
11945
11946 SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11947 PyObject *resultobj = 0;
11948 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11949 wxRect result;
11950 void *argp1 = 0 ;
11951 int res1 = 0 ;
11952 PyObject *swig_obj[1] ;
11953
11954 if (!args) SWIG_fail;
11955 swig_obj[0] = args;
11956 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11957 if (!SWIG_IsOK(res1)) {
11958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11959 }
11960 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11961 {
11962 PyThreadState* __tstate = wxPyBeginAllowThreads();
11963 result = (arg1)->GetRect();
11964 wxPyEndAllowThreads(__tstate);
11965 if (PyErr_Occurred()) SWIG_fail;
11966 }
11967 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
11968 return resultobj;
11969 fail:
11970 return NULL;
11971 }
11972
11973
11974 SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11975 PyObject *resultobj = 0;
11976 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11977 bool result;
11978 void *argp1 = 0 ;
11979 int res1 = 0 ;
11980 PyObject *swig_obj[1] ;
11981
11982 if (!args) SWIG_fail;
11983 swig_obj[0] = args;
11984 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11985 if (!SWIG_IsOK(res1)) {
11986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11987 }
11988 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11989 {
11990 PyThreadState* __tstate = wxPyBeginAllowThreads();
11991 result = (bool)(arg1)->HaveRects();
11992 wxPyEndAllowThreads(__tstate);
11993 if (PyErr_Occurred()) SWIG_fail;
11994 }
11995 {
11996 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11997 }
11998 return resultobj;
11999 fail:
12000 return NULL;
12001 }
12002
12003
12004 SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12005 PyObject *resultobj = 0;
12006 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12007 void *argp1 = 0 ;
12008 int res1 = 0 ;
12009 PyObject *swig_obj[1] ;
12010
12011 if (!args) SWIG_fail;
12012 swig_obj[0] = args;
12013 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12014 if (!SWIG_IsOK(res1)) {
12015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12016 }
12017 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12018 {
12019 PyThreadState* __tstate = wxPyBeginAllowThreads();
12020 (arg1)->Reset();
12021 wxPyEndAllowThreads(__tstate);
12022 if (PyErr_Occurred()) SWIG_fail;
12023 }
12024 resultobj = SWIG_Py_Void();
12025 return resultobj;
12026 fail:
12027 return NULL;
12028 }
12029
12030
12031 SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12032 PyObject *resultobj = 0;
12033 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12034 void *argp1 = 0 ;
12035 int res1 = 0 ;
12036 PyObject *swig_obj[1] ;
12037
12038 if (!args) SWIG_fail;
12039 swig_obj[0] = args;
12040 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12041 if (!SWIG_IsOK(res1)) {
12042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12043 }
12044 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12045 {
12046 PyThreadState* __tstate = wxPyBeginAllowThreads();
12047 wxRegionIterator_Next(arg1);
12048 wxPyEndAllowThreads(__tstate);
12049 if (PyErr_Occurred()) SWIG_fail;
12050 }
12051 resultobj = SWIG_Py_Void();
12052 return resultobj;
12053 fail:
12054 return NULL;
12055 }
12056
12057
12058 SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12059 PyObject *resultobj = 0;
12060 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12061 bool result;
12062 void *argp1 = 0 ;
12063 int res1 = 0 ;
12064 PyObject *swig_obj[1] ;
12065
12066 if (!args) SWIG_fail;
12067 swig_obj[0] = args;
12068 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12069 if (!SWIG_IsOK(res1)) {
12070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12071 }
12072 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12073 {
12074 PyThreadState* __tstate = wxPyBeginAllowThreads();
12075 result = (bool)wxRegionIterator___nonzero__(arg1);
12076 wxPyEndAllowThreads(__tstate);
12077 if (PyErr_Occurred()) SWIG_fail;
12078 }
12079 {
12080 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12081 }
12082 return resultobj;
12083 fail:
12084 return NULL;
12085 }
12086
12087
12088 SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12089 PyObject *obj;
12090 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12091 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
12092 return SWIG_Py_Void();
12093 }
12094
12095 SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12096 return SWIG_Python_InitShadowInstance(args);
12097 }
12098
12099 SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12100 PyObject *resultobj = 0;
12101 wxNativeFontInfo *result = 0 ;
12102
12103 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
12104 {
12105 PyThreadState* __tstate = wxPyBeginAllowThreads();
12106 result = (wxNativeFontInfo *)new wxNativeFontInfo();
12107 wxPyEndAllowThreads(__tstate);
12108 if (PyErr_Occurred()) SWIG_fail;
12109 }
12110 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
12111 return resultobj;
12112 fail:
12113 return NULL;
12114 }
12115
12116
12117 SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12118 PyObject *resultobj = 0;
12119 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12120 void *argp1 = 0 ;
12121 int res1 = 0 ;
12122 PyObject *swig_obj[1] ;
12123
12124 if (!args) SWIG_fail;
12125 swig_obj[0] = args;
12126 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
12127 if (!SWIG_IsOK(res1)) {
12128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12129 }
12130 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12131 {
12132 PyThreadState* __tstate = wxPyBeginAllowThreads();
12133 delete arg1;
12134
12135 wxPyEndAllowThreads(__tstate);
12136 if (PyErr_Occurred()) SWIG_fail;
12137 }
12138 resultobj = SWIG_Py_Void();
12139 return resultobj;
12140 fail:
12141 return NULL;
12142 }
12143
12144
12145 SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12146 PyObject *resultobj = 0;
12147 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12148 void *argp1 = 0 ;
12149 int res1 = 0 ;
12150 PyObject *swig_obj[1] ;
12151
12152 if (!args) SWIG_fail;
12153 swig_obj[0] = args;
12154 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12155 if (!SWIG_IsOK(res1)) {
12156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12157 }
12158 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12159 {
12160 PyThreadState* __tstate = wxPyBeginAllowThreads();
12161 (arg1)->Init();
12162 wxPyEndAllowThreads(__tstate);
12163 if (PyErr_Occurred()) SWIG_fail;
12164 }
12165 resultobj = SWIG_Py_Void();
12166 return resultobj;
12167 fail:
12168 return NULL;
12169 }
12170
12171
12172 SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12173 PyObject *resultobj = 0;
12174 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12175 wxFont *arg2 = 0 ;
12176 void *argp1 = 0 ;
12177 int res1 = 0 ;
12178 void *argp2 = 0 ;
12179 int res2 = 0 ;
12180 PyObject * obj0 = 0 ;
12181 PyObject * obj1 = 0 ;
12182 char * kwnames[] = {
12183 (char *) "self",(char *) "font", NULL
12184 };
12185
12186 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
12187 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12188 if (!SWIG_IsOK(res1)) {
12189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12190 }
12191 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12192 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
12193 if (!SWIG_IsOK(res2)) {
12194 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12195 }
12196 if (!argp2) {
12197 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12198 }
12199 arg2 = reinterpret_cast< wxFont * >(argp2);
12200 {
12201 PyThreadState* __tstate = wxPyBeginAllowThreads();
12202 (arg1)->InitFromFont((wxFont const &)*arg2);
12203 wxPyEndAllowThreads(__tstate);
12204 if (PyErr_Occurred()) SWIG_fail;
12205 }
12206 resultobj = SWIG_Py_Void();
12207 return resultobj;
12208 fail:
12209 return NULL;
12210 }
12211
12212
12213 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12214 PyObject *resultobj = 0;
12215 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12216 int result;
12217 void *argp1 = 0 ;
12218 int res1 = 0 ;
12219 PyObject *swig_obj[1] ;
12220
12221 if (!args) SWIG_fail;
12222 swig_obj[0] = args;
12223 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12224 if (!SWIG_IsOK(res1)) {
12225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12226 }
12227 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12228 {
12229 PyThreadState* __tstate = wxPyBeginAllowThreads();
12230 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
12231 wxPyEndAllowThreads(__tstate);
12232 if (PyErr_Occurred()) SWIG_fail;
12233 }
12234 resultobj = SWIG_From_int(static_cast< int >(result));
12235 return resultobj;
12236 fail:
12237 return NULL;
12238 }
12239
12240
12241 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12242 PyObject *resultobj = 0;
12243 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12244 wxSize result;
12245 void *argp1 = 0 ;
12246 int res1 = 0 ;
12247 PyObject *swig_obj[1] ;
12248
12249 if (!args) SWIG_fail;
12250 swig_obj[0] = args;
12251 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12252 if (!SWIG_IsOK(res1)) {
12253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPixelSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12254 }
12255 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12256 {
12257 PyThreadState* __tstate = wxPyBeginAllowThreads();
12258 result = ((wxNativeFontInfo const *)arg1)->GetPixelSize();
12259 wxPyEndAllowThreads(__tstate);
12260 if (PyErr_Occurred()) SWIG_fail;
12261 }
12262 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
12263 return resultobj;
12264 fail:
12265 return NULL;
12266 }
12267
12268
12269 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12270 PyObject *resultobj = 0;
12271 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12272 wxFontStyle result;
12273 void *argp1 = 0 ;
12274 int res1 = 0 ;
12275 PyObject *swig_obj[1] ;
12276
12277 if (!args) SWIG_fail;
12278 swig_obj[0] = args;
12279 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12280 if (!SWIG_IsOK(res1)) {
12281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12282 }
12283 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12284 {
12285 PyThreadState* __tstate = wxPyBeginAllowThreads();
12286 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
12287 wxPyEndAllowThreads(__tstate);
12288 if (PyErr_Occurred()) SWIG_fail;
12289 }
12290 resultobj = SWIG_From_int(static_cast< int >(result));
12291 return resultobj;
12292 fail:
12293 return NULL;
12294 }
12295
12296
12297 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12298 PyObject *resultobj = 0;
12299 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12300 wxFontWeight result;
12301 void *argp1 = 0 ;
12302 int res1 = 0 ;
12303 PyObject *swig_obj[1] ;
12304
12305 if (!args) SWIG_fail;
12306 swig_obj[0] = args;
12307 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12308 if (!SWIG_IsOK(res1)) {
12309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12310 }
12311 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12312 {
12313 PyThreadState* __tstate = wxPyBeginAllowThreads();
12314 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
12315 wxPyEndAllowThreads(__tstate);
12316 if (PyErr_Occurred()) SWIG_fail;
12317 }
12318 resultobj = SWIG_From_int(static_cast< int >(result));
12319 return resultobj;
12320 fail:
12321 return NULL;
12322 }
12323
12324
12325 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12326 PyObject *resultobj = 0;
12327 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12328 bool result;
12329 void *argp1 = 0 ;
12330 int res1 = 0 ;
12331 PyObject *swig_obj[1] ;
12332
12333 if (!args) SWIG_fail;
12334 swig_obj[0] = args;
12335 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12336 if (!SWIG_IsOK(res1)) {
12337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12338 }
12339 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12340 {
12341 PyThreadState* __tstate = wxPyBeginAllowThreads();
12342 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
12343 wxPyEndAllowThreads(__tstate);
12344 if (PyErr_Occurred()) SWIG_fail;
12345 }
12346 {
12347 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12348 }
12349 return resultobj;
12350 fail:
12351 return NULL;
12352 }
12353
12354
12355 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12356 PyObject *resultobj = 0;
12357 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12358 wxString result;
12359 void *argp1 = 0 ;
12360 int res1 = 0 ;
12361 PyObject *swig_obj[1] ;
12362
12363 if (!args) SWIG_fail;
12364 swig_obj[0] = args;
12365 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12366 if (!SWIG_IsOK(res1)) {
12367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12368 }
12369 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12370 {
12371 PyThreadState* __tstate = wxPyBeginAllowThreads();
12372 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
12373 wxPyEndAllowThreads(__tstate);
12374 if (PyErr_Occurred()) SWIG_fail;
12375 }
12376 {
12377 #if wxUSE_UNICODE
12378 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12379 #else
12380 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12381 #endif
12382 }
12383 return resultobj;
12384 fail:
12385 return NULL;
12386 }
12387
12388
12389 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12390 PyObject *resultobj = 0;
12391 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12392 wxFontFamily result;
12393 void *argp1 = 0 ;
12394 int res1 = 0 ;
12395 PyObject *swig_obj[1] ;
12396
12397 if (!args) SWIG_fail;
12398 swig_obj[0] = args;
12399 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12400 if (!SWIG_IsOK(res1)) {
12401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12402 }
12403 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12404 {
12405 PyThreadState* __tstate = wxPyBeginAllowThreads();
12406 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
12407 wxPyEndAllowThreads(__tstate);
12408 if (PyErr_Occurred()) SWIG_fail;
12409 }
12410 resultobj = SWIG_From_int(static_cast< int >(result));
12411 return resultobj;
12412 fail:
12413 return NULL;
12414 }
12415
12416
12417 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12418 PyObject *resultobj = 0;
12419 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12420 wxFontEncoding result;
12421 void *argp1 = 0 ;
12422 int res1 = 0 ;
12423 PyObject *swig_obj[1] ;
12424
12425 if (!args) SWIG_fail;
12426 swig_obj[0] = args;
12427 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12428 if (!SWIG_IsOK(res1)) {
12429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12430 }
12431 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12432 {
12433 PyThreadState* __tstate = wxPyBeginAllowThreads();
12434 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
12435 wxPyEndAllowThreads(__tstate);
12436 if (PyErr_Occurred()) SWIG_fail;
12437 }
12438 resultobj = SWIG_From_int(static_cast< int >(result));
12439 return resultobj;
12440 fail:
12441 return NULL;
12442 }
12443
12444
12445 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12446 PyObject *resultobj = 0;
12447 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12448 int arg2 ;
12449 void *argp1 = 0 ;
12450 int res1 = 0 ;
12451 int val2 ;
12452 int ecode2 = 0 ;
12453 PyObject * obj0 = 0 ;
12454 PyObject * obj1 = 0 ;
12455 char * kwnames[] = {
12456 (char *) "self",(char *) "pointsize", NULL
12457 };
12458
12459 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
12460 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12461 if (!SWIG_IsOK(res1)) {
12462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12463 }
12464 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12465 ecode2 = SWIG_AsVal_int(obj1, &val2);
12466 if (!SWIG_IsOK(ecode2)) {
12467 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
12468 }
12469 arg2 = static_cast< int >(val2);
12470 {
12471 PyThreadState* __tstate = wxPyBeginAllowThreads();
12472 (arg1)->SetPointSize(arg2);
12473 wxPyEndAllowThreads(__tstate);
12474 if (PyErr_Occurred()) SWIG_fail;
12475 }
12476 resultobj = SWIG_Py_Void();
12477 return resultobj;
12478 fail:
12479 return NULL;
12480 }
12481
12482
12483 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12484 PyObject *resultobj = 0;
12485 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12486 wxSize *arg2 = 0 ;
12487 void *argp1 = 0 ;
12488 int res1 = 0 ;
12489 wxSize temp2 ;
12490 PyObject * obj0 = 0 ;
12491 PyObject * obj1 = 0 ;
12492 char * kwnames[] = {
12493 (char *) "self",(char *) "pixelSize", NULL
12494 };
12495
12496 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
12497 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12498 if (!SWIG_IsOK(res1)) {
12499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPixelSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12500 }
12501 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12502 {
12503 arg2 = &temp2;
12504 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
12505 }
12506 {
12507 PyThreadState* __tstate = wxPyBeginAllowThreads();
12508 (arg1)->SetPixelSize((wxSize const &)*arg2);
12509 wxPyEndAllowThreads(__tstate);
12510 if (PyErr_Occurred()) SWIG_fail;
12511 }
12512 resultobj = SWIG_Py_Void();
12513 return resultobj;
12514 fail:
12515 return NULL;
12516 }
12517
12518
12519 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12520 PyObject *resultobj = 0;
12521 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12522 wxFontStyle arg2 ;
12523 void *argp1 = 0 ;
12524 int res1 = 0 ;
12525 int val2 ;
12526 int ecode2 = 0 ;
12527 PyObject * obj0 = 0 ;
12528 PyObject * obj1 = 0 ;
12529 char * kwnames[] = {
12530 (char *) "self",(char *) "style", NULL
12531 };
12532
12533 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12534 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12535 if (!SWIG_IsOK(res1)) {
12536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12537 }
12538 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12539 ecode2 = SWIG_AsVal_int(obj1, &val2);
12540 if (!SWIG_IsOK(ecode2)) {
12541 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
12542 }
12543 arg2 = static_cast< wxFontStyle >(val2);
12544 {
12545 PyThreadState* __tstate = wxPyBeginAllowThreads();
12546 (arg1)->SetStyle(arg2);
12547 wxPyEndAllowThreads(__tstate);
12548 if (PyErr_Occurred()) SWIG_fail;
12549 }
12550 resultobj = SWIG_Py_Void();
12551 return resultobj;
12552 fail:
12553 return NULL;
12554 }
12555
12556
12557 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12558 PyObject *resultobj = 0;
12559 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12560 wxFontWeight arg2 ;
12561 void *argp1 = 0 ;
12562 int res1 = 0 ;
12563 int val2 ;
12564 int ecode2 = 0 ;
12565 PyObject * obj0 = 0 ;
12566 PyObject * obj1 = 0 ;
12567 char * kwnames[] = {
12568 (char *) "self",(char *) "weight", NULL
12569 };
12570
12571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
12572 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12573 if (!SWIG_IsOK(res1)) {
12574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12575 }
12576 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12577 ecode2 = SWIG_AsVal_int(obj1, &val2);
12578 if (!SWIG_IsOK(ecode2)) {
12579 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
12580 }
12581 arg2 = static_cast< wxFontWeight >(val2);
12582 {
12583 PyThreadState* __tstate = wxPyBeginAllowThreads();
12584 (arg1)->SetWeight(arg2);
12585 wxPyEndAllowThreads(__tstate);
12586 if (PyErr_Occurred()) SWIG_fail;
12587 }
12588 resultobj = SWIG_Py_Void();
12589 return resultobj;
12590 fail:
12591 return NULL;
12592 }
12593
12594
12595 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12596 PyObject *resultobj = 0;
12597 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12598 bool arg2 ;
12599 void *argp1 = 0 ;
12600 int res1 = 0 ;
12601 bool val2 ;
12602 int ecode2 = 0 ;
12603 PyObject * obj0 = 0 ;
12604 PyObject * obj1 = 0 ;
12605 char * kwnames[] = {
12606 (char *) "self",(char *) "underlined", NULL
12607 };
12608
12609 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
12610 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12611 if (!SWIG_IsOK(res1)) {
12612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12613 }
12614 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12615 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12616 if (!SWIG_IsOK(ecode2)) {
12617 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
12618 }
12619 arg2 = static_cast< bool >(val2);
12620 {
12621 PyThreadState* __tstate = wxPyBeginAllowThreads();
12622 (arg1)->SetUnderlined(arg2);
12623 wxPyEndAllowThreads(__tstate);
12624 if (PyErr_Occurred()) SWIG_fail;
12625 }
12626 resultobj = SWIG_Py_Void();
12627 return resultobj;
12628 fail:
12629 return NULL;
12630 }
12631
12632
12633 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12634 PyObject *resultobj = 0;
12635 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12636 wxString arg2 ;
12637 bool result;
12638 void *argp1 = 0 ;
12639 int res1 = 0 ;
12640 PyObject * obj0 = 0 ;
12641 PyObject * obj1 = 0 ;
12642 char * kwnames[] = {
12643 (char *) "self",(char *) "facename", NULL
12644 };
12645
12646 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
12647 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12648 if (!SWIG_IsOK(res1)) {
12649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12650 }
12651 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12652 {
12653 wxString* sptr = wxString_in_helper(obj1);
12654 if (sptr == NULL) SWIG_fail;
12655 arg2 = *sptr;
12656 delete sptr;
12657 }
12658 {
12659 PyThreadState* __tstate = wxPyBeginAllowThreads();
12660 result = (bool)(arg1)->SetFaceName(arg2);
12661 wxPyEndAllowThreads(__tstate);
12662 if (PyErr_Occurred()) SWIG_fail;
12663 }
12664 {
12665 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12666 }
12667 return resultobj;
12668 fail:
12669 return NULL;
12670 }
12671
12672
12673 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12674 PyObject *resultobj = 0;
12675 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12676 wxFontFamily arg2 ;
12677 void *argp1 = 0 ;
12678 int res1 = 0 ;
12679 int val2 ;
12680 int ecode2 = 0 ;
12681 PyObject * obj0 = 0 ;
12682 PyObject * obj1 = 0 ;
12683 char * kwnames[] = {
12684 (char *) "self",(char *) "family", NULL
12685 };
12686
12687 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
12688 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12689 if (!SWIG_IsOK(res1)) {
12690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12691 }
12692 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12693 ecode2 = SWIG_AsVal_int(obj1, &val2);
12694 if (!SWIG_IsOK(ecode2)) {
12695 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
12696 }
12697 arg2 = static_cast< wxFontFamily >(val2);
12698 {
12699 PyThreadState* __tstate = wxPyBeginAllowThreads();
12700 (arg1)->SetFamily(arg2);
12701 wxPyEndAllowThreads(__tstate);
12702 if (PyErr_Occurred()) SWIG_fail;
12703 }
12704 resultobj = SWIG_Py_Void();
12705 return resultobj;
12706 fail:
12707 return NULL;
12708 }
12709
12710
12711 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12712 PyObject *resultobj = 0;
12713 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12714 wxFontEncoding arg2 ;
12715 void *argp1 = 0 ;
12716 int res1 = 0 ;
12717 int val2 ;
12718 int ecode2 = 0 ;
12719 PyObject * obj0 = 0 ;
12720 PyObject * obj1 = 0 ;
12721 char * kwnames[] = {
12722 (char *) "self",(char *) "encoding", NULL
12723 };
12724
12725 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
12726 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12727 if (!SWIG_IsOK(res1)) {
12728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12729 }
12730 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12731 ecode2 = SWIG_AsVal_int(obj1, &val2);
12732 if (!SWIG_IsOK(ecode2)) {
12733 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12734 }
12735 arg2 = static_cast< wxFontEncoding >(val2);
12736 {
12737 PyThreadState* __tstate = wxPyBeginAllowThreads();
12738 (arg1)->SetEncoding(arg2);
12739 wxPyEndAllowThreads(__tstate);
12740 if (PyErr_Occurred()) SWIG_fail;
12741 }
12742 resultobj = SWIG_Py_Void();
12743 return resultobj;
12744 fail:
12745 return NULL;
12746 }
12747
12748
12749 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12750 PyObject *resultobj = 0;
12751 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12752 wxString *arg2 = 0 ;
12753 bool result;
12754 void *argp1 = 0 ;
12755 int res1 = 0 ;
12756 bool temp2 = false ;
12757 PyObject * obj0 = 0 ;
12758 PyObject * obj1 = 0 ;
12759 char * kwnames[] = {
12760 (char *) "self",(char *) "s", NULL
12761 };
12762
12763 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12764 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12765 if (!SWIG_IsOK(res1)) {
12766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12767 }
12768 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12769 {
12770 arg2 = wxString_in_helper(obj1);
12771 if (arg2 == NULL) SWIG_fail;
12772 temp2 = true;
12773 }
12774 {
12775 PyThreadState* __tstate = wxPyBeginAllowThreads();
12776 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12777 wxPyEndAllowThreads(__tstate);
12778 if (PyErr_Occurred()) SWIG_fail;
12779 }
12780 {
12781 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12782 }
12783 {
12784 if (temp2)
12785 delete arg2;
12786 }
12787 return resultobj;
12788 fail:
12789 {
12790 if (temp2)
12791 delete arg2;
12792 }
12793 return NULL;
12794 }
12795
12796
12797 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12798 PyObject *resultobj = 0;
12799 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12800 wxString result;
12801 void *argp1 = 0 ;
12802 int res1 = 0 ;
12803 PyObject *swig_obj[1] ;
12804
12805 if (!args) SWIG_fail;
12806 swig_obj[0] = args;
12807 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12808 if (!SWIG_IsOK(res1)) {
12809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12810 }
12811 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12812 {
12813 PyThreadState* __tstate = wxPyBeginAllowThreads();
12814 result = ((wxNativeFontInfo const *)arg1)->ToString();
12815 wxPyEndAllowThreads(__tstate);
12816 if (PyErr_Occurred()) SWIG_fail;
12817 }
12818 {
12819 #if wxUSE_UNICODE
12820 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12821 #else
12822 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12823 #endif
12824 }
12825 return resultobj;
12826 fail:
12827 return NULL;
12828 }
12829
12830
12831 SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12832 PyObject *resultobj = 0;
12833 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12834 wxString result;
12835 void *argp1 = 0 ;
12836 int res1 = 0 ;
12837 PyObject *swig_obj[1] ;
12838
12839 if (!args) SWIG_fail;
12840 swig_obj[0] = args;
12841 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12842 if (!SWIG_IsOK(res1)) {
12843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12844 }
12845 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12846 {
12847 PyThreadState* __tstate = wxPyBeginAllowThreads();
12848 result = wxNativeFontInfo___str__(arg1);
12849 wxPyEndAllowThreads(__tstate);
12850 if (PyErr_Occurred()) SWIG_fail;
12851 }
12852 {
12853 #if wxUSE_UNICODE
12854 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12855 #else
12856 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12857 #endif
12858 }
12859 return resultobj;
12860 fail:
12861 return NULL;
12862 }
12863
12864
12865 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12866 PyObject *resultobj = 0;
12867 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12868 wxString *arg2 = 0 ;
12869 bool result;
12870 void *argp1 = 0 ;
12871 int res1 = 0 ;
12872 bool temp2 = false ;
12873 PyObject * obj0 = 0 ;
12874 PyObject * obj1 = 0 ;
12875 char * kwnames[] = {
12876 (char *) "self",(char *) "s", NULL
12877 };
12878
12879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
12880 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12881 if (!SWIG_IsOK(res1)) {
12882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12883 }
12884 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12885 {
12886 arg2 = wxString_in_helper(obj1);
12887 if (arg2 == NULL) SWIG_fail;
12888 temp2 = true;
12889 }
12890 {
12891 PyThreadState* __tstate = wxPyBeginAllowThreads();
12892 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
12893 wxPyEndAllowThreads(__tstate);
12894 if (PyErr_Occurred()) SWIG_fail;
12895 }
12896 {
12897 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12898 }
12899 {
12900 if (temp2)
12901 delete arg2;
12902 }
12903 return resultobj;
12904 fail:
12905 {
12906 if (temp2)
12907 delete arg2;
12908 }
12909 return NULL;
12910 }
12911
12912
12913 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12914 PyObject *resultobj = 0;
12915 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12916 wxString result;
12917 void *argp1 = 0 ;
12918 int res1 = 0 ;
12919 PyObject *swig_obj[1] ;
12920
12921 if (!args) SWIG_fail;
12922 swig_obj[0] = args;
12923 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12924 if (!SWIG_IsOK(res1)) {
12925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12926 }
12927 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12928 {
12929 PyThreadState* __tstate = wxPyBeginAllowThreads();
12930 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
12931 wxPyEndAllowThreads(__tstate);
12932 if (PyErr_Occurred()) SWIG_fail;
12933 }
12934 {
12935 #if wxUSE_UNICODE
12936 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12937 #else
12938 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12939 #endif
12940 }
12941 return resultobj;
12942 fail:
12943 return NULL;
12944 }
12945
12946
12947 SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12948 PyObject *obj;
12949 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12950 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
12951 return SWIG_Py_Void();
12952 }
12953
12954 SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12955 return SWIG_Python_InitShadowInstance(args);
12956 }
12957
12958 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12959 PyObject *resultobj = 0;
12960 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12961 wxString *arg2 = (wxString *) 0 ;
12962 void *argp1 = 0 ;
12963 int res1 = 0 ;
12964 bool temp2 = false ;
12965 PyObject *swig_obj[2] ;
12966
12967 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
12968 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12969 if (!SWIG_IsOK(res1)) {
12970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12971 }
12972 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12973 {
12974 arg2 = wxString_in_helper(swig_obj[1]);
12975 if (arg2 == NULL) SWIG_fail;
12976 temp2 = true;
12977 }
12978 if (arg1) (arg1)->facename = *arg2;
12979
12980 resultobj = SWIG_Py_Void();
12981 {
12982 if (temp2)
12983 delete arg2;
12984 }
12985 return resultobj;
12986 fail:
12987 {
12988 if (temp2)
12989 delete arg2;
12990 }
12991 return NULL;
12992 }
12993
12994
12995 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12996 PyObject *resultobj = 0;
12997 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12998 wxString *result = 0 ;
12999 void *argp1 = 0 ;
13000 int res1 = 0 ;
13001 PyObject *swig_obj[1] ;
13002
13003 if (!args) SWIG_fail;
13004 swig_obj[0] = args;
13005 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13006 if (!SWIG_IsOK(res1)) {
13007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13008 }
13009 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13010 result = (wxString *)& ((arg1)->facename);
13011 {
13012 #if wxUSE_UNICODE
13013 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
13014 #else
13015 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
13016 #endif
13017 }
13018 return resultobj;
13019 fail:
13020 return NULL;
13021 }
13022
13023
13024 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13025 PyObject *resultobj = 0;
13026 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13027 wxFontEncoding arg2 ;
13028 void *argp1 = 0 ;
13029 int res1 = 0 ;
13030 int val2 ;
13031 int ecode2 = 0 ;
13032 PyObject *swig_obj[2] ;
13033
13034 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
13035 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13036 if (!SWIG_IsOK(res1)) {
13037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13038 }
13039 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13040 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
13041 if (!SWIG_IsOK(ecode2)) {
13042 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13043 }
13044 arg2 = static_cast< wxFontEncoding >(val2);
13045 if (arg1) (arg1)->encoding = arg2;
13046
13047 resultobj = SWIG_Py_Void();
13048 return resultobj;
13049 fail:
13050 return NULL;
13051 }
13052
13053
13054 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13055 PyObject *resultobj = 0;
13056 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13057 wxFontEncoding result;
13058 void *argp1 = 0 ;
13059 int res1 = 0 ;
13060 PyObject *swig_obj[1] ;
13061
13062 if (!args) SWIG_fail;
13063 swig_obj[0] = args;
13064 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13065 if (!SWIG_IsOK(res1)) {
13066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13067 }
13068 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13069 result = (wxFontEncoding) ((arg1)->encoding);
13070 resultobj = SWIG_From_int(static_cast< int >(result));
13071 return resultobj;
13072 fail:
13073 return NULL;
13074 }
13075
13076
13077 SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13078 PyObject *resultobj = 0;
13079 wxNativeEncodingInfo *result = 0 ;
13080
13081 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
13082 {
13083 PyThreadState* __tstate = wxPyBeginAllowThreads();
13084 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
13085 wxPyEndAllowThreads(__tstate);
13086 if (PyErr_Occurred()) SWIG_fail;
13087 }
13088 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
13089 return resultobj;
13090 fail:
13091 return NULL;
13092 }
13093
13094
13095 SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13096 PyObject *resultobj = 0;
13097 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13098 void *argp1 = 0 ;
13099 int res1 = 0 ;
13100 PyObject *swig_obj[1] ;
13101
13102 if (!args) SWIG_fail;
13103 swig_obj[0] = args;
13104 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
13105 if (!SWIG_IsOK(res1)) {
13106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13107 }
13108 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13109 {
13110 PyThreadState* __tstate = wxPyBeginAllowThreads();
13111 delete arg1;
13112
13113 wxPyEndAllowThreads(__tstate);
13114 if (PyErr_Occurred()) SWIG_fail;
13115 }
13116 resultobj = SWIG_Py_Void();
13117 return resultobj;
13118 fail:
13119 return NULL;
13120 }
13121
13122
13123 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13124 PyObject *resultobj = 0;
13125 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13126 wxString *arg2 = 0 ;
13127 bool result;
13128 void *argp1 = 0 ;
13129 int res1 = 0 ;
13130 bool temp2 = false ;
13131 PyObject * obj0 = 0 ;
13132 PyObject * obj1 = 0 ;
13133 char * kwnames[] = {
13134 (char *) "self",(char *) "s", NULL
13135 };
13136
13137 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
13138 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13139 if (!SWIG_IsOK(res1)) {
13140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13141 }
13142 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13143 {
13144 arg2 = wxString_in_helper(obj1);
13145 if (arg2 == NULL) SWIG_fail;
13146 temp2 = true;
13147 }
13148 {
13149 PyThreadState* __tstate = wxPyBeginAllowThreads();
13150 result = (bool)(arg1)->FromString((wxString const &)*arg2);
13151 wxPyEndAllowThreads(__tstate);
13152 if (PyErr_Occurred()) SWIG_fail;
13153 }
13154 {
13155 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13156 }
13157 {
13158 if (temp2)
13159 delete arg2;
13160 }
13161 return resultobj;
13162 fail:
13163 {
13164 if (temp2)
13165 delete arg2;
13166 }
13167 return NULL;
13168 }
13169
13170
13171 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13172 PyObject *resultobj = 0;
13173 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13174 wxString result;
13175 void *argp1 = 0 ;
13176 int res1 = 0 ;
13177 PyObject *swig_obj[1] ;
13178
13179 if (!args) SWIG_fail;
13180 swig_obj[0] = args;
13181 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13182 if (!SWIG_IsOK(res1)) {
13183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
13184 }
13185 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13186 {
13187 PyThreadState* __tstate = wxPyBeginAllowThreads();
13188 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
13189 wxPyEndAllowThreads(__tstate);
13190 if (PyErr_Occurred()) SWIG_fail;
13191 }
13192 {
13193 #if wxUSE_UNICODE
13194 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13195 #else
13196 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13197 #endif
13198 }
13199 return resultobj;
13200 fail:
13201 return NULL;
13202 }
13203
13204
13205 SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13206 PyObject *obj;
13207 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13208 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
13209 return SWIG_Py_Void();
13210 }
13211
13212 SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13213 return SWIG_Python_InitShadowInstance(args);
13214 }
13215
13216 SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13217 PyObject *resultobj = 0;
13218 wxFontEncoding arg1 ;
13219 wxNativeEncodingInfo *result = 0 ;
13220 int val1 ;
13221 int ecode1 = 0 ;
13222 PyObject * obj0 = 0 ;
13223 char * kwnames[] = {
13224 (char *) "encoding", NULL
13225 };
13226
13227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
13228 ecode1 = SWIG_AsVal_int(obj0, &val1);
13229 if (!SWIG_IsOK(ecode1)) {
13230 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13231 }
13232 arg1 = static_cast< wxFontEncoding >(val1);
13233 {
13234 PyThreadState* __tstate = wxPyBeginAllowThreads();
13235 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
13236 wxPyEndAllowThreads(__tstate);
13237 if (PyErr_Occurred()) SWIG_fail;
13238 }
13239 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13240 return resultobj;
13241 fail:
13242 return NULL;
13243 }
13244
13245
13246 SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13247 PyObject *resultobj = 0;
13248 wxNativeEncodingInfo *arg1 = 0 ;
13249 bool result;
13250 void *argp1 = 0 ;
13251 int res1 = 0 ;
13252 PyObject * obj0 = 0 ;
13253 char * kwnames[] = {
13254 (char *) "info", NULL
13255 };
13256
13257 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
13258 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
13259 if (!SWIG_IsOK(res1)) {
13260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13261 }
13262 if (!argp1) {
13263 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13264 }
13265 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13266 {
13267 PyThreadState* __tstate = wxPyBeginAllowThreads();
13268 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
13269 wxPyEndAllowThreads(__tstate);
13270 if (PyErr_Occurred()) SWIG_fail;
13271 }
13272 {
13273 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13274 }
13275 return resultobj;
13276 fail:
13277 return NULL;
13278 }
13279
13280
13281 SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13282 PyObject *resultobj = 0;
13283 wxFontMapper *result = 0 ;
13284
13285 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
13286 {
13287 PyThreadState* __tstate = wxPyBeginAllowThreads();
13288 result = (wxFontMapper *)new wxFontMapper();
13289 wxPyEndAllowThreads(__tstate);
13290 if (PyErr_Occurred()) SWIG_fail;
13291 }
13292 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
13293 return resultobj;
13294 fail:
13295 return NULL;
13296 }
13297
13298
13299 SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13300 PyObject *resultobj = 0;
13301 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13302 void *argp1 = 0 ;
13303 int res1 = 0 ;
13304 PyObject *swig_obj[1] ;
13305
13306 if (!args) SWIG_fail;
13307 swig_obj[0] = args;
13308 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
13309 if (!SWIG_IsOK(res1)) {
13310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13311 }
13312 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13313 {
13314 PyThreadState* __tstate = wxPyBeginAllowThreads();
13315 delete arg1;
13316
13317 wxPyEndAllowThreads(__tstate);
13318 if (PyErr_Occurred()) SWIG_fail;
13319 }
13320 resultobj = SWIG_Py_Void();
13321 return resultobj;
13322 fail:
13323 return NULL;
13324 }
13325
13326
13327 SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13328 PyObject *resultobj = 0;
13329 wxFontMapper *result = 0 ;
13330
13331 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
13332 {
13333 PyThreadState* __tstate = wxPyBeginAllowThreads();
13334 result = (wxFontMapper *)wxFontMapper::Get();
13335 wxPyEndAllowThreads(__tstate);
13336 if (PyErr_Occurred()) SWIG_fail;
13337 }
13338 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13339 return resultobj;
13340 fail:
13341 return NULL;
13342 }
13343
13344
13345 SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13346 PyObject *resultobj = 0;
13347 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13348 wxFontMapper *result = 0 ;
13349 void *argp1 = 0 ;
13350 int res1 = 0 ;
13351 PyObject * obj0 = 0 ;
13352 char * kwnames[] = {
13353 (char *) "mapper", NULL
13354 };
13355
13356 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
13357 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13358 if (!SWIG_IsOK(res1)) {
13359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13360 }
13361 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13362 {
13363 PyThreadState* __tstate = wxPyBeginAllowThreads();
13364 result = (wxFontMapper *)wxFontMapper::Set(arg1);
13365 wxPyEndAllowThreads(__tstate);
13366 if (PyErr_Occurred()) SWIG_fail;
13367 }
13368 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13369 return resultobj;
13370 fail:
13371 return NULL;
13372 }
13373
13374
13375 SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13376 PyObject *resultobj = 0;
13377 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13378 wxString *arg2 = 0 ;
13379 bool arg3 = (bool) true ;
13380 wxFontEncoding result;
13381 void *argp1 = 0 ;
13382 int res1 = 0 ;
13383 bool temp2 = false ;
13384 bool val3 ;
13385 int ecode3 = 0 ;
13386 PyObject * obj0 = 0 ;
13387 PyObject * obj1 = 0 ;
13388 PyObject * obj2 = 0 ;
13389 char * kwnames[] = {
13390 (char *) "self",(char *) "charset",(char *) "interactive", NULL
13391 };
13392
13393 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13394 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13395 if (!SWIG_IsOK(res1)) {
13396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13397 }
13398 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13399 {
13400 arg2 = wxString_in_helper(obj1);
13401 if (arg2 == NULL) SWIG_fail;
13402 temp2 = true;
13403 }
13404 if (obj2) {
13405 ecode3 = SWIG_AsVal_bool(obj2, &val3);
13406 if (!SWIG_IsOK(ecode3)) {
13407 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
13408 }
13409 arg3 = static_cast< bool >(val3);
13410 }
13411 {
13412 PyThreadState* __tstate = wxPyBeginAllowThreads();
13413 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
13414 wxPyEndAllowThreads(__tstate);
13415 if (PyErr_Occurred()) SWIG_fail;
13416 }
13417 resultobj = SWIG_From_int(static_cast< int >(result));
13418 {
13419 if (temp2)
13420 delete arg2;
13421 }
13422 return resultobj;
13423 fail:
13424 {
13425 if (temp2)
13426 delete arg2;
13427 }
13428 return NULL;
13429 }
13430
13431
13432 SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13433 PyObject *resultobj = 0;
13434 size_t result;
13435
13436 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
13437 {
13438 PyThreadState* __tstate = wxPyBeginAllowThreads();
13439 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
13440 wxPyEndAllowThreads(__tstate);
13441 if (PyErr_Occurred()) SWIG_fail;
13442 }
13443 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
13444 return resultobj;
13445 fail:
13446 return NULL;
13447 }
13448
13449
13450 SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13451 PyObject *resultobj = 0;
13452 size_t arg1 ;
13453 wxFontEncoding result;
13454 size_t val1 ;
13455 int ecode1 = 0 ;
13456 PyObject * obj0 = 0 ;
13457 char * kwnames[] = {
13458 (char *) "n", NULL
13459 };
13460
13461 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
13462 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
13463 if (!SWIG_IsOK(ecode1)) {
13464 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
13465 }
13466 arg1 = static_cast< size_t >(val1);
13467 {
13468 PyThreadState* __tstate = wxPyBeginAllowThreads();
13469 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
13470 wxPyEndAllowThreads(__tstate);
13471 if (PyErr_Occurred()) SWIG_fail;
13472 }
13473 resultobj = SWIG_From_int(static_cast< int >(result));
13474 return resultobj;
13475 fail:
13476 return NULL;
13477 }
13478
13479
13480 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13481 PyObject *resultobj = 0;
13482 wxFontEncoding arg1 ;
13483 wxString result;
13484 int val1 ;
13485 int ecode1 = 0 ;
13486 PyObject * obj0 = 0 ;
13487 char * kwnames[] = {
13488 (char *) "encoding", NULL
13489 };
13490
13491 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
13492 ecode1 = SWIG_AsVal_int(obj0, &val1);
13493 if (!SWIG_IsOK(ecode1)) {
13494 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13495 }
13496 arg1 = static_cast< wxFontEncoding >(val1);
13497 {
13498 PyThreadState* __tstate = wxPyBeginAllowThreads();
13499 result = wxFontMapper::GetEncodingName(arg1);
13500 wxPyEndAllowThreads(__tstate);
13501 if (PyErr_Occurred()) SWIG_fail;
13502 }
13503 {
13504 #if wxUSE_UNICODE
13505 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13506 #else
13507 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13508 #endif
13509 }
13510 return resultobj;
13511 fail:
13512 return NULL;
13513 }
13514
13515
13516 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13517 PyObject *resultobj = 0;
13518 wxFontEncoding arg1 ;
13519 wxString result;
13520 int val1 ;
13521 int ecode1 = 0 ;
13522 PyObject * obj0 = 0 ;
13523 char * kwnames[] = {
13524 (char *) "encoding", NULL
13525 };
13526
13527 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
13528 ecode1 = SWIG_AsVal_int(obj0, &val1);
13529 if (!SWIG_IsOK(ecode1)) {
13530 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13531 }
13532 arg1 = static_cast< wxFontEncoding >(val1);
13533 {
13534 PyThreadState* __tstate = wxPyBeginAllowThreads();
13535 result = wxFontMapper::GetEncodingDescription(arg1);
13536 wxPyEndAllowThreads(__tstate);
13537 if (PyErr_Occurred()) SWIG_fail;
13538 }
13539 {
13540 #if wxUSE_UNICODE
13541 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13542 #else
13543 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13544 #endif
13545 }
13546 return resultobj;
13547 fail:
13548 return NULL;
13549 }
13550
13551
13552 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13553 PyObject *resultobj = 0;
13554 wxString *arg1 = 0 ;
13555 wxFontEncoding result;
13556 bool temp1 = false ;
13557 PyObject * obj0 = 0 ;
13558 char * kwnames[] = {
13559 (char *) "name", NULL
13560 };
13561
13562 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
13563 {
13564 arg1 = wxString_in_helper(obj0);
13565 if (arg1 == NULL) SWIG_fail;
13566 temp1 = true;
13567 }
13568 {
13569 PyThreadState* __tstate = wxPyBeginAllowThreads();
13570 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
13571 wxPyEndAllowThreads(__tstate);
13572 if (PyErr_Occurred()) SWIG_fail;
13573 }
13574 resultobj = SWIG_From_int(static_cast< int >(result));
13575 {
13576 if (temp1)
13577 delete arg1;
13578 }
13579 return resultobj;
13580 fail:
13581 {
13582 if (temp1)
13583 delete arg1;
13584 }
13585 return NULL;
13586 }
13587
13588
13589 SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13590 PyObject *resultobj = 0;
13591 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13592 wxString *arg2 = 0 ;
13593 void *argp1 = 0 ;
13594 int res1 = 0 ;
13595 bool temp2 = false ;
13596 PyObject * obj0 = 0 ;
13597 PyObject * obj1 = 0 ;
13598 char * kwnames[] = {
13599 (char *) "self",(char *) "prefix", NULL
13600 };
13601
13602 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
13603 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13604 if (!SWIG_IsOK(res1)) {
13605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13606 }
13607 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13608 {
13609 arg2 = wxString_in_helper(obj1);
13610 if (arg2 == NULL) SWIG_fail;
13611 temp2 = true;
13612 }
13613 {
13614 PyThreadState* __tstate = wxPyBeginAllowThreads();
13615 (arg1)->SetConfigPath((wxString const &)*arg2);
13616 wxPyEndAllowThreads(__tstate);
13617 if (PyErr_Occurred()) SWIG_fail;
13618 }
13619 resultobj = SWIG_Py_Void();
13620 {
13621 if (temp2)
13622 delete arg2;
13623 }
13624 return resultobj;
13625 fail:
13626 {
13627 if (temp2)
13628 delete arg2;
13629 }
13630 return NULL;
13631 }
13632
13633
13634 SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13635 PyObject *resultobj = 0;
13636 wxString result;
13637
13638 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
13639 {
13640 PyThreadState* __tstate = wxPyBeginAllowThreads();
13641 result = wxFontMapper::GetDefaultConfigPath();
13642 wxPyEndAllowThreads(__tstate);
13643 if (PyErr_Occurred()) SWIG_fail;
13644 }
13645 {
13646 #if wxUSE_UNICODE
13647 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13648 #else
13649 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13650 #endif
13651 }
13652 return resultobj;
13653 fail:
13654 return NULL;
13655 }
13656
13657
13658 SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13659 PyObject *resultobj = 0;
13660 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13661 wxFontEncoding arg2 ;
13662 wxString const &arg3_defvalue = wxPyEmptyString ;
13663 wxString *arg3 = (wxString *) &arg3_defvalue ;
13664 bool arg4 = (bool) true ;
13665 PyObject *result = 0 ;
13666 void *argp1 = 0 ;
13667 int res1 = 0 ;
13668 int val2 ;
13669 int ecode2 = 0 ;
13670 bool temp3 = false ;
13671 bool val4 ;
13672 int ecode4 = 0 ;
13673 PyObject * obj0 = 0 ;
13674 PyObject * obj1 = 0 ;
13675 PyObject * obj2 = 0 ;
13676 PyObject * obj3 = 0 ;
13677 char * kwnames[] = {
13678 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
13679 };
13680
13681 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13682 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13683 if (!SWIG_IsOK(res1)) {
13684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13685 }
13686 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13687 ecode2 = SWIG_AsVal_int(obj1, &val2);
13688 if (!SWIG_IsOK(ecode2)) {
13689 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13690 }
13691 arg2 = static_cast< wxFontEncoding >(val2);
13692 if (obj2) {
13693 {
13694 arg3 = wxString_in_helper(obj2);
13695 if (arg3 == NULL) SWIG_fail;
13696 temp3 = true;
13697 }
13698 }
13699 if (obj3) {
13700 ecode4 = SWIG_AsVal_bool(obj3, &val4);
13701 if (!SWIG_IsOK(ecode4)) {
13702 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
13703 }
13704 arg4 = static_cast< bool >(val4);
13705 }
13706 {
13707 PyThreadState* __tstate = wxPyBeginAllowThreads();
13708 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
13709 wxPyEndAllowThreads(__tstate);
13710 if (PyErr_Occurred()) SWIG_fail;
13711 }
13712 resultobj = result;
13713 {
13714 if (temp3)
13715 delete arg3;
13716 }
13717 return resultobj;
13718 fail:
13719 {
13720 if (temp3)
13721 delete arg3;
13722 }
13723 return NULL;
13724 }
13725
13726
13727 SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13728 PyObject *resultobj = 0;
13729 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13730 wxFontEncoding arg2 ;
13731 wxString const &arg3_defvalue = wxPyEmptyString ;
13732 wxString *arg3 = (wxString *) &arg3_defvalue ;
13733 bool result;
13734 void *argp1 = 0 ;
13735 int res1 = 0 ;
13736 int val2 ;
13737 int ecode2 = 0 ;
13738 bool temp3 = false ;
13739 PyObject * obj0 = 0 ;
13740 PyObject * obj1 = 0 ;
13741 PyObject * obj2 = 0 ;
13742 char * kwnames[] = {
13743 (char *) "self",(char *) "encoding",(char *) "facename", NULL
13744 };
13745
13746 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13747 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13748 if (!SWIG_IsOK(res1)) {
13749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13750 }
13751 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13752 ecode2 = SWIG_AsVal_int(obj1, &val2);
13753 if (!SWIG_IsOK(ecode2)) {
13754 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13755 }
13756 arg2 = static_cast< wxFontEncoding >(val2);
13757 if (obj2) {
13758 {
13759 arg3 = wxString_in_helper(obj2);
13760 if (arg3 == NULL) SWIG_fail;
13761 temp3 = true;
13762 }
13763 }
13764 {
13765 PyThreadState* __tstate = wxPyBeginAllowThreads();
13766 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
13767 wxPyEndAllowThreads(__tstate);
13768 if (PyErr_Occurred()) SWIG_fail;
13769 }
13770 {
13771 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13772 }
13773 {
13774 if (temp3)
13775 delete arg3;
13776 }
13777 return resultobj;
13778 fail:
13779 {
13780 if (temp3)
13781 delete arg3;
13782 }
13783 return NULL;
13784 }
13785
13786
13787 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13788 PyObject *resultobj = 0;
13789 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13790 wxWindow *arg2 = (wxWindow *) 0 ;
13791 void *argp1 = 0 ;
13792 int res1 = 0 ;
13793 void *argp2 = 0 ;
13794 int res2 = 0 ;
13795 PyObject * obj0 = 0 ;
13796 PyObject * obj1 = 0 ;
13797 char * kwnames[] = {
13798 (char *) "self",(char *) "parent", NULL
13799 };
13800
13801 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
13802 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13803 if (!SWIG_IsOK(res1)) {
13804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13805 }
13806 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13807 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
13808 if (!SWIG_IsOK(res2)) {
13809 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
13810 }
13811 arg2 = reinterpret_cast< wxWindow * >(argp2);
13812 {
13813 PyThreadState* __tstate = wxPyBeginAllowThreads();
13814 (arg1)->SetDialogParent(arg2);
13815 wxPyEndAllowThreads(__tstate);
13816 if (PyErr_Occurred()) SWIG_fail;
13817 }
13818 resultobj = SWIG_Py_Void();
13819 return resultobj;
13820 fail:
13821 return NULL;
13822 }
13823
13824
13825 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13826 PyObject *resultobj = 0;
13827 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13828 wxString *arg2 = 0 ;
13829 void *argp1 = 0 ;
13830 int res1 = 0 ;
13831 bool temp2 = false ;
13832 PyObject * obj0 = 0 ;
13833 PyObject * obj1 = 0 ;
13834 char * kwnames[] = {
13835 (char *) "self",(char *) "title", NULL
13836 };
13837
13838 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
13839 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13840 if (!SWIG_IsOK(res1)) {
13841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13842 }
13843 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13844 {
13845 arg2 = wxString_in_helper(obj1);
13846 if (arg2 == NULL) SWIG_fail;
13847 temp2 = true;
13848 }
13849 {
13850 PyThreadState* __tstate = wxPyBeginAllowThreads();
13851 (arg1)->SetDialogTitle((wxString const &)*arg2);
13852 wxPyEndAllowThreads(__tstate);
13853 if (PyErr_Occurred()) SWIG_fail;
13854 }
13855 resultobj = SWIG_Py_Void();
13856 {
13857 if (temp2)
13858 delete arg2;
13859 }
13860 return resultobj;
13861 fail:
13862 {
13863 if (temp2)
13864 delete arg2;
13865 }
13866 return NULL;
13867 }
13868
13869
13870 SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13871 PyObject *obj;
13872 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13873 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
13874 return SWIG_Py_Void();
13875 }
13876
13877 SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13878 return SWIG_Python_InitShadowInstance(args);
13879 }
13880
13881 SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13882 PyObject *resultobj = 0;
13883 int arg1 ;
13884 int arg2 ;
13885 int arg3 ;
13886 int arg4 ;
13887 bool arg5 = (bool) false ;
13888 wxString const &arg6_defvalue = wxPyEmptyString ;
13889 wxString *arg6 = (wxString *) &arg6_defvalue ;
13890 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13891 wxFont *result = 0 ;
13892 int val1 ;
13893 int ecode1 = 0 ;
13894 int val2 ;
13895 int ecode2 = 0 ;
13896 int val3 ;
13897 int ecode3 = 0 ;
13898 int val4 ;
13899 int ecode4 = 0 ;
13900 bool val5 ;
13901 int ecode5 = 0 ;
13902 bool temp6 = false ;
13903 int val7 ;
13904 int ecode7 = 0 ;
13905 PyObject * obj0 = 0 ;
13906 PyObject * obj1 = 0 ;
13907 PyObject * obj2 = 0 ;
13908 PyObject * obj3 = 0 ;
13909 PyObject * obj4 = 0 ;
13910 PyObject * obj5 = 0 ;
13911 PyObject * obj6 = 0 ;
13912 char * kwnames[] = {
13913 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
13914 };
13915
13916 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13917 ecode1 = SWIG_AsVal_int(obj0, &val1);
13918 if (!SWIG_IsOK(ecode1)) {
13919 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
13920 }
13921 arg1 = static_cast< int >(val1);
13922 ecode2 = SWIG_AsVal_int(obj1, &val2);
13923 if (!SWIG_IsOK(ecode2)) {
13924 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
13925 }
13926 arg2 = static_cast< int >(val2);
13927 ecode3 = SWIG_AsVal_int(obj2, &val3);
13928 if (!SWIG_IsOK(ecode3)) {
13929 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
13930 }
13931 arg3 = static_cast< int >(val3);
13932 ecode4 = SWIG_AsVal_int(obj3, &val4);
13933 if (!SWIG_IsOK(ecode4)) {
13934 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
13935 }
13936 arg4 = static_cast< int >(val4);
13937 if (obj4) {
13938 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13939 if (!SWIG_IsOK(ecode5)) {
13940 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
13941 }
13942 arg5 = static_cast< bool >(val5);
13943 }
13944 if (obj5) {
13945 {
13946 arg6 = wxString_in_helper(obj5);
13947 if (arg6 == NULL) SWIG_fail;
13948 temp6 = true;
13949 }
13950 }
13951 if (obj6) {
13952 ecode7 = SWIG_AsVal_int(obj6, &val7);
13953 if (!SWIG_IsOK(ecode7)) {
13954 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
13955 }
13956 arg7 = static_cast< wxFontEncoding >(val7);
13957 }
13958 {
13959 if (!wxPyCheckForApp()) SWIG_fail;
13960 PyThreadState* __tstate = wxPyBeginAllowThreads();
13961 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
13962 wxPyEndAllowThreads(__tstate);
13963 if (PyErr_Occurred()) SWIG_fail;
13964 }
13965 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
13966 {
13967 if (temp6)
13968 delete arg6;
13969 }
13970 return resultobj;
13971 fail:
13972 {
13973 if (temp6)
13974 delete arg6;
13975 }
13976 return NULL;
13977 }
13978
13979
13980 SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13981 PyObject *resultobj = 0;
13982 wxFont *arg1 = (wxFont *) 0 ;
13983 void *argp1 = 0 ;
13984 int res1 = 0 ;
13985 PyObject *swig_obj[1] ;
13986
13987 if (!args) SWIG_fail;
13988 swig_obj[0] = args;
13989 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
13990 if (!SWIG_IsOK(res1)) {
13991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
13992 }
13993 arg1 = reinterpret_cast< wxFont * >(argp1);
13994 {
13995 PyThreadState* __tstate = wxPyBeginAllowThreads();
13996 delete arg1;
13997
13998 wxPyEndAllowThreads(__tstate);
13999 if (PyErr_Occurred()) SWIG_fail;
14000 }
14001 resultobj = SWIG_Py_Void();
14002 return resultobj;
14003 fail:
14004 return NULL;
14005 }
14006
14007
14008 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14009 PyObject *resultobj = 0;
14010 wxNativeFontInfo *arg1 = 0 ;
14011 wxFont *result = 0 ;
14012 void *argp1 = 0 ;
14013 int res1 = 0 ;
14014 PyObject * obj0 = 0 ;
14015 char * kwnames[] = {
14016 (char *) "info", NULL
14017 };
14018
14019 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
14020 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
14021 if (!SWIG_IsOK(res1)) {
14022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
14023 }
14024 if (!argp1) {
14025 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
14026 }
14027 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
14028 {
14029 if (!wxPyCheckForApp()) SWIG_fail;
14030 PyThreadState* __tstate = wxPyBeginAllowThreads();
14031 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
14032 wxPyEndAllowThreads(__tstate);
14033 if (PyErr_Occurred()) SWIG_fail;
14034 }
14035 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14036 return resultobj;
14037 fail:
14038 return NULL;
14039 }
14040
14041
14042 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14043 PyObject *resultobj = 0;
14044 wxString *arg1 = 0 ;
14045 wxFont *result = 0 ;
14046 bool temp1 = false ;
14047 PyObject * obj0 = 0 ;
14048 char * kwnames[] = {
14049 (char *) "info", NULL
14050 };
14051
14052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
14053 {
14054 arg1 = wxString_in_helper(obj0);
14055 if (arg1 == NULL) SWIG_fail;
14056 temp1 = true;
14057 }
14058 {
14059 if (!wxPyCheckForApp()) SWIG_fail;
14060 PyThreadState* __tstate = wxPyBeginAllowThreads();
14061 result = (wxFont *)new_wxFont((wxString const &)*arg1);
14062 wxPyEndAllowThreads(__tstate);
14063 if (PyErr_Occurred()) SWIG_fail;
14064 }
14065 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14066 {
14067 if (temp1)
14068 delete arg1;
14069 }
14070 return resultobj;
14071 fail:
14072 {
14073 if (temp1)
14074 delete arg1;
14075 }
14076 return NULL;
14077 }
14078
14079
14080 SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14081 PyObject *resultobj = 0;
14082 int arg1 ;
14083 wxFontFamily arg2 ;
14084 int arg3 = (int) wxFONTFLAG_DEFAULT ;
14085 wxString const &arg4_defvalue = wxPyEmptyString ;
14086 wxString *arg4 = (wxString *) &arg4_defvalue ;
14087 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14088 wxFont *result = 0 ;
14089 int val1 ;
14090 int ecode1 = 0 ;
14091 int val2 ;
14092 int ecode2 = 0 ;
14093 int val3 ;
14094 int ecode3 = 0 ;
14095 bool temp4 = false ;
14096 int val5 ;
14097 int ecode5 = 0 ;
14098 PyObject * obj0 = 0 ;
14099 PyObject * obj1 = 0 ;
14100 PyObject * obj2 = 0 ;
14101 PyObject * obj3 = 0 ;
14102 PyObject * obj4 = 0 ;
14103 char * kwnames[] = {
14104 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14105 };
14106
14107 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14108 ecode1 = SWIG_AsVal_int(obj0, &val1);
14109 if (!SWIG_IsOK(ecode1)) {
14110 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
14111 }
14112 arg1 = static_cast< int >(val1);
14113 ecode2 = SWIG_AsVal_int(obj1, &val2);
14114 if (!SWIG_IsOK(ecode2)) {
14115 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
14116 }
14117 arg2 = static_cast< wxFontFamily >(val2);
14118 if (obj2) {
14119 ecode3 = SWIG_AsVal_int(obj2, &val3);
14120 if (!SWIG_IsOK(ecode3)) {
14121 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
14122 }
14123 arg3 = static_cast< int >(val3);
14124 }
14125 if (obj3) {
14126 {
14127 arg4 = wxString_in_helper(obj3);
14128 if (arg4 == NULL) SWIG_fail;
14129 temp4 = true;
14130 }
14131 }
14132 if (obj4) {
14133 ecode5 = SWIG_AsVal_int(obj4, &val5);
14134 if (!SWIG_IsOK(ecode5)) {
14135 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14136 }
14137 arg5 = static_cast< wxFontEncoding >(val5);
14138 }
14139 {
14140 if (!wxPyCheckForApp()) SWIG_fail;
14141 PyThreadState* __tstate = wxPyBeginAllowThreads();
14142 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14143 wxPyEndAllowThreads(__tstate);
14144 if (PyErr_Occurred()) SWIG_fail;
14145 }
14146 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14147 {
14148 if (temp4)
14149 delete arg4;
14150 }
14151 return resultobj;
14152 fail:
14153 {
14154 if (temp4)
14155 delete arg4;
14156 }
14157 return NULL;
14158 }
14159
14160
14161 SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14162 PyObject *resultobj = 0;
14163 wxSize *arg1 = 0 ;
14164 int arg2 ;
14165 int arg3 ;
14166 int arg4 ;
14167 bool arg5 = (bool) false ;
14168 wxString const &arg6_defvalue = wxEmptyString ;
14169 wxString *arg6 = (wxString *) &arg6_defvalue ;
14170 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14171 wxFont *result = 0 ;
14172 wxSize temp1 ;
14173 int val2 ;
14174 int ecode2 = 0 ;
14175 int val3 ;
14176 int ecode3 = 0 ;
14177 int val4 ;
14178 int ecode4 = 0 ;
14179 bool val5 ;
14180 int ecode5 = 0 ;
14181 bool temp6 = false ;
14182 int val7 ;
14183 int ecode7 = 0 ;
14184 PyObject * obj0 = 0 ;
14185 PyObject * obj1 = 0 ;
14186 PyObject * obj2 = 0 ;
14187 PyObject * obj3 = 0 ;
14188 PyObject * obj4 = 0 ;
14189 PyObject * obj5 = 0 ;
14190 PyObject * obj6 = 0 ;
14191 char * kwnames[] = {
14192 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
14193 };
14194
14195 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14196 {
14197 arg1 = &temp1;
14198 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14199 }
14200 ecode2 = SWIG_AsVal_int(obj1, &val2);
14201 if (!SWIG_IsOK(ecode2)) {
14202 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
14203 }
14204 arg2 = static_cast< int >(val2);
14205 ecode3 = SWIG_AsVal_int(obj2, &val3);
14206 if (!SWIG_IsOK(ecode3)) {
14207 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14208 }
14209 arg3 = static_cast< int >(val3);
14210 ecode4 = SWIG_AsVal_int(obj3, &val4);
14211 if (!SWIG_IsOK(ecode4)) {
14212 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
14213 }
14214 arg4 = static_cast< int >(val4);
14215 if (obj4) {
14216 ecode5 = SWIG_AsVal_bool(obj4, &val5);
14217 if (!SWIG_IsOK(ecode5)) {
14218 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
14219 }
14220 arg5 = static_cast< bool >(val5);
14221 }
14222 if (obj5) {
14223 {
14224 arg6 = wxString_in_helper(obj5);
14225 if (arg6 == NULL) SWIG_fail;
14226 temp6 = true;
14227 }
14228 }
14229 if (obj6) {
14230 ecode7 = SWIG_AsVal_int(obj6, &val7);
14231 if (!SWIG_IsOK(ecode7)) {
14232 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
14233 }
14234 arg7 = static_cast< wxFontEncoding >(val7);
14235 }
14236 {
14237 if (!wxPyCheckForApp()) SWIG_fail;
14238 PyThreadState* __tstate = wxPyBeginAllowThreads();
14239 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
14240 wxPyEndAllowThreads(__tstate);
14241 if (PyErr_Occurred()) SWIG_fail;
14242 }
14243 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14244 {
14245 if (temp6)
14246 delete arg6;
14247 }
14248 return resultobj;
14249 fail:
14250 {
14251 if (temp6)
14252 delete arg6;
14253 }
14254 return NULL;
14255 }
14256
14257
14258 SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14259 PyObject *resultobj = 0;
14260 wxSize *arg1 = 0 ;
14261 wxFontFamily arg2 ;
14262 int arg3 = (int) wxFONTFLAG_DEFAULT ;
14263 wxString const &arg4_defvalue = wxEmptyString ;
14264 wxString *arg4 = (wxString *) &arg4_defvalue ;
14265 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14266 wxFont *result = 0 ;
14267 wxSize temp1 ;
14268 int val2 ;
14269 int ecode2 = 0 ;
14270 int val3 ;
14271 int ecode3 = 0 ;
14272 bool temp4 = false ;
14273 int val5 ;
14274 int ecode5 = 0 ;
14275 PyObject * obj0 = 0 ;
14276 PyObject * obj1 = 0 ;
14277 PyObject * obj2 = 0 ;
14278 PyObject * obj3 = 0 ;
14279 PyObject * obj4 = 0 ;
14280 char * kwnames[] = {
14281 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14282 };
14283
14284 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14285 {
14286 arg1 = &temp1;
14287 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14288 }
14289 ecode2 = SWIG_AsVal_int(obj1, &val2);
14290 if (!SWIG_IsOK(ecode2)) {
14291 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
14292 }
14293 arg2 = static_cast< wxFontFamily >(val2);
14294 if (obj2) {
14295 ecode3 = SWIG_AsVal_int(obj2, &val3);
14296 if (!SWIG_IsOK(ecode3)) {
14297 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14298 }
14299 arg3 = static_cast< int >(val3);
14300 }
14301 if (obj3) {
14302 {
14303 arg4 = wxString_in_helper(obj3);
14304 if (arg4 == NULL) SWIG_fail;
14305 temp4 = true;
14306 }
14307 }
14308 if (obj4) {
14309 ecode5 = SWIG_AsVal_int(obj4, &val5);
14310 if (!SWIG_IsOK(ecode5)) {
14311 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14312 }
14313 arg5 = static_cast< wxFontEncoding >(val5);
14314 }
14315 {
14316 if (!wxPyCheckForApp()) SWIG_fail;
14317 PyThreadState* __tstate = wxPyBeginAllowThreads();
14318 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14319 wxPyEndAllowThreads(__tstate);
14320 if (PyErr_Occurred()) SWIG_fail;
14321 }
14322 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14323 {
14324 if (temp4)
14325 delete arg4;
14326 }
14327 return resultobj;
14328 fail:
14329 {
14330 if (temp4)
14331 delete arg4;
14332 }
14333 return NULL;
14334 }
14335
14336
14337 SWIGINTERN PyObject *_wrap_Font_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14338 PyObject *resultobj = 0;
14339 wxFont *arg1 = (wxFont *) 0 ;
14340 bool result;
14341 void *argp1 = 0 ;
14342 int res1 = 0 ;
14343 PyObject *swig_obj[1] ;
14344
14345 if (!args) SWIG_fail;
14346 swig_obj[0] = args;
14347 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14348 if (!SWIG_IsOK(res1)) {
14349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_Ok" "', expected argument " "1"" of type '" "wxFont const *""'");
14350 }
14351 arg1 = reinterpret_cast< wxFont * >(argp1);
14352 {
14353 PyThreadState* __tstate = wxPyBeginAllowThreads();
14354 result = (bool)((wxFont const *)arg1)->Ok();
14355 wxPyEndAllowThreads(__tstate);
14356 if (PyErr_Occurred()) SWIG_fail;
14357 }
14358 {
14359 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14360 }
14361 return resultobj;
14362 fail:
14363 return NULL;
14364 }
14365
14366
14367 SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14368 PyObject *resultobj = 0;
14369 wxFont *arg1 = (wxFont *) 0 ;
14370 wxFont *arg2 = (wxFont *) 0 ;
14371 bool result;
14372 void *argp1 = 0 ;
14373 int res1 = 0 ;
14374 void *argp2 = 0 ;
14375 int res2 = 0 ;
14376 PyObject * obj0 = 0 ;
14377 PyObject * obj1 = 0 ;
14378 char * kwnames[] = {
14379 (char *) "self",(char *) "other", NULL
14380 };
14381
14382 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
14383 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14384 if (!SWIG_IsOK(res1)) {
14385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
14386 }
14387 arg1 = reinterpret_cast< wxFont * >(argp1);
14388 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14389 if (!SWIG_IsOK(res2)) {
14390 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
14391 }
14392 arg2 = reinterpret_cast< wxFont * >(argp2);
14393 {
14394 PyThreadState* __tstate = wxPyBeginAllowThreads();
14395 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
14396 wxPyEndAllowThreads(__tstate);
14397 if (PyErr_Occurred()) SWIG_fail;
14398 }
14399 {
14400 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14401 }
14402 return resultobj;
14403 fail:
14404 return NULL;
14405 }
14406
14407
14408 SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14409 PyObject *resultobj = 0;
14410 wxFont *arg1 = (wxFont *) 0 ;
14411 wxFont *arg2 = (wxFont *) 0 ;
14412 bool result;
14413 void *argp1 = 0 ;
14414 int res1 = 0 ;
14415 void *argp2 = 0 ;
14416 int res2 = 0 ;
14417 PyObject * obj0 = 0 ;
14418 PyObject * obj1 = 0 ;
14419 char * kwnames[] = {
14420 (char *) "self",(char *) "other", NULL
14421 };
14422
14423 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
14424 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14425 if (!SWIG_IsOK(res1)) {
14426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
14427 }
14428 arg1 = reinterpret_cast< wxFont * >(argp1);
14429 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14430 if (!SWIG_IsOK(res2)) {
14431 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
14432 }
14433 arg2 = reinterpret_cast< wxFont * >(argp2);
14434 {
14435 PyThreadState* __tstate = wxPyBeginAllowThreads();
14436 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
14437 wxPyEndAllowThreads(__tstate);
14438 if (PyErr_Occurred()) SWIG_fail;
14439 }
14440 {
14441 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14442 }
14443 return resultobj;
14444 fail:
14445 return NULL;
14446 }
14447
14448
14449 SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14450 PyObject *resultobj = 0;
14451 wxFont *arg1 = (wxFont *) 0 ;
14452 int result;
14453 void *argp1 = 0 ;
14454 int res1 = 0 ;
14455 PyObject *swig_obj[1] ;
14456
14457 if (!args) SWIG_fail;
14458 swig_obj[0] = args;
14459 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14460 if (!SWIG_IsOK(res1)) {
14461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14462 }
14463 arg1 = reinterpret_cast< wxFont * >(argp1);
14464 {
14465 PyThreadState* __tstate = wxPyBeginAllowThreads();
14466 result = (int)((wxFont const *)arg1)->GetPointSize();
14467 wxPyEndAllowThreads(__tstate);
14468 if (PyErr_Occurred()) SWIG_fail;
14469 }
14470 resultobj = SWIG_From_int(static_cast< int >(result));
14471 return resultobj;
14472 fail:
14473 return NULL;
14474 }
14475
14476
14477 SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14478 PyObject *resultobj = 0;
14479 wxFont *arg1 = (wxFont *) 0 ;
14480 wxSize result;
14481 void *argp1 = 0 ;
14482 int res1 = 0 ;
14483 PyObject *swig_obj[1] ;
14484
14485 if (!args) SWIG_fail;
14486 swig_obj[0] = args;
14487 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14488 if (!SWIG_IsOK(res1)) {
14489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14490 }
14491 arg1 = reinterpret_cast< wxFont * >(argp1);
14492 {
14493 PyThreadState* __tstate = wxPyBeginAllowThreads();
14494 result = ((wxFont const *)arg1)->GetPixelSize();
14495 wxPyEndAllowThreads(__tstate);
14496 if (PyErr_Occurred()) SWIG_fail;
14497 }
14498 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
14499 return resultobj;
14500 fail:
14501 return NULL;
14502 }
14503
14504
14505 SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14506 PyObject *resultobj = 0;
14507 wxFont *arg1 = (wxFont *) 0 ;
14508 bool result;
14509 void *argp1 = 0 ;
14510 int res1 = 0 ;
14511 PyObject *swig_obj[1] ;
14512
14513 if (!args) SWIG_fail;
14514 swig_obj[0] = args;
14515 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14516 if (!SWIG_IsOK(res1)) {
14517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
14518 }
14519 arg1 = reinterpret_cast< wxFont * >(argp1);
14520 {
14521 PyThreadState* __tstate = wxPyBeginAllowThreads();
14522 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
14523 wxPyEndAllowThreads(__tstate);
14524 if (PyErr_Occurred()) SWIG_fail;
14525 }
14526 {
14527 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14528 }
14529 return resultobj;
14530 fail:
14531 return NULL;
14532 }
14533
14534
14535 SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14536 PyObject *resultobj = 0;
14537 wxFont *arg1 = (wxFont *) 0 ;
14538 int result;
14539 void *argp1 = 0 ;
14540 int res1 = 0 ;
14541 PyObject *swig_obj[1] ;
14542
14543 if (!args) SWIG_fail;
14544 swig_obj[0] = args;
14545 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14546 if (!SWIG_IsOK(res1)) {
14547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
14548 }
14549 arg1 = reinterpret_cast< wxFont * >(argp1);
14550 {
14551 PyThreadState* __tstate = wxPyBeginAllowThreads();
14552 result = (int)((wxFont const *)arg1)->GetFamily();
14553 wxPyEndAllowThreads(__tstate);
14554 if (PyErr_Occurred()) SWIG_fail;
14555 }
14556 resultobj = SWIG_From_int(static_cast< int >(result));
14557 return resultobj;
14558 fail:
14559 return NULL;
14560 }
14561
14562
14563 SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14564 PyObject *resultobj = 0;
14565 wxFont *arg1 = (wxFont *) 0 ;
14566 int result;
14567 void *argp1 = 0 ;
14568 int res1 = 0 ;
14569 PyObject *swig_obj[1] ;
14570
14571 if (!args) SWIG_fail;
14572 swig_obj[0] = args;
14573 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14574 if (!SWIG_IsOK(res1)) {
14575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
14576 }
14577 arg1 = reinterpret_cast< wxFont * >(argp1);
14578 {
14579 PyThreadState* __tstate = wxPyBeginAllowThreads();
14580 result = (int)((wxFont const *)arg1)->GetStyle();
14581 wxPyEndAllowThreads(__tstate);
14582 if (PyErr_Occurred()) SWIG_fail;
14583 }
14584 resultobj = SWIG_From_int(static_cast< int >(result));
14585 return resultobj;
14586 fail:
14587 return NULL;
14588 }
14589
14590
14591 SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14592 PyObject *resultobj = 0;
14593 wxFont *arg1 = (wxFont *) 0 ;
14594 int result;
14595 void *argp1 = 0 ;
14596 int res1 = 0 ;
14597 PyObject *swig_obj[1] ;
14598
14599 if (!args) SWIG_fail;
14600 swig_obj[0] = args;
14601 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14602 if (!SWIG_IsOK(res1)) {
14603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
14604 }
14605 arg1 = reinterpret_cast< wxFont * >(argp1);
14606 {
14607 PyThreadState* __tstate = wxPyBeginAllowThreads();
14608 result = (int)((wxFont const *)arg1)->GetWeight();
14609 wxPyEndAllowThreads(__tstate);
14610 if (PyErr_Occurred()) SWIG_fail;
14611 }
14612 resultobj = SWIG_From_int(static_cast< int >(result));
14613 return resultobj;
14614 fail:
14615 return NULL;
14616 }
14617
14618
14619 SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14620 PyObject *resultobj = 0;
14621 wxFont *arg1 = (wxFont *) 0 ;
14622 bool result;
14623 void *argp1 = 0 ;
14624 int res1 = 0 ;
14625 PyObject *swig_obj[1] ;
14626
14627 if (!args) SWIG_fail;
14628 swig_obj[0] = args;
14629 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14630 if (!SWIG_IsOK(res1)) {
14631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
14632 }
14633 arg1 = reinterpret_cast< wxFont * >(argp1);
14634 {
14635 PyThreadState* __tstate = wxPyBeginAllowThreads();
14636 result = (bool)((wxFont const *)arg1)->GetUnderlined();
14637 wxPyEndAllowThreads(__tstate);
14638 if (PyErr_Occurred()) SWIG_fail;
14639 }
14640 {
14641 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14642 }
14643 return resultobj;
14644 fail:
14645 return NULL;
14646 }
14647
14648
14649 SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14650 PyObject *resultobj = 0;
14651 wxFont *arg1 = (wxFont *) 0 ;
14652 wxString result;
14653 void *argp1 = 0 ;
14654 int res1 = 0 ;
14655 PyObject *swig_obj[1] ;
14656
14657 if (!args) SWIG_fail;
14658 swig_obj[0] = args;
14659 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14660 if (!SWIG_IsOK(res1)) {
14661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
14662 }
14663 arg1 = reinterpret_cast< wxFont * >(argp1);
14664 {
14665 PyThreadState* __tstate = wxPyBeginAllowThreads();
14666 result = ((wxFont const *)arg1)->GetFaceName();
14667 wxPyEndAllowThreads(__tstate);
14668 if (PyErr_Occurred()) SWIG_fail;
14669 }
14670 {
14671 #if wxUSE_UNICODE
14672 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14673 #else
14674 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14675 #endif
14676 }
14677 return resultobj;
14678 fail:
14679 return NULL;
14680 }
14681
14682
14683 SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14684 PyObject *resultobj = 0;
14685 wxFont *arg1 = (wxFont *) 0 ;
14686 wxFontEncoding result;
14687 void *argp1 = 0 ;
14688 int res1 = 0 ;
14689 PyObject *swig_obj[1] ;
14690
14691 if (!args) SWIG_fail;
14692 swig_obj[0] = args;
14693 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14694 if (!SWIG_IsOK(res1)) {
14695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
14696 }
14697 arg1 = reinterpret_cast< wxFont * >(argp1);
14698 {
14699 PyThreadState* __tstate = wxPyBeginAllowThreads();
14700 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
14701 wxPyEndAllowThreads(__tstate);
14702 if (PyErr_Occurred()) SWIG_fail;
14703 }
14704 resultobj = SWIG_From_int(static_cast< int >(result));
14705 return resultobj;
14706 fail:
14707 return NULL;
14708 }
14709
14710
14711 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14712 PyObject *resultobj = 0;
14713 wxFont *arg1 = (wxFont *) 0 ;
14714 wxNativeFontInfo *result = 0 ;
14715 void *argp1 = 0 ;
14716 int res1 = 0 ;
14717 PyObject *swig_obj[1] ;
14718
14719 if (!args) SWIG_fail;
14720 swig_obj[0] = args;
14721 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14722 if (!SWIG_IsOK(res1)) {
14723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
14724 }
14725 arg1 = reinterpret_cast< wxFont * >(argp1);
14726 {
14727 PyThreadState* __tstate = wxPyBeginAllowThreads();
14728 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
14729 wxPyEndAllowThreads(__tstate);
14730 if (PyErr_Occurred()) SWIG_fail;
14731 }
14732 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
14733 return resultobj;
14734 fail:
14735 return NULL;
14736 }
14737
14738
14739 SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14740 PyObject *resultobj = 0;
14741 wxFont *arg1 = (wxFont *) 0 ;
14742 bool result;
14743 void *argp1 = 0 ;
14744 int res1 = 0 ;
14745 PyObject *swig_obj[1] ;
14746
14747 if (!args) SWIG_fail;
14748 swig_obj[0] = args;
14749 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14750 if (!SWIG_IsOK(res1)) {
14751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
14752 }
14753 arg1 = reinterpret_cast< wxFont * >(argp1);
14754 {
14755 PyThreadState* __tstate = wxPyBeginAllowThreads();
14756 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
14757 wxPyEndAllowThreads(__tstate);
14758 if (PyErr_Occurred()) SWIG_fail;
14759 }
14760 {
14761 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14762 }
14763 return resultobj;
14764 fail:
14765 return NULL;
14766 }
14767
14768
14769 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14770 PyObject *resultobj = 0;
14771 wxFont *arg1 = (wxFont *) 0 ;
14772 wxString result;
14773 void *argp1 = 0 ;
14774 int res1 = 0 ;
14775 PyObject *swig_obj[1] ;
14776
14777 if (!args) SWIG_fail;
14778 swig_obj[0] = args;
14779 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14780 if (!SWIG_IsOK(res1)) {
14781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14782 }
14783 arg1 = reinterpret_cast< wxFont * >(argp1);
14784 {
14785 PyThreadState* __tstate = wxPyBeginAllowThreads();
14786 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
14787 wxPyEndAllowThreads(__tstate);
14788 if (PyErr_Occurred()) SWIG_fail;
14789 }
14790 {
14791 #if wxUSE_UNICODE
14792 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14793 #else
14794 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14795 #endif
14796 }
14797 return resultobj;
14798 fail:
14799 return NULL;
14800 }
14801
14802
14803 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14804 PyObject *resultobj = 0;
14805 wxFont *arg1 = (wxFont *) 0 ;
14806 wxString result;
14807 void *argp1 = 0 ;
14808 int res1 = 0 ;
14809 PyObject *swig_obj[1] ;
14810
14811 if (!args) SWIG_fail;
14812 swig_obj[0] = args;
14813 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14814 if (!SWIG_IsOK(res1)) {
14815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14816 }
14817 arg1 = reinterpret_cast< wxFont * >(argp1);
14818 {
14819 PyThreadState* __tstate = wxPyBeginAllowThreads();
14820 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
14821 wxPyEndAllowThreads(__tstate);
14822 if (PyErr_Occurred()) SWIG_fail;
14823 }
14824 {
14825 #if wxUSE_UNICODE
14826 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14827 #else
14828 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14829 #endif
14830 }
14831 return resultobj;
14832 fail:
14833 return NULL;
14834 }
14835
14836
14837 SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14838 PyObject *resultobj = 0;
14839 wxFont *arg1 = (wxFont *) 0 ;
14840 int arg2 ;
14841 void *argp1 = 0 ;
14842 int res1 = 0 ;
14843 int val2 ;
14844 int ecode2 = 0 ;
14845 PyObject * obj0 = 0 ;
14846 PyObject * obj1 = 0 ;
14847 char * kwnames[] = {
14848 (char *) "self",(char *) "pointSize", NULL
14849 };
14850
14851 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
14852 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14853 if (!SWIG_IsOK(res1)) {
14854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
14855 }
14856 arg1 = reinterpret_cast< wxFont * >(argp1);
14857 ecode2 = SWIG_AsVal_int(obj1, &val2);
14858 if (!SWIG_IsOK(ecode2)) {
14859 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
14860 }
14861 arg2 = static_cast< int >(val2);
14862 {
14863 PyThreadState* __tstate = wxPyBeginAllowThreads();
14864 (arg1)->SetPointSize(arg2);
14865 wxPyEndAllowThreads(__tstate);
14866 if (PyErr_Occurred()) SWIG_fail;
14867 }
14868 resultobj = SWIG_Py_Void();
14869 return resultobj;
14870 fail:
14871 return NULL;
14872 }
14873
14874
14875 SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14876 PyObject *resultobj = 0;
14877 wxFont *arg1 = (wxFont *) 0 ;
14878 wxSize *arg2 = 0 ;
14879 void *argp1 = 0 ;
14880 int res1 = 0 ;
14881 wxSize temp2 ;
14882 PyObject * obj0 = 0 ;
14883 PyObject * obj1 = 0 ;
14884 char * kwnames[] = {
14885 (char *) "self",(char *) "pixelSize", NULL
14886 };
14887
14888 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
14889 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14890 if (!SWIG_IsOK(res1)) {
14891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
14892 }
14893 arg1 = reinterpret_cast< wxFont * >(argp1);
14894 {
14895 arg2 = &temp2;
14896 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14897 }
14898 {
14899 PyThreadState* __tstate = wxPyBeginAllowThreads();
14900 (arg1)->SetPixelSize((wxSize const &)*arg2);
14901 wxPyEndAllowThreads(__tstate);
14902 if (PyErr_Occurred()) SWIG_fail;
14903 }
14904 resultobj = SWIG_Py_Void();
14905 return resultobj;
14906 fail:
14907 return NULL;
14908 }
14909
14910
14911 SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14912 PyObject *resultobj = 0;
14913 wxFont *arg1 = (wxFont *) 0 ;
14914 int arg2 ;
14915 void *argp1 = 0 ;
14916 int res1 = 0 ;
14917 int val2 ;
14918 int ecode2 = 0 ;
14919 PyObject * obj0 = 0 ;
14920 PyObject * obj1 = 0 ;
14921 char * kwnames[] = {
14922 (char *) "self",(char *) "family", NULL
14923 };
14924
14925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
14926 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14927 if (!SWIG_IsOK(res1)) {
14928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
14929 }
14930 arg1 = reinterpret_cast< wxFont * >(argp1);
14931 ecode2 = SWIG_AsVal_int(obj1, &val2);
14932 if (!SWIG_IsOK(ecode2)) {
14933 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
14934 }
14935 arg2 = static_cast< int >(val2);
14936 {
14937 PyThreadState* __tstate = wxPyBeginAllowThreads();
14938 (arg1)->SetFamily(arg2);
14939 wxPyEndAllowThreads(__tstate);
14940 if (PyErr_Occurred()) SWIG_fail;
14941 }
14942 resultobj = SWIG_Py_Void();
14943 return resultobj;
14944 fail:
14945 return NULL;
14946 }
14947
14948
14949 SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14950 PyObject *resultobj = 0;
14951 wxFont *arg1 = (wxFont *) 0 ;
14952 int arg2 ;
14953 void *argp1 = 0 ;
14954 int res1 = 0 ;
14955 int val2 ;
14956 int ecode2 = 0 ;
14957 PyObject * obj0 = 0 ;
14958 PyObject * obj1 = 0 ;
14959 char * kwnames[] = {
14960 (char *) "self",(char *) "style", NULL
14961 };
14962
14963 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
14964 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14965 if (!SWIG_IsOK(res1)) {
14966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
14967 }
14968 arg1 = reinterpret_cast< wxFont * >(argp1);
14969 ecode2 = SWIG_AsVal_int(obj1, &val2);
14970 if (!SWIG_IsOK(ecode2)) {
14971 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
14972 }
14973 arg2 = static_cast< int >(val2);
14974 {
14975 PyThreadState* __tstate = wxPyBeginAllowThreads();
14976 (arg1)->SetStyle(arg2);
14977 wxPyEndAllowThreads(__tstate);
14978 if (PyErr_Occurred()) SWIG_fail;
14979 }
14980 resultobj = SWIG_Py_Void();
14981 return resultobj;
14982 fail:
14983 return NULL;
14984 }
14985
14986
14987 SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14988 PyObject *resultobj = 0;
14989 wxFont *arg1 = (wxFont *) 0 ;
14990 int arg2 ;
14991 void *argp1 = 0 ;
14992 int res1 = 0 ;
14993 int val2 ;
14994 int ecode2 = 0 ;
14995 PyObject * obj0 = 0 ;
14996 PyObject * obj1 = 0 ;
14997 char * kwnames[] = {
14998 (char *) "self",(char *) "weight", NULL
14999 };
15000
15001 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
15002 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15003 if (!SWIG_IsOK(res1)) {
15004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
15005 }
15006 arg1 = reinterpret_cast< wxFont * >(argp1);
15007 ecode2 = SWIG_AsVal_int(obj1, &val2);
15008 if (!SWIG_IsOK(ecode2)) {
15009 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
15010 }
15011 arg2 = static_cast< int >(val2);
15012 {
15013 PyThreadState* __tstate = wxPyBeginAllowThreads();
15014 (arg1)->SetWeight(arg2);
15015 wxPyEndAllowThreads(__tstate);
15016 if (PyErr_Occurred()) SWIG_fail;
15017 }
15018 resultobj = SWIG_Py_Void();
15019 return resultobj;
15020 fail:
15021 return NULL;
15022 }
15023
15024
15025 SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15026 PyObject *resultobj = 0;
15027 wxFont *arg1 = (wxFont *) 0 ;
15028 wxString *arg2 = 0 ;
15029 bool result;
15030 void *argp1 = 0 ;
15031 int res1 = 0 ;
15032 bool temp2 = false ;
15033 PyObject * obj0 = 0 ;
15034 PyObject * obj1 = 0 ;
15035 char * kwnames[] = {
15036 (char *) "self",(char *) "faceName", NULL
15037 };
15038
15039 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
15040 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15041 if (!SWIG_IsOK(res1)) {
15042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
15043 }
15044 arg1 = reinterpret_cast< wxFont * >(argp1);
15045 {
15046 arg2 = wxString_in_helper(obj1);
15047 if (arg2 == NULL) SWIG_fail;
15048 temp2 = true;
15049 }
15050 {
15051 PyThreadState* __tstate = wxPyBeginAllowThreads();
15052 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
15053 wxPyEndAllowThreads(__tstate);
15054 if (PyErr_Occurred()) SWIG_fail;
15055 }
15056 {
15057 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15058 }
15059 {
15060 if (temp2)
15061 delete arg2;
15062 }
15063 return resultobj;
15064 fail:
15065 {
15066 if (temp2)
15067 delete arg2;
15068 }
15069 return NULL;
15070 }
15071
15072
15073 SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15074 PyObject *resultobj = 0;
15075 wxFont *arg1 = (wxFont *) 0 ;
15076 bool arg2 ;
15077 void *argp1 = 0 ;
15078 int res1 = 0 ;
15079 bool val2 ;
15080 int ecode2 = 0 ;
15081 PyObject * obj0 = 0 ;
15082 PyObject * obj1 = 0 ;
15083 char * kwnames[] = {
15084 (char *) "self",(char *) "underlined", NULL
15085 };
15086
15087 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
15088 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15089 if (!SWIG_IsOK(res1)) {
15090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
15091 }
15092 arg1 = reinterpret_cast< wxFont * >(argp1);
15093 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15094 if (!SWIG_IsOK(ecode2)) {
15095 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
15096 }
15097 arg2 = static_cast< bool >(val2);
15098 {
15099 PyThreadState* __tstate = wxPyBeginAllowThreads();
15100 (arg1)->SetUnderlined(arg2);
15101 wxPyEndAllowThreads(__tstate);
15102 if (PyErr_Occurred()) SWIG_fail;
15103 }
15104 resultobj = SWIG_Py_Void();
15105 return resultobj;
15106 fail:
15107 return NULL;
15108 }
15109
15110
15111 SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15112 PyObject *resultobj = 0;
15113 wxFont *arg1 = (wxFont *) 0 ;
15114 wxFontEncoding arg2 ;
15115 void *argp1 = 0 ;
15116 int res1 = 0 ;
15117 int val2 ;
15118 int ecode2 = 0 ;
15119 PyObject * obj0 = 0 ;
15120 PyObject * obj1 = 0 ;
15121 char * kwnames[] = {
15122 (char *) "self",(char *) "encoding", NULL
15123 };
15124
15125 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
15126 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15127 if (!SWIG_IsOK(res1)) {
15128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
15129 }
15130 arg1 = reinterpret_cast< wxFont * >(argp1);
15131 ecode2 = SWIG_AsVal_int(obj1, &val2);
15132 if (!SWIG_IsOK(ecode2)) {
15133 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15134 }
15135 arg2 = static_cast< wxFontEncoding >(val2);
15136 {
15137 PyThreadState* __tstate = wxPyBeginAllowThreads();
15138 (arg1)->SetEncoding(arg2);
15139 wxPyEndAllowThreads(__tstate);
15140 if (PyErr_Occurred()) SWIG_fail;
15141 }
15142 resultobj = SWIG_Py_Void();
15143 return resultobj;
15144 fail:
15145 return NULL;
15146 }
15147
15148
15149 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15150 PyObject *resultobj = 0;
15151 wxFont *arg1 = (wxFont *) 0 ;
15152 wxNativeFontInfo *arg2 = 0 ;
15153 void *argp1 = 0 ;
15154 int res1 = 0 ;
15155 void *argp2 = 0 ;
15156 int res2 = 0 ;
15157 PyObject * obj0 = 0 ;
15158 PyObject * obj1 = 0 ;
15159 char * kwnames[] = {
15160 (char *) "self",(char *) "info", NULL
15161 };
15162
15163 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
15164 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15165 if (!SWIG_IsOK(res1)) {
15166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
15167 }
15168 arg1 = reinterpret_cast< wxFont * >(argp1);
15169 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
15170 if (!SWIG_IsOK(res2)) {
15171 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15172 }
15173 if (!argp2) {
15174 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15175 }
15176 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
15177 {
15178 PyThreadState* __tstate = wxPyBeginAllowThreads();
15179 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
15180 wxPyEndAllowThreads(__tstate);
15181 if (PyErr_Occurred()) SWIG_fail;
15182 }
15183 resultobj = SWIG_Py_Void();
15184 return resultobj;
15185 fail:
15186 return NULL;
15187 }
15188
15189
15190 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15191 PyObject *resultobj = 0;
15192 wxFont *arg1 = (wxFont *) 0 ;
15193 wxString *arg2 = 0 ;
15194 bool result;
15195 void *argp1 = 0 ;
15196 int res1 = 0 ;
15197 bool temp2 = false ;
15198 PyObject * obj0 = 0 ;
15199 PyObject * obj1 = 0 ;
15200 char * kwnames[] = {
15201 (char *) "self",(char *) "info", NULL
15202 };
15203
15204 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
15205 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15206 if (!SWIG_IsOK(res1)) {
15207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
15208 }
15209 arg1 = reinterpret_cast< wxFont * >(argp1);
15210 {
15211 arg2 = wxString_in_helper(obj1);
15212 if (arg2 == NULL) SWIG_fail;
15213 temp2 = true;
15214 }
15215 {
15216 PyThreadState* __tstate = wxPyBeginAllowThreads();
15217 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
15218 wxPyEndAllowThreads(__tstate);
15219 if (PyErr_Occurred()) SWIG_fail;
15220 }
15221 {
15222 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15223 }
15224 {
15225 if (temp2)
15226 delete arg2;
15227 }
15228 return resultobj;
15229 fail:
15230 {
15231 if (temp2)
15232 delete arg2;
15233 }
15234 return NULL;
15235 }
15236
15237
15238 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15239 PyObject *resultobj = 0;
15240 wxFont *arg1 = (wxFont *) 0 ;
15241 wxString *arg2 = 0 ;
15242 bool result;
15243 void *argp1 = 0 ;
15244 int res1 = 0 ;
15245 bool temp2 = false ;
15246 PyObject * obj0 = 0 ;
15247 PyObject * obj1 = 0 ;
15248 char * kwnames[] = {
15249 (char *) "self",(char *) "info", NULL
15250 };
15251
15252 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
15253 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15254 if (!SWIG_IsOK(res1)) {
15255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
15256 }
15257 arg1 = reinterpret_cast< wxFont * >(argp1);
15258 {
15259 arg2 = wxString_in_helper(obj1);
15260 if (arg2 == NULL) SWIG_fail;
15261 temp2 = true;
15262 }
15263 {
15264 PyThreadState* __tstate = wxPyBeginAllowThreads();
15265 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
15266 wxPyEndAllowThreads(__tstate);
15267 if (PyErr_Occurred()) SWIG_fail;
15268 }
15269 {
15270 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15271 }
15272 {
15273 if (temp2)
15274 delete arg2;
15275 }
15276 return resultobj;
15277 fail:
15278 {
15279 if (temp2)
15280 delete arg2;
15281 }
15282 return NULL;
15283 }
15284
15285
15286 SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15287 PyObject *resultobj = 0;
15288 wxFont *arg1 = (wxFont *) 0 ;
15289 wxString result;
15290 void *argp1 = 0 ;
15291 int res1 = 0 ;
15292 PyObject *swig_obj[1] ;
15293
15294 if (!args) SWIG_fail;
15295 swig_obj[0] = args;
15296 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15297 if (!SWIG_IsOK(res1)) {
15298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
15299 }
15300 arg1 = reinterpret_cast< wxFont * >(argp1);
15301 {
15302 PyThreadState* __tstate = wxPyBeginAllowThreads();
15303 result = ((wxFont const *)arg1)->GetFamilyString();
15304 wxPyEndAllowThreads(__tstate);
15305 if (PyErr_Occurred()) SWIG_fail;
15306 }
15307 {
15308 #if wxUSE_UNICODE
15309 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15310 #else
15311 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15312 #endif
15313 }
15314 return resultobj;
15315 fail:
15316 return NULL;
15317 }
15318
15319
15320 SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15321 PyObject *resultobj = 0;
15322 wxFont *arg1 = (wxFont *) 0 ;
15323 wxString result;
15324 void *argp1 = 0 ;
15325 int res1 = 0 ;
15326 PyObject *swig_obj[1] ;
15327
15328 if (!args) SWIG_fail;
15329 swig_obj[0] = args;
15330 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15331 if (!SWIG_IsOK(res1)) {
15332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
15333 }
15334 arg1 = reinterpret_cast< wxFont * >(argp1);
15335 {
15336 PyThreadState* __tstate = wxPyBeginAllowThreads();
15337 result = ((wxFont const *)arg1)->GetStyleString();
15338 wxPyEndAllowThreads(__tstate);
15339 if (PyErr_Occurred()) SWIG_fail;
15340 }
15341 {
15342 #if wxUSE_UNICODE
15343 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15344 #else
15345 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15346 #endif
15347 }
15348 return resultobj;
15349 fail:
15350 return NULL;
15351 }
15352
15353
15354 SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15355 PyObject *resultobj = 0;
15356 wxFont *arg1 = (wxFont *) 0 ;
15357 wxString result;
15358 void *argp1 = 0 ;
15359 int res1 = 0 ;
15360 PyObject *swig_obj[1] ;
15361
15362 if (!args) SWIG_fail;
15363 swig_obj[0] = args;
15364 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15365 if (!SWIG_IsOK(res1)) {
15366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
15367 }
15368 arg1 = reinterpret_cast< wxFont * >(argp1);
15369 {
15370 PyThreadState* __tstate = wxPyBeginAllowThreads();
15371 result = ((wxFont const *)arg1)->GetWeightString();
15372 wxPyEndAllowThreads(__tstate);
15373 if (PyErr_Occurred()) SWIG_fail;
15374 }
15375 {
15376 #if wxUSE_UNICODE
15377 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15378 #else
15379 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15380 #endif
15381 }
15382 return resultobj;
15383 fail:
15384 return NULL;
15385 }
15386
15387
15388 SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15389 PyObject *resultobj = 0;
15390 wxFont *arg1 = (wxFont *) 0 ;
15391 bool arg2 = (bool) true ;
15392 void *argp1 = 0 ;
15393 int res1 = 0 ;
15394 bool val2 ;
15395 int ecode2 = 0 ;
15396 PyObject * obj0 = 0 ;
15397 PyObject * obj1 = 0 ;
15398 char * kwnames[] = {
15399 (char *) "self",(char *) "no", NULL
15400 };
15401
15402 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
15403 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15404 if (!SWIG_IsOK(res1)) {
15405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
15406 }
15407 arg1 = reinterpret_cast< wxFont * >(argp1);
15408 if (obj1) {
15409 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15410 if (!SWIG_IsOK(ecode2)) {
15411 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
15412 }
15413 arg2 = static_cast< bool >(val2);
15414 }
15415 {
15416 PyThreadState* __tstate = wxPyBeginAllowThreads();
15417 (arg1)->SetNoAntiAliasing(arg2);
15418 wxPyEndAllowThreads(__tstate);
15419 if (PyErr_Occurred()) SWIG_fail;
15420 }
15421 resultobj = SWIG_Py_Void();
15422 return resultobj;
15423 fail:
15424 return NULL;
15425 }
15426
15427
15428 SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15429 PyObject *resultobj = 0;
15430 wxFont *arg1 = (wxFont *) 0 ;
15431 bool result;
15432 void *argp1 = 0 ;
15433 int res1 = 0 ;
15434 PyObject *swig_obj[1] ;
15435
15436 if (!args) SWIG_fail;
15437 swig_obj[0] = args;
15438 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15439 if (!SWIG_IsOK(res1)) {
15440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
15441 }
15442 arg1 = reinterpret_cast< wxFont * >(argp1);
15443 {
15444 PyThreadState* __tstate = wxPyBeginAllowThreads();
15445 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
15446 wxPyEndAllowThreads(__tstate);
15447 if (PyErr_Occurred()) SWIG_fail;
15448 }
15449 {
15450 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15451 }
15452 return resultobj;
15453 fail:
15454 return NULL;
15455 }
15456
15457
15458 SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15459 PyObject *resultobj = 0;
15460 wxFontEncoding result;
15461
15462 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
15463 {
15464 if (!wxPyCheckForApp()) SWIG_fail;
15465 PyThreadState* __tstate = wxPyBeginAllowThreads();
15466 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
15467 wxPyEndAllowThreads(__tstate);
15468 if (PyErr_Occurred()) SWIG_fail;
15469 }
15470 resultobj = SWIG_From_int(static_cast< int >(result));
15471 return resultobj;
15472 fail:
15473 return NULL;
15474 }
15475
15476
15477 SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15478 PyObject *resultobj = 0;
15479 wxFontEncoding arg1 ;
15480 int val1 ;
15481 int ecode1 = 0 ;
15482 PyObject * obj0 = 0 ;
15483 char * kwnames[] = {
15484 (char *) "encoding", NULL
15485 };
15486
15487 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
15488 ecode1 = SWIG_AsVal_int(obj0, &val1);
15489 if (!SWIG_IsOK(ecode1)) {
15490 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
15491 }
15492 arg1 = static_cast< wxFontEncoding >(val1);
15493 {
15494 if (!wxPyCheckForApp()) SWIG_fail;
15495 PyThreadState* __tstate = wxPyBeginAllowThreads();
15496 wxFont::SetDefaultEncoding(arg1);
15497 wxPyEndAllowThreads(__tstate);
15498 if (PyErr_Occurred()) SWIG_fail;
15499 }
15500 resultobj = SWIG_Py_Void();
15501 return resultobj;
15502 fail:
15503 return NULL;
15504 }
15505
15506
15507 SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15508 PyObject *obj;
15509 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15510 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
15511 return SWIG_Py_Void();
15512 }
15513
15514 SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15515 return SWIG_Python_InitShadowInstance(args);
15516 }
15517
15518 SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15519 PyObject *resultobj = 0;
15520 wxPyFontEnumerator *result = 0 ;
15521
15522 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
15523 {
15524 if (!wxPyCheckForApp()) SWIG_fail;
15525 PyThreadState* __tstate = wxPyBeginAllowThreads();
15526 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
15527 wxPyEndAllowThreads(__tstate);
15528 if (PyErr_Occurred()) SWIG_fail;
15529 }
15530 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
15531 return resultobj;
15532 fail:
15533 return NULL;
15534 }
15535
15536
15537 SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15538 PyObject *resultobj = 0;
15539 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15540 void *argp1 = 0 ;
15541 int res1 = 0 ;
15542 PyObject *swig_obj[1] ;
15543
15544 if (!args) SWIG_fail;
15545 swig_obj[0] = args;
15546 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
15547 if (!SWIG_IsOK(res1)) {
15548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15549 }
15550 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15551 {
15552 PyThreadState* __tstate = wxPyBeginAllowThreads();
15553 delete arg1;
15554
15555 wxPyEndAllowThreads(__tstate);
15556 if (PyErr_Occurred()) SWIG_fail;
15557 }
15558 resultobj = SWIG_Py_Void();
15559 return resultobj;
15560 fail:
15561 return NULL;
15562 }
15563
15564
15565 SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15566 PyObject *resultobj = 0;
15567 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15568 PyObject *arg2 = (PyObject *) 0 ;
15569 PyObject *arg3 = (PyObject *) 0 ;
15570 bool arg4 ;
15571 void *argp1 = 0 ;
15572 int res1 = 0 ;
15573 bool val4 ;
15574 int ecode4 = 0 ;
15575 PyObject * obj0 = 0 ;
15576 PyObject * obj1 = 0 ;
15577 PyObject * obj2 = 0 ;
15578 PyObject * obj3 = 0 ;
15579 char * kwnames[] = {
15580 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
15581 };
15582
15583 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15584 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15585 if (!SWIG_IsOK(res1)) {
15586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15587 }
15588 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15589 arg2 = obj1;
15590 arg3 = obj2;
15591 ecode4 = SWIG_AsVal_bool(obj3, &val4);
15592 if (!SWIG_IsOK(ecode4)) {
15593 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'");
15594 }
15595 arg4 = static_cast< bool >(val4);
15596 {
15597 PyThreadState* __tstate = wxPyBeginAllowThreads();
15598 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
15599 wxPyEndAllowThreads(__tstate);
15600 if (PyErr_Occurred()) SWIG_fail;
15601 }
15602 resultobj = SWIG_Py_Void();
15603 return resultobj;
15604 fail:
15605 return NULL;
15606 }
15607
15608
15609 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15610 PyObject *resultobj = 0;
15611 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15612 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
15613 bool arg3 = (bool) false ;
15614 bool result;
15615 void *argp1 = 0 ;
15616 int res1 = 0 ;
15617 int val2 ;
15618 int ecode2 = 0 ;
15619 bool val3 ;
15620 int ecode3 = 0 ;
15621 PyObject * obj0 = 0 ;
15622 PyObject * obj1 = 0 ;
15623 PyObject * obj2 = 0 ;
15624 char * kwnames[] = {
15625 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
15626 };
15627
15628 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15629 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15630 if (!SWIG_IsOK(res1)) {
15631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15632 }
15633 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15634 if (obj1) {
15635 ecode2 = SWIG_AsVal_int(obj1, &val2);
15636 if (!SWIG_IsOK(ecode2)) {
15637 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15638 }
15639 arg2 = static_cast< wxFontEncoding >(val2);
15640 }
15641 if (obj2) {
15642 ecode3 = SWIG_AsVal_bool(obj2, &val3);
15643 if (!SWIG_IsOK(ecode3)) {
15644 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
15645 }
15646 arg3 = static_cast< bool >(val3);
15647 }
15648 {
15649 PyThreadState* __tstate = wxPyBeginAllowThreads();
15650 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
15651 wxPyEndAllowThreads(__tstate);
15652 if (PyErr_Occurred()) SWIG_fail;
15653 }
15654 {
15655 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15656 }
15657 return resultobj;
15658 fail:
15659 return NULL;
15660 }
15661
15662
15663 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15664 PyObject *resultobj = 0;
15665 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15666 wxString const &arg2_defvalue = wxPyEmptyString ;
15667 wxString *arg2 = (wxString *) &arg2_defvalue ;
15668 bool result;
15669 void *argp1 = 0 ;
15670 int res1 = 0 ;
15671 bool temp2 = false ;
15672 PyObject * obj0 = 0 ;
15673 PyObject * obj1 = 0 ;
15674 char * kwnames[] = {
15675 (char *) "self",(char *) "facename", NULL
15676 };
15677
15678 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
15679 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15680 if (!SWIG_IsOK(res1)) {
15681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15682 }
15683 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15684 if (obj1) {
15685 {
15686 arg2 = wxString_in_helper(obj1);
15687 if (arg2 == NULL) SWIG_fail;
15688 temp2 = true;
15689 }
15690 }
15691 {
15692 PyThreadState* __tstate = wxPyBeginAllowThreads();
15693 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
15694 wxPyEndAllowThreads(__tstate);
15695 if (PyErr_Occurred()) SWIG_fail;
15696 }
15697 {
15698 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15699 }
15700 {
15701 if (temp2)
15702 delete arg2;
15703 }
15704 return resultobj;
15705 fail:
15706 {
15707 if (temp2)
15708 delete arg2;
15709 }
15710 return NULL;
15711 }
15712
15713
15714 SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15715 PyObject *resultobj = 0;
15716 PyObject *result = 0 ;
15717
15718 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
15719 {
15720 PyThreadState* __tstate = wxPyBeginAllowThreads();
15721 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
15722 wxPyEndAllowThreads(__tstate);
15723 if (PyErr_Occurred()) SWIG_fail;
15724 }
15725 resultobj = result;
15726 return resultobj;
15727 fail:
15728 return NULL;
15729 }
15730
15731
15732 SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15733 PyObject *resultobj = 0;
15734 PyObject *result = 0 ;
15735
15736 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
15737 {
15738 PyThreadState* __tstate = wxPyBeginAllowThreads();
15739 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
15740 wxPyEndAllowThreads(__tstate);
15741 if (PyErr_Occurred()) SWIG_fail;
15742 }
15743 resultobj = result;
15744 return resultobj;
15745 fail:
15746 return NULL;
15747 }
15748
15749
15750 SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15751 PyObject *resultobj = 0;
15752 wxString *arg1 = 0 ;
15753 bool result;
15754 bool temp1 = false ;
15755 PyObject * obj0 = 0 ;
15756 char * kwnames[] = {
15757 (char *) "str", NULL
15758 };
15759
15760 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
15761 {
15762 arg1 = wxString_in_helper(obj0);
15763 if (arg1 == NULL) SWIG_fail;
15764 temp1 = true;
15765 }
15766 {
15767 PyThreadState* __tstate = wxPyBeginAllowThreads();
15768 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
15769 wxPyEndAllowThreads(__tstate);
15770 if (PyErr_Occurred()) SWIG_fail;
15771 }
15772 {
15773 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15774 }
15775 {
15776 if (temp1)
15777 delete arg1;
15778 }
15779 return resultobj;
15780 fail:
15781 {
15782 if (temp1)
15783 delete arg1;
15784 }
15785 return NULL;
15786 }
15787
15788
15789 SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15790 PyObject *obj;
15791 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15792 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
15793 return SWIG_Py_Void();
15794 }
15795
15796 SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15797 return SWIG_Python_InitShadowInstance(args);
15798 }
15799
15800 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15801 PyObject *resultobj = 0;
15802 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15803 int arg2 ;
15804 void *argp1 = 0 ;
15805 int res1 = 0 ;
15806 int val2 ;
15807 int ecode2 = 0 ;
15808 PyObject *swig_obj[2] ;
15809
15810 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
15811 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15812 if (!SWIG_IsOK(res1)) {
15813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15814 }
15815 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15816 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
15817 if (!SWIG_IsOK(ecode2)) {
15818 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
15819 }
15820 arg2 = static_cast< int >(val2);
15821 if (arg1) (arg1)->Language = arg2;
15822
15823 resultobj = SWIG_Py_Void();
15824 return resultobj;
15825 fail:
15826 return NULL;
15827 }
15828
15829
15830 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15831 PyObject *resultobj = 0;
15832 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15833 int result;
15834 void *argp1 = 0 ;
15835 int res1 = 0 ;
15836 PyObject *swig_obj[1] ;
15837
15838 if (!args) SWIG_fail;
15839 swig_obj[0] = args;
15840 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15841 if (!SWIG_IsOK(res1)) {
15842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15843 }
15844 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15845 result = (int) ((arg1)->Language);
15846 resultobj = SWIG_From_int(static_cast< int >(result));
15847 return resultobj;
15848 fail:
15849 return NULL;
15850 }
15851
15852
15853 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15854 PyObject *resultobj = 0;
15855 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15856 wxString *arg2 = (wxString *) 0 ;
15857 void *argp1 = 0 ;
15858 int res1 = 0 ;
15859 bool temp2 = false ;
15860 PyObject *swig_obj[2] ;
15861
15862 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
15863 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15864 if (!SWIG_IsOK(res1)) {
15865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15866 }
15867 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15868 {
15869 arg2 = wxString_in_helper(swig_obj[1]);
15870 if (arg2 == NULL) SWIG_fail;
15871 temp2 = true;
15872 }
15873 if (arg1) (arg1)->CanonicalName = *arg2;
15874
15875 resultobj = SWIG_Py_Void();
15876 {
15877 if (temp2)
15878 delete arg2;
15879 }
15880 return resultobj;
15881 fail:
15882 {
15883 if (temp2)
15884 delete arg2;
15885 }
15886 return NULL;
15887 }
15888
15889
15890 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15891 PyObject *resultobj = 0;
15892 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15893 wxString *result = 0 ;
15894 void *argp1 = 0 ;
15895 int res1 = 0 ;
15896 PyObject *swig_obj[1] ;
15897
15898 if (!args) SWIG_fail;
15899 swig_obj[0] = args;
15900 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15901 if (!SWIG_IsOK(res1)) {
15902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15903 }
15904 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15905 result = (wxString *)& ((arg1)->CanonicalName);
15906 {
15907 #if wxUSE_UNICODE
15908 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15909 #else
15910 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15911 #endif
15912 }
15913 return resultobj;
15914 fail:
15915 return NULL;
15916 }
15917
15918
15919 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15920 PyObject *resultobj = 0;
15921 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15922 wxString *arg2 = (wxString *) 0 ;
15923 void *argp1 = 0 ;
15924 int res1 = 0 ;
15925 bool temp2 = false ;
15926 PyObject *swig_obj[2] ;
15927
15928 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
15929 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15930 if (!SWIG_IsOK(res1)) {
15931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15932 }
15933 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15934 {
15935 arg2 = wxString_in_helper(swig_obj[1]);
15936 if (arg2 == NULL) SWIG_fail;
15937 temp2 = true;
15938 }
15939 if (arg1) (arg1)->Description = *arg2;
15940
15941 resultobj = SWIG_Py_Void();
15942 {
15943 if (temp2)
15944 delete arg2;
15945 }
15946 return resultobj;
15947 fail:
15948 {
15949 if (temp2)
15950 delete arg2;
15951 }
15952 return NULL;
15953 }
15954
15955
15956 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15957 PyObject *resultobj = 0;
15958 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15959 wxString *result = 0 ;
15960 void *argp1 = 0 ;
15961 int res1 = 0 ;
15962 PyObject *swig_obj[1] ;
15963
15964 if (!args) SWIG_fail;
15965 swig_obj[0] = args;
15966 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15967 if (!SWIG_IsOK(res1)) {
15968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15969 }
15970 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15971 result = (wxString *)& ((arg1)->Description);
15972 {
15973 #if wxUSE_UNICODE
15974 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15975 #else
15976 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15977 #endif
15978 }
15979 return resultobj;
15980 fail:
15981 return NULL;
15982 }
15983
15984
15985 SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15986 PyObject *obj;
15987 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15988 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
15989 return SWIG_Py_Void();
15990 }
15991
15992 SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15993 PyObject *resultobj = 0;
15994 int arg1 = (int) -1 ;
15995 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
15996 wxLocale *result = 0 ;
15997 int val1 ;
15998 int ecode1 = 0 ;
15999 int val2 ;
16000 int ecode2 = 0 ;
16001 PyObject * obj0 = 0 ;
16002 PyObject * obj1 = 0 ;
16003 char * kwnames[] = {
16004 (char *) "language",(char *) "flags", NULL
16005 };
16006
16007 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
16008 if (obj0) {
16009 ecode1 = SWIG_AsVal_int(obj0, &val1);
16010 if (!SWIG_IsOK(ecode1)) {
16011 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
16012 }
16013 arg1 = static_cast< int >(val1);
16014 }
16015 if (obj1) {
16016 ecode2 = SWIG_AsVal_int(obj1, &val2);
16017 if (!SWIG_IsOK(ecode2)) {
16018 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
16019 }
16020 arg2 = static_cast< int >(val2);
16021 }
16022 {
16023 PyThreadState* __tstate = wxPyBeginAllowThreads();
16024 result = (wxLocale *)new_wxLocale(arg1,arg2);
16025 wxPyEndAllowThreads(__tstate);
16026 if (PyErr_Occurred()) SWIG_fail;
16027 }
16028 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
16029 return resultobj;
16030 fail:
16031 return NULL;
16032 }
16033
16034
16035 SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16036 PyObject *resultobj = 0;
16037 wxLocale *arg1 = (wxLocale *) 0 ;
16038 void *argp1 = 0 ;
16039 int res1 = 0 ;
16040 PyObject *swig_obj[1] ;
16041
16042 if (!args) SWIG_fail;
16043 swig_obj[0] = args;
16044 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
16045 if (!SWIG_IsOK(res1)) {
16046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
16047 }
16048 arg1 = reinterpret_cast< wxLocale * >(argp1);
16049 {
16050 PyThreadState* __tstate = wxPyBeginAllowThreads();
16051 delete arg1;
16052
16053 wxPyEndAllowThreads(__tstate);
16054 if (PyErr_Occurred()) SWIG_fail;
16055 }
16056 resultobj = SWIG_Py_Void();
16057 return resultobj;
16058 fail:
16059 return NULL;
16060 }
16061
16062
16063 SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16064 PyObject *resultobj = 0;
16065 wxLocale *arg1 = (wxLocale *) 0 ;
16066 wxString *arg2 = 0 ;
16067 wxString const &arg3_defvalue = wxPyEmptyString ;
16068 wxString *arg3 = (wxString *) &arg3_defvalue ;
16069 wxString const &arg4_defvalue = wxPyEmptyString ;
16070 wxString *arg4 = (wxString *) &arg4_defvalue ;
16071 bool arg5 = (bool) true ;
16072 bool arg6 = (bool) false ;
16073 bool result;
16074 void *argp1 = 0 ;
16075 int res1 = 0 ;
16076 bool temp2 = false ;
16077 bool temp3 = false ;
16078 bool temp4 = false ;
16079 bool val5 ;
16080 int ecode5 = 0 ;
16081 bool val6 ;
16082 int ecode6 = 0 ;
16083 PyObject * obj0 = 0 ;
16084 PyObject * obj1 = 0 ;
16085 PyObject * obj2 = 0 ;
16086 PyObject * obj3 = 0 ;
16087 PyObject * obj4 = 0 ;
16088 PyObject * obj5 = 0 ;
16089 char * kwnames[] = {
16090 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
16091 };
16092
16093 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
16094 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16095 if (!SWIG_IsOK(res1)) {
16096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
16097 }
16098 arg1 = reinterpret_cast< wxLocale * >(argp1);
16099 {
16100 arg2 = wxString_in_helper(obj1);
16101 if (arg2 == NULL) SWIG_fail;
16102 temp2 = true;
16103 }
16104 if (obj2) {
16105 {
16106 arg3 = wxString_in_helper(obj2);
16107 if (arg3 == NULL) SWIG_fail;
16108 temp3 = true;
16109 }
16110 }
16111 if (obj3) {
16112 {
16113 arg4 = wxString_in_helper(obj3);
16114 if (arg4 == NULL) SWIG_fail;
16115 temp4 = true;
16116 }
16117 }
16118 if (obj4) {
16119 ecode5 = SWIG_AsVal_bool(obj4, &val5);
16120 if (!SWIG_IsOK(ecode5)) {
16121 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
16122 }
16123 arg5 = static_cast< bool >(val5);
16124 }
16125 if (obj5) {
16126 ecode6 = SWIG_AsVal_bool(obj5, &val6);
16127 if (!SWIG_IsOK(ecode6)) {
16128 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
16129 }
16130 arg6 = static_cast< bool >(val6);
16131 }
16132 {
16133 PyThreadState* __tstate = wxPyBeginAllowThreads();
16134 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
16135 wxPyEndAllowThreads(__tstate);
16136 if (PyErr_Occurred()) SWIG_fail;
16137 }
16138 {
16139 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16140 }
16141 {
16142 if (temp2)
16143 delete arg2;
16144 }
16145 {
16146 if (temp3)
16147 delete arg3;
16148 }
16149 {
16150 if (temp4)
16151 delete arg4;
16152 }
16153 return resultobj;
16154 fail:
16155 {
16156 if (temp2)
16157 delete arg2;
16158 }
16159 {
16160 if (temp3)
16161 delete arg3;
16162 }
16163 {
16164 if (temp4)
16165 delete arg4;
16166 }
16167 return NULL;
16168 }
16169
16170
16171 SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16172 PyObject *resultobj = 0;
16173 wxLocale *arg1 = (wxLocale *) 0 ;
16174 int arg2 = (int) wxLANGUAGE_DEFAULT ;
16175 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16176 bool result;
16177 void *argp1 = 0 ;
16178 int res1 = 0 ;
16179 int val2 ;
16180 int ecode2 = 0 ;
16181 int val3 ;
16182 int ecode3 = 0 ;
16183 PyObject * obj0 = 0 ;
16184 PyObject * obj1 = 0 ;
16185 PyObject * obj2 = 0 ;
16186 char * kwnames[] = {
16187 (char *) "self",(char *) "language",(char *) "flags", NULL
16188 };
16189
16190 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16191 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16192 if (!SWIG_IsOK(res1)) {
16193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
16194 }
16195 arg1 = reinterpret_cast< wxLocale * >(argp1);
16196 if (obj1) {
16197 ecode2 = SWIG_AsVal_int(obj1, &val2);
16198 if (!SWIG_IsOK(ecode2)) {
16199 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
16200 }
16201 arg2 = static_cast< int >(val2);
16202 }
16203 if (obj2) {
16204 ecode3 = SWIG_AsVal_int(obj2, &val3);
16205 if (!SWIG_IsOK(ecode3)) {
16206 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
16207 }
16208 arg3 = static_cast< int >(val3);
16209 }
16210 {
16211 PyThreadState* __tstate = wxPyBeginAllowThreads();
16212 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
16213 wxPyEndAllowThreads(__tstate);
16214 if (PyErr_Occurred()) SWIG_fail;
16215 }
16216 {
16217 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16218 }
16219 return resultobj;
16220 fail:
16221 return NULL;
16222 }
16223
16224
16225 SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16226 PyObject *resultobj = 0;
16227 int result;
16228
16229 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
16230 {
16231 PyThreadState* __tstate = wxPyBeginAllowThreads();
16232 result = (int)wxLocale::GetSystemLanguage();
16233 wxPyEndAllowThreads(__tstate);
16234 if (PyErr_Occurred()) SWIG_fail;
16235 }
16236 resultobj = SWIG_From_int(static_cast< int >(result));
16237 return resultobj;
16238 fail:
16239 return NULL;
16240 }
16241
16242
16243 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16244 PyObject *resultobj = 0;
16245 wxFontEncoding result;
16246
16247 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
16248 {
16249 PyThreadState* __tstate = wxPyBeginAllowThreads();
16250 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
16251 wxPyEndAllowThreads(__tstate);
16252 if (PyErr_Occurred()) SWIG_fail;
16253 }
16254 resultobj = SWIG_From_int(static_cast< int >(result));
16255 return resultobj;
16256 fail:
16257 return NULL;
16258 }
16259
16260
16261 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16262 PyObject *resultobj = 0;
16263 wxString result;
16264
16265 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
16266 {
16267 PyThreadState* __tstate = wxPyBeginAllowThreads();
16268 result = wxLocale::GetSystemEncodingName();
16269 wxPyEndAllowThreads(__tstate);
16270 if (PyErr_Occurred()) SWIG_fail;
16271 }
16272 {
16273 #if wxUSE_UNICODE
16274 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16275 #else
16276 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16277 #endif
16278 }
16279 return resultobj;
16280 fail:
16281 return NULL;
16282 }
16283
16284
16285 SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16286 PyObject *resultobj = 0;
16287 wxLocale *arg1 = (wxLocale *) 0 ;
16288 bool result;
16289 void *argp1 = 0 ;
16290 int res1 = 0 ;
16291 PyObject *swig_obj[1] ;
16292
16293 if (!args) SWIG_fail;
16294 swig_obj[0] = args;
16295 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16296 if (!SWIG_IsOK(res1)) {
16297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
16298 }
16299 arg1 = reinterpret_cast< wxLocale * >(argp1);
16300 {
16301 PyThreadState* __tstate = wxPyBeginAllowThreads();
16302 result = (bool)((wxLocale const *)arg1)->IsOk();
16303 wxPyEndAllowThreads(__tstate);
16304 if (PyErr_Occurred()) SWIG_fail;
16305 }
16306 {
16307 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16308 }
16309 return resultobj;
16310 fail:
16311 return NULL;
16312 }
16313
16314
16315 SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16316 PyObject *resultobj = 0;
16317 wxLocale *arg1 = (wxLocale *) 0 ;
16318 wxString result;
16319 void *argp1 = 0 ;
16320 int res1 = 0 ;
16321 PyObject *swig_obj[1] ;
16322
16323 if (!args) SWIG_fail;
16324 swig_obj[0] = args;
16325 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16326 if (!SWIG_IsOK(res1)) {
16327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
16328 }
16329 arg1 = reinterpret_cast< wxLocale * >(argp1);
16330 {
16331 PyThreadState* __tstate = wxPyBeginAllowThreads();
16332 result = ((wxLocale const *)arg1)->GetLocale();
16333 wxPyEndAllowThreads(__tstate);
16334 if (PyErr_Occurred()) SWIG_fail;
16335 }
16336 {
16337 #if wxUSE_UNICODE
16338 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16339 #else
16340 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16341 #endif
16342 }
16343 return resultobj;
16344 fail:
16345 return NULL;
16346 }
16347
16348
16349 SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16350 PyObject *resultobj = 0;
16351 wxLocale *arg1 = (wxLocale *) 0 ;
16352 int result;
16353 void *argp1 = 0 ;
16354 int res1 = 0 ;
16355 PyObject *swig_obj[1] ;
16356
16357 if (!args) SWIG_fail;
16358 swig_obj[0] = args;
16359 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16360 if (!SWIG_IsOK(res1)) {
16361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
16362 }
16363 arg1 = reinterpret_cast< wxLocale * >(argp1);
16364 {
16365 PyThreadState* __tstate = wxPyBeginAllowThreads();
16366 result = (int)((wxLocale const *)arg1)->GetLanguage();
16367 wxPyEndAllowThreads(__tstate);
16368 if (PyErr_Occurred()) SWIG_fail;
16369 }
16370 resultobj = SWIG_From_int(static_cast< int >(result));
16371 return resultobj;
16372 fail:
16373 return NULL;
16374 }
16375
16376
16377 SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16378 PyObject *resultobj = 0;
16379 wxLocale *arg1 = (wxLocale *) 0 ;
16380 wxString result;
16381 void *argp1 = 0 ;
16382 int res1 = 0 ;
16383 PyObject *swig_obj[1] ;
16384
16385 if (!args) SWIG_fail;
16386 swig_obj[0] = args;
16387 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16388 if (!SWIG_IsOK(res1)) {
16389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16390 }
16391 arg1 = reinterpret_cast< wxLocale * >(argp1);
16392 {
16393 PyThreadState* __tstate = wxPyBeginAllowThreads();
16394 result = ((wxLocale const *)arg1)->GetSysName();
16395 wxPyEndAllowThreads(__tstate);
16396 if (PyErr_Occurred()) SWIG_fail;
16397 }
16398 {
16399 #if wxUSE_UNICODE
16400 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16401 #else
16402 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16403 #endif
16404 }
16405 return resultobj;
16406 fail:
16407 return NULL;
16408 }
16409
16410
16411 SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16412 PyObject *resultobj = 0;
16413 wxLocale *arg1 = (wxLocale *) 0 ;
16414 wxString result;
16415 void *argp1 = 0 ;
16416 int res1 = 0 ;
16417 PyObject *swig_obj[1] ;
16418
16419 if (!args) SWIG_fail;
16420 swig_obj[0] = args;
16421 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16422 if (!SWIG_IsOK(res1)) {
16423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16424 }
16425 arg1 = reinterpret_cast< wxLocale * >(argp1);
16426 {
16427 PyThreadState* __tstate = wxPyBeginAllowThreads();
16428 result = ((wxLocale const *)arg1)->GetCanonicalName();
16429 wxPyEndAllowThreads(__tstate);
16430 if (PyErr_Occurred()) SWIG_fail;
16431 }
16432 {
16433 #if wxUSE_UNICODE
16434 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16435 #else
16436 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16437 #endif
16438 }
16439 return resultobj;
16440 fail:
16441 return NULL;
16442 }
16443
16444
16445 SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16446 PyObject *resultobj = 0;
16447 wxString *arg1 = 0 ;
16448 bool temp1 = false ;
16449 PyObject * obj0 = 0 ;
16450 char * kwnames[] = {
16451 (char *) "prefix", NULL
16452 };
16453
16454 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
16455 {
16456 arg1 = wxString_in_helper(obj0);
16457 if (arg1 == NULL) SWIG_fail;
16458 temp1 = true;
16459 }
16460 {
16461 PyThreadState* __tstate = wxPyBeginAllowThreads();
16462 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
16463 wxPyEndAllowThreads(__tstate);
16464 if (PyErr_Occurred()) SWIG_fail;
16465 }
16466 resultobj = SWIG_Py_Void();
16467 {
16468 if (temp1)
16469 delete arg1;
16470 }
16471 return resultobj;
16472 fail:
16473 {
16474 if (temp1)
16475 delete arg1;
16476 }
16477 return NULL;
16478 }
16479
16480
16481 SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16482 PyObject *resultobj = 0;
16483 wxLocale *arg1 = (wxLocale *) 0 ;
16484 wxString *arg2 = 0 ;
16485 bool result;
16486 void *argp1 = 0 ;
16487 int res1 = 0 ;
16488 bool temp2 = false ;
16489 PyObject * obj0 = 0 ;
16490 PyObject * obj1 = 0 ;
16491 char * kwnames[] = {
16492 (char *) "self",(char *) "szDomain", NULL
16493 };
16494
16495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
16496 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16497 if (!SWIG_IsOK(res1)) {
16498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
16499 }
16500 arg1 = reinterpret_cast< wxLocale * >(argp1);
16501 {
16502 arg2 = wxString_in_helper(obj1);
16503 if (arg2 == NULL) SWIG_fail;
16504 temp2 = true;
16505 }
16506 {
16507 PyThreadState* __tstate = wxPyBeginAllowThreads();
16508 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
16509 wxPyEndAllowThreads(__tstate);
16510 if (PyErr_Occurred()) SWIG_fail;
16511 }
16512 {
16513 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16514 }
16515 {
16516 if (temp2)
16517 delete arg2;
16518 }
16519 return resultobj;
16520 fail:
16521 {
16522 if (temp2)
16523 delete arg2;
16524 }
16525 return NULL;
16526 }
16527
16528
16529 SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16530 PyObject *resultobj = 0;
16531 wxLocale *arg1 = (wxLocale *) 0 ;
16532 wxString *arg2 = 0 ;
16533 bool result;
16534 void *argp1 = 0 ;
16535 int res1 = 0 ;
16536 bool temp2 = false ;
16537 PyObject * obj0 = 0 ;
16538 PyObject * obj1 = 0 ;
16539 char * kwnames[] = {
16540 (char *) "self",(char *) "szDomain", NULL
16541 };
16542
16543 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
16544 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16545 if (!SWIG_IsOK(res1)) {
16546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
16547 }
16548 arg1 = reinterpret_cast< wxLocale * >(argp1);
16549 {
16550 arg2 = wxString_in_helper(obj1);
16551 if (arg2 == NULL) SWIG_fail;
16552 temp2 = true;
16553 }
16554 {
16555 PyThreadState* __tstate = wxPyBeginAllowThreads();
16556 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
16557 wxPyEndAllowThreads(__tstate);
16558 if (PyErr_Occurred()) SWIG_fail;
16559 }
16560 {
16561 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16562 }
16563 {
16564 if (temp2)
16565 delete arg2;
16566 }
16567 return resultobj;
16568 fail:
16569 {
16570 if (temp2)
16571 delete arg2;
16572 }
16573 return NULL;
16574 }
16575
16576
16577 SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16578 PyObject *resultobj = 0;
16579 int arg1 ;
16580 wxLanguageInfo *result = 0 ;
16581 int val1 ;
16582 int ecode1 = 0 ;
16583 PyObject * obj0 = 0 ;
16584 char * kwnames[] = {
16585 (char *) "lang", NULL
16586 };
16587
16588 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
16589 ecode1 = SWIG_AsVal_int(obj0, &val1);
16590 if (!SWIG_IsOK(ecode1)) {
16591 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
16592 }
16593 arg1 = static_cast< int >(val1);
16594 {
16595 PyThreadState* __tstate = wxPyBeginAllowThreads();
16596 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
16597 wxPyEndAllowThreads(__tstate);
16598 if (PyErr_Occurred()) SWIG_fail;
16599 }
16600 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16601 return resultobj;
16602 fail:
16603 return NULL;
16604 }
16605
16606
16607 SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16608 PyObject *resultobj = 0;
16609 int arg1 ;
16610 wxString result;
16611 int val1 ;
16612 int ecode1 = 0 ;
16613 PyObject * obj0 = 0 ;
16614 char * kwnames[] = {
16615 (char *) "lang", NULL
16616 };
16617
16618 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
16619 ecode1 = SWIG_AsVal_int(obj0, &val1);
16620 if (!SWIG_IsOK(ecode1)) {
16621 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
16622 }
16623 arg1 = static_cast< int >(val1);
16624 {
16625 PyThreadState* __tstate = wxPyBeginAllowThreads();
16626 result = wxLocale::GetLanguageName(arg1);
16627 wxPyEndAllowThreads(__tstate);
16628 if (PyErr_Occurred()) SWIG_fail;
16629 }
16630 {
16631 #if wxUSE_UNICODE
16632 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16633 #else
16634 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16635 #endif
16636 }
16637 return resultobj;
16638 fail:
16639 return NULL;
16640 }
16641
16642
16643 SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16644 PyObject *resultobj = 0;
16645 wxString *arg1 = 0 ;
16646 wxLanguageInfo *result = 0 ;
16647 bool temp1 = false ;
16648 PyObject * obj0 = 0 ;
16649 char * kwnames[] = {
16650 (char *) "locale", NULL
16651 };
16652
16653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
16654 {
16655 arg1 = wxString_in_helper(obj0);
16656 if (arg1 == NULL) SWIG_fail;
16657 temp1 = true;
16658 }
16659 {
16660 PyThreadState* __tstate = wxPyBeginAllowThreads();
16661 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
16662 wxPyEndAllowThreads(__tstate);
16663 if (PyErr_Occurred()) SWIG_fail;
16664 }
16665 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16666 {
16667 if (temp1)
16668 delete arg1;
16669 }
16670 return resultobj;
16671 fail:
16672 {
16673 if (temp1)
16674 delete arg1;
16675 }
16676 return NULL;
16677 }
16678
16679
16680 SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16681 PyObject *resultobj = 0;
16682 wxLanguageInfo *arg1 = 0 ;
16683 void *argp1 = 0 ;
16684 int res1 = 0 ;
16685 PyObject * obj0 = 0 ;
16686 char * kwnames[] = {
16687 (char *) "info", NULL
16688 };
16689
16690 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
16691 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
16692 if (!SWIG_IsOK(res1)) {
16693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16694 }
16695 if (!argp1) {
16696 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16697 }
16698 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16699 {
16700 PyThreadState* __tstate = wxPyBeginAllowThreads();
16701 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
16702 wxPyEndAllowThreads(__tstate);
16703 if (PyErr_Occurred()) SWIG_fail;
16704 }
16705 resultobj = SWIG_Py_Void();
16706 return resultobj;
16707 fail:
16708 return NULL;
16709 }
16710
16711
16712 SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16713 PyObject *resultobj = 0;
16714 wxLocale *arg1 = (wxLocale *) 0 ;
16715 wxString *arg2 = 0 ;
16716 wxString const &arg3_defvalue = wxPyEmptyString ;
16717 wxString *arg3 = (wxString *) &arg3_defvalue ;
16718 wxString result;
16719 void *argp1 = 0 ;
16720 int res1 = 0 ;
16721 bool temp2 = false ;
16722 bool temp3 = false ;
16723 PyObject * obj0 = 0 ;
16724 PyObject * obj1 = 0 ;
16725 PyObject * obj2 = 0 ;
16726 char * kwnames[] = {
16727 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16728 };
16729
16730 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16731 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16732 if (!SWIG_IsOK(res1)) {
16733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
16734 }
16735 arg1 = reinterpret_cast< wxLocale * >(argp1);
16736 {
16737 arg2 = wxString_in_helper(obj1);
16738 if (arg2 == NULL) SWIG_fail;
16739 temp2 = true;
16740 }
16741 if (obj2) {
16742 {
16743 arg3 = wxString_in_helper(obj2);
16744 if (arg3 == NULL) SWIG_fail;
16745 temp3 = true;
16746 }
16747 }
16748 {
16749 PyThreadState* __tstate = wxPyBeginAllowThreads();
16750 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
16751 wxPyEndAllowThreads(__tstate);
16752 if (PyErr_Occurred()) SWIG_fail;
16753 }
16754 {
16755 #if wxUSE_UNICODE
16756 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16757 #else
16758 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16759 #endif
16760 }
16761 {
16762 if (temp2)
16763 delete arg2;
16764 }
16765 {
16766 if (temp3)
16767 delete arg3;
16768 }
16769 return resultobj;
16770 fail:
16771 {
16772 if (temp2)
16773 delete arg2;
16774 }
16775 {
16776 if (temp3)
16777 delete arg3;
16778 }
16779 return NULL;
16780 }
16781
16782
16783 SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16784 PyObject *resultobj = 0;
16785 wxLocale *arg1 = (wxLocale *) 0 ;
16786 wxString *result = 0 ;
16787 void *argp1 = 0 ;
16788 int res1 = 0 ;
16789 PyObject *swig_obj[1] ;
16790
16791 if (!args) SWIG_fail;
16792 swig_obj[0] = args;
16793 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16794 if (!SWIG_IsOK(res1)) {
16795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16796 }
16797 arg1 = reinterpret_cast< wxLocale * >(argp1);
16798 {
16799 PyThreadState* __tstate = wxPyBeginAllowThreads();
16800 {
16801 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
16802 result = (wxString *) &_result_ref;
16803 }
16804 wxPyEndAllowThreads(__tstate);
16805 if (PyErr_Occurred()) SWIG_fail;
16806 }
16807 {
16808 #if wxUSE_UNICODE
16809 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16810 #else
16811 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16812 #endif
16813 }
16814 return resultobj;
16815 fail:
16816 return NULL;
16817 }
16818
16819
16820 SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16821 PyObject *obj;
16822 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16823 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
16824 return SWIG_Py_Void();
16825 }
16826
16827 SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16828 return SWIG_Python_InitShadowInstance(args);
16829 }
16830
16831 SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16832 PyObject *resultobj = 0;
16833 int arg1 = (int) -1 ;
16834 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16835 wxPyLocale *result = 0 ;
16836 int val1 ;
16837 int ecode1 = 0 ;
16838 int val2 ;
16839 int ecode2 = 0 ;
16840 PyObject * obj0 = 0 ;
16841 PyObject * obj1 = 0 ;
16842 char * kwnames[] = {
16843 (char *) "language",(char *) "flags", NULL
16844 };
16845
16846 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail;
16847 if (obj0) {
16848 ecode1 = SWIG_AsVal_int(obj0, &val1);
16849 if (!SWIG_IsOK(ecode1)) {
16850 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'");
16851 }
16852 arg1 = static_cast< int >(val1);
16853 }
16854 if (obj1) {
16855 ecode2 = SWIG_AsVal_int(obj1, &val2);
16856 if (!SWIG_IsOK(ecode2)) {
16857 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'");
16858 }
16859 arg2 = static_cast< int >(val2);
16860 }
16861 {
16862 PyThreadState* __tstate = wxPyBeginAllowThreads();
16863 result = (wxPyLocale *)new_wxPyLocale(arg1,arg2);
16864 wxPyEndAllowThreads(__tstate);
16865 if (PyErr_Occurred()) SWIG_fail;
16866 }
16867 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 );
16868 return resultobj;
16869 fail:
16870 return NULL;
16871 }
16872
16873
16874 SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16875 PyObject *resultobj = 0;
16876 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16877 void *argp1 = 0 ;
16878 int res1 = 0 ;
16879 PyObject *swig_obj[1] ;
16880
16881 if (!args) SWIG_fail;
16882 swig_obj[0] = args;
16883 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 );
16884 if (!SWIG_IsOK(res1)) {
16885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'");
16886 }
16887 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16888 {
16889 PyThreadState* __tstate = wxPyBeginAllowThreads();
16890 delete arg1;
16891
16892 wxPyEndAllowThreads(__tstate);
16893 if (PyErr_Occurred()) SWIG_fail;
16894 }
16895 resultobj = SWIG_Py_Void();
16896 return resultobj;
16897 fail:
16898 return NULL;
16899 }
16900
16901
16902 SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16903 PyObject *resultobj = 0;
16904 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16905 PyObject *arg2 = (PyObject *) 0 ;
16906 PyObject *arg3 = (PyObject *) 0 ;
16907 void *argp1 = 0 ;
16908 int res1 = 0 ;
16909 PyObject * obj0 = 0 ;
16910 PyObject * obj1 = 0 ;
16911 PyObject * obj2 = 0 ;
16912 char * kwnames[] = {
16913 (char *) "self",(char *) "self",(char *) "_class", NULL
16914 };
16915
16916 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16917 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
16918 if (!SWIG_IsOK(res1)) {
16919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'");
16920 }
16921 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16922 arg2 = obj1;
16923 arg3 = obj2;
16924 {
16925 PyThreadState* __tstate = wxPyBeginAllowThreads();
16926 (arg1)->_setCallbackInfo(arg2,arg3);
16927 wxPyEndAllowThreads(__tstate);
16928 if (PyErr_Occurred()) SWIG_fail;
16929 }
16930 resultobj = SWIG_Py_Void();
16931 return resultobj;
16932 fail:
16933 return NULL;
16934 }
16935
16936
16937 SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16938 PyObject *resultobj = 0;
16939 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16940 wxChar *arg2 = (wxChar *) 0 ;
16941 wxChar *arg3 = (wxChar *) NULL ;
16942 wxChar *result = 0 ;
16943 void *argp1 = 0 ;
16944 int res1 = 0 ;
16945 void *argp2 = 0 ;
16946 int res2 = 0 ;
16947 void *argp3 = 0 ;
16948 int res3 = 0 ;
16949 PyObject * obj0 = 0 ;
16950 PyObject * obj1 = 0 ;
16951 PyObject * obj2 = 0 ;
16952 char * kwnames[] = {
16953 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16954 };
16955
16956 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16957 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
16958 if (!SWIG_IsOK(res1)) {
16959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
16960 }
16961 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16962 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16963 if (!SWIG_IsOK(res2)) {
16964 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetSingularString" "', expected argument " "2"" of type '" "wxChar const *""'");
16965 }
16966 arg2 = reinterpret_cast< wxChar * >(argp2);
16967 if (obj2) {
16968 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16969 if (!SWIG_IsOK(res3)) {
16970 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetSingularString" "', expected argument " "3"" of type '" "wxChar const *""'");
16971 }
16972 arg3 = reinterpret_cast< wxChar * >(argp3);
16973 }
16974 {
16975 PyThreadState* __tstate = wxPyBeginAllowThreads();
16976 result = (wxChar *)((wxPyLocale const *)arg1)->GetSingularString((wxChar const *)arg2,(wxChar const *)arg3);
16977 wxPyEndAllowThreads(__tstate);
16978 if (PyErr_Occurred()) SWIG_fail;
16979 }
16980 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
16981 return resultobj;
16982 fail:
16983 return NULL;
16984 }
16985
16986
16987 SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16988 PyObject *resultobj = 0;
16989 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16990 wxChar *arg2 = (wxChar *) 0 ;
16991 wxChar *arg3 = (wxChar *) 0 ;
16992 size_t arg4 ;
16993 wxChar *arg5 = (wxChar *) NULL ;
16994 wxChar *result = 0 ;
16995 void *argp1 = 0 ;
16996 int res1 = 0 ;
16997 void *argp2 = 0 ;
16998 int res2 = 0 ;
16999 void *argp3 = 0 ;
17000 int res3 = 0 ;
17001 size_t val4 ;
17002 int ecode4 = 0 ;
17003 void *argp5 = 0 ;
17004 int res5 = 0 ;
17005 PyObject * obj0 = 0 ;
17006 PyObject * obj1 = 0 ;
17007 PyObject * obj2 = 0 ;
17008 PyObject * obj3 = 0 ;
17009 PyObject * obj4 = 0 ;
17010 char * kwnames[] = {
17011 (char *) "self",(char *) "szOrigString",(char *) "szOrigString2",(char *) "n",(char *) "szDomain", NULL
17012 };
17013
17014 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17015 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
17016 if (!SWIG_IsOK(res1)) {
17017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
17018 }
17019 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17020 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
17021 if (!SWIG_IsOK(res2)) {
17022 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetPluralString" "', expected argument " "2"" of type '" "wxChar const *""'");
17023 }
17024 arg2 = reinterpret_cast< wxChar * >(argp2);
17025 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
17026 if (!SWIG_IsOK(res3)) {
17027 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetPluralString" "', expected argument " "3"" of type '" "wxChar const *""'");
17028 }
17029 arg3 = reinterpret_cast< wxChar * >(argp3);
17030 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
17031 if (!SWIG_IsOK(ecode4)) {
17032 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'");
17033 }
17034 arg4 = static_cast< size_t >(val4);
17035 if (obj4) {
17036 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxChar, 0 | 0 );
17037 if (!SWIG_IsOK(res5)) {
17038 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PyLocale_GetPluralString" "', expected argument " "5"" of type '" "wxChar const *""'");
17039 }
17040 arg5 = reinterpret_cast< wxChar * >(argp5);
17041 }
17042 {
17043 PyThreadState* __tstate = wxPyBeginAllowThreads();
17044 result = (wxChar *)((wxPyLocale const *)arg1)->GetPluralString((wxChar const *)arg2,(wxChar const *)arg3,arg4,(wxChar const *)arg5);
17045 wxPyEndAllowThreads(__tstate);
17046 if (PyErr_Occurred()) SWIG_fail;
17047 }
17048 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
17049 return resultobj;
17050 fail:
17051 return NULL;
17052 }
17053
17054
17055 SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17056 PyObject *obj;
17057 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17058 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj));
17059 return SWIG_Py_Void();
17060 }
17061
17062 SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17063 return SWIG_Python_InitShadowInstance(args);
17064 }
17065
17066 SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17067 PyObject *resultobj = 0;
17068 wxLocale *result = 0 ;
17069
17070 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
17071 {
17072 PyThreadState* __tstate = wxPyBeginAllowThreads();
17073 result = (wxLocale *)wxGetLocale();
17074 wxPyEndAllowThreads(__tstate);
17075 if (PyErr_Occurred()) SWIG_fail;
17076 }
17077 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
17078 return resultobj;
17079 fail:
17080 return NULL;
17081 }
17082
17083
17084 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17085 PyObject *resultobj = 0;
17086 wxString *arg1 = 0 ;
17087 wxString result;
17088 bool temp1 = false ;
17089
17090 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
17091 {
17092 arg1 = wxString_in_helper(swig_obj[0]);
17093 if (arg1 == NULL) SWIG_fail;
17094 temp1 = true;
17095 }
17096 {
17097 PyThreadState* __tstate = wxPyBeginAllowThreads();
17098 result = wxGetTranslation((wxString const &)*arg1);
17099 wxPyEndAllowThreads(__tstate);
17100 if (PyErr_Occurred()) SWIG_fail;
17101 }
17102 {
17103 #if wxUSE_UNICODE
17104 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17105 #else
17106 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17107 #endif
17108 }
17109 {
17110 if (temp1)
17111 delete arg1;
17112 }
17113 return resultobj;
17114 fail:
17115 {
17116 if (temp1)
17117 delete arg1;
17118 }
17119 return NULL;
17120 }
17121
17122
17123 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17124 PyObject *resultobj = 0;
17125 wxString *arg1 = 0 ;
17126 wxString *arg2 = 0 ;
17127 wxString result;
17128 bool temp1 = false ;
17129 bool temp2 = false ;
17130
17131 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
17132 {
17133 arg1 = wxString_in_helper(swig_obj[0]);
17134 if (arg1 == NULL) SWIG_fail;
17135 temp1 = true;
17136 }
17137 {
17138 arg2 = wxString_in_helper(swig_obj[1]);
17139 if (arg2 == NULL) SWIG_fail;
17140 temp2 = true;
17141 }
17142 {
17143 PyThreadState* __tstate = wxPyBeginAllowThreads();
17144 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2);
17145 wxPyEndAllowThreads(__tstate);
17146 if (PyErr_Occurred()) SWIG_fail;
17147 }
17148 {
17149 #if wxUSE_UNICODE
17150 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17151 #else
17152 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17153 #endif
17154 }
17155 {
17156 if (temp1)
17157 delete arg1;
17158 }
17159 {
17160 if (temp2)
17161 delete arg2;
17162 }
17163 return resultobj;
17164 fail:
17165 {
17166 if (temp1)
17167 delete arg1;
17168 }
17169 {
17170 if (temp2)
17171 delete arg2;
17172 }
17173 return NULL;
17174 }
17175
17176
17177 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17178 PyObject *resultobj = 0;
17179 wxString *arg1 = 0 ;
17180 wxString *arg2 = 0 ;
17181 size_t arg3 ;
17182 wxString result;
17183 bool temp1 = false ;
17184 bool temp2 = false ;
17185 size_t val3 ;
17186 int ecode3 = 0 ;
17187
17188 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
17189 {
17190 arg1 = wxString_in_helper(swig_obj[0]);
17191 if (arg1 == NULL) SWIG_fail;
17192 temp1 = true;
17193 }
17194 {
17195 arg2 = wxString_in_helper(swig_obj[1]);
17196 if (arg2 == NULL) SWIG_fail;
17197 temp2 = true;
17198 }
17199 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17200 if (!SWIG_IsOK(ecode3)) {
17201 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17202 }
17203 arg3 = static_cast< size_t >(val3);
17204 {
17205 PyThreadState* __tstate = wxPyBeginAllowThreads();
17206 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
17207 wxPyEndAllowThreads(__tstate);
17208 if (PyErr_Occurred()) SWIG_fail;
17209 }
17210 {
17211 #if wxUSE_UNICODE
17212 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17213 #else
17214 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17215 #endif
17216 }
17217 {
17218 if (temp1)
17219 delete arg1;
17220 }
17221 {
17222 if (temp2)
17223 delete arg2;
17224 }
17225 return resultobj;
17226 fail:
17227 {
17228 if (temp1)
17229 delete arg1;
17230 }
17231 {
17232 if (temp2)
17233 delete arg2;
17234 }
17235 return NULL;
17236 }
17237
17238
17239 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17240 PyObject *resultobj = 0;
17241 wxString *arg1 = 0 ;
17242 wxString *arg2 = 0 ;
17243 size_t arg3 ;
17244 wxString *arg4 = 0 ;
17245 wxString result;
17246 bool temp1 = false ;
17247 bool temp2 = false ;
17248 size_t val3 ;
17249 int ecode3 = 0 ;
17250 bool temp4 = false ;
17251
17252 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
17253 {
17254 arg1 = wxString_in_helper(swig_obj[0]);
17255 if (arg1 == NULL) SWIG_fail;
17256 temp1 = true;
17257 }
17258 {
17259 arg2 = wxString_in_helper(swig_obj[1]);
17260 if (arg2 == NULL) SWIG_fail;
17261 temp2 = true;
17262 }
17263 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17264 if (!SWIG_IsOK(ecode3)) {
17265 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17266 }
17267 arg3 = static_cast< size_t >(val3);
17268 {
17269 arg4 = wxString_in_helper(swig_obj[3]);
17270 if (arg4 == NULL) SWIG_fail;
17271 temp4 = true;
17272 }
17273 {
17274 PyThreadState* __tstate = wxPyBeginAllowThreads();
17275 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4);
17276 wxPyEndAllowThreads(__tstate);
17277 if (PyErr_Occurred()) SWIG_fail;
17278 }
17279 {
17280 #if wxUSE_UNICODE
17281 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17282 #else
17283 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17284 #endif
17285 }
17286 {
17287 if (temp1)
17288 delete arg1;
17289 }
17290 {
17291 if (temp2)
17292 delete arg2;
17293 }
17294 {
17295 if (temp4)
17296 delete arg4;
17297 }
17298 return resultobj;
17299 fail:
17300 {
17301 if (temp1)
17302 delete arg1;
17303 }
17304 {
17305 if (temp2)
17306 delete arg2;
17307 }
17308 {
17309 if (temp4)
17310 delete arg4;
17311 }
17312 return NULL;
17313 }
17314
17315
17316 SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
17317 int argc;
17318 PyObject *argv[5];
17319
17320 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail;
17321 --argc;
17322 if (argc == 1) {
17323 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
17324 }
17325 if (argc == 2) {
17326 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
17327 }
17328 if (argc == 3) {
17329 return _wrap_GetTranslation__SWIG_2(self, argc, argv);
17330 }
17331 if (argc == 4) {
17332 return _wrap_GetTranslation__SWIG_3(self, argc, argv);
17333 }
17334
17335 fail:
17336 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
17337 return NULL;
17338 }
17339
17340
17341 SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17342 PyObject *resultobj = 0;
17343 wxEncodingConverter *result = 0 ;
17344
17345 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
17346 {
17347 PyThreadState* __tstate = wxPyBeginAllowThreads();
17348 result = (wxEncodingConverter *)new wxEncodingConverter();
17349 wxPyEndAllowThreads(__tstate);
17350 if (PyErr_Occurred()) SWIG_fail;
17351 }
17352 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
17353 return resultobj;
17354 fail:
17355 return NULL;
17356 }
17357
17358
17359 SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17360 PyObject *resultobj = 0;
17361 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17362 void *argp1 = 0 ;
17363 int res1 = 0 ;
17364 PyObject *swig_obj[1] ;
17365
17366 if (!args) SWIG_fail;
17367 swig_obj[0] = args;
17368 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
17369 if (!SWIG_IsOK(res1)) {
17370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17371 }
17372 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17373 {
17374 PyThreadState* __tstate = wxPyBeginAllowThreads();
17375 delete arg1;
17376
17377 wxPyEndAllowThreads(__tstate);
17378 if (PyErr_Occurred()) SWIG_fail;
17379 }
17380 resultobj = SWIG_Py_Void();
17381 return resultobj;
17382 fail:
17383 return NULL;
17384 }
17385
17386
17387 SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17388 PyObject *resultobj = 0;
17389 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17390 wxFontEncoding arg2 ;
17391 wxFontEncoding arg3 ;
17392 int arg4 = (int) wxCONVERT_STRICT ;
17393 bool result;
17394 void *argp1 = 0 ;
17395 int res1 = 0 ;
17396 int val2 ;
17397 int ecode2 = 0 ;
17398 int val3 ;
17399 int ecode3 = 0 ;
17400 int val4 ;
17401 int ecode4 = 0 ;
17402 PyObject * obj0 = 0 ;
17403 PyObject * obj1 = 0 ;
17404 PyObject * obj2 = 0 ;
17405 PyObject * obj3 = 0 ;
17406 char * kwnames[] = {
17407 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
17408 };
17409
17410 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17411 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17412 if (!SWIG_IsOK(res1)) {
17413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17414 }
17415 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17416 ecode2 = SWIG_AsVal_int(obj1, &val2);
17417 if (!SWIG_IsOK(ecode2)) {
17418 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17419 }
17420 arg2 = static_cast< wxFontEncoding >(val2);
17421 ecode3 = SWIG_AsVal_int(obj2, &val3);
17422 if (!SWIG_IsOK(ecode3)) {
17423 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
17424 }
17425 arg3 = static_cast< wxFontEncoding >(val3);
17426 if (obj3) {
17427 ecode4 = SWIG_AsVal_int(obj3, &val4);
17428 if (!SWIG_IsOK(ecode4)) {
17429 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
17430 }
17431 arg4 = static_cast< int >(val4);
17432 }
17433 {
17434 PyThreadState* __tstate = wxPyBeginAllowThreads();
17435 result = (bool)(arg1)->Init(arg2,arg3,arg4);
17436 wxPyEndAllowThreads(__tstate);
17437 if (PyErr_Occurred()) SWIG_fail;
17438 }
17439 {
17440 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17441 }
17442 return resultobj;
17443 fail:
17444 return NULL;
17445 }
17446
17447
17448 SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17449 PyObject *resultobj = 0;
17450 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17451 wxString *arg2 = 0 ;
17452 wxString result;
17453 void *argp1 = 0 ;
17454 int res1 = 0 ;
17455 bool temp2 = false ;
17456 PyObject * obj0 = 0 ;
17457 PyObject * obj1 = 0 ;
17458 char * kwnames[] = {
17459 (char *) "self",(char *) "input", NULL
17460 };
17461
17462 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
17463 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17464 if (!SWIG_IsOK(res1)) {
17465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17466 }
17467 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17468 {
17469 arg2 = wxString_in_helper(obj1);
17470 if (arg2 == NULL) SWIG_fail;
17471 temp2 = true;
17472 }
17473 {
17474 PyThreadState* __tstate = wxPyBeginAllowThreads();
17475 result = (arg1)->Convert((wxString const &)*arg2);
17476 wxPyEndAllowThreads(__tstate);
17477 if (PyErr_Occurred()) SWIG_fail;
17478 }
17479 {
17480 #if wxUSE_UNICODE
17481 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17482 #else
17483 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17484 #endif
17485 }
17486 {
17487 if (temp2)
17488 delete arg2;
17489 }
17490 return resultobj;
17491 fail:
17492 {
17493 if (temp2)
17494 delete arg2;
17495 }
17496 return NULL;
17497 }
17498
17499
17500 SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17501 PyObject *resultobj = 0;
17502 wxFontEncoding arg1 ;
17503 int arg2 = (int) wxPLATFORM_CURRENT ;
17504 wxFontEncodingArray result;
17505 int val1 ;
17506 int ecode1 = 0 ;
17507 int val2 ;
17508 int ecode2 = 0 ;
17509 PyObject * obj0 = 0 ;
17510 PyObject * obj1 = 0 ;
17511 char * kwnames[] = {
17512 (char *) "enc",(char *) "platform", NULL
17513 };
17514
17515 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
17516 ecode1 = SWIG_AsVal_int(obj0, &val1);
17517 if (!SWIG_IsOK(ecode1)) {
17518 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17519 }
17520 arg1 = static_cast< wxFontEncoding >(val1);
17521 if (obj1) {
17522 ecode2 = SWIG_AsVal_int(obj1, &val2);
17523 if (!SWIG_IsOK(ecode2)) {
17524 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
17525 }
17526 arg2 = static_cast< int >(val2);
17527 }
17528 {
17529 PyThreadState* __tstate = wxPyBeginAllowThreads();
17530 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
17531 wxPyEndAllowThreads(__tstate);
17532 if (PyErr_Occurred()) SWIG_fail;
17533 }
17534 {
17535 resultobj = PyList_New(0);
17536 for (size_t i=0; i < (&result)->GetCount(); i++) {
17537 PyObject* number = PyInt_FromLong((&result)->Item(i));
17538 PyList_Append(resultobj, number);
17539 Py_DECREF(number);
17540 }
17541 }
17542 return resultobj;
17543 fail:
17544 return NULL;
17545 }
17546
17547
17548 SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17549 PyObject *resultobj = 0;
17550 wxFontEncoding arg1 ;
17551 wxFontEncodingArray result;
17552 int val1 ;
17553 int ecode1 = 0 ;
17554 PyObject * obj0 = 0 ;
17555 char * kwnames[] = {
17556 (char *) "enc", NULL
17557 };
17558
17559 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
17560 ecode1 = SWIG_AsVal_int(obj0, &val1);
17561 if (!SWIG_IsOK(ecode1)) {
17562 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17563 }
17564 arg1 = static_cast< wxFontEncoding >(val1);
17565 {
17566 PyThreadState* __tstate = wxPyBeginAllowThreads();
17567 result = wxEncodingConverter::GetAllEquivalents(arg1);
17568 wxPyEndAllowThreads(__tstate);
17569 if (PyErr_Occurred()) SWIG_fail;
17570 }
17571 {
17572 resultobj = PyList_New(0);
17573 for (size_t i=0; i < (&result)->GetCount(); i++) {
17574 PyObject* number = PyInt_FromLong((&result)->Item(i));
17575 PyList_Append(resultobj, number);
17576 Py_DECREF(number);
17577 }
17578 }
17579 return resultobj;
17580 fail:
17581 return NULL;
17582 }
17583
17584
17585 SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17586 PyObject *resultobj = 0;
17587 wxFontEncoding arg1 ;
17588 wxFontEncoding arg2 ;
17589 bool result;
17590 int val1 ;
17591 int ecode1 = 0 ;
17592 int val2 ;
17593 int ecode2 = 0 ;
17594 PyObject * obj0 = 0 ;
17595 PyObject * obj1 = 0 ;
17596 char * kwnames[] = {
17597 (char *) "encIn",(char *) "encOut", NULL
17598 };
17599
17600 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
17601 ecode1 = SWIG_AsVal_int(obj0, &val1);
17602 if (!SWIG_IsOK(ecode1)) {
17603 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17604 }
17605 arg1 = static_cast< wxFontEncoding >(val1);
17606 ecode2 = SWIG_AsVal_int(obj1, &val2);
17607 if (!SWIG_IsOK(ecode2)) {
17608 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17609 }
17610 arg2 = static_cast< wxFontEncoding >(val2);
17611 {
17612 PyThreadState* __tstate = wxPyBeginAllowThreads();
17613 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
17614 wxPyEndAllowThreads(__tstate);
17615 if (PyErr_Occurred()) SWIG_fail;
17616 }
17617 {
17618 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17619 }
17620 return resultobj;
17621 fail:
17622 return NULL;
17623 }
17624
17625
17626 SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17627 PyObject *obj;
17628 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17629 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
17630 return SWIG_Py_Void();
17631 }
17632
17633 SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17634 return SWIG_Python_InitShadowInstance(args);
17635 }
17636
17637 SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17638 PyObject *resultobj = 0;
17639 wxDC *arg1 = (wxDC *) 0 ;
17640 void *argp1 = 0 ;
17641 int res1 = 0 ;
17642 PyObject *swig_obj[1] ;
17643
17644 if (!args) SWIG_fail;
17645 swig_obj[0] = args;
17646 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
17647 if (!SWIG_IsOK(res1)) {
17648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
17649 }
17650 arg1 = reinterpret_cast< wxDC * >(argp1);
17651 {
17652 PyThreadState* __tstate = wxPyBeginAllowThreads();
17653 delete arg1;
17654
17655 wxPyEndAllowThreads(__tstate);
17656 if (PyErr_Occurred()) SWIG_fail;
17657 }
17658 resultobj = SWIG_Py_Void();
17659 return resultobj;
17660 fail:
17661 return NULL;
17662 }
17663
17664
17665 SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17666 PyObject *resultobj = 0;
17667 wxDC *arg1 = (wxDC *) 0 ;
17668 int arg2 ;
17669 int arg3 ;
17670 wxColour *arg4 = 0 ;
17671 int arg5 = (int) wxFLOOD_SURFACE ;
17672 bool result;
17673 void *argp1 = 0 ;
17674 int res1 = 0 ;
17675 int val2 ;
17676 int ecode2 = 0 ;
17677 int val3 ;
17678 int ecode3 = 0 ;
17679 wxColour temp4 ;
17680 int val5 ;
17681 int ecode5 = 0 ;
17682 PyObject * obj0 = 0 ;
17683 PyObject * obj1 = 0 ;
17684 PyObject * obj2 = 0 ;
17685 PyObject * obj3 = 0 ;
17686 PyObject * obj4 = 0 ;
17687 char * kwnames[] = {
17688 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
17689 };
17690
17691 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17692 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17693 if (!SWIG_IsOK(res1)) {
17694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
17695 }
17696 arg1 = reinterpret_cast< wxDC * >(argp1);
17697 ecode2 = SWIG_AsVal_int(obj1, &val2);
17698 if (!SWIG_IsOK(ecode2)) {
17699 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
17700 }
17701 arg2 = static_cast< int >(val2);
17702 ecode3 = SWIG_AsVal_int(obj2, &val3);
17703 if (!SWIG_IsOK(ecode3)) {
17704 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
17705 }
17706 arg3 = static_cast< int >(val3);
17707 {
17708 arg4 = &temp4;
17709 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17710 }
17711 if (obj4) {
17712 ecode5 = SWIG_AsVal_int(obj4, &val5);
17713 if (!SWIG_IsOK(ecode5)) {
17714 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
17715 }
17716 arg5 = static_cast< int >(val5);
17717 }
17718 {
17719 PyThreadState* __tstate = wxPyBeginAllowThreads();
17720 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
17721 wxPyEndAllowThreads(__tstate);
17722 if (PyErr_Occurred()) SWIG_fail;
17723 }
17724 {
17725 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17726 }
17727 return resultobj;
17728 fail:
17729 return NULL;
17730 }
17731
17732
17733 SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17734 PyObject *resultobj = 0;
17735 wxDC *arg1 = (wxDC *) 0 ;
17736 wxPoint *arg2 = 0 ;
17737 wxColour *arg3 = 0 ;
17738 int arg4 = (int) wxFLOOD_SURFACE ;
17739 bool result;
17740 void *argp1 = 0 ;
17741 int res1 = 0 ;
17742 wxPoint temp2 ;
17743 wxColour temp3 ;
17744 int val4 ;
17745 int ecode4 = 0 ;
17746 PyObject * obj0 = 0 ;
17747 PyObject * obj1 = 0 ;
17748 PyObject * obj2 = 0 ;
17749 PyObject * obj3 = 0 ;
17750 char * kwnames[] = {
17751 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
17752 };
17753
17754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17756 if (!SWIG_IsOK(res1)) {
17757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17758 }
17759 arg1 = reinterpret_cast< wxDC * >(argp1);
17760 {
17761 arg2 = &temp2;
17762 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17763 }
17764 {
17765 arg3 = &temp3;
17766 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17767 }
17768 if (obj3) {
17769 ecode4 = SWIG_AsVal_int(obj3, &val4);
17770 if (!SWIG_IsOK(ecode4)) {
17771 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
17772 }
17773 arg4 = static_cast< int >(val4);
17774 }
17775 {
17776 PyThreadState* __tstate = wxPyBeginAllowThreads();
17777 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
17778 wxPyEndAllowThreads(__tstate);
17779 if (PyErr_Occurred()) SWIG_fail;
17780 }
17781 {
17782 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17783 }
17784 return resultobj;
17785 fail:
17786 return NULL;
17787 }
17788
17789
17790 SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17791 PyObject *resultobj = 0;
17792 wxDC *arg1 = (wxDC *) 0 ;
17793 wxRect *arg2 = 0 ;
17794 wxColour *arg3 = 0 ;
17795 wxColour *arg4 = 0 ;
17796 wxPoint *arg5 = 0 ;
17797 void *argp1 = 0 ;
17798 int res1 = 0 ;
17799 wxRect temp2 ;
17800 wxColour temp3 ;
17801 wxColour temp4 ;
17802 wxPoint temp5 ;
17803 PyObject * obj0 = 0 ;
17804 PyObject * obj1 = 0 ;
17805 PyObject * obj2 = 0 ;
17806 PyObject * obj3 = 0 ;
17807 PyObject * obj4 = 0 ;
17808 char * kwnames[] = {
17809 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
17810 };
17811
17812 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17813 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17814 if (!SWIG_IsOK(res1)) {
17815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
17816 }
17817 arg1 = reinterpret_cast< wxDC * >(argp1);
17818 {
17819 arg2 = &temp2;
17820 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17821 }
17822 {
17823 arg3 = &temp3;
17824 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17825 }
17826 {
17827 arg4 = &temp4;
17828 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17829 }
17830 {
17831 arg5 = &temp5;
17832 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17833 }
17834 {
17835 PyThreadState* __tstate = wxPyBeginAllowThreads();
17836 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
17837 wxPyEndAllowThreads(__tstate);
17838 if (PyErr_Occurred()) SWIG_fail;
17839 }
17840 resultobj = SWIG_Py_Void();
17841 return resultobj;
17842 fail:
17843 return NULL;
17844 }
17845
17846
17847 SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17848 PyObject *resultobj = 0;
17849 wxDC *arg1 = (wxDC *) 0 ;
17850 wxRect *arg2 = 0 ;
17851 wxColour *arg3 = 0 ;
17852 wxColour *arg4 = 0 ;
17853 wxDirection arg5 = (wxDirection) wxEAST ;
17854 void *argp1 = 0 ;
17855 int res1 = 0 ;
17856 wxRect temp2 ;
17857 wxColour temp3 ;
17858 wxColour temp4 ;
17859 int val5 ;
17860 int ecode5 = 0 ;
17861 PyObject * obj0 = 0 ;
17862 PyObject * obj1 = 0 ;
17863 PyObject * obj2 = 0 ;
17864 PyObject * obj3 = 0 ;
17865 PyObject * obj4 = 0 ;
17866 char * kwnames[] = {
17867 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
17868 };
17869
17870 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17871 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17872 if (!SWIG_IsOK(res1)) {
17873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
17874 }
17875 arg1 = reinterpret_cast< wxDC * >(argp1);
17876 {
17877 arg2 = &temp2;
17878 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17879 }
17880 {
17881 arg3 = &temp3;
17882 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17883 }
17884 {
17885 arg4 = &temp4;
17886 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17887 }
17888 if (obj4) {
17889 ecode5 = SWIG_AsVal_int(obj4, &val5);
17890 if (!SWIG_IsOK(ecode5)) {
17891 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
17892 }
17893 arg5 = static_cast< wxDirection >(val5);
17894 }
17895 {
17896 PyThreadState* __tstate = wxPyBeginAllowThreads();
17897 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
17898 wxPyEndAllowThreads(__tstate);
17899 if (PyErr_Occurred()) SWIG_fail;
17900 }
17901 resultobj = SWIG_Py_Void();
17902 return resultobj;
17903 fail:
17904 return NULL;
17905 }
17906
17907
17908 SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17909 PyObject *resultobj = 0;
17910 wxDC *arg1 = (wxDC *) 0 ;
17911 int arg2 ;
17912 int arg3 ;
17913 wxColour result;
17914 void *argp1 = 0 ;
17915 int res1 = 0 ;
17916 int val2 ;
17917 int ecode2 = 0 ;
17918 int val3 ;
17919 int ecode3 = 0 ;
17920 PyObject * obj0 = 0 ;
17921 PyObject * obj1 = 0 ;
17922 PyObject * obj2 = 0 ;
17923 char * kwnames[] = {
17924 (char *) "self",(char *) "x",(char *) "y", NULL
17925 };
17926
17927 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17928 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17929 if (!SWIG_IsOK(res1)) {
17930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
17931 }
17932 arg1 = reinterpret_cast< wxDC * >(argp1);
17933 ecode2 = SWIG_AsVal_int(obj1, &val2);
17934 if (!SWIG_IsOK(ecode2)) {
17935 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
17936 }
17937 arg2 = static_cast< int >(val2);
17938 ecode3 = SWIG_AsVal_int(obj2, &val3);
17939 if (!SWIG_IsOK(ecode3)) {
17940 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
17941 }
17942 arg3 = static_cast< int >(val3);
17943 {
17944 PyThreadState* __tstate = wxPyBeginAllowThreads();
17945 result = wxDC_GetPixel(arg1,arg2,arg3);
17946 wxPyEndAllowThreads(__tstate);
17947 if (PyErr_Occurred()) SWIG_fail;
17948 }
17949 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17950 return resultobj;
17951 fail:
17952 return NULL;
17953 }
17954
17955
17956 SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17957 PyObject *resultobj = 0;
17958 wxDC *arg1 = (wxDC *) 0 ;
17959 wxPoint *arg2 = 0 ;
17960 wxColour result;
17961 void *argp1 = 0 ;
17962 int res1 = 0 ;
17963 wxPoint temp2 ;
17964 PyObject * obj0 = 0 ;
17965 PyObject * obj1 = 0 ;
17966 char * kwnames[] = {
17967 (char *) "self",(char *) "pt", NULL
17968 };
17969
17970 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
17971 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17972 if (!SWIG_IsOK(res1)) {
17973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17974 }
17975 arg1 = reinterpret_cast< wxDC * >(argp1);
17976 {
17977 arg2 = &temp2;
17978 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17979 }
17980 {
17981 PyThreadState* __tstate = wxPyBeginAllowThreads();
17982 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
17983 wxPyEndAllowThreads(__tstate);
17984 if (PyErr_Occurred()) SWIG_fail;
17985 }
17986 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17987 return resultobj;
17988 fail:
17989 return NULL;
17990 }
17991
17992
17993 SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17994 PyObject *resultobj = 0;
17995 wxDC *arg1 = (wxDC *) 0 ;
17996 int arg2 ;
17997 int arg3 ;
17998 int arg4 ;
17999 int arg5 ;
18000 void *argp1 = 0 ;
18001 int res1 = 0 ;
18002 int val2 ;
18003 int ecode2 = 0 ;
18004 int val3 ;
18005 int ecode3 = 0 ;
18006 int val4 ;
18007 int ecode4 = 0 ;
18008 int val5 ;
18009 int ecode5 = 0 ;
18010 PyObject * obj0 = 0 ;
18011 PyObject * obj1 = 0 ;
18012 PyObject * obj2 = 0 ;
18013 PyObject * obj3 = 0 ;
18014 PyObject * obj4 = 0 ;
18015 char * kwnames[] = {
18016 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
18017 };
18018
18019 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18020 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18021 if (!SWIG_IsOK(res1)) {
18022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
18023 }
18024 arg1 = reinterpret_cast< wxDC * >(argp1);
18025 ecode2 = SWIG_AsVal_int(obj1, &val2);
18026 if (!SWIG_IsOK(ecode2)) {
18027 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
18028 }
18029 arg2 = static_cast< int >(val2);
18030 ecode3 = SWIG_AsVal_int(obj2, &val3);
18031 if (!SWIG_IsOK(ecode3)) {
18032 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
18033 }
18034 arg3 = static_cast< int >(val3);
18035 ecode4 = SWIG_AsVal_int(obj3, &val4);
18036 if (!SWIG_IsOK(ecode4)) {
18037 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
18038 }
18039 arg4 = static_cast< int >(val4);
18040 ecode5 = SWIG_AsVal_int(obj4, &val5);
18041 if (!SWIG_IsOK(ecode5)) {
18042 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
18043 }
18044 arg5 = static_cast< int >(val5);
18045 {
18046 PyThreadState* __tstate = wxPyBeginAllowThreads();
18047 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
18048 wxPyEndAllowThreads(__tstate);
18049 if (PyErr_Occurred()) SWIG_fail;
18050 }
18051 resultobj = SWIG_Py_Void();
18052 return resultobj;
18053 fail:
18054 return NULL;
18055 }
18056
18057
18058 SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18059 PyObject *resultobj = 0;
18060 wxDC *arg1 = (wxDC *) 0 ;
18061 wxPoint *arg2 = 0 ;
18062 wxPoint *arg3 = 0 ;
18063 void *argp1 = 0 ;
18064 int res1 = 0 ;
18065 wxPoint temp2 ;
18066 wxPoint temp3 ;
18067 PyObject * obj0 = 0 ;
18068 PyObject * obj1 = 0 ;
18069 PyObject * obj2 = 0 ;
18070 char * kwnames[] = {
18071 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
18072 };
18073
18074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18075 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18076 if (!SWIG_IsOK(res1)) {
18077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
18078 }
18079 arg1 = reinterpret_cast< wxDC * >(argp1);
18080 {
18081 arg2 = &temp2;
18082 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18083 }
18084 {
18085 arg3 = &temp3;
18086 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18087 }
18088 {
18089 PyThreadState* __tstate = wxPyBeginAllowThreads();
18090 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
18091 wxPyEndAllowThreads(__tstate);
18092 if (PyErr_Occurred()) SWIG_fail;
18093 }
18094 resultobj = SWIG_Py_Void();
18095 return resultobj;
18096 fail:
18097 return NULL;
18098 }
18099
18100
18101 SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18102 PyObject *resultobj = 0;
18103 wxDC *arg1 = (wxDC *) 0 ;
18104 int arg2 ;
18105 int arg3 ;
18106 void *argp1 = 0 ;
18107 int res1 = 0 ;
18108 int val2 ;
18109 int ecode2 = 0 ;
18110 int val3 ;
18111 int ecode3 = 0 ;
18112 PyObject * obj0 = 0 ;
18113 PyObject * obj1 = 0 ;
18114 PyObject * obj2 = 0 ;
18115 char * kwnames[] = {
18116 (char *) "self",(char *) "x",(char *) "y", NULL
18117 };
18118
18119 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18120 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18121 if (!SWIG_IsOK(res1)) {
18122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
18123 }
18124 arg1 = reinterpret_cast< wxDC * >(argp1);
18125 ecode2 = SWIG_AsVal_int(obj1, &val2);
18126 if (!SWIG_IsOK(ecode2)) {
18127 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
18128 }
18129 arg2 = static_cast< int >(val2);
18130 ecode3 = SWIG_AsVal_int(obj2, &val3);
18131 if (!SWIG_IsOK(ecode3)) {
18132 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
18133 }
18134 arg3 = static_cast< int >(val3);
18135 {
18136 PyThreadState* __tstate = wxPyBeginAllowThreads();
18137 (arg1)->CrossHair(arg2,arg3);
18138 wxPyEndAllowThreads(__tstate);
18139 if (PyErr_Occurred()) SWIG_fail;
18140 }
18141 resultobj = SWIG_Py_Void();
18142 return resultobj;
18143 fail:
18144 return NULL;
18145 }
18146
18147
18148 SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18149 PyObject *resultobj = 0;
18150 wxDC *arg1 = (wxDC *) 0 ;
18151 wxPoint *arg2 = 0 ;
18152 void *argp1 = 0 ;
18153 int res1 = 0 ;
18154 wxPoint temp2 ;
18155 PyObject * obj0 = 0 ;
18156 PyObject * obj1 = 0 ;
18157 char * kwnames[] = {
18158 (char *) "self",(char *) "pt", NULL
18159 };
18160
18161 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18162 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18163 if (!SWIG_IsOK(res1)) {
18164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18165 }
18166 arg1 = reinterpret_cast< wxDC * >(argp1);
18167 {
18168 arg2 = &temp2;
18169 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18170 }
18171 {
18172 PyThreadState* __tstate = wxPyBeginAllowThreads();
18173 (arg1)->CrossHair((wxPoint const &)*arg2);
18174 wxPyEndAllowThreads(__tstate);
18175 if (PyErr_Occurred()) SWIG_fail;
18176 }
18177 resultobj = SWIG_Py_Void();
18178 return resultobj;
18179 fail:
18180 return NULL;
18181 }
18182
18183
18184 SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18185 PyObject *resultobj = 0;
18186 wxDC *arg1 = (wxDC *) 0 ;
18187 int arg2 ;
18188 int arg3 ;
18189 int arg4 ;
18190 int arg5 ;
18191 int arg6 ;
18192 int arg7 ;
18193 void *argp1 = 0 ;
18194 int res1 = 0 ;
18195 int val2 ;
18196 int ecode2 = 0 ;
18197 int val3 ;
18198 int ecode3 = 0 ;
18199 int val4 ;
18200 int ecode4 = 0 ;
18201 int val5 ;
18202 int ecode5 = 0 ;
18203 int val6 ;
18204 int ecode6 = 0 ;
18205 int val7 ;
18206 int ecode7 = 0 ;
18207 PyObject * obj0 = 0 ;
18208 PyObject * obj1 = 0 ;
18209 PyObject * obj2 = 0 ;
18210 PyObject * obj3 = 0 ;
18211 PyObject * obj4 = 0 ;
18212 PyObject * obj5 = 0 ;
18213 PyObject * obj6 = 0 ;
18214 char * kwnames[] = {
18215 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
18216 };
18217
18218 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18219 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18220 if (!SWIG_IsOK(res1)) {
18221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
18222 }
18223 arg1 = reinterpret_cast< wxDC * >(argp1);
18224 ecode2 = SWIG_AsVal_int(obj1, &val2);
18225 if (!SWIG_IsOK(ecode2)) {
18226 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
18227 }
18228 arg2 = static_cast< int >(val2);
18229 ecode3 = SWIG_AsVal_int(obj2, &val3);
18230 if (!SWIG_IsOK(ecode3)) {
18231 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
18232 }
18233 arg3 = static_cast< int >(val3);
18234 ecode4 = SWIG_AsVal_int(obj3, &val4);
18235 if (!SWIG_IsOK(ecode4)) {
18236 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
18237 }
18238 arg4 = static_cast< int >(val4);
18239 ecode5 = SWIG_AsVal_int(obj4, &val5);
18240 if (!SWIG_IsOK(ecode5)) {
18241 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
18242 }
18243 arg5 = static_cast< int >(val5);
18244 ecode6 = SWIG_AsVal_int(obj5, &val6);
18245 if (!SWIG_IsOK(ecode6)) {
18246 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
18247 }
18248 arg6 = static_cast< int >(val6);
18249 ecode7 = SWIG_AsVal_int(obj6, &val7);
18250 if (!SWIG_IsOK(ecode7)) {
18251 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
18252 }
18253 arg7 = static_cast< int >(val7);
18254 {
18255 PyThreadState* __tstate = wxPyBeginAllowThreads();
18256 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
18257 wxPyEndAllowThreads(__tstate);
18258 if (PyErr_Occurred()) SWIG_fail;
18259 }
18260 resultobj = SWIG_Py_Void();
18261 return resultobj;
18262 fail:
18263 return NULL;
18264 }
18265
18266
18267 SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18268 PyObject *resultobj = 0;
18269 wxDC *arg1 = (wxDC *) 0 ;
18270 wxPoint *arg2 = 0 ;
18271 wxPoint *arg3 = 0 ;
18272 wxPoint *arg4 = 0 ;
18273 void *argp1 = 0 ;
18274 int res1 = 0 ;
18275 wxPoint temp2 ;
18276 wxPoint temp3 ;
18277 wxPoint temp4 ;
18278 PyObject * obj0 = 0 ;
18279 PyObject * obj1 = 0 ;
18280 PyObject * obj2 = 0 ;
18281 PyObject * obj3 = 0 ;
18282 char * kwnames[] = {
18283 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
18284 };
18285
18286 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18287 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18288 if (!SWIG_IsOK(res1)) {
18289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18290 }
18291 arg1 = reinterpret_cast< wxDC * >(argp1);
18292 {
18293 arg2 = &temp2;
18294 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18295 }
18296 {
18297 arg3 = &temp3;
18298 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18299 }
18300 {
18301 arg4 = &temp4;
18302 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18303 }
18304 {
18305 PyThreadState* __tstate = wxPyBeginAllowThreads();
18306 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
18307 wxPyEndAllowThreads(__tstate);
18308 if (PyErr_Occurred()) SWIG_fail;
18309 }
18310 resultobj = SWIG_Py_Void();
18311 return resultobj;
18312 fail:
18313 return NULL;
18314 }
18315
18316
18317 SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18318 PyObject *resultobj = 0;
18319 wxDC *arg1 = (wxDC *) 0 ;
18320 int arg2 ;
18321 int arg3 ;
18322 int arg4 ;
18323 int arg5 ;
18324 void *argp1 = 0 ;
18325 int res1 = 0 ;
18326 int val2 ;
18327 int ecode2 = 0 ;
18328 int val3 ;
18329 int ecode3 = 0 ;
18330 int val4 ;
18331 int ecode4 = 0 ;
18332 int val5 ;
18333 int ecode5 = 0 ;
18334 PyObject * obj0 = 0 ;
18335 PyObject * obj1 = 0 ;
18336 PyObject * obj2 = 0 ;
18337 PyObject * obj3 = 0 ;
18338 PyObject * obj4 = 0 ;
18339 char * kwnames[] = {
18340 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18341 };
18342
18343 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18344 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18345 if (!SWIG_IsOK(res1)) {
18346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
18347 }
18348 arg1 = reinterpret_cast< wxDC * >(argp1);
18349 ecode2 = SWIG_AsVal_int(obj1, &val2);
18350 if (!SWIG_IsOK(ecode2)) {
18351 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
18352 }
18353 arg2 = static_cast< int >(val2);
18354 ecode3 = SWIG_AsVal_int(obj2, &val3);
18355 if (!SWIG_IsOK(ecode3)) {
18356 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
18357 }
18358 arg3 = static_cast< int >(val3);
18359 ecode4 = SWIG_AsVal_int(obj3, &val4);
18360 if (!SWIG_IsOK(ecode4)) {
18361 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
18362 }
18363 arg4 = static_cast< int >(val4);
18364 ecode5 = SWIG_AsVal_int(obj4, &val5);
18365 if (!SWIG_IsOK(ecode5)) {
18366 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
18367 }
18368 arg5 = static_cast< int >(val5);
18369 {
18370 PyThreadState* __tstate = wxPyBeginAllowThreads();
18371 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
18372 wxPyEndAllowThreads(__tstate);
18373 if (PyErr_Occurred()) SWIG_fail;
18374 }
18375 resultobj = SWIG_Py_Void();
18376 return resultobj;
18377 fail:
18378 return NULL;
18379 }
18380
18381
18382 SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18383 PyObject *resultobj = 0;
18384 wxDC *arg1 = (wxDC *) 0 ;
18385 wxRect *arg2 = 0 ;
18386 void *argp1 = 0 ;
18387 int res1 = 0 ;
18388 wxRect temp2 ;
18389 PyObject * obj0 = 0 ;
18390 PyObject * obj1 = 0 ;
18391 char * kwnames[] = {
18392 (char *) "self",(char *) "rect", NULL
18393 };
18394
18395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
18396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18397 if (!SWIG_IsOK(res1)) {
18398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
18399 }
18400 arg1 = reinterpret_cast< wxDC * >(argp1);
18401 {
18402 arg2 = &temp2;
18403 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18404 }
18405 {
18406 PyThreadState* __tstate = wxPyBeginAllowThreads();
18407 (arg1)->DrawCheckMark((wxRect const &)*arg2);
18408 wxPyEndAllowThreads(__tstate);
18409 if (PyErr_Occurred()) SWIG_fail;
18410 }
18411 resultobj = SWIG_Py_Void();
18412 return resultobj;
18413 fail:
18414 return NULL;
18415 }
18416
18417
18418 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18419 PyObject *resultobj = 0;
18420 wxDC *arg1 = (wxDC *) 0 ;
18421 int arg2 ;
18422 int arg3 ;
18423 int arg4 ;
18424 int arg5 ;
18425 double arg6 ;
18426 double arg7 ;
18427 void *argp1 = 0 ;
18428 int res1 = 0 ;
18429 int val2 ;
18430 int ecode2 = 0 ;
18431 int val3 ;
18432 int ecode3 = 0 ;
18433 int val4 ;
18434 int ecode4 = 0 ;
18435 int val5 ;
18436 int ecode5 = 0 ;
18437 double val6 ;
18438 int ecode6 = 0 ;
18439 double val7 ;
18440 int ecode7 = 0 ;
18441 PyObject * obj0 = 0 ;
18442 PyObject * obj1 = 0 ;
18443 PyObject * obj2 = 0 ;
18444 PyObject * obj3 = 0 ;
18445 PyObject * obj4 = 0 ;
18446 PyObject * obj5 = 0 ;
18447 PyObject * obj6 = 0 ;
18448 char * kwnames[] = {
18449 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
18450 };
18451
18452 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18453 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18454 if (!SWIG_IsOK(res1)) {
18455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
18456 }
18457 arg1 = reinterpret_cast< wxDC * >(argp1);
18458 ecode2 = SWIG_AsVal_int(obj1, &val2);
18459 if (!SWIG_IsOK(ecode2)) {
18460 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
18461 }
18462 arg2 = static_cast< int >(val2);
18463 ecode3 = SWIG_AsVal_int(obj2, &val3);
18464 if (!SWIG_IsOK(ecode3)) {
18465 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
18466 }
18467 arg3 = static_cast< int >(val3);
18468 ecode4 = SWIG_AsVal_int(obj3, &val4);
18469 if (!SWIG_IsOK(ecode4)) {
18470 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
18471 }
18472 arg4 = static_cast< int >(val4);
18473 ecode5 = SWIG_AsVal_int(obj4, &val5);
18474 if (!SWIG_IsOK(ecode5)) {
18475 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
18476 }
18477 arg5 = static_cast< int >(val5);
18478 ecode6 = SWIG_AsVal_double(obj5, &val6);
18479 if (!SWIG_IsOK(ecode6)) {
18480 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
18481 }
18482 arg6 = static_cast< double >(val6);
18483 ecode7 = SWIG_AsVal_double(obj6, &val7);
18484 if (!SWIG_IsOK(ecode7)) {
18485 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
18486 }
18487 arg7 = static_cast< double >(val7);
18488 {
18489 PyThreadState* __tstate = wxPyBeginAllowThreads();
18490 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
18491 wxPyEndAllowThreads(__tstate);
18492 if (PyErr_Occurred()) SWIG_fail;
18493 }
18494 resultobj = SWIG_Py_Void();
18495 return resultobj;
18496 fail:
18497 return NULL;
18498 }
18499
18500
18501 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18502 PyObject *resultobj = 0;
18503 wxDC *arg1 = (wxDC *) 0 ;
18504 wxPoint *arg2 = 0 ;
18505 wxSize *arg3 = 0 ;
18506 double arg4 ;
18507 double arg5 ;
18508 void *argp1 = 0 ;
18509 int res1 = 0 ;
18510 wxPoint temp2 ;
18511 wxSize temp3 ;
18512 double val4 ;
18513 int ecode4 = 0 ;
18514 double val5 ;
18515 int ecode5 = 0 ;
18516 PyObject * obj0 = 0 ;
18517 PyObject * obj1 = 0 ;
18518 PyObject * obj2 = 0 ;
18519 PyObject * obj3 = 0 ;
18520 PyObject * obj4 = 0 ;
18521 char * kwnames[] = {
18522 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
18523 };
18524
18525 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18526 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18527 if (!SWIG_IsOK(res1)) {
18528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18529 }
18530 arg1 = reinterpret_cast< wxDC * >(argp1);
18531 {
18532 arg2 = &temp2;
18533 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18534 }
18535 {
18536 arg3 = &temp3;
18537 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18538 }
18539 ecode4 = SWIG_AsVal_double(obj3, &val4);
18540 if (!SWIG_IsOK(ecode4)) {
18541 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
18542 }
18543 arg4 = static_cast< double >(val4);
18544 ecode5 = SWIG_AsVal_double(obj4, &val5);
18545 if (!SWIG_IsOK(ecode5)) {
18546 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
18547 }
18548 arg5 = static_cast< double >(val5);
18549 {
18550 PyThreadState* __tstate = wxPyBeginAllowThreads();
18551 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
18552 wxPyEndAllowThreads(__tstate);
18553 if (PyErr_Occurred()) SWIG_fail;
18554 }
18555 resultobj = SWIG_Py_Void();
18556 return resultobj;
18557 fail:
18558 return NULL;
18559 }
18560
18561
18562 SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18563 PyObject *resultobj = 0;
18564 wxDC *arg1 = (wxDC *) 0 ;
18565 int arg2 ;
18566 int arg3 ;
18567 void *argp1 = 0 ;
18568 int res1 = 0 ;
18569 int val2 ;
18570 int ecode2 = 0 ;
18571 int val3 ;
18572 int ecode3 = 0 ;
18573 PyObject * obj0 = 0 ;
18574 PyObject * obj1 = 0 ;
18575 PyObject * obj2 = 0 ;
18576 char * kwnames[] = {
18577 (char *) "self",(char *) "x",(char *) "y", NULL
18578 };
18579
18580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18581 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18582 if (!SWIG_IsOK(res1)) {
18583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18584 }
18585 arg1 = reinterpret_cast< wxDC * >(argp1);
18586 ecode2 = SWIG_AsVal_int(obj1, &val2);
18587 if (!SWIG_IsOK(ecode2)) {
18588 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
18589 }
18590 arg2 = static_cast< int >(val2);
18591 ecode3 = SWIG_AsVal_int(obj2, &val3);
18592 if (!SWIG_IsOK(ecode3)) {
18593 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
18594 }
18595 arg3 = static_cast< int >(val3);
18596 {
18597 PyThreadState* __tstate = wxPyBeginAllowThreads();
18598 (arg1)->DrawPoint(arg2,arg3);
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_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18610 PyObject *resultobj = 0;
18611 wxDC *arg1 = (wxDC *) 0 ;
18612 wxPoint *arg2 = 0 ;
18613 void *argp1 = 0 ;
18614 int res1 = 0 ;
18615 wxPoint temp2 ;
18616 PyObject * obj0 = 0 ;
18617 PyObject * obj1 = 0 ;
18618 char * kwnames[] = {
18619 (char *) "self",(char *) "pt", NULL
18620 };
18621
18622 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",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_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18626 }
18627 arg1 = reinterpret_cast< wxDC * >(argp1);
18628 {
18629 arg2 = &temp2;
18630 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18631 }
18632 {
18633 PyThreadState* __tstate = wxPyBeginAllowThreads();
18634 (arg1)->DrawPoint((wxPoint 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_DrawRectangle(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 void *argp1 = 0 ;
18653 int res1 = 0 ;
18654 int val2 ;
18655 int ecode2 = 0 ;
18656 int val3 ;
18657 int ecode3 = 0 ;
18658 int val4 ;
18659 int ecode4 = 0 ;
18660 int val5 ;
18661 int ecode5 = 0 ;
18662 PyObject * obj0 = 0 ;
18663 PyObject * obj1 = 0 ;
18664 PyObject * obj2 = 0 ;
18665 PyObject * obj3 = 0 ;
18666 PyObject * obj4 = 0 ;
18667 char * kwnames[] = {
18668 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18669 };
18670
18671 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18672 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18673 if (!SWIG_IsOK(res1)) {
18674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18675 }
18676 arg1 = reinterpret_cast< wxDC * >(argp1);
18677 ecode2 = SWIG_AsVal_int(obj1, &val2);
18678 if (!SWIG_IsOK(ecode2)) {
18679 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
18680 }
18681 arg2 = static_cast< int >(val2);
18682 ecode3 = SWIG_AsVal_int(obj2, &val3);
18683 if (!SWIG_IsOK(ecode3)) {
18684 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
18685 }
18686 arg3 = static_cast< int >(val3);
18687 ecode4 = SWIG_AsVal_int(obj3, &val4);
18688 if (!SWIG_IsOK(ecode4)) {
18689 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
18690 }
18691 arg4 = static_cast< int >(val4);
18692 ecode5 = SWIG_AsVal_int(obj4, &val5);
18693 if (!SWIG_IsOK(ecode5)) {
18694 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
18695 }
18696 arg5 = static_cast< int >(val5);
18697 {
18698 PyThreadState* __tstate = wxPyBeginAllowThreads();
18699 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
18700 wxPyEndAllowThreads(__tstate);
18701 if (PyErr_Occurred()) SWIG_fail;
18702 }
18703 resultobj = SWIG_Py_Void();
18704 return resultobj;
18705 fail:
18706 return NULL;
18707 }
18708
18709
18710 SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18711 PyObject *resultobj = 0;
18712 wxDC *arg1 = (wxDC *) 0 ;
18713 wxRect *arg2 = 0 ;
18714 void *argp1 = 0 ;
18715 int res1 = 0 ;
18716 wxRect temp2 ;
18717 PyObject * obj0 = 0 ;
18718 PyObject * obj1 = 0 ;
18719 char * kwnames[] = {
18720 (char *) "self",(char *) "rect", NULL
18721 };
18722
18723 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
18724 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18725 if (!SWIG_IsOK(res1)) {
18726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18727 }
18728 arg1 = reinterpret_cast< wxDC * >(argp1);
18729 {
18730 arg2 = &temp2;
18731 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18732 }
18733 {
18734 PyThreadState* __tstate = wxPyBeginAllowThreads();
18735 (arg1)->DrawRectangle((wxRect const &)*arg2);
18736 wxPyEndAllowThreads(__tstate);
18737 if (PyErr_Occurred()) SWIG_fail;
18738 }
18739 resultobj = SWIG_Py_Void();
18740 return resultobj;
18741 fail:
18742 return NULL;
18743 }
18744
18745
18746 SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18747 PyObject *resultobj = 0;
18748 wxDC *arg1 = (wxDC *) 0 ;
18749 wxPoint *arg2 = 0 ;
18750 wxSize *arg3 = 0 ;
18751 void *argp1 = 0 ;
18752 int res1 = 0 ;
18753 wxPoint temp2 ;
18754 wxSize temp3 ;
18755 PyObject * obj0 = 0 ;
18756 PyObject * obj1 = 0 ;
18757 PyObject * obj2 = 0 ;
18758 char * kwnames[] = {
18759 (char *) "self",(char *) "pt",(char *) "sz", NULL
18760 };
18761
18762 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18763 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18764 if (!SWIG_IsOK(res1)) {
18765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18766 }
18767 arg1 = reinterpret_cast< wxDC * >(argp1);
18768 {
18769 arg2 = &temp2;
18770 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18771 }
18772 {
18773 arg3 = &temp3;
18774 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18775 }
18776 {
18777 PyThreadState* __tstate = wxPyBeginAllowThreads();
18778 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
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_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18790 PyObject *resultobj = 0;
18791 wxDC *arg1 = (wxDC *) 0 ;
18792 int arg2 ;
18793 int arg3 ;
18794 int arg4 ;
18795 int arg5 ;
18796 double arg6 ;
18797 void *argp1 = 0 ;
18798 int res1 = 0 ;
18799 int val2 ;
18800 int ecode2 = 0 ;
18801 int val3 ;
18802 int ecode3 = 0 ;
18803 int val4 ;
18804 int ecode4 = 0 ;
18805 int val5 ;
18806 int ecode5 = 0 ;
18807 double val6 ;
18808 int ecode6 = 0 ;
18809 PyObject * obj0 = 0 ;
18810 PyObject * obj1 = 0 ;
18811 PyObject * obj2 = 0 ;
18812 PyObject * obj3 = 0 ;
18813 PyObject * obj4 = 0 ;
18814 PyObject * obj5 = 0 ;
18815 char * kwnames[] = {
18816 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
18817 };
18818
18819 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
18820 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18821 if (!SWIG_IsOK(res1)) {
18822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18823 }
18824 arg1 = reinterpret_cast< wxDC * >(argp1);
18825 ecode2 = SWIG_AsVal_int(obj1, &val2);
18826 if (!SWIG_IsOK(ecode2)) {
18827 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
18828 }
18829 arg2 = static_cast< int >(val2);
18830 ecode3 = SWIG_AsVal_int(obj2, &val3);
18831 if (!SWIG_IsOK(ecode3)) {
18832 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
18833 }
18834 arg3 = static_cast< int >(val3);
18835 ecode4 = SWIG_AsVal_int(obj3, &val4);
18836 if (!SWIG_IsOK(ecode4)) {
18837 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
18838 }
18839 arg4 = static_cast< int >(val4);
18840 ecode5 = SWIG_AsVal_int(obj4, &val5);
18841 if (!SWIG_IsOK(ecode5)) {
18842 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
18843 }
18844 arg5 = static_cast< int >(val5);
18845 ecode6 = SWIG_AsVal_double(obj5, &val6);
18846 if (!SWIG_IsOK(ecode6)) {
18847 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
18848 }
18849 arg6 = static_cast< double >(val6);
18850 {
18851 PyThreadState* __tstate = wxPyBeginAllowThreads();
18852 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
18853 wxPyEndAllowThreads(__tstate);
18854 if (PyErr_Occurred()) SWIG_fail;
18855 }
18856 resultobj = SWIG_Py_Void();
18857 return resultobj;
18858 fail:
18859 return NULL;
18860 }
18861
18862
18863 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18864 PyObject *resultobj = 0;
18865 wxDC *arg1 = (wxDC *) 0 ;
18866 wxRect *arg2 = 0 ;
18867 double arg3 ;
18868 void *argp1 = 0 ;
18869 int res1 = 0 ;
18870 wxRect temp2 ;
18871 double val3 ;
18872 int ecode3 = 0 ;
18873 PyObject * obj0 = 0 ;
18874 PyObject * obj1 = 0 ;
18875 PyObject * obj2 = 0 ;
18876 char * kwnames[] = {
18877 (char *) "self",(char *) "r",(char *) "radius", NULL
18878 };
18879
18880 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18881 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18882 if (!SWIG_IsOK(res1)) {
18883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18884 }
18885 arg1 = reinterpret_cast< wxDC * >(argp1);
18886 {
18887 arg2 = &temp2;
18888 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18889 }
18890 ecode3 = SWIG_AsVal_double(obj2, &val3);
18891 if (!SWIG_IsOK(ecode3)) {
18892 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
18893 }
18894 arg3 = static_cast< double >(val3);
18895 {
18896 PyThreadState* __tstate = wxPyBeginAllowThreads();
18897 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
18898 wxPyEndAllowThreads(__tstate);
18899 if (PyErr_Occurred()) SWIG_fail;
18900 }
18901 resultobj = SWIG_Py_Void();
18902 return resultobj;
18903 fail:
18904 return NULL;
18905 }
18906
18907
18908 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18909 PyObject *resultobj = 0;
18910 wxDC *arg1 = (wxDC *) 0 ;
18911 wxPoint *arg2 = 0 ;
18912 wxSize *arg3 = 0 ;
18913 double arg4 ;
18914 void *argp1 = 0 ;
18915 int res1 = 0 ;
18916 wxPoint temp2 ;
18917 wxSize temp3 ;
18918 double val4 ;
18919 int ecode4 = 0 ;
18920 PyObject * obj0 = 0 ;
18921 PyObject * obj1 = 0 ;
18922 PyObject * obj2 = 0 ;
18923 PyObject * obj3 = 0 ;
18924 char * kwnames[] = {
18925 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
18926 };
18927
18928 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18929 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18930 if (!SWIG_IsOK(res1)) {
18931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18932 }
18933 arg1 = reinterpret_cast< wxDC * >(argp1);
18934 {
18935 arg2 = &temp2;
18936 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18937 }
18938 {
18939 arg3 = &temp3;
18940 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18941 }
18942 ecode4 = SWIG_AsVal_double(obj3, &val4);
18943 if (!SWIG_IsOK(ecode4)) {
18944 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
18945 }
18946 arg4 = static_cast< double >(val4);
18947 {
18948 PyThreadState* __tstate = wxPyBeginAllowThreads();
18949 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
18950 wxPyEndAllowThreads(__tstate);
18951 if (PyErr_Occurred()) SWIG_fail;
18952 }
18953 resultobj = SWIG_Py_Void();
18954 return resultobj;
18955 fail:
18956 return NULL;
18957 }
18958
18959
18960 SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18961 PyObject *resultobj = 0;
18962 wxDC *arg1 = (wxDC *) 0 ;
18963 int arg2 ;
18964 int arg3 ;
18965 int arg4 ;
18966 void *argp1 = 0 ;
18967 int res1 = 0 ;
18968 int val2 ;
18969 int ecode2 = 0 ;
18970 int val3 ;
18971 int ecode3 = 0 ;
18972 int val4 ;
18973 int ecode4 = 0 ;
18974 PyObject * obj0 = 0 ;
18975 PyObject * obj1 = 0 ;
18976 PyObject * obj2 = 0 ;
18977 PyObject * obj3 = 0 ;
18978 char * kwnames[] = {
18979 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
18980 };
18981
18982 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18983 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18984 if (!SWIG_IsOK(res1)) {
18985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
18986 }
18987 arg1 = reinterpret_cast< wxDC * >(argp1);
18988 ecode2 = SWIG_AsVal_int(obj1, &val2);
18989 if (!SWIG_IsOK(ecode2)) {
18990 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
18991 }
18992 arg2 = static_cast< int >(val2);
18993 ecode3 = SWIG_AsVal_int(obj2, &val3);
18994 if (!SWIG_IsOK(ecode3)) {
18995 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
18996 }
18997 arg3 = static_cast< int >(val3);
18998 ecode4 = SWIG_AsVal_int(obj3, &val4);
18999 if (!SWIG_IsOK(ecode4)) {
19000 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
19001 }
19002 arg4 = static_cast< int >(val4);
19003 {
19004 PyThreadState* __tstate = wxPyBeginAllowThreads();
19005 (arg1)->DrawCircle(arg2,arg3,arg4);
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_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19017 PyObject *resultobj = 0;
19018 wxDC *arg1 = (wxDC *) 0 ;
19019 wxPoint *arg2 = 0 ;
19020 int arg3 ;
19021 void *argp1 = 0 ;
19022 int res1 = 0 ;
19023 wxPoint temp2 ;
19024 int val3 ;
19025 int ecode3 = 0 ;
19026 PyObject * obj0 = 0 ;
19027 PyObject * obj1 = 0 ;
19028 PyObject * obj2 = 0 ;
19029 char * kwnames[] = {
19030 (char *) "self",(char *) "pt",(char *) "radius", NULL
19031 };
19032
19033 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19034 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19035 if (!SWIG_IsOK(res1)) {
19036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
19037 }
19038 arg1 = reinterpret_cast< wxDC * >(argp1);
19039 {
19040 arg2 = &temp2;
19041 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19042 }
19043 ecode3 = SWIG_AsVal_int(obj2, &val3);
19044 if (!SWIG_IsOK(ecode3)) {
19045 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
19046 }
19047 arg3 = static_cast< int >(val3);
19048 {
19049 PyThreadState* __tstate = wxPyBeginAllowThreads();
19050 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
19051 wxPyEndAllowThreads(__tstate);
19052 if (PyErr_Occurred()) SWIG_fail;
19053 }
19054 resultobj = SWIG_Py_Void();
19055 return resultobj;
19056 fail:
19057 return NULL;
19058 }
19059
19060
19061 SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19062 PyObject *resultobj = 0;
19063 wxDC *arg1 = (wxDC *) 0 ;
19064 int arg2 ;
19065 int arg3 ;
19066 int arg4 ;
19067 int arg5 ;
19068 void *argp1 = 0 ;
19069 int res1 = 0 ;
19070 int val2 ;
19071 int ecode2 = 0 ;
19072 int val3 ;
19073 int ecode3 = 0 ;
19074 int val4 ;
19075 int ecode4 = 0 ;
19076 int val5 ;
19077 int ecode5 = 0 ;
19078 PyObject * obj0 = 0 ;
19079 PyObject * obj1 = 0 ;
19080 PyObject * obj2 = 0 ;
19081 PyObject * obj3 = 0 ;
19082 PyObject * obj4 = 0 ;
19083 char * kwnames[] = {
19084 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19085 };
19086
19087 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19088 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19089 if (!SWIG_IsOK(res1)) {
19090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
19091 }
19092 arg1 = reinterpret_cast< wxDC * >(argp1);
19093 ecode2 = SWIG_AsVal_int(obj1, &val2);
19094 if (!SWIG_IsOK(ecode2)) {
19095 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
19096 }
19097 arg2 = static_cast< int >(val2);
19098 ecode3 = SWIG_AsVal_int(obj2, &val3);
19099 if (!SWIG_IsOK(ecode3)) {
19100 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
19101 }
19102 arg3 = static_cast< int >(val3);
19103 ecode4 = SWIG_AsVal_int(obj3, &val4);
19104 if (!SWIG_IsOK(ecode4)) {
19105 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
19106 }
19107 arg4 = static_cast< int >(val4);
19108 ecode5 = SWIG_AsVal_int(obj4, &val5);
19109 if (!SWIG_IsOK(ecode5)) {
19110 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
19111 }
19112 arg5 = static_cast< int >(val5);
19113 {
19114 PyThreadState* __tstate = wxPyBeginAllowThreads();
19115 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
19116 wxPyEndAllowThreads(__tstate);
19117 if (PyErr_Occurred()) SWIG_fail;
19118 }
19119 resultobj = SWIG_Py_Void();
19120 return resultobj;
19121 fail:
19122 return NULL;
19123 }
19124
19125
19126 SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19127 PyObject *resultobj = 0;
19128 wxDC *arg1 = (wxDC *) 0 ;
19129 wxRect *arg2 = 0 ;
19130 void *argp1 = 0 ;
19131 int res1 = 0 ;
19132 wxRect temp2 ;
19133 PyObject * obj0 = 0 ;
19134 PyObject * obj1 = 0 ;
19135 char * kwnames[] = {
19136 (char *) "self",(char *) "rect", NULL
19137 };
19138
19139 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
19140 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19141 if (!SWIG_IsOK(res1)) {
19142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
19143 }
19144 arg1 = reinterpret_cast< wxDC * >(argp1);
19145 {
19146 arg2 = &temp2;
19147 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19148 }
19149 {
19150 PyThreadState* __tstate = wxPyBeginAllowThreads();
19151 (arg1)->DrawEllipse((wxRect const &)*arg2);
19152 wxPyEndAllowThreads(__tstate);
19153 if (PyErr_Occurred()) SWIG_fail;
19154 }
19155 resultobj = SWIG_Py_Void();
19156 return resultobj;
19157 fail:
19158 return NULL;
19159 }
19160
19161
19162 SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19163 PyObject *resultobj = 0;
19164 wxDC *arg1 = (wxDC *) 0 ;
19165 wxPoint *arg2 = 0 ;
19166 wxSize *arg3 = 0 ;
19167 void *argp1 = 0 ;
19168 int res1 = 0 ;
19169 wxPoint temp2 ;
19170 wxSize temp3 ;
19171 PyObject * obj0 = 0 ;
19172 PyObject * obj1 = 0 ;
19173 PyObject * obj2 = 0 ;
19174 char * kwnames[] = {
19175 (char *) "self",(char *) "pt",(char *) "sz", NULL
19176 };
19177
19178 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19179 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19180 if (!SWIG_IsOK(res1)) {
19181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19182 }
19183 arg1 = reinterpret_cast< wxDC * >(argp1);
19184 {
19185 arg2 = &temp2;
19186 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19187 }
19188 {
19189 arg3 = &temp3;
19190 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19191 }
19192 {
19193 PyThreadState* __tstate = wxPyBeginAllowThreads();
19194 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
19195 wxPyEndAllowThreads(__tstate);
19196 if (PyErr_Occurred()) SWIG_fail;
19197 }
19198 resultobj = SWIG_Py_Void();
19199 return resultobj;
19200 fail:
19201 return NULL;
19202 }
19203
19204
19205 SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19206 PyObject *resultobj = 0;
19207 wxDC *arg1 = (wxDC *) 0 ;
19208 wxIcon *arg2 = 0 ;
19209 int arg3 ;
19210 int arg4 ;
19211 void *argp1 = 0 ;
19212 int res1 = 0 ;
19213 void *argp2 = 0 ;
19214 int res2 = 0 ;
19215 int val3 ;
19216 int ecode3 = 0 ;
19217 int val4 ;
19218 int ecode4 = 0 ;
19219 PyObject * obj0 = 0 ;
19220 PyObject * obj1 = 0 ;
19221 PyObject * obj2 = 0 ;
19222 PyObject * obj3 = 0 ;
19223 char * kwnames[] = {
19224 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
19225 };
19226
19227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19228 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19229 if (!SWIG_IsOK(res1)) {
19230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
19231 }
19232 arg1 = reinterpret_cast< wxDC * >(argp1);
19233 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19234 if (!SWIG_IsOK(res2)) {
19235 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19236 }
19237 if (!argp2) {
19238 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19239 }
19240 arg2 = reinterpret_cast< wxIcon * >(argp2);
19241 ecode3 = SWIG_AsVal_int(obj2, &val3);
19242 if (!SWIG_IsOK(ecode3)) {
19243 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
19244 }
19245 arg3 = static_cast< int >(val3);
19246 ecode4 = SWIG_AsVal_int(obj3, &val4);
19247 if (!SWIG_IsOK(ecode4)) {
19248 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
19249 }
19250 arg4 = static_cast< int >(val4);
19251 {
19252 PyThreadState* __tstate = wxPyBeginAllowThreads();
19253 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
19254 wxPyEndAllowThreads(__tstate);
19255 if (PyErr_Occurred()) SWIG_fail;
19256 }
19257 resultobj = SWIG_Py_Void();
19258 return resultobj;
19259 fail:
19260 return NULL;
19261 }
19262
19263
19264 SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19265 PyObject *resultobj = 0;
19266 wxDC *arg1 = (wxDC *) 0 ;
19267 wxIcon *arg2 = 0 ;
19268 wxPoint *arg3 = 0 ;
19269 void *argp1 = 0 ;
19270 int res1 = 0 ;
19271 void *argp2 = 0 ;
19272 int res2 = 0 ;
19273 wxPoint temp3 ;
19274 PyObject * obj0 = 0 ;
19275 PyObject * obj1 = 0 ;
19276 PyObject * obj2 = 0 ;
19277 char * kwnames[] = {
19278 (char *) "self",(char *) "icon",(char *) "pt", NULL
19279 };
19280
19281 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19282 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19283 if (!SWIG_IsOK(res1)) {
19284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19285 }
19286 arg1 = reinterpret_cast< wxDC * >(argp1);
19287 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19288 if (!SWIG_IsOK(res2)) {
19289 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19290 }
19291 if (!argp2) {
19292 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19293 }
19294 arg2 = reinterpret_cast< wxIcon * >(argp2);
19295 {
19296 arg3 = &temp3;
19297 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19298 }
19299 {
19300 PyThreadState* __tstate = wxPyBeginAllowThreads();
19301 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
19302 wxPyEndAllowThreads(__tstate);
19303 if (PyErr_Occurred()) SWIG_fail;
19304 }
19305 resultobj = SWIG_Py_Void();
19306 return resultobj;
19307 fail:
19308 return NULL;
19309 }
19310
19311
19312 SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19313 PyObject *resultobj = 0;
19314 wxDC *arg1 = (wxDC *) 0 ;
19315 wxBitmap *arg2 = 0 ;
19316 int arg3 ;
19317 int arg4 ;
19318 bool arg5 = (bool) false ;
19319 void *argp1 = 0 ;
19320 int res1 = 0 ;
19321 void *argp2 = 0 ;
19322 int res2 = 0 ;
19323 int val3 ;
19324 int ecode3 = 0 ;
19325 int val4 ;
19326 int ecode4 = 0 ;
19327 bool val5 ;
19328 int ecode5 = 0 ;
19329 PyObject * obj0 = 0 ;
19330 PyObject * obj1 = 0 ;
19331 PyObject * obj2 = 0 ;
19332 PyObject * obj3 = 0 ;
19333 PyObject * obj4 = 0 ;
19334 char * kwnames[] = {
19335 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
19336 };
19337
19338 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19339 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19340 if (!SWIG_IsOK(res1)) {
19341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
19342 }
19343 arg1 = reinterpret_cast< wxDC * >(argp1);
19344 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19345 if (!SWIG_IsOK(res2)) {
19346 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19347 }
19348 if (!argp2) {
19349 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19350 }
19351 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19352 ecode3 = SWIG_AsVal_int(obj2, &val3);
19353 if (!SWIG_IsOK(ecode3)) {
19354 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
19355 }
19356 arg3 = static_cast< int >(val3);
19357 ecode4 = SWIG_AsVal_int(obj3, &val4);
19358 if (!SWIG_IsOK(ecode4)) {
19359 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
19360 }
19361 arg4 = static_cast< int >(val4);
19362 if (obj4) {
19363 ecode5 = SWIG_AsVal_bool(obj4, &val5);
19364 if (!SWIG_IsOK(ecode5)) {
19365 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
19366 }
19367 arg5 = static_cast< bool >(val5);
19368 }
19369 {
19370 PyThreadState* __tstate = wxPyBeginAllowThreads();
19371 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
19372 wxPyEndAllowThreads(__tstate);
19373 if (PyErr_Occurred()) SWIG_fail;
19374 }
19375 resultobj = SWIG_Py_Void();
19376 return resultobj;
19377 fail:
19378 return NULL;
19379 }
19380
19381
19382 SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19383 PyObject *resultobj = 0;
19384 wxDC *arg1 = (wxDC *) 0 ;
19385 wxBitmap *arg2 = 0 ;
19386 wxPoint *arg3 = 0 ;
19387 bool arg4 = (bool) false ;
19388 void *argp1 = 0 ;
19389 int res1 = 0 ;
19390 void *argp2 = 0 ;
19391 int res2 = 0 ;
19392 wxPoint temp3 ;
19393 bool val4 ;
19394 int ecode4 = 0 ;
19395 PyObject * obj0 = 0 ;
19396 PyObject * obj1 = 0 ;
19397 PyObject * obj2 = 0 ;
19398 PyObject * obj3 = 0 ;
19399 char * kwnames[] = {
19400 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
19401 };
19402
19403 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19404 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19405 if (!SWIG_IsOK(res1)) {
19406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19407 }
19408 arg1 = reinterpret_cast< wxDC * >(argp1);
19409 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19410 if (!SWIG_IsOK(res2)) {
19411 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19412 }
19413 if (!argp2) {
19414 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19415 }
19416 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19417 {
19418 arg3 = &temp3;
19419 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19420 }
19421 if (obj3) {
19422 ecode4 = SWIG_AsVal_bool(obj3, &val4);
19423 if (!SWIG_IsOK(ecode4)) {
19424 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
19425 }
19426 arg4 = static_cast< bool >(val4);
19427 }
19428 {
19429 PyThreadState* __tstate = wxPyBeginAllowThreads();
19430 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
19431 wxPyEndAllowThreads(__tstate);
19432 if (PyErr_Occurred()) SWIG_fail;
19433 }
19434 resultobj = SWIG_Py_Void();
19435 return resultobj;
19436 fail:
19437 return NULL;
19438 }
19439
19440
19441 SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19442 PyObject *resultobj = 0;
19443 wxDC *arg1 = (wxDC *) 0 ;
19444 wxString *arg2 = 0 ;
19445 int arg3 ;
19446 int arg4 ;
19447 void *argp1 = 0 ;
19448 int res1 = 0 ;
19449 bool temp2 = false ;
19450 int val3 ;
19451 int ecode3 = 0 ;
19452 int val4 ;
19453 int ecode4 = 0 ;
19454 PyObject * obj0 = 0 ;
19455 PyObject * obj1 = 0 ;
19456 PyObject * obj2 = 0 ;
19457 PyObject * obj3 = 0 ;
19458 char * kwnames[] = {
19459 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
19460 };
19461
19462 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19463 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19464 if (!SWIG_IsOK(res1)) {
19465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
19466 }
19467 arg1 = reinterpret_cast< wxDC * >(argp1);
19468 {
19469 arg2 = wxString_in_helper(obj1);
19470 if (arg2 == NULL) SWIG_fail;
19471 temp2 = true;
19472 }
19473 ecode3 = SWIG_AsVal_int(obj2, &val3);
19474 if (!SWIG_IsOK(ecode3)) {
19475 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
19476 }
19477 arg3 = static_cast< int >(val3);
19478 ecode4 = SWIG_AsVal_int(obj3, &val4);
19479 if (!SWIG_IsOK(ecode4)) {
19480 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
19481 }
19482 arg4 = static_cast< int >(val4);
19483 {
19484 PyThreadState* __tstate = wxPyBeginAllowThreads();
19485 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
19486 wxPyEndAllowThreads(__tstate);
19487 if (PyErr_Occurred()) SWIG_fail;
19488 }
19489 resultobj = SWIG_Py_Void();
19490 {
19491 if (temp2)
19492 delete arg2;
19493 }
19494 return resultobj;
19495 fail:
19496 {
19497 if (temp2)
19498 delete arg2;
19499 }
19500 return NULL;
19501 }
19502
19503
19504 SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19505 PyObject *resultobj = 0;
19506 wxDC *arg1 = (wxDC *) 0 ;
19507 wxString *arg2 = 0 ;
19508 wxPoint *arg3 = 0 ;
19509 void *argp1 = 0 ;
19510 int res1 = 0 ;
19511 bool temp2 = false ;
19512 wxPoint temp3 ;
19513 PyObject * obj0 = 0 ;
19514 PyObject * obj1 = 0 ;
19515 PyObject * obj2 = 0 ;
19516 char * kwnames[] = {
19517 (char *) "self",(char *) "text",(char *) "pt", NULL
19518 };
19519
19520 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19521 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19522 if (!SWIG_IsOK(res1)) {
19523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19524 }
19525 arg1 = reinterpret_cast< wxDC * >(argp1);
19526 {
19527 arg2 = wxString_in_helper(obj1);
19528 if (arg2 == NULL) SWIG_fail;
19529 temp2 = true;
19530 }
19531 {
19532 arg3 = &temp3;
19533 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19534 }
19535 {
19536 PyThreadState* __tstate = wxPyBeginAllowThreads();
19537 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
19538 wxPyEndAllowThreads(__tstate);
19539 if (PyErr_Occurred()) SWIG_fail;
19540 }
19541 resultobj = SWIG_Py_Void();
19542 {
19543 if (temp2)
19544 delete arg2;
19545 }
19546 return resultobj;
19547 fail:
19548 {
19549 if (temp2)
19550 delete arg2;
19551 }
19552 return NULL;
19553 }
19554
19555
19556 SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19557 PyObject *resultobj = 0;
19558 wxDC *arg1 = (wxDC *) 0 ;
19559 wxString *arg2 = 0 ;
19560 int arg3 ;
19561 int arg4 ;
19562 double arg5 ;
19563 void *argp1 = 0 ;
19564 int res1 = 0 ;
19565 bool temp2 = false ;
19566 int val3 ;
19567 int ecode3 = 0 ;
19568 int val4 ;
19569 int ecode4 = 0 ;
19570 double val5 ;
19571 int ecode5 = 0 ;
19572 PyObject * obj0 = 0 ;
19573 PyObject * obj1 = 0 ;
19574 PyObject * obj2 = 0 ;
19575 PyObject * obj3 = 0 ;
19576 PyObject * obj4 = 0 ;
19577 char * kwnames[] = {
19578 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
19579 };
19580
19581 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19582 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19583 if (!SWIG_IsOK(res1)) {
19584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
19585 }
19586 arg1 = reinterpret_cast< wxDC * >(argp1);
19587 {
19588 arg2 = wxString_in_helper(obj1);
19589 if (arg2 == NULL) SWIG_fail;
19590 temp2 = true;
19591 }
19592 ecode3 = SWIG_AsVal_int(obj2, &val3);
19593 if (!SWIG_IsOK(ecode3)) {
19594 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
19595 }
19596 arg3 = static_cast< int >(val3);
19597 ecode4 = SWIG_AsVal_int(obj3, &val4);
19598 if (!SWIG_IsOK(ecode4)) {
19599 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
19600 }
19601 arg4 = static_cast< int >(val4);
19602 ecode5 = SWIG_AsVal_double(obj4, &val5);
19603 if (!SWIG_IsOK(ecode5)) {
19604 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
19605 }
19606 arg5 = static_cast< double >(val5);
19607 {
19608 PyThreadState* __tstate = wxPyBeginAllowThreads();
19609 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
19610 wxPyEndAllowThreads(__tstate);
19611 if (PyErr_Occurred()) SWIG_fail;
19612 }
19613 resultobj = SWIG_Py_Void();
19614 {
19615 if (temp2)
19616 delete arg2;
19617 }
19618 return resultobj;
19619 fail:
19620 {
19621 if (temp2)
19622 delete arg2;
19623 }
19624 return NULL;
19625 }
19626
19627
19628 SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19629 PyObject *resultobj = 0;
19630 wxDC *arg1 = (wxDC *) 0 ;
19631 wxString *arg2 = 0 ;
19632 wxPoint *arg3 = 0 ;
19633 double arg4 ;
19634 void *argp1 = 0 ;
19635 int res1 = 0 ;
19636 bool temp2 = false ;
19637 wxPoint temp3 ;
19638 double val4 ;
19639 int ecode4 = 0 ;
19640 PyObject * obj0 = 0 ;
19641 PyObject * obj1 = 0 ;
19642 PyObject * obj2 = 0 ;
19643 PyObject * obj3 = 0 ;
19644 char * kwnames[] = {
19645 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
19646 };
19647
19648 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19649 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19650 if (!SWIG_IsOK(res1)) {
19651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19652 }
19653 arg1 = reinterpret_cast< wxDC * >(argp1);
19654 {
19655 arg2 = wxString_in_helper(obj1);
19656 if (arg2 == NULL) SWIG_fail;
19657 temp2 = true;
19658 }
19659 {
19660 arg3 = &temp3;
19661 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19662 }
19663 ecode4 = SWIG_AsVal_double(obj3, &val4);
19664 if (!SWIG_IsOK(ecode4)) {
19665 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
19666 }
19667 arg4 = static_cast< double >(val4);
19668 {
19669 PyThreadState* __tstate = wxPyBeginAllowThreads();
19670 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
19671 wxPyEndAllowThreads(__tstate);
19672 if (PyErr_Occurred()) SWIG_fail;
19673 }
19674 resultobj = SWIG_Py_Void();
19675 {
19676 if (temp2)
19677 delete arg2;
19678 }
19679 return resultobj;
19680 fail:
19681 {
19682 if (temp2)
19683 delete arg2;
19684 }
19685 return NULL;
19686 }
19687
19688
19689 SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19690 PyObject *resultobj = 0;
19691 wxDC *arg1 = (wxDC *) 0 ;
19692 int arg2 ;
19693 int arg3 ;
19694 int arg4 ;
19695 int arg5 ;
19696 wxDC *arg6 = (wxDC *) 0 ;
19697 int arg7 ;
19698 int arg8 ;
19699 int arg9 = (int) wxCOPY ;
19700 bool arg10 = (bool) false ;
19701 int arg11 = (int) -1 ;
19702 int arg12 = (int) -1 ;
19703 bool result;
19704 void *argp1 = 0 ;
19705 int res1 = 0 ;
19706 int val2 ;
19707 int ecode2 = 0 ;
19708 int val3 ;
19709 int ecode3 = 0 ;
19710 int val4 ;
19711 int ecode4 = 0 ;
19712 int val5 ;
19713 int ecode5 = 0 ;
19714 void *argp6 = 0 ;
19715 int res6 = 0 ;
19716 int val7 ;
19717 int ecode7 = 0 ;
19718 int val8 ;
19719 int ecode8 = 0 ;
19720 int val9 ;
19721 int ecode9 = 0 ;
19722 bool val10 ;
19723 int ecode10 = 0 ;
19724 int val11 ;
19725 int ecode11 = 0 ;
19726 int val12 ;
19727 int ecode12 = 0 ;
19728 PyObject * obj0 = 0 ;
19729 PyObject * obj1 = 0 ;
19730 PyObject * obj2 = 0 ;
19731 PyObject * obj3 = 0 ;
19732 PyObject * obj4 = 0 ;
19733 PyObject * obj5 = 0 ;
19734 PyObject * obj6 = 0 ;
19735 PyObject * obj7 = 0 ;
19736 PyObject * obj8 = 0 ;
19737 PyObject * obj9 = 0 ;
19738 PyObject * obj10 = 0 ;
19739 PyObject * obj11 = 0 ;
19740 char * kwnames[] = {
19741 (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
19742 };
19743
19744 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;
19745 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19746 if (!SWIG_IsOK(res1)) {
19747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
19748 }
19749 arg1 = reinterpret_cast< wxDC * >(argp1);
19750 ecode2 = SWIG_AsVal_int(obj1, &val2);
19751 if (!SWIG_IsOK(ecode2)) {
19752 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
19753 }
19754 arg2 = static_cast< int >(val2);
19755 ecode3 = SWIG_AsVal_int(obj2, &val3);
19756 if (!SWIG_IsOK(ecode3)) {
19757 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
19758 }
19759 arg3 = static_cast< int >(val3);
19760 ecode4 = SWIG_AsVal_int(obj3, &val4);
19761 if (!SWIG_IsOK(ecode4)) {
19762 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
19763 }
19764 arg4 = static_cast< int >(val4);
19765 ecode5 = SWIG_AsVal_int(obj4, &val5);
19766 if (!SWIG_IsOK(ecode5)) {
19767 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
19768 }
19769 arg5 = static_cast< int >(val5);
19770 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
19771 if (!SWIG_IsOK(res6)) {
19772 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
19773 }
19774 arg6 = reinterpret_cast< wxDC * >(argp6);
19775 ecode7 = SWIG_AsVal_int(obj6, &val7);
19776 if (!SWIG_IsOK(ecode7)) {
19777 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
19778 }
19779 arg7 = static_cast< int >(val7);
19780 ecode8 = SWIG_AsVal_int(obj7, &val8);
19781 if (!SWIG_IsOK(ecode8)) {
19782 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
19783 }
19784 arg8 = static_cast< int >(val8);
19785 if (obj8) {
19786 ecode9 = SWIG_AsVal_int(obj8, &val9);
19787 if (!SWIG_IsOK(ecode9)) {
19788 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
19789 }
19790 arg9 = static_cast< int >(val9);
19791 }
19792 if (obj9) {
19793 ecode10 = SWIG_AsVal_bool(obj9, &val10);
19794 if (!SWIG_IsOK(ecode10)) {
19795 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
19796 }
19797 arg10 = static_cast< bool >(val10);
19798 }
19799 if (obj10) {
19800 ecode11 = SWIG_AsVal_int(obj10, &val11);
19801 if (!SWIG_IsOK(ecode11)) {
19802 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
19803 }
19804 arg11 = static_cast< int >(val11);
19805 }
19806 if (obj11) {
19807 ecode12 = SWIG_AsVal_int(obj11, &val12);
19808 if (!SWIG_IsOK(ecode12)) {
19809 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
19810 }
19811 arg12 = static_cast< int >(val12);
19812 }
19813 {
19814 PyThreadState* __tstate = wxPyBeginAllowThreads();
19815 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
19816 wxPyEndAllowThreads(__tstate);
19817 if (PyErr_Occurred()) SWIG_fail;
19818 }
19819 {
19820 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19821 }
19822 return resultobj;
19823 fail:
19824 return NULL;
19825 }
19826
19827
19828 SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19829 PyObject *resultobj = 0;
19830 wxDC *arg1 = (wxDC *) 0 ;
19831 wxPoint *arg2 = 0 ;
19832 wxSize *arg3 = 0 ;
19833 wxDC *arg4 = (wxDC *) 0 ;
19834 wxPoint *arg5 = 0 ;
19835 int arg6 = (int) wxCOPY ;
19836 bool arg7 = (bool) false ;
19837 wxPoint const &arg8_defvalue = wxDefaultPosition ;
19838 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
19839 bool result;
19840 void *argp1 = 0 ;
19841 int res1 = 0 ;
19842 wxPoint temp2 ;
19843 wxSize temp3 ;
19844 void *argp4 = 0 ;
19845 int res4 = 0 ;
19846 wxPoint temp5 ;
19847 int val6 ;
19848 int ecode6 = 0 ;
19849 bool val7 ;
19850 int ecode7 = 0 ;
19851 wxPoint temp8 ;
19852 PyObject * obj0 = 0 ;
19853 PyObject * obj1 = 0 ;
19854 PyObject * obj2 = 0 ;
19855 PyObject * obj3 = 0 ;
19856 PyObject * obj4 = 0 ;
19857 PyObject * obj5 = 0 ;
19858 PyObject * obj6 = 0 ;
19859 PyObject * obj7 = 0 ;
19860 char * kwnames[] = {
19861 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
19862 };
19863
19864 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
19865 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19866 if (!SWIG_IsOK(res1)) {
19867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19868 }
19869 arg1 = reinterpret_cast< wxDC * >(argp1);
19870 {
19871 arg2 = &temp2;
19872 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19873 }
19874 {
19875 arg3 = &temp3;
19876 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19877 }
19878 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
19879 if (!SWIG_IsOK(res4)) {
19880 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
19881 }
19882 arg4 = reinterpret_cast< wxDC * >(argp4);
19883 {
19884 arg5 = &temp5;
19885 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
19886 }
19887 if (obj5) {
19888 ecode6 = SWIG_AsVal_int(obj5, &val6);
19889 if (!SWIG_IsOK(ecode6)) {
19890 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
19891 }
19892 arg6 = static_cast< int >(val6);
19893 }
19894 if (obj6) {
19895 ecode7 = SWIG_AsVal_bool(obj6, &val7);
19896 if (!SWIG_IsOK(ecode7)) {
19897 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
19898 }
19899 arg7 = static_cast< bool >(val7);
19900 }
19901 if (obj7) {
19902 {
19903 arg8 = &temp8;
19904 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
19905 }
19906 }
19907 {
19908 PyThreadState* __tstate = wxPyBeginAllowThreads();
19909 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
19910 wxPyEndAllowThreads(__tstate);
19911 if (PyErr_Occurred()) SWIG_fail;
19912 }
19913 {
19914 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19915 }
19916 return resultobj;
19917 fail:
19918 return NULL;
19919 }
19920
19921
19922 SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19923 PyObject *resultobj = 0;
19924 wxDC *arg1 = (wxDC *) 0 ;
19925 int arg2 ;
19926 int arg3 ;
19927 int arg4 ;
19928 int arg5 ;
19929 void *argp1 = 0 ;
19930 int res1 = 0 ;
19931 int val2 ;
19932 int ecode2 = 0 ;
19933 int val3 ;
19934 int ecode3 = 0 ;
19935 int val4 ;
19936 int ecode4 = 0 ;
19937 int val5 ;
19938 int ecode5 = 0 ;
19939 PyObject * obj0 = 0 ;
19940 PyObject * obj1 = 0 ;
19941 PyObject * obj2 = 0 ;
19942 PyObject * obj3 = 0 ;
19943 PyObject * obj4 = 0 ;
19944 char * kwnames[] = {
19945 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19946 };
19947
19948 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19949 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19950 if (!SWIG_IsOK(res1)) {
19951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19952 }
19953 arg1 = reinterpret_cast< wxDC * >(argp1);
19954 ecode2 = SWIG_AsVal_int(obj1, &val2);
19955 if (!SWIG_IsOK(ecode2)) {
19956 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
19957 }
19958 arg2 = static_cast< int >(val2);
19959 ecode3 = SWIG_AsVal_int(obj2, &val3);
19960 if (!SWIG_IsOK(ecode3)) {
19961 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
19962 }
19963 arg3 = static_cast< int >(val3);
19964 ecode4 = SWIG_AsVal_int(obj3, &val4);
19965 if (!SWIG_IsOK(ecode4)) {
19966 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
19967 }
19968 arg4 = static_cast< int >(val4);
19969 ecode5 = SWIG_AsVal_int(obj4, &val5);
19970 if (!SWIG_IsOK(ecode5)) {
19971 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
19972 }
19973 arg5 = static_cast< int >(val5);
19974 {
19975 PyThreadState* __tstate = wxPyBeginAllowThreads();
19976 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
19977 wxPyEndAllowThreads(__tstate);
19978 if (PyErr_Occurred()) SWIG_fail;
19979 }
19980 resultobj = SWIG_Py_Void();
19981 return resultobj;
19982 fail:
19983 return NULL;
19984 }
19985
19986
19987 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19988 PyObject *resultobj = 0;
19989 wxDC *arg1 = (wxDC *) 0 ;
19990 wxPoint *arg2 = 0 ;
19991 wxSize *arg3 = 0 ;
19992 void *argp1 = 0 ;
19993 int res1 = 0 ;
19994 wxPoint temp2 ;
19995 wxSize temp3 ;
19996 PyObject * obj0 = 0 ;
19997 PyObject * obj1 = 0 ;
19998 PyObject * obj2 = 0 ;
19999 char * kwnames[] = {
20000 (char *) "self",(char *) "pt",(char *) "sz", NULL
20001 };
20002
20003 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20004 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20005 if (!SWIG_IsOK(res1)) {
20006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
20007 }
20008 arg1 = reinterpret_cast< wxDC * >(argp1);
20009 {
20010 arg2 = &temp2;
20011 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20012 }
20013 {
20014 arg3 = &temp3;
20015 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
20016 }
20017 {
20018 PyThreadState* __tstate = wxPyBeginAllowThreads();
20019 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
20020 wxPyEndAllowThreads(__tstate);
20021 if (PyErr_Occurred()) SWIG_fail;
20022 }
20023 resultobj = SWIG_Py_Void();
20024 return resultobj;
20025 fail:
20026 return NULL;
20027 }
20028
20029
20030 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20031 PyObject *resultobj = 0;
20032 wxDC *arg1 = (wxDC *) 0 ;
20033 wxRegion *arg2 = 0 ;
20034 void *argp1 = 0 ;
20035 int res1 = 0 ;
20036 void *argp2 = 0 ;
20037 int res2 = 0 ;
20038 PyObject * obj0 = 0 ;
20039 PyObject * obj1 = 0 ;
20040 char * kwnames[] = {
20041 (char *) "self",(char *) "region", NULL
20042 };
20043
20044 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
20045 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20046 if (!SWIG_IsOK(res1)) {
20047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20048 }
20049 arg1 = reinterpret_cast< wxDC * >(argp1);
20050 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
20051 if (!SWIG_IsOK(res2)) {
20052 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
20053 }
20054 if (!argp2) {
20055 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
20056 }
20057 arg2 = reinterpret_cast< wxRegion * >(argp2);
20058 {
20059 PyThreadState* __tstate = wxPyBeginAllowThreads();
20060 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
20061 wxPyEndAllowThreads(__tstate);
20062 if (PyErr_Occurred()) SWIG_fail;
20063 }
20064 resultobj = SWIG_Py_Void();
20065 return resultobj;
20066 fail:
20067 return NULL;
20068 }
20069
20070
20071 SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20072 PyObject *resultobj = 0;
20073 wxDC *arg1 = (wxDC *) 0 ;
20074 wxRect *arg2 = 0 ;
20075 void *argp1 = 0 ;
20076 int res1 = 0 ;
20077 wxRect temp2 ;
20078 PyObject * obj0 = 0 ;
20079 PyObject * obj1 = 0 ;
20080 char * kwnames[] = {
20081 (char *) "self",(char *) "rect", NULL
20082 };
20083
20084 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
20085 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20086 if (!SWIG_IsOK(res1)) {
20087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20088 }
20089 arg1 = reinterpret_cast< wxDC * >(argp1);
20090 {
20091 arg2 = &temp2;
20092 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
20093 }
20094 {
20095 PyThreadState* __tstate = wxPyBeginAllowThreads();
20096 (arg1)->SetClippingRegion((wxRect const &)*arg2);
20097 wxPyEndAllowThreads(__tstate);
20098 if (PyErr_Occurred()) SWIG_fail;
20099 }
20100 resultobj = SWIG_Py_Void();
20101 return resultobj;
20102 fail:
20103 return NULL;
20104 }
20105
20106
20107 SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20108 PyObject *resultobj = 0;
20109 wxDC *arg1 = (wxDC *) 0 ;
20110 int arg2 ;
20111 wxPoint *arg3 = (wxPoint *) 0 ;
20112 int arg4 = (int) 0 ;
20113 int arg5 = (int) 0 ;
20114 void *argp1 = 0 ;
20115 int res1 = 0 ;
20116 int val4 ;
20117 int ecode4 = 0 ;
20118 int val5 ;
20119 int ecode5 = 0 ;
20120 PyObject * obj0 = 0 ;
20121 PyObject * obj1 = 0 ;
20122 PyObject * obj2 = 0 ;
20123 PyObject * obj3 = 0 ;
20124 char * kwnames[] = {
20125 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
20126 };
20127
20128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20129 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20130 if (!SWIG_IsOK(res1)) {
20131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
20132 }
20133 arg1 = reinterpret_cast< wxDC * >(argp1);
20134 {
20135 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20136 if (arg3 == NULL) SWIG_fail;
20137 }
20138 if (obj2) {
20139 ecode4 = SWIG_AsVal_int(obj2, &val4);
20140 if (!SWIG_IsOK(ecode4)) {
20141 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
20142 }
20143 arg4 = static_cast< int >(val4);
20144 }
20145 if (obj3) {
20146 ecode5 = SWIG_AsVal_int(obj3, &val5);
20147 if (!SWIG_IsOK(ecode5)) {
20148 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
20149 }
20150 arg5 = static_cast< int >(val5);
20151 }
20152 {
20153 PyThreadState* __tstate = wxPyBeginAllowThreads();
20154 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
20155 wxPyEndAllowThreads(__tstate);
20156 if (PyErr_Occurred()) SWIG_fail;
20157 }
20158 resultobj = SWIG_Py_Void();
20159 {
20160 if (arg3) delete [] arg3;
20161 }
20162 return resultobj;
20163 fail:
20164 {
20165 if (arg3) delete [] arg3;
20166 }
20167 return NULL;
20168 }
20169
20170
20171 SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20172 PyObject *resultobj = 0;
20173 wxDC *arg1 = (wxDC *) 0 ;
20174 int arg2 ;
20175 wxPoint *arg3 = (wxPoint *) 0 ;
20176 int arg4 = (int) 0 ;
20177 int arg5 = (int) 0 ;
20178 int arg6 = (int) wxODDEVEN_RULE ;
20179 void *argp1 = 0 ;
20180 int res1 = 0 ;
20181 int val4 ;
20182 int ecode4 = 0 ;
20183 int val5 ;
20184 int ecode5 = 0 ;
20185 int val6 ;
20186 int ecode6 = 0 ;
20187 PyObject * obj0 = 0 ;
20188 PyObject * obj1 = 0 ;
20189 PyObject * obj2 = 0 ;
20190 PyObject * obj3 = 0 ;
20191 PyObject * obj4 = 0 ;
20192 char * kwnames[] = {
20193 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
20194 };
20195
20196 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20197 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20198 if (!SWIG_IsOK(res1)) {
20199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
20200 }
20201 arg1 = reinterpret_cast< wxDC * >(argp1);
20202 {
20203 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20204 if (arg3 == NULL) SWIG_fail;
20205 }
20206 if (obj2) {
20207 ecode4 = SWIG_AsVal_int(obj2, &val4);
20208 if (!SWIG_IsOK(ecode4)) {
20209 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
20210 }
20211 arg4 = static_cast< int >(val4);
20212 }
20213 if (obj3) {
20214 ecode5 = SWIG_AsVal_int(obj3, &val5);
20215 if (!SWIG_IsOK(ecode5)) {
20216 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
20217 }
20218 arg5 = static_cast< int >(val5);
20219 }
20220 if (obj4) {
20221 ecode6 = SWIG_AsVal_int(obj4, &val6);
20222 if (!SWIG_IsOK(ecode6)) {
20223 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
20224 }
20225 arg6 = static_cast< int >(val6);
20226 }
20227 {
20228 PyThreadState* __tstate = wxPyBeginAllowThreads();
20229 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
20230 wxPyEndAllowThreads(__tstate);
20231 if (PyErr_Occurred()) SWIG_fail;
20232 }
20233 resultobj = SWIG_Py_Void();
20234 {
20235 if (arg3) delete [] arg3;
20236 }
20237 return resultobj;
20238 fail:
20239 {
20240 if (arg3) delete [] arg3;
20241 }
20242 return NULL;
20243 }
20244
20245
20246 SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20247 PyObject *resultobj = 0;
20248 wxDC *arg1 = (wxDC *) 0 ;
20249 wxString *arg2 = 0 ;
20250 wxRect *arg3 = 0 ;
20251 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20252 int arg5 = (int) -1 ;
20253 void *argp1 = 0 ;
20254 int res1 = 0 ;
20255 bool temp2 = false ;
20256 wxRect temp3 ;
20257 int val4 ;
20258 int ecode4 = 0 ;
20259 int val5 ;
20260 int ecode5 = 0 ;
20261 PyObject * obj0 = 0 ;
20262 PyObject * obj1 = 0 ;
20263 PyObject * obj2 = 0 ;
20264 PyObject * obj3 = 0 ;
20265 PyObject * obj4 = 0 ;
20266 char * kwnames[] = {
20267 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20268 };
20269
20270 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20271 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20272 if (!SWIG_IsOK(res1)) {
20273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20274 }
20275 arg1 = reinterpret_cast< wxDC * >(argp1);
20276 {
20277 arg2 = wxString_in_helper(obj1);
20278 if (arg2 == NULL) SWIG_fail;
20279 temp2 = true;
20280 }
20281 {
20282 arg3 = &temp3;
20283 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
20284 }
20285 if (obj3) {
20286 ecode4 = SWIG_AsVal_int(obj3, &val4);
20287 if (!SWIG_IsOK(ecode4)) {
20288 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
20289 }
20290 arg4 = static_cast< int >(val4);
20291 }
20292 if (obj4) {
20293 ecode5 = SWIG_AsVal_int(obj4, &val5);
20294 if (!SWIG_IsOK(ecode5)) {
20295 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
20296 }
20297 arg5 = static_cast< int >(val5);
20298 }
20299 {
20300 PyThreadState* __tstate = wxPyBeginAllowThreads();
20301 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
20302 wxPyEndAllowThreads(__tstate);
20303 if (PyErr_Occurred()) SWIG_fail;
20304 }
20305 resultobj = SWIG_Py_Void();
20306 {
20307 if (temp2)
20308 delete arg2;
20309 }
20310 return resultobj;
20311 fail:
20312 {
20313 if (temp2)
20314 delete arg2;
20315 }
20316 return NULL;
20317 }
20318
20319
20320 SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20321 PyObject *resultobj = 0;
20322 wxDC *arg1 = (wxDC *) 0 ;
20323 wxString *arg2 = 0 ;
20324 wxBitmap *arg3 = 0 ;
20325 wxRect *arg4 = 0 ;
20326 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20327 int arg6 = (int) -1 ;
20328 wxRect result;
20329 void *argp1 = 0 ;
20330 int res1 = 0 ;
20331 bool temp2 = false ;
20332 void *argp3 = 0 ;
20333 int res3 = 0 ;
20334 wxRect temp4 ;
20335 int val5 ;
20336 int ecode5 = 0 ;
20337 int val6 ;
20338 int ecode6 = 0 ;
20339 PyObject * obj0 = 0 ;
20340 PyObject * obj1 = 0 ;
20341 PyObject * obj2 = 0 ;
20342 PyObject * obj3 = 0 ;
20343 PyObject * obj4 = 0 ;
20344 PyObject * obj5 = 0 ;
20345 char * kwnames[] = {
20346 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20347 };
20348
20349 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20350 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20351 if (!SWIG_IsOK(res1)) {
20352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20353 }
20354 arg1 = reinterpret_cast< wxDC * >(argp1);
20355 {
20356 arg2 = wxString_in_helper(obj1);
20357 if (arg2 == NULL) SWIG_fail;
20358 temp2 = true;
20359 }
20360 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
20361 if (!SWIG_IsOK(res3)) {
20362 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20363 }
20364 if (!argp3) {
20365 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20366 }
20367 arg3 = reinterpret_cast< wxBitmap * >(argp3);
20368 {
20369 arg4 = &temp4;
20370 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
20371 }
20372 if (obj4) {
20373 ecode5 = SWIG_AsVal_int(obj4, &val5);
20374 if (!SWIG_IsOK(ecode5)) {
20375 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
20376 }
20377 arg5 = static_cast< int >(val5);
20378 }
20379 if (obj5) {
20380 ecode6 = SWIG_AsVal_int(obj5, &val6);
20381 if (!SWIG_IsOK(ecode6)) {
20382 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
20383 }
20384 arg6 = static_cast< int >(val6);
20385 }
20386 {
20387 PyThreadState* __tstate = wxPyBeginAllowThreads();
20388 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
20389 wxPyEndAllowThreads(__tstate);
20390 if (PyErr_Occurred()) SWIG_fail;
20391 }
20392 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20393 {
20394 if (temp2)
20395 delete arg2;
20396 }
20397 return resultobj;
20398 fail:
20399 {
20400 if (temp2)
20401 delete arg2;
20402 }
20403 return NULL;
20404 }
20405
20406
20407 SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20408 PyObject *resultobj = 0;
20409 wxDC *arg1 = (wxDC *) 0 ;
20410 int arg2 ;
20411 wxPoint *arg3 = (wxPoint *) 0 ;
20412 void *argp1 = 0 ;
20413 int res1 = 0 ;
20414 PyObject * obj0 = 0 ;
20415 PyObject * obj1 = 0 ;
20416 char * kwnames[] = {
20417 (char *) "self",(char *) "points", NULL
20418 };
20419
20420 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
20421 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20422 if (!SWIG_IsOK(res1)) {
20423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
20424 }
20425 arg1 = reinterpret_cast< wxDC * >(argp1);
20426 {
20427 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20428 if (arg3 == NULL) SWIG_fail;
20429 }
20430 {
20431 PyThreadState* __tstate = wxPyBeginAllowThreads();
20432 (arg1)->DrawSpline(arg2,arg3);
20433 wxPyEndAllowThreads(__tstate);
20434 if (PyErr_Occurred()) SWIG_fail;
20435 }
20436 resultobj = SWIG_Py_Void();
20437 {
20438 if (arg3) delete [] arg3;
20439 }
20440 return resultobj;
20441 fail:
20442 {
20443 if (arg3) delete [] arg3;
20444 }
20445 return NULL;
20446 }
20447
20448
20449 SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20450 PyObject *resultobj = 0;
20451 wxDC *arg1 = (wxDC *) 0 ;
20452 void *argp1 = 0 ;
20453 int res1 = 0 ;
20454 PyObject *swig_obj[1] ;
20455
20456 if (!args) SWIG_fail;
20457 swig_obj[0] = args;
20458 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20459 if (!SWIG_IsOK(res1)) {
20460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
20461 }
20462 arg1 = reinterpret_cast< wxDC * >(argp1);
20463 {
20464 PyThreadState* __tstate = wxPyBeginAllowThreads();
20465 (arg1)->Clear();
20466 wxPyEndAllowThreads(__tstate);
20467 if (PyErr_Occurred()) SWIG_fail;
20468 }
20469 resultobj = SWIG_Py_Void();
20470 return resultobj;
20471 fail:
20472 return NULL;
20473 }
20474
20475
20476 SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20477 PyObject *resultobj = 0;
20478 wxDC *arg1 = (wxDC *) 0 ;
20479 wxString *arg2 = 0 ;
20480 bool result;
20481 void *argp1 = 0 ;
20482 int res1 = 0 ;
20483 bool temp2 = false ;
20484 PyObject * obj0 = 0 ;
20485 PyObject * obj1 = 0 ;
20486 char * kwnames[] = {
20487 (char *) "self",(char *) "message", NULL
20488 };
20489
20490 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
20491 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20492 if (!SWIG_IsOK(res1)) {
20493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20494 }
20495 arg1 = reinterpret_cast< wxDC * >(argp1);
20496 {
20497 arg2 = wxString_in_helper(obj1);
20498 if (arg2 == NULL) SWIG_fail;
20499 temp2 = true;
20500 }
20501 {
20502 PyThreadState* __tstate = wxPyBeginAllowThreads();
20503 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
20504 wxPyEndAllowThreads(__tstate);
20505 if (PyErr_Occurred()) SWIG_fail;
20506 }
20507 {
20508 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20509 }
20510 {
20511 if (temp2)
20512 delete arg2;
20513 }
20514 return resultobj;
20515 fail:
20516 {
20517 if (temp2)
20518 delete arg2;
20519 }
20520 return NULL;
20521 }
20522
20523
20524 SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20525 PyObject *resultobj = 0;
20526 wxDC *arg1 = (wxDC *) 0 ;
20527 void *argp1 = 0 ;
20528 int res1 = 0 ;
20529 PyObject *swig_obj[1] ;
20530
20531 if (!args) SWIG_fail;
20532 swig_obj[0] = args;
20533 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20534 if (!SWIG_IsOK(res1)) {
20535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20536 }
20537 arg1 = reinterpret_cast< wxDC * >(argp1);
20538 {
20539 PyThreadState* __tstate = wxPyBeginAllowThreads();
20540 (arg1)->EndDoc();
20541 wxPyEndAllowThreads(__tstate);
20542 if (PyErr_Occurred()) SWIG_fail;
20543 }
20544 resultobj = SWIG_Py_Void();
20545 return resultobj;
20546 fail:
20547 return NULL;
20548 }
20549
20550
20551 SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20552 PyObject *resultobj = 0;
20553 wxDC *arg1 = (wxDC *) 0 ;
20554 void *argp1 = 0 ;
20555 int res1 = 0 ;
20556 PyObject *swig_obj[1] ;
20557
20558 if (!args) SWIG_fail;
20559 swig_obj[0] = args;
20560 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20561 if (!SWIG_IsOK(res1)) {
20562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
20563 }
20564 arg1 = reinterpret_cast< wxDC * >(argp1);
20565 {
20566 PyThreadState* __tstate = wxPyBeginAllowThreads();
20567 (arg1)->StartPage();
20568 wxPyEndAllowThreads(__tstate);
20569 if (PyErr_Occurred()) SWIG_fail;
20570 }
20571 resultobj = SWIG_Py_Void();
20572 return resultobj;
20573 fail:
20574 return NULL;
20575 }
20576
20577
20578 SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20579 PyObject *resultobj = 0;
20580 wxDC *arg1 = (wxDC *) 0 ;
20581 void *argp1 = 0 ;
20582 int res1 = 0 ;
20583 PyObject *swig_obj[1] ;
20584
20585 if (!args) SWIG_fail;
20586 swig_obj[0] = args;
20587 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20588 if (!SWIG_IsOK(res1)) {
20589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
20590 }
20591 arg1 = reinterpret_cast< wxDC * >(argp1);
20592 {
20593 PyThreadState* __tstate = wxPyBeginAllowThreads();
20594 (arg1)->EndPage();
20595 wxPyEndAllowThreads(__tstate);
20596 if (PyErr_Occurred()) SWIG_fail;
20597 }
20598 resultobj = SWIG_Py_Void();
20599 return resultobj;
20600 fail:
20601 return NULL;
20602 }
20603
20604
20605 SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20606 PyObject *resultobj = 0;
20607 wxDC *arg1 = (wxDC *) 0 ;
20608 wxFont *arg2 = 0 ;
20609 void *argp1 = 0 ;
20610 int res1 = 0 ;
20611 void *argp2 = 0 ;
20612 int res2 = 0 ;
20613 PyObject * obj0 = 0 ;
20614 PyObject * obj1 = 0 ;
20615 char * kwnames[] = {
20616 (char *) "self",(char *) "font", NULL
20617 };
20618
20619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
20620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20621 if (!SWIG_IsOK(res1)) {
20622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
20623 }
20624 arg1 = reinterpret_cast< wxDC * >(argp1);
20625 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
20626 if (!SWIG_IsOK(res2)) {
20627 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20628 }
20629 if (!argp2) {
20630 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20631 }
20632 arg2 = reinterpret_cast< wxFont * >(argp2);
20633 {
20634 PyThreadState* __tstate = wxPyBeginAllowThreads();
20635 (arg1)->SetFont((wxFont const &)*arg2);
20636 wxPyEndAllowThreads(__tstate);
20637 if (PyErr_Occurred()) SWIG_fail;
20638 }
20639 resultobj = SWIG_Py_Void();
20640 return resultobj;
20641 fail:
20642 return NULL;
20643 }
20644
20645
20646 SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20647 PyObject *resultobj = 0;
20648 wxDC *arg1 = (wxDC *) 0 ;
20649 wxPen *arg2 = 0 ;
20650 void *argp1 = 0 ;
20651 int res1 = 0 ;
20652 void *argp2 = 0 ;
20653 int res2 = 0 ;
20654 PyObject * obj0 = 0 ;
20655 PyObject * obj1 = 0 ;
20656 char * kwnames[] = {
20657 (char *) "self",(char *) "pen", NULL
20658 };
20659
20660 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
20661 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20662 if (!SWIG_IsOK(res1)) {
20663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
20664 }
20665 arg1 = reinterpret_cast< wxDC * >(argp1);
20666 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
20667 if (!SWIG_IsOK(res2)) {
20668 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20669 }
20670 if (!argp2) {
20671 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20672 }
20673 arg2 = reinterpret_cast< wxPen * >(argp2);
20674 {
20675 PyThreadState* __tstate = wxPyBeginAllowThreads();
20676 (arg1)->SetPen((wxPen const &)*arg2);
20677 wxPyEndAllowThreads(__tstate);
20678 if (PyErr_Occurred()) SWIG_fail;
20679 }
20680 resultobj = SWIG_Py_Void();
20681 return resultobj;
20682 fail:
20683 return NULL;
20684 }
20685
20686
20687 SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20688 PyObject *resultobj = 0;
20689 wxDC *arg1 = (wxDC *) 0 ;
20690 wxBrush *arg2 = 0 ;
20691 void *argp1 = 0 ;
20692 int res1 = 0 ;
20693 void *argp2 = 0 ;
20694 int res2 = 0 ;
20695 PyObject * obj0 = 0 ;
20696 PyObject * obj1 = 0 ;
20697 char * kwnames[] = {
20698 (char *) "self",(char *) "brush", NULL
20699 };
20700
20701 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
20702 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20703 if (!SWIG_IsOK(res1)) {
20704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
20705 }
20706 arg1 = reinterpret_cast< wxDC * >(argp1);
20707 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20708 if (!SWIG_IsOK(res2)) {
20709 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20710 }
20711 if (!argp2) {
20712 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20713 }
20714 arg2 = reinterpret_cast< wxBrush * >(argp2);
20715 {
20716 PyThreadState* __tstate = wxPyBeginAllowThreads();
20717 (arg1)->SetBrush((wxBrush const &)*arg2);
20718 wxPyEndAllowThreads(__tstate);
20719 if (PyErr_Occurred()) SWIG_fail;
20720 }
20721 resultobj = SWIG_Py_Void();
20722 return resultobj;
20723 fail:
20724 return NULL;
20725 }
20726
20727
20728 SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20729 PyObject *resultobj = 0;
20730 wxDC *arg1 = (wxDC *) 0 ;
20731 wxBrush *arg2 = 0 ;
20732 void *argp1 = 0 ;
20733 int res1 = 0 ;
20734 void *argp2 = 0 ;
20735 int res2 = 0 ;
20736 PyObject * obj0 = 0 ;
20737 PyObject * obj1 = 0 ;
20738 char * kwnames[] = {
20739 (char *) "self",(char *) "brush", NULL
20740 };
20741
20742 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
20743 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20744 if (!SWIG_IsOK(res1)) {
20745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
20746 }
20747 arg1 = reinterpret_cast< wxDC * >(argp1);
20748 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20749 if (!SWIG_IsOK(res2)) {
20750 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20751 }
20752 if (!argp2) {
20753 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20754 }
20755 arg2 = reinterpret_cast< wxBrush * >(argp2);
20756 {
20757 PyThreadState* __tstate = wxPyBeginAllowThreads();
20758 (arg1)->SetBackground((wxBrush const &)*arg2);
20759 wxPyEndAllowThreads(__tstate);
20760 if (PyErr_Occurred()) SWIG_fail;
20761 }
20762 resultobj = SWIG_Py_Void();
20763 return resultobj;
20764 fail:
20765 return NULL;
20766 }
20767
20768
20769 SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20770 PyObject *resultobj = 0;
20771 wxDC *arg1 = (wxDC *) 0 ;
20772 int arg2 ;
20773 void *argp1 = 0 ;
20774 int res1 = 0 ;
20775 int val2 ;
20776 int ecode2 = 0 ;
20777 PyObject * obj0 = 0 ;
20778 PyObject * obj1 = 0 ;
20779 char * kwnames[] = {
20780 (char *) "self",(char *) "mode", NULL
20781 };
20782
20783 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
20784 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20785 if (!SWIG_IsOK(res1)) {
20786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
20787 }
20788 arg1 = reinterpret_cast< wxDC * >(argp1);
20789 ecode2 = SWIG_AsVal_int(obj1, &val2);
20790 if (!SWIG_IsOK(ecode2)) {
20791 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
20792 }
20793 arg2 = static_cast< int >(val2);
20794 {
20795 PyThreadState* __tstate = wxPyBeginAllowThreads();
20796 (arg1)->SetBackgroundMode(arg2);
20797 wxPyEndAllowThreads(__tstate);
20798 if (PyErr_Occurred()) SWIG_fail;
20799 }
20800 resultobj = SWIG_Py_Void();
20801 return resultobj;
20802 fail:
20803 return NULL;
20804 }
20805
20806
20807 SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20808 PyObject *resultobj = 0;
20809 wxDC *arg1 = (wxDC *) 0 ;
20810 wxPalette *arg2 = 0 ;
20811 void *argp1 = 0 ;
20812 int res1 = 0 ;
20813 void *argp2 = 0 ;
20814 int res2 = 0 ;
20815 PyObject * obj0 = 0 ;
20816 PyObject * obj1 = 0 ;
20817 char * kwnames[] = {
20818 (char *) "self",(char *) "palette", NULL
20819 };
20820
20821 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
20822 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20823 if (!SWIG_IsOK(res1)) {
20824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
20825 }
20826 arg1 = reinterpret_cast< wxDC * >(argp1);
20827 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
20828 if (!SWIG_IsOK(res2)) {
20829 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20830 }
20831 if (!argp2) {
20832 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20833 }
20834 arg2 = reinterpret_cast< wxPalette * >(argp2);
20835 {
20836 PyThreadState* __tstate = wxPyBeginAllowThreads();
20837 (arg1)->SetPalette((wxPalette const &)*arg2);
20838 wxPyEndAllowThreads(__tstate);
20839 if (PyErr_Occurred()) SWIG_fail;
20840 }
20841 resultobj = SWIG_Py_Void();
20842 return resultobj;
20843 fail:
20844 return NULL;
20845 }
20846
20847
20848 SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20849 PyObject *resultobj = 0;
20850 wxDC *arg1 = (wxDC *) 0 ;
20851 void *argp1 = 0 ;
20852 int res1 = 0 ;
20853 PyObject *swig_obj[1] ;
20854
20855 if (!args) SWIG_fail;
20856 swig_obj[0] = args;
20857 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20858 if (!SWIG_IsOK(res1)) {
20859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20860 }
20861 arg1 = reinterpret_cast< wxDC * >(argp1);
20862 {
20863 PyThreadState* __tstate = wxPyBeginAllowThreads();
20864 (arg1)->DestroyClippingRegion();
20865 wxPyEndAllowThreads(__tstate);
20866 if (PyErr_Occurred()) SWIG_fail;
20867 }
20868 resultobj = SWIG_Py_Void();
20869 return resultobj;
20870 fail:
20871 return NULL;
20872 }
20873
20874
20875 SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20876 PyObject *resultobj = 0;
20877 wxDC *arg1 = (wxDC *) 0 ;
20878 int *arg2 = (int *) 0 ;
20879 int *arg3 = (int *) 0 ;
20880 int *arg4 = (int *) 0 ;
20881 int *arg5 = (int *) 0 ;
20882 void *argp1 = 0 ;
20883 int res1 = 0 ;
20884 int temp2 ;
20885 int res2 = SWIG_TMPOBJ ;
20886 int temp3 ;
20887 int res3 = SWIG_TMPOBJ ;
20888 int temp4 ;
20889 int res4 = SWIG_TMPOBJ ;
20890 int temp5 ;
20891 int res5 = SWIG_TMPOBJ ;
20892 PyObject *swig_obj[1] ;
20893
20894 arg2 = &temp2;
20895 arg3 = &temp3;
20896 arg4 = &temp4;
20897 arg5 = &temp5;
20898 if (!args) SWIG_fail;
20899 swig_obj[0] = args;
20900 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20901 if (!SWIG_IsOK(res1)) {
20902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
20903 }
20904 arg1 = reinterpret_cast< wxDC * >(argp1);
20905 {
20906 PyThreadState* __tstate = wxPyBeginAllowThreads();
20907 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
20908 wxPyEndAllowThreads(__tstate);
20909 if (PyErr_Occurred()) SWIG_fail;
20910 }
20911 resultobj = SWIG_Py_Void();
20912 if (SWIG_IsTmpObj(res2)) {
20913 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20914 } else {
20915 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20916 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20917 }
20918 if (SWIG_IsTmpObj(res3)) {
20919 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20920 } else {
20921 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20922 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20923 }
20924 if (SWIG_IsTmpObj(res4)) {
20925 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20926 } else {
20927 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20928 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20929 }
20930 if (SWIG_IsTmpObj(res5)) {
20931 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20932 } else {
20933 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20934 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20935 }
20936 return resultobj;
20937 fail:
20938 return NULL;
20939 }
20940
20941
20942 SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20943 PyObject *resultobj = 0;
20944 wxDC *arg1 = (wxDC *) 0 ;
20945 wxRect result;
20946 void *argp1 = 0 ;
20947 int res1 = 0 ;
20948 PyObject *swig_obj[1] ;
20949
20950 if (!args) SWIG_fail;
20951 swig_obj[0] = args;
20952 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20953 if (!SWIG_IsOK(res1)) {
20954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20955 }
20956 arg1 = reinterpret_cast< wxDC * >(argp1);
20957 {
20958 PyThreadState* __tstate = wxPyBeginAllowThreads();
20959 result = wxDC_GetClippingRect(arg1);
20960 wxPyEndAllowThreads(__tstate);
20961 if (PyErr_Occurred()) SWIG_fail;
20962 }
20963 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20964 return resultobj;
20965 fail:
20966 return NULL;
20967 }
20968
20969
20970 SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20971 PyObject *resultobj = 0;
20972 wxDC *arg1 = (wxDC *) 0 ;
20973 int result;
20974 void *argp1 = 0 ;
20975 int res1 = 0 ;
20976 PyObject *swig_obj[1] ;
20977
20978 if (!args) SWIG_fail;
20979 swig_obj[0] = args;
20980 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20981 if (!SWIG_IsOK(res1)) {
20982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
20983 }
20984 arg1 = reinterpret_cast< wxDC * >(argp1);
20985 {
20986 PyThreadState* __tstate = wxPyBeginAllowThreads();
20987 result = (int)((wxDC const *)arg1)->GetCharHeight();
20988 wxPyEndAllowThreads(__tstate);
20989 if (PyErr_Occurred()) SWIG_fail;
20990 }
20991 resultobj = SWIG_From_int(static_cast< int >(result));
20992 return resultobj;
20993 fail:
20994 return NULL;
20995 }
20996
20997
20998 SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20999 PyObject *resultobj = 0;
21000 wxDC *arg1 = (wxDC *) 0 ;
21001 int result;
21002 void *argp1 = 0 ;
21003 int res1 = 0 ;
21004 PyObject *swig_obj[1] ;
21005
21006 if (!args) SWIG_fail;
21007 swig_obj[0] = args;
21008 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21009 if (!SWIG_IsOK(res1)) {
21010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
21011 }
21012 arg1 = reinterpret_cast< wxDC * >(argp1);
21013 {
21014 PyThreadState* __tstate = wxPyBeginAllowThreads();
21015 result = (int)((wxDC const *)arg1)->GetCharWidth();
21016 wxPyEndAllowThreads(__tstate);
21017 if (PyErr_Occurred()) SWIG_fail;
21018 }
21019 resultobj = SWIG_From_int(static_cast< int >(result));
21020 return resultobj;
21021 fail:
21022 return NULL;
21023 }
21024
21025
21026 SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21027 PyObject *resultobj = 0;
21028 wxDC *arg1 = (wxDC *) 0 ;
21029 wxString *arg2 = 0 ;
21030 int *arg3 = (int *) 0 ;
21031 int *arg4 = (int *) 0 ;
21032 void *argp1 = 0 ;
21033 int res1 = 0 ;
21034 bool temp2 = false ;
21035 int temp3 ;
21036 int res3 = SWIG_TMPOBJ ;
21037 int temp4 ;
21038 int res4 = SWIG_TMPOBJ ;
21039 PyObject * obj0 = 0 ;
21040 PyObject * obj1 = 0 ;
21041 char * kwnames[] = {
21042 (char *) "self",(char *) "string", NULL
21043 };
21044
21045 arg3 = &temp3;
21046 arg4 = &temp4;
21047 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
21048 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21049 if (!SWIG_IsOK(res1)) {
21050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21051 }
21052 arg1 = reinterpret_cast< wxDC * >(argp1);
21053 {
21054 arg2 = wxString_in_helper(obj1);
21055 if (arg2 == NULL) SWIG_fail;
21056 temp2 = true;
21057 }
21058 {
21059 PyThreadState* __tstate = wxPyBeginAllowThreads();
21060 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
21061 wxPyEndAllowThreads(__tstate);
21062 if (PyErr_Occurred()) SWIG_fail;
21063 }
21064 resultobj = SWIG_Py_Void();
21065 if (SWIG_IsTmpObj(res3)) {
21066 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21067 } else {
21068 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21069 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21070 }
21071 if (SWIG_IsTmpObj(res4)) {
21072 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21073 } else {
21074 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21075 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21076 }
21077 {
21078 if (temp2)
21079 delete arg2;
21080 }
21081 return resultobj;
21082 fail:
21083 {
21084 if (temp2)
21085 delete arg2;
21086 }
21087 return NULL;
21088 }
21089
21090
21091 SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21092 PyObject *resultobj = 0;
21093 wxDC *arg1 = (wxDC *) 0 ;
21094 wxString *arg2 = 0 ;
21095 int *arg3 = (int *) 0 ;
21096 int *arg4 = (int *) 0 ;
21097 int *arg5 = (int *) 0 ;
21098 int *arg6 = (int *) 0 ;
21099 wxFont *arg7 = (wxFont *) NULL ;
21100 void *argp1 = 0 ;
21101 int res1 = 0 ;
21102 bool temp2 = false ;
21103 int temp3 ;
21104 int res3 = SWIG_TMPOBJ ;
21105 int temp4 ;
21106 int res4 = SWIG_TMPOBJ ;
21107 int temp5 ;
21108 int res5 = SWIG_TMPOBJ ;
21109 int temp6 ;
21110 int res6 = SWIG_TMPOBJ ;
21111 void *argp7 = 0 ;
21112 int res7 = 0 ;
21113 PyObject * obj0 = 0 ;
21114 PyObject * obj1 = 0 ;
21115 PyObject * obj2 = 0 ;
21116 char * kwnames[] = {
21117 (char *) "self",(char *) "string",(char *) "font", NULL
21118 };
21119
21120 arg3 = &temp3;
21121 arg4 = &temp4;
21122 arg5 = &temp5;
21123 arg6 = &temp6;
21124 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21125 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21126 if (!SWIG_IsOK(res1)) {
21127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21128 }
21129 arg1 = reinterpret_cast< wxDC * >(argp1);
21130 {
21131 arg2 = wxString_in_helper(obj1);
21132 if (arg2 == NULL) SWIG_fail;
21133 temp2 = true;
21134 }
21135 if (obj2) {
21136 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
21137 if (!SWIG_IsOK(res7)) {
21138 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
21139 }
21140 arg7 = reinterpret_cast< wxFont * >(argp7);
21141 }
21142 {
21143 PyThreadState* __tstate = wxPyBeginAllowThreads();
21144 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
21145 wxPyEndAllowThreads(__tstate);
21146 if (PyErr_Occurred()) SWIG_fail;
21147 }
21148 resultobj = SWIG_Py_Void();
21149 if (SWIG_IsTmpObj(res3)) {
21150 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21151 } else {
21152 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21153 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21154 }
21155 if (SWIG_IsTmpObj(res4)) {
21156 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21157 } else {
21158 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21159 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21160 }
21161 if (SWIG_IsTmpObj(res5)) {
21162 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21163 } else {
21164 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21165 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21166 }
21167 if (SWIG_IsTmpObj(res6)) {
21168 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
21169 } else {
21170 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21171 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
21172 }
21173 {
21174 if (temp2)
21175 delete arg2;
21176 }
21177 return resultobj;
21178 fail:
21179 {
21180 if (temp2)
21181 delete arg2;
21182 }
21183 return NULL;
21184 }
21185
21186
21187 SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21188 PyObject *resultobj = 0;
21189 wxDC *arg1 = (wxDC *) 0 ;
21190 wxString *arg2 = 0 ;
21191 int *arg3 = (int *) 0 ;
21192 int *arg4 = (int *) 0 ;
21193 int *arg5 = (int *) 0 ;
21194 wxFont *arg6 = (wxFont *) NULL ;
21195 void *argp1 = 0 ;
21196 int res1 = 0 ;
21197 bool temp2 = false ;
21198 int temp3 ;
21199 int res3 = SWIG_TMPOBJ ;
21200 int temp4 ;
21201 int res4 = SWIG_TMPOBJ ;
21202 int temp5 ;
21203 int res5 = SWIG_TMPOBJ ;
21204 void *argp6 = 0 ;
21205 int res6 = 0 ;
21206 PyObject * obj0 = 0 ;
21207 PyObject * obj1 = 0 ;
21208 PyObject * obj2 = 0 ;
21209 char * kwnames[] = {
21210 (char *) "self",(char *) "text",(char *) "font", NULL
21211 };
21212
21213 arg3 = &temp3;
21214 arg4 = &temp4;
21215 arg5 = &temp5;
21216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21217 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21218 if (!SWIG_IsOK(res1)) {
21219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21220 }
21221 arg1 = reinterpret_cast< wxDC * >(argp1);
21222 {
21223 arg2 = wxString_in_helper(obj1);
21224 if (arg2 == NULL) SWIG_fail;
21225 temp2 = true;
21226 }
21227 if (obj2) {
21228 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
21229 if (!SWIG_IsOK(res6)) {
21230 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
21231 }
21232 arg6 = reinterpret_cast< wxFont * >(argp6);
21233 }
21234 {
21235 PyThreadState* __tstate = wxPyBeginAllowThreads();
21236 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
21237 wxPyEndAllowThreads(__tstate);
21238 if (PyErr_Occurred()) SWIG_fail;
21239 }
21240 resultobj = SWIG_Py_Void();
21241 if (SWIG_IsTmpObj(res3)) {
21242 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21243 } else {
21244 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21245 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21246 }
21247 if (SWIG_IsTmpObj(res4)) {
21248 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21249 } else {
21250 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21251 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21252 }
21253 if (SWIG_IsTmpObj(res5)) {
21254 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21255 } else {
21256 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21257 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21258 }
21259 {
21260 if (temp2)
21261 delete arg2;
21262 }
21263 return resultobj;
21264 fail:
21265 {
21266 if (temp2)
21267 delete arg2;
21268 }
21269 return NULL;
21270 }
21271
21272
21273 SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21274 PyObject *resultobj = 0;
21275 wxDC *arg1 = (wxDC *) 0 ;
21276 wxString *arg2 = 0 ;
21277 wxArrayInt result;
21278 void *argp1 = 0 ;
21279 int res1 = 0 ;
21280 bool temp2 = false ;
21281 PyObject * obj0 = 0 ;
21282 PyObject * obj1 = 0 ;
21283 char * kwnames[] = {
21284 (char *) "self",(char *) "text", NULL
21285 };
21286
21287 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
21288 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21289 if (!SWIG_IsOK(res1)) {
21290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
21291 }
21292 arg1 = reinterpret_cast< wxDC * >(argp1);
21293 {
21294 arg2 = wxString_in_helper(obj1);
21295 if (arg2 == NULL) SWIG_fail;
21296 temp2 = true;
21297 }
21298 {
21299 PyThreadState* __tstate = wxPyBeginAllowThreads();
21300 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
21301 wxPyEndAllowThreads(__tstate);
21302 if (PyErr_Occurred()) SWIG_fail;
21303 }
21304 {
21305 resultobj = PyList_New(0);
21306 size_t idx;
21307 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
21308 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
21309 PyList_Append(resultobj, val);
21310 Py_DECREF(val);
21311 }
21312 }
21313 {
21314 if (temp2)
21315 delete arg2;
21316 }
21317 return resultobj;
21318 fail:
21319 {
21320 if (temp2)
21321 delete arg2;
21322 }
21323 return NULL;
21324 }
21325
21326
21327 SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21328 PyObject *resultobj = 0;
21329 wxDC *arg1 = (wxDC *) 0 ;
21330 wxSize result;
21331 void *argp1 = 0 ;
21332 int res1 = 0 ;
21333 PyObject *swig_obj[1] ;
21334
21335 if (!args) SWIG_fail;
21336 swig_obj[0] = args;
21337 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21338 if (!SWIG_IsOK(res1)) {
21339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
21340 }
21341 arg1 = reinterpret_cast< wxDC * >(argp1);
21342 {
21343 PyThreadState* __tstate = wxPyBeginAllowThreads();
21344 result = (arg1)->GetSize();
21345 wxPyEndAllowThreads(__tstate);
21346 if (PyErr_Occurred()) SWIG_fail;
21347 }
21348 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21349 return resultobj;
21350 fail:
21351 return NULL;
21352 }
21353
21354
21355 SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21356 PyObject *resultobj = 0;
21357 wxDC *arg1 = (wxDC *) 0 ;
21358 int *arg2 = (int *) 0 ;
21359 int *arg3 = (int *) 0 ;
21360 void *argp1 = 0 ;
21361 int res1 = 0 ;
21362 int temp2 ;
21363 int res2 = SWIG_TMPOBJ ;
21364 int temp3 ;
21365 int res3 = SWIG_TMPOBJ ;
21366 PyObject *swig_obj[1] ;
21367
21368 arg2 = &temp2;
21369 arg3 = &temp3;
21370 if (!args) SWIG_fail;
21371 swig_obj[0] = args;
21372 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21373 if (!SWIG_IsOK(res1)) {
21374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
21375 }
21376 arg1 = reinterpret_cast< wxDC * >(argp1);
21377 {
21378 PyThreadState* __tstate = wxPyBeginAllowThreads();
21379 (arg1)->GetSize(arg2,arg3);
21380 wxPyEndAllowThreads(__tstate);
21381 if (PyErr_Occurred()) SWIG_fail;
21382 }
21383 resultobj = SWIG_Py_Void();
21384 if (SWIG_IsTmpObj(res2)) {
21385 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21386 } else {
21387 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21388 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21389 }
21390 if (SWIG_IsTmpObj(res3)) {
21391 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21392 } else {
21393 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21394 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21395 }
21396 return resultobj;
21397 fail:
21398 return NULL;
21399 }
21400
21401
21402 SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21403 PyObject *resultobj = 0;
21404 wxDC *arg1 = (wxDC *) 0 ;
21405 wxSize result;
21406 void *argp1 = 0 ;
21407 int res1 = 0 ;
21408 PyObject *swig_obj[1] ;
21409
21410 if (!args) SWIG_fail;
21411 swig_obj[0] = args;
21412 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21413 if (!SWIG_IsOK(res1)) {
21414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
21415 }
21416 arg1 = reinterpret_cast< wxDC * >(argp1);
21417 {
21418 PyThreadState* __tstate = wxPyBeginAllowThreads();
21419 result = ((wxDC const *)arg1)->GetSizeMM();
21420 wxPyEndAllowThreads(__tstate);
21421 if (PyErr_Occurred()) SWIG_fail;
21422 }
21423 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21424 return resultobj;
21425 fail:
21426 return NULL;
21427 }
21428
21429
21430 SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21431 PyObject *resultobj = 0;
21432 wxDC *arg1 = (wxDC *) 0 ;
21433 int *arg2 = (int *) 0 ;
21434 int *arg3 = (int *) 0 ;
21435 void *argp1 = 0 ;
21436 int res1 = 0 ;
21437 int temp2 ;
21438 int res2 = SWIG_TMPOBJ ;
21439 int temp3 ;
21440 int res3 = SWIG_TMPOBJ ;
21441 PyObject *swig_obj[1] ;
21442
21443 arg2 = &temp2;
21444 arg3 = &temp3;
21445 if (!args) SWIG_fail;
21446 swig_obj[0] = args;
21447 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21448 if (!SWIG_IsOK(res1)) {
21449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
21450 }
21451 arg1 = reinterpret_cast< wxDC * >(argp1);
21452 {
21453 PyThreadState* __tstate = wxPyBeginAllowThreads();
21454 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
21455 wxPyEndAllowThreads(__tstate);
21456 if (PyErr_Occurred()) SWIG_fail;
21457 }
21458 resultobj = SWIG_Py_Void();
21459 if (SWIG_IsTmpObj(res2)) {
21460 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21461 } else {
21462 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21463 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21464 }
21465 if (SWIG_IsTmpObj(res3)) {
21466 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21467 } else {
21468 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21469 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21470 }
21471 return resultobj;
21472 fail:
21473 return NULL;
21474 }
21475
21476
21477 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21478 PyObject *resultobj = 0;
21479 wxDC *arg1 = (wxDC *) 0 ;
21480 int arg2 ;
21481 int result;
21482 void *argp1 = 0 ;
21483 int res1 = 0 ;
21484 int val2 ;
21485 int ecode2 = 0 ;
21486 PyObject * obj0 = 0 ;
21487 PyObject * obj1 = 0 ;
21488 char * kwnames[] = {
21489 (char *) "self",(char *) "x", NULL
21490 };
21491
21492 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
21493 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21494 if (!SWIG_IsOK(res1)) {
21495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
21496 }
21497 arg1 = reinterpret_cast< wxDC * >(argp1);
21498 ecode2 = SWIG_AsVal_int(obj1, &val2);
21499 if (!SWIG_IsOK(ecode2)) {
21500 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
21501 }
21502 arg2 = static_cast< int >(val2);
21503 {
21504 PyThreadState* __tstate = wxPyBeginAllowThreads();
21505 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
21506 wxPyEndAllowThreads(__tstate);
21507 if (PyErr_Occurred()) SWIG_fail;
21508 }
21509 resultobj = SWIG_From_int(static_cast< int >(result));
21510 return resultobj;
21511 fail:
21512 return NULL;
21513 }
21514
21515
21516 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21517 PyObject *resultobj = 0;
21518 wxDC *arg1 = (wxDC *) 0 ;
21519 int arg2 ;
21520 int result;
21521 void *argp1 = 0 ;
21522 int res1 = 0 ;
21523 int val2 ;
21524 int ecode2 = 0 ;
21525 PyObject * obj0 = 0 ;
21526 PyObject * obj1 = 0 ;
21527 char * kwnames[] = {
21528 (char *) "self",(char *) "y", NULL
21529 };
21530
21531 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
21532 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21533 if (!SWIG_IsOK(res1)) {
21534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
21535 }
21536 arg1 = reinterpret_cast< wxDC * >(argp1);
21537 ecode2 = SWIG_AsVal_int(obj1, &val2);
21538 if (!SWIG_IsOK(ecode2)) {
21539 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
21540 }
21541 arg2 = static_cast< int >(val2);
21542 {
21543 PyThreadState* __tstate = wxPyBeginAllowThreads();
21544 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
21545 wxPyEndAllowThreads(__tstate);
21546 if (PyErr_Occurred()) SWIG_fail;
21547 }
21548 resultobj = SWIG_From_int(static_cast< int >(result));
21549 return resultobj;
21550 fail:
21551 return NULL;
21552 }
21553
21554
21555 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21556 PyObject *resultobj = 0;
21557 wxDC *arg1 = (wxDC *) 0 ;
21558 int arg2 ;
21559 int result;
21560 void *argp1 = 0 ;
21561 int res1 = 0 ;
21562 int val2 ;
21563 int ecode2 = 0 ;
21564 PyObject * obj0 = 0 ;
21565 PyObject * obj1 = 0 ;
21566 char * kwnames[] = {
21567 (char *) "self",(char *) "x", NULL
21568 };
21569
21570 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21571 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21572 if (!SWIG_IsOK(res1)) {
21573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21574 }
21575 arg1 = reinterpret_cast< wxDC * >(argp1);
21576 ecode2 = SWIG_AsVal_int(obj1, &val2);
21577 if (!SWIG_IsOK(ecode2)) {
21578 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
21579 }
21580 arg2 = static_cast< int >(val2);
21581 {
21582 PyThreadState* __tstate = wxPyBeginAllowThreads();
21583 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
21584 wxPyEndAllowThreads(__tstate);
21585 if (PyErr_Occurred()) SWIG_fail;
21586 }
21587 resultobj = SWIG_From_int(static_cast< int >(result));
21588 return resultobj;
21589 fail:
21590 return NULL;
21591 }
21592
21593
21594 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21595 PyObject *resultobj = 0;
21596 wxDC *arg1 = (wxDC *) 0 ;
21597 int arg2 ;
21598 int result;
21599 void *argp1 = 0 ;
21600 int res1 = 0 ;
21601 int val2 ;
21602 int ecode2 = 0 ;
21603 PyObject * obj0 = 0 ;
21604 PyObject * obj1 = 0 ;
21605 char * kwnames[] = {
21606 (char *) "self",(char *) "y", NULL
21607 };
21608
21609 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21610 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21611 if (!SWIG_IsOK(res1)) {
21612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21613 }
21614 arg1 = reinterpret_cast< wxDC * >(argp1);
21615 ecode2 = SWIG_AsVal_int(obj1, &val2);
21616 if (!SWIG_IsOK(ecode2)) {
21617 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
21618 }
21619 arg2 = static_cast< int >(val2);
21620 {
21621 PyThreadState* __tstate = wxPyBeginAllowThreads();
21622 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
21623 wxPyEndAllowThreads(__tstate);
21624 if (PyErr_Occurred()) SWIG_fail;
21625 }
21626 resultobj = SWIG_From_int(static_cast< int >(result));
21627 return resultobj;
21628 fail:
21629 return NULL;
21630 }
21631
21632
21633 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21634 PyObject *resultobj = 0;
21635 wxDC *arg1 = (wxDC *) 0 ;
21636 int arg2 ;
21637 int result;
21638 void *argp1 = 0 ;
21639 int res1 = 0 ;
21640 int val2 ;
21641 int ecode2 = 0 ;
21642 PyObject * obj0 = 0 ;
21643 PyObject * obj1 = 0 ;
21644 char * kwnames[] = {
21645 (char *) "self",(char *) "x", NULL
21646 };
21647
21648 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
21649 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21650 if (!SWIG_IsOK(res1)) {
21651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
21652 }
21653 arg1 = reinterpret_cast< wxDC * >(argp1);
21654 ecode2 = SWIG_AsVal_int(obj1, &val2);
21655 if (!SWIG_IsOK(ecode2)) {
21656 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
21657 }
21658 arg2 = static_cast< int >(val2);
21659 {
21660 PyThreadState* __tstate = wxPyBeginAllowThreads();
21661 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
21662 wxPyEndAllowThreads(__tstate);
21663 if (PyErr_Occurred()) SWIG_fail;
21664 }
21665 resultobj = SWIG_From_int(static_cast< int >(result));
21666 return resultobj;
21667 fail:
21668 return NULL;
21669 }
21670
21671
21672 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21673 PyObject *resultobj = 0;
21674 wxDC *arg1 = (wxDC *) 0 ;
21675 int arg2 ;
21676 int result;
21677 void *argp1 = 0 ;
21678 int res1 = 0 ;
21679 int val2 ;
21680 int ecode2 = 0 ;
21681 PyObject * obj0 = 0 ;
21682 PyObject * obj1 = 0 ;
21683 char * kwnames[] = {
21684 (char *) "self",(char *) "y", NULL
21685 };
21686
21687 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
21688 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21689 if (!SWIG_IsOK(res1)) {
21690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
21691 }
21692 arg1 = reinterpret_cast< wxDC * >(argp1);
21693 ecode2 = SWIG_AsVal_int(obj1, &val2);
21694 if (!SWIG_IsOK(ecode2)) {
21695 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
21696 }
21697 arg2 = static_cast< int >(val2);
21698 {
21699 PyThreadState* __tstate = wxPyBeginAllowThreads();
21700 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
21701 wxPyEndAllowThreads(__tstate);
21702 if (PyErr_Occurred()) SWIG_fail;
21703 }
21704 resultobj = SWIG_From_int(static_cast< int >(result));
21705 return resultobj;
21706 fail:
21707 return NULL;
21708 }
21709
21710
21711 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21712 PyObject *resultobj = 0;
21713 wxDC *arg1 = (wxDC *) 0 ;
21714 int arg2 ;
21715 int result;
21716 void *argp1 = 0 ;
21717 int res1 = 0 ;
21718 int val2 ;
21719 int ecode2 = 0 ;
21720 PyObject * obj0 = 0 ;
21721 PyObject * obj1 = 0 ;
21722 char * kwnames[] = {
21723 (char *) "self",(char *) "x", NULL
21724 };
21725
21726 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21727 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21728 if (!SWIG_IsOK(res1)) {
21729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21730 }
21731 arg1 = reinterpret_cast< wxDC * >(argp1);
21732 ecode2 = SWIG_AsVal_int(obj1, &val2);
21733 if (!SWIG_IsOK(ecode2)) {
21734 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
21735 }
21736 arg2 = static_cast< int >(val2);
21737 {
21738 PyThreadState* __tstate = wxPyBeginAllowThreads();
21739 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
21740 wxPyEndAllowThreads(__tstate);
21741 if (PyErr_Occurred()) SWIG_fail;
21742 }
21743 resultobj = SWIG_From_int(static_cast< int >(result));
21744 return resultobj;
21745 fail:
21746 return NULL;
21747 }
21748
21749
21750 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21751 PyObject *resultobj = 0;
21752 wxDC *arg1 = (wxDC *) 0 ;
21753 int arg2 ;
21754 int result;
21755 void *argp1 = 0 ;
21756 int res1 = 0 ;
21757 int val2 ;
21758 int ecode2 = 0 ;
21759 PyObject * obj0 = 0 ;
21760 PyObject * obj1 = 0 ;
21761 char * kwnames[] = {
21762 (char *) "self",(char *) "y", NULL
21763 };
21764
21765 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21766 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21767 if (!SWIG_IsOK(res1)) {
21768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21769 }
21770 arg1 = reinterpret_cast< wxDC * >(argp1);
21771 ecode2 = SWIG_AsVal_int(obj1, &val2);
21772 if (!SWIG_IsOK(ecode2)) {
21773 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
21774 }
21775 arg2 = static_cast< int >(val2);
21776 {
21777 PyThreadState* __tstate = wxPyBeginAllowThreads();
21778 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
21779 wxPyEndAllowThreads(__tstate);
21780 if (PyErr_Occurred()) SWIG_fail;
21781 }
21782 resultobj = SWIG_From_int(static_cast< int >(result));
21783 return resultobj;
21784 fail:
21785 return NULL;
21786 }
21787
21788
21789 SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21790 PyObject *resultobj = 0;
21791 wxDC *arg1 = (wxDC *) 0 ;
21792 bool result;
21793 void *argp1 = 0 ;
21794 int res1 = 0 ;
21795 PyObject *swig_obj[1] ;
21796
21797 if (!args) SWIG_fail;
21798 swig_obj[0] = args;
21799 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21800 if (!SWIG_IsOK(res1)) {
21801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
21802 }
21803 arg1 = reinterpret_cast< wxDC * >(argp1);
21804 {
21805 PyThreadState* __tstate = wxPyBeginAllowThreads();
21806 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
21807 wxPyEndAllowThreads(__tstate);
21808 if (PyErr_Occurred()) SWIG_fail;
21809 }
21810 {
21811 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21812 }
21813 return resultobj;
21814 fail:
21815 return NULL;
21816 }
21817
21818
21819 SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21820 PyObject *resultobj = 0;
21821 wxDC *arg1 = (wxDC *) 0 ;
21822 bool result;
21823 void *argp1 = 0 ;
21824 int res1 = 0 ;
21825 PyObject *swig_obj[1] ;
21826
21827 if (!args) SWIG_fail;
21828 swig_obj[0] = args;
21829 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21830 if (!SWIG_IsOK(res1)) {
21831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
21832 }
21833 arg1 = reinterpret_cast< wxDC * >(argp1);
21834 {
21835 PyThreadState* __tstate = wxPyBeginAllowThreads();
21836 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
21837 wxPyEndAllowThreads(__tstate);
21838 if (PyErr_Occurred()) SWIG_fail;
21839 }
21840 {
21841 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21842 }
21843 return resultobj;
21844 fail:
21845 return NULL;
21846 }
21847
21848
21849 SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21850 PyObject *resultobj = 0;
21851 wxDC *arg1 = (wxDC *) 0 ;
21852 int result;
21853 void *argp1 = 0 ;
21854 int res1 = 0 ;
21855 PyObject *swig_obj[1] ;
21856
21857 if (!args) SWIG_fail;
21858 swig_obj[0] = args;
21859 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21860 if (!SWIG_IsOK(res1)) {
21861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
21862 }
21863 arg1 = reinterpret_cast< wxDC * >(argp1);
21864 {
21865 PyThreadState* __tstate = wxPyBeginAllowThreads();
21866 result = (int)((wxDC const *)arg1)->GetDepth();
21867 wxPyEndAllowThreads(__tstate);
21868 if (PyErr_Occurred()) SWIG_fail;
21869 }
21870 resultobj = SWIG_From_int(static_cast< int >(result));
21871 return resultobj;
21872 fail:
21873 return NULL;
21874 }
21875
21876
21877 SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21878 PyObject *resultobj = 0;
21879 wxDC *arg1 = (wxDC *) 0 ;
21880 wxSize result;
21881 void *argp1 = 0 ;
21882 int res1 = 0 ;
21883 PyObject *swig_obj[1] ;
21884
21885 if (!args) SWIG_fail;
21886 swig_obj[0] = args;
21887 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21888 if (!SWIG_IsOK(res1)) {
21889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
21890 }
21891 arg1 = reinterpret_cast< wxDC * >(argp1);
21892 {
21893 PyThreadState* __tstate = wxPyBeginAllowThreads();
21894 result = ((wxDC const *)arg1)->GetPPI();
21895 wxPyEndAllowThreads(__tstate);
21896 if (PyErr_Occurred()) SWIG_fail;
21897 }
21898 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21899 return resultobj;
21900 fail:
21901 return NULL;
21902 }
21903
21904
21905 SWIGINTERN PyObject *_wrap_DC_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21906 PyObject *resultobj = 0;
21907 wxDC *arg1 = (wxDC *) 0 ;
21908 bool result;
21909 void *argp1 = 0 ;
21910 int res1 = 0 ;
21911 PyObject *swig_obj[1] ;
21912
21913 if (!args) SWIG_fail;
21914 swig_obj[0] = args;
21915 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21916 if (!SWIG_IsOK(res1)) {
21917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Ok" "', expected argument " "1"" of type '" "wxDC const *""'");
21918 }
21919 arg1 = reinterpret_cast< wxDC * >(argp1);
21920 {
21921 PyThreadState* __tstate = wxPyBeginAllowThreads();
21922 result = (bool)((wxDC const *)arg1)->Ok();
21923 wxPyEndAllowThreads(__tstate);
21924 if (PyErr_Occurred()) SWIG_fail;
21925 }
21926 {
21927 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21928 }
21929 return resultobj;
21930 fail:
21931 return NULL;
21932 }
21933
21934
21935 SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21936 PyObject *resultobj = 0;
21937 wxDC *arg1 = (wxDC *) 0 ;
21938 int result;
21939 void *argp1 = 0 ;
21940 int res1 = 0 ;
21941 PyObject *swig_obj[1] ;
21942
21943 if (!args) SWIG_fail;
21944 swig_obj[0] = args;
21945 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21946 if (!SWIG_IsOK(res1)) {
21947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
21948 }
21949 arg1 = reinterpret_cast< wxDC * >(argp1);
21950 {
21951 PyThreadState* __tstate = wxPyBeginAllowThreads();
21952 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
21953 wxPyEndAllowThreads(__tstate);
21954 if (PyErr_Occurred()) SWIG_fail;
21955 }
21956 resultobj = SWIG_From_int(static_cast< int >(result));
21957 return resultobj;
21958 fail:
21959 return NULL;
21960 }
21961
21962
21963 SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21964 PyObject *resultobj = 0;
21965 wxDC *arg1 = (wxDC *) 0 ;
21966 wxBrush *result = 0 ;
21967 void *argp1 = 0 ;
21968 int res1 = 0 ;
21969 PyObject *swig_obj[1] ;
21970
21971 if (!args) SWIG_fail;
21972 swig_obj[0] = args;
21973 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21974 if (!SWIG_IsOK(res1)) {
21975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
21976 }
21977 arg1 = reinterpret_cast< wxDC * >(argp1);
21978 {
21979 PyThreadState* __tstate = wxPyBeginAllowThreads();
21980 {
21981 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
21982 result = (wxBrush *) &_result_ref;
21983 }
21984 wxPyEndAllowThreads(__tstate);
21985 if (PyErr_Occurred()) SWIG_fail;
21986 }
21987 {
21988 wxBrush* resultptr = new wxBrush(*result);
21989 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21990 }
21991 return resultobj;
21992 fail:
21993 return NULL;
21994 }
21995
21996
21997 SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21998 PyObject *resultobj = 0;
21999 wxDC *arg1 = (wxDC *) 0 ;
22000 wxBrush *result = 0 ;
22001 void *argp1 = 0 ;
22002 int res1 = 0 ;
22003 PyObject *swig_obj[1] ;
22004
22005 if (!args) SWIG_fail;
22006 swig_obj[0] = args;
22007 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22008 if (!SWIG_IsOK(res1)) {
22009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
22010 }
22011 arg1 = reinterpret_cast< wxDC * >(argp1);
22012 {
22013 PyThreadState* __tstate = wxPyBeginAllowThreads();
22014 {
22015 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
22016 result = (wxBrush *) &_result_ref;
22017 }
22018 wxPyEndAllowThreads(__tstate);
22019 if (PyErr_Occurred()) SWIG_fail;
22020 }
22021 {
22022 wxBrush* resultptr = new wxBrush(*result);
22023 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
22024 }
22025 return resultobj;
22026 fail:
22027 return NULL;
22028 }
22029
22030
22031 SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22032 PyObject *resultobj = 0;
22033 wxDC *arg1 = (wxDC *) 0 ;
22034 wxFont *result = 0 ;
22035 void *argp1 = 0 ;
22036 int res1 = 0 ;
22037 PyObject *swig_obj[1] ;
22038
22039 if (!args) SWIG_fail;
22040 swig_obj[0] = args;
22041 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22042 if (!SWIG_IsOK(res1)) {
22043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
22044 }
22045 arg1 = reinterpret_cast< wxDC * >(argp1);
22046 {
22047 PyThreadState* __tstate = wxPyBeginAllowThreads();
22048 {
22049 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
22050 result = (wxFont *) &_result_ref;
22051 }
22052 wxPyEndAllowThreads(__tstate);
22053 if (PyErr_Occurred()) SWIG_fail;
22054 }
22055 {
22056 wxFont* resultptr = new wxFont(*result);
22057 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
22058 }
22059 return resultobj;
22060 fail:
22061 return NULL;
22062 }
22063
22064
22065 SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22066 PyObject *resultobj = 0;
22067 wxDC *arg1 = (wxDC *) 0 ;
22068 wxPen *result = 0 ;
22069 void *argp1 = 0 ;
22070 int res1 = 0 ;
22071 PyObject *swig_obj[1] ;
22072
22073 if (!args) SWIG_fail;
22074 swig_obj[0] = args;
22075 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22076 if (!SWIG_IsOK(res1)) {
22077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
22078 }
22079 arg1 = reinterpret_cast< wxDC * >(argp1);
22080 {
22081 PyThreadState* __tstate = wxPyBeginAllowThreads();
22082 {
22083 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
22084 result = (wxPen *) &_result_ref;
22085 }
22086 wxPyEndAllowThreads(__tstate);
22087 if (PyErr_Occurred()) SWIG_fail;
22088 }
22089 {
22090 wxPen* resultptr = new wxPen(*result);
22091 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
22092 }
22093 return resultobj;
22094 fail:
22095 return NULL;
22096 }
22097
22098
22099 SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22100 PyObject *resultobj = 0;
22101 wxDC *arg1 = (wxDC *) 0 ;
22102 wxColour *result = 0 ;
22103 void *argp1 = 0 ;
22104 int res1 = 0 ;
22105 PyObject *swig_obj[1] ;
22106
22107 if (!args) SWIG_fail;
22108 swig_obj[0] = args;
22109 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22110 if (!SWIG_IsOK(res1)) {
22111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
22112 }
22113 arg1 = reinterpret_cast< wxDC * >(argp1);
22114 {
22115 PyThreadState* __tstate = wxPyBeginAllowThreads();
22116 {
22117 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
22118 result = (wxColour *) &_result_ref;
22119 }
22120 wxPyEndAllowThreads(__tstate);
22121 if (PyErr_Occurred()) SWIG_fail;
22122 }
22123 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22124 return resultobj;
22125 fail:
22126 return NULL;
22127 }
22128
22129
22130 SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22131 PyObject *resultobj = 0;
22132 wxDC *arg1 = (wxDC *) 0 ;
22133 wxColour *result = 0 ;
22134 void *argp1 = 0 ;
22135 int res1 = 0 ;
22136 PyObject *swig_obj[1] ;
22137
22138 if (!args) SWIG_fail;
22139 swig_obj[0] = args;
22140 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22141 if (!SWIG_IsOK(res1)) {
22142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
22143 }
22144 arg1 = reinterpret_cast< wxDC * >(argp1);
22145 {
22146 PyThreadState* __tstate = wxPyBeginAllowThreads();
22147 {
22148 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
22149 result = (wxColour *) &_result_ref;
22150 }
22151 wxPyEndAllowThreads(__tstate);
22152 if (PyErr_Occurred()) SWIG_fail;
22153 }
22154 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22155 return resultobj;
22156 fail:
22157 return NULL;
22158 }
22159
22160
22161 SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22162 PyObject *resultobj = 0;
22163 wxDC *arg1 = (wxDC *) 0 ;
22164 wxColour *arg2 = 0 ;
22165 void *argp1 = 0 ;
22166 int res1 = 0 ;
22167 wxColour temp2 ;
22168 PyObject * obj0 = 0 ;
22169 PyObject * obj1 = 0 ;
22170 char * kwnames[] = {
22171 (char *) "self",(char *) "colour", NULL
22172 };
22173
22174 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
22175 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22176 if (!SWIG_IsOK(res1)) {
22177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
22178 }
22179 arg1 = reinterpret_cast< wxDC * >(argp1);
22180 {
22181 arg2 = &temp2;
22182 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22183 }
22184 {
22185 PyThreadState* __tstate = wxPyBeginAllowThreads();
22186 (arg1)->SetTextForeground((wxColour const &)*arg2);
22187 wxPyEndAllowThreads(__tstate);
22188 if (PyErr_Occurred()) SWIG_fail;
22189 }
22190 resultobj = SWIG_Py_Void();
22191 return resultobj;
22192 fail:
22193 return NULL;
22194 }
22195
22196
22197 SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22198 PyObject *resultobj = 0;
22199 wxDC *arg1 = (wxDC *) 0 ;
22200 wxColour *arg2 = 0 ;
22201 void *argp1 = 0 ;
22202 int res1 = 0 ;
22203 wxColour temp2 ;
22204 PyObject * obj0 = 0 ;
22205 PyObject * obj1 = 0 ;
22206 char * kwnames[] = {
22207 (char *) "self",(char *) "colour", NULL
22208 };
22209
22210 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
22211 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22212 if (!SWIG_IsOK(res1)) {
22213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
22214 }
22215 arg1 = reinterpret_cast< wxDC * >(argp1);
22216 {
22217 arg2 = &temp2;
22218 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22219 }
22220 {
22221 PyThreadState* __tstate = wxPyBeginAllowThreads();
22222 (arg1)->SetTextBackground((wxColour const &)*arg2);
22223 wxPyEndAllowThreads(__tstate);
22224 if (PyErr_Occurred()) SWIG_fail;
22225 }
22226 resultobj = SWIG_Py_Void();
22227 return resultobj;
22228 fail:
22229 return NULL;
22230 }
22231
22232
22233 SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22234 PyObject *resultobj = 0;
22235 wxDC *arg1 = (wxDC *) 0 ;
22236 int result;
22237 void *argp1 = 0 ;
22238 int res1 = 0 ;
22239 PyObject *swig_obj[1] ;
22240
22241 if (!args) SWIG_fail;
22242 swig_obj[0] = args;
22243 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22244 if (!SWIG_IsOK(res1)) {
22245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
22246 }
22247 arg1 = reinterpret_cast< wxDC * >(argp1);
22248 {
22249 PyThreadState* __tstate = wxPyBeginAllowThreads();
22250 result = (int)((wxDC const *)arg1)->GetMapMode();
22251 wxPyEndAllowThreads(__tstate);
22252 if (PyErr_Occurred()) SWIG_fail;
22253 }
22254 resultobj = SWIG_From_int(static_cast< int >(result));
22255 return resultobj;
22256 fail:
22257 return NULL;
22258 }
22259
22260
22261 SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22262 PyObject *resultobj = 0;
22263 wxDC *arg1 = (wxDC *) 0 ;
22264 int arg2 ;
22265 void *argp1 = 0 ;
22266 int res1 = 0 ;
22267 int val2 ;
22268 int ecode2 = 0 ;
22269 PyObject * obj0 = 0 ;
22270 PyObject * obj1 = 0 ;
22271 char * kwnames[] = {
22272 (char *) "self",(char *) "mode", NULL
22273 };
22274
22275 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
22276 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22277 if (!SWIG_IsOK(res1)) {
22278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
22279 }
22280 arg1 = reinterpret_cast< wxDC * >(argp1);
22281 ecode2 = SWIG_AsVal_int(obj1, &val2);
22282 if (!SWIG_IsOK(ecode2)) {
22283 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
22284 }
22285 arg2 = static_cast< int >(val2);
22286 {
22287 PyThreadState* __tstate = wxPyBeginAllowThreads();
22288 (arg1)->SetMapMode(arg2);
22289 wxPyEndAllowThreads(__tstate);
22290 if (PyErr_Occurred()) SWIG_fail;
22291 }
22292 resultobj = SWIG_Py_Void();
22293 return resultobj;
22294 fail:
22295 return NULL;
22296 }
22297
22298
22299 SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22300 PyObject *resultobj = 0;
22301 wxDC *arg1 = (wxDC *) 0 ;
22302 double *arg2 = (double *) 0 ;
22303 double *arg3 = (double *) 0 ;
22304 void *argp1 = 0 ;
22305 int res1 = 0 ;
22306 double temp2 ;
22307 int res2 = SWIG_TMPOBJ ;
22308 double temp3 ;
22309 int res3 = SWIG_TMPOBJ ;
22310 PyObject *swig_obj[1] ;
22311
22312 arg2 = &temp2;
22313 arg3 = &temp3;
22314 if (!args) SWIG_fail;
22315 swig_obj[0] = args;
22316 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22317 if (!SWIG_IsOK(res1)) {
22318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
22319 }
22320 arg1 = reinterpret_cast< wxDC * >(argp1);
22321 {
22322 PyThreadState* __tstate = wxPyBeginAllowThreads();
22323 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
22324 wxPyEndAllowThreads(__tstate);
22325 if (PyErr_Occurred()) SWIG_fail;
22326 }
22327 resultobj = SWIG_Py_Void();
22328 if (SWIG_IsTmpObj(res2)) {
22329 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22330 } else {
22331 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22332 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22333 }
22334 if (SWIG_IsTmpObj(res3)) {
22335 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22336 } else {
22337 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22338 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22339 }
22340 return resultobj;
22341 fail:
22342 return NULL;
22343 }
22344
22345
22346 SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22347 PyObject *resultobj = 0;
22348 wxDC *arg1 = (wxDC *) 0 ;
22349 double arg2 ;
22350 double arg3 ;
22351 void *argp1 = 0 ;
22352 int res1 = 0 ;
22353 double val2 ;
22354 int ecode2 = 0 ;
22355 double val3 ;
22356 int ecode3 = 0 ;
22357 PyObject * obj0 = 0 ;
22358 PyObject * obj1 = 0 ;
22359 PyObject * obj2 = 0 ;
22360 char * kwnames[] = {
22361 (char *) "self",(char *) "x",(char *) "y", NULL
22362 };
22363
22364 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22365 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22366 if (!SWIG_IsOK(res1)) {
22367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
22368 }
22369 arg1 = reinterpret_cast< wxDC * >(argp1);
22370 ecode2 = SWIG_AsVal_double(obj1, &val2);
22371 if (!SWIG_IsOK(ecode2)) {
22372 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
22373 }
22374 arg2 = static_cast< double >(val2);
22375 ecode3 = SWIG_AsVal_double(obj2, &val3);
22376 if (!SWIG_IsOK(ecode3)) {
22377 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
22378 }
22379 arg3 = static_cast< double >(val3);
22380 {
22381 PyThreadState* __tstate = wxPyBeginAllowThreads();
22382 (arg1)->SetUserScale(arg2,arg3);
22383 wxPyEndAllowThreads(__tstate);
22384 if (PyErr_Occurred()) SWIG_fail;
22385 }
22386 resultobj = SWIG_Py_Void();
22387 return resultobj;
22388 fail:
22389 return NULL;
22390 }
22391
22392
22393 SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22394 PyObject *resultobj = 0;
22395 wxDC *arg1 = (wxDC *) 0 ;
22396 double *arg2 = (double *) 0 ;
22397 double *arg3 = (double *) 0 ;
22398 void *argp1 = 0 ;
22399 int res1 = 0 ;
22400 double temp2 ;
22401 int res2 = SWIG_TMPOBJ ;
22402 double temp3 ;
22403 int res3 = SWIG_TMPOBJ ;
22404 PyObject *swig_obj[1] ;
22405
22406 arg2 = &temp2;
22407 arg3 = &temp3;
22408 if (!args) SWIG_fail;
22409 swig_obj[0] = args;
22410 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22411 if (!SWIG_IsOK(res1)) {
22412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22413 }
22414 arg1 = reinterpret_cast< wxDC * >(argp1);
22415 {
22416 PyThreadState* __tstate = wxPyBeginAllowThreads();
22417 (arg1)->GetLogicalScale(arg2,arg3);
22418 wxPyEndAllowThreads(__tstate);
22419 if (PyErr_Occurred()) SWIG_fail;
22420 }
22421 resultobj = SWIG_Py_Void();
22422 if (SWIG_IsTmpObj(res2)) {
22423 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22424 } else {
22425 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22426 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22427 }
22428 if (SWIG_IsTmpObj(res3)) {
22429 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22430 } else {
22431 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22432 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22433 }
22434 return resultobj;
22435 fail:
22436 return NULL;
22437 }
22438
22439
22440 SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22441 PyObject *resultobj = 0;
22442 wxDC *arg1 = (wxDC *) 0 ;
22443 double arg2 ;
22444 double arg3 ;
22445 void *argp1 = 0 ;
22446 int res1 = 0 ;
22447 double val2 ;
22448 int ecode2 = 0 ;
22449 double val3 ;
22450 int ecode3 = 0 ;
22451 PyObject * obj0 = 0 ;
22452 PyObject * obj1 = 0 ;
22453 PyObject * obj2 = 0 ;
22454 char * kwnames[] = {
22455 (char *) "self",(char *) "x",(char *) "y", NULL
22456 };
22457
22458 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22459 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22460 if (!SWIG_IsOK(res1)) {
22461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22462 }
22463 arg1 = reinterpret_cast< wxDC * >(argp1);
22464 ecode2 = SWIG_AsVal_double(obj1, &val2);
22465 if (!SWIG_IsOK(ecode2)) {
22466 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
22467 }
22468 arg2 = static_cast< double >(val2);
22469 ecode3 = SWIG_AsVal_double(obj2, &val3);
22470 if (!SWIG_IsOK(ecode3)) {
22471 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
22472 }
22473 arg3 = static_cast< double >(val3);
22474 {
22475 PyThreadState* __tstate = wxPyBeginAllowThreads();
22476 (arg1)->SetLogicalScale(arg2,arg3);
22477 wxPyEndAllowThreads(__tstate);
22478 if (PyErr_Occurred()) SWIG_fail;
22479 }
22480 resultobj = SWIG_Py_Void();
22481 return resultobj;
22482 fail:
22483 return NULL;
22484 }
22485
22486
22487 SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22488 PyObject *resultobj = 0;
22489 wxDC *arg1 = (wxDC *) 0 ;
22490 wxPoint result;
22491 void *argp1 = 0 ;
22492 int res1 = 0 ;
22493 PyObject *swig_obj[1] ;
22494
22495 if (!args) SWIG_fail;
22496 swig_obj[0] = args;
22497 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22498 if (!SWIG_IsOK(res1)) {
22499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22500 }
22501 arg1 = reinterpret_cast< wxDC * >(argp1);
22502 {
22503 PyThreadState* __tstate = wxPyBeginAllowThreads();
22504 result = ((wxDC const *)arg1)->GetLogicalOrigin();
22505 wxPyEndAllowThreads(__tstate);
22506 if (PyErr_Occurred()) SWIG_fail;
22507 }
22508 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22509 return resultobj;
22510 fail:
22511 return NULL;
22512 }
22513
22514
22515 SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22516 PyObject *resultobj = 0;
22517 wxDC *arg1 = (wxDC *) 0 ;
22518 int *arg2 = (int *) 0 ;
22519 int *arg3 = (int *) 0 ;
22520 void *argp1 = 0 ;
22521 int res1 = 0 ;
22522 int temp2 ;
22523 int res2 = SWIG_TMPOBJ ;
22524 int temp3 ;
22525 int res3 = SWIG_TMPOBJ ;
22526 PyObject *swig_obj[1] ;
22527
22528 arg2 = &temp2;
22529 arg3 = &temp3;
22530 if (!args) SWIG_fail;
22531 swig_obj[0] = args;
22532 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22533 if (!SWIG_IsOK(res1)) {
22534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22535 }
22536 arg1 = reinterpret_cast< wxDC * >(argp1);
22537 {
22538 PyThreadState* __tstate = wxPyBeginAllowThreads();
22539 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
22540 wxPyEndAllowThreads(__tstate);
22541 if (PyErr_Occurred()) SWIG_fail;
22542 }
22543 resultobj = SWIG_Py_Void();
22544 if (SWIG_IsTmpObj(res2)) {
22545 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22546 } else {
22547 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22548 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22549 }
22550 if (SWIG_IsTmpObj(res3)) {
22551 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22552 } else {
22553 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22554 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22555 }
22556 return resultobj;
22557 fail:
22558 return NULL;
22559 }
22560
22561
22562 SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22563 PyObject *resultobj = 0;
22564 wxDC *arg1 = (wxDC *) 0 ;
22565 int arg2 ;
22566 int arg3 ;
22567 void *argp1 = 0 ;
22568 int res1 = 0 ;
22569 int val2 ;
22570 int ecode2 = 0 ;
22571 int val3 ;
22572 int ecode3 = 0 ;
22573 PyObject * obj0 = 0 ;
22574 PyObject * obj1 = 0 ;
22575 PyObject * obj2 = 0 ;
22576 char * kwnames[] = {
22577 (char *) "self",(char *) "x",(char *) "y", NULL
22578 };
22579
22580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22581 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22582 if (!SWIG_IsOK(res1)) {
22583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22584 }
22585 arg1 = reinterpret_cast< wxDC * >(argp1);
22586 ecode2 = SWIG_AsVal_int(obj1, &val2);
22587 if (!SWIG_IsOK(ecode2)) {
22588 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
22589 }
22590 arg2 = static_cast< int >(val2);
22591 ecode3 = SWIG_AsVal_int(obj2, &val3);
22592 if (!SWIG_IsOK(ecode3)) {
22593 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
22594 }
22595 arg3 = static_cast< int >(val3);
22596 {
22597 PyThreadState* __tstate = wxPyBeginAllowThreads();
22598 (arg1)->SetLogicalOrigin(arg2,arg3);
22599 wxPyEndAllowThreads(__tstate);
22600 if (PyErr_Occurred()) SWIG_fail;
22601 }
22602 resultobj = SWIG_Py_Void();
22603 return resultobj;
22604 fail:
22605 return NULL;
22606 }
22607
22608
22609 SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22610 PyObject *resultobj = 0;
22611 wxDC *arg1 = (wxDC *) 0 ;
22612 wxPoint *arg2 = 0 ;
22613 void *argp1 = 0 ;
22614 int res1 = 0 ;
22615 wxPoint temp2 ;
22616 PyObject * obj0 = 0 ;
22617 PyObject * obj1 = 0 ;
22618 char * kwnames[] = {
22619 (char *) "self",(char *) "point", NULL
22620 };
22621
22622 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22623 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22624 if (!SWIG_IsOK(res1)) {
22625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22626 }
22627 arg1 = reinterpret_cast< wxDC * >(argp1);
22628 {
22629 arg2 = &temp2;
22630 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22631 }
22632 {
22633 PyThreadState* __tstate = wxPyBeginAllowThreads();
22634 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
22635 wxPyEndAllowThreads(__tstate);
22636 if (PyErr_Occurred()) SWIG_fail;
22637 }
22638 resultobj = SWIG_Py_Void();
22639 return resultobj;
22640 fail:
22641 return NULL;
22642 }
22643
22644
22645 SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22646 PyObject *resultobj = 0;
22647 wxDC *arg1 = (wxDC *) 0 ;
22648 wxPoint result;
22649 void *argp1 = 0 ;
22650 int res1 = 0 ;
22651 PyObject *swig_obj[1] ;
22652
22653 if (!args) SWIG_fail;
22654 swig_obj[0] = args;
22655 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22656 if (!SWIG_IsOK(res1)) {
22657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22658 }
22659 arg1 = reinterpret_cast< wxDC * >(argp1);
22660 {
22661 PyThreadState* __tstate = wxPyBeginAllowThreads();
22662 result = ((wxDC const *)arg1)->GetDeviceOrigin();
22663 wxPyEndAllowThreads(__tstate);
22664 if (PyErr_Occurred()) SWIG_fail;
22665 }
22666 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22667 return resultobj;
22668 fail:
22669 return NULL;
22670 }
22671
22672
22673 SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22674 PyObject *resultobj = 0;
22675 wxDC *arg1 = (wxDC *) 0 ;
22676 int *arg2 = (int *) 0 ;
22677 int *arg3 = (int *) 0 ;
22678 void *argp1 = 0 ;
22679 int res1 = 0 ;
22680 int temp2 ;
22681 int res2 = SWIG_TMPOBJ ;
22682 int temp3 ;
22683 int res3 = SWIG_TMPOBJ ;
22684 PyObject *swig_obj[1] ;
22685
22686 arg2 = &temp2;
22687 arg3 = &temp3;
22688 if (!args) SWIG_fail;
22689 swig_obj[0] = args;
22690 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22691 if (!SWIG_IsOK(res1)) {
22692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22693 }
22694 arg1 = reinterpret_cast< wxDC * >(argp1);
22695 {
22696 PyThreadState* __tstate = wxPyBeginAllowThreads();
22697 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
22698 wxPyEndAllowThreads(__tstate);
22699 if (PyErr_Occurred()) SWIG_fail;
22700 }
22701 resultobj = SWIG_Py_Void();
22702 if (SWIG_IsTmpObj(res2)) {
22703 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22704 } else {
22705 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22706 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22707 }
22708 if (SWIG_IsTmpObj(res3)) {
22709 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22710 } else {
22711 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22712 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22713 }
22714 return resultobj;
22715 fail:
22716 return NULL;
22717 }
22718
22719
22720 SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22721 PyObject *resultobj = 0;
22722 wxDC *arg1 = (wxDC *) 0 ;
22723 int arg2 ;
22724 int arg3 ;
22725 void *argp1 = 0 ;
22726 int res1 = 0 ;
22727 int val2 ;
22728 int ecode2 = 0 ;
22729 int val3 ;
22730 int ecode3 = 0 ;
22731 PyObject * obj0 = 0 ;
22732 PyObject * obj1 = 0 ;
22733 PyObject * obj2 = 0 ;
22734 char * kwnames[] = {
22735 (char *) "self",(char *) "x",(char *) "y", NULL
22736 };
22737
22738 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22739 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22740 if (!SWIG_IsOK(res1)) {
22741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22742 }
22743 arg1 = reinterpret_cast< wxDC * >(argp1);
22744 ecode2 = SWIG_AsVal_int(obj1, &val2);
22745 if (!SWIG_IsOK(ecode2)) {
22746 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
22747 }
22748 arg2 = static_cast< int >(val2);
22749 ecode3 = SWIG_AsVal_int(obj2, &val3);
22750 if (!SWIG_IsOK(ecode3)) {
22751 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
22752 }
22753 arg3 = static_cast< int >(val3);
22754 {
22755 PyThreadState* __tstate = wxPyBeginAllowThreads();
22756 (arg1)->SetDeviceOrigin(arg2,arg3);
22757 wxPyEndAllowThreads(__tstate);
22758 if (PyErr_Occurred()) SWIG_fail;
22759 }
22760 resultobj = SWIG_Py_Void();
22761 return resultobj;
22762 fail:
22763 return NULL;
22764 }
22765
22766
22767 SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22768 PyObject *resultobj = 0;
22769 wxDC *arg1 = (wxDC *) 0 ;
22770 wxPoint *arg2 = 0 ;
22771 void *argp1 = 0 ;
22772 int res1 = 0 ;
22773 wxPoint temp2 ;
22774 PyObject * obj0 = 0 ;
22775 PyObject * obj1 = 0 ;
22776 char * kwnames[] = {
22777 (char *) "self",(char *) "point", NULL
22778 };
22779
22780 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22781 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22782 if (!SWIG_IsOK(res1)) {
22783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22784 }
22785 arg1 = reinterpret_cast< wxDC * >(argp1);
22786 {
22787 arg2 = &temp2;
22788 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22789 }
22790 {
22791 PyThreadState* __tstate = wxPyBeginAllowThreads();
22792 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
22793 wxPyEndAllowThreads(__tstate);
22794 if (PyErr_Occurred()) SWIG_fail;
22795 }
22796 resultobj = SWIG_Py_Void();
22797 return resultobj;
22798 fail:
22799 return NULL;
22800 }
22801
22802
22803 SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22804 PyObject *resultobj = 0;
22805 wxDC *arg1 = (wxDC *) 0 ;
22806 bool arg2 ;
22807 bool arg3 ;
22808 void *argp1 = 0 ;
22809 int res1 = 0 ;
22810 bool val2 ;
22811 int ecode2 = 0 ;
22812 bool val3 ;
22813 int ecode3 = 0 ;
22814 PyObject * obj0 = 0 ;
22815 PyObject * obj1 = 0 ;
22816 PyObject * obj2 = 0 ;
22817 char * kwnames[] = {
22818 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
22819 };
22820
22821 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22822 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22823 if (!SWIG_IsOK(res1)) {
22824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
22825 }
22826 arg1 = reinterpret_cast< wxDC * >(argp1);
22827 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22828 if (!SWIG_IsOK(ecode2)) {
22829 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
22830 }
22831 arg2 = static_cast< bool >(val2);
22832 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22833 if (!SWIG_IsOK(ecode3)) {
22834 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
22835 }
22836 arg3 = static_cast< bool >(val3);
22837 {
22838 PyThreadState* __tstate = wxPyBeginAllowThreads();
22839 (arg1)->SetAxisOrientation(arg2,arg3);
22840 wxPyEndAllowThreads(__tstate);
22841 if (PyErr_Occurred()) SWIG_fail;
22842 }
22843 resultobj = SWIG_Py_Void();
22844 return resultobj;
22845 fail:
22846 return NULL;
22847 }
22848
22849
22850 SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22851 PyObject *resultobj = 0;
22852 wxDC *arg1 = (wxDC *) 0 ;
22853 int result;
22854 void *argp1 = 0 ;
22855 int res1 = 0 ;
22856 PyObject *swig_obj[1] ;
22857
22858 if (!args) SWIG_fail;
22859 swig_obj[0] = args;
22860 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22861 if (!SWIG_IsOK(res1)) {
22862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
22863 }
22864 arg1 = reinterpret_cast< wxDC * >(argp1);
22865 {
22866 PyThreadState* __tstate = wxPyBeginAllowThreads();
22867 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
22868 wxPyEndAllowThreads(__tstate);
22869 if (PyErr_Occurred()) SWIG_fail;
22870 }
22871 resultobj = SWIG_From_int(static_cast< int >(result));
22872 return resultobj;
22873 fail:
22874 return NULL;
22875 }
22876
22877
22878 SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22879 PyObject *resultobj = 0;
22880 wxDC *arg1 = (wxDC *) 0 ;
22881 int arg2 ;
22882 void *argp1 = 0 ;
22883 int res1 = 0 ;
22884 int val2 ;
22885 int ecode2 = 0 ;
22886 PyObject * obj0 = 0 ;
22887 PyObject * obj1 = 0 ;
22888 char * kwnames[] = {
22889 (char *) "self",(char *) "function", NULL
22890 };
22891
22892 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
22893 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22894 if (!SWIG_IsOK(res1)) {
22895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
22896 }
22897 arg1 = reinterpret_cast< wxDC * >(argp1);
22898 ecode2 = SWIG_AsVal_int(obj1, &val2);
22899 if (!SWIG_IsOK(ecode2)) {
22900 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
22901 }
22902 arg2 = static_cast< int >(val2);
22903 {
22904 PyThreadState* __tstate = wxPyBeginAllowThreads();
22905 (arg1)->SetLogicalFunction(arg2);
22906 wxPyEndAllowThreads(__tstate);
22907 if (PyErr_Occurred()) SWIG_fail;
22908 }
22909 resultobj = SWIG_Py_Void();
22910 return resultobj;
22911 fail:
22912 return NULL;
22913 }
22914
22915
22916 SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22917 PyObject *resultobj = 0;
22918 wxDC *arg1 = (wxDC *) 0 ;
22919 void *argp1 = 0 ;
22920 int res1 = 0 ;
22921 PyObject *swig_obj[1] ;
22922
22923 if (!args) SWIG_fail;
22924 swig_obj[0] = args;
22925 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22926 if (!SWIG_IsOK(res1)) {
22927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22928 }
22929 arg1 = reinterpret_cast< wxDC * >(argp1);
22930 {
22931 PyThreadState* __tstate = wxPyBeginAllowThreads();
22932 (arg1)->ComputeScaleAndOrigin();
22933 wxPyEndAllowThreads(__tstate);
22934 if (PyErr_Occurred()) SWIG_fail;
22935 }
22936 resultobj = SWIG_Py_Void();
22937 return resultobj;
22938 fail:
22939 return NULL;
22940 }
22941
22942
22943 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22944 PyObject *resultobj = 0;
22945 wxDC *arg1 = (wxDC *) 0 ;
22946 int arg2 ;
22947 int arg3 ;
22948 void *argp1 = 0 ;
22949 int res1 = 0 ;
22950 int val2 ;
22951 int ecode2 = 0 ;
22952 int val3 ;
22953 int ecode3 = 0 ;
22954 PyObject * obj0 = 0 ;
22955 PyObject * obj1 = 0 ;
22956 PyObject * obj2 = 0 ;
22957 char * kwnames[] = {
22958 (char *) "self",(char *) "x",(char *) "y", NULL
22959 };
22960
22961 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22962 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22963 if (!SWIG_IsOK(res1)) {
22964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22965 }
22966 arg1 = reinterpret_cast< wxDC * >(argp1);
22967 ecode2 = SWIG_AsVal_int(obj1, &val2);
22968 if (!SWIG_IsOK(ecode2)) {
22969 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
22970 }
22971 arg2 = static_cast< int >(val2);
22972 ecode3 = SWIG_AsVal_int(obj2, &val3);
22973 if (!SWIG_IsOK(ecode3)) {
22974 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
22975 }
22976 arg3 = static_cast< int >(val3);
22977 {
22978 PyThreadState* __tstate = wxPyBeginAllowThreads();
22979 (arg1)->CalcBoundingBox(arg2,arg3);
22980 wxPyEndAllowThreads(__tstate);
22981 if (PyErr_Occurred()) SWIG_fail;
22982 }
22983 resultobj = SWIG_Py_Void();
22984 return resultobj;
22985 fail:
22986 return NULL;
22987 }
22988
22989
22990 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22991 PyObject *resultobj = 0;
22992 wxDC *arg1 = (wxDC *) 0 ;
22993 wxPoint *arg2 = 0 ;
22994 void *argp1 = 0 ;
22995 int res1 = 0 ;
22996 wxPoint temp2 ;
22997 PyObject * obj0 = 0 ;
22998 PyObject * obj1 = 0 ;
22999 char * kwnames[] = {
23000 (char *) "self",(char *) "point", NULL
23001 };
23002
23003 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
23004 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23005 if (!SWIG_IsOK(res1)) {
23006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
23007 }
23008 arg1 = reinterpret_cast< wxDC * >(argp1);
23009 {
23010 arg2 = &temp2;
23011 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23012 }
23013 {
23014 PyThreadState* __tstate = wxPyBeginAllowThreads();
23015 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
23016 wxPyEndAllowThreads(__tstate);
23017 if (PyErr_Occurred()) SWIG_fail;
23018 }
23019 resultobj = SWIG_Py_Void();
23020 return resultobj;
23021 fail:
23022 return NULL;
23023 }
23024
23025
23026 SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23027 PyObject *resultobj = 0;
23028 wxDC *arg1 = (wxDC *) 0 ;
23029 void *argp1 = 0 ;
23030 int res1 = 0 ;
23031 PyObject *swig_obj[1] ;
23032
23033 if (!args) SWIG_fail;
23034 swig_obj[0] = args;
23035 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23036 if (!SWIG_IsOK(res1)) {
23037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23038 }
23039 arg1 = reinterpret_cast< wxDC * >(argp1);
23040 {
23041 PyThreadState* __tstate = wxPyBeginAllowThreads();
23042 (arg1)->ResetBoundingBox();
23043 wxPyEndAllowThreads(__tstate);
23044 if (PyErr_Occurred()) SWIG_fail;
23045 }
23046 resultobj = SWIG_Py_Void();
23047 return resultobj;
23048 fail:
23049 return NULL;
23050 }
23051
23052
23053 SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23054 PyObject *resultobj = 0;
23055 wxDC *arg1 = (wxDC *) 0 ;
23056 int result;
23057 void *argp1 = 0 ;
23058 int res1 = 0 ;
23059 PyObject *swig_obj[1] ;
23060
23061 if (!args) SWIG_fail;
23062 swig_obj[0] = args;
23063 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23064 if (!SWIG_IsOK(res1)) {
23065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
23066 }
23067 arg1 = reinterpret_cast< wxDC * >(argp1);
23068 {
23069 PyThreadState* __tstate = wxPyBeginAllowThreads();
23070 result = (int)((wxDC const *)arg1)->MinX();
23071 wxPyEndAllowThreads(__tstate);
23072 if (PyErr_Occurred()) SWIG_fail;
23073 }
23074 resultobj = SWIG_From_int(static_cast< int >(result));
23075 return resultobj;
23076 fail:
23077 return NULL;
23078 }
23079
23080
23081 SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23082 PyObject *resultobj = 0;
23083 wxDC *arg1 = (wxDC *) 0 ;
23084 int result;
23085 void *argp1 = 0 ;
23086 int res1 = 0 ;
23087 PyObject *swig_obj[1] ;
23088
23089 if (!args) SWIG_fail;
23090 swig_obj[0] = args;
23091 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23092 if (!SWIG_IsOK(res1)) {
23093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
23094 }
23095 arg1 = reinterpret_cast< wxDC * >(argp1);
23096 {
23097 PyThreadState* __tstate = wxPyBeginAllowThreads();
23098 result = (int)((wxDC const *)arg1)->MaxX();
23099 wxPyEndAllowThreads(__tstate);
23100 if (PyErr_Occurred()) SWIG_fail;
23101 }
23102 resultobj = SWIG_From_int(static_cast< int >(result));
23103 return resultobj;
23104 fail:
23105 return NULL;
23106 }
23107
23108
23109 SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23110 PyObject *resultobj = 0;
23111 wxDC *arg1 = (wxDC *) 0 ;
23112 int result;
23113 void *argp1 = 0 ;
23114 int res1 = 0 ;
23115 PyObject *swig_obj[1] ;
23116
23117 if (!args) SWIG_fail;
23118 swig_obj[0] = args;
23119 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23120 if (!SWIG_IsOK(res1)) {
23121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
23122 }
23123 arg1 = reinterpret_cast< wxDC * >(argp1);
23124 {
23125 PyThreadState* __tstate = wxPyBeginAllowThreads();
23126 result = (int)((wxDC const *)arg1)->MinY();
23127 wxPyEndAllowThreads(__tstate);
23128 if (PyErr_Occurred()) SWIG_fail;
23129 }
23130 resultobj = SWIG_From_int(static_cast< int >(result));
23131 return resultobj;
23132 fail:
23133 return NULL;
23134 }
23135
23136
23137 SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23138 PyObject *resultobj = 0;
23139 wxDC *arg1 = (wxDC *) 0 ;
23140 int result;
23141 void *argp1 = 0 ;
23142 int res1 = 0 ;
23143 PyObject *swig_obj[1] ;
23144
23145 if (!args) SWIG_fail;
23146 swig_obj[0] = args;
23147 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23148 if (!SWIG_IsOK(res1)) {
23149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
23150 }
23151 arg1 = reinterpret_cast< wxDC * >(argp1);
23152 {
23153 PyThreadState* __tstate = wxPyBeginAllowThreads();
23154 result = (int)((wxDC const *)arg1)->MaxY();
23155 wxPyEndAllowThreads(__tstate);
23156 if (PyErr_Occurred()) SWIG_fail;
23157 }
23158 resultobj = SWIG_From_int(static_cast< int >(result));
23159 return resultobj;
23160 fail:
23161 return NULL;
23162 }
23163
23164
23165 SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23166 PyObject *resultobj = 0;
23167 wxDC *arg1 = (wxDC *) 0 ;
23168 int *arg2 = (int *) 0 ;
23169 int *arg3 = (int *) 0 ;
23170 int *arg4 = (int *) 0 ;
23171 int *arg5 = (int *) 0 ;
23172 void *argp1 = 0 ;
23173 int res1 = 0 ;
23174 int temp2 ;
23175 int res2 = SWIG_TMPOBJ ;
23176 int temp3 ;
23177 int res3 = SWIG_TMPOBJ ;
23178 int temp4 ;
23179 int res4 = SWIG_TMPOBJ ;
23180 int temp5 ;
23181 int res5 = SWIG_TMPOBJ ;
23182 PyObject *swig_obj[1] ;
23183
23184 arg2 = &temp2;
23185 arg3 = &temp3;
23186 arg4 = &temp4;
23187 arg5 = &temp5;
23188 if (!args) SWIG_fail;
23189 swig_obj[0] = args;
23190 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23191 if (!SWIG_IsOK(res1)) {
23192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23193 }
23194 arg1 = reinterpret_cast< wxDC * >(argp1);
23195 {
23196 PyThreadState* __tstate = wxPyBeginAllowThreads();
23197 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
23198 wxPyEndAllowThreads(__tstate);
23199 if (PyErr_Occurred()) SWIG_fail;
23200 }
23201 resultobj = SWIG_Py_Void();
23202 if (SWIG_IsTmpObj(res2)) {
23203 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
23204 } else {
23205 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23206 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
23207 }
23208 if (SWIG_IsTmpObj(res3)) {
23209 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
23210 } else {
23211 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23212 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
23213 }
23214 if (SWIG_IsTmpObj(res4)) {
23215 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
23216 } else {
23217 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23218 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
23219 }
23220 if (SWIG_IsTmpObj(res5)) {
23221 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
23222 } else {
23223 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23224 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
23225 }
23226 return resultobj;
23227 fail:
23228 return NULL;
23229 }
23230
23231
23232 SWIGINTERN PyObject *_wrap_DC_GetHDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23233 PyObject *resultobj = 0;
23234 wxDC *arg1 = (wxDC *) 0 ;
23235 long result;
23236 void *argp1 = 0 ;
23237 int res1 = 0 ;
23238 PyObject *swig_obj[1] ;
23239
23240 if (!args) SWIG_fail;
23241 swig_obj[0] = args;
23242 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23243 if (!SWIG_IsOK(res1)) {
23244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetHDC" "', expected argument " "1"" of type '" "wxDC *""'");
23245 }
23246 arg1 = reinterpret_cast< wxDC * >(argp1);
23247 {
23248 PyThreadState* __tstate = wxPyBeginAllowThreads();
23249 result = (long)(arg1)->GetHDC();
23250 wxPyEndAllowThreads(__tstate);
23251 if (PyErr_Occurred()) SWIG_fail;
23252 }
23253 resultobj = SWIG_From_long(static_cast< long >(result));
23254 return resultobj;
23255 fail:
23256 return NULL;
23257 }
23258
23259
23260 SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23261 PyObject *resultobj = 0;
23262 wxDC *arg1 = (wxDC *) 0 ;
23263 PyObject *arg2 = (PyObject *) 0 ;
23264 PyObject *arg3 = (PyObject *) 0 ;
23265 PyObject *arg4 = (PyObject *) 0 ;
23266 PyObject *result = 0 ;
23267 void *argp1 = 0 ;
23268 int res1 = 0 ;
23269 PyObject * obj0 = 0 ;
23270 PyObject * obj1 = 0 ;
23271 PyObject * obj2 = 0 ;
23272 PyObject * obj3 = 0 ;
23273 char * kwnames[] = {
23274 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23275 };
23276
23277 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23278 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23279 if (!SWIG_IsOK(res1)) {
23280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
23281 }
23282 arg1 = reinterpret_cast< wxDC * >(argp1);
23283 arg2 = obj1;
23284 arg3 = obj2;
23285 arg4 = obj3;
23286 {
23287 PyThreadState* __tstate = wxPyBeginAllowThreads();
23288 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
23289 wxPyEndAllowThreads(__tstate);
23290 if (PyErr_Occurred()) SWIG_fail;
23291 }
23292 resultobj = result;
23293 return resultobj;
23294 fail:
23295 return NULL;
23296 }
23297
23298
23299 SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23300 PyObject *resultobj = 0;
23301 wxDC *arg1 = (wxDC *) 0 ;
23302 PyObject *arg2 = (PyObject *) 0 ;
23303 PyObject *arg3 = (PyObject *) 0 ;
23304 PyObject *arg4 = (PyObject *) 0 ;
23305 PyObject *result = 0 ;
23306 void *argp1 = 0 ;
23307 int res1 = 0 ;
23308 PyObject * obj0 = 0 ;
23309 PyObject * obj1 = 0 ;
23310 PyObject * obj2 = 0 ;
23311 PyObject * obj3 = 0 ;
23312 char * kwnames[] = {
23313 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23314 };
23315
23316 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23317 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23318 if (!SWIG_IsOK(res1)) {
23319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
23320 }
23321 arg1 = reinterpret_cast< wxDC * >(argp1);
23322 arg2 = obj1;
23323 arg3 = obj2;
23324 arg4 = obj3;
23325 {
23326 PyThreadState* __tstate = wxPyBeginAllowThreads();
23327 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
23328 wxPyEndAllowThreads(__tstate);
23329 if (PyErr_Occurred()) SWIG_fail;
23330 }
23331 resultobj = result;
23332 return resultobj;
23333 fail:
23334 return NULL;
23335 }
23336
23337
23338 SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23339 PyObject *resultobj = 0;
23340 wxDC *arg1 = (wxDC *) 0 ;
23341 PyObject *arg2 = (PyObject *) 0 ;
23342 PyObject *arg3 = (PyObject *) 0 ;
23343 PyObject *arg4 = (PyObject *) 0 ;
23344 PyObject *result = 0 ;
23345 void *argp1 = 0 ;
23346 int res1 = 0 ;
23347 PyObject * obj0 = 0 ;
23348 PyObject * obj1 = 0 ;
23349 PyObject * obj2 = 0 ;
23350 PyObject * obj3 = 0 ;
23351 char * kwnames[] = {
23352 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23353 };
23354
23355 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23356 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23357 if (!SWIG_IsOK(res1)) {
23358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
23359 }
23360 arg1 = reinterpret_cast< wxDC * >(argp1);
23361 arg2 = obj1;
23362 arg3 = obj2;
23363 arg4 = obj3;
23364 {
23365 PyThreadState* __tstate = wxPyBeginAllowThreads();
23366 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
23367 wxPyEndAllowThreads(__tstate);
23368 if (PyErr_Occurred()) SWIG_fail;
23369 }
23370 resultobj = result;
23371 return resultobj;
23372 fail:
23373 return NULL;
23374 }
23375
23376
23377 SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23378 PyObject *resultobj = 0;
23379 wxDC *arg1 = (wxDC *) 0 ;
23380 PyObject *arg2 = (PyObject *) 0 ;
23381 PyObject *arg3 = (PyObject *) 0 ;
23382 PyObject *arg4 = (PyObject *) 0 ;
23383 PyObject *result = 0 ;
23384 void *argp1 = 0 ;
23385 int res1 = 0 ;
23386 PyObject * obj0 = 0 ;
23387 PyObject * obj1 = 0 ;
23388 PyObject * obj2 = 0 ;
23389 PyObject * obj3 = 0 ;
23390 char * kwnames[] = {
23391 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23392 };
23393
23394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23395 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23396 if (!SWIG_IsOK(res1)) {
23397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
23398 }
23399 arg1 = reinterpret_cast< wxDC * >(argp1);
23400 arg2 = obj1;
23401 arg3 = obj2;
23402 arg4 = obj3;
23403 {
23404 PyThreadState* __tstate = wxPyBeginAllowThreads();
23405 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
23406 wxPyEndAllowThreads(__tstate);
23407 if (PyErr_Occurred()) SWIG_fail;
23408 }
23409 resultobj = result;
23410 return resultobj;
23411 fail:
23412 return NULL;
23413 }
23414
23415
23416 SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23417 PyObject *resultobj = 0;
23418 wxDC *arg1 = (wxDC *) 0 ;
23419 PyObject *arg2 = (PyObject *) 0 ;
23420 PyObject *arg3 = (PyObject *) 0 ;
23421 PyObject *arg4 = (PyObject *) 0 ;
23422 PyObject *result = 0 ;
23423 void *argp1 = 0 ;
23424 int res1 = 0 ;
23425 PyObject * obj0 = 0 ;
23426 PyObject * obj1 = 0 ;
23427 PyObject * obj2 = 0 ;
23428 PyObject * obj3 = 0 ;
23429 char * kwnames[] = {
23430 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23431 };
23432
23433 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23434 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23435 if (!SWIG_IsOK(res1)) {
23436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
23437 }
23438 arg1 = reinterpret_cast< wxDC * >(argp1);
23439 arg2 = obj1;
23440 arg3 = obj2;
23441 arg4 = obj3;
23442 {
23443 PyThreadState* __tstate = wxPyBeginAllowThreads();
23444 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
23445 wxPyEndAllowThreads(__tstate);
23446 if (PyErr_Occurred()) SWIG_fail;
23447 }
23448 resultobj = result;
23449 return resultobj;
23450 fail:
23451 return NULL;
23452 }
23453
23454
23455 SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23456 PyObject *resultobj = 0;
23457 wxDC *arg1 = (wxDC *) 0 ;
23458 PyObject *arg2 = (PyObject *) 0 ;
23459 PyObject *arg3 = (PyObject *) 0 ;
23460 PyObject *arg4 = (PyObject *) 0 ;
23461 PyObject *arg5 = (PyObject *) 0 ;
23462 PyObject *result = 0 ;
23463 void *argp1 = 0 ;
23464 int res1 = 0 ;
23465 PyObject * obj0 = 0 ;
23466 PyObject * obj1 = 0 ;
23467 PyObject * obj2 = 0 ;
23468 PyObject * obj3 = 0 ;
23469 PyObject * obj4 = 0 ;
23470 char * kwnames[] = {
23471 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
23472 };
23473
23474 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
23475 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23476 if (!SWIG_IsOK(res1)) {
23477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
23478 }
23479 arg1 = reinterpret_cast< wxDC * >(argp1);
23480 arg2 = obj1;
23481 arg3 = obj2;
23482 arg4 = obj3;
23483 arg5 = obj4;
23484 {
23485 PyThreadState* __tstate = wxPyBeginAllowThreads();
23486 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
23487 wxPyEndAllowThreads(__tstate);
23488 if (PyErr_Occurred()) SWIG_fail;
23489 }
23490 resultobj = result;
23491 return resultobj;
23492 fail:
23493 return NULL;
23494 }
23495
23496
23497 SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23498 PyObject *obj;
23499 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23500 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
23501 return SWIG_Py_Void();
23502 }
23503
23504 SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23505 PyObject *resultobj = 0;
23506 wxMemoryDC *result = 0 ;
23507
23508 if (!SWIG_Python_UnpackTuple(args,"new_MemoryDC",0,0,0)) SWIG_fail;
23509 {
23510 if (!wxPyCheckForApp()) SWIG_fail;
23511 PyThreadState* __tstate = wxPyBeginAllowThreads();
23512 result = (wxMemoryDC *)new wxMemoryDC();
23513 wxPyEndAllowThreads(__tstate);
23514 if (PyErr_Occurred()) SWIG_fail;
23515 }
23516 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
23517 return resultobj;
23518 fail:
23519 return NULL;
23520 }
23521
23522
23523 SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23524 PyObject *resultobj = 0;
23525 wxDC *arg1 = (wxDC *) 0 ;
23526 wxMemoryDC *result = 0 ;
23527 void *argp1 = 0 ;
23528 int res1 = 0 ;
23529 PyObject * obj0 = 0 ;
23530 char * kwnames[] = {
23531 (char *) "oldDC", NULL
23532 };
23533
23534 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
23535 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23536 if (!SWIG_IsOK(res1)) {
23537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
23538 }
23539 arg1 = reinterpret_cast< wxDC * >(argp1);
23540 {
23541 if (!wxPyCheckForApp()) SWIG_fail;
23542 PyThreadState* __tstate = wxPyBeginAllowThreads();
23543 result = (wxMemoryDC *)new wxMemoryDC(arg1);
23544 wxPyEndAllowThreads(__tstate);
23545 if (PyErr_Occurred()) SWIG_fail;
23546 }
23547 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
23548 return resultobj;
23549 fail:
23550 return NULL;
23551 }
23552
23553
23554 SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23555 PyObject *resultobj = 0;
23556 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
23557 wxBitmap *arg2 = 0 ;
23558 void *argp1 = 0 ;
23559 int res1 = 0 ;
23560 void *argp2 = 0 ;
23561 int res2 = 0 ;
23562 PyObject * obj0 = 0 ;
23563 PyObject * obj1 = 0 ;
23564 char * kwnames[] = {
23565 (char *) "self",(char *) "bitmap", NULL
23566 };
23567
23568 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
23569 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
23570 if (!SWIG_IsOK(res1)) {
23571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
23572 }
23573 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
23574 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23575 if (!SWIG_IsOK(res2)) {
23576 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23577 }
23578 if (!argp2) {
23579 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23580 }
23581 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23582 {
23583 PyThreadState* __tstate = wxPyBeginAllowThreads();
23584 (arg1)->SelectObject((wxBitmap const &)*arg2);
23585 wxPyEndAllowThreads(__tstate);
23586 if (PyErr_Occurred()) SWIG_fail;
23587 }
23588 resultobj = SWIG_Py_Void();
23589 return resultobj;
23590 fail:
23591 return NULL;
23592 }
23593
23594
23595 SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23596 PyObject *obj;
23597 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23598 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
23599 return SWIG_Py_Void();
23600 }
23601
23602 SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23603 return SWIG_Python_InitShadowInstance(args);
23604 }
23605
23606 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23607 PyObject *resultobj = 0;
23608 wxDC *arg1 = (wxDC *) 0 ;
23609 wxBitmap const &arg2_defvalue = wxNullBitmap ;
23610 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
23611 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
23612 wxBufferedDC *result = 0 ;
23613 void *argp1 = 0 ;
23614 int res1 = 0 ;
23615 void *argp2 = 0 ;
23616 int res2 = 0 ;
23617 int val3 ;
23618 int ecode3 = 0 ;
23619
23620 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
23621 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23622 if (!SWIG_IsOK(res1)) {
23623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
23624 }
23625 arg1 = reinterpret_cast< wxDC * >(argp1);
23626 if (swig_obj[1]) {
23627 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23628 if (!SWIG_IsOK(res2)) {
23629 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23630 }
23631 if (!argp2) {
23632 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23633 }
23634 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23635 }
23636 if (swig_obj[2]) {
23637 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
23638 if (!SWIG_IsOK(ecode3)) {
23639 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
23640 }
23641 arg3 = static_cast< int >(val3);
23642 }
23643 {
23644 if (!wxPyCheckForApp()) SWIG_fail;
23645 PyThreadState* __tstate = wxPyBeginAllowThreads();
23646 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2,arg3);
23647 wxPyEndAllowThreads(__tstate);
23648 if (PyErr_Occurred()) SWIG_fail;
23649 }
23650 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
23651 return resultobj;
23652 fail:
23653 return NULL;
23654 }
23655
23656
23657 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23658 PyObject *resultobj = 0;
23659 wxDC *arg1 = (wxDC *) 0 ;
23660 wxSize *arg2 = 0 ;
23661 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
23662 wxBufferedDC *result = 0 ;
23663 void *argp1 = 0 ;
23664 int res1 = 0 ;
23665 wxSize temp2 ;
23666 int val3 ;
23667 int ecode3 = 0 ;
23668
23669 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
23670 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23671 if (!SWIG_IsOK(res1)) {
23672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
23673 }
23674 arg1 = reinterpret_cast< wxDC * >(argp1);
23675 {
23676 arg2 = &temp2;
23677 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
23678 }
23679 if (swig_obj[2]) {
23680 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
23681 if (!SWIG_IsOK(ecode3)) {
23682 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
23683 }
23684 arg3 = static_cast< int >(val3);
23685 }
23686 {
23687 if (!wxPyCheckForApp()) SWIG_fail;
23688 PyThreadState* __tstate = wxPyBeginAllowThreads();
23689 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
23690 wxPyEndAllowThreads(__tstate);
23691 if (PyErr_Occurred()) SWIG_fail;
23692 }
23693 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
23694 return resultobj;
23695 fail:
23696 return NULL;
23697 }
23698
23699
23700 SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
23701 int argc;
23702 PyObject *argv[4];
23703
23704 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
23705 --argc;
23706 if ((argc >= 1) && (argc <= 3)) {
23707 int _v = 0;
23708 if (argc > 1) {
23709 {
23710 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxBitmap, 0);
23711 _v = SWIG_CheckState(res);
23712 }
23713 if (!_v) goto check_1;
23714 }
23715 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
23716 }
23717 check_1:
23718
23719 if ((argc >= 2) && (argc <= 3)) {
23720 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
23721 }
23722
23723 fail:
23724 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
23725 return NULL;
23726 }
23727
23728
23729 SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23730 PyObject *resultobj = 0;
23731 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
23732 void *argp1 = 0 ;
23733 int res1 = 0 ;
23734 PyObject *swig_obj[1] ;
23735
23736 if (!args) SWIG_fail;
23737 swig_obj[0] = args;
23738 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
23739 if (!SWIG_IsOK(res1)) {
23740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
23741 }
23742 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
23743 {
23744 PyThreadState* __tstate = wxPyBeginAllowThreads();
23745 delete arg1;
23746
23747 wxPyEndAllowThreads(__tstate);
23748 if (PyErr_Occurred()) SWIG_fail;
23749 }
23750 resultobj = SWIG_Py_Void();
23751 return resultobj;
23752 fail:
23753 return NULL;
23754 }
23755
23756
23757 SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23758 PyObject *resultobj = 0;
23759 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
23760 void *argp1 = 0 ;
23761 int res1 = 0 ;
23762 PyObject *swig_obj[1] ;
23763
23764 if (!args) SWIG_fail;
23765 swig_obj[0] = args;
23766 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
23767 if (!SWIG_IsOK(res1)) {
23768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
23769 }
23770 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
23771 {
23772 PyThreadState* __tstate = wxPyBeginAllowThreads();
23773 (arg1)->UnMask();
23774 wxPyEndAllowThreads(__tstate);
23775 if (PyErr_Occurred()) SWIG_fail;
23776 }
23777 resultobj = SWIG_Py_Void();
23778 return resultobj;
23779 fail:
23780 return NULL;
23781 }
23782
23783
23784 SWIGINTERN PyObject *BufferedDC_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_wxBufferedDC, SWIG_NewClientData(obj));
23788 return SWIG_Py_Void();
23789 }
23790
23791 SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23792 return SWIG_Python_InitShadowInstance(args);
23793 }
23794
23795 SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23796 PyObject *resultobj = 0;
23797 wxWindow *arg1 = (wxWindow *) 0 ;
23798 wxBitmap const &arg2_defvalue = wxNullBitmap ;
23799 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
23800 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
23801 wxBufferedPaintDC *result = 0 ;
23802 void *argp1 = 0 ;
23803 int res1 = 0 ;
23804 void *argp2 = 0 ;
23805 int res2 = 0 ;
23806 int val3 ;
23807 int ecode3 = 0 ;
23808 PyObject * obj0 = 0 ;
23809 PyObject * obj1 = 0 ;
23810 PyObject * obj2 = 0 ;
23811 char * kwnames[] = {
23812 (char *) "window",(char *) "buffer",(char *) "style", NULL
23813 };
23814
23815 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23816 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23817 if (!SWIG_IsOK(res1)) {
23818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23819 }
23820 arg1 = reinterpret_cast< wxWindow * >(argp1);
23821 if (obj1) {
23822 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23823 if (!SWIG_IsOK(res2)) {
23824 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23825 }
23826 if (!argp2) {
23827 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23828 }
23829 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23830 }
23831 if (obj2) {
23832 ecode3 = SWIG_AsVal_int(obj2, &val3);
23833 if (!SWIG_IsOK(ecode3)) {
23834 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
23835 }
23836 arg3 = static_cast< int >(val3);
23837 }
23838 {
23839 if (!wxPyCheckForApp()) SWIG_fail;
23840 PyThreadState* __tstate = wxPyBeginAllowThreads();
23841 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2,arg3);
23842 wxPyEndAllowThreads(__tstate);
23843 if (PyErr_Occurred()) SWIG_fail;
23844 }
23845 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
23846 return resultobj;
23847 fail:
23848 return NULL;
23849 }
23850
23851
23852 SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23853 PyObject *obj;
23854 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23855 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
23856 return SWIG_Py_Void();
23857 }
23858
23859 SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23860 return SWIG_Python_InitShadowInstance(args);
23861 }
23862
23863 SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23864 PyObject *resultobj = 0;
23865 wxScreenDC *result = 0 ;
23866
23867 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
23868 {
23869 if (!wxPyCheckForApp()) SWIG_fail;
23870 PyThreadState* __tstate = wxPyBeginAllowThreads();
23871 result = (wxScreenDC *)new wxScreenDC();
23872 wxPyEndAllowThreads(__tstate);
23873 if (PyErr_Occurred()) SWIG_fail;
23874 }
23875 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
23876 return resultobj;
23877 fail:
23878 return NULL;
23879 }
23880
23881
23882 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23883 PyObject *resultobj = 0;
23884 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23885 wxWindow *arg2 = (wxWindow *) 0 ;
23886 bool result;
23887 void *argp1 = 0 ;
23888 int res1 = 0 ;
23889 void *argp2 = 0 ;
23890 int res2 = 0 ;
23891 PyObject * obj0 = 0 ;
23892 PyObject * obj1 = 0 ;
23893 char * kwnames[] = {
23894 (char *) "self",(char *) "window", NULL
23895 };
23896
23897 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
23898 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23899 if (!SWIG_IsOK(res1)) {
23900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23901 }
23902 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23903 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
23904 if (!SWIG_IsOK(res2)) {
23905 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
23906 }
23907 arg2 = reinterpret_cast< wxWindow * >(argp2);
23908 {
23909 PyThreadState* __tstate = wxPyBeginAllowThreads();
23910 result = (bool)(arg1)->StartDrawingOnTop(arg2);
23911 wxPyEndAllowThreads(__tstate);
23912 if (PyErr_Occurred()) SWIG_fail;
23913 }
23914 {
23915 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23916 }
23917 return resultobj;
23918 fail:
23919 return NULL;
23920 }
23921
23922
23923 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23924 PyObject *resultobj = 0;
23925 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23926 wxRect *arg2 = (wxRect *) NULL ;
23927 bool result;
23928 void *argp1 = 0 ;
23929 int res1 = 0 ;
23930 void *argp2 = 0 ;
23931 int res2 = 0 ;
23932 PyObject * obj0 = 0 ;
23933 PyObject * obj1 = 0 ;
23934 char * kwnames[] = {
23935 (char *) "self",(char *) "rect", NULL
23936 };
23937
23938 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
23939 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23940 if (!SWIG_IsOK(res1)) {
23941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23942 }
23943 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23944 if (obj1) {
23945 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
23946 if (!SWIG_IsOK(res2)) {
23947 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
23948 }
23949 arg2 = reinterpret_cast< wxRect * >(argp2);
23950 }
23951 {
23952 PyThreadState* __tstate = wxPyBeginAllowThreads();
23953 result = (bool)(arg1)->StartDrawingOnTop(arg2);
23954 wxPyEndAllowThreads(__tstate);
23955 if (PyErr_Occurred()) SWIG_fail;
23956 }
23957 {
23958 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23959 }
23960 return resultobj;
23961 fail:
23962 return NULL;
23963 }
23964
23965
23966 SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23967 PyObject *resultobj = 0;
23968 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23969 bool result;
23970 void *argp1 = 0 ;
23971 int res1 = 0 ;
23972 PyObject *swig_obj[1] ;
23973
23974 if (!args) SWIG_fail;
23975 swig_obj[0] = args;
23976 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23977 if (!SWIG_IsOK(res1)) {
23978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23979 }
23980 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23981 {
23982 PyThreadState* __tstate = wxPyBeginAllowThreads();
23983 result = (bool)(arg1)->EndDrawingOnTop();
23984 wxPyEndAllowThreads(__tstate);
23985 if (PyErr_Occurred()) SWIG_fail;
23986 }
23987 {
23988 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23989 }
23990 return resultobj;
23991 fail:
23992 return NULL;
23993 }
23994
23995
23996 SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23997 PyObject *obj;
23998 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23999 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
24000 return SWIG_Py_Void();
24001 }
24002
24003 SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24004 return SWIG_Python_InitShadowInstance(args);
24005 }
24006
24007 SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24008 PyObject *resultobj = 0;
24009 wxWindow *arg1 = (wxWindow *) 0 ;
24010 wxClientDC *result = 0 ;
24011 void *argp1 = 0 ;
24012 int res1 = 0 ;
24013 PyObject * obj0 = 0 ;
24014 char * kwnames[] = {
24015 (char *) "win", NULL
24016 };
24017
24018 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
24019 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24020 if (!SWIG_IsOK(res1)) {
24021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24022 }
24023 arg1 = reinterpret_cast< wxWindow * >(argp1);
24024 {
24025 if (!wxPyCheckForApp()) SWIG_fail;
24026 PyThreadState* __tstate = wxPyBeginAllowThreads();
24027 result = (wxClientDC *)new wxClientDC(arg1);
24028 wxPyEndAllowThreads(__tstate);
24029 if (PyErr_Occurred()) SWIG_fail;
24030 }
24031 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
24032 return resultobj;
24033 fail:
24034 return NULL;
24035 }
24036
24037
24038 SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24039 PyObject *obj;
24040 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24041 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
24042 return SWIG_Py_Void();
24043 }
24044
24045 SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24046 return SWIG_Python_InitShadowInstance(args);
24047 }
24048
24049 SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24050 PyObject *resultobj = 0;
24051 wxWindow *arg1 = (wxWindow *) 0 ;
24052 wxPaintDC *result = 0 ;
24053 void *argp1 = 0 ;
24054 int res1 = 0 ;
24055 PyObject * obj0 = 0 ;
24056 char * kwnames[] = {
24057 (char *) "win", NULL
24058 };
24059
24060 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
24061 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24062 if (!SWIG_IsOK(res1)) {
24063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24064 }
24065 arg1 = reinterpret_cast< wxWindow * >(argp1);
24066 {
24067 if (!wxPyCheckForApp()) SWIG_fail;
24068 PyThreadState* __tstate = wxPyBeginAllowThreads();
24069 result = (wxPaintDC *)new wxPaintDC(arg1);
24070 wxPyEndAllowThreads(__tstate);
24071 if (PyErr_Occurred()) SWIG_fail;
24072 }
24073 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
24074 return resultobj;
24075 fail:
24076 return NULL;
24077 }
24078
24079
24080 SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24081 PyObject *obj;
24082 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24083 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
24084 return SWIG_Py_Void();
24085 }
24086
24087 SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24088 return SWIG_Python_InitShadowInstance(args);
24089 }
24090
24091 SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24092 PyObject *resultobj = 0;
24093 wxWindow *arg1 = (wxWindow *) 0 ;
24094 wxWindowDC *result = 0 ;
24095 void *argp1 = 0 ;
24096 int res1 = 0 ;
24097 PyObject * obj0 = 0 ;
24098 char * kwnames[] = {
24099 (char *) "win", NULL
24100 };
24101
24102 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
24103 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24104 if (!SWIG_IsOK(res1)) {
24105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24106 }
24107 arg1 = reinterpret_cast< wxWindow * >(argp1);
24108 {
24109 if (!wxPyCheckForApp()) SWIG_fail;
24110 PyThreadState* __tstate = wxPyBeginAllowThreads();
24111 result = (wxWindowDC *)new wxWindowDC(arg1);
24112 wxPyEndAllowThreads(__tstate);
24113 if (PyErr_Occurred()) SWIG_fail;
24114 }
24115 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
24116 return resultobj;
24117 fail:
24118 return NULL;
24119 }
24120
24121
24122 SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24123 PyObject *obj;
24124 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24125 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
24126 return SWIG_Py_Void();
24127 }
24128
24129 SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24130 return SWIG_Python_InitShadowInstance(args);
24131 }
24132
24133 SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24134 PyObject *resultobj = 0;
24135 wxDC *arg1 = 0 ;
24136 bool arg2 ;
24137 wxMirrorDC *result = 0 ;
24138 void *argp1 = 0 ;
24139 int res1 = 0 ;
24140 bool val2 ;
24141 int ecode2 = 0 ;
24142 PyObject * obj0 = 0 ;
24143 PyObject * obj1 = 0 ;
24144 char * kwnames[] = {
24145 (char *) "dc",(char *) "mirror", NULL
24146 };
24147
24148 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
24149 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24150 if (!SWIG_IsOK(res1)) {
24151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
24152 }
24153 if (!argp1) {
24154 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
24155 }
24156 arg1 = reinterpret_cast< wxDC * >(argp1);
24157 ecode2 = SWIG_AsVal_bool(obj1, &val2);
24158 if (!SWIG_IsOK(ecode2)) {
24159 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
24160 }
24161 arg2 = static_cast< bool >(val2);
24162 {
24163 if (!wxPyCheckForApp()) SWIG_fail;
24164 PyThreadState* __tstate = wxPyBeginAllowThreads();
24165 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
24166 wxPyEndAllowThreads(__tstate);
24167 if (PyErr_Occurred()) SWIG_fail;
24168 }
24169 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
24170 return resultobj;
24171 fail:
24172 return NULL;
24173 }
24174
24175
24176 SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24177 PyObject *obj;
24178 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24179 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
24180 return SWIG_Py_Void();
24181 }
24182
24183 SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24184 return SWIG_Python_InitShadowInstance(args);
24185 }
24186
24187 SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24188 PyObject *resultobj = 0;
24189 wxPrintData *arg1 = 0 ;
24190 wxPostScriptDC *result = 0 ;
24191 void *argp1 = 0 ;
24192 int res1 = 0 ;
24193 PyObject * obj0 = 0 ;
24194 char * kwnames[] = {
24195 (char *) "printData", NULL
24196 };
24197
24198 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
24199 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
24200 if (!SWIG_IsOK(res1)) {
24201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24202 }
24203 if (!argp1) {
24204 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24205 }
24206 arg1 = reinterpret_cast< wxPrintData * >(argp1);
24207 {
24208 if (!wxPyCheckForApp()) SWIG_fail;
24209 PyThreadState* __tstate = wxPyBeginAllowThreads();
24210 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
24211 wxPyEndAllowThreads(__tstate);
24212 if (PyErr_Occurred()) SWIG_fail;
24213 }
24214 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
24215 return resultobj;
24216 fail:
24217 return NULL;
24218 }
24219
24220
24221 SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24222 PyObject *resultobj = 0;
24223 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
24224 wxPrintData *result = 0 ;
24225 void *argp1 = 0 ;
24226 int res1 = 0 ;
24227 PyObject *swig_obj[1] ;
24228
24229 if (!args) SWIG_fail;
24230 swig_obj[0] = args;
24231 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
24232 if (!SWIG_IsOK(res1)) {
24233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
24234 }
24235 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
24236 {
24237 PyThreadState* __tstate = wxPyBeginAllowThreads();
24238 {
24239 wxPrintData &_result_ref = (arg1)->GetPrintData();
24240 result = (wxPrintData *) &_result_ref;
24241 }
24242 wxPyEndAllowThreads(__tstate);
24243 if (PyErr_Occurred()) SWIG_fail;
24244 }
24245 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
24246 return resultobj;
24247 fail:
24248 return NULL;
24249 }
24250
24251
24252 SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24253 PyObject *resultobj = 0;
24254 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
24255 wxPrintData *arg2 = 0 ;
24256 void *argp1 = 0 ;
24257 int res1 = 0 ;
24258 void *argp2 = 0 ;
24259 int res2 = 0 ;
24260 PyObject * obj0 = 0 ;
24261 PyObject * obj1 = 0 ;
24262 char * kwnames[] = {
24263 (char *) "self",(char *) "data", NULL
24264 };
24265
24266 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
24267 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
24268 if (!SWIG_IsOK(res1)) {
24269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
24270 }
24271 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
24272 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
24273 if (!SWIG_IsOK(res2)) {
24274 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
24275 }
24276 if (!argp2) {
24277 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
24278 }
24279 arg2 = reinterpret_cast< wxPrintData * >(argp2);
24280 {
24281 PyThreadState* __tstate = wxPyBeginAllowThreads();
24282 (arg1)->SetPrintData((wxPrintData const &)*arg2);
24283 wxPyEndAllowThreads(__tstate);
24284 if (PyErr_Occurred()) SWIG_fail;
24285 }
24286 resultobj = SWIG_Py_Void();
24287 return resultobj;
24288 fail:
24289 return NULL;
24290 }
24291
24292
24293 SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24294 PyObject *resultobj = 0;
24295 int arg1 ;
24296 int val1 ;
24297 int ecode1 = 0 ;
24298 PyObject * obj0 = 0 ;
24299 char * kwnames[] = {
24300 (char *) "ppi", NULL
24301 };
24302
24303 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
24304 ecode1 = SWIG_AsVal_int(obj0, &val1);
24305 if (!SWIG_IsOK(ecode1)) {
24306 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
24307 }
24308 arg1 = static_cast< int >(val1);
24309 {
24310 PyThreadState* __tstate = wxPyBeginAllowThreads();
24311 wxPostScriptDC::SetResolution(arg1);
24312 wxPyEndAllowThreads(__tstate);
24313 if (PyErr_Occurred()) SWIG_fail;
24314 }
24315 resultobj = SWIG_Py_Void();
24316 return resultobj;
24317 fail:
24318 return NULL;
24319 }
24320
24321
24322 SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24323 PyObject *resultobj = 0;
24324 int result;
24325
24326 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
24327 {
24328 PyThreadState* __tstate = wxPyBeginAllowThreads();
24329 result = (int)wxPostScriptDC::GetResolution();
24330 wxPyEndAllowThreads(__tstate);
24331 if (PyErr_Occurred()) SWIG_fail;
24332 }
24333 resultobj = SWIG_From_int(static_cast< int >(result));
24334 return resultobj;
24335 fail:
24336 return NULL;
24337 }
24338
24339
24340 SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24341 PyObject *obj;
24342 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24343 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
24344 return SWIG_Py_Void();
24345 }
24346
24347 SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24348 return SWIG_Python_InitShadowInstance(args);
24349 }
24350
24351 SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24352 PyObject *resultobj = 0;
24353 wxString const &arg1_defvalue = wxPyEmptyString ;
24354 wxString *arg1 = (wxString *) &arg1_defvalue ;
24355 wxMetaFile *result = 0 ;
24356 bool temp1 = false ;
24357 PyObject * obj0 = 0 ;
24358 char * kwnames[] = {
24359 (char *) "filename", NULL
24360 };
24361
24362 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
24363 if (obj0) {
24364 {
24365 arg1 = wxString_in_helper(obj0);
24366 if (arg1 == NULL) SWIG_fail;
24367 temp1 = true;
24368 }
24369 }
24370 {
24371 if (!wxPyCheckForApp()) SWIG_fail;
24372 PyThreadState* __tstate = wxPyBeginAllowThreads();
24373 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
24374 wxPyEndAllowThreads(__tstate);
24375 if (PyErr_Occurred()) SWIG_fail;
24376 }
24377 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
24378 {
24379 if (temp1)
24380 delete arg1;
24381 }
24382 return resultobj;
24383 fail:
24384 {
24385 if (temp1)
24386 delete arg1;
24387 }
24388 return NULL;
24389 }
24390
24391
24392 SWIGINTERN PyObject *_wrap_delete_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24393 PyObject *resultobj = 0;
24394 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24395 void *argp1 = 0 ;
24396 int res1 = 0 ;
24397 PyObject *swig_obj[1] ;
24398
24399 if (!args) SWIG_fail;
24400 swig_obj[0] = args;
24401 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, SWIG_POINTER_DISOWN | 0 );
24402 if (!SWIG_IsOK(res1)) {
24403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MetaFile" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24404 }
24405 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24406 {
24407 PyThreadState* __tstate = wxPyBeginAllowThreads();
24408 delete arg1;
24409
24410 wxPyEndAllowThreads(__tstate);
24411 if (PyErr_Occurred()) SWIG_fail;
24412 }
24413 resultobj = SWIG_Py_Void();
24414 return resultobj;
24415 fail:
24416 return NULL;
24417 }
24418
24419
24420 SWIGINTERN PyObject *_wrap_MetaFile_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24421 PyObject *resultobj = 0;
24422 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24423 bool result;
24424 void *argp1 = 0 ;
24425 int res1 = 0 ;
24426 PyObject *swig_obj[1] ;
24427
24428 if (!args) SWIG_fail;
24429 swig_obj[0] = args;
24430 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24431 if (!SWIG_IsOK(res1)) {
24432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_Ok" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24433 }
24434 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24435 {
24436 PyThreadState* __tstate = wxPyBeginAllowThreads();
24437 result = (bool)(arg1)->Ok();
24438 wxPyEndAllowThreads(__tstate);
24439 if (PyErr_Occurred()) SWIG_fail;
24440 }
24441 {
24442 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24443 }
24444 return resultobj;
24445 fail:
24446 return NULL;
24447 }
24448
24449
24450 SWIGINTERN PyObject *_wrap_MetaFile_SetClipboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24451 PyObject *resultobj = 0;
24452 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24453 int arg2 = (int) 0 ;
24454 int arg3 = (int) 0 ;
24455 bool result;
24456 void *argp1 = 0 ;
24457 int res1 = 0 ;
24458 int val2 ;
24459 int ecode2 = 0 ;
24460 int val3 ;
24461 int ecode3 = 0 ;
24462 PyObject * obj0 = 0 ;
24463 PyObject * obj1 = 0 ;
24464 PyObject * obj2 = 0 ;
24465 char * kwnames[] = {
24466 (char *) "self",(char *) "width",(char *) "height", NULL
24467 };
24468
24469 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24470 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24471 if (!SWIG_IsOK(res1)) {
24472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_SetClipboard" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24473 }
24474 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24475 if (obj1) {
24476 ecode2 = SWIG_AsVal_int(obj1, &val2);
24477 if (!SWIG_IsOK(ecode2)) {
24478 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MetaFile_SetClipboard" "', expected argument " "2"" of type '" "int""'");
24479 }
24480 arg2 = static_cast< int >(val2);
24481 }
24482 if (obj2) {
24483 ecode3 = SWIG_AsVal_int(obj2, &val3);
24484 if (!SWIG_IsOK(ecode3)) {
24485 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MetaFile_SetClipboard" "', expected argument " "3"" of type '" "int""'");
24486 }
24487 arg3 = static_cast< int >(val3);
24488 }
24489 {
24490 PyThreadState* __tstate = wxPyBeginAllowThreads();
24491 result = (bool)(arg1)->SetClipboard(arg2,arg3);
24492 wxPyEndAllowThreads(__tstate);
24493 if (PyErr_Occurred()) SWIG_fail;
24494 }
24495 {
24496 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24497 }
24498 return resultobj;
24499 fail:
24500 return NULL;
24501 }
24502
24503
24504 SWIGINTERN PyObject *_wrap_MetaFile_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24505 PyObject *resultobj = 0;
24506 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24507 wxSize result;
24508 void *argp1 = 0 ;
24509 int res1 = 0 ;
24510 PyObject *swig_obj[1] ;
24511
24512 if (!args) SWIG_fail;
24513 swig_obj[0] = args;
24514 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24515 if (!SWIG_IsOK(res1)) {
24516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetSize" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24517 }
24518 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24519 {
24520 PyThreadState* __tstate = wxPyBeginAllowThreads();
24521 result = (arg1)->GetSize();
24522 wxPyEndAllowThreads(__tstate);
24523 if (PyErr_Occurred()) SWIG_fail;
24524 }
24525 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
24526 return resultobj;
24527 fail:
24528 return NULL;
24529 }
24530
24531
24532 SWIGINTERN PyObject *_wrap_MetaFile_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24533 PyObject *resultobj = 0;
24534 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24535 int result;
24536 void *argp1 = 0 ;
24537 int res1 = 0 ;
24538 PyObject *swig_obj[1] ;
24539
24540 if (!args) SWIG_fail;
24541 swig_obj[0] = args;
24542 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24543 if (!SWIG_IsOK(res1)) {
24544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetWidth" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24545 }
24546 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24547 {
24548 PyThreadState* __tstate = wxPyBeginAllowThreads();
24549 result = (int)(arg1)->GetWidth();
24550 wxPyEndAllowThreads(__tstate);
24551 if (PyErr_Occurred()) SWIG_fail;
24552 }
24553 resultobj = SWIG_From_int(static_cast< int >(result));
24554 return resultobj;
24555 fail:
24556 return NULL;
24557 }
24558
24559
24560 SWIGINTERN PyObject *_wrap_MetaFile_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24561 PyObject *resultobj = 0;
24562 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24563 int result;
24564 void *argp1 = 0 ;
24565 int res1 = 0 ;
24566 PyObject *swig_obj[1] ;
24567
24568 if (!args) SWIG_fail;
24569 swig_obj[0] = args;
24570 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24571 if (!SWIG_IsOK(res1)) {
24572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetHeight" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24573 }
24574 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24575 {
24576 PyThreadState* __tstate = wxPyBeginAllowThreads();
24577 result = (int)(arg1)->GetHeight();
24578 wxPyEndAllowThreads(__tstate);
24579 if (PyErr_Occurred()) SWIG_fail;
24580 }
24581 resultobj = SWIG_From_int(static_cast< int >(result));
24582 return resultobj;
24583 fail:
24584 return NULL;
24585 }
24586
24587
24588 SWIGINTERN PyObject *_wrap_MetaFile_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24589 PyObject *resultobj = 0;
24590 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24591 wxString *result = 0 ;
24592 void *argp1 = 0 ;
24593 int res1 = 0 ;
24594 PyObject *swig_obj[1] ;
24595
24596 if (!args) SWIG_fail;
24597 swig_obj[0] = args;
24598 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24599 if (!SWIG_IsOK(res1)) {
24600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetFileName" "', expected argument " "1"" of type '" "wxMetaFile const *""'");
24601 }
24602 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24603 {
24604 PyThreadState* __tstate = wxPyBeginAllowThreads();
24605 {
24606 wxString const &_result_ref = ((wxMetaFile const *)arg1)->GetFileName();
24607 result = (wxString *) &_result_ref;
24608 }
24609 wxPyEndAllowThreads(__tstate);
24610 if (PyErr_Occurred()) SWIG_fail;
24611 }
24612 {
24613 #if wxUSE_UNICODE
24614 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
24615 #else
24616 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
24617 #endif
24618 }
24619 return resultobj;
24620 fail:
24621 return NULL;
24622 }
24623
24624
24625 SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24626 PyObject *obj;
24627 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24628 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
24629 return SWIG_Py_Void();
24630 }
24631
24632 SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24633 return SWIG_Python_InitShadowInstance(args);
24634 }
24635
24636 SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24637 PyObject *resultobj = 0;
24638 wxString const &arg1_defvalue = wxPyEmptyString ;
24639 wxString *arg1 = (wxString *) &arg1_defvalue ;
24640 int arg2 = (int) 0 ;
24641 int arg3 = (int) 0 ;
24642 wxString const &arg4_defvalue = wxPyEmptyString ;
24643 wxString *arg4 = (wxString *) &arg4_defvalue ;
24644 wxMetaFileDC *result = 0 ;
24645 bool temp1 = false ;
24646 int val2 ;
24647 int ecode2 = 0 ;
24648 int val3 ;
24649 int ecode3 = 0 ;
24650 bool temp4 = false ;
24651 PyObject * obj0 = 0 ;
24652 PyObject * obj1 = 0 ;
24653 PyObject * obj2 = 0 ;
24654 PyObject * obj3 = 0 ;
24655 char * kwnames[] = {
24656 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
24657 };
24658
24659 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24660 if (obj0) {
24661 {
24662 arg1 = wxString_in_helper(obj0);
24663 if (arg1 == NULL) SWIG_fail;
24664 temp1 = true;
24665 }
24666 }
24667 if (obj1) {
24668 ecode2 = SWIG_AsVal_int(obj1, &val2);
24669 if (!SWIG_IsOK(ecode2)) {
24670 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
24671 }
24672 arg2 = static_cast< int >(val2);
24673 }
24674 if (obj2) {
24675 ecode3 = SWIG_AsVal_int(obj2, &val3);
24676 if (!SWIG_IsOK(ecode3)) {
24677 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
24678 }
24679 arg3 = static_cast< int >(val3);
24680 }
24681 if (obj3) {
24682 {
24683 arg4 = wxString_in_helper(obj3);
24684 if (arg4 == NULL) SWIG_fail;
24685 temp4 = true;
24686 }
24687 }
24688 {
24689 if (!wxPyCheckForApp()) SWIG_fail;
24690 PyThreadState* __tstate = wxPyBeginAllowThreads();
24691 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
24692 wxPyEndAllowThreads(__tstate);
24693 if (PyErr_Occurred()) SWIG_fail;
24694 }
24695 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
24696 {
24697 if (temp1)
24698 delete arg1;
24699 }
24700 {
24701 if (temp4)
24702 delete arg4;
24703 }
24704 return resultobj;
24705 fail:
24706 {
24707 if (temp1)
24708 delete arg1;
24709 }
24710 {
24711 if (temp4)
24712 delete arg4;
24713 }
24714 return NULL;
24715 }
24716
24717
24718 SWIGINTERN PyObject *_wrap_MetaFileDC_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24719 PyObject *resultobj = 0;
24720 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
24721 wxMetaFile *result = 0 ;
24722 void *argp1 = 0 ;
24723 int res1 = 0 ;
24724 PyObject *swig_obj[1] ;
24725
24726 if (!args) SWIG_fail;
24727 swig_obj[0] = args;
24728 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFileDC, 0 | 0 );
24729 if (!SWIG_IsOK(res1)) {
24730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFileDC_Close" "', expected argument " "1"" of type '" "wxMetaFileDC *""'");
24731 }
24732 arg1 = reinterpret_cast< wxMetaFileDC * >(argp1);
24733 {
24734 PyThreadState* __tstate = wxPyBeginAllowThreads();
24735 result = (wxMetaFile *)(arg1)->Close();
24736 wxPyEndAllowThreads(__tstate);
24737 if (PyErr_Occurred()) SWIG_fail;
24738 }
24739 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, 0 | 0 );
24740 return resultobj;
24741 fail:
24742 return NULL;
24743 }
24744
24745
24746 SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24747 PyObject *obj;
24748 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24749 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
24750 return SWIG_Py_Void();
24751 }
24752
24753 SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24754 return SWIG_Python_InitShadowInstance(args);
24755 }
24756
24757 SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24758 PyObject *resultobj = 0;
24759 wxPrintData *arg1 = 0 ;
24760 wxPrinterDC *result = 0 ;
24761 void *argp1 = 0 ;
24762 int res1 = 0 ;
24763 PyObject * obj0 = 0 ;
24764 char * kwnames[] = {
24765 (char *) "printData", NULL
24766 };
24767
24768 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
24769 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
24770 if (!SWIG_IsOK(res1)) {
24771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24772 }
24773 if (!argp1) {
24774 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24775 }
24776 arg1 = reinterpret_cast< wxPrintData * >(argp1);
24777 {
24778 if (!wxPyCheckForApp()) SWIG_fail;
24779 PyThreadState* __tstate = wxPyBeginAllowThreads();
24780 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
24781 wxPyEndAllowThreads(__tstate);
24782 if (PyErr_Occurred()) SWIG_fail;
24783 }
24784 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
24785 return resultobj;
24786 fail:
24787 return NULL;
24788 }
24789
24790
24791 SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24792 PyObject *obj;
24793 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24794 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
24795 return SWIG_Py_Void();
24796 }
24797
24798 SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24799 return SWIG_Python_InitShadowInstance(args);
24800 }
24801
24802 SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24803 PyObject *resultobj = 0;
24804 int arg1 ;
24805 int arg2 ;
24806 int arg3 = (int) true ;
24807 int arg4 = (int) 1 ;
24808 wxImageList *result = 0 ;
24809 int val1 ;
24810 int ecode1 = 0 ;
24811 int val2 ;
24812 int ecode2 = 0 ;
24813 int val3 ;
24814 int ecode3 = 0 ;
24815 int val4 ;
24816 int ecode4 = 0 ;
24817 PyObject * obj0 = 0 ;
24818 PyObject * obj1 = 0 ;
24819 PyObject * obj2 = 0 ;
24820 PyObject * obj3 = 0 ;
24821 char * kwnames[] = {
24822 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
24823 };
24824
24825 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24826 ecode1 = SWIG_AsVal_int(obj0, &val1);
24827 if (!SWIG_IsOK(ecode1)) {
24828 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
24829 }
24830 arg1 = static_cast< int >(val1);
24831 ecode2 = SWIG_AsVal_int(obj1, &val2);
24832 if (!SWIG_IsOK(ecode2)) {
24833 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
24834 }
24835 arg2 = static_cast< int >(val2);
24836 if (obj2) {
24837 ecode3 = SWIG_AsVal_int(obj2, &val3);
24838 if (!SWIG_IsOK(ecode3)) {
24839 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
24840 }
24841 arg3 = static_cast< int >(val3);
24842 }
24843 if (obj3) {
24844 ecode4 = SWIG_AsVal_int(obj3, &val4);
24845 if (!SWIG_IsOK(ecode4)) {
24846 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
24847 }
24848 arg4 = static_cast< int >(val4);
24849 }
24850 {
24851 if (!wxPyCheckForApp()) SWIG_fail;
24852 PyThreadState* __tstate = wxPyBeginAllowThreads();
24853 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
24854 wxPyEndAllowThreads(__tstate);
24855 if (PyErr_Occurred()) SWIG_fail;
24856 }
24857 {
24858 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW);
24859 }
24860 return resultobj;
24861 fail:
24862 return NULL;
24863 }
24864
24865
24866 SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24867 PyObject *resultobj = 0;
24868 wxImageList *arg1 = (wxImageList *) 0 ;
24869 void *argp1 = 0 ;
24870 int res1 = 0 ;
24871 PyObject *swig_obj[1] ;
24872
24873 if (!args) SWIG_fail;
24874 swig_obj[0] = args;
24875 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
24876 if (!SWIG_IsOK(res1)) {
24877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
24878 }
24879 arg1 = reinterpret_cast< wxImageList * >(argp1);
24880 {
24881 PyThreadState* __tstate = wxPyBeginAllowThreads();
24882 delete arg1;
24883
24884 wxPyEndAllowThreads(__tstate);
24885 if (PyErr_Occurred()) SWIG_fail;
24886 }
24887 resultobj = SWIG_Py_Void();
24888 return resultobj;
24889 fail:
24890 return NULL;
24891 }
24892
24893
24894 SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24895 PyObject *resultobj = 0;
24896 wxImageList *arg1 = (wxImageList *) 0 ;
24897 wxBitmap *arg2 = 0 ;
24898 wxBitmap const &arg3_defvalue = wxNullBitmap ;
24899 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
24900 int result;
24901 void *argp1 = 0 ;
24902 int res1 = 0 ;
24903 void *argp2 = 0 ;
24904 int res2 = 0 ;
24905 void *argp3 = 0 ;
24906 int res3 = 0 ;
24907 PyObject * obj0 = 0 ;
24908 PyObject * obj1 = 0 ;
24909 PyObject * obj2 = 0 ;
24910 char * kwnames[] = {
24911 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
24912 };
24913
24914 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24915 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
24916 if (!SWIG_IsOK(res1)) {
24917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
24918 }
24919 arg1 = reinterpret_cast< wxImageList * >(argp1);
24920 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
24921 if (!SWIG_IsOK(res2)) {
24922 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24923 }
24924 if (!argp2) {
24925 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24926 }
24927 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24928 if (obj2) {
24929 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
24930 if (!SWIG_IsOK(res3)) {
24931 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
24932 }
24933 if (!argp3) {
24934 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
24935 }
24936 arg3 = reinterpret_cast< wxBitmap * >(argp3);
24937 }
24938 {
24939 PyThreadState* __tstate = wxPyBeginAllowThreads();
24940 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
24941 wxPyEndAllowThreads(__tstate);
24942 if (PyErr_Occurred()) SWIG_fail;
24943 }
24944 resultobj = SWIG_From_int(static_cast< int >(result));
24945 return resultobj;
24946 fail:
24947 return NULL;
24948 }
24949
24950
24951 SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24952 PyObject *resultobj = 0;
24953 wxImageList *arg1 = (wxImageList *) 0 ;
24954 wxBitmap *arg2 = 0 ;
24955 wxColour *arg3 = 0 ;
24956 int result;
24957 void *argp1 = 0 ;
24958 int res1 = 0 ;
24959 void *argp2 = 0 ;
24960 int res2 = 0 ;
24961 wxColour temp3 ;
24962 PyObject * obj0 = 0 ;
24963 PyObject * obj1 = 0 ;
24964 PyObject * obj2 = 0 ;
24965 char * kwnames[] = {
24966 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
24967 };
24968
24969 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24970 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
24971 if (!SWIG_IsOK(res1)) {
24972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
24973 }
24974 arg1 = reinterpret_cast< wxImageList * >(argp1);
24975 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
24976 if (!SWIG_IsOK(res2)) {
24977 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24978 }
24979 if (!argp2) {
24980 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24981 }
24982 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24983 {
24984 arg3 = &temp3;
24985 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
24986 }
24987 {
24988 PyThreadState* __tstate = wxPyBeginAllowThreads();
24989 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
24990 wxPyEndAllowThreads(__tstate);
24991 if (PyErr_Occurred()) SWIG_fail;
24992 }
24993 resultobj = SWIG_From_int(static_cast< int >(result));
24994 return resultobj;
24995 fail:
24996 return NULL;
24997 }
24998
24999
25000 SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25001 PyObject *resultobj = 0;
25002 wxImageList *arg1 = (wxImageList *) 0 ;
25003 wxIcon *arg2 = 0 ;
25004 int result;
25005 void *argp1 = 0 ;
25006 int res1 = 0 ;
25007 void *argp2 = 0 ;
25008 int res2 = 0 ;
25009 PyObject * obj0 = 0 ;
25010 PyObject * obj1 = 0 ;
25011 char * kwnames[] = {
25012 (char *) "self",(char *) "icon", NULL
25013 };
25014
25015 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
25016 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
25017 if (!SWIG_IsOK(res1)) {
25018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
25019 }
25020 arg1 = reinterpret_cast< wxImageList * >(argp1);
25021 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
25022 if (!SWIG_IsOK(res2)) {
25023 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
25024 }
25025 if (!argp2) {
25026 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
25027 }
25028 arg2 = reinterpret_cast< wxIcon * >(argp2);
25029 {
25030 PyThreadState* __tstate = wxPyBeginAllowThreads();
25031 result = (int)(arg1)->Add((wxIcon const &)*arg2);
25032 wxPyEndAllowThreads(__tstate);
25033 if (PyErr_Occurred()) SWIG_fail;
25034 }
25035 resultobj = SWIG_From_int(static_cast< int >(result));
25036 return resultobj;
25037 fail:
25038 return NULL;
25039 }
25040
25041
25042 SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25043 PyObject *resultobj = 0;
25044 wxImageList *arg1 = (wxImageList *) 0 ;
25045 int arg2 ;
25046 SwigValueWrapper<wxBitmap > result;
25047 void *argp1 = 0 ;
25048 int res1 = 0 ;
25049 int val2 ;
25050 int ecode2 = 0 ;
25051 PyObject * obj0 = 0 ;
25052 PyObject * obj1 = 0 ;
25053 char * kwnames[] = {
25054 (char *) "self",(char *) "index", NULL
25055 };
25056
25057 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
25058 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
25059 if (!SWIG_IsOK(res1)) {
25060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
25061 }
25062 arg1 = reinterpret_cast< wxImageList * >(argp1);
25063 ecode2 = SWIG_AsVal_int(obj1, &val2);
25064 if (!SWIG_IsOK(ecode2)) {
25065 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
25066 }
25067 arg2 = static_cast< int >(val2);
25068 {
25069 PyThreadState* __tstate = wxPyBeginAllowThreads();
25070 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
25071 wxPyEndAllowThreads(__tstate);
25072 if (PyErr_Occurred()) SWIG_fail;
25073 }
25074 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
25075 return resultobj;
25076 fail:
25077 return NULL;
25078 }
25079
25080
25081 SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25082 PyObject *resultobj = 0;
25083 wxImageList *arg1 = (wxImageList *) 0 ;
25084 int arg2 ;
25085 wxIcon result;
25086 void *argp1 = 0 ;
25087 int res1 = 0 ;
25088 int val2 ;
25089 int ecode2 = 0 ;
25090 PyObject * obj0 = 0 ;
25091 PyObject * obj1 = 0 ;
25092 char * kwnames[] = {
25093 (char *) "self",(char *) "index", NULL
25094 };
25095
25096 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
25097 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
25098 if (!SWIG_IsOK(res1)) {
25099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
25100 }
25101 arg1 = reinterpret_cast< wxImageList * >(argp1);
25102 ecode2 = SWIG_AsVal_int(obj1, &val2);
25103 if (!SWIG_IsOK(ecode2)) {
25104 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
25105 }
25106 arg2 = static_cast< int >(val2);
25107 {
25108 PyThreadState* __tstate = wxPyBeginAllowThreads();
25109 result = ((wxImageList const *)arg1)->GetIcon(arg2);
25110 wxPyEndAllowThreads(__tstate);
25111 if (PyErr_Occurred()) SWIG_fail;
25112 }
25113 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
25114 return resultobj;
25115 fail:
25116 return NULL;
25117 }
25118
25119
25120 SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25121 PyObject *resultobj = 0;
25122 wxImageList *arg1 = (wxImageList *) 0 ;
25123 int arg2 ;
25124 wxBitmap *arg3 = 0 ;
25125 wxBitmap const &arg4_defvalue = wxNullBitmap ;
25126 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
25127 bool result;
25128 void *argp1 = 0 ;
25129 int res1 = 0 ;
25130 int val2 ;
25131 int ecode2 = 0 ;
25132 void *argp3 = 0 ;
25133 int res3 = 0 ;
25134 void *argp4 = 0 ;
25135 int res4 = 0 ;
25136 PyObject * obj0 = 0 ;
25137 PyObject * obj1 = 0 ;
25138 PyObject * obj2 = 0 ;
25139 PyObject * obj3 = 0 ;
25140 char * kwnames[] = {
25141 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
25142 };
25143
25144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
25146 if (!SWIG_IsOK(res1)) {
25147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
25148 }
25149 arg1 = reinterpret_cast< wxImageList * >(argp1);
25150 ecode2 = SWIG_AsVal_int(obj1, &val2);
25151 if (!SWIG_IsOK(ecode2)) {
25152 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
25153 }
25154 arg2 = static_cast< int >(val2);
25155 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
25156 if (!SWIG_IsOK(res3)) {
25157 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
25158 }
25159 if (!argp3) {
25160 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
25161 }
25162 arg3 = reinterpret_cast< wxBitmap * >(argp3);
25163 if (obj3) {
25164 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
25165 if (!SWIG_IsOK(res4)) {
25166 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
25167 }
25168 if (!argp4) {
25169 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
25170 }
25171 arg4 = reinterpret_cast< wxBitmap * >(argp4);
25172 }
25173 {
25174 PyThreadState* __tstate = wxPyBeginAllowThreads();
25175 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
25176 wxPyEndAllowThreads(__tstate);
25177 if (PyErr_Occurred()) SWIG_fail;
25178 }
25179 {
25180 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25181 }
25182 return resultobj;
25183 fail:
25184 return NULL;
25185 }
25186
25187
25188 SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25189 PyObject *resultobj = 0;
25190 wxImageList *arg1 = (wxImageList *) 0 ;
25191 int arg2 ;
25192 wxDC *arg3 = 0 ;
25193 int arg4 ;
25194 int arg5 ;
25195 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
25196 bool arg7 = (bool) (bool)false ;
25197 bool result;
25198 void *argp1 = 0 ;
25199 int res1 = 0 ;
25200 int val2 ;
25201 int ecode2 = 0 ;
25202 void *argp3 = 0 ;
25203 int res3 = 0 ;
25204 int val4 ;
25205 int ecode4 = 0 ;
25206 int val5 ;
25207 int ecode5 = 0 ;
25208 int val6 ;
25209 int ecode6 = 0 ;
25210 bool val7 ;
25211 int ecode7 = 0 ;
25212 PyObject * obj0 = 0 ;
25213 PyObject * obj1 = 0 ;
25214 PyObject * obj2 = 0 ;
25215 PyObject * obj3 = 0 ;
25216 PyObject * obj4 = 0 ;
25217 PyObject * obj5 = 0 ;
25218 PyObject * obj6 = 0 ;
25219 char * kwnames[] = {
25220 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
25221 };
25222
25223 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25224 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
25225 if (!SWIG_IsOK(res1)) {
25226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
25227 }
25228 arg1 = reinterpret_cast< wxImageList * >(argp1);
25229 ecode2 = SWIG_AsVal_int(obj1, &val2);
25230 if (!SWIG_IsOK(ecode2)) {
25231 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
25232 }
25233 arg2 = static_cast< int >(val2);
25234 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
25235 if (!SWIG_IsOK(res3)) {
25236 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
25237 }
25238 if (!argp3) {
25239 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
25240 }
25241 arg3 = reinterpret_cast< wxDC * >(argp3);
25242 ecode4 = SWIG_AsVal_int(obj3, &val4);
25243 if (!SWIG_IsOK(ecode4)) {
25244 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
25245 }
25246 arg4 = static_cast< int >(val4);
25247 ecode5 = SWIG_AsVal_int(obj4, &val5);
25248 if (!SWIG_IsOK(ecode5)) {
25249 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
25250 }
25251 arg5 = static_cast< int >(val5);
25252 if (obj5) {
25253 ecode6 = SWIG_AsVal_int(obj5, &val6);
25254 if (!SWIG_IsOK(ecode6)) {
25255 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
25256 }
25257 arg6 = static_cast< int >(val6);
25258 }
25259 if (obj6) {
25260 ecode7 = SWIG_AsVal_bool(obj6, &val7);
25261 if (!SWIG_IsOK(ecode7)) {
25262 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
25263 }
25264 arg7 = static_cast< bool >(val7);
25265 }
25266 {
25267 PyThreadState* __tstate = wxPyBeginAllowThreads();
25268 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
25269 wxPyEndAllowThreads(__tstate);
25270 if (PyErr_Occurred()) SWIG_fail;
25271 }
25272 {
25273 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25274 }
25275 return resultobj;
25276 fail:
25277 return NULL;
25278 }
25279
25280
25281 SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25282 PyObject *resultobj = 0;
25283 wxImageList *arg1 = (wxImageList *) 0 ;
25284 int result;
25285 void *argp1 = 0 ;
25286 int res1 = 0 ;
25287 PyObject *swig_obj[1] ;
25288
25289 if (!args) SWIG_fail;
25290 swig_obj[0] = args;
25291 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
25292 if (!SWIG_IsOK(res1)) {
25293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
25294 }
25295 arg1 = reinterpret_cast< wxImageList * >(argp1);
25296 {
25297 PyThreadState* __tstate = wxPyBeginAllowThreads();
25298 result = (int)(arg1)->GetImageCount();
25299 wxPyEndAllowThreads(__tstate);
25300 if (PyErr_Occurred()) SWIG_fail;
25301 }
25302 resultobj = SWIG_From_int(static_cast< int >(result));
25303 return resultobj;
25304 fail:
25305 return NULL;
25306 }
25307
25308
25309 SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25310 PyObject *resultobj = 0;
25311 wxImageList *arg1 = (wxImageList *) 0 ;
25312 int arg2 ;
25313 bool result;
25314 void *argp1 = 0 ;
25315 int res1 = 0 ;
25316 int val2 ;
25317 int ecode2 = 0 ;
25318 PyObject * obj0 = 0 ;
25319 PyObject * obj1 = 0 ;
25320 char * kwnames[] = {
25321 (char *) "self",(char *) "index", NULL
25322 };
25323
25324 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
25325 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
25326 if (!SWIG_IsOK(res1)) {
25327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
25328 }
25329 arg1 = reinterpret_cast< wxImageList * >(argp1);
25330 ecode2 = SWIG_AsVal_int(obj1, &val2);
25331 if (!SWIG_IsOK(ecode2)) {
25332 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
25333 }
25334 arg2 = static_cast< int >(val2);
25335 {
25336 PyThreadState* __tstate = wxPyBeginAllowThreads();
25337 result = (bool)(arg1)->Remove(arg2);
25338 wxPyEndAllowThreads(__tstate);
25339 if (PyErr_Occurred()) SWIG_fail;
25340 }
25341 {
25342 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25343 }
25344 return resultobj;
25345 fail:
25346 return NULL;
25347 }
25348
25349
25350 SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25351 PyObject *resultobj = 0;
25352 wxImageList *arg1 = (wxImageList *) 0 ;
25353 bool result;
25354 void *argp1 = 0 ;
25355 int res1 = 0 ;
25356 PyObject *swig_obj[1] ;
25357
25358 if (!args) SWIG_fail;
25359 swig_obj[0] = args;
25360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
25361 if (!SWIG_IsOK(res1)) {
25362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
25363 }
25364 arg1 = reinterpret_cast< wxImageList * >(argp1);
25365 {
25366 PyThreadState* __tstate = wxPyBeginAllowThreads();
25367 result = (bool)(arg1)->RemoveAll();
25368 wxPyEndAllowThreads(__tstate);
25369 if (PyErr_Occurred()) SWIG_fail;
25370 }
25371 {
25372 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25373 }
25374 return resultobj;
25375 fail:
25376 return NULL;
25377 }
25378
25379
25380 SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25381 PyObject *resultobj = 0;
25382 wxImageList *arg1 = (wxImageList *) 0 ;
25383 int arg2 ;
25384 int *arg3 = 0 ;
25385 int *arg4 = 0 ;
25386 void *argp1 = 0 ;
25387 int res1 = 0 ;
25388 int val2 ;
25389 int ecode2 = 0 ;
25390 int temp3 ;
25391 int res3 = SWIG_TMPOBJ ;
25392 int temp4 ;
25393 int res4 = SWIG_TMPOBJ ;
25394 PyObject * obj0 = 0 ;
25395 PyObject * obj1 = 0 ;
25396 char * kwnames[] = {
25397 (char *) "self",(char *) "index", NULL
25398 };
25399
25400 arg3 = &temp3;
25401 arg4 = &temp4;
25402 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
25403 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
25404 if (!SWIG_IsOK(res1)) {
25405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
25406 }
25407 arg1 = reinterpret_cast< wxImageList * >(argp1);
25408 ecode2 = SWIG_AsVal_int(obj1, &val2);
25409 if (!SWIG_IsOK(ecode2)) {
25410 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
25411 }
25412 arg2 = static_cast< int >(val2);
25413 {
25414 PyThreadState* __tstate = wxPyBeginAllowThreads();
25415 (arg1)->GetSize(arg2,*arg3,*arg4);
25416 wxPyEndAllowThreads(__tstate);
25417 if (PyErr_Occurred()) SWIG_fail;
25418 }
25419 resultobj = SWIG_Py_Void();
25420 if (SWIG_IsTmpObj(res3)) {
25421 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
25422 } else {
25423 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25424 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
25425 }
25426 if (SWIG_IsTmpObj(res4)) {
25427 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
25428 } else {
25429 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25430 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
25431 }
25432 return resultobj;
25433 fail:
25434 return NULL;
25435 }
25436
25437
25438 SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25439 PyObject *obj;
25440 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25441 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
25442 return SWIG_Py_Void();
25443 }
25444
25445 SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25446 return SWIG_Python_InitShadowInstance(args);
25447 }
25448
25449 SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25450 PyObject *resultobj = 0;
25451 wxStockGDI *result = 0 ;
25452
25453 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
25454 {
25455 PyThreadState* __tstate = wxPyBeginAllowThreads();
25456 result = (wxStockGDI *)new wxStockGDI();
25457 wxPyEndAllowThreads(__tstate);
25458 if (PyErr_Occurred()) SWIG_fail;
25459 }
25460 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
25461 return resultobj;
25462 fail:
25463 return NULL;
25464 }
25465
25466
25467 SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25468 PyObject *resultobj = 0;
25469 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
25470 void *argp1 = 0 ;
25471 int res1 = 0 ;
25472 PyObject *swig_obj[1] ;
25473
25474 if (!args) SWIG_fail;
25475 swig_obj[0] = args;
25476 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
25477 if (!SWIG_IsOK(res1)) {
25478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
25479 }
25480 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
25481 {
25482 PyThreadState* __tstate = wxPyBeginAllowThreads();
25483 delete arg1;
25484
25485 wxPyEndAllowThreads(__tstate);
25486 if (PyErr_Occurred()) SWIG_fail;
25487 }
25488 resultobj = SWIG_Py_Void();
25489 return resultobj;
25490 fail:
25491 return NULL;
25492 }
25493
25494
25495 SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25496 PyObject *resultobj = 0;
25497
25498 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
25499 {
25500 PyThreadState* __tstate = wxPyBeginAllowThreads();
25501 wxStockGDI::DeleteAll();
25502 wxPyEndAllowThreads(__tstate);
25503 if (PyErr_Occurred()) SWIG_fail;
25504 }
25505 resultobj = SWIG_Py_Void();
25506 return resultobj;
25507 fail:
25508 return NULL;
25509 }
25510
25511
25512 SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25513 PyObject *resultobj = 0;
25514 wxStockGDI *result = 0 ;
25515
25516 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
25517 {
25518 PyThreadState* __tstate = wxPyBeginAllowThreads();
25519 {
25520 wxStockGDI &_result_ref = wxStockGDI::instance();
25521 result = (wxStockGDI *) &_result_ref;
25522 }
25523 wxPyEndAllowThreads(__tstate);
25524 if (PyErr_Occurred()) SWIG_fail;
25525 }
25526 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
25527 return resultobj;
25528 fail:
25529 return NULL;
25530 }
25531
25532
25533 SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25534 PyObject *resultobj = 0;
25535 wxStockGDI::Item arg1 ;
25536 wxBrush *result = 0 ;
25537 int val1 ;
25538 int ecode1 = 0 ;
25539 PyObject * obj0 = 0 ;
25540 char * kwnames[] = {
25541 (char *) "item", NULL
25542 };
25543
25544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
25545 ecode1 = SWIG_AsVal_int(obj0, &val1);
25546 if (!SWIG_IsOK(ecode1)) {
25547 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
25548 }
25549 arg1 = static_cast< wxStockGDI::Item >(val1);
25550 {
25551 PyThreadState* __tstate = wxPyBeginAllowThreads();
25552 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
25553 wxPyEndAllowThreads(__tstate);
25554 if (PyErr_Occurred()) SWIG_fail;
25555 }
25556 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
25557 return resultobj;
25558 fail:
25559 return NULL;
25560 }
25561
25562
25563 SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25564 PyObject *resultobj = 0;
25565 wxStockGDI::Item arg1 ;
25566 wxColour *result = 0 ;
25567 int val1 ;
25568 int ecode1 = 0 ;
25569 PyObject * obj0 = 0 ;
25570 char * kwnames[] = {
25571 (char *) "item", NULL
25572 };
25573
25574 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
25575 ecode1 = SWIG_AsVal_int(obj0, &val1);
25576 if (!SWIG_IsOK(ecode1)) {
25577 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
25578 }
25579 arg1 = static_cast< wxStockGDI::Item >(val1);
25580 {
25581 PyThreadState* __tstate = wxPyBeginAllowThreads();
25582 result = (wxColour *)wxStockGDI::GetColour(arg1);
25583 wxPyEndAllowThreads(__tstate);
25584 if (PyErr_Occurred()) SWIG_fail;
25585 }
25586 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
25587 return resultobj;
25588 fail:
25589 return NULL;
25590 }
25591
25592
25593 SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25594 PyObject *resultobj = 0;
25595 wxStockGDI::Item arg1 ;
25596 wxCursor *result = 0 ;
25597 int val1 ;
25598 int ecode1 = 0 ;
25599 PyObject * obj0 = 0 ;
25600 char * kwnames[] = {
25601 (char *) "item", NULL
25602 };
25603
25604 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
25605 ecode1 = SWIG_AsVal_int(obj0, &val1);
25606 if (!SWIG_IsOK(ecode1)) {
25607 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
25608 }
25609 arg1 = static_cast< wxStockGDI::Item >(val1);
25610 {
25611 PyThreadState* __tstate = wxPyBeginAllowThreads();
25612 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
25613 wxPyEndAllowThreads(__tstate);
25614 if (PyErr_Occurred()) SWIG_fail;
25615 }
25616 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
25617 return resultobj;
25618 fail:
25619 return NULL;
25620 }
25621
25622
25623 SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25624 PyObject *resultobj = 0;
25625 wxStockGDI::Item arg1 ;
25626 wxPen *result = 0 ;
25627 int val1 ;
25628 int ecode1 = 0 ;
25629 PyObject * obj0 = 0 ;
25630 char * kwnames[] = {
25631 (char *) "item", NULL
25632 };
25633
25634 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
25635 ecode1 = SWIG_AsVal_int(obj0, &val1);
25636 if (!SWIG_IsOK(ecode1)) {
25637 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
25638 }
25639 arg1 = static_cast< wxStockGDI::Item >(val1);
25640 {
25641 PyThreadState* __tstate = wxPyBeginAllowThreads();
25642 result = (wxPen *)wxStockGDI::GetPen(arg1);
25643 wxPyEndAllowThreads(__tstate);
25644 if (PyErr_Occurred()) SWIG_fail;
25645 }
25646 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
25647 return resultobj;
25648 fail:
25649 return NULL;
25650 }
25651
25652
25653 SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25654 PyObject *resultobj = 0;
25655 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
25656 wxStockGDI::Item arg2 ;
25657 wxFont *result = 0 ;
25658 void *argp1 = 0 ;
25659 int res1 = 0 ;
25660 int val2 ;
25661 int ecode2 = 0 ;
25662 PyObject * obj0 = 0 ;
25663 PyObject * obj1 = 0 ;
25664 char * kwnames[] = {
25665 (char *) "self",(char *) "item", NULL
25666 };
25667
25668 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
25669 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
25670 if (!SWIG_IsOK(res1)) {
25671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
25672 }
25673 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
25674 ecode2 = SWIG_AsVal_int(obj1, &val2);
25675 if (!SWIG_IsOK(ecode2)) {
25676 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
25677 }
25678 arg2 = static_cast< wxStockGDI::Item >(val2);
25679 {
25680 PyThreadState* __tstate = wxPyBeginAllowThreads();
25681 result = (wxFont *)(arg1)->GetFont(arg2);
25682 wxPyEndAllowThreads(__tstate);
25683 if (PyErr_Occurred()) SWIG_fail;
25684 }
25685 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
25686 return resultobj;
25687 fail:
25688 return NULL;
25689 }
25690
25691
25692 SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25693 PyObject *obj;
25694 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25695 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
25696 return SWIG_Py_Void();
25697 }
25698
25699 SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25700 return SWIG_Python_InitShadowInstance(args);
25701 }
25702
25703 SWIGINTERN int NullBitmap_set(PyObject *) {
25704 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
25705 return 1;
25706 }
25707
25708
25709 SWIGINTERN PyObject *NullBitmap_get(void) {
25710 PyObject *pyobj = 0;
25711
25712 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
25713 return pyobj;
25714 }
25715
25716
25717 SWIGINTERN int NullIcon_set(PyObject *) {
25718 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
25719 return 1;
25720 }
25721
25722
25723 SWIGINTERN PyObject *NullIcon_get(void) {
25724 PyObject *pyobj = 0;
25725
25726 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
25727 return pyobj;
25728 }
25729
25730
25731 SWIGINTERN int NullCursor_set(PyObject *) {
25732 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
25733 return 1;
25734 }
25735
25736
25737 SWIGINTERN PyObject *NullCursor_get(void) {
25738 PyObject *pyobj = 0;
25739
25740 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
25741 return pyobj;
25742 }
25743
25744
25745 SWIGINTERN int NullPen_set(PyObject *) {
25746 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
25747 return 1;
25748 }
25749
25750
25751 SWIGINTERN PyObject *NullPen_get(void) {
25752 PyObject *pyobj = 0;
25753
25754 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
25755 return pyobj;
25756 }
25757
25758
25759 SWIGINTERN int NullBrush_set(PyObject *) {
25760 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
25761 return 1;
25762 }
25763
25764
25765 SWIGINTERN PyObject *NullBrush_get(void) {
25766 PyObject *pyobj = 0;
25767
25768 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
25769 return pyobj;
25770 }
25771
25772
25773 SWIGINTERN int NullPalette_set(PyObject *) {
25774 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
25775 return 1;
25776 }
25777
25778
25779 SWIGINTERN PyObject *NullPalette_get(void) {
25780 PyObject *pyobj = 0;
25781
25782 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
25783 return pyobj;
25784 }
25785
25786
25787 SWIGINTERN int NullFont_set(PyObject *) {
25788 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
25789 return 1;
25790 }
25791
25792
25793 SWIGINTERN PyObject *NullFont_get(void) {
25794 PyObject *pyobj = 0;
25795
25796 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
25797 return pyobj;
25798 }
25799
25800
25801 SWIGINTERN int NullColour_set(PyObject *) {
25802 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
25803 return 1;
25804 }
25805
25806
25807 SWIGINTERN PyObject *NullColour_get(void) {
25808 PyObject *pyobj = 0;
25809
25810 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
25811 return pyobj;
25812 }
25813
25814
25815 SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25816 PyObject *resultobj = 0;
25817 wxGDIObjListBase *result = 0 ;
25818
25819 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
25820 {
25821 PyThreadState* __tstate = wxPyBeginAllowThreads();
25822 result = (wxGDIObjListBase *)new wxGDIObjListBase();
25823 wxPyEndAllowThreads(__tstate);
25824 if (PyErr_Occurred()) SWIG_fail;
25825 }
25826 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
25827 return resultobj;
25828 fail:
25829 return NULL;
25830 }
25831
25832
25833 SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25834 PyObject *resultobj = 0;
25835 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
25836 void *argp1 = 0 ;
25837 int res1 = 0 ;
25838 PyObject *swig_obj[1] ;
25839
25840 if (!args) SWIG_fail;
25841 swig_obj[0] = args;
25842 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
25843 if (!SWIG_IsOK(res1)) {
25844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
25845 }
25846 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
25847 {
25848 PyThreadState* __tstate = wxPyBeginAllowThreads();
25849 delete arg1;
25850
25851 wxPyEndAllowThreads(__tstate);
25852 if (PyErr_Occurred()) SWIG_fail;
25853 }
25854 resultobj = SWIG_Py_Void();
25855 return resultobj;
25856 fail:
25857 return NULL;
25858 }
25859
25860
25861 SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25862 PyObject *obj;
25863 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25864 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
25865 return SWIG_Py_Void();
25866 }
25867
25868 SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25869 return SWIG_Python_InitShadowInstance(args);
25870 }
25871
25872 SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25873 PyObject *resultobj = 0;
25874 wxPenList *arg1 = (wxPenList *) 0 ;
25875 wxColour *arg2 = 0 ;
25876 int arg3 ;
25877 int arg4 ;
25878 wxPen *result = 0 ;
25879 void *argp1 = 0 ;
25880 int res1 = 0 ;
25881 wxColour temp2 ;
25882 int val3 ;
25883 int ecode3 = 0 ;
25884 int val4 ;
25885 int ecode4 = 0 ;
25886 PyObject * obj0 = 0 ;
25887 PyObject * obj1 = 0 ;
25888 PyObject * obj2 = 0 ;
25889 PyObject * obj3 = 0 ;
25890 char * kwnames[] = {
25891 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
25892 };
25893
25894 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25895 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
25896 if (!SWIG_IsOK(res1)) {
25897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
25898 }
25899 arg1 = reinterpret_cast< wxPenList * >(argp1);
25900 {
25901 arg2 = &temp2;
25902 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25903 }
25904 ecode3 = SWIG_AsVal_int(obj2, &val3);
25905 if (!SWIG_IsOK(ecode3)) {
25906 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
25907 }
25908 arg3 = static_cast< int >(val3);
25909 ecode4 = SWIG_AsVal_int(obj3, &val4);
25910 if (!SWIG_IsOK(ecode4)) {
25911 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
25912 }
25913 arg4 = static_cast< int >(val4);
25914 {
25915 PyThreadState* __tstate = wxPyBeginAllowThreads();
25916 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
25917 wxPyEndAllowThreads(__tstate);
25918 if (PyErr_Occurred()) SWIG_fail;
25919 }
25920 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
25921 return resultobj;
25922 fail:
25923 return NULL;
25924 }
25925
25926
25927 SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25928 PyObject *resultobj = 0;
25929 wxPenList *arg1 = (wxPenList *) 0 ;
25930 wxPen *arg2 = (wxPen *) 0 ;
25931 void *argp1 = 0 ;
25932 int res1 = 0 ;
25933 void *argp2 = 0 ;
25934 int res2 = 0 ;
25935 PyObject * obj0 = 0 ;
25936 PyObject * obj1 = 0 ;
25937 char * kwnames[] = {
25938 (char *) "self",(char *) "pen", NULL
25939 };
25940
25941 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
25942 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
25943 if (!SWIG_IsOK(res1)) {
25944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
25945 }
25946 arg1 = reinterpret_cast< wxPenList * >(argp1);
25947 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
25948 if (!SWIG_IsOK(res2)) {
25949 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
25950 }
25951 arg2 = reinterpret_cast< wxPen * >(argp2);
25952 {
25953 PyThreadState* __tstate = wxPyBeginAllowThreads();
25954 (arg1)->AddPen(arg2);
25955 wxPyEndAllowThreads(__tstate);
25956 if (PyErr_Occurred()) SWIG_fail;
25957 }
25958 resultobj = SWIG_Py_Void();
25959 return resultobj;
25960 fail:
25961 return NULL;
25962 }
25963
25964
25965 SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25966 PyObject *resultobj = 0;
25967 wxPenList *arg1 = (wxPenList *) 0 ;
25968 wxPen *arg2 = (wxPen *) 0 ;
25969 void *argp1 = 0 ;
25970 int res1 = 0 ;
25971 void *argp2 = 0 ;
25972 int res2 = 0 ;
25973 PyObject * obj0 = 0 ;
25974 PyObject * obj1 = 0 ;
25975 char * kwnames[] = {
25976 (char *) "self",(char *) "pen", NULL
25977 };
25978
25979 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
25980 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
25981 if (!SWIG_IsOK(res1)) {
25982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
25983 }
25984 arg1 = reinterpret_cast< wxPenList * >(argp1);
25985 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
25986 if (!SWIG_IsOK(res2)) {
25987 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
25988 }
25989 arg2 = reinterpret_cast< wxPen * >(argp2);
25990 {
25991 PyThreadState* __tstate = wxPyBeginAllowThreads();
25992 (arg1)->RemovePen(arg2);
25993 wxPyEndAllowThreads(__tstate);
25994 if (PyErr_Occurred()) SWIG_fail;
25995 }
25996 resultobj = SWIG_Py_Void();
25997 return resultobj;
25998 fail:
25999 return NULL;
26000 }
26001
26002
26003 SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26004 PyObject *obj;
26005 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26006 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
26007 return SWIG_Py_Void();
26008 }
26009
26010 SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26011 PyObject *resultobj = 0;
26012 wxBrushList *arg1 = (wxBrushList *) 0 ;
26013 wxColour *arg2 = 0 ;
26014 int arg3 = (int) wxSOLID ;
26015 wxBrush *result = 0 ;
26016 void *argp1 = 0 ;
26017 int res1 = 0 ;
26018 wxColour temp2 ;
26019 int val3 ;
26020 int ecode3 = 0 ;
26021 PyObject * obj0 = 0 ;
26022 PyObject * obj1 = 0 ;
26023 PyObject * obj2 = 0 ;
26024 char * kwnames[] = {
26025 (char *) "self",(char *) "colour",(char *) "style", NULL
26026 };
26027
26028 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26029 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
26030 if (!SWIG_IsOK(res1)) {
26031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
26032 }
26033 arg1 = reinterpret_cast< wxBrushList * >(argp1);
26034 {
26035 arg2 = &temp2;
26036 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26037 }
26038 if (obj2) {
26039 ecode3 = SWIG_AsVal_int(obj2, &val3);
26040 if (!SWIG_IsOK(ecode3)) {
26041 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
26042 }
26043 arg3 = static_cast< int >(val3);
26044 }
26045 {
26046 PyThreadState* __tstate = wxPyBeginAllowThreads();
26047 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
26048 wxPyEndAllowThreads(__tstate);
26049 if (PyErr_Occurred()) SWIG_fail;
26050 }
26051 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
26052 return resultobj;
26053 fail:
26054 return NULL;
26055 }
26056
26057
26058 SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26059 PyObject *resultobj = 0;
26060 wxBrushList *arg1 = (wxBrushList *) 0 ;
26061 wxBrush *arg2 = (wxBrush *) 0 ;
26062 void *argp1 = 0 ;
26063 int res1 = 0 ;
26064 void *argp2 = 0 ;
26065 int res2 = 0 ;
26066 PyObject * obj0 = 0 ;
26067 PyObject * obj1 = 0 ;
26068 char * kwnames[] = {
26069 (char *) "self",(char *) "brush", NULL
26070 };
26071
26072 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
26073 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
26074 if (!SWIG_IsOK(res1)) {
26075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
26076 }
26077 arg1 = reinterpret_cast< wxBrushList * >(argp1);
26078 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
26079 if (!SWIG_IsOK(res2)) {
26080 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
26081 }
26082 arg2 = reinterpret_cast< wxBrush * >(argp2);
26083 {
26084 PyThreadState* __tstate = wxPyBeginAllowThreads();
26085 (arg1)->AddBrush(arg2);
26086 wxPyEndAllowThreads(__tstate);
26087 if (PyErr_Occurred()) SWIG_fail;
26088 }
26089 resultobj = SWIG_Py_Void();
26090 return resultobj;
26091 fail:
26092 return NULL;
26093 }
26094
26095
26096 SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26097 PyObject *resultobj = 0;
26098 wxBrushList *arg1 = (wxBrushList *) 0 ;
26099 wxBrush *arg2 = (wxBrush *) 0 ;
26100 void *argp1 = 0 ;
26101 int res1 = 0 ;
26102 void *argp2 = 0 ;
26103 int res2 = 0 ;
26104 PyObject * obj0 = 0 ;
26105 PyObject * obj1 = 0 ;
26106 char * kwnames[] = {
26107 (char *) "self",(char *) "brush", NULL
26108 };
26109
26110 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
26111 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
26112 if (!SWIG_IsOK(res1)) {
26113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
26114 }
26115 arg1 = reinterpret_cast< wxBrushList * >(argp1);
26116 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
26117 if (!SWIG_IsOK(res2)) {
26118 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
26119 }
26120 arg2 = reinterpret_cast< wxBrush * >(argp2);
26121 {
26122 PyThreadState* __tstate = wxPyBeginAllowThreads();
26123 (arg1)->RemoveBrush(arg2);
26124 wxPyEndAllowThreads(__tstate);
26125 if (PyErr_Occurred()) SWIG_fail;
26126 }
26127 resultobj = SWIG_Py_Void();
26128 return resultobj;
26129 fail:
26130 return NULL;
26131 }
26132
26133
26134 SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26135 PyObject *obj;
26136 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26137 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
26138 return SWIG_Py_Void();
26139 }
26140
26141 SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26142 PyObject *resultobj = 0;
26143 wxFontList *arg1 = (wxFontList *) 0 ;
26144 int arg2 ;
26145 int arg3 ;
26146 int arg4 ;
26147 int arg5 ;
26148 bool arg6 = (bool) false ;
26149 wxString const &arg7_defvalue = wxPyEmptyString ;
26150 wxString *arg7 = (wxString *) &arg7_defvalue ;
26151 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
26152 wxFont *result = 0 ;
26153 void *argp1 = 0 ;
26154 int res1 = 0 ;
26155 int val2 ;
26156 int ecode2 = 0 ;
26157 int val3 ;
26158 int ecode3 = 0 ;
26159 int val4 ;
26160 int ecode4 = 0 ;
26161 int val5 ;
26162 int ecode5 = 0 ;
26163 bool val6 ;
26164 int ecode6 = 0 ;
26165 bool temp7 = false ;
26166 int val8 ;
26167 int ecode8 = 0 ;
26168 PyObject * obj0 = 0 ;
26169 PyObject * obj1 = 0 ;
26170 PyObject * obj2 = 0 ;
26171 PyObject * obj3 = 0 ;
26172 PyObject * obj4 = 0 ;
26173 PyObject * obj5 = 0 ;
26174 PyObject * obj6 = 0 ;
26175 PyObject * obj7 = 0 ;
26176 char * kwnames[] = {
26177 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
26178 };
26179
26180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
26181 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
26182 if (!SWIG_IsOK(res1)) {
26183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
26184 }
26185 arg1 = reinterpret_cast< wxFontList * >(argp1);
26186 ecode2 = SWIG_AsVal_int(obj1, &val2);
26187 if (!SWIG_IsOK(ecode2)) {
26188 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
26189 }
26190 arg2 = static_cast< int >(val2);
26191 ecode3 = SWIG_AsVal_int(obj2, &val3);
26192 if (!SWIG_IsOK(ecode3)) {
26193 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
26194 }
26195 arg3 = static_cast< int >(val3);
26196 ecode4 = SWIG_AsVal_int(obj3, &val4);
26197 if (!SWIG_IsOK(ecode4)) {
26198 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
26199 }
26200 arg4 = static_cast< int >(val4);
26201 ecode5 = SWIG_AsVal_int(obj4, &val5);
26202 if (!SWIG_IsOK(ecode5)) {
26203 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
26204 }
26205 arg5 = static_cast< int >(val5);
26206 if (obj5) {
26207 ecode6 = SWIG_AsVal_bool(obj5, &val6);
26208 if (!SWIG_IsOK(ecode6)) {
26209 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
26210 }
26211 arg6 = static_cast< bool >(val6);
26212 }
26213 if (obj6) {
26214 {
26215 arg7 = wxString_in_helper(obj6);
26216 if (arg7 == NULL) SWIG_fail;
26217 temp7 = true;
26218 }
26219 }
26220 if (obj7) {
26221 ecode8 = SWIG_AsVal_int(obj7, &val8);
26222 if (!SWIG_IsOK(ecode8)) {
26223 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
26224 }
26225 arg8 = static_cast< wxFontEncoding >(val8);
26226 }
26227 {
26228 PyThreadState* __tstate = wxPyBeginAllowThreads();
26229 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
26230 wxPyEndAllowThreads(__tstate);
26231 if (PyErr_Occurred()) SWIG_fail;
26232 }
26233 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
26234 {
26235 if (temp7)
26236 delete arg7;
26237 }
26238 return resultobj;
26239 fail:
26240 {
26241 if (temp7)
26242 delete arg7;
26243 }
26244 return NULL;
26245 }
26246
26247
26248 SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26249 PyObject *resultobj = 0;
26250 wxFontList *arg1 = (wxFontList *) 0 ;
26251 wxFont *arg2 = (wxFont *) 0 ;
26252 void *argp1 = 0 ;
26253 int res1 = 0 ;
26254 void *argp2 = 0 ;
26255 int res2 = 0 ;
26256 PyObject * obj0 = 0 ;
26257 PyObject * obj1 = 0 ;
26258 char * kwnames[] = {
26259 (char *) "self",(char *) "font", NULL
26260 };
26261
26262 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
26263 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
26264 if (!SWIG_IsOK(res1)) {
26265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
26266 }
26267 arg1 = reinterpret_cast< wxFontList * >(argp1);
26268 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
26269 if (!SWIG_IsOK(res2)) {
26270 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
26271 }
26272 arg2 = reinterpret_cast< wxFont * >(argp2);
26273 {
26274 PyThreadState* __tstate = wxPyBeginAllowThreads();
26275 (arg1)->AddFont(arg2);
26276 wxPyEndAllowThreads(__tstate);
26277 if (PyErr_Occurred()) SWIG_fail;
26278 }
26279 resultobj = SWIG_Py_Void();
26280 return resultobj;
26281 fail:
26282 return NULL;
26283 }
26284
26285
26286 SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26287 PyObject *resultobj = 0;
26288 wxFontList *arg1 = (wxFontList *) 0 ;
26289 wxFont *arg2 = (wxFont *) 0 ;
26290 void *argp1 = 0 ;
26291 int res1 = 0 ;
26292 void *argp2 = 0 ;
26293 int res2 = 0 ;
26294 PyObject * obj0 = 0 ;
26295 PyObject * obj1 = 0 ;
26296 char * kwnames[] = {
26297 (char *) "self",(char *) "font", NULL
26298 };
26299
26300 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
26301 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
26302 if (!SWIG_IsOK(res1)) {
26303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
26304 }
26305 arg1 = reinterpret_cast< wxFontList * >(argp1);
26306 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
26307 if (!SWIG_IsOK(res2)) {
26308 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
26309 }
26310 arg2 = reinterpret_cast< wxFont * >(argp2);
26311 {
26312 PyThreadState* __tstate = wxPyBeginAllowThreads();
26313 (arg1)->RemoveFont(arg2);
26314 wxPyEndAllowThreads(__tstate);
26315 if (PyErr_Occurred()) SWIG_fail;
26316 }
26317 resultobj = SWIG_Py_Void();
26318 return resultobj;
26319 fail:
26320 return NULL;
26321 }
26322
26323
26324 SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26325 PyObject *obj;
26326 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26327 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
26328 return SWIG_Py_Void();
26329 }
26330
26331 SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26332 PyObject *resultobj = 0;
26333 wxColourDatabase *result = 0 ;
26334
26335 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
26336 {
26337 if (!wxPyCheckForApp()) SWIG_fail;
26338 PyThreadState* __tstate = wxPyBeginAllowThreads();
26339 result = (wxColourDatabase *)new wxColourDatabase();
26340 wxPyEndAllowThreads(__tstate);
26341 if (PyErr_Occurred()) SWIG_fail;
26342 }
26343 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
26344 return resultobj;
26345 fail:
26346 return NULL;
26347 }
26348
26349
26350 SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26351 PyObject *resultobj = 0;
26352 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
26353 void *argp1 = 0 ;
26354 int res1 = 0 ;
26355 PyObject *swig_obj[1] ;
26356
26357 if (!args) SWIG_fail;
26358 swig_obj[0] = args;
26359 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
26360 if (!SWIG_IsOK(res1)) {
26361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
26362 }
26363 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
26364 {
26365 PyThreadState* __tstate = wxPyBeginAllowThreads();
26366 delete arg1;
26367
26368 wxPyEndAllowThreads(__tstate);
26369 if (PyErr_Occurred()) SWIG_fail;
26370 }
26371 resultobj = SWIG_Py_Void();
26372 return resultobj;
26373 fail:
26374 return NULL;
26375 }
26376
26377
26378 SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26379 PyObject *resultobj = 0;
26380 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
26381 wxString *arg2 = 0 ;
26382 wxColour result;
26383 void *argp1 = 0 ;
26384 int res1 = 0 ;
26385 bool temp2 = false ;
26386 PyObject * obj0 = 0 ;
26387 PyObject * obj1 = 0 ;
26388 char * kwnames[] = {
26389 (char *) "self",(char *) "name", NULL
26390 };
26391
26392 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
26393 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
26394 if (!SWIG_IsOK(res1)) {
26395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
26396 }
26397 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
26398 {
26399 arg2 = wxString_in_helper(obj1);
26400 if (arg2 == NULL) SWIG_fail;
26401 temp2 = true;
26402 }
26403 {
26404 PyThreadState* __tstate = wxPyBeginAllowThreads();
26405 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
26406 wxPyEndAllowThreads(__tstate);
26407 if (PyErr_Occurred()) SWIG_fail;
26408 }
26409 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26410 {
26411 if (temp2)
26412 delete arg2;
26413 }
26414 return resultobj;
26415 fail:
26416 {
26417 if (temp2)
26418 delete arg2;
26419 }
26420 return NULL;
26421 }
26422
26423
26424 SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26425 PyObject *resultobj = 0;
26426 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
26427 wxColour *arg2 = 0 ;
26428 wxString result;
26429 void *argp1 = 0 ;
26430 int res1 = 0 ;
26431 wxColour temp2 ;
26432 PyObject * obj0 = 0 ;
26433 PyObject * obj1 = 0 ;
26434 char * kwnames[] = {
26435 (char *) "self",(char *) "colour", NULL
26436 };
26437
26438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
26439 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
26440 if (!SWIG_IsOK(res1)) {
26441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
26442 }
26443 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
26444 {
26445 arg2 = &temp2;
26446 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26447 }
26448 {
26449 PyThreadState* __tstate = wxPyBeginAllowThreads();
26450 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
26451 wxPyEndAllowThreads(__tstate);
26452 if (PyErr_Occurred()) SWIG_fail;
26453 }
26454 {
26455 #if wxUSE_UNICODE
26456 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
26457 #else
26458 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
26459 #endif
26460 }
26461 return resultobj;
26462 fail:
26463 return NULL;
26464 }
26465
26466
26467 SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26468 PyObject *resultobj = 0;
26469 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
26470 wxString *arg2 = 0 ;
26471 wxColour *arg3 = 0 ;
26472 void *argp1 = 0 ;
26473 int res1 = 0 ;
26474 bool temp2 = false ;
26475 wxColour temp3 ;
26476 PyObject * obj0 = 0 ;
26477 PyObject * obj1 = 0 ;
26478 PyObject * obj2 = 0 ;
26479 char * kwnames[] = {
26480 (char *) "self",(char *) "name",(char *) "colour", NULL
26481 };
26482
26483 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26484 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
26485 if (!SWIG_IsOK(res1)) {
26486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
26487 }
26488 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
26489 {
26490 arg2 = wxString_in_helper(obj1);
26491 if (arg2 == NULL) SWIG_fail;
26492 temp2 = true;
26493 }
26494 {
26495 arg3 = &temp3;
26496 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
26497 }
26498 {
26499 PyThreadState* __tstate = wxPyBeginAllowThreads();
26500 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
26501 wxPyEndAllowThreads(__tstate);
26502 if (PyErr_Occurred()) SWIG_fail;
26503 }
26504 resultobj = SWIG_Py_Void();
26505 {
26506 if (temp2)
26507 delete arg2;
26508 }
26509 return resultobj;
26510 fail:
26511 {
26512 if (temp2)
26513 delete arg2;
26514 }
26515 return NULL;
26516 }
26517
26518
26519 SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26520 PyObject *resultobj = 0;
26521 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
26522 wxString *arg2 = 0 ;
26523 int arg3 ;
26524 int arg4 ;
26525 int arg5 ;
26526 void *argp1 = 0 ;
26527 int res1 = 0 ;
26528 bool temp2 = false ;
26529 int val3 ;
26530 int ecode3 = 0 ;
26531 int val4 ;
26532 int ecode4 = 0 ;
26533 int val5 ;
26534 int ecode5 = 0 ;
26535 PyObject * obj0 = 0 ;
26536 PyObject * obj1 = 0 ;
26537 PyObject * obj2 = 0 ;
26538 PyObject * obj3 = 0 ;
26539 PyObject * obj4 = 0 ;
26540 char * kwnames[] = {
26541 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
26542 };
26543
26544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26545 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
26546 if (!SWIG_IsOK(res1)) {
26547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
26548 }
26549 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
26550 {
26551 arg2 = wxString_in_helper(obj1);
26552 if (arg2 == NULL) SWIG_fail;
26553 temp2 = true;
26554 }
26555 ecode3 = SWIG_AsVal_int(obj2, &val3);
26556 if (!SWIG_IsOK(ecode3)) {
26557 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
26558 }
26559 arg3 = static_cast< int >(val3);
26560 ecode4 = SWIG_AsVal_int(obj3, &val4);
26561 if (!SWIG_IsOK(ecode4)) {
26562 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
26563 }
26564 arg4 = static_cast< int >(val4);
26565 ecode5 = SWIG_AsVal_int(obj4, &val5);
26566 if (!SWIG_IsOK(ecode5)) {
26567 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
26568 }
26569 arg5 = static_cast< int >(val5);
26570 {
26571 PyThreadState* __tstate = wxPyBeginAllowThreads();
26572 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
26573 wxPyEndAllowThreads(__tstate);
26574 if (PyErr_Occurred()) SWIG_fail;
26575 }
26576 resultobj = SWIG_Py_Void();
26577 {
26578 if (temp2)
26579 delete arg2;
26580 }
26581 return resultobj;
26582 fail:
26583 {
26584 if (temp2)
26585 delete arg2;
26586 }
26587 return NULL;
26588 }
26589
26590
26591 SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26592 PyObject *obj;
26593 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26594 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
26595 return SWIG_Py_Void();
26596 }
26597
26598 SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26599 return SWIG_Python_InitShadowInstance(args);
26600 }
26601
26602 SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26603 PyObject *resultobj = 0;
26604 wxFontList *result = 0 ;
26605
26606 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
26607 {
26608 PyThreadState* __tstate = wxPyBeginAllowThreads();
26609 result = (wxFontList *)_wxPyInitTheFontList();
26610 wxPyEndAllowThreads(__tstate);
26611 if (PyErr_Occurred()) SWIG_fail;
26612 }
26613 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
26614 return resultobj;
26615 fail:
26616 return NULL;
26617 }
26618
26619
26620 SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26621 PyObject *resultobj = 0;
26622 wxPenList *result = 0 ;
26623
26624 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
26625 {
26626 PyThreadState* __tstate = wxPyBeginAllowThreads();
26627 result = (wxPenList *)_wxPyInitThePenList();
26628 wxPyEndAllowThreads(__tstate);
26629 if (PyErr_Occurred()) SWIG_fail;
26630 }
26631 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
26632 return resultobj;
26633 fail:
26634 return NULL;
26635 }
26636
26637
26638 SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26639 PyObject *resultobj = 0;
26640 wxBrushList *result = 0 ;
26641
26642 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
26643 {
26644 PyThreadState* __tstate = wxPyBeginAllowThreads();
26645 result = (wxBrushList *)_wxPyInitTheBrushList();
26646 wxPyEndAllowThreads(__tstate);
26647 if (PyErr_Occurred()) SWIG_fail;
26648 }
26649 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
26650 return resultobj;
26651 fail:
26652 return NULL;
26653 }
26654
26655
26656 SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26657 PyObject *resultobj = 0;
26658 wxColourDatabase *result = 0 ;
26659
26660 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
26661 {
26662 PyThreadState* __tstate = wxPyBeginAllowThreads();
26663 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
26664 wxPyEndAllowThreads(__tstate);
26665 if (PyErr_Occurred()) SWIG_fail;
26666 }
26667 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
26668 return resultobj;
26669 fail:
26670 return NULL;
26671 }
26672
26673
26674 SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26675 PyObject *resultobj = 0;
26676 wxEffects *result = 0 ;
26677
26678 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
26679 {
26680 PyThreadState* __tstate = wxPyBeginAllowThreads();
26681 result = (wxEffects *)new wxEffects();
26682 wxPyEndAllowThreads(__tstate);
26683 if (PyErr_Occurred()) SWIG_fail;
26684 }
26685 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
26686 return resultobj;
26687 fail:
26688 return NULL;
26689 }
26690
26691
26692 SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26693 PyObject *resultobj = 0;
26694 wxEffects *arg1 = (wxEffects *) 0 ;
26695 wxColour result;
26696 void *argp1 = 0 ;
26697 int res1 = 0 ;
26698 PyObject *swig_obj[1] ;
26699
26700 if (!args) SWIG_fail;
26701 swig_obj[0] = args;
26702 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26703 if (!SWIG_IsOK(res1)) {
26704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
26705 }
26706 arg1 = reinterpret_cast< wxEffects * >(argp1);
26707 {
26708 PyThreadState* __tstate = wxPyBeginAllowThreads();
26709 result = ((wxEffects const *)arg1)->GetHighlightColour();
26710 wxPyEndAllowThreads(__tstate);
26711 if (PyErr_Occurred()) SWIG_fail;
26712 }
26713 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26714 return resultobj;
26715 fail:
26716 return NULL;
26717 }
26718
26719
26720 SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26721 PyObject *resultobj = 0;
26722 wxEffects *arg1 = (wxEffects *) 0 ;
26723 wxColour result;
26724 void *argp1 = 0 ;
26725 int res1 = 0 ;
26726 PyObject *swig_obj[1] ;
26727
26728 if (!args) SWIG_fail;
26729 swig_obj[0] = args;
26730 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26731 if (!SWIG_IsOK(res1)) {
26732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
26733 }
26734 arg1 = reinterpret_cast< wxEffects * >(argp1);
26735 {
26736 PyThreadState* __tstate = wxPyBeginAllowThreads();
26737 result = ((wxEffects const *)arg1)->GetLightShadow();
26738 wxPyEndAllowThreads(__tstate);
26739 if (PyErr_Occurred()) SWIG_fail;
26740 }
26741 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26742 return resultobj;
26743 fail:
26744 return NULL;
26745 }
26746
26747
26748 SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26749 PyObject *resultobj = 0;
26750 wxEffects *arg1 = (wxEffects *) 0 ;
26751 wxColour result;
26752 void *argp1 = 0 ;
26753 int res1 = 0 ;
26754 PyObject *swig_obj[1] ;
26755
26756 if (!args) SWIG_fail;
26757 swig_obj[0] = args;
26758 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26759 if (!SWIG_IsOK(res1)) {
26760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
26761 }
26762 arg1 = reinterpret_cast< wxEffects * >(argp1);
26763 {
26764 PyThreadState* __tstate = wxPyBeginAllowThreads();
26765 result = ((wxEffects const *)arg1)->GetFaceColour();
26766 wxPyEndAllowThreads(__tstate);
26767 if (PyErr_Occurred()) SWIG_fail;
26768 }
26769 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26770 return resultobj;
26771 fail:
26772 return NULL;
26773 }
26774
26775
26776 SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26777 PyObject *resultobj = 0;
26778 wxEffects *arg1 = (wxEffects *) 0 ;
26779 wxColour result;
26780 void *argp1 = 0 ;
26781 int res1 = 0 ;
26782 PyObject *swig_obj[1] ;
26783
26784 if (!args) SWIG_fail;
26785 swig_obj[0] = args;
26786 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26787 if (!SWIG_IsOK(res1)) {
26788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
26789 }
26790 arg1 = reinterpret_cast< wxEffects * >(argp1);
26791 {
26792 PyThreadState* __tstate = wxPyBeginAllowThreads();
26793 result = ((wxEffects const *)arg1)->GetMediumShadow();
26794 wxPyEndAllowThreads(__tstate);
26795 if (PyErr_Occurred()) SWIG_fail;
26796 }
26797 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26798 return resultobj;
26799 fail:
26800 return NULL;
26801 }
26802
26803
26804 SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26805 PyObject *resultobj = 0;
26806 wxEffects *arg1 = (wxEffects *) 0 ;
26807 wxColour result;
26808 void *argp1 = 0 ;
26809 int res1 = 0 ;
26810 PyObject *swig_obj[1] ;
26811
26812 if (!args) SWIG_fail;
26813 swig_obj[0] = args;
26814 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26815 if (!SWIG_IsOK(res1)) {
26816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
26817 }
26818 arg1 = reinterpret_cast< wxEffects * >(argp1);
26819 {
26820 PyThreadState* __tstate = wxPyBeginAllowThreads();
26821 result = ((wxEffects const *)arg1)->GetDarkShadow();
26822 wxPyEndAllowThreads(__tstate);
26823 if (PyErr_Occurred()) SWIG_fail;
26824 }
26825 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26826 return resultobj;
26827 fail:
26828 return NULL;
26829 }
26830
26831
26832 SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26833 PyObject *resultobj = 0;
26834 wxEffects *arg1 = (wxEffects *) 0 ;
26835 wxColour *arg2 = 0 ;
26836 void *argp1 = 0 ;
26837 int res1 = 0 ;
26838 wxColour temp2 ;
26839 PyObject * obj0 = 0 ;
26840 PyObject * obj1 = 0 ;
26841 char * kwnames[] = {
26842 (char *) "self",(char *) "c", NULL
26843 };
26844
26845 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
26846 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26847 if (!SWIG_IsOK(res1)) {
26848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
26849 }
26850 arg1 = reinterpret_cast< wxEffects * >(argp1);
26851 {
26852 arg2 = &temp2;
26853 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26854 }
26855 {
26856 PyThreadState* __tstate = wxPyBeginAllowThreads();
26857 (arg1)->SetHighlightColour((wxColour const &)*arg2);
26858 wxPyEndAllowThreads(__tstate);
26859 if (PyErr_Occurred()) SWIG_fail;
26860 }
26861 resultobj = SWIG_Py_Void();
26862 return resultobj;
26863 fail:
26864 return NULL;
26865 }
26866
26867
26868 SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26869 PyObject *resultobj = 0;
26870 wxEffects *arg1 = (wxEffects *) 0 ;
26871 wxColour *arg2 = 0 ;
26872 void *argp1 = 0 ;
26873 int res1 = 0 ;
26874 wxColour temp2 ;
26875 PyObject * obj0 = 0 ;
26876 PyObject * obj1 = 0 ;
26877 char * kwnames[] = {
26878 (char *) "self",(char *) "c", NULL
26879 };
26880
26881 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
26882 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26883 if (!SWIG_IsOK(res1)) {
26884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
26885 }
26886 arg1 = reinterpret_cast< wxEffects * >(argp1);
26887 {
26888 arg2 = &temp2;
26889 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26890 }
26891 {
26892 PyThreadState* __tstate = wxPyBeginAllowThreads();
26893 (arg1)->SetLightShadow((wxColour const &)*arg2);
26894 wxPyEndAllowThreads(__tstate);
26895 if (PyErr_Occurred()) SWIG_fail;
26896 }
26897 resultobj = SWIG_Py_Void();
26898 return resultobj;
26899 fail:
26900 return NULL;
26901 }
26902
26903
26904 SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26905 PyObject *resultobj = 0;
26906 wxEffects *arg1 = (wxEffects *) 0 ;
26907 wxColour *arg2 = 0 ;
26908 void *argp1 = 0 ;
26909 int res1 = 0 ;
26910 wxColour temp2 ;
26911 PyObject * obj0 = 0 ;
26912 PyObject * obj1 = 0 ;
26913 char * kwnames[] = {
26914 (char *) "self",(char *) "c", NULL
26915 };
26916
26917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
26918 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26919 if (!SWIG_IsOK(res1)) {
26920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
26921 }
26922 arg1 = reinterpret_cast< wxEffects * >(argp1);
26923 {
26924 arg2 = &temp2;
26925 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26926 }
26927 {
26928 PyThreadState* __tstate = wxPyBeginAllowThreads();
26929 (arg1)->SetFaceColour((wxColour const &)*arg2);
26930 wxPyEndAllowThreads(__tstate);
26931 if (PyErr_Occurred()) SWIG_fail;
26932 }
26933 resultobj = SWIG_Py_Void();
26934 return resultobj;
26935 fail:
26936 return NULL;
26937 }
26938
26939
26940 SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26941 PyObject *resultobj = 0;
26942 wxEffects *arg1 = (wxEffects *) 0 ;
26943 wxColour *arg2 = 0 ;
26944 void *argp1 = 0 ;
26945 int res1 = 0 ;
26946 wxColour temp2 ;
26947 PyObject * obj0 = 0 ;
26948 PyObject * obj1 = 0 ;
26949 char * kwnames[] = {
26950 (char *) "self",(char *) "c", NULL
26951 };
26952
26953 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
26954 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26955 if (!SWIG_IsOK(res1)) {
26956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
26957 }
26958 arg1 = reinterpret_cast< wxEffects * >(argp1);
26959 {
26960 arg2 = &temp2;
26961 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26962 }
26963 {
26964 PyThreadState* __tstate = wxPyBeginAllowThreads();
26965 (arg1)->SetMediumShadow((wxColour const &)*arg2);
26966 wxPyEndAllowThreads(__tstate);
26967 if (PyErr_Occurred()) SWIG_fail;
26968 }
26969 resultobj = SWIG_Py_Void();
26970 return resultobj;
26971 fail:
26972 return NULL;
26973 }
26974
26975
26976 SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26977 PyObject *resultobj = 0;
26978 wxEffects *arg1 = (wxEffects *) 0 ;
26979 wxColour *arg2 = 0 ;
26980 void *argp1 = 0 ;
26981 int res1 = 0 ;
26982 wxColour temp2 ;
26983 PyObject * obj0 = 0 ;
26984 PyObject * obj1 = 0 ;
26985 char * kwnames[] = {
26986 (char *) "self",(char *) "c", NULL
26987 };
26988
26989 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
26990 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26991 if (!SWIG_IsOK(res1)) {
26992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
26993 }
26994 arg1 = reinterpret_cast< wxEffects * >(argp1);
26995 {
26996 arg2 = &temp2;
26997 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26998 }
26999 {
27000 PyThreadState* __tstate = wxPyBeginAllowThreads();
27001 (arg1)->SetDarkShadow((wxColour const &)*arg2);
27002 wxPyEndAllowThreads(__tstate);
27003 if (PyErr_Occurred()) SWIG_fail;
27004 }
27005 resultobj = SWIG_Py_Void();
27006 return resultobj;
27007 fail:
27008 return NULL;
27009 }
27010
27011
27012 SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27013 PyObject *resultobj = 0;
27014 wxEffects *arg1 = (wxEffects *) 0 ;
27015 wxColour *arg2 = 0 ;
27016 wxColour *arg3 = 0 ;
27017 wxColour *arg4 = 0 ;
27018 wxColour *arg5 = 0 ;
27019 wxColour *arg6 = 0 ;
27020 void *argp1 = 0 ;
27021 int res1 = 0 ;
27022 wxColour temp2 ;
27023 wxColour temp3 ;
27024 wxColour temp4 ;
27025 wxColour temp5 ;
27026 wxColour temp6 ;
27027 PyObject * obj0 = 0 ;
27028 PyObject * obj1 = 0 ;
27029 PyObject * obj2 = 0 ;
27030 PyObject * obj3 = 0 ;
27031 PyObject * obj4 = 0 ;
27032 PyObject * obj5 = 0 ;
27033 char * kwnames[] = {
27034 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
27035 };
27036
27037 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
27038 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
27039 if (!SWIG_IsOK(res1)) {
27040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
27041 }
27042 arg1 = reinterpret_cast< wxEffects * >(argp1);
27043 {
27044 arg2 = &temp2;
27045 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
27046 }
27047 {
27048 arg3 = &temp3;
27049 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
27050 }
27051 {
27052 arg4 = &temp4;
27053 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
27054 }
27055 {
27056 arg5 = &temp5;
27057 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
27058 }
27059 {
27060 arg6 = &temp6;
27061 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
27062 }
27063 {
27064 PyThreadState* __tstate = wxPyBeginAllowThreads();
27065 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
27066 wxPyEndAllowThreads(__tstate);
27067 if (PyErr_Occurred()) SWIG_fail;
27068 }
27069 resultobj = SWIG_Py_Void();
27070 return resultobj;
27071 fail:
27072 return NULL;
27073 }
27074
27075
27076 SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27077 PyObject *resultobj = 0;
27078 wxEffects *arg1 = (wxEffects *) 0 ;
27079 wxDC *arg2 = 0 ;
27080 wxRect *arg3 = 0 ;
27081 int arg4 = (int) 1 ;
27082 void *argp1 = 0 ;
27083 int res1 = 0 ;
27084 void *argp2 = 0 ;
27085 int res2 = 0 ;
27086 wxRect temp3 ;
27087 int val4 ;
27088 int ecode4 = 0 ;
27089 PyObject * obj0 = 0 ;
27090 PyObject * obj1 = 0 ;
27091 PyObject * obj2 = 0 ;
27092 PyObject * obj3 = 0 ;
27093 char * kwnames[] = {
27094 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
27095 };
27096
27097 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27098 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
27099 if (!SWIG_IsOK(res1)) {
27100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
27101 }
27102 arg1 = reinterpret_cast< wxEffects * >(argp1);
27103 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
27104 if (!SWIG_IsOK(res2)) {
27105 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
27106 }
27107 if (!argp2) {
27108 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
27109 }
27110 arg2 = reinterpret_cast< wxDC * >(argp2);
27111 {
27112 arg3 = &temp3;
27113 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
27114 }
27115 if (obj3) {
27116 ecode4 = SWIG_AsVal_int(obj3, &val4);
27117 if (!SWIG_IsOK(ecode4)) {
27118 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
27119 }
27120 arg4 = static_cast< int >(val4);
27121 }
27122 {
27123 PyThreadState* __tstate = wxPyBeginAllowThreads();
27124 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
27125 wxPyEndAllowThreads(__tstate);
27126 if (PyErr_Occurred()) SWIG_fail;
27127 }
27128 resultobj = SWIG_Py_Void();
27129 return resultobj;
27130 fail:
27131 return NULL;
27132 }
27133
27134
27135 SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27136 PyObject *resultobj = 0;
27137 wxEffects *arg1 = (wxEffects *) 0 ;
27138 wxRect *arg2 = 0 ;
27139 wxDC *arg3 = 0 ;
27140 wxBitmap *arg4 = 0 ;
27141 bool result;
27142 void *argp1 = 0 ;
27143 int res1 = 0 ;
27144 wxRect temp2 ;
27145 void *argp3 = 0 ;
27146 int res3 = 0 ;
27147 void *argp4 = 0 ;
27148 int res4 = 0 ;
27149 PyObject * obj0 = 0 ;
27150 PyObject * obj1 = 0 ;
27151 PyObject * obj2 = 0 ;
27152 PyObject * obj3 = 0 ;
27153 char * kwnames[] = {
27154 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
27155 };
27156
27157 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27158 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
27159 if (!SWIG_IsOK(res1)) {
27160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
27161 }
27162 arg1 = reinterpret_cast< wxEffects * >(argp1);
27163 {
27164 arg2 = &temp2;
27165 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
27166 }
27167 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
27168 if (!SWIG_IsOK(res3)) {
27169 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
27170 }
27171 if (!argp3) {
27172 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
27173 }
27174 arg3 = reinterpret_cast< wxDC * >(argp3);
27175 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
27176 if (!SWIG_IsOK(res4)) {
27177 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
27178 }
27179 if (!argp4) {
27180 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
27181 }
27182 arg4 = reinterpret_cast< wxBitmap * >(argp4);
27183 {
27184 PyThreadState* __tstate = wxPyBeginAllowThreads();
27185 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
27186 wxPyEndAllowThreads(__tstate);
27187 if (PyErr_Occurred()) SWIG_fail;
27188 }
27189 {
27190 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27191 }
27192 return resultobj;
27193 fail:
27194 return NULL;
27195 }
27196
27197
27198 SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27199 PyObject *obj;
27200 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27201 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
27202 return SWIG_Py_Void();
27203 }
27204
27205 SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27206 return SWIG_Python_InitShadowInstance(args);
27207 }
27208
27209 SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27210 PyObject *resultobj = 0;
27211 int arg1 ;
27212 int arg2 ;
27213 bool arg3 ;
27214 wxSplitterRenderParams *result = 0 ;
27215 int val1 ;
27216 int ecode1 = 0 ;
27217 int val2 ;
27218 int ecode2 = 0 ;
27219 bool val3 ;
27220 int ecode3 = 0 ;
27221 PyObject * obj0 = 0 ;
27222 PyObject * obj1 = 0 ;
27223 PyObject * obj2 = 0 ;
27224 char * kwnames[] = {
27225 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
27226 };
27227
27228 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27229 ecode1 = SWIG_AsVal_int(obj0, &val1);
27230 if (!SWIG_IsOK(ecode1)) {
27231 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
27232 }
27233 arg1 = static_cast< int >(val1);
27234 ecode2 = SWIG_AsVal_int(obj1, &val2);
27235 if (!SWIG_IsOK(ecode2)) {
27236 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
27237 }
27238 arg2 = static_cast< int >(val2);
27239 ecode3 = SWIG_AsVal_bool(obj2, &val3);
27240 if (!SWIG_IsOK(ecode3)) {
27241 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
27242 }
27243 arg3 = static_cast< bool >(val3);
27244 {
27245 PyThreadState* __tstate = wxPyBeginAllowThreads();
27246 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
27247 wxPyEndAllowThreads(__tstate);
27248 if (PyErr_Occurred()) SWIG_fail;
27249 }
27250 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
27251 return resultobj;
27252 fail:
27253 return NULL;
27254 }
27255
27256
27257 SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27258 PyObject *resultobj = 0;
27259 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
27260 void *argp1 = 0 ;
27261 int res1 = 0 ;
27262 PyObject *swig_obj[1] ;
27263
27264 if (!args) SWIG_fail;
27265 swig_obj[0] = args;
27266 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
27267 if (!SWIG_IsOK(res1)) {
27268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
27269 }
27270 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
27271 {
27272 PyThreadState* __tstate = wxPyBeginAllowThreads();
27273 delete arg1;
27274
27275 wxPyEndAllowThreads(__tstate);
27276 if (PyErr_Occurred()) SWIG_fail;
27277 }
27278 resultobj = SWIG_Py_Void();
27279 return resultobj;
27280 fail:
27281 return NULL;
27282 }
27283
27284
27285 SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27286 PyObject *resultobj = 0;
27287 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
27288 int result;
27289 void *argp1 = 0 ;
27290 int res1 = 0 ;
27291 PyObject *swig_obj[1] ;
27292
27293 if (!args) SWIG_fail;
27294 swig_obj[0] = args;
27295 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
27296 if (!SWIG_IsOK(res1)) {
27297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
27298 }
27299 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
27300 result = (int)(int) ((arg1)->widthSash);
27301 resultobj = SWIG_From_int(static_cast< int >(result));
27302 return resultobj;
27303 fail:
27304 return NULL;
27305 }
27306
27307
27308 SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27309 PyObject *resultobj = 0;
27310 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
27311 int result;
27312 void *argp1 = 0 ;
27313 int res1 = 0 ;
27314 PyObject *swig_obj[1] ;
27315
27316 if (!args) SWIG_fail;
27317 swig_obj[0] = args;
27318 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
27319 if (!SWIG_IsOK(res1)) {
27320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
27321 }
27322 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
27323 result = (int)(int) ((arg1)->border);
27324 resultobj = SWIG_From_int(static_cast< int >(result));
27325 return resultobj;
27326 fail:
27327 return NULL;
27328 }
27329
27330
27331 SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27332 PyObject *resultobj = 0;
27333 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
27334 bool result;
27335 void *argp1 = 0 ;
27336 int res1 = 0 ;
27337 PyObject *swig_obj[1] ;
27338
27339 if (!args) SWIG_fail;
27340 swig_obj[0] = args;
27341 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
27342 if (!SWIG_IsOK(res1)) {
27343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
27344 }
27345 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
27346 result = (bool)(bool) ((arg1)->isHotSensitive);
27347 resultobj = SWIG_From_bool(static_cast< bool >(result));
27348 return resultobj;
27349 fail:
27350 return NULL;
27351 }
27352
27353
27354 SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27355 PyObject *obj;
27356 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27357 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
27358 return SWIG_Py_Void();
27359 }
27360
27361 SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27362 return SWIG_Python_InitShadowInstance(args);
27363 }
27364
27365 SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27366 PyObject *resultobj = 0;
27367 int arg1 ;
27368 int arg2 ;
27369 wxRendererVersion *result = 0 ;
27370 int val1 ;
27371 int ecode1 = 0 ;
27372 int val2 ;
27373 int ecode2 = 0 ;
27374 PyObject * obj0 = 0 ;
27375 PyObject * obj1 = 0 ;
27376 char * kwnames[] = {
27377 (char *) "version_",(char *) "age_", NULL
27378 };
27379
27380 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
27381 ecode1 = SWIG_AsVal_int(obj0, &val1);
27382 if (!SWIG_IsOK(ecode1)) {
27383 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
27384 }
27385 arg1 = static_cast< int >(val1);
27386 ecode2 = SWIG_AsVal_int(obj1, &val2);
27387 if (!SWIG_IsOK(ecode2)) {
27388 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
27389 }
27390 arg2 = static_cast< int >(val2);
27391 {
27392 PyThreadState* __tstate = wxPyBeginAllowThreads();
27393 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
27394 wxPyEndAllowThreads(__tstate);
27395 if (PyErr_Occurred()) SWIG_fail;
27396 }
27397 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
27398 return resultobj;
27399 fail:
27400 return NULL;
27401 }
27402
27403
27404 SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27405 PyObject *resultobj = 0;
27406 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
27407 void *argp1 = 0 ;
27408 int res1 = 0 ;
27409 PyObject *swig_obj[1] ;
27410
27411 if (!args) SWIG_fail;
27412 swig_obj[0] = args;
27413 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
27414 if (!SWIG_IsOK(res1)) {
27415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
27416 }
27417 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
27418 {
27419 PyThreadState* __tstate = wxPyBeginAllowThreads();
27420 delete arg1;
27421
27422 wxPyEndAllowThreads(__tstate);
27423 if (PyErr_Occurred()) SWIG_fail;
27424 }
27425 resultobj = SWIG_Py_Void();
27426 return resultobj;
27427 fail:
27428 return NULL;
27429 }
27430
27431
27432 SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27433 PyObject *resultobj = 0;
27434 wxRendererVersion *arg1 = 0 ;
27435 bool result;
27436 void *argp1 = 0 ;
27437 int res1 = 0 ;
27438 PyObject * obj0 = 0 ;
27439 char * kwnames[] = {
27440 (char *) "ver", NULL
27441 };
27442
27443 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
27444 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
27445 if (!SWIG_IsOK(res1)) {
27446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
27447 }
27448 if (!argp1) {
27449 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
27450 }
27451 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
27452 {
27453 PyThreadState* __tstate = wxPyBeginAllowThreads();
27454 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
27455 wxPyEndAllowThreads(__tstate);
27456 if (PyErr_Occurred()) SWIG_fail;
27457 }
27458 {
27459 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27460 }
27461 return resultobj;
27462 fail:
27463 return NULL;
27464 }
27465
27466
27467 SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27468 PyObject *resultobj = 0;
27469 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
27470 int result;
27471 void *argp1 = 0 ;
27472 int res1 = 0 ;
27473 PyObject *swig_obj[1] ;
27474
27475 if (!args) SWIG_fail;
27476 swig_obj[0] = args;
27477 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
27478 if (!SWIG_IsOK(res1)) {
27479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
27480 }
27481 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
27482 result = (int)(int) ((arg1)->version);
27483 resultobj = SWIG_From_int(static_cast< int >(result));
27484 return resultobj;
27485 fail:
27486 return NULL;
27487 }
27488
27489
27490 SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27491 PyObject *resultobj = 0;
27492 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
27493 int result;
27494 void *argp1 = 0 ;
27495 int res1 = 0 ;
27496 PyObject *swig_obj[1] ;
27497
27498 if (!args) SWIG_fail;
27499 swig_obj[0] = args;
27500 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
27501 if (!SWIG_IsOK(res1)) {
27502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
27503 }
27504 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
27505 result = (int)(int) ((arg1)->age);
27506 resultobj = SWIG_From_int(static_cast< int >(result));
27507 return resultobj;
27508 fail:
27509 return NULL;
27510 }
27511
27512
27513 SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27514 PyObject *obj;
27515 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27516 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
27517 return SWIG_Py_Void();
27518 }
27519
27520 SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27521 return SWIG_Python_InitShadowInstance(args);
27522 }
27523
27524 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27525 PyObject *resultobj = 0;
27526 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
27527 wxWindow *arg2 = (wxWindow *) 0 ;
27528 wxDC *arg3 = 0 ;
27529 wxRect *arg4 = 0 ;
27530 int arg5 = (int) 0 ;
27531 void *argp1 = 0 ;
27532 int res1 = 0 ;
27533 void *argp2 = 0 ;
27534 int res2 = 0 ;
27535 void *argp3 = 0 ;
27536 int res3 = 0 ;
27537 wxRect temp4 ;
27538 int val5 ;
27539 int ecode5 = 0 ;
27540 PyObject * obj0 = 0 ;
27541 PyObject * obj1 = 0 ;
27542 PyObject * obj2 = 0 ;
27543 PyObject * obj3 = 0 ;
27544 PyObject * obj4 = 0 ;
27545 char * kwnames[] = {
27546 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
27547 };
27548
27549 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27550 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
27551 if (!SWIG_IsOK(res1)) {
27552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
27553 }
27554 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
27555 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
27556 if (!SWIG_IsOK(res2)) {
27557 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
27558 }
27559 arg2 = reinterpret_cast< wxWindow * >(argp2);
27560 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
27561 if (!SWIG_IsOK(res3)) {
27562 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
27563 }
27564 if (!argp3) {
27565 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
27566 }
27567 arg3 = reinterpret_cast< wxDC * >(argp3);
27568 {
27569 arg4 = &temp4;
27570 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
27571 }
27572 if (obj4) {
27573 ecode5 = SWIG_AsVal_int(obj4, &val5);
27574 if (!SWIG_IsOK(ecode5)) {
27575 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
27576 }
27577 arg5 = static_cast< int >(val5);
27578 }
27579 {
27580 PyThreadState* __tstate = wxPyBeginAllowThreads();
27581 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
27582 wxPyEndAllowThreads(__tstate);
27583 if (PyErr_Occurred()) SWIG_fail;
27584 }
27585 resultobj = SWIG_Py_Void();
27586 return resultobj;
27587 fail:
27588 return NULL;
27589 }
27590
27591
27592 SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27593 PyObject *resultobj = 0;
27594 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
27595 wxWindow *arg2 = (wxWindow *) 0 ;
27596 wxDC *arg3 = 0 ;
27597 wxRect *arg4 = 0 ;
27598 int arg5 = (int) 0 ;
27599 void *argp1 = 0 ;
27600 int res1 = 0 ;
27601 void *argp2 = 0 ;
27602 int res2 = 0 ;
27603 void *argp3 = 0 ;
27604 int res3 = 0 ;
27605 wxRect temp4 ;
27606 int val5 ;
27607 int ecode5 = 0 ;
27608 PyObject * obj0 = 0 ;
27609 PyObject * obj1 = 0 ;
27610 PyObject * obj2 = 0 ;
27611 PyObject * obj3 = 0 ;
27612 PyObject * obj4 = 0 ;
27613 char * kwnames[] = {
27614 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
27615 };
27616
27617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27618 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
27619 if (!SWIG_IsOK(res1)) {
27620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
27621 }
27622 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
27623 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
27624 if (!SWIG_IsOK(res2)) {
27625 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
27626 }
27627 arg2 = reinterpret_cast< wxWindow * >(argp2);
27628 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
27629 if (!SWIG_IsOK(res3)) {
27630 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
27631 }
27632 if (!argp3) {
27633 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
27634 }
27635 arg3 = reinterpret_cast< wxDC * >(argp3);
27636 {
27637 arg4 = &temp4;
27638 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
27639 }
27640 if (obj4) {
27641 ecode5 = SWIG_AsVal_int(obj4, &val5);
27642 if (!SWIG_IsOK(ecode5)) {
27643 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
27644 }
27645 arg5 = static_cast< int >(val5);
27646 }
27647 {
27648 PyThreadState* __tstate = wxPyBeginAllowThreads();
27649 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
27650 wxPyEndAllowThreads(__tstate);
27651 if (PyErr_Occurred()) SWIG_fail;
27652 }
27653 resultobj = SWIG_Py_Void();
27654 return resultobj;
27655 fail:
27656 return NULL;
27657 }
27658
27659
27660 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27661 PyObject *resultobj = 0;
27662 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
27663 wxWindow *arg2 = (wxWindow *) 0 ;
27664 wxDC *arg3 = 0 ;
27665 wxRect *arg4 = 0 ;
27666 int arg5 = (int) 0 ;
27667 void *argp1 = 0 ;
27668 int res1 = 0 ;
27669 void *argp2 = 0 ;
27670 int res2 = 0 ;
27671 void *argp3 = 0 ;
27672 int res3 = 0 ;
27673 wxRect temp4 ;
27674 int val5 ;
27675 int ecode5 = 0 ;
27676 PyObject * obj0 = 0 ;
27677 PyObject * obj1 = 0 ;
27678 PyObject * obj2 = 0 ;
27679 PyObject * obj3 = 0 ;
27680 PyObject * obj4 = 0 ;
27681 char * kwnames[] = {
27682 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
27683 };
27684
27685 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27686 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
27687 if (!SWIG_IsOK(res1)) {
27688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
27689 }
27690 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
27691 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
27692 if (!SWIG_IsOK(res2)) {
27693 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
27694 }
27695 arg2 = reinterpret_cast< wxWindow * >(argp2);
27696 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
27697 if (!SWIG_IsOK(res3)) {
27698 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
27699 }
27700 if (!argp3) {
27701 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
27702 }
27703 arg3 = reinterpret_cast< wxDC * >(argp3);
27704 {
27705 arg4 = &temp4;
27706 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
27707 }
27708 if (obj4) {
27709 ecode5 = SWIG_AsVal_int(obj4, &val5);
27710 if (!SWIG_IsOK(ecode5)) {
27711 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
27712 }
27713 arg5 = static_cast< int >(val5);
27714 }
27715 {
27716 PyThreadState* __tstate = wxPyBeginAllowThreads();
27717 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
27718 wxPyEndAllowThreads(__tstate);
27719 if (PyErr_Occurred()) SWIG_fail;
27720 }
27721 resultobj = SWIG_Py_Void();
27722 return resultobj;
27723 fail:
27724 return NULL;
27725 }
27726
27727
27728 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27729 PyObject *resultobj = 0;
27730 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
27731 wxWindow *arg2 = (wxWindow *) 0 ;
27732 wxDC *arg3 = 0 ;
27733 wxSize *arg4 = 0 ;
27734 int arg5 ;
27735 wxOrientation arg6 ;
27736 int arg7 = (int) 0 ;
27737 void *argp1 = 0 ;
27738 int res1 = 0 ;
27739 void *argp2 = 0 ;
27740 int res2 = 0 ;
27741 void *argp3 = 0 ;
27742 int res3 = 0 ;
27743 wxSize temp4 ;
27744 int val5 ;
27745 int ecode5 = 0 ;
27746 int val6 ;
27747 int ecode6 = 0 ;
27748 int val7 ;
27749 int ecode7 = 0 ;
27750 PyObject * obj0 = 0 ;
27751 PyObject * obj1 = 0 ;
27752 PyObject * obj2 = 0 ;
27753 PyObject * obj3 = 0 ;
27754 PyObject * obj4 = 0 ;
27755 PyObject * obj5 = 0 ;
27756 PyObject * obj6 = 0 ;
27757 char * kwnames[] = {
27758 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
27759 };
27760
27761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
27762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
27763 if (!SWIG_IsOK(res1)) {
27764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
27765 }
27766 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
27767 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
27768 if (!SWIG_IsOK(res2)) {
27769 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
27770 }
27771 arg2 = reinterpret_cast< wxWindow * >(argp2);
27772 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
27773 if (!SWIG_IsOK(res3)) {
27774 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
27775 }
27776 if (!argp3) {
27777 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
27778 }
27779 arg3 = reinterpret_cast< wxDC * >(argp3);
27780 {
27781 arg4 = &temp4;
27782 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
27783 }
27784 ecode5 = SWIG_AsVal_int(obj4, &val5);
27785 if (!SWIG_IsOK(ecode5)) {
27786 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
27787 }
27788 arg5 = static_cast< int >(val5);
27789 ecode6 = SWIG_AsVal_int(obj5, &val6);
27790 if (!SWIG_IsOK(ecode6)) {
27791 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
27792 }
27793 arg6 = static_cast< wxOrientation >(val6);
27794 if (obj6) {
27795 ecode7 = SWIG_AsVal_int(obj6, &val7);
27796 if (!SWIG_IsOK(ecode7)) {
27797 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
27798 }
27799 arg7 = static_cast< int >(val7);
27800 }
27801 {
27802 PyThreadState* __tstate = wxPyBeginAllowThreads();
27803 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
27804 wxPyEndAllowThreads(__tstate);
27805 if (PyErr_Occurred()) SWIG_fail;
27806 }
27807 resultobj = SWIG_Py_Void();
27808 return resultobj;
27809 fail:
27810 return NULL;
27811 }
27812
27813
27814 SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27815 PyObject *resultobj = 0;
27816 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
27817 wxWindow *arg2 = (wxWindow *) 0 ;
27818 wxDC *arg3 = 0 ;
27819 wxRect *arg4 = 0 ;
27820 int arg5 = (int) 0 ;
27821 void *argp1 = 0 ;
27822 int res1 = 0 ;
27823 void *argp2 = 0 ;
27824 int res2 = 0 ;
27825 void *argp3 = 0 ;
27826 int res3 = 0 ;
27827 wxRect temp4 ;
27828 int val5 ;
27829 int ecode5 = 0 ;
27830 PyObject * obj0 = 0 ;
27831 PyObject * obj1 = 0 ;
27832 PyObject * obj2 = 0 ;
27833 PyObject * obj3 = 0 ;
27834 PyObject * obj4 = 0 ;
27835 char * kwnames[] = {
27836 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
27837 };
27838
27839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27840 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
27841 if (!SWIG_IsOK(res1)) {
27842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
27843 }
27844 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
27845 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
27846 if (!SWIG_IsOK(res2)) {
27847 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
27848 }
27849 arg2 = reinterpret_cast< wxWindow * >(argp2);
27850 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
27851 if (!SWIG_IsOK(res3)) {
27852 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
27853 }
27854 if (!argp3) {
27855 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
27856 }
27857 arg3 = reinterpret_cast< wxDC * >(argp3);
27858 {
27859 arg4 = &temp4;
27860 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
27861 }
27862 if (obj4) {
27863 ecode5 = SWIG_AsVal_int(obj4, &val5);
27864 if (!SWIG_IsOK(ecode5)) {
27865 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
27866 }
27867 arg5 = static_cast< int >(val5);
27868 }
27869 {
27870 PyThreadState* __tstate = wxPyBeginAllowThreads();
27871 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
27872 wxPyEndAllowThreads(__tstate);
27873 if (PyErr_Occurred()) SWIG_fail;
27874 }
27875 resultobj = SWIG_Py_Void();
27876 return resultobj;
27877 fail:
27878 return NULL;
27879 }
27880
27881
27882 SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27883 PyObject *resultobj = 0;
27884 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
27885 wxWindow *arg2 = (wxWindow *) 0 ;
27886 wxDC *arg3 = 0 ;
27887 wxRect *arg4 = 0 ;
27888 int arg5 = (int) 0 ;
27889 void *argp1 = 0 ;
27890 int res1 = 0 ;
27891 void *argp2 = 0 ;
27892 int res2 = 0 ;
27893 void *argp3 = 0 ;
27894 int res3 = 0 ;
27895 wxRect temp4 ;
27896 int val5 ;
27897 int ecode5 = 0 ;
27898 PyObject * obj0 = 0 ;
27899 PyObject * obj1 = 0 ;
27900 PyObject * obj2 = 0 ;
27901 PyObject * obj3 = 0 ;
27902 PyObject * obj4 = 0 ;
27903 char * kwnames[] = {
27904 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
27905 };
27906
27907 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27908 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
27909 if (!SWIG_IsOK(res1)) {
27910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
27911 }
27912 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
27913 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
27914 if (!SWIG_IsOK(res2)) {
27915 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
27916 }
27917 arg2 = reinterpret_cast< wxWindow * >(argp2);
27918 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
27919 if (!SWIG_IsOK(res3)) {
27920 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
27921 }
27922 if (!argp3) {
27923 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
27924 }
27925 arg3 = reinterpret_cast< wxDC * >(argp3);
27926 {
27927 arg4 = &temp4;
27928 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
27929 }
27930 if (obj4) {
27931 ecode5 = SWIG_AsVal_int(obj4, &val5);
27932 if (!SWIG_IsOK(ecode5)) {
27933 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
27934 }
27935 arg5 = static_cast< int >(val5);
27936 }
27937 {
27938 PyThreadState* __tstate = wxPyBeginAllowThreads();
27939 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
27940 wxPyEndAllowThreads(__tstate);
27941 if (PyErr_Occurred()) SWIG_fail;
27942 }
27943 resultobj = SWIG_Py_Void();
27944 return resultobj;
27945 fail:
27946 return NULL;
27947 }
27948
27949
27950 SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27951 PyObject *resultobj = 0;
27952 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
27953 wxWindow *arg2 = (wxWindow *) 0 ;
27954 wxDC *arg3 = 0 ;
27955 wxRect *arg4 = 0 ;
27956 int arg5 = (int) 0 ;
27957 void *argp1 = 0 ;
27958 int res1 = 0 ;
27959 void *argp2 = 0 ;
27960 int res2 = 0 ;
27961 void *argp3 = 0 ;
27962 int res3 = 0 ;
27963 wxRect temp4 ;
27964 int val5 ;
27965 int ecode5 = 0 ;
27966 PyObject * obj0 = 0 ;
27967 PyObject * obj1 = 0 ;
27968 PyObject * obj2 = 0 ;
27969 PyObject * obj3 = 0 ;
27970 PyObject * obj4 = 0 ;
27971 char * kwnames[] = {
27972 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
27973 };
27974
27975 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27976 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
27977 if (!SWIG_IsOK(res1)) {
27978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
27979 }
27980 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
27981 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
27982 if (!SWIG_IsOK(res2)) {
27983 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
27984 }
27985 arg2 = reinterpret_cast< wxWindow * >(argp2);
27986 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
27987 if (!SWIG_IsOK(res3)) {
27988 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
27989 }
27990 if (!argp3) {
27991 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
27992 }
27993 arg3 = reinterpret_cast< wxDC * >(argp3);
27994 {
27995 arg4 = &temp4;
27996 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
27997 }
27998 if (obj4) {
27999 ecode5 = SWIG_AsVal_int(obj4, &val5);
28000 if (!SWIG_IsOK(ecode5)) {
28001 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
28002 }
28003 arg5 = static_cast< int >(val5);
28004 }
28005 {
28006 PyThreadState* __tstate = wxPyBeginAllowThreads();
28007 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
28008 wxPyEndAllowThreads(__tstate);
28009 if (PyErr_Occurred()) SWIG_fail;
28010 }
28011 resultobj = SWIG_Py_Void();
28012 return resultobj;
28013 fail:
28014 return NULL;
28015 }
28016
28017
28018 SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28019 PyObject *resultobj = 0;
28020 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
28021 wxWindow *arg2 = (wxWindow *) 0 ;
28022 wxDC *arg3 = 0 ;
28023 wxRect *arg4 = 0 ;
28024 int arg5 = (int) 0 ;
28025 void *argp1 = 0 ;
28026 int res1 = 0 ;
28027 void *argp2 = 0 ;
28028 int res2 = 0 ;
28029 void *argp3 = 0 ;
28030 int res3 = 0 ;
28031 wxRect temp4 ;
28032 int val5 ;
28033 int ecode5 = 0 ;
28034 PyObject * obj0 = 0 ;
28035 PyObject * obj1 = 0 ;
28036 PyObject * obj2 = 0 ;
28037 PyObject * obj3 = 0 ;
28038 PyObject * obj4 = 0 ;
28039 char * kwnames[] = {
28040 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
28041 };
28042
28043 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28044 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
28045 if (!SWIG_IsOK(res1)) {
28046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
28047 }
28048 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
28049 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
28050 if (!SWIG_IsOK(res2)) {
28051 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
28052 }
28053 arg2 = reinterpret_cast< wxWindow * >(argp2);
28054 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
28055 if (!SWIG_IsOK(res3)) {
28056 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
28057 }
28058 if (!argp3) {
28059 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
28060 }
28061 arg3 = reinterpret_cast< wxDC * >(argp3);
28062 {
28063 arg4 = &temp4;
28064 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
28065 }
28066 if (obj4) {
28067 ecode5 = SWIG_AsVal_int(obj4, &val5);
28068 if (!SWIG_IsOK(ecode5)) {
28069 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
28070 }
28071 arg5 = static_cast< int >(val5);
28072 }
28073 {
28074 PyThreadState* __tstate = wxPyBeginAllowThreads();
28075 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
28076 wxPyEndAllowThreads(__tstate);
28077 if (PyErr_Occurred()) SWIG_fail;
28078 }
28079 resultobj = SWIG_Py_Void();
28080 return resultobj;
28081 fail:
28082 return NULL;
28083 }
28084
28085
28086 SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28087 PyObject *resultobj = 0;
28088 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
28089 wxWindow *arg2 = (wxWindow *) 0 ;
28090 wxDC *arg3 = 0 ;
28091 wxRect *arg4 = 0 ;
28092 int arg5 = (int) 0 ;
28093 void *argp1 = 0 ;
28094 int res1 = 0 ;
28095 void *argp2 = 0 ;
28096 int res2 = 0 ;
28097 void *argp3 = 0 ;
28098 int res3 = 0 ;
28099 wxRect temp4 ;
28100 int val5 ;
28101 int ecode5 = 0 ;
28102 PyObject * obj0 = 0 ;
28103 PyObject * obj1 = 0 ;
28104 PyObject * obj2 = 0 ;
28105 PyObject * obj3 = 0 ;
28106 PyObject * obj4 = 0 ;
28107 char * kwnames[] = {
28108 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
28109 };
28110
28111 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28112 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
28113 if (!SWIG_IsOK(res1)) {
28114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
28115 }
28116 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
28117 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
28118 if (!SWIG_IsOK(res2)) {
28119 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
28120 }
28121 arg2 = reinterpret_cast< wxWindow * >(argp2);
28122 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
28123 if (!SWIG_IsOK(res3)) {
28124 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
28125 }
28126 if (!argp3) {
28127 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
28128 }
28129 arg3 = reinterpret_cast< wxDC * >(argp3);
28130 {
28131 arg4 = &temp4;
28132 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
28133 }
28134 if (obj4) {
28135 ecode5 = SWIG_AsVal_int(obj4, &val5);
28136 if (!SWIG_IsOK(ecode5)) {
28137 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
28138 }
28139 arg5 = static_cast< int >(val5);
28140 }
28141 {
28142 PyThreadState* __tstate = wxPyBeginAllowThreads();
28143 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
28144 wxPyEndAllowThreads(__tstate);
28145 if (PyErr_Occurred()) SWIG_fail;
28146 }
28147 resultobj = SWIG_Py_Void();
28148 return resultobj;
28149 fail:
28150 return NULL;
28151 }
28152
28153
28154 SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28155 PyObject *resultobj = 0;
28156 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
28157 wxWindow *arg2 = (wxWindow *) 0 ;
28158 SwigValueWrapper<wxSplitterRenderParams > result;
28159 void *argp1 = 0 ;
28160 int res1 = 0 ;
28161 void *argp2 = 0 ;
28162 int res2 = 0 ;
28163 PyObject * obj0 = 0 ;
28164 PyObject * obj1 = 0 ;
28165 char * kwnames[] = {
28166 (char *) "self",(char *) "win", NULL
28167 };
28168
28169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
28170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
28171 if (!SWIG_IsOK(res1)) {
28172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
28173 }
28174 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
28175 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
28176 if (!SWIG_IsOK(res2)) {
28177 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
28178 }
28179 arg2 = reinterpret_cast< wxWindow * >(argp2);
28180 {
28181 PyThreadState* __tstate = wxPyBeginAllowThreads();
28182 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
28183 wxPyEndAllowThreads(__tstate);
28184 if (PyErr_Occurred()) SWIG_fail;
28185 }
28186 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
28187 return resultobj;
28188 fail:
28189 return NULL;
28190 }
28191
28192
28193 SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28194 PyObject *resultobj = 0;
28195 wxRendererNative *result = 0 ;
28196
28197 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
28198 {
28199 if (!wxPyCheckForApp()) SWIG_fail;
28200 PyThreadState* __tstate = wxPyBeginAllowThreads();
28201 {
28202 wxRendererNative &_result_ref = wxRendererNative::Get();
28203 result = (wxRendererNative *) &_result_ref;
28204 }
28205 wxPyEndAllowThreads(__tstate);
28206 if (PyErr_Occurred()) SWIG_fail;
28207 }
28208 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
28209 return resultobj;
28210 fail:
28211 return NULL;
28212 }
28213
28214
28215 SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28216 PyObject *resultobj = 0;
28217 wxRendererNative *result = 0 ;
28218
28219 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
28220 {
28221 if (!wxPyCheckForApp()) SWIG_fail;
28222 PyThreadState* __tstate = wxPyBeginAllowThreads();
28223 {
28224 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
28225 result = (wxRendererNative *) &_result_ref;
28226 }
28227 wxPyEndAllowThreads(__tstate);
28228 if (PyErr_Occurred()) SWIG_fail;
28229 }
28230 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
28231 return resultobj;
28232 fail:
28233 return NULL;
28234 }
28235
28236
28237 SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28238 PyObject *resultobj = 0;
28239 wxRendererNative *result = 0 ;
28240
28241 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
28242 {
28243 if (!wxPyCheckForApp()) SWIG_fail;
28244 PyThreadState* __tstate = wxPyBeginAllowThreads();
28245 {
28246 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
28247 result = (wxRendererNative *) &_result_ref;
28248 }
28249 wxPyEndAllowThreads(__tstate);
28250 if (PyErr_Occurred()) SWIG_fail;
28251 }
28252 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
28253 return resultobj;
28254 fail:
28255 return NULL;
28256 }
28257
28258
28259 SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28260 PyObject *resultobj = 0;
28261 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
28262 wxRendererNative *result = 0 ;
28263 void *argp1 = 0 ;
28264 int res1 = 0 ;
28265 PyObject * obj0 = 0 ;
28266 char * kwnames[] = {
28267 (char *) "renderer", NULL
28268 };
28269
28270 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
28271 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
28272 if (!SWIG_IsOK(res1)) {
28273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
28274 }
28275 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
28276 {
28277 if (!wxPyCheckForApp()) SWIG_fail;
28278 PyThreadState* __tstate = wxPyBeginAllowThreads();
28279 result = (wxRendererNative *)wxRendererNative::Set(arg1);
28280 wxPyEndAllowThreads(__tstate);
28281 if (PyErr_Occurred()) SWIG_fail;
28282 }
28283 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
28284 return resultobj;
28285 fail:
28286 return NULL;
28287 }
28288
28289
28290 SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28291 PyObject *resultobj = 0;
28292 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
28293 SwigValueWrapper<wxRendererVersion > result;
28294 void *argp1 = 0 ;
28295 int res1 = 0 ;
28296 PyObject *swig_obj[1] ;
28297
28298 if (!args) SWIG_fail;
28299 swig_obj[0] = args;
28300 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
28301 if (!SWIG_IsOK(res1)) {
28302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
28303 }
28304 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
28305 {
28306 PyThreadState* __tstate = wxPyBeginAllowThreads();
28307 result = ((wxRendererNative const *)arg1)->GetVersion();
28308 wxPyEndAllowThreads(__tstate);
28309 if (PyErr_Occurred()) SWIG_fail;
28310 }
28311 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
28312 return resultobj;
28313 fail:
28314 return NULL;
28315 }
28316
28317
28318 SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28319 PyObject *obj;
28320 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28321 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
28322 return SWIG_Py_Void();
28323 }
28324
28325 SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28326 PyObject *resultobj = 0;
28327 wxPseudoDC *result = 0 ;
28328
28329 if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail;
28330 {
28331 PyThreadState* __tstate = wxPyBeginAllowThreads();
28332 result = (wxPseudoDC *)new wxPseudoDC();
28333 wxPyEndAllowThreads(__tstate);
28334 if (PyErr_Occurred()) SWIG_fail;
28335 }
28336 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 );
28337 return resultobj;
28338 fail:
28339 return NULL;
28340 }
28341
28342
28343 SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28344 PyObject *resultobj = 0;
28345 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28346 void *argp1 = 0 ;
28347 int res1 = 0 ;
28348 PyObject *swig_obj[1] ;
28349
28350 if (!args) SWIG_fail;
28351 swig_obj[0] = args;
28352 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28353 if (!SWIG_IsOK(res1)) {
28354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28355 }
28356 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28357 {
28358 PyThreadState* __tstate = wxPyBeginAllowThreads();
28359 (arg1)->BeginDrawing();
28360 wxPyEndAllowThreads(__tstate);
28361 if (PyErr_Occurred()) SWIG_fail;
28362 }
28363 resultobj = SWIG_Py_Void();
28364 return resultobj;
28365 fail:
28366 return NULL;
28367 }
28368
28369
28370 SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28371 PyObject *resultobj = 0;
28372 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28373 void *argp1 = 0 ;
28374 int res1 = 0 ;
28375 PyObject *swig_obj[1] ;
28376
28377 if (!args) SWIG_fail;
28378 swig_obj[0] = args;
28379 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28380 if (!SWIG_IsOK(res1)) {
28381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28382 }
28383 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28384 {
28385 PyThreadState* __tstate = wxPyBeginAllowThreads();
28386 (arg1)->EndDrawing();
28387 wxPyEndAllowThreads(__tstate);
28388 if (PyErr_Occurred()) SWIG_fail;
28389 }
28390 resultobj = SWIG_Py_Void();
28391 return resultobj;
28392 fail:
28393 return NULL;
28394 }
28395
28396
28397 SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28398 PyObject *resultobj = 0;
28399 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28400 void *argp1 = 0 ;
28401 int res1 = 0 ;
28402 PyObject *swig_obj[1] ;
28403
28404 if (!args) SWIG_fail;
28405 swig_obj[0] = args;
28406 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 );
28407 if (!SWIG_IsOK(res1)) {
28408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28409 }
28410 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28411 {
28412 PyThreadState* __tstate = wxPyBeginAllowThreads();
28413 delete arg1;
28414
28415 wxPyEndAllowThreads(__tstate);
28416 if (PyErr_Occurred()) SWIG_fail;
28417 }
28418 resultobj = SWIG_Py_Void();
28419 return resultobj;
28420 fail:
28421 return NULL;
28422 }
28423
28424
28425 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28426 PyObject *resultobj = 0;
28427 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28428 void *argp1 = 0 ;
28429 int res1 = 0 ;
28430 PyObject *swig_obj[1] ;
28431
28432 if (!args) SWIG_fail;
28433 swig_obj[0] = args;
28434 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28435 if (!SWIG_IsOK(res1)) {
28436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28437 }
28438 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28439 {
28440 PyThreadState* __tstate = wxPyBeginAllowThreads();
28441 (arg1)->RemoveAll();
28442 wxPyEndAllowThreads(__tstate);
28443 if (PyErr_Occurred()) SWIG_fail;
28444 }
28445 resultobj = SWIG_Py_Void();
28446 return resultobj;
28447 fail:
28448 return NULL;
28449 }
28450
28451
28452 SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28453 PyObject *resultobj = 0;
28454 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28455 int result;
28456 void *argp1 = 0 ;
28457 int res1 = 0 ;
28458 PyObject *swig_obj[1] ;
28459
28460 if (!args) SWIG_fail;
28461 swig_obj[0] = args;
28462 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28463 if (!SWIG_IsOK(res1)) {
28464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28465 }
28466 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28467 {
28468 PyThreadState* __tstate = wxPyBeginAllowThreads();
28469 result = (int)(arg1)->GetLen();
28470 wxPyEndAllowThreads(__tstate);
28471 if (PyErr_Occurred()) SWIG_fail;
28472 }
28473 resultobj = SWIG_From_int(static_cast< int >(result));
28474 return resultobj;
28475 fail:
28476 return NULL;
28477 }
28478
28479
28480 SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28481 PyObject *resultobj = 0;
28482 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28483 int arg2 ;
28484 void *argp1 = 0 ;
28485 int res1 = 0 ;
28486 int val2 ;
28487 int ecode2 = 0 ;
28488 PyObject * obj0 = 0 ;
28489 PyObject * obj1 = 0 ;
28490 char * kwnames[] = {
28491 (char *) "self",(char *) "id", NULL
28492 };
28493
28494 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
28495 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28496 if (!SWIG_IsOK(res1)) {
28497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28498 }
28499 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28500 ecode2 = SWIG_AsVal_int(obj1, &val2);
28501 if (!SWIG_IsOK(ecode2)) {
28502 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'");
28503 }
28504 arg2 = static_cast< int >(val2);
28505 {
28506 PyThreadState* __tstate = wxPyBeginAllowThreads();
28507 (arg1)->SetId(arg2);
28508 wxPyEndAllowThreads(__tstate);
28509 if (PyErr_Occurred()) SWIG_fail;
28510 }
28511 resultobj = SWIG_Py_Void();
28512 return resultobj;
28513 fail:
28514 return NULL;
28515 }
28516
28517
28518 SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28519 PyObject *resultobj = 0;
28520 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28521 int arg2 ;
28522 void *argp1 = 0 ;
28523 int res1 = 0 ;
28524 int val2 ;
28525 int ecode2 = 0 ;
28526 PyObject * obj0 = 0 ;
28527 PyObject * obj1 = 0 ;
28528 char * kwnames[] = {
28529 (char *) "self",(char *) "id", NULL
28530 };
28531
28532 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail;
28533 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28534 if (!SWIG_IsOK(res1)) {
28535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28536 }
28537 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28538 ecode2 = SWIG_AsVal_int(obj1, &val2);
28539 if (!SWIG_IsOK(ecode2)) {
28540 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'");
28541 }
28542 arg2 = static_cast< int >(val2);
28543 {
28544 PyThreadState* __tstate = wxPyBeginAllowThreads();
28545 (arg1)->ClearId(arg2);
28546 wxPyEndAllowThreads(__tstate);
28547 if (PyErr_Occurred()) SWIG_fail;
28548 }
28549 resultobj = SWIG_Py_Void();
28550 return resultobj;
28551 fail:
28552 return NULL;
28553 }
28554
28555
28556 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28557 PyObject *resultobj = 0;
28558 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28559 int arg2 ;
28560 void *argp1 = 0 ;
28561 int res1 = 0 ;
28562 int val2 ;
28563 int ecode2 = 0 ;
28564 PyObject * obj0 = 0 ;
28565 PyObject * obj1 = 0 ;
28566 char * kwnames[] = {
28567 (char *) "self",(char *) "id", NULL
28568 };
28569
28570 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail;
28571 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28572 if (!SWIG_IsOK(res1)) {
28573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28574 }
28575 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28576 ecode2 = SWIG_AsVal_int(obj1, &val2);
28577 if (!SWIG_IsOK(ecode2)) {
28578 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'");
28579 }
28580 arg2 = static_cast< int >(val2);
28581 {
28582 PyThreadState* __tstate = wxPyBeginAllowThreads();
28583 (arg1)->RemoveId(arg2);
28584 wxPyEndAllowThreads(__tstate);
28585 if (PyErr_Occurred()) SWIG_fail;
28586 }
28587 resultobj = SWIG_Py_Void();
28588 return resultobj;
28589 fail:
28590 return NULL;
28591 }
28592
28593
28594 SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28595 PyObject *resultobj = 0;
28596 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28597 int arg2 ;
28598 int arg3 ;
28599 int arg4 ;
28600 void *argp1 = 0 ;
28601 int res1 = 0 ;
28602 int val2 ;
28603 int ecode2 = 0 ;
28604 int val3 ;
28605 int ecode3 = 0 ;
28606 int val4 ;
28607 int ecode4 = 0 ;
28608 PyObject * obj0 = 0 ;
28609 PyObject * obj1 = 0 ;
28610 PyObject * obj2 = 0 ;
28611 PyObject * obj3 = 0 ;
28612 char * kwnames[] = {
28613 (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL
28614 };
28615
28616 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
28617 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28618 if (!SWIG_IsOK(res1)) {
28619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28620 }
28621 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28622 ecode2 = SWIG_AsVal_int(obj1, &val2);
28623 if (!SWIG_IsOK(ecode2)) {
28624 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'");
28625 }
28626 arg2 = static_cast< int >(val2);
28627 ecode3 = SWIG_AsVal_int(obj2, &val3);
28628 if (!SWIG_IsOK(ecode3)) {
28629 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'");
28630 }
28631 arg3 = static_cast< int >(val3);
28632 ecode4 = SWIG_AsVal_int(obj3, &val4);
28633 if (!SWIG_IsOK(ecode4)) {
28634 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'");
28635 }
28636 arg4 = static_cast< int >(val4);
28637 {
28638 PyThreadState* __tstate = wxPyBeginAllowThreads();
28639 (arg1)->TranslateId(arg2,arg3,arg4);
28640 wxPyEndAllowThreads(__tstate);
28641 if (PyErr_Occurred()) SWIG_fail;
28642 }
28643 resultobj = SWIG_Py_Void();
28644 return resultobj;
28645 fail:
28646 return NULL;
28647 }
28648
28649
28650 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28651 PyObject *resultobj = 0;
28652 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28653 int arg2 ;
28654 wxDC *arg3 = (wxDC *) 0 ;
28655 void *argp1 = 0 ;
28656 int res1 = 0 ;
28657 int val2 ;
28658 int ecode2 = 0 ;
28659 void *argp3 = 0 ;
28660 int res3 = 0 ;
28661 PyObject * obj0 = 0 ;
28662 PyObject * obj1 = 0 ;
28663 PyObject * obj2 = 0 ;
28664 char * kwnames[] = {
28665 (char *) "self",(char *) "id",(char *) "dc", NULL
28666 };
28667
28668 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28669 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28670 if (!SWIG_IsOK(res1)) {
28671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28672 }
28673 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28674 ecode2 = SWIG_AsVal_int(obj1, &val2);
28675 if (!SWIG_IsOK(ecode2)) {
28676 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'");
28677 }
28678 arg2 = static_cast< int >(val2);
28679 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 );
28680 if (!SWIG_IsOK(res3)) {
28681 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'");
28682 }
28683 arg3 = reinterpret_cast< wxDC * >(argp3);
28684 {
28685 PyThreadState* __tstate = wxPyBeginAllowThreads();
28686 (arg1)->DrawIdToDC(arg2,arg3);
28687 wxPyEndAllowThreads(__tstate);
28688 if (PyErr_Occurred()) SWIG_fail;
28689 }
28690 resultobj = SWIG_Py_Void();
28691 return resultobj;
28692 fail:
28693 return NULL;
28694 }
28695
28696
28697 SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28698 PyObject *resultobj = 0;
28699 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28700 int arg2 ;
28701 wxRect *arg3 = 0 ;
28702 void *argp1 = 0 ;
28703 int res1 = 0 ;
28704 int val2 ;
28705 int ecode2 = 0 ;
28706 wxRect temp3 ;
28707 PyObject * obj0 = 0 ;
28708 PyObject * obj1 = 0 ;
28709 PyObject * obj2 = 0 ;
28710 char * kwnames[] = {
28711 (char *) "self",(char *) "id",(char *) "rect", NULL
28712 };
28713
28714 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28715 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28716 if (!SWIG_IsOK(res1)) {
28717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28718 }
28719 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28720 ecode2 = SWIG_AsVal_int(obj1, &val2);
28721 if (!SWIG_IsOK(ecode2)) {
28722 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'");
28723 }
28724 arg2 = static_cast< int >(val2);
28725 {
28726 arg3 = &temp3;
28727 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
28728 }
28729 {
28730 PyThreadState* __tstate = wxPyBeginAllowThreads();
28731 (arg1)->SetIdBounds(arg2,*arg3);
28732 wxPyEndAllowThreads(__tstate);
28733 if (PyErr_Occurred()) SWIG_fail;
28734 }
28735 resultobj = SWIG_Py_Void();
28736 return resultobj;
28737 fail:
28738 return NULL;
28739 }
28740
28741
28742 SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28743 PyObject *resultobj = 0;
28744 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28745 int arg2 ;
28746 wxRect result;
28747 void *argp1 = 0 ;
28748 int res1 = 0 ;
28749 int val2 ;
28750 int ecode2 = 0 ;
28751 PyObject * obj0 = 0 ;
28752 PyObject * obj1 = 0 ;
28753 char * kwnames[] = {
28754 (char *) "self",(char *) "id", NULL
28755 };
28756
28757 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail;
28758 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28759 if (!SWIG_IsOK(res1)) {
28760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28761 }
28762 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28763 ecode2 = SWIG_AsVal_int(obj1, &val2);
28764 if (!SWIG_IsOK(ecode2)) {
28765 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'");
28766 }
28767 arg2 = static_cast< int >(val2);
28768 {
28769 PyThreadState* __tstate = wxPyBeginAllowThreads();
28770 result = wxPseudoDC_GetIdBounds(arg1,arg2);
28771 wxPyEndAllowThreads(__tstate);
28772 if (PyErr_Occurred()) SWIG_fail;
28773 }
28774 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
28775 return resultobj;
28776 fail:
28777 return NULL;
28778 }
28779
28780
28781 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28782 PyObject *resultobj = 0;
28783 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28784 wxDC *arg2 = (wxDC *) 0 ;
28785 wxRect *arg3 = 0 ;
28786 void *argp1 = 0 ;
28787 int res1 = 0 ;
28788 void *argp2 = 0 ;
28789 int res2 = 0 ;
28790 wxRect temp3 ;
28791 PyObject * obj0 = 0 ;
28792 PyObject * obj1 = 0 ;
28793 PyObject * obj2 = 0 ;
28794 char * kwnames[] = {
28795 (char *) "self",(char *) "dc",(char *) "rect", NULL
28796 };
28797
28798 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28799 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28800 if (!SWIG_IsOK(res1)) {
28801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28802 }
28803 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28804 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
28805 if (!SWIG_IsOK(res2)) {
28806 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'");
28807 }
28808 arg2 = reinterpret_cast< wxDC * >(argp2);
28809 {
28810 arg3 = &temp3;
28811 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
28812 }
28813 {
28814 PyThreadState* __tstate = wxPyBeginAllowThreads();
28815 (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3);
28816 wxPyEndAllowThreads(__tstate);
28817 if (PyErr_Occurred()) SWIG_fail;
28818 }
28819 resultobj = SWIG_Py_Void();
28820 return resultobj;
28821 fail:
28822 return NULL;
28823 }
28824
28825
28826 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28827 PyObject *resultobj = 0;
28828 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28829 wxDC *arg2 = (wxDC *) 0 ;
28830 wxRegion *arg3 = 0 ;
28831 void *argp1 = 0 ;
28832 int res1 = 0 ;
28833 void *argp2 = 0 ;
28834 int res2 = 0 ;
28835 void *argp3 = 0 ;
28836 int res3 = 0 ;
28837 PyObject * obj0 = 0 ;
28838 PyObject * obj1 = 0 ;
28839 PyObject * obj2 = 0 ;
28840 char * kwnames[] = {
28841 (char *) "self",(char *) "dc",(char *) "region", NULL
28842 };
28843
28844 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28845 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28846 if (!SWIG_IsOK(res1)) {
28847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28848 }
28849 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28850 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
28851 if (!SWIG_IsOK(res2)) {
28852 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'");
28853 }
28854 arg2 = reinterpret_cast< wxDC * >(argp2);
28855 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0);
28856 if (!SWIG_IsOK(res3)) {
28857 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
28858 }
28859 if (!argp3) {
28860 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
28861 }
28862 arg3 = reinterpret_cast< wxRegion * >(argp3);
28863 {
28864 PyThreadState* __tstate = wxPyBeginAllowThreads();
28865 (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3);
28866 wxPyEndAllowThreads(__tstate);
28867 if (PyErr_Occurred()) SWIG_fail;
28868 }
28869 resultobj = SWIG_Py_Void();
28870 return resultobj;
28871 fail:
28872 return NULL;
28873 }
28874
28875
28876 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28877 PyObject *resultobj = 0;
28878 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28879 wxDC *arg2 = (wxDC *) 0 ;
28880 void *argp1 = 0 ;
28881 int res1 = 0 ;
28882 void *argp2 = 0 ;
28883 int res2 = 0 ;
28884 PyObject * obj0 = 0 ;
28885 PyObject * obj1 = 0 ;
28886 char * kwnames[] = {
28887 (char *) "self",(char *) "dc", NULL
28888 };
28889
28890 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail;
28891 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28892 if (!SWIG_IsOK(res1)) {
28893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28894 }
28895 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28896 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
28897 if (!SWIG_IsOK(res2)) {
28898 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'");
28899 }
28900 arg2 = reinterpret_cast< wxDC * >(argp2);
28901 {
28902 PyThreadState* __tstate = wxPyBeginAllowThreads();
28903 (arg1)->DrawToDC(arg2);
28904 wxPyEndAllowThreads(__tstate);
28905 if (PyErr_Occurred()) SWIG_fail;
28906 }
28907 resultobj = SWIG_Py_Void();
28908 return resultobj;
28909 fail:
28910 return NULL;
28911 }
28912
28913
28914 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28915 PyObject *resultobj = 0;
28916 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28917 int arg2 ;
28918 int arg3 ;
28919 wxColour *arg4 = 0 ;
28920 int arg5 = (int) wxFLOOD_SURFACE ;
28921 void *argp1 = 0 ;
28922 int res1 = 0 ;
28923 int val2 ;
28924 int ecode2 = 0 ;
28925 int val3 ;
28926 int ecode3 = 0 ;
28927 wxColour temp4 ;
28928 int val5 ;
28929 int ecode5 = 0 ;
28930 PyObject * obj0 = 0 ;
28931 PyObject * obj1 = 0 ;
28932 PyObject * obj2 = 0 ;
28933 PyObject * obj3 = 0 ;
28934 PyObject * obj4 = 0 ;
28935 char * kwnames[] = {
28936 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
28937 };
28938
28939 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28940 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28941 if (!SWIG_IsOK(res1)) {
28942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28943 }
28944 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28945 ecode2 = SWIG_AsVal_int(obj1, &val2);
28946 if (!SWIG_IsOK(ecode2)) {
28947 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'");
28948 }
28949 arg2 = static_cast< int >(val2);
28950 ecode3 = SWIG_AsVal_int(obj2, &val3);
28951 if (!SWIG_IsOK(ecode3)) {
28952 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'");
28953 }
28954 arg3 = static_cast< int >(val3);
28955 {
28956 arg4 = &temp4;
28957 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
28958 }
28959 if (obj4) {
28960 ecode5 = SWIG_AsVal_int(obj4, &val5);
28961 if (!SWIG_IsOK(ecode5)) {
28962 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'");
28963 }
28964 arg5 = static_cast< int >(val5);
28965 }
28966 {
28967 PyThreadState* __tstate = wxPyBeginAllowThreads();
28968 (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
28969 wxPyEndAllowThreads(__tstate);
28970 if (PyErr_Occurred()) SWIG_fail;
28971 }
28972 resultobj = SWIG_Py_Void();
28973 return resultobj;
28974 fail:
28975 return NULL;
28976 }
28977
28978
28979 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28980 PyObject *resultobj = 0;
28981 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28982 wxPoint *arg2 = 0 ;
28983 wxColour *arg3 = 0 ;
28984 int arg4 = (int) wxFLOOD_SURFACE ;
28985 void *argp1 = 0 ;
28986 int res1 = 0 ;
28987 wxPoint temp2 ;
28988 wxColour temp3 ;
28989 int val4 ;
28990 int ecode4 = 0 ;
28991 PyObject * obj0 = 0 ;
28992 PyObject * obj1 = 0 ;
28993 PyObject * obj2 = 0 ;
28994 PyObject * obj3 = 0 ;
28995 char * kwnames[] = {
28996 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
28997 };
28998
28999 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29000 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29001 if (!SWIG_IsOK(res1)) {
29002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29003 }
29004 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29005 {
29006 arg2 = &temp2;
29007 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29008 }
29009 {
29010 arg3 = &temp3;
29011 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
29012 }
29013 if (obj3) {
29014 ecode4 = SWIG_AsVal_int(obj3, &val4);
29015 if (!SWIG_IsOK(ecode4)) {
29016 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
29017 }
29018 arg4 = static_cast< int >(val4);
29019 }
29020 {
29021 PyThreadState* __tstate = wxPyBeginAllowThreads();
29022 (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
29023 wxPyEndAllowThreads(__tstate);
29024 if (PyErr_Occurred()) SWIG_fail;
29025 }
29026 resultobj = SWIG_Py_Void();
29027 return resultobj;
29028 fail:
29029 return NULL;
29030 }
29031
29032
29033 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29034 PyObject *resultobj = 0;
29035 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29036 int arg2 ;
29037 int arg3 ;
29038 int arg4 ;
29039 int arg5 ;
29040 void *argp1 = 0 ;
29041 int res1 = 0 ;
29042 int val2 ;
29043 int ecode2 = 0 ;
29044 int val3 ;
29045 int ecode3 = 0 ;
29046 int val4 ;
29047 int ecode4 = 0 ;
29048 int val5 ;
29049 int ecode5 = 0 ;
29050 PyObject * obj0 = 0 ;
29051 PyObject * obj1 = 0 ;
29052 PyObject * obj2 = 0 ;
29053 PyObject * obj3 = 0 ;
29054 PyObject * obj4 = 0 ;
29055 char * kwnames[] = {
29056 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
29057 };
29058
29059 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29060 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29061 if (!SWIG_IsOK(res1)) {
29062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29063 }
29064 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29065 ecode2 = SWIG_AsVal_int(obj1, &val2);
29066 if (!SWIG_IsOK(ecode2)) {
29067 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'");
29068 }
29069 arg2 = static_cast< int >(val2);
29070 ecode3 = SWIG_AsVal_int(obj2, &val3);
29071 if (!SWIG_IsOK(ecode3)) {
29072 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'");
29073 }
29074 arg3 = static_cast< int >(val3);
29075 ecode4 = SWIG_AsVal_int(obj3, &val4);
29076 if (!SWIG_IsOK(ecode4)) {
29077 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'");
29078 }
29079 arg4 = static_cast< int >(val4);
29080 ecode5 = SWIG_AsVal_int(obj4, &val5);
29081 if (!SWIG_IsOK(ecode5)) {
29082 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'");
29083 }
29084 arg5 = static_cast< int >(val5);
29085 {
29086 PyThreadState* __tstate = wxPyBeginAllowThreads();
29087 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
29088 wxPyEndAllowThreads(__tstate);
29089 if (PyErr_Occurred()) SWIG_fail;
29090 }
29091 resultobj = SWIG_Py_Void();
29092 return resultobj;
29093 fail:
29094 return NULL;
29095 }
29096
29097
29098 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29099 PyObject *resultobj = 0;
29100 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29101 wxPoint *arg2 = 0 ;
29102 wxPoint *arg3 = 0 ;
29103 void *argp1 = 0 ;
29104 int res1 = 0 ;
29105 wxPoint temp2 ;
29106 wxPoint temp3 ;
29107 PyObject * obj0 = 0 ;
29108 PyObject * obj1 = 0 ;
29109 PyObject * obj2 = 0 ;
29110 char * kwnames[] = {
29111 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
29112 };
29113
29114 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29115 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29116 if (!SWIG_IsOK(res1)) {
29117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29118 }
29119 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29120 {
29121 arg2 = &temp2;
29122 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29123 }
29124 {
29125 arg3 = &temp3;
29126 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29127 }
29128 {
29129 PyThreadState* __tstate = wxPyBeginAllowThreads();
29130 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
29131 wxPyEndAllowThreads(__tstate);
29132 if (PyErr_Occurred()) SWIG_fail;
29133 }
29134 resultobj = SWIG_Py_Void();
29135 return resultobj;
29136 fail:
29137 return NULL;
29138 }
29139
29140
29141 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29142 PyObject *resultobj = 0;
29143 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29144 int arg2 ;
29145 int arg3 ;
29146 void *argp1 = 0 ;
29147 int res1 = 0 ;
29148 int val2 ;
29149 int ecode2 = 0 ;
29150 int val3 ;
29151 int ecode3 = 0 ;
29152 PyObject * obj0 = 0 ;
29153 PyObject * obj1 = 0 ;
29154 PyObject * obj2 = 0 ;
29155 char * kwnames[] = {
29156 (char *) "self",(char *) "x",(char *) "y", NULL
29157 };
29158
29159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29160 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29161 if (!SWIG_IsOK(res1)) {
29162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29163 }
29164 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29165 ecode2 = SWIG_AsVal_int(obj1, &val2);
29166 if (!SWIG_IsOK(ecode2)) {
29167 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'");
29168 }
29169 arg2 = static_cast< int >(val2);
29170 ecode3 = SWIG_AsVal_int(obj2, &val3);
29171 if (!SWIG_IsOK(ecode3)) {
29172 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'");
29173 }
29174 arg3 = static_cast< int >(val3);
29175 {
29176 PyThreadState* __tstate = wxPyBeginAllowThreads();
29177 (arg1)->CrossHair(arg2,arg3);
29178 wxPyEndAllowThreads(__tstate);
29179 if (PyErr_Occurred()) SWIG_fail;
29180 }
29181 resultobj = SWIG_Py_Void();
29182 return resultobj;
29183 fail:
29184 return NULL;
29185 }
29186
29187
29188 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29189 PyObject *resultobj = 0;
29190 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29191 wxPoint *arg2 = 0 ;
29192 void *argp1 = 0 ;
29193 int res1 = 0 ;
29194 wxPoint temp2 ;
29195 PyObject * obj0 = 0 ;
29196 PyObject * obj1 = 0 ;
29197 char * kwnames[] = {
29198 (char *) "self",(char *) "pt", NULL
29199 };
29200
29201 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
29202 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29203 if (!SWIG_IsOK(res1)) {
29204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29205 }
29206 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29207 {
29208 arg2 = &temp2;
29209 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29210 }
29211 {
29212 PyThreadState* __tstate = wxPyBeginAllowThreads();
29213 (arg1)->CrossHair((wxPoint const &)*arg2);
29214 wxPyEndAllowThreads(__tstate);
29215 if (PyErr_Occurred()) SWIG_fail;
29216 }
29217 resultobj = SWIG_Py_Void();
29218 return resultobj;
29219 fail:
29220 return NULL;
29221 }
29222
29223
29224 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29225 PyObject *resultobj = 0;
29226 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29227 int arg2 ;
29228 int arg3 ;
29229 int arg4 ;
29230 int arg5 ;
29231 int arg6 ;
29232 int arg7 ;
29233 void *argp1 = 0 ;
29234 int res1 = 0 ;
29235 int val2 ;
29236 int ecode2 = 0 ;
29237 int val3 ;
29238 int ecode3 = 0 ;
29239 int val4 ;
29240 int ecode4 = 0 ;
29241 int val5 ;
29242 int ecode5 = 0 ;
29243 int val6 ;
29244 int ecode6 = 0 ;
29245 int val7 ;
29246 int ecode7 = 0 ;
29247 PyObject * obj0 = 0 ;
29248 PyObject * obj1 = 0 ;
29249 PyObject * obj2 = 0 ;
29250 PyObject * obj3 = 0 ;
29251 PyObject * obj4 = 0 ;
29252 PyObject * obj5 = 0 ;
29253 PyObject * obj6 = 0 ;
29254 char * kwnames[] = {
29255 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
29256 };
29257
29258 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
29259 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29260 if (!SWIG_IsOK(res1)) {
29261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29262 }
29263 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29264 ecode2 = SWIG_AsVal_int(obj1, &val2);
29265 if (!SWIG_IsOK(ecode2)) {
29266 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'");
29267 }
29268 arg2 = static_cast< int >(val2);
29269 ecode3 = SWIG_AsVal_int(obj2, &val3);
29270 if (!SWIG_IsOK(ecode3)) {
29271 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'");
29272 }
29273 arg3 = static_cast< int >(val3);
29274 ecode4 = SWIG_AsVal_int(obj3, &val4);
29275 if (!SWIG_IsOK(ecode4)) {
29276 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'");
29277 }
29278 arg4 = static_cast< int >(val4);
29279 ecode5 = SWIG_AsVal_int(obj4, &val5);
29280 if (!SWIG_IsOK(ecode5)) {
29281 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'");
29282 }
29283 arg5 = static_cast< int >(val5);
29284 ecode6 = SWIG_AsVal_int(obj5, &val6);
29285 if (!SWIG_IsOK(ecode6)) {
29286 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'");
29287 }
29288 arg6 = static_cast< int >(val6);
29289 ecode7 = SWIG_AsVal_int(obj6, &val7);
29290 if (!SWIG_IsOK(ecode7)) {
29291 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'");
29292 }
29293 arg7 = static_cast< int >(val7);
29294 {
29295 PyThreadState* __tstate = wxPyBeginAllowThreads();
29296 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
29297 wxPyEndAllowThreads(__tstate);
29298 if (PyErr_Occurred()) SWIG_fail;
29299 }
29300 resultobj = SWIG_Py_Void();
29301 return resultobj;
29302 fail:
29303 return NULL;
29304 }
29305
29306
29307 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29308 PyObject *resultobj = 0;
29309 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29310 wxPoint *arg2 = 0 ;
29311 wxPoint *arg3 = 0 ;
29312 wxPoint *arg4 = 0 ;
29313 void *argp1 = 0 ;
29314 int res1 = 0 ;
29315 wxPoint temp2 ;
29316 wxPoint temp3 ;
29317 wxPoint temp4 ;
29318 PyObject * obj0 = 0 ;
29319 PyObject * obj1 = 0 ;
29320 PyObject * obj2 = 0 ;
29321 PyObject * obj3 = 0 ;
29322 char * kwnames[] = {
29323 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
29324 };
29325
29326 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29327 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29328 if (!SWIG_IsOK(res1)) {
29329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29330 }
29331 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29332 {
29333 arg2 = &temp2;
29334 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29335 }
29336 {
29337 arg3 = &temp3;
29338 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29339 }
29340 {
29341 arg4 = &temp4;
29342 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
29343 }
29344 {
29345 PyThreadState* __tstate = wxPyBeginAllowThreads();
29346 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
29347 wxPyEndAllowThreads(__tstate);
29348 if (PyErr_Occurred()) SWIG_fail;
29349 }
29350 resultobj = SWIG_Py_Void();
29351 return resultobj;
29352 fail:
29353 return NULL;
29354 }
29355
29356
29357 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29358 PyObject *resultobj = 0;
29359 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29360 int arg2 ;
29361 int arg3 ;
29362 int arg4 ;
29363 int arg5 ;
29364 void *argp1 = 0 ;
29365 int res1 = 0 ;
29366 int val2 ;
29367 int ecode2 = 0 ;
29368 int val3 ;
29369 int ecode3 = 0 ;
29370 int val4 ;
29371 int ecode4 = 0 ;
29372 int val5 ;
29373 int ecode5 = 0 ;
29374 PyObject * obj0 = 0 ;
29375 PyObject * obj1 = 0 ;
29376 PyObject * obj2 = 0 ;
29377 PyObject * obj3 = 0 ;
29378 PyObject * obj4 = 0 ;
29379 char * kwnames[] = {
29380 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
29381 };
29382
29383 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29384 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29385 if (!SWIG_IsOK(res1)) {
29386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29387 }
29388 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29389 ecode2 = SWIG_AsVal_int(obj1, &val2);
29390 if (!SWIG_IsOK(ecode2)) {
29391 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
29392 }
29393 arg2 = static_cast< int >(val2);
29394 ecode3 = SWIG_AsVal_int(obj2, &val3);
29395 if (!SWIG_IsOK(ecode3)) {
29396 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
29397 }
29398 arg3 = static_cast< int >(val3);
29399 ecode4 = SWIG_AsVal_int(obj3, &val4);
29400 if (!SWIG_IsOK(ecode4)) {
29401 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
29402 }
29403 arg4 = static_cast< int >(val4);
29404 ecode5 = SWIG_AsVal_int(obj4, &val5);
29405 if (!SWIG_IsOK(ecode5)) {
29406 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
29407 }
29408 arg5 = static_cast< int >(val5);
29409 {
29410 PyThreadState* __tstate = wxPyBeginAllowThreads();
29411 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
29412 wxPyEndAllowThreads(__tstate);
29413 if (PyErr_Occurred()) SWIG_fail;
29414 }
29415 resultobj = SWIG_Py_Void();
29416 return resultobj;
29417 fail:
29418 return NULL;
29419 }
29420
29421
29422 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29423 PyObject *resultobj = 0;
29424 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29425 wxRect *arg2 = 0 ;
29426 void *argp1 = 0 ;
29427 int res1 = 0 ;
29428 wxRect temp2 ;
29429 PyObject * obj0 = 0 ;
29430 PyObject * obj1 = 0 ;
29431 char * kwnames[] = {
29432 (char *) "self",(char *) "rect", NULL
29433 };
29434
29435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
29436 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29437 if (!SWIG_IsOK(res1)) {
29438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29439 }
29440 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29441 {
29442 arg2 = &temp2;
29443 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
29444 }
29445 {
29446 PyThreadState* __tstate = wxPyBeginAllowThreads();
29447 (arg1)->DrawCheckMark((wxRect const &)*arg2);
29448 wxPyEndAllowThreads(__tstate);
29449 if (PyErr_Occurred()) SWIG_fail;
29450 }
29451 resultobj = SWIG_Py_Void();
29452 return resultobj;
29453 fail:
29454 return NULL;
29455 }
29456
29457
29458 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29459 PyObject *resultobj = 0;
29460 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29461 int arg2 ;
29462 int arg3 ;
29463 int arg4 ;
29464 int arg5 ;
29465 double arg6 ;
29466 double arg7 ;
29467 void *argp1 = 0 ;
29468 int res1 = 0 ;
29469 int val2 ;
29470 int ecode2 = 0 ;
29471 int val3 ;
29472 int ecode3 = 0 ;
29473 int val4 ;
29474 int ecode4 = 0 ;
29475 int val5 ;
29476 int ecode5 = 0 ;
29477 double val6 ;
29478 int ecode6 = 0 ;
29479 double val7 ;
29480 int ecode7 = 0 ;
29481 PyObject * obj0 = 0 ;
29482 PyObject * obj1 = 0 ;
29483 PyObject * obj2 = 0 ;
29484 PyObject * obj3 = 0 ;
29485 PyObject * obj4 = 0 ;
29486 PyObject * obj5 = 0 ;
29487 PyObject * obj6 = 0 ;
29488 char * kwnames[] = {
29489 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
29490 };
29491
29492 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
29493 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29494 if (!SWIG_IsOK(res1)) {
29495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29496 }
29497 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29498 ecode2 = SWIG_AsVal_int(obj1, &val2);
29499 if (!SWIG_IsOK(ecode2)) {
29500 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
29501 }
29502 arg2 = static_cast< int >(val2);
29503 ecode3 = SWIG_AsVal_int(obj2, &val3);
29504 if (!SWIG_IsOK(ecode3)) {
29505 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
29506 }
29507 arg3 = static_cast< int >(val3);
29508 ecode4 = SWIG_AsVal_int(obj3, &val4);
29509 if (!SWIG_IsOK(ecode4)) {
29510 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
29511 }
29512 arg4 = static_cast< int >(val4);
29513 ecode5 = SWIG_AsVal_int(obj4, &val5);
29514 if (!SWIG_IsOK(ecode5)) {
29515 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
29516 }
29517 arg5 = static_cast< int >(val5);
29518 ecode6 = SWIG_AsVal_double(obj5, &val6);
29519 if (!SWIG_IsOK(ecode6)) {
29520 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
29521 }
29522 arg6 = static_cast< double >(val6);
29523 ecode7 = SWIG_AsVal_double(obj6, &val7);
29524 if (!SWIG_IsOK(ecode7)) {
29525 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
29526 }
29527 arg7 = static_cast< double >(val7);
29528 {
29529 PyThreadState* __tstate = wxPyBeginAllowThreads();
29530 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
29531 wxPyEndAllowThreads(__tstate);
29532 if (PyErr_Occurred()) SWIG_fail;
29533 }
29534 resultobj = SWIG_Py_Void();
29535 return resultobj;
29536 fail:
29537 return NULL;
29538 }
29539
29540
29541 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29542 PyObject *resultobj = 0;
29543 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29544 wxPoint *arg2 = 0 ;
29545 wxSize *arg3 = 0 ;
29546 double arg4 ;
29547 double arg5 ;
29548 void *argp1 = 0 ;
29549 int res1 = 0 ;
29550 wxPoint temp2 ;
29551 wxSize temp3 ;
29552 double val4 ;
29553 int ecode4 = 0 ;
29554 double val5 ;
29555 int ecode5 = 0 ;
29556 PyObject * obj0 = 0 ;
29557 PyObject * obj1 = 0 ;
29558 PyObject * obj2 = 0 ;
29559 PyObject * obj3 = 0 ;
29560 PyObject * obj4 = 0 ;
29561 char * kwnames[] = {
29562 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
29563 };
29564
29565 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29566 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29567 if (!SWIG_IsOK(res1)) {
29568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29569 }
29570 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29571 {
29572 arg2 = &temp2;
29573 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29574 }
29575 {
29576 arg3 = &temp3;
29577 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
29578 }
29579 ecode4 = SWIG_AsVal_double(obj3, &val4);
29580 if (!SWIG_IsOK(ecode4)) {
29581 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
29582 }
29583 arg4 = static_cast< double >(val4);
29584 ecode5 = SWIG_AsVal_double(obj4, &val5);
29585 if (!SWIG_IsOK(ecode5)) {
29586 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
29587 }
29588 arg5 = static_cast< double >(val5);
29589 {
29590 PyThreadState* __tstate = wxPyBeginAllowThreads();
29591 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
29592 wxPyEndAllowThreads(__tstate);
29593 if (PyErr_Occurred()) SWIG_fail;
29594 }
29595 resultobj = SWIG_Py_Void();
29596 return resultobj;
29597 fail:
29598 return NULL;
29599 }
29600
29601
29602 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29603 PyObject *resultobj = 0;
29604 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29605 int arg2 ;
29606 int arg3 ;
29607 void *argp1 = 0 ;
29608 int res1 = 0 ;
29609 int val2 ;
29610 int ecode2 = 0 ;
29611 int val3 ;
29612 int ecode3 = 0 ;
29613 PyObject * obj0 = 0 ;
29614 PyObject * obj1 = 0 ;
29615 PyObject * obj2 = 0 ;
29616 char * kwnames[] = {
29617 (char *) "self",(char *) "x",(char *) "y", NULL
29618 };
29619
29620 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29621 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29622 if (!SWIG_IsOK(res1)) {
29623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29624 }
29625 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29626 ecode2 = SWIG_AsVal_int(obj1, &val2);
29627 if (!SWIG_IsOK(ecode2)) {
29628 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
29629 }
29630 arg2 = static_cast< int >(val2);
29631 ecode3 = SWIG_AsVal_int(obj2, &val3);
29632 if (!SWIG_IsOK(ecode3)) {
29633 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
29634 }
29635 arg3 = static_cast< int >(val3);
29636 {
29637 PyThreadState* __tstate = wxPyBeginAllowThreads();
29638 (arg1)->DrawPoint(arg2,arg3);
29639 wxPyEndAllowThreads(__tstate);
29640 if (PyErr_Occurred()) SWIG_fail;
29641 }
29642 resultobj = SWIG_Py_Void();
29643 return resultobj;
29644 fail:
29645 return NULL;
29646 }
29647
29648
29649 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29650 PyObject *resultobj = 0;
29651 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29652 wxPoint *arg2 = 0 ;
29653 void *argp1 = 0 ;
29654 int res1 = 0 ;
29655 wxPoint temp2 ;
29656 PyObject * obj0 = 0 ;
29657 PyObject * obj1 = 0 ;
29658 char * kwnames[] = {
29659 (char *) "self",(char *) "pt", NULL
29660 };
29661
29662 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
29663 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29664 if (!SWIG_IsOK(res1)) {
29665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29666 }
29667 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29668 {
29669 arg2 = &temp2;
29670 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29671 }
29672 {
29673 PyThreadState* __tstate = wxPyBeginAllowThreads();
29674 (arg1)->DrawPoint((wxPoint const &)*arg2);
29675 wxPyEndAllowThreads(__tstate);
29676 if (PyErr_Occurred()) SWIG_fail;
29677 }
29678 resultobj = SWIG_Py_Void();
29679 return resultobj;
29680 fail:
29681 return NULL;
29682 }
29683
29684
29685 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29686 PyObject *resultobj = 0;
29687 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29688 int arg2 ;
29689 int arg3 ;
29690 int arg4 ;
29691 int arg5 ;
29692 void *argp1 = 0 ;
29693 int res1 = 0 ;
29694 int val2 ;
29695 int ecode2 = 0 ;
29696 int val3 ;
29697 int ecode3 = 0 ;
29698 int val4 ;
29699 int ecode4 = 0 ;
29700 int val5 ;
29701 int ecode5 = 0 ;
29702 PyObject * obj0 = 0 ;
29703 PyObject * obj1 = 0 ;
29704 PyObject * obj2 = 0 ;
29705 PyObject * obj3 = 0 ;
29706 PyObject * obj4 = 0 ;
29707 char * kwnames[] = {
29708 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
29709 };
29710
29711 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29712 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29713 if (!SWIG_IsOK(res1)) {
29714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29715 }
29716 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29717 ecode2 = SWIG_AsVal_int(obj1, &val2);
29718 if (!SWIG_IsOK(ecode2)) {
29719 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
29720 }
29721 arg2 = static_cast< int >(val2);
29722 ecode3 = SWIG_AsVal_int(obj2, &val3);
29723 if (!SWIG_IsOK(ecode3)) {
29724 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
29725 }
29726 arg3 = static_cast< int >(val3);
29727 ecode4 = SWIG_AsVal_int(obj3, &val4);
29728 if (!SWIG_IsOK(ecode4)) {
29729 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
29730 }
29731 arg4 = static_cast< int >(val4);
29732 ecode5 = SWIG_AsVal_int(obj4, &val5);
29733 if (!SWIG_IsOK(ecode5)) {
29734 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
29735 }
29736 arg5 = static_cast< int >(val5);
29737 {
29738 PyThreadState* __tstate = wxPyBeginAllowThreads();
29739 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
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_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29751 PyObject *resultobj = 0;
29752 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29753 wxRect *arg2 = 0 ;
29754 void *argp1 = 0 ;
29755 int res1 = 0 ;
29756 wxRect temp2 ;
29757 PyObject * obj0 = 0 ;
29758 PyObject * obj1 = 0 ;
29759 char * kwnames[] = {
29760 (char *) "self",(char *) "rect", NULL
29761 };
29762
29763 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
29764 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29765 if (!SWIG_IsOK(res1)) {
29766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29767 }
29768 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29769 {
29770 arg2 = &temp2;
29771 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
29772 }
29773 {
29774 PyThreadState* __tstate = wxPyBeginAllowThreads();
29775 (arg1)->DrawRectangle((wxRect 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_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29787 PyObject *resultobj = 0;
29788 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29789 wxPoint *arg2 = 0 ;
29790 wxSize *arg3 = 0 ;
29791 void *argp1 = 0 ;
29792 int res1 = 0 ;
29793 wxPoint temp2 ;
29794 wxSize temp3 ;
29795 PyObject * obj0 = 0 ;
29796 PyObject * obj1 = 0 ;
29797 PyObject * obj2 = 0 ;
29798 char * kwnames[] = {
29799 (char *) "self",(char *) "pt",(char *) "sz", NULL
29800 };
29801
29802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29803 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29804 if (!SWIG_IsOK(res1)) {
29805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29806 }
29807 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29808 {
29809 arg2 = &temp2;
29810 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29811 }
29812 {
29813 arg3 = &temp3;
29814 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
29815 }
29816 {
29817 PyThreadState* __tstate = wxPyBeginAllowThreads();
29818 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
29819 wxPyEndAllowThreads(__tstate);
29820 if (PyErr_Occurred()) SWIG_fail;
29821 }
29822 resultobj = SWIG_Py_Void();
29823 return resultobj;
29824 fail:
29825 return NULL;
29826 }
29827
29828
29829 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29830 PyObject *resultobj = 0;
29831 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29832 int arg2 ;
29833 int arg3 ;
29834 int arg4 ;
29835 int arg5 ;
29836 double arg6 ;
29837 void *argp1 = 0 ;
29838 int res1 = 0 ;
29839 int val2 ;
29840 int ecode2 = 0 ;
29841 int val3 ;
29842 int ecode3 = 0 ;
29843 int val4 ;
29844 int ecode4 = 0 ;
29845 int val5 ;
29846 int ecode5 = 0 ;
29847 double val6 ;
29848 int ecode6 = 0 ;
29849 PyObject * obj0 = 0 ;
29850 PyObject * obj1 = 0 ;
29851 PyObject * obj2 = 0 ;
29852 PyObject * obj3 = 0 ;
29853 PyObject * obj4 = 0 ;
29854 PyObject * obj5 = 0 ;
29855 char * kwnames[] = {
29856 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
29857 };
29858
29859 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29860 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29861 if (!SWIG_IsOK(res1)) {
29862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29863 }
29864 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29865 ecode2 = SWIG_AsVal_int(obj1, &val2);
29866 if (!SWIG_IsOK(ecode2)) {
29867 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
29868 }
29869 arg2 = static_cast< int >(val2);
29870 ecode3 = SWIG_AsVal_int(obj2, &val3);
29871 if (!SWIG_IsOK(ecode3)) {
29872 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
29873 }
29874 arg3 = static_cast< int >(val3);
29875 ecode4 = SWIG_AsVal_int(obj3, &val4);
29876 if (!SWIG_IsOK(ecode4)) {
29877 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
29878 }
29879 arg4 = static_cast< int >(val4);
29880 ecode5 = SWIG_AsVal_int(obj4, &val5);
29881 if (!SWIG_IsOK(ecode5)) {
29882 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
29883 }
29884 arg5 = static_cast< int >(val5);
29885 ecode6 = SWIG_AsVal_double(obj5, &val6);
29886 if (!SWIG_IsOK(ecode6)) {
29887 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
29888 }
29889 arg6 = static_cast< double >(val6);
29890 {
29891 PyThreadState* __tstate = wxPyBeginAllowThreads();
29892 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
29893 wxPyEndAllowThreads(__tstate);
29894 if (PyErr_Occurred()) SWIG_fail;
29895 }
29896 resultobj = SWIG_Py_Void();
29897 return resultobj;
29898 fail:
29899 return NULL;
29900 }
29901
29902
29903 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29904 PyObject *resultobj = 0;
29905 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29906 wxRect *arg2 = 0 ;
29907 double arg3 ;
29908 void *argp1 = 0 ;
29909 int res1 = 0 ;
29910 wxRect temp2 ;
29911 double val3 ;
29912 int ecode3 = 0 ;
29913 PyObject * obj0 = 0 ;
29914 PyObject * obj1 = 0 ;
29915 PyObject * obj2 = 0 ;
29916 char * kwnames[] = {
29917 (char *) "self",(char *) "r",(char *) "radius", NULL
29918 };
29919
29920 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29921 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29922 if (!SWIG_IsOK(res1)) {
29923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29924 }
29925 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29926 {
29927 arg2 = &temp2;
29928 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
29929 }
29930 ecode3 = SWIG_AsVal_double(obj2, &val3);
29931 if (!SWIG_IsOK(ecode3)) {
29932 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
29933 }
29934 arg3 = static_cast< double >(val3);
29935 {
29936 PyThreadState* __tstate = wxPyBeginAllowThreads();
29937 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
29938 wxPyEndAllowThreads(__tstate);
29939 if (PyErr_Occurred()) SWIG_fail;
29940 }
29941 resultobj = SWIG_Py_Void();
29942 return resultobj;
29943 fail:
29944 return NULL;
29945 }
29946
29947
29948 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29949 PyObject *resultobj = 0;
29950 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29951 wxPoint *arg2 = 0 ;
29952 wxSize *arg3 = 0 ;
29953 double arg4 ;
29954 void *argp1 = 0 ;
29955 int res1 = 0 ;
29956 wxPoint temp2 ;
29957 wxSize temp3 ;
29958 double val4 ;
29959 int ecode4 = 0 ;
29960 PyObject * obj0 = 0 ;
29961 PyObject * obj1 = 0 ;
29962 PyObject * obj2 = 0 ;
29963 PyObject * obj3 = 0 ;
29964 char * kwnames[] = {
29965 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
29966 };
29967
29968 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29969 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29970 if (!SWIG_IsOK(res1)) {
29971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29972 }
29973 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29974 {
29975 arg2 = &temp2;
29976 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29977 }
29978 {
29979 arg3 = &temp3;
29980 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
29981 }
29982 ecode4 = SWIG_AsVal_double(obj3, &val4);
29983 if (!SWIG_IsOK(ecode4)) {
29984 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
29985 }
29986 arg4 = static_cast< double >(val4);
29987 {
29988 PyThreadState* __tstate = wxPyBeginAllowThreads();
29989 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
29990 wxPyEndAllowThreads(__tstate);
29991 if (PyErr_Occurred()) SWIG_fail;
29992 }
29993 resultobj = SWIG_Py_Void();
29994 return resultobj;
29995 fail:
29996 return NULL;
29997 }
29998
29999
30000 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30001 PyObject *resultobj = 0;
30002 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30003 int arg2 ;
30004 int arg3 ;
30005 int arg4 ;
30006 void *argp1 = 0 ;
30007 int res1 = 0 ;
30008 int val2 ;
30009 int ecode2 = 0 ;
30010 int val3 ;
30011 int ecode3 = 0 ;
30012 int val4 ;
30013 int ecode4 = 0 ;
30014 PyObject * obj0 = 0 ;
30015 PyObject * obj1 = 0 ;
30016 PyObject * obj2 = 0 ;
30017 PyObject * obj3 = 0 ;
30018 char * kwnames[] = {
30019 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
30020 };
30021
30022 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30023 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30024 if (!SWIG_IsOK(res1)) {
30025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30026 }
30027 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30028 ecode2 = SWIG_AsVal_int(obj1, &val2);
30029 if (!SWIG_IsOK(ecode2)) {
30030 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
30031 }
30032 arg2 = static_cast< int >(val2);
30033 ecode3 = SWIG_AsVal_int(obj2, &val3);
30034 if (!SWIG_IsOK(ecode3)) {
30035 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
30036 }
30037 arg3 = static_cast< int >(val3);
30038 ecode4 = SWIG_AsVal_int(obj3, &val4);
30039 if (!SWIG_IsOK(ecode4)) {
30040 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
30041 }
30042 arg4 = static_cast< int >(val4);
30043 {
30044 PyThreadState* __tstate = wxPyBeginAllowThreads();
30045 (arg1)->DrawCircle(arg2,arg3,arg4);
30046 wxPyEndAllowThreads(__tstate);
30047 if (PyErr_Occurred()) SWIG_fail;
30048 }
30049 resultobj = SWIG_Py_Void();
30050 return resultobj;
30051 fail:
30052 return NULL;
30053 }
30054
30055
30056 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30057 PyObject *resultobj = 0;
30058 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30059 wxPoint *arg2 = 0 ;
30060 int arg3 ;
30061 void *argp1 = 0 ;
30062 int res1 = 0 ;
30063 wxPoint temp2 ;
30064 int val3 ;
30065 int ecode3 = 0 ;
30066 PyObject * obj0 = 0 ;
30067 PyObject * obj1 = 0 ;
30068 PyObject * obj2 = 0 ;
30069 char * kwnames[] = {
30070 (char *) "self",(char *) "pt",(char *) "radius", NULL
30071 };
30072
30073 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30074 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30075 if (!SWIG_IsOK(res1)) {
30076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30077 }
30078 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30079 {
30080 arg2 = &temp2;
30081 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30082 }
30083 ecode3 = SWIG_AsVal_int(obj2, &val3);
30084 if (!SWIG_IsOK(ecode3)) {
30085 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
30086 }
30087 arg3 = static_cast< int >(val3);
30088 {
30089 PyThreadState* __tstate = wxPyBeginAllowThreads();
30090 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
30091 wxPyEndAllowThreads(__tstate);
30092 if (PyErr_Occurred()) SWIG_fail;
30093 }
30094 resultobj = SWIG_Py_Void();
30095 return resultobj;
30096 fail:
30097 return NULL;
30098 }
30099
30100
30101 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30102 PyObject *resultobj = 0;
30103 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30104 int arg2 ;
30105 int arg3 ;
30106 int arg4 ;
30107 int arg5 ;
30108 void *argp1 = 0 ;
30109 int res1 = 0 ;
30110 int val2 ;
30111 int ecode2 = 0 ;
30112 int val3 ;
30113 int ecode3 = 0 ;
30114 int val4 ;
30115 int ecode4 = 0 ;
30116 int val5 ;
30117 int ecode5 = 0 ;
30118 PyObject * obj0 = 0 ;
30119 PyObject * obj1 = 0 ;
30120 PyObject * obj2 = 0 ;
30121 PyObject * obj3 = 0 ;
30122 PyObject * obj4 = 0 ;
30123 char * kwnames[] = {
30124 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
30125 };
30126
30127 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30128 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30129 if (!SWIG_IsOK(res1)) {
30130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30131 }
30132 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30133 ecode2 = SWIG_AsVal_int(obj1, &val2);
30134 if (!SWIG_IsOK(ecode2)) {
30135 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
30136 }
30137 arg2 = static_cast< int >(val2);
30138 ecode3 = SWIG_AsVal_int(obj2, &val3);
30139 if (!SWIG_IsOK(ecode3)) {
30140 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
30141 }
30142 arg3 = static_cast< int >(val3);
30143 ecode4 = SWIG_AsVal_int(obj3, &val4);
30144 if (!SWIG_IsOK(ecode4)) {
30145 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
30146 }
30147 arg4 = static_cast< int >(val4);
30148 ecode5 = SWIG_AsVal_int(obj4, &val5);
30149 if (!SWIG_IsOK(ecode5)) {
30150 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
30151 }
30152 arg5 = static_cast< int >(val5);
30153 {
30154 PyThreadState* __tstate = wxPyBeginAllowThreads();
30155 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
30156 wxPyEndAllowThreads(__tstate);
30157 if (PyErr_Occurred()) SWIG_fail;
30158 }
30159 resultobj = SWIG_Py_Void();
30160 return resultobj;
30161 fail:
30162 return NULL;
30163 }
30164
30165
30166 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30167 PyObject *resultobj = 0;
30168 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30169 wxRect *arg2 = 0 ;
30170 void *argp1 = 0 ;
30171 int res1 = 0 ;
30172 wxRect temp2 ;
30173 PyObject * obj0 = 0 ;
30174 PyObject * obj1 = 0 ;
30175 char * kwnames[] = {
30176 (char *) "self",(char *) "rect", NULL
30177 };
30178
30179 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
30180 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30181 if (!SWIG_IsOK(res1)) {
30182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30183 }
30184 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30185 {
30186 arg2 = &temp2;
30187 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
30188 }
30189 {
30190 PyThreadState* __tstate = wxPyBeginAllowThreads();
30191 (arg1)->DrawEllipse((wxRect const &)*arg2);
30192 wxPyEndAllowThreads(__tstate);
30193 if (PyErr_Occurred()) SWIG_fail;
30194 }
30195 resultobj = SWIG_Py_Void();
30196 return resultobj;
30197 fail:
30198 return NULL;
30199 }
30200
30201
30202 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30203 PyObject *resultobj = 0;
30204 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30205 wxPoint *arg2 = 0 ;
30206 wxSize *arg3 = 0 ;
30207 void *argp1 = 0 ;
30208 int res1 = 0 ;
30209 wxPoint temp2 ;
30210 wxSize temp3 ;
30211 PyObject * obj0 = 0 ;
30212 PyObject * obj1 = 0 ;
30213 PyObject * obj2 = 0 ;
30214 char * kwnames[] = {
30215 (char *) "self",(char *) "pt",(char *) "sz", NULL
30216 };
30217
30218 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30219 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30220 if (!SWIG_IsOK(res1)) {
30221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30222 }
30223 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30224 {
30225 arg2 = &temp2;
30226 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30227 }
30228 {
30229 arg3 = &temp3;
30230 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
30231 }
30232 {
30233 PyThreadState* __tstate = wxPyBeginAllowThreads();
30234 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
30235 wxPyEndAllowThreads(__tstate);
30236 if (PyErr_Occurred()) SWIG_fail;
30237 }
30238 resultobj = SWIG_Py_Void();
30239 return resultobj;
30240 fail:
30241 return NULL;
30242 }
30243
30244
30245 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30246 PyObject *resultobj = 0;
30247 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30248 wxIcon *arg2 = 0 ;
30249 int arg3 ;
30250 int arg4 ;
30251 void *argp1 = 0 ;
30252 int res1 = 0 ;
30253 void *argp2 = 0 ;
30254 int res2 = 0 ;
30255 int val3 ;
30256 int ecode3 = 0 ;
30257 int val4 ;
30258 int ecode4 = 0 ;
30259 PyObject * obj0 = 0 ;
30260 PyObject * obj1 = 0 ;
30261 PyObject * obj2 = 0 ;
30262 PyObject * obj3 = 0 ;
30263 char * kwnames[] = {
30264 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
30265 };
30266
30267 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30268 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30269 if (!SWIG_IsOK(res1)) {
30270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30271 }
30272 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30273 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
30274 if (!SWIG_IsOK(res2)) {
30275 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
30276 }
30277 if (!argp2) {
30278 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
30279 }
30280 arg2 = reinterpret_cast< wxIcon * >(argp2);
30281 ecode3 = SWIG_AsVal_int(obj2, &val3);
30282 if (!SWIG_IsOK(ecode3)) {
30283 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
30284 }
30285 arg3 = static_cast< int >(val3);
30286 ecode4 = SWIG_AsVal_int(obj3, &val4);
30287 if (!SWIG_IsOK(ecode4)) {
30288 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
30289 }
30290 arg4 = static_cast< int >(val4);
30291 {
30292 PyThreadState* __tstate = wxPyBeginAllowThreads();
30293 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
30294 wxPyEndAllowThreads(__tstate);
30295 if (PyErr_Occurred()) SWIG_fail;
30296 }
30297 resultobj = SWIG_Py_Void();
30298 return resultobj;
30299 fail:
30300 return NULL;
30301 }
30302
30303
30304 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30305 PyObject *resultobj = 0;
30306 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30307 wxIcon *arg2 = 0 ;
30308 wxPoint *arg3 = 0 ;
30309 void *argp1 = 0 ;
30310 int res1 = 0 ;
30311 void *argp2 = 0 ;
30312 int res2 = 0 ;
30313 wxPoint temp3 ;
30314 PyObject * obj0 = 0 ;
30315 PyObject * obj1 = 0 ;
30316 PyObject * obj2 = 0 ;
30317 char * kwnames[] = {
30318 (char *) "self",(char *) "icon",(char *) "pt", NULL
30319 };
30320
30321 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30322 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30323 if (!SWIG_IsOK(res1)) {
30324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30325 }
30326 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30327 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
30328 if (!SWIG_IsOK(res2)) {
30329 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
30330 }
30331 if (!argp2) {
30332 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
30333 }
30334 arg2 = reinterpret_cast< wxIcon * >(argp2);
30335 {
30336 arg3 = &temp3;
30337 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30338 }
30339 {
30340 PyThreadState* __tstate = wxPyBeginAllowThreads();
30341 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
30342 wxPyEndAllowThreads(__tstate);
30343 if (PyErr_Occurred()) SWIG_fail;
30344 }
30345 resultobj = SWIG_Py_Void();
30346 return resultobj;
30347 fail:
30348 return NULL;
30349 }
30350
30351
30352 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30353 PyObject *resultobj = 0;
30354 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30355 wxBitmap *arg2 = 0 ;
30356 int arg3 ;
30357 int arg4 ;
30358 bool arg5 = (bool) false ;
30359 void *argp1 = 0 ;
30360 int res1 = 0 ;
30361 void *argp2 = 0 ;
30362 int res2 = 0 ;
30363 int val3 ;
30364 int ecode3 = 0 ;
30365 int val4 ;
30366 int ecode4 = 0 ;
30367 bool val5 ;
30368 int ecode5 = 0 ;
30369 PyObject * obj0 = 0 ;
30370 PyObject * obj1 = 0 ;
30371 PyObject * obj2 = 0 ;
30372 PyObject * obj3 = 0 ;
30373 PyObject * obj4 = 0 ;
30374 char * kwnames[] = {
30375 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
30376 };
30377
30378 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30379 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30380 if (!SWIG_IsOK(res1)) {
30381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30382 }
30383 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30384 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
30385 if (!SWIG_IsOK(res2)) {
30386 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30387 }
30388 if (!argp2) {
30389 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30390 }
30391 arg2 = reinterpret_cast< wxBitmap * >(argp2);
30392 ecode3 = SWIG_AsVal_int(obj2, &val3);
30393 if (!SWIG_IsOK(ecode3)) {
30394 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
30395 }
30396 arg3 = static_cast< int >(val3);
30397 ecode4 = SWIG_AsVal_int(obj3, &val4);
30398 if (!SWIG_IsOK(ecode4)) {
30399 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
30400 }
30401 arg4 = static_cast< int >(val4);
30402 if (obj4) {
30403 ecode5 = SWIG_AsVal_bool(obj4, &val5);
30404 if (!SWIG_IsOK(ecode5)) {
30405 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
30406 }
30407 arg5 = static_cast< bool >(val5);
30408 }
30409 {
30410 PyThreadState* __tstate = wxPyBeginAllowThreads();
30411 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
30412 wxPyEndAllowThreads(__tstate);
30413 if (PyErr_Occurred()) SWIG_fail;
30414 }
30415 resultobj = SWIG_Py_Void();
30416 return resultobj;
30417 fail:
30418 return NULL;
30419 }
30420
30421
30422 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30423 PyObject *resultobj = 0;
30424 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30425 wxBitmap *arg2 = 0 ;
30426 wxPoint *arg3 = 0 ;
30427 bool arg4 = (bool) false ;
30428 void *argp1 = 0 ;
30429 int res1 = 0 ;
30430 void *argp2 = 0 ;
30431 int res2 = 0 ;
30432 wxPoint temp3 ;
30433 bool val4 ;
30434 int ecode4 = 0 ;
30435 PyObject * obj0 = 0 ;
30436 PyObject * obj1 = 0 ;
30437 PyObject * obj2 = 0 ;
30438 PyObject * obj3 = 0 ;
30439 char * kwnames[] = {
30440 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
30441 };
30442
30443 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30444 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30445 if (!SWIG_IsOK(res1)) {
30446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30447 }
30448 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30449 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
30450 if (!SWIG_IsOK(res2)) {
30451 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30452 }
30453 if (!argp2) {
30454 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30455 }
30456 arg2 = reinterpret_cast< wxBitmap * >(argp2);
30457 {
30458 arg3 = &temp3;
30459 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30460 }
30461 if (obj3) {
30462 ecode4 = SWIG_AsVal_bool(obj3, &val4);
30463 if (!SWIG_IsOK(ecode4)) {
30464 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
30465 }
30466 arg4 = static_cast< bool >(val4);
30467 }
30468 {
30469 PyThreadState* __tstate = wxPyBeginAllowThreads();
30470 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
30471 wxPyEndAllowThreads(__tstate);
30472 if (PyErr_Occurred()) SWIG_fail;
30473 }
30474 resultobj = SWIG_Py_Void();
30475 return resultobj;
30476 fail:
30477 return NULL;
30478 }
30479
30480
30481 SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30482 PyObject *resultobj = 0;
30483 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30484 wxString *arg2 = 0 ;
30485 int arg3 ;
30486 int arg4 ;
30487 void *argp1 = 0 ;
30488 int res1 = 0 ;
30489 bool temp2 = false ;
30490 int val3 ;
30491 int ecode3 = 0 ;
30492 int val4 ;
30493 int ecode4 = 0 ;
30494 PyObject * obj0 = 0 ;
30495 PyObject * obj1 = 0 ;
30496 PyObject * obj2 = 0 ;
30497 PyObject * obj3 = 0 ;
30498 char * kwnames[] = {
30499 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
30500 };
30501
30502 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30503 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30504 if (!SWIG_IsOK(res1)) {
30505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30506 }
30507 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30508 {
30509 arg2 = wxString_in_helper(obj1);
30510 if (arg2 == NULL) SWIG_fail;
30511 temp2 = true;
30512 }
30513 ecode3 = SWIG_AsVal_int(obj2, &val3);
30514 if (!SWIG_IsOK(ecode3)) {
30515 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'");
30516 }
30517 arg3 = static_cast< int >(val3);
30518 ecode4 = SWIG_AsVal_int(obj3, &val4);
30519 if (!SWIG_IsOK(ecode4)) {
30520 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'");
30521 }
30522 arg4 = static_cast< int >(val4);
30523 {
30524 PyThreadState* __tstate = wxPyBeginAllowThreads();
30525 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
30526 wxPyEndAllowThreads(__tstate);
30527 if (PyErr_Occurred()) SWIG_fail;
30528 }
30529 resultobj = SWIG_Py_Void();
30530 {
30531 if (temp2)
30532 delete arg2;
30533 }
30534 return resultobj;
30535 fail:
30536 {
30537 if (temp2)
30538 delete arg2;
30539 }
30540 return NULL;
30541 }
30542
30543
30544 SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30545 PyObject *resultobj = 0;
30546 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30547 wxString *arg2 = 0 ;
30548 wxPoint *arg3 = 0 ;
30549 void *argp1 = 0 ;
30550 int res1 = 0 ;
30551 bool temp2 = false ;
30552 wxPoint temp3 ;
30553 PyObject * obj0 = 0 ;
30554 PyObject * obj1 = 0 ;
30555 PyObject * obj2 = 0 ;
30556 char * kwnames[] = {
30557 (char *) "self",(char *) "text",(char *) "pt", NULL
30558 };
30559
30560 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30561 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30562 if (!SWIG_IsOK(res1)) {
30563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30564 }
30565 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30566 {
30567 arg2 = wxString_in_helper(obj1);
30568 if (arg2 == NULL) SWIG_fail;
30569 temp2 = true;
30570 }
30571 {
30572 arg3 = &temp3;
30573 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30574 }
30575 {
30576 PyThreadState* __tstate = wxPyBeginAllowThreads();
30577 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
30578 wxPyEndAllowThreads(__tstate);
30579 if (PyErr_Occurred()) SWIG_fail;
30580 }
30581 resultobj = SWIG_Py_Void();
30582 {
30583 if (temp2)
30584 delete arg2;
30585 }
30586 return resultobj;
30587 fail:
30588 {
30589 if (temp2)
30590 delete arg2;
30591 }
30592 return NULL;
30593 }
30594
30595
30596 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30597 PyObject *resultobj = 0;
30598 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30599 wxString *arg2 = 0 ;
30600 int arg3 ;
30601 int arg4 ;
30602 double arg5 ;
30603 void *argp1 = 0 ;
30604 int res1 = 0 ;
30605 bool temp2 = false ;
30606 int val3 ;
30607 int ecode3 = 0 ;
30608 int val4 ;
30609 int ecode4 = 0 ;
30610 double val5 ;
30611 int ecode5 = 0 ;
30612 PyObject * obj0 = 0 ;
30613 PyObject * obj1 = 0 ;
30614 PyObject * obj2 = 0 ;
30615 PyObject * obj3 = 0 ;
30616 PyObject * obj4 = 0 ;
30617 char * kwnames[] = {
30618 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
30619 };
30620
30621 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30622 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30623 if (!SWIG_IsOK(res1)) {
30624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30625 }
30626 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30627 {
30628 arg2 = wxString_in_helper(obj1);
30629 if (arg2 == NULL) SWIG_fail;
30630 temp2 = true;
30631 }
30632 ecode3 = SWIG_AsVal_int(obj2, &val3);
30633 if (!SWIG_IsOK(ecode3)) {
30634 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
30635 }
30636 arg3 = static_cast< int >(val3);
30637 ecode4 = SWIG_AsVal_int(obj3, &val4);
30638 if (!SWIG_IsOK(ecode4)) {
30639 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
30640 }
30641 arg4 = static_cast< int >(val4);
30642 ecode5 = SWIG_AsVal_double(obj4, &val5);
30643 if (!SWIG_IsOK(ecode5)) {
30644 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
30645 }
30646 arg5 = static_cast< double >(val5);
30647 {
30648 PyThreadState* __tstate = wxPyBeginAllowThreads();
30649 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
30650 wxPyEndAllowThreads(__tstate);
30651 if (PyErr_Occurred()) SWIG_fail;
30652 }
30653 resultobj = SWIG_Py_Void();
30654 {
30655 if (temp2)
30656 delete arg2;
30657 }
30658 return resultobj;
30659 fail:
30660 {
30661 if (temp2)
30662 delete arg2;
30663 }
30664 return NULL;
30665 }
30666
30667
30668 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30669 PyObject *resultobj = 0;
30670 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30671 wxString *arg2 = 0 ;
30672 wxPoint *arg3 = 0 ;
30673 double arg4 ;
30674 void *argp1 = 0 ;
30675 int res1 = 0 ;
30676 bool temp2 = false ;
30677 wxPoint temp3 ;
30678 double val4 ;
30679 int ecode4 = 0 ;
30680 PyObject * obj0 = 0 ;
30681 PyObject * obj1 = 0 ;
30682 PyObject * obj2 = 0 ;
30683 PyObject * obj3 = 0 ;
30684 char * kwnames[] = {
30685 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
30686 };
30687
30688 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30689 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30690 if (!SWIG_IsOK(res1)) {
30691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30692 }
30693 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30694 {
30695 arg2 = wxString_in_helper(obj1);
30696 if (arg2 == NULL) SWIG_fail;
30697 temp2 = true;
30698 }
30699 {
30700 arg3 = &temp3;
30701 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30702 }
30703 ecode4 = SWIG_AsVal_double(obj3, &val4);
30704 if (!SWIG_IsOK(ecode4)) {
30705 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
30706 }
30707 arg4 = static_cast< double >(val4);
30708 {
30709 PyThreadState* __tstate = wxPyBeginAllowThreads();
30710 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
30711 wxPyEndAllowThreads(__tstate);
30712 if (PyErr_Occurred()) SWIG_fail;
30713 }
30714 resultobj = SWIG_Py_Void();
30715 {
30716 if (temp2)
30717 delete arg2;
30718 }
30719 return resultobj;
30720 fail:
30721 {
30722 if (temp2)
30723 delete arg2;
30724 }
30725 return NULL;
30726 }
30727
30728
30729 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30730 PyObject *resultobj = 0;
30731 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30732 int arg2 ;
30733 wxPoint *arg3 = (wxPoint *) 0 ;
30734 int arg4 = (int) 0 ;
30735 int arg5 = (int) 0 ;
30736 void *argp1 = 0 ;
30737 int res1 = 0 ;
30738 int val4 ;
30739 int ecode4 = 0 ;
30740 int val5 ;
30741 int ecode5 = 0 ;
30742 PyObject * obj0 = 0 ;
30743 PyObject * obj1 = 0 ;
30744 PyObject * obj2 = 0 ;
30745 PyObject * obj3 = 0 ;
30746 char * kwnames[] = {
30747 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
30748 };
30749
30750 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30751 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30752 if (!SWIG_IsOK(res1)) {
30753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30754 }
30755 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30756 {
30757 arg3 = wxPoint_LIST_helper(obj1, &arg2);
30758 if (arg3 == NULL) SWIG_fail;
30759 }
30760 if (obj2) {
30761 ecode4 = SWIG_AsVal_int(obj2, &val4);
30762 if (!SWIG_IsOK(ecode4)) {
30763 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'");
30764 }
30765 arg4 = static_cast< int >(val4);
30766 }
30767 if (obj3) {
30768 ecode5 = SWIG_AsVal_int(obj3, &val5);
30769 if (!SWIG_IsOK(ecode5)) {
30770 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'");
30771 }
30772 arg5 = static_cast< int >(val5);
30773 }
30774 {
30775 PyThreadState* __tstate = wxPyBeginAllowThreads();
30776 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
30777 wxPyEndAllowThreads(__tstate);
30778 if (PyErr_Occurred()) SWIG_fail;
30779 }
30780 resultobj = SWIG_Py_Void();
30781 {
30782 if (arg3) delete [] arg3;
30783 }
30784 return resultobj;
30785 fail:
30786 {
30787 if (arg3) delete [] arg3;
30788 }
30789 return NULL;
30790 }
30791
30792
30793 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30794 PyObject *resultobj = 0;
30795 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30796 int arg2 ;
30797 wxPoint *arg3 = (wxPoint *) 0 ;
30798 int arg4 = (int) 0 ;
30799 int arg5 = (int) 0 ;
30800 int arg6 = (int) wxODDEVEN_RULE ;
30801 void *argp1 = 0 ;
30802 int res1 = 0 ;
30803 int val4 ;
30804 int ecode4 = 0 ;
30805 int val5 ;
30806 int ecode5 = 0 ;
30807 int val6 ;
30808 int ecode6 = 0 ;
30809 PyObject * obj0 = 0 ;
30810 PyObject * obj1 = 0 ;
30811 PyObject * obj2 = 0 ;
30812 PyObject * obj3 = 0 ;
30813 PyObject * obj4 = 0 ;
30814 char * kwnames[] = {
30815 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
30816 };
30817
30818 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30819 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30820 if (!SWIG_IsOK(res1)) {
30821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30822 }
30823 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30824 {
30825 arg3 = wxPoint_LIST_helper(obj1, &arg2);
30826 if (arg3 == NULL) SWIG_fail;
30827 }
30828 if (obj2) {
30829 ecode4 = SWIG_AsVal_int(obj2, &val4);
30830 if (!SWIG_IsOK(ecode4)) {
30831 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
30832 }
30833 arg4 = static_cast< int >(val4);
30834 }
30835 if (obj3) {
30836 ecode5 = SWIG_AsVal_int(obj3, &val5);
30837 if (!SWIG_IsOK(ecode5)) {
30838 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
30839 }
30840 arg5 = static_cast< int >(val5);
30841 }
30842 if (obj4) {
30843 ecode6 = SWIG_AsVal_int(obj4, &val6);
30844 if (!SWIG_IsOK(ecode6)) {
30845 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
30846 }
30847 arg6 = static_cast< int >(val6);
30848 }
30849 {
30850 PyThreadState* __tstate = wxPyBeginAllowThreads();
30851 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
30852 wxPyEndAllowThreads(__tstate);
30853 if (PyErr_Occurred()) SWIG_fail;
30854 }
30855 resultobj = SWIG_Py_Void();
30856 {
30857 if (arg3) delete [] arg3;
30858 }
30859 return resultobj;
30860 fail:
30861 {
30862 if (arg3) delete [] arg3;
30863 }
30864 return NULL;
30865 }
30866
30867
30868 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30869 PyObject *resultobj = 0;
30870 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30871 wxString *arg2 = 0 ;
30872 wxRect *arg3 = 0 ;
30873 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
30874 int arg5 = (int) -1 ;
30875 void *argp1 = 0 ;
30876 int res1 = 0 ;
30877 bool temp2 = false ;
30878 wxRect temp3 ;
30879 int val4 ;
30880 int ecode4 = 0 ;
30881 int val5 ;
30882 int ecode5 = 0 ;
30883 PyObject * obj0 = 0 ;
30884 PyObject * obj1 = 0 ;
30885 PyObject * obj2 = 0 ;
30886 PyObject * obj3 = 0 ;
30887 PyObject * obj4 = 0 ;
30888 char * kwnames[] = {
30889 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
30890 };
30891
30892 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30893 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30894 if (!SWIG_IsOK(res1)) {
30895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30896 }
30897 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30898 {
30899 arg2 = wxString_in_helper(obj1);
30900 if (arg2 == NULL) SWIG_fail;
30901 temp2 = true;
30902 }
30903 {
30904 arg3 = &temp3;
30905 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
30906 }
30907 if (obj3) {
30908 ecode4 = SWIG_AsVal_int(obj3, &val4);
30909 if (!SWIG_IsOK(ecode4)) {
30910 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
30911 }
30912 arg4 = static_cast< int >(val4);
30913 }
30914 if (obj4) {
30915 ecode5 = SWIG_AsVal_int(obj4, &val5);
30916 if (!SWIG_IsOK(ecode5)) {
30917 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
30918 }
30919 arg5 = static_cast< int >(val5);
30920 }
30921 {
30922 PyThreadState* __tstate = wxPyBeginAllowThreads();
30923 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
30924 wxPyEndAllowThreads(__tstate);
30925 if (PyErr_Occurred()) SWIG_fail;
30926 }
30927 resultobj = SWIG_Py_Void();
30928 {
30929 if (temp2)
30930 delete arg2;
30931 }
30932 return resultobj;
30933 fail:
30934 {
30935 if (temp2)
30936 delete arg2;
30937 }
30938 return NULL;
30939 }
30940
30941
30942 SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30943 PyObject *resultobj = 0;
30944 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30945 wxString *arg2 = 0 ;
30946 wxBitmap *arg3 = 0 ;
30947 wxRect *arg4 = 0 ;
30948 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
30949 int arg6 = (int) -1 ;
30950 void *argp1 = 0 ;
30951 int res1 = 0 ;
30952 bool temp2 = false ;
30953 void *argp3 = 0 ;
30954 int res3 = 0 ;
30955 wxRect temp4 ;
30956 int val5 ;
30957 int ecode5 = 0 ;
30958 int val6 ;
30959 int ecode6 = 0 ;
30960 PyObject * obj0 = 0 ;
30961 PyObject * obj1 = 0 ;
30962 PyObject * obj2 = 0 ;
30963 PyObject * obj3 = 0 ;
30964 PyObject * obj4 = 0 ;
30965 PyObject * obj5 = 0 ;
30966 char * kwnames[] = {
30967 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
30968 };
30969
30970 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
30971 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30972 if (!SWIG_IsOK(res1)) {
30973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30974 }
30975 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30976 {
30977 arg2 = wxString_in_helper(obj1);
30978 if (arg2 == NULL) SWIG_fail;
30979 temp2 = true;
30980 }
30981 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
30982 if (!SWIG_IsOK(res3)) {
30983 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
30984 }
30985 if (!argp3) {
30986 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
30987 }
30988 arg3 = reinterpret_cast< wxBitmap * >(argp3);
30989 {
30990 arg4 = &temp4;
30991 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30992 }
30993 if (obj4) {
30994 ecode5 = SWIG_AsVal_int(obj4, &val5);
30995 if (!SWIG_IsOK(ecode5)) {
30996 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
30997 }
30998 arg5 = static_cast< int >(val5);
30999 }
31000 if (obj5) {
31001 ecode6 = SWIG_AsVal_int(obj5, &val6);
31002 if (!SWIG_IsOK(ecode6)) {
31003 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
31004 }
31005 arg6 = static_cast< int >(val6);
31006 }
31007 {
31008 PyThreadState* __tstate = wxPyBeginAllowThreads();
31009 (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
31010 wxPyEndAllowThreads(__tstate);
31011 if (PyErr_Occurred()) SWIG_fail;
31012 }
31013 resultobj = SWIG_Py_Void();
31014 {
31015 if (temp2)
31016 delete arg2;
31017 }
31018 return resultobj;
31019 fail:
31020 {
31021 if (temp2)
31022 delete arg2;
31023 }
31024 return NULL;
31025 }
31026
31027
31028 SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31029 PyObject *resultobj = 0;
31030 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31031 int arg2 ;
31032 wxPoint *arg3 = (wxPoint *) 0 ;
31033 void *argp1 = 0 ;
31034 int res1 = 0 ;
31035 PyObject * obj0 = 0 ;
31036 PyObject * obj1 = 0 ;
31037 char * kwnames[] = {
31038 (char *) "self",(char *) "points", NULL
31039 };
31040
31041 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
31042 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31043 if (!SWIG_IsOK(res1)) {
31044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31045 }
31046 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31047 {
31048 arg3 = wxPoint_LIST_helper(obj1, &arg2);
31049 if (arg3 == NULL) SWIG_fail;
31050 }
31051 {
31052 PyThreadState* __tstate = wxPyBeginAllowThreads();
31053 (arg1)->DrawSpline(arg2,arg3);
31054 wxPyEndAllowThreads(__tstate);
31055 if (PyErr_Occurred()) SWIG_fail;
31056 }
31057 resultobj = SWIG_Py_Void();
31058 {
31059 if (arg3) delete [] arg3;
31060 }
31061 return resultobj;
31062 fail:
31063 {
31064 if (arg3) delete [] arg3;
31065 }
31066 return NULL;
31067 }
31068
31069
31070 SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31071 PyObject *resultobj = 0;
31072 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31073 void *argp1 = 0 ;
31074 int res1 = 0 ;
31075 PyObject *swig_obj[1] ;
31076
31077 if (!args) SWIG_fail;
31078 swig_obj[0] = args;
31079 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31080 if (!SWIG_IsOK(res1)) {
31081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31082 }
31083 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31084 {
31085 PyThreadState* __tstate = wxPyBeginAllowThreads();
31086 (arg1)->Clear();
31087 wxPyEndAllowThreads(__tstate);
31088 if (PyErr_Occurred()) SWIG_fail;
31089 }
31090 resultobj = SWIG_Py_Void();
31091 return resultobj;
31092 fail:
31093 return NULL;
31094 }
31095
31096
31097 SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31098 PyObject *resultobj = 0;
31099 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31100 wxFont *arg2 = 0 ;
31101 void *argp1 = 0 ;
31102 int res1 = 0 ;
31103 void *argp2 = 0 ;
31104 int res2 = 0 ;
31105 PyObject * obj0 = 0 ;
31106 PyObject * obj1 = 0 ;
31107 char * kwnames[] = {
31108 (char *) "self",(char *) "font", NULL
31109 };
31110
31111 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
31112 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31113 if (!SWIG_IsOK(res1)) {
31114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31115 }
31116 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31117 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
31118 if (!SWIG_IsOK(res2)) {
31119 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
31120 }
31121 if (!argp2) {
31122 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
31123 }
31124 arg2 = reinterpret_cast< wxFont * >(argp2);
31125 {
31126 PyThreadState* __tstate = wxPyBeginAllowThreads();
31127 (arg1)->SetFont((wxFont const &)*arg2);
31128 wxPyEndAllowThreads(__tstate);
31129 if (PyErr_Occurred()) SWIG_fail;
31130 }
31131 resultobj = SWIG_Py_Void();
31132 return resultobj;
31133 fail:
31134 return NULL;
31135 }
31136
31137
31138 SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31139 PyObject *resultobj = 0;
31140 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31141 wxPen *arg2 = 0 ;
31142 void *argp1 = 0 ;
31143 int res1 = 0 ;
31144 void *argp2 = 0 ;
31145 int res2 = 0 ;
31146 PyObject * obj0 = 0 ;
31147 PyObject * obj1 = 0 ;
31148 char * kwnames[] = {
31149 (char *) "self",(char *) "pen", NULL
31150 };
31151
31152 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
31153 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31154 if (!SWIG_IsOK(res1)) {
31155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31156 }
31157 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31158 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
31159 if (!SWIG_IsOK(res2)) {
31160 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
31161 }
31162 if (!argp2) {
31163 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
31164 }
31165 arg2 = reinterpret_cast< wxPen * >(argp2);
31166 {
31167 PyThreadState* __tstate = wxPyBeginAllowThreads();
31168 (arg1)->SetPen((wxPen const &)*arg2);
31169 wxPyEndAllowThreads(__tstate);
31170 if (PyErr_Occurred()) SWIG_fail;
31171 }
31172 resultobj = SWIG_Py_Void();
31173 return resultobj;
31174 fail:
31175 return NULL;
31176 }
31177
31178
31179 SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31180 PyObject *resultobj = 0;
31181 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31182 wxBrush *arg2 = 0 ;
31183 void *argp1 = 0 ;
31184 int res1 = 0 ;
31185 void *argp2 = 0 ;
31186 int res2 = 0 ;
31187 PyObject * obj0 = 0 ;
31188 PyObject * obj1 = 0 ;
31189 char * kwnames[] = {
31190 (char *) "self",(char *) "brush", NULL
31191 };
31192
31193 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
31194 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31195 if (!SWIG_IsOK(res1)) {
31196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31197 }
31198 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31199 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
31200 if (!SWIG_IsOK(res2)) {
31201 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
31202 }
31203 if (!argp2) {
31204 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
31205 }
31206 arg2 = reinterpret_cast< wxBrush * >(argp2);
31207 {
31208 PyThreadState* __tstate = wxPyBeginAllowThreads();
31209 (arg1)->SetBrush((wxBrush const &)*arg2);
31210 wxPyEndAllowThreads(__tstate);
31211 if (PyErr_Occurred()) SWIG_fail;
31212 }
31213 resultobj = SWIG_Py_Void();
31214 return resultobj;
31215 fail:
31216 return NULL;
31217 }
31218
31219
31220 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31221 PyObject *resultobj = 0;
31222 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31223 wxBrush *arg2 = 0 ;
31224 void *argp1 = 0 ;
31225 int res1 = 0 ;
31226 void *argp2 = 0 ;
31227 int res2 = 0 ;
31228 PyObject * obj0 = 0 ;
31229 PyObject * obj1 = 0 ;
31230 char * kwnames[] = {
31231 (char *) "self",(char *) "brush", NULL
31232 };
31233
31234 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
31235 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31236 if (!SWIG_IsOK(res1)) {
31237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31238 }
31239 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31240 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
31241 if (!SWIG_IsOK(res2)) {
31242 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
31243 }
31244 if (!argp2) {
31245 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
31246 }
31247 arg2 = reinterpret_cast< wxBrush * >(argp2);
31248 {
31249 PyThreadState* __tstate = wxPyBeginAllowThreads();
31250 (arg1)->SetBackground((wxBrush const &)*arg2);
31251 wxPyEndAllowThreads(__tstate);
31252 if (PyErr_Occurred()) SWIG_fail;
31253 }
31254 resultobj = SWIG_Py_Void();
31255 return resultobj;
31256 fail:
31257 return NULL;
31258 }
31259
31260
31261 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31262 PyObject *resultobj = 0;
31263 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31264 int arg2 ;
31265 void *argp1 = 0 ;
31266 int res1 = 0 ;
31267 int val2 ;
31268 int ecode2 = 0 ;
31269 PyObject * obj0 = 0 ;
31270 PyObject * obj1 = 0 ;
31271 char * kwnames[] = {
31272 (char *) "self",(char *) "mode", NULL
31273 };
31274
31275 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
31276 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31277 if (!SWIG_IsOK(res1)) {
31278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31279 }
31280 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31281 ecode2 = SWIG_AsVal_int(obj1, &val2);
31282 if (!SWIG_IsOK(ecode2)) {
31283 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
31284 }
31285 arg2 = static_cast< int >(val2);
31286 {
31287 PyThreadState* __tstate = wxPyBeginAllowThreads();
31288 (arg1)->SetBackgroundMode(arg2);
31289 wxPyEndAllowThreads(__tstate);
31290 if (PyErr_Occurred()) SWIG_fail;
31291 }
31292 resultobj = SWIG_Py_Void();
31293 return resultobj;
31294 fail:
31295 return NULL;
31296 }
31297
31298
31299 SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31300 PyObject *resultobj = 0;
31301 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31302 wxPalette *arg2 = 0 ;
31303 void *argp1 = 0 ;
31304 int res1 = 0 ;
31305 void *argp2 = 0 ;
31306 int res2 = 0 ;
31307 PyObject * obj0 = 0 ;
31308 PyObject * obj1 = 0 ;
31309 char * kwnames[] = {
31310 (char *) "self",(char *) "palette", NULL
31311 };
31312
31313 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
31314 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31315 if (!SWIG_IsOK(res1)) {
31316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31317 }
31318 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31319 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
31320 if (!SWIG_IsOK(res2)) {
31321 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
31322 }
31323 if (!argp2) {
31324 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
31325 }
31326 arg2 = reinterpret_cast< wxPalette * >(argp2);
31327 {
31328 PyThreadState* __tstate = wxPyBeginAllowThreads();
31329 (arg1)->SetPalette((wxPalette const &)*arg2);
31330 wxPyEndAllowThreads(__tstate);
31331 if (PyErr_Occurred()) SWIG_fail;
31332 }
31333 resultobj = SWIG_Py_Void();
31334 return resultobj;
31335 fail:
31336 return NULL;
31337 }
31338
31339
31340 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31341 PyObject *resultobj = 0;
31342 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31343 wxColour *arg2 = 0 ;
31344 void *argp1 = 0 ;
31345 int res1 = 0 ;
31346 wxColour temp2 ;
31347 PyObject * obj0 = 0 ;
31348 PyObject * obj1 = 0 ;
31349 char * kwnames[] = {
31350 (char *) "self",(char *) "colour", NULL
31351 };
31352
31353 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
31354 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31355 if (!SWIG_IsOK(res1)) {
31356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31357 }
31358 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31359 {
31360 arg2 = &temp2;
31361 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
31362 }
31363 {
31364 PyThreadState* __tstate = wxPyBeginAllowThreads();
31365 (arg1)->SetTextForeground((wxColour const &)*arg2);
31366 wxPyEndAllowThreads(__tstate);
31367 if (PyErr_Occurred()) SWIG_fail;
31368 }
31369 resultobj = SWIG_Py_Void();
31370 return resultobj;
31371 fail:
31372 return NULL;
31373 }
31374
31375
31376 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31377 PyObject *resultobj = 0;
31378 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31379 wxColour *arg2 = 0 ;
31380 void *argp1 = 0 ;
31381 int res1 = 0 ;
31382 wxColour temp2 ;
31383 PyObject * obj0 = 0 ;
31384 PyObject * obj1 = 0 ;
31385 char * kwnames[] = {
31386 (char *) "self",(char *) "colour", NULL
31387 };
31388
31389 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
31390 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31391 if (!SWIG_IsOK(res1)) {
31392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31393 }
31394 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31395 {
31396 arg2 = &temp2;
31397 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
31398 }
31399 {
31400 PyThreadState* __tstate = wxPyBeginAllowThreads();
31401 (arg1)->SetTextBackground((wxColour const &)*arg2);
31402 wxPyEndAllowThreads(__tstate);
31403 if (PyErr_Occurred()) SWIG_fail;
31404 }
31405 resultobj = SWIG_Py_Void();
31406 return resultobj;
31407 fail:
31408 return NULL;
31409 }
31410
31411
31412 SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31413 PyObject *resultobj = 0;
31414 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31415 int arg2 ;
31416 void *argp1 = 0 ;
31417 int res1 = 0 ;
31418 int val2 ;
31419 int ecode2 = 0 ;
31420 PyObject * obj0 = 0 ;
31421 PyObject * obj1 = 0 ;
31422 char * kwnames[] = {
31423 (char *) "self",(char *) "function", NULL
31424 };
31425
31426 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
31427 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31428 if (!SWIG_IsOK(res1)) {
31429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31430 }
31431 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31432 ecode2 = SWIG_AsVal_int(obj1, &val2);
31433 if (!SWIG_IsOK(ecode2)) {
31434 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
31435 }
31436 arg2 = static_cast< int >(val2);
31437 {
31438 PyThreadState* __tstate = wxPyBeginAllowThreads();
31439 (arg1)->SetLogicalFunction(arg2);
31440 wxPyEndAllowThreads(__tstate);
31441 if (PyErr_Occurred()) SWIG_fail;
31442 }
31443 resultobj = SWIG_Py_Void();
31444 return resultobj;
31445 fail:
31446 return NULL;
31447 }
31448
31449
31450 SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31451 PyObject *obj;
31452 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31453 SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj));
31454 return SWIG_Py_Void();
31455 }
31456
31457 SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31458 return SWIG_Python_InitShadowInstance(args);
31459 }
31460
31461 static PyMethodDef SwigMethods[] = {
31462 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
31463 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
31464 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
31465 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
31466 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
31467 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
31468 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
31469 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
31470 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
31471 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
31472 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
31473 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
31474 { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL},
31475 { (char *)"Colour_Ok", (PyCFunction)_wrap_Colour_Ok, METH_O, NULL},
31476 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
31477 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
31478 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
31479 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
31480 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
31481 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
31482 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
31483 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
31484 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
31485 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
31486 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
31487 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
31488 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
31489 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
31490 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
31491 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
31492 { (char *)"Palette_Ok", (PyCFunction)_wrap_Palette_Ok, METH_O, NULL},
31493 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
31494 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
31495 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
31496 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
31497 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
31498 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
31499 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
31500 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
31501 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
31502 { (char *)"Pen_Ok", (PyCFunction)_wrap_Pen_Ok, METH_O, NULL},
31503 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
31504 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
31505 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
31506 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
31507 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
31508 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
31509 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
31510 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
31511 { (char *)"Pen_GetDashCount", (PyCFunction)_wrap_Pen_GetDashCount, METH_O, NULL},
31512 { (char *)"Pen_GetStipple", (PyCFunction)_wrap_Pen_GetStipple, METH_O, NULL},
31513 { (char *)"Pen_SetStipple", (PyCFunction) _wrap_Pen_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
31514 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
31515 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
31516 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
31517 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
31518 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
31519 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
31520 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
31521 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
31522 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
31523 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
31524 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
31525 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
31526 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
31527 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
31528 { (char *)"Brush_Ok", (PyCFunction)_wrap_Brush_Ok, METH_O, NULL},
31529 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
31530 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
31531 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
31532 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
31533 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
31534 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
31535 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
31536 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
31537 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
31538 { (char *)"Bitmap_GetHandle", (PyCFunction)_wrap_Bitmap_GetHandle, METH_O, NULL},
31539 { (char *)"Bitmap_SetHandle", (PyCFunction) _wrap_Bitmap_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
31540 { (char *)"Bitmap_Ok", (PyCFunction)_wrap_Bitmap_Ok, METH_O, NULL},
31541 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
31542 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
31543 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
31544 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
31545 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
31546 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
31547 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
31548 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
31549 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
31550 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
31551 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
31552 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
31553 { (char *)"Bitmap_SetPalette", (PyCFunction) _wrap_Bitmap_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
31554 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
31555 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
31556 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
31557 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
31558 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
31559 { (char *)"Bitmap_CopyFromCursor", (PyCFunction) _wrap_Bitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS, NULL},
31560 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
31561 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
31562 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
31563 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
31564 { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
31565 { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
31566 { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
31567 { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL},
31568 { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL},
31569 { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL},
31570 { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL},
31571 { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL},
31572 { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL},
31573 { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL},
31574 { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL},
31575 { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL},
31576 { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL},
31577 { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL},
31578 { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL},
31579 { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL},
31580 { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL},
31581 { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL},
31582 { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
31583 { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL},
31584 { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL},
31585 { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
31586 { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
31587 { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
31588 { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
31589 { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
31590 { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL},
31591 { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL},
31592 { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL},
31593 { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL},
31594 { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL},
31595 { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL},
31596 { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL},
31597 { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL},
31598 { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL},
31599 { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL},
31600 { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL},
31601 { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL},
31602 { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
31603 { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL},
31604 { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL},
31605 { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
31606 { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
31607 { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
31608 { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
31609 { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
31610 { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL},
31611 { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL},
31612 { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL},
31613 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
31614 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
31615 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
31616 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
31617 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
31618 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
31619 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
31620 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
31621 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
31622 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
31623 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
31624 { (char *)"Icon_GetHandle", (PyCFunction)_wrap_Icon_GetHandle, METH_O, NULL},
31625 { (char *)"Icon_SetHandle", (PyCFunction) _wrap_Icon_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
31626 { (char *)"Icon_Ok", (PyCFunction)_wrap_Icon_Ok, METH_O, NULL},
31627 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
31628 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
31629 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
31630 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
31631 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
31632 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
31633 { (char *)"Icon_SetSize", (PyCFunction) _wrap_Icon_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
31634 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
31635 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
31636 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
31637 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
31638 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
31639 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
31640 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
31641 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
31642 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
31643 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
31644 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
31645 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
31646 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
31647 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
31648 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
31649 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
31650 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
31651 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
31652 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
31653 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
31654 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
31655 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
31656 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
31657 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
31658 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
31659 { (char *)"Cursor_GetHandle", (PyCFunction)_wrap_Cursor_GetHandle, METH_O, NULL},
31660 { (char *)"Cursor_SetHandle", (PyCFunction) _wrap_Cursor_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
31661 { (char *)"Cursor_Ok", (PyCFunction)_wrap_Cursor_Ok, METH_O, NULL},
31662 { (char *)"Cursor_GetWidth", (PyCFunction)_wrap_Cursor_GetWidth, METH_O, NULL},
31663 { (char *)"Cursor_GetHeight", (PyCFunction)_wrap_Cursor_GetHeight, METH_O, NULL},
31664 { (char *)"Cursor_GetDepth", (PyCFunction)_wrap_Cursor_GetDepth, METH_O, NULL},
31665 { (char *)"Cursor_SetWidth", (PyCFunction) _wrap_Cursor_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
31666 { (char *)"Cursor_SetHeight", (PyCFunction) _wrap_Cursor_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
31667 { (char *)"Cursor_SetDepth", (PyCFunction) _wrap_Cursor_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
31668 { (char *)"Cursor_SetSize", (PyCFunction) _wrap_Cursor_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
31669 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
31670 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
31671 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
31672 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
31673 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
31674 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
31675 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
31676 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
31677 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
31678 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
31679 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31680 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
31681 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
31682 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
31683 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
31684 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
31685 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
31686 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
31687 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
31688 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
31689 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
31690 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
31691 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
31692 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
31693 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
31694 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
31695 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
31696 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
31697 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
31698 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
31699 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
31700 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
31701 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
31702 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
31703 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
31704 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
31705 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
31706 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
31707 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
31708 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
31709 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
31710 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
31711 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
31712 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
31713 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
31714 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
31715 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
31716 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
31717 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
31718 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
31719 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
31720 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
31721 { (char *)"NativeFontInfo_GetPixelSize", (PyCFunction)_wrap_NativeFontInfo_GetPixelSize, METH_O, NULL},
31722 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
31723 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
31724 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
31725 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
31726 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
31727 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
31728 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
31729 { (char *)"NativeFontInfo_SetPixelSize", (PyCFunction) _wrap_NativeFontInfo_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
31730 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
31731 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
31732 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
31733 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
31734 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
31735 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
31736 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
31737 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
31738 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
31739 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
31740 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
31741 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
31742 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
31743 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
31744 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
31745 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
31746 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
31747 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
31748 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
31749 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
31750 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
31751 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
31752 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
31753 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
31754 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
31755 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
31756 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
31757 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
31758 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
31759 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
31760 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
31761 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
31762 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
31763 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
31764 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
31765 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
31766 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
31767 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
31768 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
31769 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
31770 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
31771 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
31772 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
31773 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
31774 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
31775 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
31776 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
31777 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
31778 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
31779 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
31780 { (char *)"Font_Ok", (PyCFunction)_wrap_Font_Ok, METH_O, NULL},
31781 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
31782 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
31783 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
31784 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
31785 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
31786 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
31787 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
31788 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
31789 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
31790 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
31791 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
31792 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
31793 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
31794 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
31795 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
31796 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
31797 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
31798 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
31799 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
31800 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
31801 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
31802 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
31803 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
31804 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
31805 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
31806 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
31807 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
31808 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
31809 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
31810 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
31811 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
31812 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
31813 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
31814 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
31815 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
31816 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
31817 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
31818 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
31819 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
31820 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
31821 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
31822 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
31823 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
31824 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
31825 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
31826 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
31827 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
31828 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
31829 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
31830 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
31831 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
31832 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
31833 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
31834 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
31835 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
31836 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
31837 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
31838 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
31839 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
31840 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
31841 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
31842 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
31843 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
31844 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
31845 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
31846 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
31847 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
31848 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
31849 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
31850 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
31851 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
31852 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
31853 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
31854 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
31855 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
31856 { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL},
31857 { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL},
31858 { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
31859 { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL},
31860 { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL},
31861 { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL},
31862 { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL},
31863 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
31864 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
31865 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
31866 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
31867 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
31868 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
31869 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
31870 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
31871 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
31872 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
31873 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
31874 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
31875 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
31876 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31877 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
31878 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
31879 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
31880 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31881 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
31882 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
31883 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
31884 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31885 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
31886 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31887 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
31888 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
31889 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
31890 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
31891 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31892 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31893 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
31894 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
31895 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
31896 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
31897 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
31898 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
31899 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
31900 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
31901 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
31902 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
31903 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
31904 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
31905 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31906 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
31907 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31908 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
31909 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31910 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
31911 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31912 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
31913 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
31914 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
31915 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
31916 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
31917 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
31918 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
31919 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
31920 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
31921 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
31922 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
31923 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
31924 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
31925 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
31926 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
31927 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
31928 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
31929 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
31930 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
31931 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
31932 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
31933 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
31934 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
31935 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
31936 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
31937 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
31938 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
31939 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
31940 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
31941 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
31942 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
31943 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
31944 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
31945 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
31946 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
31947 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
31948 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
31949 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
31950 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
31951 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
31952 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
31953 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
31954 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
31955 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
31956 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
31957 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
31958 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
31959 { (char *)"DC_Ok", (PyCFunction)_wrap_DC_Ok, METH_O, NULL},
31960 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
31961 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
31962 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
31963 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
31964 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
31965 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
31966 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
31967 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
31968 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
31969 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
31970 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
31971 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
31972 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
31973 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
31974 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
31975 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
31976 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
31977 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
31978 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31979 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
31980 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
31981 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
31982 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31983 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
31984 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
31985 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
31986 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
31987 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
31988 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31989 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
31990 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
31991 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
31992 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
31993 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
31994 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
31995 { (char *)"DC_GetHDC", (PyCFunction)_wrap_DC_GetHDC, METH_O, NULL},
31996 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
31997 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
31998 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
31999 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
32000 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
32001 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
32002 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
32003 { (char *)"new_MemoryDC", (PyCFunction)_wrap_new_MemoryDC, METH_NOARGS, NULL},
32004 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
32005 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
32006 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
32007 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
32008 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
32009 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
32010 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
32011 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
32012 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
32013 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
32014 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
32015 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
32016 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
32017 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
32018 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
32019 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
32020 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
32021 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
32022 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
32023 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
32024 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
32025 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
32026 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
32027 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
32028 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
32029 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
32030 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
32031 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
32032 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
32033 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
32034 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
32035 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
32036 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
32037 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
32038 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
32039 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
32040 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
32041 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
32042 { (char *)"delete_MetaFile", (PyCFunction)_wrap_delete_MetaFile, METH_O, NULL},
32043 { (char *)"MetaFile_Ok", (PyCFunction)_wrap_MetaFile_Ok, METH_O, NULL},
32044 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL},
32045 { (char *)"MetaFile_GetSize", (PyCFunction)_wrap_MetaFile_GetSize, METH_O, NULL},
32046 { (char *)"MetaFile_GetWidth", (PyCFunction)_wrap_MetaFile_GetWidth, METH_O, NULL},
32047 { (char *)"MetaFile_GetHeight", (PyCFunction)_wrap_MetaFile_GetHeight, METH_O, NULL},
32048 { (char *)"MetaFile_GetFileName", (PyCFunction)_wrap_MetaFile_GetFileName, METH_O, NULL},
32049 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
32050 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
32051 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
32052 { (char *)"MetaFileDC_Close", (PyCFunction)_wrap_MetaFileDC_Close, METH_O, NULL},
32053 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
32054 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
32055 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
32056 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
32057 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
32058 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
32059 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
32060 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
32061 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
32062 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
32063 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
32064 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
32065 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
32066 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
32067 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
32068 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
32069 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
32070 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
32071 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
32072 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
32073 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
32074 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
32075 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
32076 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
32077 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
32078 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
32079 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
32080 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
32081 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
32082 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
32083 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
32084 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
32085 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
32086 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
32087 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
32088 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
32089 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
32090 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
32091 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
32092 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
32093 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
32094 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
32095 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
32096 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
32097 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
32098 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
32099 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
32100 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
32101 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
32102 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
32103 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
32104 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
32105 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
32106 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
32107 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
32108 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
32109 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
32110 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
32111 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
32112 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
32113 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
32114 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
32115 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
32116 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
32117 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
32118 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
32119 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
32120 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
32121 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
32122 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
32123 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
32124 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
32125 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
32126 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
32127 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
32128 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
32129 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
32130 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
32131 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
32132 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
32133 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
32134 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
32135 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
32136 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
32137 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
32138 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
32139 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
32140 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
32141 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
32142 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
32143 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
32144 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
32145 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
32146 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
32147 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
32148 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
32149 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
32150 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
32151 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
32152 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
32153 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
32154 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
32155 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
32156 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
32157 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
32158 { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL},
32159 { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL},
32160 { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL},
32161 { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL},
32162 { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL},
32163 { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL},
32164 { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
32165 { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL},
32166 { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL},
32167 { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL},
32168 { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL},
32169 { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
32170 { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
32171 { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL},
32172 { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL},
32173 { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL},
32174 { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
32175 { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32176 { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
32177 { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
32178 { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
32179 { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32180 { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
32181 { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32182 { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
32183 { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
32184 { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
32185 { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
32186 { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32187 { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32188 { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
32189 { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
32190 { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
32191 { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
32192 { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
32193 { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
32194 { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
32195 { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
32196 { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
32197 { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
32198 { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
32199 { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
32200 { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32201 { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
32202 { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32203 { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
32204 { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32205 { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
32206 { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32207 { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
32208 { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
32209 { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
32210 { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
32211 { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
32212 { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL},
32213 { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
32214 { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
32215 { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
32216 { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
32217 { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
32218 { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
32219 { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
32220 { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
32221 { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
32222 { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
32223 { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL},
32224 { NULL, NULL, 0, NULL }
32225 };
32226
32227
32228 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
32229
32230 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
32231 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
32232 }
32233 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
32234 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
32235 }
32236 static void *_p_wxPyLocaleTo_p_wxLocale(void *x) {
32237 return (void *)((wxLocale *) ((wxPyLocale *) x));
32238 }
32239 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
32240 return (void *)((wxGDIObject *) ((wxIcon *) x));
32241 }
32242 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
32243 return (void *)((wxGDIObject *) ((wxPalette *) x));
32244 }
32245 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
32246 return (void *)((wxGDIObject *) ((wxPen *) x));
32247 }
32248 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
32249 return (void *)((wxGDIObject *) ((wxFont *) x));
32250 }
32251 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
32252 return (void *)((wxGDIObject *) ((wxCursor *) x));
32253 }
32254 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
32255 return (void *)((wxGDIObject *) ((wxBitmap *) x));
32256 }
32257 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
32258 return (void *)((wxGDIObject *) ((wxRegion *) x));
32259 }
32260 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
32261 return (void *)((wxGDIObject *) ((wxBrush *) x));
32262 }
32263 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
32264 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
32265 }
32266 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
32267 return (void *)((wxDC *) ((wxScreenDC *) x));
32268 }
32269 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
32270 return (void *)((wxDC *) ((wxMirrorDC *) x));
32271 }
32272 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
32273 return (void *)((wxDC *) ((wxMemoryDC *) x));
32274 }
32275 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
32276 return (void *)((wxDC *) ((wxWindowDC *) x));
32277 }
32278 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
32279 return (void *)((wxDC *) ((wxMetaFileDC *) x));
32280 }
32281 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
32282 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
32283 }
32284 static void *_p_wxClientDCTo_p_wxDC(void *x) {
32285 return (void *)((wxDC *) ((wxClientDC *) x));
32286 }
32287 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
32288 return (void *)((wxDC *) ((wxPaintDC *) x));
32289 }
32290 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
32291 return (void *)((wxDC *) ((wxPostScriptDC *) x));
32292 }
32293 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
32294 return (void *)((wxDC *) ((wxPrinterDC *) x));
32295 }
32296 static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
32297 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
32298 }
32299 static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
32300 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
32301 }
32302 static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
32303 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
32304 }
32305 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
32306 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
32307 }
32308 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
32309 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
32310 }
32311 static void *_p_wxPenTo_p_wxObject(void *x) {
32312 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
32313 }
32314 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
32315 return (void *)((wxObject *) ((wxRegionIterator *) x));
32316 }
32317 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
32318 return (void *)((wxObject *) ((wxSizerItem *) x));
32319 }
32320 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
32321 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
32322 }
32323 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
32324 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
32325 }
32326 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
32327 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
32328 }
32329 static void *_p_wxIconTo_p_wxObject(void *x) {
32330 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
32331 }
32332 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
32333 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
32334 }
32335 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
32336 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
32337 }
32338 static void *_p_wxSizerTo_p_wxObject(void *x) {
32339 return (void *)((wxObject *) ((wxSizer *) x));
32340 }
32341 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
32342 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
32343 }
32344 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
32345 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
32346 }
32347 static void *_p_wxEventTo_p_wxObject(void *x) {
32348 return (void *)((wxObject *) ((wxEvent *) x));
32349 }
32350 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
32351 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
32352 }
32353 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
32354 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
32355 }
32356 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
32357 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
32358 }
32359 static void *_p_wxPseudoDCTo_p_wxObject(void *x) {
32360 return (void *)((wxObject *) ((wxPseudoDC *) x));
32361 }
32362 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
32363 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
32364 }
32365 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
32366 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
32367 }
32368 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
32369 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
32370 }
32371 static void *_p_wxDCTo_p_wxObject(void *x) {
32372 return (void *)((wxObject *) ((wxDC *) x));
32373 }
32374 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
32375 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
32376 }
32377 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
32378 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
32379 }
32380 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
32381 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
32382 }
32383 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
32384 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
32385 }
32386 static void *_p_wxControlTo_p_wxObject(void *x) {
32387 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
32388 }
32389 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
32390 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
32391 }
32392 static void *_p_wxClientDCTo_p_wxObject(void *x) {
32393 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
32394 }
32395 static void *_p_wxFSFileTo_p_wxObject(void *x) {
32396 return (void *)((wxObject *) ((wxFSFile *) x));
32397 }
32398 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
32399 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
32400 }
32401 static void *_p_wxRegionTo_p_wxObject(void *x) {
32402 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
32403 }
32404 static void *_p_wxPySizerTo_p_wxObject(void *x) {
32405 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
32406 }
32407 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
32408 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
32409 }
32410 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
32411 return (void *)((wxObject *) ((wxGDIObject *) x));
32412 }
32413 static void *_p_wxEffectsTo_p_wxObject(void *x) {
32414 return (void *)((wxObject *) ((wxEffects *) x));
32415 }
32416 static void *_p_wxPyEventTo_p_wxObject(void *x) {
32417 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
32418 }
32419 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
32420 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
32421 }
32422 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
32423 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
32424 }
32425 static void *_p_wxShowEventTo_p_wxObject(void *x) {
32426 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
32427 }
32428 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
32429 return (void *)((wxObject *) ((wxMenuItem *) x));
32430 }
32431 static void *_p_wxDateEventTo_p_wxObject(void *x) {
32432 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
32433 }
32434 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
32435 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
32436 }
32437 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
32438 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
32439 }
32440 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
32441 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
32442 }
32443 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
32444 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
32445 }
32446 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
32447 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
32448 }
32449 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
32450 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
32451 }
32452 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
32453 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
32454 }
32455 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
32456 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
32457 }
32458 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
32459 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
32460 }
32461 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
32462 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
32463 }
32464 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
32465 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
32466 }
32467 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
32468 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
32469 }
32470 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
32471 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
32472 }
32473 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
32474 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
32475 }
32476 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
32477 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
32478 }
32479 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
32480 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
32481 }
32482 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
32483 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
32484 }
32485 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
32486 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
32487 }
32488 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
32489 return (void *)((wxObject *) ((wxImageHandler *) x));
32490 }
32491 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
32492 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
32493 }
32494 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
32495 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
32496 }
32497 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
32498 return (void *)((wxObject *) ((wxEvtHandler *) x));
32499 }
32500 static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
32501 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
32502 }
32503 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
32504 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
32505 }
32506 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
32507 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
32508 }
32509 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
32510 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
32511 }
32512 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
32513 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
32514 }
32515 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
32516 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
32517 }
32518 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
32519 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
32520 }
32521 static void *_p_wxImageTo_p_wxObject(void *x) {
32522 return (void *)((wxObject *) ((wxImage *) x));
32523 }
32524 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
32525 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
32526 }
32527 static void *_p_wxPaletteTo_p_wxObject(void *x) {
32528 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
32529 }
32530 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
32531 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
32532 }
32533 static void *_p_wxImageListTo_p_wxObject(void *x) {
32534 return (void *)((wxObject *) ((wxImageList *) x));
32535 }
32536 static void *_p_wxCursorTo_p_wxObject(void *x) {
32537 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
32538 }
32539 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
32540 return (void *)((wxObject *) ((wxEncodingConverter *) x));
32541 }
32542 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
32543 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
32544 }
32545 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
32546 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
32547 }
32548 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
32549 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
32550 }
32551 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
32552 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
32553 }
32554 static void *_p_wxWindowTo_p_wxObject(void *x) {
32555 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
32556 }
32557 static void *_p_wxMenuTo_p_wxObject(void *x) {
32558 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
32559 }
32560 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
32561 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
32562 }
32563 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
32564 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
32565 }
32566 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
32567 return (void *)((wxObject *) ((wxFileSystem *) x));
32568 }
32569 static void *_p_wxBitmapTo_p_wxObject(void *x) {
32570 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
32571 }
32572 static void *_p_wxMaskTo_p_wxObject(void *x) {
32573 return (void *)((wxObject *) ((wxMask *) x));
32574 }
32575 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
32576 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
32577 }
32578 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
32579 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
32580 }
32581 static void *_p_wxPyAppTo_p_wxObject(void *x) {
32582 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
32583 }
32584 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
32585 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
32586 }
32587 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
32588 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
32589 }
32590 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
32591 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
32592 }
32593 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
32594 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
32595 }
32596 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
32597 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
32598 }
32599 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
32600 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
32601 }
32602 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
32603 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
32604 }
32605 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
32606 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
32607 }
32608 static void *_p_wxFontTo_p_wxObject(void *x) {
32609 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
32610 }
32611 static void *_p_wxBrushTo_p_wxObject(void *x) {
32612 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
32613 }
32614 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
32615 return (void *)((wxObject *) ((wxMetaFile *) x));
32616 }
32617 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
32618 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
32619 }
32620 static void *_p_wxColourTo_p_wxObject(void *x) {
32621 return (void *)((wxObject *) ((wxColour *) x));
32622 }
32623 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
32624 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
32625 }
32626 static void *_p_wxValidatorTo_p_wxObject(void *x) {
32627 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
32628 }
32629 static void *_p_wxControlTo_p_wxWindow(void *x) {
32630 return (void *)((wxWindow *) ((wxControl *) x));
32631 }
32632 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
32633 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
32634 }
32635 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
32636 return (void *)((wxWindow *) ((wxMenuBar *) x));
32637 }
32638 static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) {
32639 return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x));
32640 }
32641 static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) {
32642 return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x));
32643 }
32644 static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0};
32645 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
32646 static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, (void*)0, 0};
32647 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};
32648 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
32649 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
32650 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
32651 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
32652 static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0};
32653 static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0};
32654 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
32655 static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
32656 static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
32657 static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
32658 static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
32659 static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0};
32660 static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
32661 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
32662 static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
32663 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
32664 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
32665 static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
32666 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
32667 static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
32668 static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
32669 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
32670 static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
32671 static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
32672 static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
32673 static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
32674 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
32675 static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
32676 static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
32677 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
32678 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
32679 static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
32680 static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
32681 static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
32682 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
32683 static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
32684 static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
32685 static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
32686 static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
32687 static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
32688 static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0};
32689 static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0};
32690 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
32691 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
32692 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
32693 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
32694 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
32695 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
32696 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
32697 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
32698 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
32699 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
32700 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
32701 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
32702 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
32703 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
32704 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
32705 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
32706 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
32707 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
32708 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
32709 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
32710 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
32711 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
32712 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
32713 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
32714 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
32715 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
32716 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
32717 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
32718 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
32719 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
32720 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
32721 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
32722 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
32723 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
32724 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
32725 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
32726 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
32727 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
32728 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
32729 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
32730 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
32731 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
32732 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
32733 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
32734 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
32735 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
32736 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
32737 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
32738 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
32739 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
32740 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
32741 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
32742 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
32743 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
32744 static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
32745 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
32746 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
32747 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
32748 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
32749 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
32750 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
32751 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
32752 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
32753 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
32754 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
32755 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
32756 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
32757 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
32758 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
32759 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
32760 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
32761 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
32762 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
32763 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
32764 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
32765 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
32766 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
32767 static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
32768 static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
32769 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
32770 static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
32771 static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
32772 static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0};
32773 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
32774 static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
32775 static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
32776 static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
32777 static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0};
32778 static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
32779 static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0};
32780 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
32781 static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
32782 static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
32783 static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
32784 static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
32785 static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
32786 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
32787 static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
32788 static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
32789 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
32790 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
32791 static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
32792
32793 static swig_type_info *swig_type_initial[] = {
32794 &_swigt__p_buffer,
32795 &_swigt__p_char,
32796 &_swigt__p_double,
32797 &_swigt__p_form_ops_t,
32798 &_swigt__p_int,
32799 &_swigt__p_unsigned_char,
32800 &_swigt__p_unsigned_int,
32801 &_swigt__p_unsigned_long,
32802 &_swigt__p_wxANIHandler,
32803 &_swigt__p_wxAcceleratorTable,
32804 &_swigt__p_wxActivateEvent,
32805 &_swigt__p_wxAlphaPixelData,
32806 &_swigt__p_wxAlphaPixelData_Accessor,
32807 &_swigt__p_wxBMPHandler,
32808 &_swigt__p_wxBitmap,
32809 &_swigt__p_wxBoxSizer,
32810 &_swigt__p_wxBrush,
32811 &_swigt__p_wxBrushList,
32812 &_swigt__p_wxBufferedDC,
32813 &_swigt__p_wxBufferedPaintDC,
32814 &_swigt__p_wxCURHandler,
32815 &_swigt__p_wxChar,
32816 &_swigt__p_wxChildFocusEvent,
32817 &_swigt__p_wxClientDC,
32818 &_swigt__p_wxClipboardTextEvent,
32819 &_swigt__p_wxCloseEvent,
32820 &_swigt__p_wxColour,
32821 &_swigt__p_wxColourDatabase,
32822 &_swigt__p_wxCommandEvent,
32823 &_swigt__p_wxContextMenuEvent,
32824 &_swigt__p_wxControl,
32825 &_swigt__p_wxControlWithItems,
32826 &_swigt__p_wxCursor,
32827 &_swigt__p_wxDC,
32828 &_swigt__p_wxDash,
32829 &_swigt__p_wxDateEvent,
32830 &_swigt__p_wxDisplayChangedEvent,
32831 &_swigt__p_wxDropFilesEvent,
32832 &_swigt__p_wxDuplexMode,
32833 &_swigt__p_wxEffects,
32834 &_swigt__p_wxEncodingConverter,
32835 &_swigt__p_wxEraseEvent,
32836 &_swigt__p_wxEvent,
32837 &_swigt__p_wxEvtHandler,
32838 &_swigt__p_wxFSFile,
32839 &_swigt__p_wxFileSystem,
32840 &_swigt__p_wxFlexGridSizer,
32841 &_swigt__p_wxFocusEvent,
32842 &_swigt__p_wxFont,
32843 &_swigt__p_wxFontList,
32844 &_swigt__p_wxFontMapper,
32845 &_swigt__p_wxGBSizerItem,
32846 &_swigt__p_wxGDIObjListBase,
32847 &_swigt__p_wxGDIObject,
32848 &_swigt__p_wxGIFHandler,
32849 &_swigt__p_wxGridBagSizer,
32850 &_swigt__p_wxGridSizer,
32851 &_swigt__p_wxICOHandler,
32852 &_swigt__p_wxIcon,
32853 &_swigt__p_wxIconBundle,
32854 &_swigt__p_wxIconLocation,
32855 &_swigt__p_wxIconizeEvent,
32856 &_swigt__p_wxIdleEvent,
32857 &_swigt__p_wxImage,
32858 &_swigt__p_wxImageHandler,
32859 &_swigt__p_wxImageList,
32860 &_swigt__p_wxIndividualLayoutConstraint,
32861 &_swigt__p_wxInitDialogEvent,
32862 &_swigt__p_wxJPEGHandler,
32863 &_swigt__p_wxKeyEvent,
32864 &_swigt__p_wxLanguageInfo,
32865 &_swigt__p_wxLayoutConstraints,
32866 &_swigt__p_wxLocale,
32867 &_swigt__p_wxMask,
32868 &_swigt__p_wxMaximizeEvent,
32869 &_swigt__p_wxMemoryDC,
32870 &_swigt__p_wxMenu,
32871 &_swigt__p_wxMenuBar,
32872 &_swigt__p_wxMenuEvent,
32873 &_swigt__p_wxMenuItem,
32874 &_swigt__p_wxMetaFile,
32875 &_swigt__p_wxMetaFileDC,
32876 &_swigt__p_wxMirrorDC,
32877 &_swigt__p_wxMouseCaptureChangedEvent,
32878 &_swigt__p_wxMouseCaptureLostEvent,
32879 &_swigt__p_wxMouseEvent,
32880 &_swigt__p_wxMoveEvent,
32881 &_swigt__p_wxNativeEncodingInfo,
32882 &_swigt__p_wxNativeFontInfo,
32883 &_swigt__p_wxNativePixelData,
32884 &_swigt__p_wxNativePixelData_Accessor,
32885 &_swigt__p_wxNavigationKeyEvent,
32886 &_swigt__p_wxNcPaintEvent,
32887 &_swigt__p_wxNotifyEvent,
32888 &_swigt__p_wxObject,
32889 &_swigt__p_wxPCXHandler,
32890 &_swigt__p_wxPNGHandler,
32891 &_swigt__p_wxPNMHandler,
32892 &_swigt__p_wxPaintDC,
32893 &_swigt__p_wxPaintEvent,
32894 &_swigt__p_wxPalette,
32895 &_swigt__p_wxPaletteChangedEvent,
32896 &_swigt__p_wxPaperSize,
32897 &_swigt__p_wxPen,
32898 &_swigt__p_wxPenList,
32899 &_swigt__p_wxPixelDataBase,
32900 &_swigt__p_wxPoint,
32901 &_swigt__p_wxPostScriptDC,
32902 &_swigt__p_wxPrintData,
32903 &_swigt__p_wxPrinterDC,
32904 &_swigt__p_wxPseudoDC,
32905 &_swigt__p_wxPyApp,
32906 &_swigt__p_wxPyCommandEvent,
32907 &_swigt__p_wxPyEvent,
32908 &_swigt__p_wxPyFontEnumerator,
32909 &_swigt__p_wxPyImageHandler,
32910 &_swigt__p_wxPyLocale,
32911 &_swigt__p_wxPySizer,
32912 &_swigt__p_wxPyValidator,
32913 &_swigt__p_wxQueryNewPaletteEvent,
32914 &_swigt__p_wxRect,
32915 &_swigt__p_wxRegion,
32916 &_swigt__p_wxRegionIterator,
32917 &_swigt__p_wxRendererNative,
32918 &_swigt__p_wxRendererVersion,
32919 &_swigt__p_wxScreenDC,
32920 &_swigt__p_wxScrollEvent,
32921 &_swigt__p_wxScrollWinEvent,
32922 &_swigt__p_wxSetCursorEvent,
32923 &_swigt__p_wxShowEvent,
32924 &_swigt__p_wxSize,
32925 &_swigt__p_wxSizeEvent,
32926 &_swigt__p_wxSizer,
32927 &_swigt__p_wxSizerItem,
32928 &_swigt__p_wxSplitterRenderParams,
32929 &_swigt__p_wxStaticBoxSizer,
32930 &_swigt__p_wxStdDialogButtonSizer,
32931 &_swigt__p_wxStockGDI,
32932 &_swigt__p_wxString,
32933 &_swigt__p_wxSysColourChangedEvent,
32934 &_swigt__p_wxTIFFHandler,
32935 &_swigt__p_wxUpdateUIEvent,
32936 &_swigt__p_wxValidator,
32937 &_swigt__p_wxWindow,
32938 &_swigt__p_wxWindowCreateEvent,
32939 &_swigt__p_wxWindowDC,
32940 &_swigt__p_wxWindowDestroyEvent,
32941 &_swigt__p_wxXPMHandler,
32942 };
32943
32944 static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}};
32945 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
32946 static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
32947 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
32948 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
32949 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
32950 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
32951 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
32952 static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}};
32953 static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
32954 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
32955 static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
32956 static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
32957 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}};
32958 static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
32959 static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}};
32960 static swig_cast_info _swigc__p_wxClientDC[] = { {&_swigt__p_wxClientDC, 0, 0, 0},{0, 0, 0, 0}};
32961 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
32962 static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
32963 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
32964 static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxScreenDC, _p_wxScreenDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxMirrorDC, _p_wxMirrorDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxMemoryDC, _p_wxMemoryDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxWindowDC, _p_wxWindowDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxDC, 0, 0, 0}, {&_swigt__p_wxMetaFileDC, _p_wxMetaFileDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxPostScriptDC, _p_wxPostScriptDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxPrinterDC, _p_wxPrinterDCTo_p_wxDC, 0, 0},{0, 0, 0, 0}};
32965 static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
32966 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
32967 static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
32968 static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
32969 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
32970 static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
32971 static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
32972 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}};
32973 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}};
32974 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
32975 static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
32976 static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
32977 static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
32978 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
32979 static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
32980 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}};
32981 static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
32982 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}};
32983 static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
32984 static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
32985 static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
32986 static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
32987 static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
32988 static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}};
32989 static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
32990 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
32991 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
32992 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
32993 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
32994 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
32995 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
32996 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
32997 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
32998 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
32999 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
33000 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
33001 static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
33002 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
33003 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
33004 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
33005 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
33006 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
33007 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
33008 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
33009 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
33010 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
33011 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
33012 static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
33013 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
33014 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
33015 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
33016 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
33017 static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
33018 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
33019 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
33020 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
33021 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
33022 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
33023 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
33024 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
33025 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
33026 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
33027 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
33028 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
33029 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
33030 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
33031 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
33032 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
33033 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
33034 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
33035 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
33036 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
33037 static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
33038 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
33039 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
33040 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
33041 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
33042 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
33043 static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
33044 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
33045 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
33046 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
33047 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
33048 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
33049 static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
33050 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
33051 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
33052 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
33053 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
33054 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
33055 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
33056 static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
33057 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
33058 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
33059 static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
33060 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
33061 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
33062 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
33063 static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
33064 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
33065 static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
33066 static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxRegionIterator, _p_wxRegionIteratorTo_p_wxObject, 0, 0}, {&_swigt__p_wxPen, _p_wxPenTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMask, _p_wxMaskTo_p_wxObject, 0, 0}, {&_swigt__p_wxPseudoDC, _p_wxPseudoDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxFont, _p_wxFontTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxMemoryDC, _p_wxMemoryDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxRegion, _p_wxRegionTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxDC, _p_wxDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxIcon, _p_wxIconTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDC, _p_wxWindowDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGDIObject, _p_wxGDIObjectTo_p_wxObject, 0, 0}, {&_swigt__p_wxEffects, _p_wxEffectsTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPostScriptDC, _p_wxPostScriptDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPrinterDC, _p_wxPrinterDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxScreenDC, _p_wxScreenDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPalette, _p_wxPaletteTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageList, _p_wxImageListTo_p_wxObject, 0, 0}, {&_swigt__p_wxCursor, _p_wxCursorTo_p_wxObject, 0, 0}, {&_swigt__p_wxObject, 0, 0, 0}, {&_swigt__p_wxMirrorDC, _p_wxMirrorDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxEncodingConverter, _p_wxEncodingConverterTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMetaFileDC, _p_wxMetaFileDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileSystem, _p_wxFileSystemTo_p_wxObject, 0, 0}, {&_swigt__p_wxBitmap, _p_wxBitmapTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBrush, _p_wxBrushTo_p_wxObject, 0, 0}, {&_swigt__p_wxMetaFile, _p_wxMetaFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxColour, _p_wxColourTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}};
33067 static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
33068 static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
33069 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
33070 static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
33071 static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
33072 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}};
33073 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
33074 static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
33075 static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
33076 static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
33077 static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
33078 static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
33079 static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}};
33080 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
33081 static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
33082 static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
33083 static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
33084 static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
33085 static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
33086 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
33087 static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
33088 static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
33089 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
33090 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}};
33091 static swig_cast_info _swigc__p_wxWindowDC[] = { {&_swigt__p_wxWindowDC, 0, 0, 0},{0, 0, 0, 0}};
33092
33093 static swig_cast_info *swig_cast_initial[] = {
33094 _swigc__p_buffer,
33095 _swigc__p_char,
33096 _swigc__p_double,
33097 _swigc__p_form_ops_t,
33098 _swigc__p_int,
33099 _swigc__p_unsigned_char,
33100 _swigc__p_unsigned_int,
33101 _swigc__p_unsigned_long,
33102 _swigc__p_wxANIHandler,
33103 _swigc__p_wxAcceleratorTable,
33104 _swigc__p_wxActivateEvent,
33105 _swigc__p_wxAlphaPixelData,
33106 _swigc__p_wxAlphaPixelData_Accessor,
33107 _swigc__p_wxBMPHandler,
33108 _swigc__p_wxBitmap,
33109 _swigc__p_wxBoxSizer,
33110 _swigc__p_wxBrush,
33111 _swigc__p_wxBrushList,
33112 _swigc__p_wxBufferedDC,
33113 _swigc__p_wxBufferedPaintDC,
33114 _swigc__p_wxCURHandler,
33115 _swigc__p_wxChar,
33116 _swigc__p_wxChildFocusEvent,
33117 _swigc__p_wxClientDC,
33118 _swigc__p_wxClipboardTextEvent,
33119 _swigc__p_wxCloseEvent,
33120 _swigc__p_wxColour,
33121 _swigc__p_wxColourDatabase,
33122 _swigc__p_wxCommandEvent,
33123 _swigc__p_wxContextMenuEvent,
33124 _swigc__p_wxControl,
33125 _swigc__p_wxControlWithItems,
33126 _swigc__p_wxCursor,
33127 _swigc__p_wxDC,
33128 _swigc__p_wxDash,
33129 _swigc__p_wxDateEvent,
33130 _swigc__p_wxDisplayChangedEvent,
33131 _swigc__p_wxDropFilesEvent,
33132 _swigc__p_wxDuplexMode,
33133 _swigc__p_wxEffects,
33134 _swigc__p_wxEncodingConverter,
33135 _swigc__p_wxEraseEvent,
33136 _swigc__p_wxEvent,
33137 _swigc__p_wxEvtHandler,
33138 _swigc__p_wxFSFile,
33139 _swigc__p_wxFileSystem,
33140 _swigc__p_wxFlexGridSizer,
33141 _swigc__p_wxFocusEvent,
33142 _swigc__p_wxFont,
33143 _swigc__p_wxFontList,
33144 _swigc__p_wxFontMapper,
33145 _swigc__p_wxGBSizerItem,
33146 _swigc__p_wxGDIObjListBase,
33147 _swigc__p_wxGDIObject,
33148 _swigc__p_wxGIFHandler,
33149 _swigc__p_wxGridBagSizer,
33150 _swigc__p_wxGridSizer,
33151 _swigc__p_wxICOHandler,
33152 _swigc__p_wxIcon,
33153 _swigc__p_wxIconBundle,
33154 _swigc__p_wxIconLocation,
33155 _swigc__p_wxIconizeEvent,
33156 _swigc__p_wxIdleEvent,
33157 _swigc__p_wxImage,
33158 _swigc__p_wxImageHandler,
33159 _swigc__p_wxImageList,
33160 _swigc__p_wxIndividualLayoutConstraint,
33161 _swigc__p_wxInitDialogEvent,
33162 _swigc__p_wxJPEGHandler,
33163 _swigc__p_wxKeyEvent,
33164 _swigc__p_wxLanguageInfo,
33165 _swigc__p_wxLayoutConstraints,
33166 _swigc__p_wxLocale,
33167 _swigc__p_wxMask,
33168 _swigc__p_wxMaximizeEvent,
33169 _swigc__p_wxMemoryDC,
33170 _swigc__p_wxMenu,
33171 _swigc__p_wxMenuBar,
33172 _swigc__p_wxMenuEvent,
33173 _swigc__p_wxMenuItem,
33174 _swigc__p_wxMetaFile,
33175 _swigc__p_wxMetaFileDC,
33176 _swigc__p_wxMirrorDC,
33177 _swigc__p_wxMouseCaptureChangedEvent,
33178 _swigc__p_wxMouseCaptureLostEvent,
33179 _swigc__p_wxMouseEvent,
33180 _swigc__p_wxMoveEvent,
33181 _swigc__p_wxNativeEncodingInfo,
33182 _swigc__p_wxNativeFontInfo,
33183 _swigc__p_wxNativePixelData,
33184 _swigc__p_wxNativePixelData_Accessor,
33185 _swigc__p_wxNavigationKeyEvent,
33186 _swigc__p_wxNcPaintEvent,
33187 _swigc__p_wxNotifyEvent,
33188 _swigc__p_wxObject,
33189 _swigc__p_wxPCXHandler,
33190 _swigc__p_wxPNGHandler,
33191 _swigc__p_wxPNMHandler,
33192 _swigc__p_wxPaintDC,
33193 _swigc__p_wxPaintEvent,
33194 _swigc__p_wxPalette,
33195 _swigc__p_wxPaletteChangedEvent,
33196 _swigc__p_wxPaperSize,
33197 _swigc__p_wxPen,
33198 _swigc__p_wxPenList,
33199 _swigc__p_wxPixelDataBase,
33200 _swigc__p_wxPoint,
33201 _swigc__p_wxPostScriptDC,
33202 _swigc__p_wxPrintData,
33203 _swigc__p_wxPrinterDC,
33204 _swigc__p_wxPseudoDC,
33205 _swigc__p_wxPyApp,
33206 _swigc__p_wxPyCommandEvent,
33207 _swigc__p_wxPyEvent,
33208 _swigc__p_wxPyFontEnumerator,
33209 _swigc__p_wxPyImageHandler,
33210 _swigc__p_wxPyLocale,
33211 _swigc__p_wxPySizer,
33212 _swigc__p_wxPyValidator,
33213 _swigc__p_wxQueryNewPaletteEvent,
33214 _swigc__p_wxRect,
33215 _swigc__p_wxRegion,
33216 _swigc__p_wxRegionIterator,
33217 _swigc__p_wxRendererNative,
33218 _swigc__p_wxRendererVersion,
33219 _swigc__p_wxScreenDC,
33220 _swigc__p_wxScrollEvent,
33221 _swigc__p_wxScrollWinEvent,
33222 _swigc__p_wxSetCursorEvent,
33223 _swigc__p_wxShowEvent,
33224 _swigc__p_wxSize,
33225 _swigc__p_wxSizeEvent,
33226 _swigc__p_wxSizer,
33227 _swigc__p_wxSizerItem,
33228 _swigc__p_wxSplitterRenderParams,
33229 _swigc__p_wxStaticBoxSizer,
33230 _swigc__p_wxStdDialogButtonSizer,
33231 _swigc__p_wxStockGDI,
33232 _swigc__p_wxString,
33233 _swigc__p_wxSysColourChangedEvent,
33234 _swigc__p_wxTIFFHandler,
33235 _swigc__p_wxUpdateUIEvent,
33236 _swigc__p_wxValidator,
33237 _swigc__p_wxWindow,
33238 _swigc__p_wxWindowCreateEvent,
33239 _swigc__p_wxWindowDC,
33240 _swigc__p_wxWindowDestroyEvent,
33241 _swigc__p_wxXPMHandler,
33242 };
33243
33244
33245 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
33246
33247 static swig_const_info swig_const_table[] = {
33248 {0, 0, 0, 0.0, 0, 0}};
33249
33250 #ifdef __cplusplus
33251 }
33252 #endif
33253 /* -----------------------------------------------------------------------------
33254 * Type initialization:
33255 * This problem is tough by the requirement that no dynamic
33256 * memory is used. Also, since swig_type_info structures store pointers to
33257 * swig_cast_info structures and swig_cast_info structures store pointers back
33258 * to swig_type_info structures, we need some lookup code at initialization.
33259 * The idea is that swig generates all the structures that are needed.
33260 * The runtime then collects these partially filled structures.
33261 * The SWIG_InitializeModule function takes these initial arrays out of
33262 * swig_module, and does all the lookup, filling in the swig_module.types
33263 * array with the correct data and linking the correct swig_cast_info
33264 * structures together.
33265 *
33266 * The generated swig_type_info structures are assigned staticly to an initial
33267 * array. We just loop though that array, and handle each type individually.
33268 * First we lookup if this type has been already loaded, and if so, use the
33269 * loaded structure instead of the generated one. Then we have to fill in the
33270 * cast linked list. The cast data is initially stored in something like a
33271 * two-dimensional array. Each row corresponds to a type (there are the same
33272 * number of rows as there are in the swig_type_initial array). Each entry in
33273 * a column is one of the swig_cast_info structures for that type.
33274 * The cast_initial array is actually an array of arrays, because each row has
33275 * a variable number of columns. So to actually build the cast linked list,
33276 * we find the array of casts associated with the type, and loop through it
33277 * adding the casts to the list. The one last trick we need to do is making
33278 * sure the type pointer in the swig_cast_info struct is correct.
33279 *
33280 * First off, we lookup the cast->type name to see if it is already loaded.
33281 * There are three cases to handle:
33282 * 1) If the cast->type has already been loaded AND the type we are adding
33283 * casting info to has not been loaded (it is in this module), THEN we
33284 * replace the cast->type pointer with the type pointer that has already
33285 * been loaded.
33286 * 2) If BOTH types (the one we are adding casting info to, and the
33287 * cast->type) are loaded, THEN the cast info has already been loaded by
33288 * the previous module so we just ignore it.
33289 * 3) Finally, if cast->type has not already been loaded, then we add that
33290 * swig_cast_info to the linked list (because the cast->type) pointer will
33291 * be correct.
33292 * ----------------------------------------------------------------------------- */
33293
33294 #ifdef __cplusplus
33295 extern "C" {
33296 #if 0
33297 } /* c-mode */
33298 #endif
33299 #endif
33300
33301 #if 0
33302 #define SWIGRUNTIME_DEBUG
33303 #endif
33304
33305 SWIGRUNTIME void
33306 SWIG_InitializeModule(void *clientdata) {
33307 size_t i;
33308 swig_module_info *module_head;
33309 static int init_run = 0;
33310
33311 clientdata = clientdata;
33312
33313 if (init_run) return;
33314 init_run = 1;
33315
33316 /* Initialize the swig_module */
33317 swig_module.type_initial = swig_type_initial;
33318 swig_module.cast_initial = swig_cast_initial;
33319
33320 /* Try and load any already created modules */
33321 module_head = SWIG_GetModule(clientdata);
33322 if (module_head) {
33323 swig_module.next = module_head->next;
33324 module_head->next = &swig_module;
33325 } else {
33326 /* This is the first module loaded */
33327 swig_module.next = &swig_module;
33328 SWIG_SetModule(clientdata, &swig_module);
33329 }
33330
33331 /* Now work on filling in swig_module.types */
33332 #ifdef SWIGRUNTIME_DEBUG
33333 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
33334 #endif
33335 for (i = 0; i < swig_module.size; ++i) {
33336 swig_type_info *type = 0;
33337 swig_type_info *ret;
33338 swig_cast_info *cast;
33339
33340 #ifdef SWIGRUNTIME_DEBUG
33341 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
33342 #endif
33343
33344 /* if there is another module already loaded */
33345 if (swig_module.next != &swig_module) {
33346 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
33347 }
33348 if (type) {
33349 /* Overwrite clientdata field */
33350 #ifdef SWIGRUNTIME_DEBUG
33351 printf("SWIG_InitializeModule: found type %s\n", type->name);
33352 #endif
33353 if (swig_module.type_initial[i]->clientdata) {
33354 type->clientdata = swig_module.type_initial[i]->clientdata;
33355 #ifdef SWIGRUNTIME_DEBUG
33356 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
33357 #endif
33358 }
33359 } else {
33360 type = swig_module.type_initial[i];
33361 }
33362
33363 /* Insert casting types */
33364 cast = swig_module.cast_initial[i];
33365 while (cast->type) {
33366 /* Don't need to add information already in the list */
33367 ret = 0;
33368 #ifdef SWIGRUNTIME_DEBUG
33369 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
33370 #endif
33371 if (swig_module.next != &swig_module) {
33372 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
33373 #ifdef SWIGRUNTIME_DEBUG
33374 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
33375 #endif
33376 }
33377 if (ret) {
33378 if (type == swig_module.type_initial[i]) {
33379 #ifdef SWIGRUNTIME_DEBUG
33380 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
33381 #endif
33382 cast->type = ret;
33383 ret = 0;
33384 } else {
33385 /* Check for casting already in the list */
33386 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
33387 #ifdef SWIGRUNTIME_DEBUG
33388 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
33389 #endif
33390 if (!ocast) ret = 0;
33391 }
33392 }
33393
33394 if (!ret) {
33395 #ifdef SWIGRUNTIME_DEBUG
33396 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
33397 #endif
33398 if (type->cast) {
33399 type->cast->prev = cast;
33400 cast->next = type->cast;
33401 }
33402 type->cast = cast;
33403 }
33404 cast++;
33405 }
33406 /* Set entry in modules->types array equal to the type */
33407 swig_module.types[i] = type;
33408 }
33409 swig_module.types[i] = 0;
33410
33411 #ifdef SWIGRUNTIME_DEBUG
33412 printf("**** SWIG_InitializeModule: Cast List ******\n");
33413 for (i = 0; i < swig_module.size; ++i) {
33414 int j = 0;
33415 swig_cast_info *cast = swig_module.cast_initial[i];
33416 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
33417 while (cast->type) {
33418 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
33419 cast++;
33420 ++j;
33421 }
33422 printf("---- Total casts: %d\n",j);
33423 }
33424 printf("**** SWIG_InitializeModule: Cast List ******\n");
33425 #endif
33426 }
33427
33428 /* This function will propagate the clientdata field of type to
33429 * any new swig_type_info structures that have been added into the list
33430 * of equivalent types. It is like calling
33431 * SWIG_TypeClientData(type, clientdata) a second time.
33432 */
33433 SWIGRUNTIME void
33434 SWIG_PropagateClientData(void) {
33435 size_t i;
33436 swig_cast_info *equiv;
33437 static int init_run = 0;
33438
33439 if (init_run) return;
33440 init_run = 1;
33441
33442 for (i = 0; i < swig_module.size; i++) {
33443 if (swig_module.types[i]->clientdata) {
33444 equiv = swig_module.types[i]->cast;
33445 while (equiv) {
33446 if (!equiv->converter) {
33447 if (equiv->type && !equiv->type->clientdata)
33448 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
33449 }
33450 equiv = equiv->next;
33451 }
33452 }
33453 }
33454 }
33455
33456 #ifdef __cplusplus
33457 #if 0
33458 {
33459 /* c-mode */
33460 #endif
33461 }
33462 #endif
33463
33464
33465
33466 #ifdef __cplusplus
33467 extern "C" {
33468 #endif
33469
33470 /* Python-specific SWIG API */
33471 #define SWIG_newvarlink() SWIG_Python_newvarlink()
33472 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
33473 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
33474
33475 /* -----------------------------------------------------------------------------
33476 * global variable support code.
33477 * ----------------------------------------------------------------------------- */
33478
33479 typedef struct swig_globalvar {
33480 char *name; /* Name of global variable */
33481 PyObject *(*get_attr)(void); /* Return the current value */
33482 int (*set_attr)(PyObject *); /* Set the value */
33483 struct swig_globalvar *next;
33484 } swig_globalvar;
33485
33486 typedef struct swig_varlinkobject {
33487 PyObject_HEAD
33488 swig_globalvar *vars;
33489 } swig_varlinkobject;
33490
33491 SWIGINTERN PyObject *
33492 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
33493 return PyString_FromString("<Swig global variables>");
33494 }
33495
33496 SWIGINTERN PyObject *
33497 swig_varlink_str(swig_varlinkobject *v) {
33498 PyObject *str = PyString_FromString("(");
33499 swig_globalvar *var;
33500 for (var = v->vars; var; var=var->next) {
33501 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
33502 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
33503 }
33504 PyString_ConcatAndDel(&str,PyString_FromString(")"));
33505 return str;
33506 }
33507
33508 SWIGINTERN int
33509 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
33510 PyObject *str = swig_varlink_str(v);
33511 fprintf(fp,"Swig global variables ");
33512 fprintf(fp,"%s\n", PyString_AsString(str));
33513 Py_DECREF(str);
33514 return 0;
33515 }
33516
33517 SWIGINTERN void
33518 swig_varlink_dealloc(swig_varlinkobject *v) {
33519 swig_globalvar *var = v->vars;
33520 while (var) {
33521 swig_globalvar *n = var->next;
33522 free(var->name);
33523 free(var);
33524 var = n;
33525 }
33526 }
33527
33528 SWIGINTERN PyObject *
33529 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
33530 PyObject *res = NULL;
33531 swig_globalvar *var = v->vars;
33532 while (var) {
33533 if (strcmp(var->name,n) == 0) {
33534 res = (*var->get_attr)();
33535 break;
33536 }
33537 var = var->next;
33538 }
33539 if (res == NULL && !PyErr_Occurred()) {
33540 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
33541 }
33542 return res;
33543 }
33544
33545 SWIGINTERN int
33546 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
33547 int res = 1;
33548 swig_globalvar *var = v->vars;
33549 while (var) {
33550 if (strcmp(var->name,n) == 0) {
33551 res = (*var->set_attr)(p);
33552 break;
33553 }
33554 var = var->next;
33555 }
33556 if (res == 1 && !PyErr_Occurred()) {
33557 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
33558 }
33559 return res;
33560 }
33561
33562 SWIGINTERN PyTypeObject*
33563 swig_varlink_type(void) {
33564 static char varlink__doc__[] = "Swig var link object";
33565 static PyTypeObject varlink_type;
33566 static int type_init = 0;
33567 if (!type_init) {
33568 const PyTypeObject tmp
33569 = {
33570 PyObject_HEAD_INIT(NULL)
33571 0, /* Number of items in variable part (ob_size) */
33572 (char *)"swigvarlink", /* Type name (tp_name) */
33573 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
33574 0, /* Itemsize (tp_itemsize) */
33575 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
33576 (printfunc) swig_varlink_print, /* Print (tp_print) */
33577 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
33578 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
33579 0, /* tp_compare */
33580 (reprfunc) swig_varlink_repr, /* tp_repr */
33581 0, /* tp_as_number */
33582 0, /* tp_as_sequence */
33583 0, /* tp_as_mapping */
33584 0, /* tp_hash */
33585 0, /* tp_call */
33586 (reprfunc)swig_varlink_str, /* tp_str */
33587 0, /* tp_getattro */
33588 0, /* tp_setattro */
33589 0, /* tp_as_buffer */
33590 0, /* tp_flags */
33591 varlink__doc__, /* tp_doc */
33592 0, /* tp_traverse */
33593 0, /* tp_clear */
33594 0, /* tp_richcompare */
33595 0, /* tp_weaklistoffset */
33596 #if PY_VERSION_HEX >= 0x02020000
33597 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
33598 #endif
33599 #if PY_VERSION_HEX >= 0x02030000
33600 0, /* tp_del */
33601 #endif
33602 #ifdef COUNT_ALLOCS
33603 0,0,0,0 /* tp_alloc -> tp_next */
33604 #endif
33605 };
33606 varlink_type = tmp;
33607 varlink_type.ob_type = &PyType_Type;
33608 type_init = 1;
33609 }
33610 return &varlink_type;
33611 }
33612
33613 /* Create a variable linking object for use later */
33614 SWIGINTERN PyObject *
33615 SWIG_Python_newvarlink(void) {
33616 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
33617 if (result) {
33618 result->vars = 0;
33619 }
33620 return ((PyObject*) result);
33621 }
33622
33623 SWIGINTERN void
33624 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
33625 swig_varlinkobject *v = (swig_varlinkobject *) p;
33626 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
33627 if (gv) {
33628 size_t size = strlen(name)+1;
33629 gv->name = (char *)malloc(size);
33630 if (gv->name) {
33631 strncpy(gv->name,name,size);
33632 gv->get_attr = get_attr;
33633 gv->set_attr = set_attr;
33634 gv->next = v->vars;
33635 }
33636 }
33637 v->vars = gv;
33638 }
33639
33640 SWIGINTERN PyObject *
33641 SWIG_globals() {
33642 static PyObject *_SWIG_globals = 0;
33643 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
33644 return _SWIG_globals;
33645 }
33646
33647 /* -----------------------------------------------------------------------------
33648 * constants/methods manipulation
33649 * ----------------------------------------------------------------------------- */
33650
33651 /* Install Constants */
33652 SWIGINTERN void
33653 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
33654 PyObject *obj = 0;
33655 size_t i;
33656 for (i = 0; constants[i].type; ++i) {
33657 switch(constants[i].type) {
33658 case SWIG_PY_POINTER:
33659 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
33660 break;
33661 case SWIG_PY_BINARY:
33662 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
33663 break;
33664 default:
33665 obj = 0;
33666 break;
33667 }
33668 if (obj) {
33669 PyDict_SetItemString(d, constants[i].name, obj);
33670 Py_DECREF(obj);
33671 }
33672 }
33673 }
33674
33675 /* -----------------------------------------------------------------------------*/
33676 /* Fix SwigMethods to carry the callback ptrs when needed */
33677 /* -----------------------------------------------------------------------------*/
33678
33679 SWIGINTERN void
33680 SWIG_Python_FixMethods(PyMethodDef *methods,
33681 swig_const_info *const_table,
33682 swig_type_info **types,
33683 swig_type_info **types_initial) {
33684 size_t i;
33685 for (i = 0; methods[i].ml_name; ++i) {
33686 const char *c = methods[i].ml_doc;
33687 if (c && (c = strstr(c, "swig_ptr: "))) {
33688 int j;
33689 swig_const_info *ci = 0;
33690 const char *name = c + 10;
33691 for (j = 0; const_table[j].type; ++j) {
33692 if (strncmp(const_table[j].name, name,
33693 strlen(const_table[j].name)) == 0) {
33694 ci = &(const_table[j]);
33695 break;
33696 }
33697 }
33698 if (ci) {
33699 size_t shift = (ci->ptype) - types;
33700 swig_type_info *ty = types_initial[shift];
33701 size_t ldoc = (c - methods[i].ml_doc);
33702 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
33703 char *ndoc = (char*)malloc(ldoc + lptr + 10);
33704 if (ndoc) {
33705 char *buff = ndoc;
33706 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
33707 if (ptr) {
33708 strncpy(buff, methods[i].ml_doc, ldoc);
33709 buff += ldoc;
33710 strncpy(buff, "swig_ptr: ", 10);
33711 buff += 10;
33712 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
33713 methods[i].ml_doc = ndoc;
33714 }
33715 }
33716 }
33717 }
33718 }
33719 }
33720
33721 #ifdef __cplusplus
33722 }
33723 #endif
33724
33725 /* -----------------------------------------------------------------------------*
33726 * Partial Init method
33727 * -----------------------------------------------------------------------------*/
33728
33729 #ifdef __cplusplus
33730 extern "C"
33731 #endif
33732 SWIGEXPORT void SWIG_init(void) {
33733 PyObject *m, *d;
33734
33735 /* Fix SwigMethods to carry the callback ptrs when needed */
33736 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
33737
33738 m = Py_InitModule((char *) SWIG_name, SwigMethods);
33739 d = PyModule_GetDict(m);
33740
33741 SWIG_InitializeModule(0);
33742 SWIG_InstallConstants(d,swig_const_table);
33743
33744
33745 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
33746 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
33747 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
33748 SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT)));
33749 SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE)));
33750 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
33751 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
33752 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
33753 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
33754 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
33755 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
33756 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
33757 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
33758 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
33759 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
33760 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
33761 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
33762 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
33763 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
33764 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
33765 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
33766 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
33767 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
33768 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
33769 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
33770 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
33771 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
33772 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
33773 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
33774 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
33775 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
33776 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
33777 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
33778 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
33779 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
33780 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
33781 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
33782 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
33783 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
33784 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
33785 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
33786 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
33787 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
33788 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
33789 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
33790 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
33791 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
33792 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
33793 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
33794 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
33795 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
33796 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
33797 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
33798 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
33799 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
33800 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
33801 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
33802 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
33803 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
33804 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
33805 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
33806 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
33807 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
33808 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
33809 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
33810 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
33811 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
33812 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
33813 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
33814 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
33815 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
33816 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
33817 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
33818 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
33819 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
33820 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
33821 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
33822 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
33823 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
33824 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
33825 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
33826 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
33827 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
33828 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
33829 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
33830 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
33831 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
33832 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
33833 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
33834 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
33835 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
33836 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
33837 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
33838 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
33839 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
33840 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
33841 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
33842 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
33843 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
33844 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
33845 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
33846 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
33847 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
33848 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
33849 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
33850 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
33851 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
33852 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
33853 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
33854 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
33855 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
33856 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
33857 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
33858 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
33859 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
33860 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
33861 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
33862 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
33863 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
33864 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
33865 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
33866 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
33867 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
33868 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
33869 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
33870 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
33871 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
33872 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
33873 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
33874 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
33875 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
33876 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
33877
33878 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
33879
33880 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
33881 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
33882 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
33883 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
33884 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
33885 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
33886 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
33887 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
33888 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
33889 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
33890 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
33891 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
33892 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
33893 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
33894 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
33895 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
33896 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
33897 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
33898 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
33899 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
33900 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
33901 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
33902 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
33903 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
33904 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
33905 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
33906 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
33907 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
33908 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
33909 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
33910 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
33911 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
33912 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
33913 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
33914 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
33915 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
33916 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
33917 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
33918 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
33919 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
33920 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
33921 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
33922 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
33923 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
33924 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
33925 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
33926 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
33927 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
33928 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
33929 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
33930 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
33931 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
33932 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
33933 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
33934 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
33935 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
33936 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
33937 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
33938 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
33939 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
33940 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
33941 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
33942 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
33943 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
33944 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
33945 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
33946 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
33947 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
33948 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
33949 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
33950 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
33951 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
33952 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
33953 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
33954 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
33955 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
33956 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
33957 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
33958 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
33959 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
33960 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
33961 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
33962 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
33963 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
33964 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
33965 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
33966 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
33967 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
33968 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
33969 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
33970 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
33971 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
33972 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
33973 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
33974 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
33975 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
33976 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
33977 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
33978 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
33979 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
33980 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
33981 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
33982 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
33983 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
33984 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
33985 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
33986 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
33987 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
33988 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
33989 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
33990 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
33991 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
33992 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
33993 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
33994 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
33995 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
33996 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
33997 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
33998 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
33999 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
34000 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
34001 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
34002 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
34003 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
34004 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
34005 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
34006 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
34007 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
34008 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
34009 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
34010 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
34011 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
34012 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
34013 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
34014 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
34015 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
34016 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
34017 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
34018 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
34019 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
34020 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
34021 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
34022 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
34023 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
34024 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
34025 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
34026 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
34027 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
34028 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
34029 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
34030 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
34031 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
34032 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
34033 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
34034 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
34035 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
34036 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
34037 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
34038 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
34039 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
34040 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
34041 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
34042 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
34043 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
34044 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
34045 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
34046 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
34047 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
34048 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
34049 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
34050 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
34051 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
34052 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
34053 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
34054 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
34055 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
34056 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
34057 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
34058 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
34059 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
34060 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
34061 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
34062 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
34063 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
34064 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
34065 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
34066 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
34067 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
34068 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
34069 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
34070 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
34071 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
34072 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
34073 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
34074 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
34075 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
34076 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
34077 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
34078 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
34079 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
34080 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
34081 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
34082 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
34083 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
34084 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
34085 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
34086 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
34087 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
34088 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
34089 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
34090 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
34091 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
34092 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
34093 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
34094 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
34095 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
34096 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
34097 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
34098 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
34099 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
34100 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
34101 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
34102 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
34103 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
34104 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
34105 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
34106 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
34107 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
34108 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
34109 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
34110 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
34111 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
34112 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
34113 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
34114 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
34115 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
34116 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
34117 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
34118 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
34119 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
34120 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
34121 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
34122 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
34123 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
34124 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
34125 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
34126 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
34127 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
34128 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
34129 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
34130 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
34131 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
34132 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
34133 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
34134 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
34135 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
34136 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
34137 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
34138 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
34139 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
34140 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
34141 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
34142 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
34143 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
34144 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
34145 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
34146 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
34147 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
34148 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
34149 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
34150 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
34151 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
34152 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
34153 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
34154 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
34155 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
34156 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
34157 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
34158 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
34159 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
34160 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
34161 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
34162 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
34163 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
34164 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
34165 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
34166 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
34167 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
34168 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
34169 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
34170 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
34171 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
34172 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
34173 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
34174 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
34175 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
34176 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
34177 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
34178 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
34179 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
34180 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
34181 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
34182 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
34183 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
34184 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
34185 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
34186 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
34187 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
34188 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
34189 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
34190 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
34191 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
34192 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
34193 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
34194
34195 // Work around a chicken/egg problem in drawlist.cpp
34196 wxPyDrawList_SetAPIPtr();
34197
34198 }
34199